67008bef59ab59c30ab5d10540df5806670dc274
[gnulib.git] / ChangeLog
1 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2             Bruno Haible  <bruno@clisp.org>
3
4         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6         not defined, assume POSIX threads and look for pthread_sigmask in
7         $LIBS, without changing $CPPFLAGS.
8
9 2011-07-19  Bruno Haible  <bruno@clisp.org>
10
11         strstr: Update cross-compilation guess.
12         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
13         CPUs, guess no, in view of glibc
14         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15         Suggested by Eric Blake. Reported by Reuben Thomas.
16
17 2011-07-19  Pádraig Brady  <P@draigBrady.com>
18
19         getopt-gnu: suppress core dumps from detection code
20         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
21         to suppress core dumps that may well occur on glibc systems.
22         * modules/getopt-gnu: Depend on nocrash.
23
24 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
25
26         pthread_sigmask: ensure usleep is declared
27         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
28         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
29
30 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31
32         doc: Document NonStop portability issues.
33         * doc/posix-functions/sigaction.texi (sigaction):
34         * doc/posix-headers/signal.texi (signal.h):
35         Document NonStop.  See Joachim Schmitz in
36         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
37
38 2011-07-15  Bruno Haible  <bruno@clisp.org>
39
40         ffsl, ffsll: Avoid unportable behaviour.
41         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
42
43 2011-07-15  Bruno Haible  <bruno@clisp.org>
44
45         ffs: More tests.
46         * tests/test-ffs.c (NBITS): New macro.
47         (main): Add more tests.
48         * tests/test-ffsl.c (NBITS): New macro.
49         (main): Add more tests.
50         * tests/test-ffsll.c (NBITS): New macro.
51         (main): Add more tests.
52
53 2011-07-15  Eric Blake  <eblake@redhat.com>
54
55         ffsl, ffsll: new modules
56         * modules/ffsl: New file.
57         * modules/ffsll: Likewise.
58         * m4/ffsl.m4: Likewise.
59         * m4/ffsll.m4: Likewise.
60         * lib/ffsl.c: Likewise.
61         * lib/ffsl.h: Likewise.
62         * lib/ffsll.c: Likewise.
63         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
64         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
65         * modules/string (Makefile.am): Substitute witnesses.
66         * lib/strings.in.h (ffsl, ffsll): Declare.
67         * modules/ffsl-tests: New test file.
68         * modules/ffsll-tests: Likewise.
69         * tests/test-ffsl.c: Likewise.
70         * tests/test-ffsll.c: Likewise.
71         * MODULES.html.sh (Integer arithmetic functions): Mention it.
72         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
73         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
74
75         ffs: fix m4 prerequisite
76         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
77
78         ffs: avoid undefined behavior
79         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
80         * tests/test-ffs.c (naive, main): Avoid signed shifts.
81         Reported by Bruno Haible.
82
83 2011-07-12  Bruno Haible  <bruno@clisp.org>
84
85         pthread_sigmask: Rely on module 'threadlib'.
86         * modules/pthread_sigmask (Depends-on): Add threadlib.
87         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
88         is defined.
89
90 2011-07-12  Bruno Haible  <bruno@clisp.org>
91
92         regex: Depend on module 'strcase'.
93         * modules/regex (Depends-on): Add strcase, for strcasecmp().
94
95 2011-07-12  Jim Meyering  <meyering@redhat.com>
96
97         warn-on-use: fix typo in file name
98         * modules/snippet/warn-on-use (Files): Correct file name:
99         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
100
101 2011-07-12  Bruno Haible  <bruno@clisp.org>
102
103         strings: Document module.
104         * doc/posix-headers/strings.texi: Mention module 'strings'.
105
106 2011-07-12  Bruno Haible  <bruno@clisp.org>
107
108         Rename module '_Noreturn' to 'snippet/_Noreturn'.
109         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
110         (Files, Makefile.am): Update.
111         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
112         * modules/stdlib (Depends-on): Update.
113
114 2011-07-12  Bruno Haible  <bruno@clisp.org>
115
116         * NEWS: Mention the changes.
117
118         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
119         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
120         (Files, Makefile.am): Update.
121         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
122         * modules/arpa_inet (Depends-on): Update.
123         * modules/ctype (Depends-on): Update.
124         * modules/dirent (Depends-on): Update.
125         * modules/fcntl-h (Depends-on): Update.
126         * modules/glob (Depends-on): Update.
127         * modules/iconv-h (Depends-on): Update.
128         * modules/inttypes-incomplete (Depends-on): Update.
129         * modules/langinfo (Depends-on): Update.
130         * modules/locale (Depends-on): Update.
131         * modules/math (Depends-on): Update.
132         * modules/netdb (Depends-on): Update.
133         * modules/poll-h (Depends-on): Update.
134         * modules/pty (Depends-on): Update.
135         * modules/search (Depends-on): Update.
136         * modules/signal (Depends-on): Update.
137         * modules/spawn (Depends-on): Update.
138         * modules/stdio (Depends-on): Update.
139         * modules/stdlib (Depends-on): Update.
140         * modules/string (Depends-on): Update.
141         * modules/strings (Depends-on): Update.
142         * modules/sys_file (Depends-on): Update.
143         * modules/sys_ioctl (Depends-on): Update.
144         * modules/sys_select (Depends-on): Update.
145         * modules/sys_socket (Depends-on): Update.
146         * modules/sys_stat (Depends-on): Update.
147         * modules/sys_time (Depends-on): Update.
148         * modules/sys_times (Depends-on): Update.
149         * modules/sys_utsname (Depends-on): Update.
150         * modules/sys_wait (Depends-on): Update.
151         * modules/termios (Depends-on): Update.
152         * modules/time (Depends-on): Update.
153         * modules/unistd (Depends-on): Update.
154         * modules/wchar (Depends-on): Update.
155         * modules/wctype-h (Depends-on): Update.
156         * MODULES.html.sh (Support for building libraries and executables):
157         Update.
158
159         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
160         * modules/snippet/unused-parameter: Renamed from
161         modules/unused-parameter.
162         (Files, Makefile.am): Update.
163         * build-aux/snippet/unused-parameter.h: Renamed from
164         build-aux/unused-parameter.h.
165         * modules/selinux-h (Depends-on): Update.
166         * modules/unistr/base (Depends-on): Update.
167         * MODULES.html.sh (Core language properties): Update.
168
169         Rename module 'link-warning' to 'snippet/link-warning'.
170         * modules/snippet/link-warning: Renamed from modules/link-warning.
171         (Files, Makefile.am): Update.
172         * build-aux/snippet/link-warning.h: Renamed from
173         build-aux/link-warning.h.
174         * MODULES.html.sh (Support for building libraries and executables):
175         Update.
176
177         Rename module 'c++defs' to 'snippet/c++defs'.
178         * modules/snippet/c++defs: Renamed from modules/c++defs.
179         (Files, Makefile.am): Update.
180         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
181         * modules/arpa_inet (Depends-on): Update.
182         * modules/ctype (Depends-on): Update.
183         * modules/dirent (Depends-on): Update.
184         * modules/fcntl-h (Depends-on): Update.
185         * modules/glob (Depends-on): Update.
186         * modules/iconv-h (Depends-on): Update.
187         * modules/langinfo (Depends-on): Update.
188         * modules/locale (Depends-on): Update.
189         * modules/math (Depends-on): Update.
190         * modules/netdb (Depends-on): Update.
191         * modules/poll-h (Depends-on): Update.
192         * modules/pty (Depends-on): Update.
193         * modules/search (Depends-on): Update.
194         * modules/signal (Depends-on): Update.
195         * modules/spawn (Depends-on): Update.
196         * modules/stdio (Depends-on): Update.
197         * modules/stdlib (Depends-on): Update.
198         * modules/string (Depends-on): Update.
199         * modules/strings (Depends-on): Update.
200         * modules/sys_ioctl (Depends-on): Update.
201         * modules/sys_select (Depends-on): Update.
202         * modules/sys_socket (Depends-on): Update.
203         * modules/sys_stat (Depends-on): Update.
204         * modules/sys_time (Depends-on): Update.
205         * modules/sys_wait (Depends-on): Update.
206         * modules/termios (Depends-on): Update.
207         * modules/time (Depends-on): Update.
208         * modules/unistd (Depends-on): Update.
209         * modules/wchar (Depends-on): Update.
210         * modules/wctype-h (Depends-on): Update.
211
212         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
213         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
214         (Files, Makefile.am): Update.
215         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
216         * modules/argv-iter (Depends-on): Update.
217         * modules/arpa_inet (Depends-on): Update.
218         * modules/dirent (Depends-on): Update.
219         * modules/fcntl-h (Depends-on): Update.
220         * modules/fnmatch (Depends-on): Update.
221         * modules/getopt-posix (Depends-on): Update.
222         * modules/glob (Depends-on): Update.
223         * modules/iconv-h (Depends-on): Update.
224         * modules/inttypes-incomplete (Depends-on): Update.
225         * modules/locale (Depends-on): Update.
226         * modules/math (Depends-on): Update.
227         * modules/netdb (Depends-on): Update.
228         * modules/search (Depends-on): Update.
229         * modules/signal (Depends-on): Update.
230         * modules/spawn (Depends-on): Update.
231         * modules/stdio (Depends-on): Update.
232         * modules/stdlib (Depends-on): Update.
233         * modules/string (Depends-on): Update.
234         * modules/strings (Depends-on): Update.
235         * modules/sys_socket (Depends-on): Update.
236         * modules/sys_stat (Depends-on): Update.
237         * modules/sys_time (Depends-on): Update.
238         * modules/sys_times (Depends-on): Update.
239         * modules/sys_utsname (Depends-on): Update.
240         * modules/time (Depends-on): Update.
241         * modules/unistd (Depends-on): Update.
242         * modules/wchar (Depends-on): Update.
243         * MODULES.html.sh (Support for building libraries and executables):
244         Update.
245
246 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
247
248         Improvements on _Noreturn and related modules.
249
250         modules/_Exit-tests: test _Noreturn too
251         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
252         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
253         (main): Use them.
254
255         stdnoreturn, stdnoreturn-tests: remove modules
256         They're not needed here and a bit premature for use elsewhere.  See
257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
258         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
259         * tests/test-stdnoreturn.c: Remove files.
260         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
261         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
262         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
263         and using noreturn.
264         * modules/openat, modules/sigpipe-die, modules/xalloc:
265         * modules/xmemdup0, modules/xstrtol:
266         Remove dependency on stdnoreturn.
267
268         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
269         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
270         Reparenthesize to avoid GCC warning.
271         Support Microsoft's syntax.
272         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
273
274         _Noreturn-tests: remove module
275         * modules/_Noreturn-tests: Remove.
276         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
277         * tests/test-_Noreturn.c: Remove.
278         * tests/test-stdnoreturn.c: Merge from the old
279         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
280
281 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
282
283         _Noreturn, stdnoreturn, and related modules.
284
285         * top/maint.mk: Adjust to new noreturn support.
286         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
287         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
288
289         xalloc: use stdnoreturn.h
290         * lib/xalloc.h: Include <stdnoreturn.h>.
291         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
292         * modules/xalloc (Depends-on): Add stdnoreturn.
293
294         xstrtol: use stdnoreturn.h
295         * lib/xstrtol.h: Include <stdnoreturn.h>.
296         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
297         * modules/xstrtol (Depends-on): Add stdnoreturn.
298
299         xmemdup0: use stdnoreturn.h
300         * lib/xmemdup0.h: Include <stdnoreturn.h>.
301         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
302         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
303
304         sigpipe-die: use stdnoreturn.h
305         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
306         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
307         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
308
309         openat: use stdnoreturn.h
310         * lib/openat.h: Include <stdnoreturn.h>.
311         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
312         * modules/openat (Depends-on): Add stdnoreturn.
313
314         * lib/openat-die.c (openat_save_fail): Modernize comment.
315
316         * lib/xalloc-die.c (xalloc_die): Modernize comment.
317
318         * lib/glthread/thread.h: Modernize comment.
319
320         obstack: use _Noreturn
321         * lib/obstack.c (__attribute__): Remove macro.
322         (print_and_abort): Use _Noreturn.
323
324         c-stack: use _Noreturn
325         * lib/c-stack.c (die, overflow_handler, segv_handler):
326         Use _Noreturn rather than __attribute__((noreturn)).
327
328         argmatch-tests, exclude_tests: use _Noreturn
329         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
330         Remove.
331         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
332
333         stdlib: use _Noreturn
334         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
335         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
336         * modules/stdlib (Depends-on): Add _Noreturn.
337         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
338
339         stdnoreturn-tests: new module
340         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
341
342         stdnoreturn: new module
343         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
344         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
345
346         _Noreturn-tests: new module
347         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
348
349         _Noreturn: new module
350         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
351         New section, mentioning it.
352         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
353
354         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
355
356 2011-07-11  Eric Blake  <eblake@redhat.com>
357
358         ffs: new module
359         * modules/ffs: New file.
360         * m4/ffs.m4: Likewise.
361         * lib/ffs.c: Likewise.
362         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
363         * modules/strings (Makefile.am): Substitute witness.
364         (Depends-on): Add c++defs.
365         * lib/strings.in.h (ffs): Declare.
366         * modules/ffs-tests: New test file.
367         * tests/test-ffs.c: Test new module.
368         * MODULES.html.sh (Integer arithmetic functions): Mention it.
369         * doc/posix-functions/ffs.texi (ffs): Likewise.
370
371         regex: avoid compiler warning
372         * lib/regex.c (includes): Include <strings.h>, for use of
373         strcasecmp in regcomp.c.
374         Reported by Joachim Schmitz.
375
376 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
377
378         stdint: respect system's intmax_t if INTMAX_MAX
379         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
380         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
381         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
382         long but int64_t is long long, and where we will clash with the
383         system intmax_t if we override it.  See
384         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
385         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
386         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
387         similarly for UINTMAX_C.
388
389 2011-07-08  Bruno Haible  <bruno@clisp.org>
390
391         pthread_sigmask tests: Avoid a compiler warning.
392         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
393         non-zero.
394
395         sigprocmask tests: A better way to avoid a compiler warning.
396         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
397         (main): Complain if system() returns non-zero.
398         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
399
400 2011-07-08  Bruno Haible  <bruno@clisp.org>
401
402         pthread_sigmask: Work around IRIX bug.
403         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
404         bug.
405         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
406         there may be unblocked pending signals.
407         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
408
409 2011-07-08  Bruno Haible  <bruno@clisp.org>
410
411         pthread_sigmask: Work around Cygwin bug.
412         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
413         bug.
414         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
415         the system's pthread_sigmask function.
416         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
417
418 2011-07-08  Bruno Haible  <bruno@clisp.org>
419
420         pthread_sigmask: Work around bug in single-threaded implementation.
421         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
422         FreeBSD, HP-UX, Solaris bug.
423         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
424         * lib/pthread_sigmask.c: Include <stddef.h>.
425         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
426         the system's pthread_sigmask function.
427         * modules/pthread_sigmask (configure.ac): Invoke
428         gl_PREREQ_PTHREAD_SIGMASK.
429         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
430         HP-UX, Solaris.
431
432 2011-07-08  Eric Blake  <eblake@redhat.com>
433
434         test-sigprocmask: avoid compiler warning
435         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
436         * tests/test-sigprocmask.c (main): Use it to silence warning.
437         Reported by Jim Meyering.
438
439         test-snprintf: avoid compiler warning
440         * tests/test-snprintf.c (main): Avoid shadowed declaration.
441         * tests/test-vsnprintf.c (main): Likewise.
442         Reported by Jim Meyering.
443
444 2011-07-08  Bruno Haible  <bruno@clisp.org>
445
446         Tests for module 'pthread_sigmask'.
447         * modules/pthread_sigmask-tests: New file.
448         * tests/test-pthread_sigmask1.c: New file, based on
449         tests/test-sigprocmask.c.
450         * tests/test-pthread_sigmask2.c: New file.
451
452 2011-07-08  Jim Meyering  <meyering@redhat.com>
453
454         test-getopt.h: avoid warning about an unused variable
455         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
456
457 2011-07-07  Jim Meyering  <meyering@redhat.com>
458
459         maint: reduce list of files exempt from sc_prohibit_leading_TABs
460         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
461         now that it no longer contains leading TABs.
462         Remove unused "url=FIXME" statement.
463
464 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
465
466         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
467         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
468         When gl_THREADLIB is not in use, assume that the POSIX sematics
469         are desired.  This is better for Emacs, which uses POSIX semantics
470         on GNUish and/or POSIXish platforms, and does not use threads at
471         all otherwise.
472
473         pthread_sigmask: fix typo when testing for libraries
474         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
475         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
476
477 2011-07-08  Eric Blake  <eblake@redhat.com>
478
479         fts: introduce FTS_NOATIME
480         * lib/fts_.h (FTS_NOATIME): New bit flag.
481         (FTS_OPTIONMASK): Adjust.
482         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
483         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
484
485 2011-07-08  Bruno Haible  <bruno@clisp.org>
486
487         Tests for module 'thread'.
488         * modules/thread-tests: New file.
489         * tests/test-thread_self.c: New file.
490         * tests/test-thread_create.cc: New file.
491
492 2011-07-08  Bruno Haible  <bruno@clisp.org>
493
494         thread: Avoid gcc warnings when using gl_thread_self().
495         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
496         'void *'.
497         (gl_thread_self_pointer): Update.
498
499 2011-07-07  Bruno Haible  <bruno@clisp.org>
500
501         signal-c++-tests: Check declaration of pthread_sigmask.
502         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
503         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
504         $(LIB_PTHREAD_SIGMASK).
505
506 2011-07-07  Bruno Haible  <bruno@clisp.org>
507
508         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
509         * lib/signal.in.h (pthread_sigmask): Override if
510         REPLACE_PTHREAD_SIGMASK is 1.
511         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
512         REPLACE_PTHREAD_SIGMASK.
513         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
514         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
515         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
516         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
517         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
518
519 2011-07-07  Bruno Haible  <bruno@clisp.org>
520
521         pthread_sigmask: Ensure declaration in <signal.h>.
522         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
523         include <pthread.h>.
524         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
525         problem.
526
527 2011-07-07  Bruno Haible  <bruno@clisp.org>
528
529         pthread_sigmask: Document the module.
530         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
531
532 2011-07-07  Bruno Haible  <bruno@clisp.org>
533
534         pthread_sigmask: Follow gnulib conventions.
535         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
536         gl_PTHREAD_SIGMASK.
537         * modules/pthread_sigmask (configure.ac): Update.
538
539 2011-07-07  Bruno Haible  <bruno@clisp.org>
540
541         pthread_sigmask: Make declaration C++ safe.
542         * lib/signal.in.h: In two special conditions, just do an #include_next.
543         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
544         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
545         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
546         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
547         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
548         not REPLACE_PTHREAD_MASK.
549         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
550         not REPLACE_PTHREAD_MASK.
551         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
552
553 2011-07-07  Bruno Haible  <bruno@clisp.org>
554
555         pthread_sigmask: Fix return value.
556         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
557         * lib/pthread_sigmask.c: New file.
558         * modules/pthread_sigmask (Files): Add it.
559         (configure.ac): Invoke AC_LIBOBJ.
560
561 2011-07-07  Eric Blake  <eblake@redhat.com>
562
563         getopt: more portable argv creation
564         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
565         const, use char arrays rather than strings.
566         Suggested by Paul Eggert.
567
568 2011-07-07  Bruno Haible  <bruno@clisp.org>
569
570         Tests for module 'sigprocmask'.
571         * modules/sigprocmask-tests: New file.
572         * tests/test-sigprocmask.c: New file.
573
574 2011-07-07  Bruno Haible  <bruno@clisp.org>
575
576         float tests: Tweak.
577         * tests/test-float.c (main): Tweak skip message.
578
579 2011-07-07  Eric Blake  <eblake@redhat.com>
580
581         getopt: avoid compiler warning during configure
582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
583         assigning string literals to non-const pointer.
584
585         getopt-gnu: avoid crash in glibc getopt
586         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
587         * tests/test-getopt.h (test_getopt): Enhance test.
588         * tests/test-getopt_long.h (test_getopt_long): Likewise.
589         * doc/posix-functions/getopt.texi (getopt): Document it.
590         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
591         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
592         Likewise.
593
594 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
595
596         getopt: handle W; without long options in getopt [BZ #12922]
597         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
598         but no long options are defined, just return 'W'.
599
600 2011-07-07  Bruno Haible  <bruno@clisp.org>
601
602         Avoid literal tabs.
603         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
604         variable containing a tab instead of a literal tab.
605         Reported by Jim Meyering.
606
607 2011-07-07  Bruno Haible  <bruno@clisp.org>
608
609         Comments.
610         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
611
612 2011-07-06  Bruno Haible  <bruno@clisp.org>
613
614         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
615         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
616         <winsock2.h>.
617         (rpl_fd_isset, FD_ISSET): New definitions, copied from
618         lib/sys_socket.in.h.
619         (close, gethostname): Hide declarations from <winsock2.h>.
620         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
621         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
622         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
623         (select): Don't override if gnulib's <sys/select.h> was already
624         included.
625         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
626         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
627         setsockopt, shutdown, select): Tweak indentation.
628
629 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
630
631         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
632         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
633         in an application that does not use the sys_select module.
634
635 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
636
637         poll: do not return 0 on timeout=-1
638         * lib/poll.c: Loop with yield if no events occured
639
640 2011-07-06  Eric Blake  <eblake@redhat.com>
641
642         pthread_sigmask: always replace when not using pthread
643         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
644         replacement when using some threading other than pthread.  Fix
645         logic bug.
646
647 2011-07-06  Bruno Haible  <bruno@clisp.org>
648
649         Comments.
650         * m4/printf.m4: Update comments about mingw.
651
652 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
653
654         sys_select: define sigset_t more portably
655         * lib/sys_select.in.h: Always include <sys/types.h>, since
656         we now need sigset_t and mingw defines it there.
657         Include <signal.h> before split inclusion guard, to avoid
658         mishaps on Solaris, whose <signal.h> eventually includes us.
659         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
660         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
661         which come from ...
662         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
663         gl_CHECK_TYPE_SIGSET_T.
664         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
665         does the real work.
666         * modules/sys_select (Depends-on): Add 'signal'.
667
668         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
669         Suggested by Bruno Haible.
670
671         pselect: Use pthread_sigmask, not sigprocmask.
672         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
673         multithreaded apps better than sigprocmask does.
674         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
675         sigprocmask directly.
676
677 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
678
679         * lib/pselect.c (pselect): Use plain name, without "rpl_".
680         Don't #undef,  since we don't need any underlying pselect.
681         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
682         (Depends-on): Add select.
683         (Link): Add $(LIBSOCKET).
684         These changes suggested by Bruno Haible.
685
686         pselect: document better
687         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
688         * doc/posix-functions/pselect.texi (pselect): Document new module.
689
690         pthread_sigmask: new module
691         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
692         * doc/posix-functions/pthread_sigmask.texi: Document new module.
693         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
694         This is done only as a macro; I don't know how well that'll
695         work for C++.  Move <sys/types.h> include before the include_next,
696         to avoid mishap on Solaris.
697         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
698         * modules/signal (Makefile.am): Substitute the check's results.
699         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
700
701         test-pselect: new module
702         * modules/pselect-tests, tests/test-pselect.c: New files.
703         * tests/test-select.c, tests/test-sys_select-c++.cc:
704         If TEST_PSELECT is defined, test pselect instead of testing select.
705
706         * tests/test-sys_select.c (sigset_t): Test for it, too.
707         Suggested by Bruno Haible.
708
709 2011-07-05  Eric Blake  <eblake@redhat.com>
710
711         snprintf: guarantee %1$d, for libintl
712         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
713         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
714         * doc/posix-functions/snprintf.texi (snprintf): Update.
715         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
716         * tests/test-snprintf.c (main): Enhance test.
717         * tests/test-vsnprintf.c (main): Likewise.
718
719 2011-07-05  Jim Meyering  <meyering@redhat.com>
720
721         maint: exempt stdio-read.c and stdio-write.c from the cppi check
722         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
723         per Bruno's request, to accommodate this idiom (no space after "#")
724         even when the function is inside an #if block:
725         char *
726         gets (char *s)
727         #undef gets
728         {
729           ...
730         }
731
732 2011-07-04  Jim Meyering  <meyering@redhat.com>
733
734         maint: indent with spaces, not TABs, and add a rule to check this
735         * tests/test-userspec.c: Indent with spaces, not TABs.
736         * tests/test-argp.c: Likewise.
737         * tests/test-c-stack2.sh: Likewise.
738         * tests/test-parse-duration.sh: Likewise
739         * m4/strtod.m4: Likewise.
740         * m4/alloca.m4: Likewise.
741         * m4/pselect.m4: Likewise.
742         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
743
744 2011-07-03  Jim Meyering  <meyering@redhat.com>
745
746         maint.mk: correct omissions in prohibit_argmatch_without_use check
747         This rule would mistakenly report that argmatch.h is included without
748         use even when both the argmatch and invalid_arg macro were used.
749         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
750         of argmatch and invalid_arg.
751
752 2011-07-03  Bruno Haible  <bruno@clisp.org>
753
754         Comments about EINTR.
755         * lib/safe-read.h: Explain the purpose of this module.
756         * lib/safe-write.h: Likewise.
757         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
758         module.
759         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
760         module.
761         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
762
763 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
764
765         xnanosleep: Rewrite to use new dtotimespec module.
766         It has the conversion code that used to be in xnanosleep.
767         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
768         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
769         (TIME_T_MAX): Remove.
770         (xnanosleep): Rewrite in terms of dtotimespec.
771         * modules/xnanosleep (Depends-on): Add dtotimespec.
772         Remove intprops, stdbool.
773
774         timespec-add, timespec-sub: new modules
775         * lib/timespec.h (timespec_add, timespec_sub): New decls.
776         * lib/timespec-add.c, lib/timespec-sub.c:
777         * modules/timespec-add, modules/timespec-sub: New files.
778
779         dtotimespec: new module
780         * lib/timespec.h (dtotimespec): New decl.
781         * lib/dtotimespec.c, modules/dtotimespec: New files.
782
783         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
784
785         pselect: new module
786         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
787         (pselect): New decls.
788         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
789         since the standard pselect decl uses 'restrict'.
790         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
791         HAVE_PSELECT, REPLACE_PSELECT.
792         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
793         HAVE_PSELECT, REPLACE_PSELECT.
794         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
795
796         sys_select: don't depend on sys_socket
797         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
799         This fix works on GNU and GNU-like platforms, but has not been tested
800         on native Windows.
801         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
802         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
803         gl_HEADER_SYS_SOCKET.
804         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
805         gl_PREREQ_SYS_H_WINSOCK2.
806
807 2011-06-29  Eric Blake  <eblake@redhat.com>
808
809         pipe2: fix C89 compile problem
810         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
811         Reported by Bruno Haible.
812
813         pipe, pipe2: don't corrupt fd on error
814         * lib/pipe.c (pipe): Leave fd unchanged on error.
815         * lib/pipe2.c (pipe2): Likewise.
816         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
817         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
818
819 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
820
821         mmap-anon: do not use regular expressions inadvertently
822         * m4/mmap-anon.m4: Remove trailing period from strings sought
823         in the output.
824
825 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
826
827         nanosleep: fix integer overflow problem
828         * lib/nanosleep.c (my_usleep): Don't assume signed integer
829         arithmetic wraps around on overflow.
830
831         nanosleep: simplify carrying
832         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
833         first call to the underyling nanosleep, not for the last one.
834         This doesn't fix any bugs, but it simplifies the computation of
835         the remaining delay.  Found while auditing integer overflow issues.
836
837         dup2: remove test for existence of fcntl
838         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
839         "#if HAVE_FCNTL", in the configure-time test program.
840         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
841         and therefore speeds up "configure" a bit.  Found while
842         adding the dup2 module to Emacs.
843
844 2011-06-24  Eric Blake  <eblake@redhat.com>
845
846         maint.mk: enhance useless header checks
847         * top/maint.mk (_sc_header_without_use): Check both include
848         styles.
849         (sc_prohibit_assert_without_use)
850         (sc_prohibit_close_stream_without_use)
851         (sc_prohibit_getopt_without_use)
852         (sc_prohibit_quotearg_without_use)
853         (sc_prohibit_quote_without_use)
854         (sc_prohibit_long_options_without_use)
855         (sc_prohibit_inttostr_without_use)
856         (sc_prohibit_ignore_value_without_use)
857         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
858         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
859         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
860         (sc_prohibit_hash_pjw_without_use)
861         (sc_prohibit_safe_read_without_use)
862         (sc_prohibit_argmatch_without_use)
863         (sc_prohibit_canonicalize_without_use)
864         (sc_prohibit_root_dev_ino_without_use)
865         (sc_prohibit_openat_without_use)
866         (sc_prohibit_c_ctype_without_use)
867         (sc_prohibit_signal_without_use)
868         (sc_prohibit_stdio--_without_use)
869         (sc_prohibit_stdio-safer_without_use)
870         (sc_prohibit_strings_without_use)
871         (sc_prohibit_intprops_without_use)
872         (sc_prohibit_stddef_without_use)
873         (sc_prohibit_xfreopen_without_use): Update clients.
874
875 2011-06-24  Jim Meyering  <meyering@redhat.com>
876
877         syntax-check: keep one maint.mk rule in sync with its header
878         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
879         of the bug Eric has just fixed, with today's commit 25e4c2ec.
880         I prefer to avoid temporary files here, so use <(...), but that
881         is not supported by /bin/sh, so...
882         (SHELL): Define to /bin/bash.
883
884 2011-06-24  Eric Blake  <eblake@redhat.com>
885
886         maint.mk: update sc_prohibit_intprops_without_use
887         * top/maint.mk (_intprops_names): Match recent changes.
888
889 2011-06-24  Bruno Haible  <bruno@clisp.org>
890
891         strerror-override: No-op tweak.
892         * lib/strerror-override.h (strerror_override): Reorder conditions,
893         for consistency with lib/strerror-override.c.
894
895 2011-06-23  Eric Blake  <eblake@redhat.com>
896
897         maint.mk: test further PATH_MAX issues
898         * top/maint.mk (sc_prohibit_path_max_array): Rename...
899         (sc_prohibit_path_max_allocation): ...and also test alloca.
900         Suggested by Jim Meyering.
901
902 2011-06-22  Eric Blake  <eblake@redhat.com>
903
904         maint.mk: add syntax-check to avoid char[PATH_MAX]
905         * top/maint.mk (sc_prohibit_path_max_array): New rule.
906
907         stat: be robust to PATH_MAX definition
908         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
909         * modules/stat (Depends-on): Add verify.
910
911         link: work around IRIX bug
912         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
913         * lib/link.c (rpl_link): Work around it.
914         * tests/test-link.h (test_link): Enhance test.
915         * doc/posix-functions/link.texi (link): Document the bug.
916
917         getopt: silence clang warning
918         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
919         dereference.
920         Reported by Gustavo Martin Domato.
921
922 2011-06-22  Jim Meyering  <meyering@redhat.com>
923
924         bootstrap: do not insert a blank line into each .gitignore file
925         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
926
927 2011-06-21  Eric Blake  <eblake@redhat.com>
928
929         perror: test for output mismatch
930         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
931         perror on IRIX.
932
933         strerror_r: fix OpenBSD behavior on out-of-range
934         * lib/strerror_r.c (strerror_r): Always use maximal string.
935         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
936
937         strerror_r: fix OpenBSD behavior on 0
938         * lib/strerror-override.c (strerror_override): Also override 0
939         when needed.
940         * lib/strerror-override.h (strerror_override): Likewise.
941         * lib/strerror.c (strerror): Simplify, now that 0 override is done
942         earlier.
943         * lib/strerror_r.c (strerror_r): Likewise.
944         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
945         behavior...
946         (gl_FUNC_STRERROR_0): ...into new macro.
947         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
948         is overridden.
949         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
950         * modules/strerror-override (Files): Add strerror.m4.
951         (configure.ac): Also provide override for 0 when needed.
952         * doc/posix-functions/strerror.texi (strerror): Document this.
953         * doc/posix-functions/perror.texi (perror): Likewise.
954
955         perror: adjust array size
956         * modules/perror (Depends-on): Add strerror-override.
957         * lib/perror.c (perror): Use it to avoid magic number.
958
959         strerror-override: reduce size
960         * lib/strerror-override.c (strerror_override): Use fewer lines.
961
962 2011-06-20  Bruno Haible  <bruno@clisp.org>
963
964         pathmax: Ensure correct value for PATH_MAX on HP-UX.
965         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
966
967 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
968
969         alloca: port to compilers that can optimize like GCC 4.6.0
970         * lib/alloca.c (find_stack_direction): New signature, taken from
971         Autoconf git.  This works with GCC 4.6.0.  This code should never
972         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
973         be used with other compilers that optimize as well as GCC 4.6.0 does.
974         (alloca): Adjust to new signature.
975         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
976         New macro, which patches Autoconf in a similar way.
977
978         c-stack: stop worrying about stack direction
979         * lib/c-stack.c (find_stack_direction): Remove.
980         (segv_handler): Don't worry about stack direction growth, as it's
981         too much of a pain to configure this correctly, given how compilers
982         are optimizing-away our stack-growth detection code.  Instead, assume
983         that any access to just before or just after the stack is OK.
984         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
985         Don't require AC_FUNC_ALLOCA; no longer needed.
986
987 2011-06-20  Eric Blake  <eblake@redhat.com>
988
989         test-stat: don't allocate PATH_MAX bytes
990         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
991         PATH_MAX-sized buffer.
992         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
993         * modules/stat-tests (Depends-on): Likewise.
994         * tests/test-fstatat.c (includes): Drop pathmax.h.
995         * tests/test-stat.c (includes): Likewise.
996         Reported by Bruno Haible.
997
998 2011-06-20  Bruno Haible  <bruno@clisp.org>
999
1000         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
1001         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
1002         * lib/float.c: New file.
1003         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
1004         REPLACE_FLOAT_LDBL.
1005         * modules/float (Files): Add lib/float.c.
1006         (configure.ac): Invoke AC_LIBOBJ.
1007         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
1008
1009 2011-06-20  Bruno Haible  <bruno@clisp.org>
1010
1011         Tests for module 'float'.
1012         * modules/float-tests: New file.
1013         * tests/test-float.c: New file.
1014
1015 2011-06-19  Bruno Haible  <bruno@clisp.org>
1016
1017         isinf: Coding style.
1018         * lib/isinf.c: Use GNU coding style.
1019
1020 2011-06-19  Bruno Haible  <bruno@clisp.org>
1021
1022         linkat test: Avoid test failure on AIX 7.1.
1023         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
1024         * tests/test-link.h (test_link): Likewise.
1025
1026 2011-06-19  Bruno Haible  <bruno@clisp.org>
1027
1028         pread test: Avoid test failure on OpenBSD 4.9.
1029         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
1030
1031 2011-06-19  Bruno Haible  <bruno@clisp.org>
1032
1033         sprintf-posix: Fix test failure on AIX 7.1.
1034         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
1035         * doc/posix-functions/dprintf.texi: Mention limited precision problem
1036         on AIX.
1037         * doc/posix-functions/fprintf.texi: Likewise.
1038         * doc/posix-functions/printf.texi: Likewise.
1039         * doc/posix-functions/snprintf.texi: Likewise.
1040         * doc/posix-functions/sprintf.texi: Likewise.
1041         * doc/posix-functions/vdprintf.texi: Likewise.
1042         * doc/posix-functions/vfprintf.texi: Likewise.
1043         * doc/posix-functions/vprintf.texi: Likewise.
1044         * doc/posix-functions/vsnprintf.texi: Likewise.
1045         * doc/posix-functions/vsprintf.texi: Likewise.
1046
1047 2011-06-19  Bruno Haible  <bruno@clisp.org>
1048
1049         roundl-ieee: Fix test failure on AIX 7.1.
1050         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
1051         * doc/posix-functions/roundl.texi: Mention problem with negative
1052         arguments.
1053
1054 2011-06-19  Bruno Haible  <bruno@clisp.org>
1055
1056         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1057         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
1058         * doc/posix-functions/round.texi: Mention problem with negative
1059         arguments.
1060         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
1061
1062 2011-06-19  Bruno Haible  <bruno@clisp.org>
1063
1064         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1065         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
1066         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
1067         * doc/posix-functions/roundf.texi: Mention problem with negative
1068         arguments.
1069         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
1070
1071 2011-06-19  Bruno Haible  <bruno@clisp.org>
1072
1073         ceilf-ieee: Work around bug on MacOS X 10.5.
1074         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
1075
1076         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
1077         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
1078         IEEE compliant, avoid compiler optimizations.
1079         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
1080         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1081         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
1082         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1083         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1084         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1085         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1086         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1087         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1088         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1089
1090 2011-06-19  Bruno Haible  <bruno@clisp.org>
1091
1092         ceilf-ieee: Work around bug on AIX 7.1.
1093         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
1094         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
1095
1096 2011-06-19  Bruno Haible  <bruno@clisp.org>
1097
1098         ceil-ieee: Work around bug on AIX 7.1.
1099         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
1100         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
1101
1102 2011-06-18  Bruno Haible  <bruno@clisp.org>
1103
1104         fsync test: Avoid test failure on MacOS X and AIX.
1105         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
1106         EINVAL.
1107
1108 2011-06-18  Bruno Haible  <bruno@clisp.org>
1109
1110         openat, fdopendir tests: Fix link errors.
1111         * modules/openat-tests (Depends-on): Add progname.
1112         * modules/fdopendir-tests (Depends-on): Likewise.
1113         * tests/test-fchownat.c: Include progname.h.
1114         (main): Call set_program_name.
1115         * tests/test-fstatat.c: Include progname.h.
1116         (main): Call set_program_name.
1117         * tests/test-mkdirat.c: Include progname.h.
1118         (main): Call set_program_name.
1119         * tests/test-openat.c: Include progname.h.
1120         (main): Call set_program_name.
1121         * tests/test-unlinkat.c: Include progname.h.
1122         (main): Call set_program_name.
1123         * tests/test-fdopendir.c: Include progname.h.
1124         (main): Call set_program_name.
1125
1126 2011-06-18  Bruno Haible  <bruno@clisp.org>
1127
1128         Doc update.
1129         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
1130         HP-UX.
1131         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
1132
1133 2011-06-18  Bruno Haible  <bruno@clisp.org>
1134
1135         getcwd tests: Avoid compilation error on HP-UX 11.31.
1136         * modules/getcwd-tests (Depends-on): Add pathmax.
1137         * tests/test-getcwd.c: Include pathmax.h.
1138
1139 2011-06-18  Bruno Haible  <bruno@clisp.org>
1140
1141         isfinite, isinf: Fix link error on AIX 6 and 7.
1142         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
1143         needed, also test the macro with a 'float' argument.
1144         * m4/isinf.m4 (gl_ISINF): Likewise.
1145
1146 2011-06-18  Bruno Haible  <bruno@clisp.org>
1147
1148         getloadavg: Don't clobber LIBS. Regression from previous commit.
1149         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
1150         AC_CHECK_LIB from here...
1151         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
1152         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
1153         gl_func_getloadavg_done.
1154         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1155
1156 2011-06-18  Bruno Haible  <bruno@clisp.org>
1157
1158         clean-temp: Improve documentation.
1159         * lib/clean-temp.h: Explain better how to use this module.
1160         Reported by John Darrington <john@darrington.wattle.id.au>.
1161
1162 2011-06-17  Bruno Haible  <bruno@clisp.org>
1163
1164         pread, pwrite: Avoid cc warning on AIX.
1165         * lib/unistd.in.h (pread): Undefine before defining as a macro.
1166         (pwrite): Likewise.
1167
1168 2011-06-17  Bruno Haible  <bruno@clisp.org>
1169
1170         spawn-pipe tests: Fix link error.
1171         * tests/test-spawn-pipe-child.c: Undefine fprintf.
1172         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1173
1174 2011-06-17  Bruno Haible  <bruno@clisp.org>
1175
1176         Tests: Remove unnecessary dependency.
1177         * modules/canonicalize-tests (Depends-on): Remove progname.
1178         * modules/chown-tests (Depends-on): Likewise.
1179         * modules/dirname-tests (Depends-on): Likewise.
1180         * modules/fdopendir-tests (Depends-on): Likewise.
1181         * modules/fdutimensat-tests (Depends-on): Likewise.
1182         * modules/hash-tests (Depends-on): Likewise.
1183         * modules/lchown-tests (Depends-on): Likewise.
1184         * modules/linkat-tests (Depends-on): Likewise.
1185         * modules/renameat-tests (Depends-on): Likewise.
1186         * modules/spawn-pipe-tests (Depends-on): Likewise.
1187         * modules/utimensat-tests (Depends-on): Likewise.
1188
1189 2011-06-17  Bruno Haible  <bruno@clisp.org>
1190
1191         spawn-pipe tests: Fix link error.
1192         * tests/test-spawn-pipe-child.c: Undefine fflush.
1193
1194 2011-06-17  Bruno Haible  <bruno@clisp.org>
1195
1196         Fix tests link errors.
1197         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
1198         * modules/chown-tests (Makefile.am): Don't link test-chown with
1199         LIBINTL.
1200         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
1201         LIBINTL.
1202         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
1203         LIBINTL.
1204         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
1205         LIBINTL.
1206
1207 2011-06-16  Bruno Haible  <bruno@clisp.org>
1208
1209         crypto/gc-sha1: Fix recent regression.
1210         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
1211         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
1212
1213         crypto/gc-md5: Fix recent regression.
1214         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
1215
1216         crypto/gc-md4: Fix recent regression.
1217         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
1218         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
1219
1220         crypto/gc-arctwo: Fix recent regression.
1221         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
1222         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
1223
1224         crypto/gc-rijndael: Fix recent regression.
1225         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
1226         (configure.ac): Invoke AC_LIBOBJ here.
1227         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
1228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1229
1230         crypto/gc-hmac-sha1: Fix recent regression.
1231         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
1232         (configure.ac): Invoke AC_LIBOBJ here.
1233         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
1234         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1235
1236         crypto/gc-hmac-md5: Fix recent regression.
1237         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
1238         (configure.ac): Invoke AC_LIBOBJ here.
1239         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
1240         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1241
1242         crypto/gc-des: Fix recent regression.
1243         * modules/crypto/gc-des (Files): Remove m4/des.m4.
1244         (configure.ac): Invoke AC_LIBOBJ here.
1245         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
1246         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1247
1248         crypto/gc-arcfour: Fix recent regression.
1249         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
1250         (configure.ac): Invoke AC_LIBOBJ here.
1251         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
1252         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1253
1254 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1255
1256         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
1257         After the 2011-05-21 change, this macro requires
1258         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
1259         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1260
1261 2011-06-16  Bruno Haible  <bruno@clisp.org>
1262
1263         fprintftime: Move AC_LIBOBJ invocations to module description.
1264         * m4/fprintftime.m4: Remove file.
1265         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
1266         (configure.ac): Remove gl_FPRINTFTIME call.
1267         (Makefile.am): Augment lib_SOURCES.
1268         Reported by Jim Meyering.
1269
1270 2011-06-16  Bruno Haible  <bruno@clisp.org>
1271
1272         tmpfile-safer: Finish 2011-05-23 commit.
1273         * m4/stdio-safer.m4: Really remove file.
1274         Reported by Jim Meyering.
1275
1276 2011-06-16  Bruno Haible  <bruno@clisp.org>
1277
1278         syntax-check: Fix typo.
1279         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
1280         printf-posix.m4.
1281         Reported by Jim Meyering.
1282
1283 2011-06-13  Jim Meyering  <meyering@redhat.com>
1284
1285         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
1286         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
1287
1288 2011-05-23  Bruno Haible  <bruno@clisp.org>
1289
1290         yesno: Move AC_LIBOBJ invocations to module description.
1291         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
1292         * modules/yesno (Makefile.am): Augment lib_SOURCES.
1293
1294 2011-05-23  Bruno Haible  <bruno@clisp.org>
1295
1296         xstrtol: Move AC_LIBOBJ invocations to module description.
1297         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1298         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1299
1300 2011-05-23  Bruno Haible  <bruno@clisp.org>
1301
1302         xstrtold: Move AC_LIBOBJ invocations to module description.
1303         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1304         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1305
1306 2011-05-23  Bruno Haible  <bruno@clisp.org>
1307
1308         xstrtod: Move AC_LIBOBJ invocations to module description.
1309         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1310         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1311
1312 2011-05-23  Bruno Haible  <bruno@clisp.org>
1313
1314         xnanosleep: Move AC_LIBOBJ invocations to module description.
1315         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1316         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1317
1318 2011-05-23  Bruno Haible  <bruno@clisp.org>
1319
1320         xgetcwd: Move AC_LIBOBJ invocations to module description.
1321         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1322         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1323
1324 2011-05-23  Bruno Haible  <bruno@clisp.org>
1325
1326         xalloc: Move AC_LIBOBJ invocations to module description.
1327         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1328         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1329
1330 2011-05-23  Bruno Haible  <bruno@clisp.org>
1331
1332         write-any-file: Move AC_LIBOBJ invocations to module description.
1333         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1334         invocation.
1335         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1336
1337 2011-05-23  Bruno Haible  <bruno@clisp.org>
1338
1339         utimens: Move AC_LIBOBJ invocations to module description.
1340         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1341         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1342
1343 2011-05-23  Bruno Haible  <bruno@clisp.org>
1344
1345         utimecmp: Move AC_LIBOBJ invocations to module description.
1346         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1347         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1348
1349 2011-05-23  Bruno Haible  <bruno@clisp.org>
1350
1351         userspec: Move AC_LIBOBJ invocations to module description.
1352         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1353         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1354
1355 2011-05-23  Bruno Haible  <bruno@clisp.org>
1356
1357         unlinkdir: Move AC_LIBOBJ invocations to module description.
1358         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1359         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1360
1361 2011-05-23  Bruno Haible  <bruno@clisp.org>
1362
1363         unistd-safer: Move AC_LIBOBJ invocations to module description.
1364         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1365         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1366
1367 2011-05-23  Bruno Haible  <bruno@clisp.org>
1368
1369         tempname: Move AC_LIBOBJ invocations to module description.
1370         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1371         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1372
1373 2011-05-23  Bruno Haible  <bruno@clisp.org>
1374
1375         strftime: Move AC_LIBOBJ invocations to module description.
1376         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1377         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1378
1379 2011-05-23  Bruno Haible  <bruno@clisp.org>
1380
1381         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1382         * m4/stdlib-safer.m4: Remove file.
1383         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1384         (configure.ac): Remove gl_STDLIB_SAFER call.
1385         (Makefile.am): Augment lib_SOURCES.
1386
1387 2011-05-23  Bruno Haible  <bruno@clisp.org>
1388
1389         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1390         * m4/stdio-safer.m4: Remove file.
1391         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1392         (configure.ac): Remove gl_TMPFILE_SAFER call.
1393         (Makefile.am): Augment lib_SOURCES.
1394
1395 2011-05-23  Bruno Haible  <bruno@clisp.org>
1396
1397         popen-safer: Move AC_LIBOBJ invocations to module description.
1398         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1399         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1400         (configure.ac): Remove gl_POPEN_SAFER call.
1401         (Makefile.am): Augment lib_SOURCES.
1402
1403 2011-05-23  Bruno Haible  <bruno@clisp.org>
1404
1405         freopen-safer: Move AC_LIBOBJ invocations to module description.
1406         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1407         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1408         (configure.ac): Remove gl_FREOPEN_SAFER call.
1409         (Makefile.am): Augment lib_SOURCES.
1410
1411 2011-05-23  Bruno Haible  <bruno@clisp.org>
1412
1413         fopen-safer: Move AC_LIBOBJ invocations to module description.
1414         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1415         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1416         (configure.ac): Remove gl_FOPEN_SAFER call.
1417         (Makefile.am): Augment lib_SOURCES.
1418
1419 2011-05-23  Bruno Haible  <bruno@clisp.org>
1420
1421         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1422         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1423         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1424
1425 2011-05-23  Bruno Haible  <bruno@clisp.org>
1426
1427         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1428         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1429         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1430
1431 2011-05-23  Bruno Haible  <bruno@clisp.org>
1432
1433         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1434         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1435         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1436
1437 2011-05-23  Bruno Haible  <bruno@clisp.org>
1438
1439         settime: Move AC_LIBOBJ invocations to module description.
1440         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1441         * modules/settime (Makefile.am): Augment lib_SOURCES.
1442
1443 2011-05-23  Bruno Haible  <bruno@clisp.org>
1444
1445         savedir: Move AC_LIBOBJ invocations to module description.
1446         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1447         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1448
1449 2011-05-23  Bruno Haible  <bruno@clisp.org>
1450
1451         save-cwd: Move AC_LIBOBJ invocations to module description.
1452         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1453         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1454
1455 2011-05-23  Bruno Haible  <bruno@clisp.org>
1456
1457         same: Move AC_LIBOBJ invocations to module description.
1458         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1459         * modules/same (Makefile.am): Augment lib_SOURCES.
1460
1461 2011-05-23  Bruno Haible  <bruno@clisp.org>
1462
1463         safe-write: Move AC_LIBOBJ invocations to module description.
1464         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1465         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1466         instead of gl_SAFE_WRITE.
1467         (Makefile.am): Augment lib_SOURCES.
1468
1469 2011-05-23  Bruno Haible  <bruno@clisp.org>
1470
1471         safe-read: Move AC_LIBOBJ invocations to module description.
1472         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1473         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1474         of gl_SAFE_READ.
1475         (Makefile.am): Augment lib_SOURCES.
1476
1477 2011-05-23  Bruno Haible  <bruno@clisp.org>
1478
1479         safe-alloc: Move AC_LIBOBJ invocations to module description.
1480         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1481         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1482
1483 2011-05-23  Bruno Haible  <bruno@clisp.org>
1484
1485         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1486         * m4/rijndael.m4: Remove file.
1487         * modules/crypto/rijndael (Files): Remove it.
1488         (configure.ac): Remove gl_RIJNDAEL call.
1489         (Makefile.am): Augment lib_SOURCES.
1490
1491 2011-05-23  Bruno Haible  <bruno@clisp.org>
1492
1493         readtokens: Move AC_LIBOBJ invocations to module description.
1494         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1495         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1496
1497 2011-05-23  Bruno Haible  <bruno@clisp.org>
1498
1499         read-file: Move AC_LIBOBJ invocations to module description.
1500         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1501         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1502         of gl_FUNC_READ_FILE.
1503         (Makefile.am): Augment lib_SOURCES.
1504
1505 2011-05-23  Bruno Haible  <bruno@clisp.org>
1506
1507         quotearg: Move AC_LIBOBJ invocations to module description.
1508         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1509         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1510
1511 2011-05-23  Bruno Haible  <bruno@clisp.org>
1512
1513         quote: Move AC_LIBOBJ invocations to module description.
1514         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1515         * modules/quote (Makefile.am): Augment lib_SOURCES.
1516
1517 2011-05-23  Bruno Haible  <bruno@clisp.org>
1518
1519         posixver: Move AC_LIBOBJ invocations to module description.
1520         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1521         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1522
1523 2011-05-23  Bruno Haible  <bruno@clisp.org>
1524
1525         posixtm: Move AC_LIBOBJ invocations to module description.
1526         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1527         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1528
1529 2011-05-23  Bruno Haible  <bruno@clisp.org>
1530
1531         physmem: Move AC_LIBOBJ invocations to module description.
1532         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1533         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1534
1535 2011-05-23  Bruno Haible  <bruno@clisp.org>
1536
1537         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1538         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1539         invocation.
1540         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1541
1542 2011-05-23  Bruno Haible  <bruno@clisp.org>
1543
1544         mpsort: Move AC_LIBOBJ invocations to module description.
1545         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1546         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1547
1548 2011-05-23  Bruno Haible  <bruno@clisp.org>
1549
1550         modechange: Move AC_LIBOBJ invocations to module description.
1551         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1552         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1553
1554 2011-05-23  Bruno Haible  <bruno@clisp.org>
1555
1556         mkdir-p: Move AC_LIBOBJ invocations to module description.
1557         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1558         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1559
1560 2011-05-23  Bruno Haible  <bruno@clisp.org>
1561
1562         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1563         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1564         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1565
1566 2011-05-23  Bruno Haible  <bruno@clisp.org>
1567
1568         mgetgroups: Move AC_LIBOBJ invocations to module description.
1569         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1570         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1571
1572 2011-05-23  Bruno Haible  <bruno@clisp.org>
1573
1574         memxor: Move AC_LIBOBJ invocations to module description.
1575         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1576         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1577
1578 2011-05-23  Bruno Haible  <bruno@clisp.org>
1579
1580         memcoll: Move AC_LIBOBJ invocations to module description.
1581         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1582         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1583
1584 2011-05-23  Bruno Haible  <bruno@clisp.org>
1585
1586         memcasecmp: Move AC_LIBOBJ invocations to module description.
1587         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1588         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1589
1590 2011-05-23  Bruno Haible  <bruno@clisp.org>
1591
1592         crypto/md5: Move AC_LIBOBJ invocations to module description.
1593         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1594         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1595
1596 2011-05-23  Bruno Haible  <bruno@clisp.org>
1597
1598         crypto/md4: Move AC_LIBOBJ invocations to module description.
1599         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1600         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1601
1602 2011-05-23  Bruno Haible  <bruno@clisp.org>
1603
1604         crypto/md2: Move AC_LIBOBJ invocations to module description.
1605         * m4/md2.m4: Remove file.
1606         * modules/crypto/md2 (Files): Remove it.
1607         (configure.ac): Remove gl_MD2 call.
1608         (Makefile.am): Augment lib_SOURCES.
1609
1610 2011-05-23  Bruno Haible  <bruno@clisp.org>
1611
1612         long-options: Move AC_LIBOBJ invocations to module description.
1613         * m4/long-options.m4: Remove file.
1614         * modules/long-options (Files): Remove it.
1615         (configure.ac): Remove gl_LONG_OPTIONS call.
1616         (Makefile.am): Augment lib_SOURCES.
1617
1618 2011-05-23  Bruno Haible  <bruno@clisp.org>
1619
1620         i-ring: Move AC_LIBOBJ invocations to module description.
1621         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1622         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1623
1624 2011-05-23  Bruno Haible  <bruno@clisp.org>
1625
1626         idcache: Move AC_LIBOBJ invocations to module description.
1627         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1628         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1629
1630 2011-05-23  Bruno Haible  <bruno@clisp.org>
1631
1632         human: Move AC_LIBOBJ invocations to module description.
1633         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1634         * modules/human (Makefile.am): Augment lib_SOURCES.
1635
1636 2011-05-23  Bruno Haible  <bruno@clisp.org>
1637
1638         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1639         * m4/hmac-sha1.m4: Remove file.
1640         * modules/crypto/hmac-sha1 (Files): Remove it.
1641         (configure.ac): Remove gl_HMAC_SHA1 call.
1642         (Makefile.am): Augment lib_SOURCES.
1643
1644 2011-05-23  Bruno Haible  <bruno@clisp.org>
1645
1646         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1647         * m4/hmac-md5.m4: Remove file.
1648         * modules/crypto/hmac-md5 (Files): Remove it.
1649         (configure.ac): Remove gl_HMAC_MD5 call.
1650         (Makefile.am): Augment lib_SOURCES.
1651
1652 2011-05-23  Bruno Haible  <bruno@clisp.org>
1653
1654         hash: Move AC_LIBOBJ invocations to module description.
1655         * m4/hash.m4: Remove file.
1656         * modules/hash (Files): Remove it.
1657         (configure.ac): Remove gl_HASH call.
1658         (Makefile.am): Augment lib_SOURCES.
1659
1660 2011-05-23  Bruno Haible  <bruno@clisp.org>
1661
1662         hard-locale: Move AC_LIBOBJ invocations to module description.
1663         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1664         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1665
1666 2011-05-23  Bruno Haible  <bruno@clisp.org>
1667
1668         getugroups: Move AC_LIBOBJ invocations to module description.
1669         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1670         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1671
1672 2011-05-23  Bruno Haible  <bruno@clisp.org>
1673
1674         gettime: Move AC_LIBOBJ invocations to module description.
1675         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1676         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1677
1678 2011-05-23  Bruno Haible  <bruno@clisp.org>
1679
1680         getndelim2: Move AC_LIBOBJ invocations to module description.
1681         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1682         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1683
1684 2011-05-23  Bruno Haible  <bruno@clisp.org>
1685
1686         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1687         * m4/gc-pbkdf2-sha1.m4: Remove file.
1688         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1689         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1690         (Makefile.am): Augment lib_SOURCES.
1691
1692 2011-05-23  Bruno Haible  <bruno@clisp.org>
1693
1694         fts: Move AC_LIBOBJ invocations to module description.
1695         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1696         * modules/fts (configure.ac): ... to here.
1697
1698 2011-05-23  Bruno Haible  <bruno@clisp.org>
1699
1700         file-type: Move AC_LIBOBJ invocations to module description.
1701         * m4/file-type.m4: Remove file.
1702         * modules/file-type (Files): Remove it.
1703         (configure.ac): Remove gl_FILE_TYPE call.
1704         (Makefile.am): Augment lib_SOURCES.
1705
1706 2011-05-23  Bruno Haible  <bruno@clisp.org>
1707
1708         filenamecat*: Respect rules for use of AC_LIBOBJ.
1709         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1710         Remove AC_LIBOBJ invocation.
1711         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1712         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1713
1714 2011-05-23  Bruno Haible  <bruno@clisp.org>
1715
1716         filemode: Move AC_LIBOBJ invocations to module description.
1717         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1718         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1719
1720 2011-05-23  Bruno Haible  <bruno@clisp.org>
1721
1722         openat-safer: Move AC_LIBOBJ invocations to module description.
1723         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1724         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1725
1726 2011-05-23  Bruno Haible  <bruno@clisp.org>
1727
1728         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1729         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1730         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1731
1732 2011-05-23  Bruno Haible  <bruno@clisp.org>
1733
1734         exclude: Move AC_LIBOBJ invocations to module description.
1735         * m4/exclude.m4: Remove file.
1736         * modules/exclude (Files): Remove it.
1737         (configure.ac): Remove gl_EXCLUDE call.
1738         (Makefile.am): Augment lib_SOURCES.
1739
1740 2011-05-23  Bruno Haible  <bruno@clisp.org>
1741
1742         dirname*: Respect rules for use of AC_LIBOBJ.
1743         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1744         invocations.
1745         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1746         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1747
1748 2011-05-23  Bruno Haible  <bruno@clisp.org>
1749
1750         dirent-safer: Move AC_LIBOBJ invocations to module description.
1751         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1752         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1753
1754 2011-05-23  Bruno Haible  <bruno@clisp.org>
1755
1756         crypto/des: Move AC_LIBOBJ invocations to module description.
1757         * m4/des.m4: Remove file.
1758         * modules/crypto/des (Files): Remove it.
1759         (configure.ac): Remove gl_DES call.
1760         (Makefile.am): Augment lib_SOURCES.
1761
1762 2011-05-23  Bruno Haible  <bruno@clisp.org>
1763
1764         cycle-check: Move AC_LIBOBJ invocations to module description.
1765         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1766         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1767
1768 2011-05-23  Bruno Haible  <bruno@clisp.org>
1769
1770         c-strtold: Move AC_LIBOBJ invocations to module description.
1771         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1772         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1773
1774 2011-05-23  Bruno Haible  <bruno@clisp.org>
1775
1776         c-strtod: Move AC_LIBOBJ invocations to module description.
1777         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1778         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1779
1780 2011-05-23  Bruno Haible  <bruno@clisp.org>
1781
1782         crc: Move AC_LIBOBJ invocations to module description.
1783         * m4/crc.m4: Remove file.
1784         * modules/crc (Files): Remove it.
1785         (configure.ac): Remove gl_CRC call.
1786         (Makefile.am): Augment lib_SOURCES.
1787
1788 2011-05-23  Bruno Haible  <bruno@clisp.org>
1789
1790         close-stream: Move AC_LIBOBJ invocations to module description.
1791         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1792         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1793
1794 2011-05-23  Bruno Haible  <bruno@clisp.org>
1795
1796         closeout: Move AC_LIBOBJ invocations to module description.
1797         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1798         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1799
1800 2011-05-23  Bruno Haible  <bruno@clisp.org>
1801
1802         closein: Move AC_LIBOBJ invocations to module description.
1803         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1804         * modules/closein (Makefile.am): Augment lib_SOURCES.
1805
1806 2011-05-23  Bruno Haible  <bruno@clisp.org>
1807
1808         cloexec: Move AC_LIBOBJ invocations to module description.
1809         * m4/cloexec.m4: Remove file.
1810         * modules/cloexec (Files): Remove it.
1811         (configure.ac): Remove gl_CLOEXEC call.
1812         (Makefile.am): Augment lib_SOURCES.
1813
1814 2011-05-23  Bruno Haible  <bruno@clisp.org>
1815
1816         check-version: Move AC_LIBOBJ invocations to module description.
1817         * m4/check-version.m4: Remove file.
1818         * modules/check-version (Files): Remove it.
1819         (configure.ac): Remove gl_CHECK_VERSION call.
1820         (Makefile.am): Augment lib_SOURCES.
1821
1822 2011-05-23  Bruno Haible  <bruno@clisp.org>
1823
1824         chdir-safer: Move AC_LIBOBJ invocations to module description.
1825         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1826         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1827
1828 2011-05-23  Bruno Haible  <bruno@clisp.org>
1829
1830         canonicalize: Move AC_LIBOBJ invocations to module description.
1831         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1832         AC_LIBOBJ invocation.
1833         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1834
1835 2011-05-23  Bruno Haible  <bruno@clisp.org>
1836
1837         canon-host: Move AC_LIBOBJ invocations to module description.
1838         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1839         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1840         instead of gl_CANON_HOST.
1841         (Makefile.am): Augment lib_SOURCES.
1842
1843 2011-05-23  Bruno Haible  <bruno@clisp.org>
1844
1845         backupfile: Move AC_LIBOBJ invocations to module description.
1846         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1847         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1848
1849 2011-05-23  Bruno Haible  <bruno@clisp.org>
1850
1851         argmatch: Move AC_LIBOBJ invocations to module description.
1852         * m4/argmatch.m4: Remove file.
1853         * modules/argmatch (Files): Remove it.
1854         (configure.ac): Remove gl_ARGMATCH call.
1855         (Makefile.am): Augment lib_SOURCES.
1856
1857 2011-05-23  Bruno Haible  <bruno@clisp.org>
1858
1859         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1860         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1861         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1862
1863 2011-05-23  Bruno Haible  <bruno@clisp.org>
1864
1865         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1866         * m4/arcfour.m4: Remove file.
1867         * modules/crypto/arcfour (Files): Remove it.
1868         (configure.ac): Remove gl_ARCFOUR call.
1869         (Makefile.am): Augment lib_SOURCES.
1870
1871 2011-05-22  Bruno Haible  <bruno@clisp.org>
1872
1873         write: Move AC_LIBOBJ invocations to module description.
1874         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
1875         * modules/write (configure.ac): ... to here.
1876
1877 2011-05-22  Bruno Haible  <bruno@clisp.org>
1878
1879         wmemset: Move AC_LIBOBJ invocations to module description.
1880         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
1881         here...
1882         * modules/wmemset (configure.ac): ... to here.
1883
1884 2011-05-22  Bruno Haible  <bruno@clisp.org>
1885
1886         wmemmove: Move AC_LIBOBJ invocations to module description.
1887         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
1888         here...
1889         * modules/wmemmove (configure.ac): ... to here.
1890
1891 2011-05-22  Bruno Haible  <bruno@clisp.org>
1892
1893         wmemcpy: Move AC_LIBOBJ invocations to module description.
1894         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
1895         here...
1896         * modules/wmemcpy (configure.ac): ... to here.
1897
1898 2011-05-22  Bruno Haible  <bruno@clisp.org>
1899
1900         wmemcmp: Move AC_LIBOBJ invocations to module description.
1901         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
1902         here...
1903         * modules/wmemcmp (configure.ac): ... to here.
1904
1905 2011-05-22  Bruno Haible  <bruno@clisp.org>
1906
1907         wmemchr: Move AC_LIBOBJ invocations to module description.
1908         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
1909         here...
1910         * modules/wmemchr (configure.ac): ... to here.
1911
1912 2011-05-22  Bruno Haible  <bruno@clisp.org>
1913
1914         wcswidth: Move AC_LIBOBJ invocations to module description.
1915         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
1916         here...
1917         * modules/wcswidth (configure.ac): ... to here.
1918
1919 2011-05-22  Bruno Haible  <bruno@clisp.org>
1920
1921         wcwidth: Respect rules for use of AC_LIBOBJ.
1922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
1923         invocation from here...
1924         * modules/wcwidth (configure.ac): ... to here.
1925         (Depends-on): Update conditions.
1926
1927 2011-05-22  Bruno Haible  <bruno@clisp.org>
1928
1929         wctype: Move AC_LIBOBJ invocations to module description.
1930         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
1931         invocation from here...
1932         * modules/wctype (configure.ac): ... to here.
1933         (Depends-on): Update conditions.
1934
1935 2011-05-22  Bruno Haible  <bruno@clisp.org>
1936
1937         wctrans: Move AC_LIBOBJ invocations to module description.
1938         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
1939         invocation from here...
1940         * modules/wctrans (configure.ac): ... to here.
1941
1942 2011-05-22  Bruno Haible  <bruno@clisp.org>
1943
1944         wctomb: Move AC_LIBOBJ invocations to module description.
1945         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
1946         invocations from here...
1947         * modules/wctomb (configure.ac): ... to here.
1948
1949 2011-05-22  Bruno Haible  <bruno@clisp.org>
1950
1951         wctob: Move AC_LIBOBJ invocations to module description.
1952         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
1953         gl_PREREQ_WCTOB invocations from here...
1954         * modules/wctob (configure.ac): ... to here.
1955         (Depends-on): Update conditions.
1956
1957 2011-05-22  Bruno Haible  <bruno@clisp.org>
1958
1959         wcsxfrm: Move AC_LIBOBJ invocations to module description.
1960         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
1961         here...
1962         * modules/wcsxfrm (configure.ac): ... to here.
1963
1964 2011-05-22  Bruno Haible  <bruno@clisp.org>
1965
1966         wcstok: Move AC_LIBOBJ invocations to module description.
1967         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
1968         * modules/wcstok (configure.ac): ... to here.
1969
1970 2011-05-22  Bruno Haible  <bruno@clisp.org>
1971
1972         wcsstr: Move AC_LIBOBJ invocations to module description.
1973         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
1974         * modules/wcsstr (configure.ac): ... to here.
1975
1976 2011-05-22  Bruno Haible  <bruno@clisp.org>
1977
1978         wcsspn: Move AC_LIBOBJ invocations to module description.
1979         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
1980         * modules/wcsspn (configure.ac): ... to here.
1981
1982 2011-05-22  Bruno Haible  <bruno@clisp.org>
1983
1984         wcsrtombs: Move AC_LIBOBJ invocations to module description.
1985         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
1986         gl_PREREQ_WCSRTOMBS invocations from here...
1987         * modules/wcsrtombs (configure.ac): ... to here.
1988
1989 2011-05-22  Bruno Haible  <bruno@clisp.org>
1990
1991         wcsrchr: Move AC_LIBOBJ invocations to module description.
1992         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
1993         here...
1994         * modules/wcsrchr (configure.ac): ... to here.
1995
1996 2011-05-22  Bruno Haible  <bruno@clisp.org>
1997
1998         wcspbrk: Move AC_LIBOBJ invocations to module description.
1999         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
2000         here...
2001         * modules/wcspbrk (configure.ac): ... to here.
2002
2003 2011-05-22  Bruno Haible  <bruno@clisp.org>
2004
2005         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
2006         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
2007         gl_PREREQ_WCSNRTOMBS invocations from here...
2008         * modules/wcsnrtombs (configure.ac): ... to here.
2009
2010 2011-05-22  Bruno Haible  <bruno@clisp.org>
2011
2012         wcsnlen: Move AC_LIBOBJ invocations to module description.
2013         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
2014         here...
2015         * modules/wcsnlen (configure.ac): ... to here.
2016
2017 2011-05-22  Bruno Haible  <bruno@clisp.org>
2018
2019         wcsncpy: Move AC_LIBOBJ invocations to module description.
2020         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
2021         here...
2022         * modules/wcsncpy (configure.ac): ... to here.
2023
2024 2011-05-22  Bruno Haible  <bruno@clisp.org>
2025
2026         wcsncmp: Move AC_LIBOBJ invocations to module description.
2027         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
2028         here...
2029         * modules/wcsncmp (configure.ac): ... to here.
2030
2031 2011-05-22  Bruno Haible  <bruno@clisp.org>
2032
2033         wcsncat: Move AC_LIBOBJ invocations to module description.
2034         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
2035         here...
2036         * modules/wcsncat (configure.ac): ... to here.
2037
2038 2011-05-22  Bruno Haible  <bruno@clisp.org>
2039
2040         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
2041         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
2042         from here...
2043         * modules/wcsncasecmp (configure.ac): ... to here.
2044
2045 2011-05-22  Bruno Haible  <bruno@clisp.org>
2046
2047         wcslen: Move AC_LIBOBJ invocations to module description.
2048         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
2049         * modules/wcslen (configure.ac): ... to here.
2050
2051 2011-05-22  Bruno Haible  <bruno@clisp.org>
2052
2053         wcsdup: Move AC_LIBOBJ invocations to module description.
2054         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
2055         * modules/wcsdup (configure.ac): ... to here.
2056
2057 2011-05-22  Bruno Haible  <bruno@clisp.org>
2058
2059         wcscspn: Move AC_LIBOBJ invocations to module description.
2060         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
2061         here...
2062         * modules/wcscspn (configure.ac): ... to here.
2063
2064 2011-05-22  Bruno Haible  <bruno@clisp.org>
2065
2066         wcscpy: Move AC_LIBOBJ invocations to module description.
2067         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
2068         * modules/wcscpy (configure.ac): ... to here.
2069
2070 2011-05-22  Bruno Haible  <bruno@clisp.org>
2071
2072         wcscoll: Move AC_LIBOBJ invocations to module description.
2073         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
2074         here...
2075         * modules/wcscoll (configure.ac): ... to here.
2076
2077 2011-05-22  Bruno Haible  <bruno@clisp.org>
2078
2079         wcscmp: Move AC_LIBOBJ invocations to module description.
2080         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
2081         * modules/wcscmp (configure.ac): ... to here.
2082
2083 2011-05-22  Bruno Haible  <bruno@clisp.org>
2084
2085         wcschr: Move AC_LIBOBJ invocations to module description.
2086         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
2087         * modules/wcschr (configure.ac): ... to here.
2088
2089 2011-05-22  Bruno Haible  <bruno@clisp.org>
2090
2091         wcscat: Move AC_LIBOBJ invocations to module description.
2092         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
2093         * modules/wcscat (configure.ac): ... to here.
2094
2095 2011-05-22  Bruno Haible  <bruno@clisp.org>
2096
2097         wcscasecmp: Move AC_LIBOBJ invocations to module description.
2098         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
2099         here...
2100         * modules/wcscasecmp (configure.ac): ... to here.
2101
2102 2011-05-22  Bruno Haible  <bruno@clisp.org>
2103
2104         wcrtomb: Move AC_LIBOBJ invocations to module description.
2105         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
2106         invocations from here...
2107         * modules/wcrtomb (configure.ac): ... to here.
2108
2109 2011-05-22  Bruno Haible  <bruno@clisp.org>
2110
2111         wcpncpy: Move AC_LIBOBJ invocations to module description.
2112         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2113         here...
2114         * modules/wcpncpy (configure.ac): ... to here.
2115
2116 2011-05-22  Bruno Haible  <bruno@clisp.org>
2117
2118         wcpcpy: Move AC_LIBOBJ invocations to module description.
2119         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
2120         * modules/wcpcpy (configure.ac): ... to here.
2121
2122 2011-05-22  Bruno Haible  <bruno@clisp.org>
2123
2124         waitpid: Move AC_LIBOBJ invocations to module description.
2125         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
2126         invocation from here...
2127         * modules/waitpid (configure.ac): ... to here.
2128
2129 2011-05-22  Bruno Haible  <bruno@clisp.org>
2130
2131         utimensat: Move AC_LIBOBJ invocations to module description.
2132         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
2133         here...
2134         * modules/utimensat (configure.ac): ... to here.
2135
2136 2011-05-22  Bruno Haible  <bruno@clisp.org>
2137
2138         usleep: Move AC_LIBOBJ invocations to module description.
2139         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
2140         here...
2141         * modules/usleep (configure.ac): ... to here.
2142
2143 2011-05-22  Bruno Haible  <bruno@clisp.org>
2144
2145         unlockpt: Move AC_LIBOBJ invocations to module description.
2146         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
2147         gl_PREREQ_UNLOCKPT invocations from here...
2148         * modules/unlockpt (configure.ac): ... to here.
2149
2150 2011-05-22  Bruno Haible  <bruno@clisp.org>
2151
2152         unlink: Respect rules for use of AC_LIBOBJ.
2153         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
2154         * modules/unlink (configure.ac): ... to here.
2155
2156 2011-05-22  Bruno Haible  <bruno@clisp.org>
2157
2158         uname: Move AC_LIBOBJ invocations to module description.
2159         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
2160         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
2161         here...
2162         * modules/uname (configure.ac): ... to here.
2163
2164 2011-05-22  Bruno Haible  <bruno@clisp.org>
2165
2166         ttyname_r: Move AC_LIBOBJ invocations to module description.
2167         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
2168         gl_PREREQ_TTYNAME_R invocations from here...
2169         * modules/ttyname_r (configure.ac): ... to here.
2170
2171 2011-05-22  Bruno Haible  <bruno@clisp.org>
2172
2173         tsearch: Move AC_LIBOBJ invocations to module description.
2174         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
2175         invocations from here...
2176         * modules/tsearch (configure.ac): ... to here.
2177
2178 2011-05-22  Bruno Haible  <bruno@clisp.org>
2179
2180         towctrans: Move AC_LIBOBJ invocations to module description.
2181         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
2182         AC_LIBOBJ invocation from here...
2183         * modules/towctrans (configure.ac): ... to here.
2184
2185 2011-05-22  Bruno Haible  <bruno@clisp.org>
2186
2187         tmpfile: Move AC_LIBOBJ invocations to module description.
2188         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
2189         invocations from here...
2190         * modules/tmpfile (configure.ac): ... to here.
2191
2192 2011-05-22  Bruno Haible  <bruno@clisp.org>
2193
2194         times: Move AC_LIBOBJ invocations to module description.
2195         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
2196         * modules/times (configure.ac): ... to here.
2197
2198 2011-05-22  Bruno Haible  <bruno@clisp.org>
2199
2200         time_r: Move AC_LIBOBJ invocations to module description.
2201         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
2202         invocations from here...
2203         * modules/time_r (configure.ac): ... to here.
2204
2205 2011-05-22  Bruno Haible  <bruno@clisp.org>
2206
2207         timegm: Move AC_LIBOBJ invocations to module description.
2208         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
2209         invocations from here...
2210         * modules/timegm (configure.ac): ... to here.
2211
2212 2011-05-22  Bruno Haible  <bruno@clisp.org>
2213
2214         tcgetsid: Move AC_LIBOBJ invocations to module description.
2215         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
2216         and gl_PREREQ_TCGETSID invocations from here...
2217         * modules/tcgetsid (configure.ac): ... to here.
2218         (Depends-on): Update conditions.
2219
2220 2011-05-22  Bruno Haible  <bruno@clisp.org>
2221
2222         symlinkat: Move AC_LIBOBJ invocations to module description.
2223         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
2224         here...
2225         * modules/symlinkat (configure.ac): ... to here.
2226
2227 2011-05-22  Bruno Haible  <bruno@clisp.org>
2228
2229         symlink: Move AC_LIBOBJ invocations to module description.
2230         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
2231         here...
2232         * modules/symlink (configure.ac): ... to here.
2233
2234 2011-05-22  Bruno Haible  <bruno@clisp.org>
2235
2236         strverscmp: Move AC_LIBOBJ invocations to module description.
2237         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
2238         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
2239         from here...
2240         * modules/strverscmp (configure.ac): ... to here.
2241
2242 2011-05-22  Bruno Haible  <bruno@clisp.org>
2243
2244         strtok_r: Move AC_LIBOBJ invocations to module description.
2245         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
2246         and gl_PREREQ_STRTOK_R invocations from here...
2247         * modules/strtok_r (configure.ac): ... to here.
2248         (Depends-on): Update conditions.
2249
2250 2011-05-22  Bruno Haible  <bruno@clisp.org>
2251
2252         strtoumax: Move AC_LIBOBJ invocations to module description.
2253         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
2254         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
2255         from here...
2256         * modules/strtoumax (configure.ac): ... to here.
2257
2258 2011-05-22  Bruno Haible  <bruno@clisp.org>
2259
2260         strtoimax: Move AC_LIBOBJ invocations to module description.
2261         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
2262         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
2263         from here...
2264         * modules/strtoimax (configure.ac): ... to here.
2265
2266 2011-05-22  Bruno Haible  <bruno@clisp.org>
2267
2268         strtoull: Move AC_LIBOBJ invocations to module description.
2269         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
2270         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
2271         from here...
2272         * modules/strtoull (configure.ac): ... to here.
2273
2274 2011-05-22  Bruno Haible  <bruno@clisp.org>
2275
2276         strtoll: Move AC_LIBOBJ invocations to module description.
2277         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
2278         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
2279         here...
2280         * modules/strtoll (configure.ac): ... to here.
2281
2282 2011-05-22  Bruno Haible  <bruno@clisp.org>
2283
2284         strtoul: Move AC_LIBOBJ invocations to module description.
2285         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
2286         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2287         * modules/strtoul (configure.ac): ... to here.
2288
2289 2011-05-22  Bruno Haible  <bruno@clisp.org>
2290
2291         strtol: Move AC_LIBOBJ invocations to module description.
2292         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
2293         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2294         * modules/strtol (configure.ac): ... to here.
2295
2296 2011-05-22  Bruno Haible  <bruno@clisp.org>
2297
2298         strtod: Move AC_LIBOBJ invocations to module description.
2299         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2300         invocations from here...
2301         * modules/strtod (configure.ac): ... to here.
2302
2303 2011-05-22  Bruno Haible  <bruno@clisp.org>
2304
2305         strstr*: Move AC_LIBOBJ invocations to module description.
2306         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2307         invocations from here...
2308         * modules/strstr-simple (configure.ac): ... to here.
2309         * modules/strstr (configure.ac): ... and here.
2310
2311 2011-05-22  Bruno Haible  <bruno@clisp.org>
2312
2313         strsignal: Move AC_LIBOBJ invocations to module description.
2314         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2315         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2316         * modules/strsignal (configure.ac): ... to here.
2317         (Depends-on): Update conditions.
2318
2319 2011-05-22  Bruno Haible  <bruno@clisp.org>
2320
2321         strsep: Move AC_LIBOBJ invocations to module description.
2322         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2323         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2324         here...
2325         * modules/strsep (configure.ac): ... to here.
2326
2327 2011-05-22  Bruno Haible  <bruno@clisp.org>
2328
2329         strptime: Move AC_LIBOBJ invocations to module description.
2330         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2331         gl_PREREQ_STRPTIME invocations from here...
2332         * modules/strptime (configure.ac): ... to here.
2333
2334 2011-05-22  Bruno Haible  <bruno@clisp.org>
2335
2336         strpbrk: Move AC_LIBOBJ invocations to module description.
2337         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2338         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2339         here...
2340         * modules/strpbrk (configure.ac): ... to here.
2341
2342 2011-05-22  Bruno Haible  <bruno@clisp.org>
2343
2344         strnlen: Move AC_LIBOBJ invocations to module description.
2345         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2346         invocations from here...
2347         * modules/strnlen (configure.ac): ... to here.
2348
2349 2011-05-22  Bruno Haible  <bruno@clisp.org>
2350
2351         strndup: Move AC_LIBOBJ invocations to module description.
2352         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2353         invocations from here...
2354         * modules/strndup (configure.ac): ... to here.
2355         (Depends-on): Update conditions.
2356
2357 2011-05-22  Bruno Haible  <bruno@clisp.org>
2358
2359         strncat: Move AC_LIBOBJ invocations to module description.
2360         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2361         invocations from here...
2362         * modules/strncat (configure.ac): ... to here.
2363
2364 2011-05-22  Bruno Haible  <bruno@clisp.org>
2365
2366         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2367         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2368         invocations from here...
2369         * modules/strdup (configure.ac): ... to here.
2370         * modules/strdup-posix (configure.ac): ... and here.
2371
2372 2011-05-22  Bruno Haible  <bruno@clisp.org>
2373
2374         strcspn: Move AC_LIBOBJ invocations to module description.
2375         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2376         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2377         here...
2378         * modules/strcspn (configure.ac): ... to here.
2379
2380 2011-05-22  Bruno Haible  <bruno@clisp.org>
2381
2382         strchrnul: Move AC_LIBOBJ invocations to module description.
2383         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2384         gl_PREREQ_STRCHRNUL invocations from here...
2385         * modules/strchrnul (configure.ac): ... to here.
2386
2387 2011-05-22  Bruno Haible  <bruno@clisp.org>
2388
2389         strcasestr*: Move AC_LIBOBJ invocations to module description.
2390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2391         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2392         * modules/strcasestr-simple (configure.ac): ... to here.
2393         * modules/strcasestr (configure.ac): ... and here.
2394
2395 2011-05-22  Bruno Haible  <bruno@clisp.org>
2396
2397         strcase: Move AC_LIBOBJ invocations to module description.
2398         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2399         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2400         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2401         gl_PREREQ_STRNCASECMP invocations from here...
2402         * modules/strcase (configure.ac): ... to here.
2403
2404 2011-05-22  Bruno Haible  <bruno@clisp.org>
2405
2406         stpncpy: Move AC_LIBOBJ invocations to module description.
2407         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2408         here...
2409         * modules/stpncpy (configure.ac): ... to here.
2410
2411 2011-05-22  Bruno Haible  <bruno@clisp.org>
2412
2413         stpcpy: Move AC_LIBOBJ invocations to module description.
2414         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2415         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2416         here...
2417         * modules/stpcpy (configure.ac): ... to here.
2418
2419 2011-05-21  Bruno Haible  <bruno@clisp.org>
2420
2421         stat: Move AC_LIBOBJ invocations to module description.
2422         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2423         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2424         here...
2425         * modules/stat (configure.ac): ... to here.
2426
2427 2011-05-21  Bruno Haible  <bruno@clisp.org>
2428
2429         sleep: Move AC_LIBOBJ invocations to module description.
2430         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2431         * modules/sleep (configure.ac): ... to here.
2432
2433 2011-05-21  Bruno Haible  <bruno@clisp.org>
2434
2435         signbit: Move AC_LIBOBJ invocations to module description.
2436         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2437         * modules/signbit (configure.ac): ... to here.
2438
2439 2011-05-21  Bruno Haible  <bruno@clisp.org>
2440
2441         sigprocmask: Move AC_LIBOBJ invocations to module description.
2442         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2443         gl_PREREQ_SIGPROMASK invocations from here...
2444         * modules/sigprocmask (configure.ac): ... to here.
2445
2446 2011-05-21  Bruno Haible  <bruno@clisp.org>
2447
2448         sigaction: Move AC_LIBOBJ invocations to module description.
2449         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2450         gl_PREREQ_SIGACTION invocations from here...
2451         * modules/sigaction (configure.ac): ... to here.
2452
2453 2011-05-21  Bruno Haible  <bruno@clisp.org>
2454
2455         sig2str: Move AC_LIBOBJ invocations to module description.
2456         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2457         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2458         here...
2459         * modules/sig2str (configure.ac): ... to here.
2460
2461 2011-05-21  Bruno Haible  <bruno@clisp.org>
2462
2463         setlocale: Move AC_LIBOBJ invocations to module description.
2464         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2465         gl_PREREQ_SETLOCALE invocations from here...
2466         * modules/setlocale (configure.ac): ... to here.
2467
2468 2011-05-21  Bruno Haible  <bruno@clisp.org>
2469
2470         unsetenv: Move AC_LIBOBJ invocations to module description.
2471         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2472         and gl_PREREQ_UNSETENV invocations from here...
2473         * modules/unsetenv (configure.ac): ... to here.
2474         (Depends-on): Update.
2475
2476 2011-05-21  Bruno Haible  <bruno@clisp.org>
2477
2478         setenv: Move AC_LIBOBJ invocations to module description.
2479         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2480         here...
2481         * modules/setenv (configure.ac): ... to here.
2482
2483 2011-05-21  Bruno Haible  <bruno@clisp.org>
2484
2485         selinux-h: Move AC_LIBOBJ invocations to module description.
2486         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2487         AC_LIBOBJ invocation from here...
2488         * modules/selinux-h (configure.ac): ... to here.
2489
2490 2011-05-21  Bruno Haible  <bruno@clisp.org>
2491
2492         select: Respect rules for use of AC_LIBOBJ.
2493         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2494         here...
2495         * modules/select (configure.ac): ... to here.
2496
2497 2011-05-21  Bruno Haible  <bruno@clisp.org>
2498
2499         scandir: Move AC_LIBOBJ invocations to module description.
2500         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2501         invocations from here...
2502         * modules/scandir (configure.ac): ... to here.
2503
2504 2011-05-21  Bruno Haible  <bruno@clisp.org>
2505
2506         rpmatch: Move AC_LIBOBJ invocations to module description.
2507         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2508         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2509         here...
2510         * modules/rpmatch (configure.ac): ... to here.
2511
2512 2011-05-21  Bruno Haible  <bruno@clisp.org>
2513
2514         rmdir: Respect rules for use of AC_LIBOBJ.
2515         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2516         * modules/rmdir (configure.ac): ... to here.
2517
2518 2011-05-21  Bruno Haible  <bruno@clisp.org>
2519
2520         renameat: Move AC_LIBOBJ invocations to module description.
2521         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2522         here...
2523         * modules/renameat (configure.ac): ... to here.
2524
2525 2011-05-21  Bruno Haible  <bruno@clisp.org>
2526
2527         rename: Respect rules for use of AC_LIBOBJ.
2528         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2529         here...
2530         * modules/rename (configure.ac): ... to here.
2531
2532 2011-05-21  Bruno Haible  <bruno@clisp.org>
2533
2534         remove: Move AC_LIBOBJ invocations to module description.
2535         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2536         here...
2537         * modules/remove (configure.ac): ... to here.
2538
2539 2011-05-21  Bruno Haible  <bruno@clisp.org>
2540
2541         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2542         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2543         macro.
2544         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2545         * modules/relocatable-lib (configure.ac): ... to here.
2546         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2547         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2548
2549 2011-05-21  Bruno Haible  <bruno@clisp.org>
2550
2551         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2552         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2553         here...
2554         * modules/relocatable-prog (configure.ac): ... to here.
2555
2556 2011-05-21  Bruno Haible  <bruno@clisp.org>
2557
2558         regex: Move AC_LIBOBJ invocations to module description.
2559         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2560         invocations from here...
2561         * modules/regex (configure.ac): ... to here.
2562
2563 2011-05-21  Bruno Haible  <bruno@clisp.org>
2564
2565         realloc-*: Move AC_LIBOBJ invocations to module description.
2566         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2567         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2568         AC_LIBOBJ invocations from here...
2569         * modules/realloc-gnu (configure.ac): ... to here.
2570         * modules/realloc-posix (configure.ac): ... and here.
2571
2572 2011-05-21  Bruno Haible  <bruno@clisp.org>
2573
2574         readutmp: Move AC_LIBOBJ invocations to module description.
2575         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2576         * modules/readutmp (configure.ac): ... to here.
2577
2578 2011-05-21  Bruno Haible  <bruno@clisp.org>
2579
2580         readlinkat: Move AC_LIBOBJ invocations to module description.
2581         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2582         here...
2583         * modules/readlinkat (configure.ac): ... to here.
2584
2585 2011-05-21  Bruno Haible  <bruno@clisp.org>
2586
2587         readlink: Move AC_LIBOBJ invocations to module description.
2588         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2589         gl_PREREQ_READLINK invocations from here...
2590         * modules/readlink (configure.ac): ... to here.
2591
2592 2011-05-21  Bruno Haible  <bruno@clisp.org>
2593
2594         readline: Move AC_LIBOBJ invocations to module description.
2595         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2596         gl_PREREQ_READLINE invocations from here...
2597         * modules/readline (configure.ac): ... to here.
2598
2599 2011-05-21  Bruno Haible  <bruno@clisp.org>
2600
2601         read: Move AC_LIBOBJ invocations to module description.
2602         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2603         * modules/read (configure.ac): ... to here.
2604
2605 2011-05-21  Bruno Haible  <bruno@clisp.org>
2606
2607         rawmemchr: Move AC_LIBOBJ invocations to module description.
2608         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2609         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2610         from here...
2611         * modules/rawmemchr (configure.ac): ... to here.
2612
2613 2011-05-21  Bruno Haible  <bruno@clisp.org>
2614
2615         random_r: Move AC_LIBOBJ invocations to module description.
2616         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2617         gl_PREREQ_RANDOM_R invocations from here...
2618         * modules/random_r (configure.ac): ... to here.
2619
2620 2011-05-21  Bruno Haible  <bruno@clisp.org>
2621
2622         pwrite: Move AC_LIBOBJ invocations to module description.
2623         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2624         * modules/pwrite (configure.ac): ... to here.
2625
2626 2011-05-21  Bruno Haible  <bruno@clisp.org>
2627
2628         putenv: Move AC_LIBOBJ invocations to module description.
2629         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2630         * modules/putenv (configure.ac): ... to here.
2631
2632 2011-05-21  Bruno Haible  <bruno@clisp.org>
2633
2634         login_tty: Move AC_LIBOBJ invocations to module description.
2635         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2636         * modules/login_tty (configure.ac): ... to here.
2637
2638 2011-05-21  Bruno Haible  <bruno@clisp.org>
2639
2640         openpty: Move AC_LIBOBJ invocations to module description.
2641         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2642         * modules/openpty (configure.ac): ... to here.
2643
2644 2011-05-21  Bruno Haible  <bruno@clisp.org>
2645
2646         forkpty: Move AC_LIBOBJ invocations to module description.
2647         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2648         * modules/forkpty (configure.ac): ... to here.
2649
2650 2011-05-21  Bruno Haible  <bruno@clisp.org>
2651
2652         ptsname: Move AC_LIBOBJ invocations to module description.
2653         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2654         invocations from here...
2655         * modules/ptsname (configure.ac): ... to here.
2656
2657 2011-05-21  Bruno Haible  <bruno@clisp.org>
2658
2659         pread: Move AC_LIBOBJ invocations to module description.
2660         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2661         * modules/pread (configure.ac): ... to here.
2662
2663 2011-05-21  Bruno Haible  <bruno@clisp.org>
2664
2665         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2666         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2667         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2668         * modules/posix_spawn (configure.ac): ... to here.
2669         * modules/posix_spawnp (configure.ac): ... and here.
2670
2671 2011-05-21  Bruno Haible  <bruno@clisp.org>
2672
2673         popen: Move AC_LIBOBJ invocations to module description.
2674         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2675         invocations from here...
2676         * modules/popen (configure.ac): ... to here.
2677
2678 2011-05-21  Bruno Haible  <bruno@clisp.org>
2679
2680         poll: Move AC_LIBOBJ invocations to module description.
2681         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2682         invocations from here...
2683         * modules/poll (configure.ac): ... to here.
2684
2685 2011-05-21  Bruno Haible  <bruno@clisp.org>
2686
2687         pipe-posix: Move AC_LIBOBJ invocations to module description.
2688         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2689         * modules/pipe-posix (configure.ac): ... to here.
2690
2691 2011-05-21  Bruno Haible  <bruno@clisp.org>
2692
2693         openat: Respect rules for use of AC_LIBOBJ.
2694         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2695         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2696         * modules/openat (configure.ac): ... to here.
2697
2698 2011-05-21  Bruno Haible  <bruno@clisp.org>
2699
2700         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2701         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2702         invocation from here...
2703         * modules/obstack-printf (configure.ac): ... to here.
2704         * modules/obstack-printf-posix (configure.ac): ... and here.
2705
2706 2011-05-21  Bruno Haible  <bruno@clisp.org>
2707
2708         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2709         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2710         from here...
2711         * modules/nl_langinfo (configure.ac): ... to here.
2712
2713 2011-05-21  Bruno Haible  <bruno@clisp.org>
2714
2715         nanosleep: Move AC_LIBOBJ invocations to module description.
2716         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2717         gl_PREREQ_NANOSLEEP invocations from here...
2718         * modules/nanosleep (configure.ac): ... to here.
2719
2720 2011-05-21  Bruno Haible  <bruno@clisp.org>
2721
2722         mountlist: Move AC_LIBOBJ invocations to module description.
2723         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2724         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2725         * modules/mountlist (configure.ac): ... to here.
2726
2727 2011-05-21  Bruno Haible  <bruno@clisp.org>
2728
2729         mktime: Respect rules for use of AC_LIBOBJ.
2730         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2731         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2732         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2733         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2734         * modules/mktime (configure.ac): ... to here.
2735         * modules/mktime-internal (configure.ac): ... and here.
2736         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2737
2738 2011-05-21  Bruno Haible  <bruno@clisp.org>
2739
2740         mkstemps: Move AC_LIBOBJ invocations to module description.
2741         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2742         here...
2743         * modules/mkstemps (configure.ac): ... to here.
2744
2745 2011-05-21  Bruno Haible  <bruno@clisp.org>
2746
2747         mkstemp: Move AC_LIBOBJ invocations to module description.
2748         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2749         gl_PREREQ_MKSTEMP invocations from here...
2750         * modules/mkstemp (configure.ac): ... to here.
2751
2752 2011-05-21  Bruno Haible  <bruno@clisp.org>
2753
2754         mkostemps: Move AC_LIBOBJ invocations to module description.
2755         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2756         here...
2757         * modules/mkostemps (configure.ac): ... to here.
2758
2759 2011-05-21  Bruno Haible  <bruno@clisp.org>
2760
2761         mkostemp: Move AC_LIBOBJ invocations to module description.
2762         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2763         gl_PREREQ_MKOSTEMP invocations from here...
2764         * modules/mkostemp (configure.ac): ... to here.
2765
2766 2011-05-21  Bruno Haible  <bruno@clisp.org>
2767
2768         mknod: Move AC_LIBOBJ invocations to module description.
2769         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2770         * modules/mknod (configure.ac): ... to here.
2771
2772 2011-05-21  Bruno Haible  <bruno@clisp.org>
2773
2774         mkfifoat: Move AC_LIBOBJ invocations to module description.
2775         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2776         here...
2777         * modules/mkfifoat (configure.ac): ... to here.
2778
2779 2011-05-21  Bruno Haible  <bruno@clisp.org>
2780
2781         mkfifo: Respect rules for use of AC_LIBOBJ.
2782         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2783         here...
2784         * modules/mkfifo (configure.ac): ... to here.
2785
2786 2011-05-21  Bruno Haible  <bruno@clisp.org>
2787
2788         mkdtemp: Move AC_LIBOBJ invocations to module description.
2789         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2790         invocations from here...
2791         * modules/mkdtemp (configure.ac): ... to here.
2792
2793 2011-05-21  Bruno Haible  <bruno@clisp.org>
2794
2795         mkdir: Move AC_LIBOBJ invocations to module description.
2796         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2797         * modules/mkdir (configure.ac): ... to here.
2798
2799 2011-05-21  Bruno Haible  <bruno@clisp.org>
2800
2801         memset: Move AC_LIBOBJ invocations to module description.
2802         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2803         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2804         here...
2805         * modules/memset (configure.ac): ... to here.
2806
2807 2011-05-21  Bruno Haible  <bruno@clisp.org>
2808
2809         memrchr: Move AC_LIBOBJ invocations to module description.
2810         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2811         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2812         here...
2813         * modules/memrchr (configure.ac): ... to here.
2814
2815 2011-05-21  Bruno Haible  <bruno@clisp.org>
2816
2817         mempcpy: Move AC_LIBOBJ invocations to module description.
2818         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2819         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2820         here...
2821         * modules/mempcpy (configure.ac): ... to here.
2822
2823 2011-05-21  Bruno Haible  <bruno@clisp.org>
2824
2825         memmove: Move AC_LIBOBJ invocations to module description.
2826         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2827         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2828         here...
2829         * modules/memmove (configure.ac): ... to here.
2830
2831 2011-05-21  Bruno Haible  <bruno@clisp.org>
2832
2833         memmem*: Move AC_LIBOBJ invocations to module description.
2834         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2835         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2836         here...
2837         (gl_FUNC_MEMMEM): ... and here...
2838         * modules/memmem-simple (configure.ac): ... to here.
2839         * modules/memmem (configure.ac): ... and here.
2840
2841 2011-05-21  Bruno Haible  <bruno@clisp.org>
2842
2843         memcpy: Move AC_LIBOBJ invocations to module description.
2844         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2845         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2846         here...
2847         * modules/memcpy (configure.ac): ... to here.
2848
2849 2011-05-21  Bruno Haible  <bruno@clisp.org>
2850
2851         memcmp: Simplify autoconf macro.
2852         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2853         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2854         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2855
2856 2011-05-21  Bruno Haible  <bruno@clisp.org>
2857
2858         memcmp: Move AC_LIBOBJ invocations to module description.
2859         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2860         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2861         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2862         * modules/memcmp (configure.ac): ... to here.
2863         (Depends-on): Update conditions.
2864
2865 2011-05-21  Bruno Haible  <bruno@clisp.org>
2866
2867         memchr: Respect rules for use of AC_LIBOBJ.
2868         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
2869         invocations from here...
2870         * modules/memchr (configure.ac): ... to here.
2871
2872 2011-05-21  Bruno Haible  <bruno@clisp.org>
2873
2874         mbtowc: Move AC_LIBOBJ invocations to module description.
2875         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
2876         invocations from here...
2877         * modules/mbtowc (configure.ac): ... to here.
2878
2879 2011-05-21  Bruno Haible  <bruno@clisp.org>
2880
2881         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
2882         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
2883         gl_PREREQ_MBSRTOWCS invocations from here...
2884         * modules/mbsrtowcs (configure.ac): ... to here.
2885
2886 2011-05-21  Bruno Haible  <bruno@clisp.org>
2887
2888         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
2889         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
2890         gl_PREREQ_MBSNRTOWCS invocations from here...
2891         * modules/mbsnrtowcs (configure.ac): ... to here.
2892
2893 2011-05-21  Bruno Haible  <bruno@clisp.org>
2894
2895         mbsinit: Move AC_LIBOBJ invocations to module description.
2896         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
2897         invocations from here...
2898         * modules/mbsinit (configure.ac): ... to here.
2899
2900 2011-05-21  Bruno Haible  <bruno@clisp.org>
2901
2902         mbrlen: Move AC_LIBOBJ invocations to module description.
2903         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
2904         invocations from here...
2905         * modules/mbrlen (configure.ac): ... to here.
2906
2907 2011-05-21  Bruno Haible  <bruno@clisp.org>
2908
2909         mbrtowc: Respect rules for use of AC_LIBOBJ.
2910         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
2911         invocations from here...
2912         * modules/mbrtowc (configure.ac): ... to here.
2913
2914 2011-05-21  Bruno Haible  <bruno@clisp.org>
2915
2916         malloc-*: Move AC_LIBOBJ invocations to module description.
2917         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
2918         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
2919         AC_LIBOBJ invocations from here...
2920         * modules/malloc-gnu (configure.ac): ... to here.
2921         * modules/malloc-posix (configure.ac): ... and here.
2922
2923 2011-05-21  Bruno Haible  <bruno@clisp.org>
2924
2925         lstat, openat: Respect rules for use of AC_LIBOBJ.
2926         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
2927         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
2928         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
2929         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
2930         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
2931         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
2932         here.
2933         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2934
2935 2011-05-21  Bruno Haible  <bruno@clisp.org>
2936
2937         lseek: Move AC_LIBOBJ invocations to module description.
2938         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
2939         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2940         * modules/lseek (configure.ac): ... to here.
2941
2942 2011-05-21  Bruno Haible  <bruno@clisp.org>
2943
2944         linkat: Move AC_LIBOBJ invocations to module description.
2945         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
2946         here...
2947         * modules/linkat (configure.ac): ... to here.
2948
2949 2011-05-21  Bruno Haible  <bruno@clisp.org>
2950
2951         link: Respect rules for use of AC_LIBOBJ.
2952         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
2953         * modules/link (configure.ac): ... to here.
2954
2955 2011-05-21  Bruno Haible  <bruno@clisp.org>
2956
2957         lchown: Move AC_LIBOBJ invocations to module description.
2958         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2959         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2960         * modules/lchown (configure.ac): ... to here.
2961
2962 2011-05-21  Bruno Haible  <bruno@clisp.org>
2963
2964         iswctype: Move AC_LIBOBJ invocations to module description.
2965         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
2966         here...
2967         * modules/iswctype (configure.ac): ... to here.
2968
2969 2011-05-21  Bruno Haible  <bruno@clisp.org>
2970
2971         iswblank: Move AC_LIBOBJ invocations to module description.
2972         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
2973         here...
2974         * modules/iswblank (configure.ac): ... to here.
2975
2976 2011-05-21  Bruno Haible  <bruno@clisp.org>
2977
2978         atanl: Move AC_LIBOBJ invocations to module description.
2979         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
2980         * modules/atanl (configure.ac): ... to here.
2981
2982 2011-05-21  Bruno Haible  <bruno@clisp.org>
2983
2984         acosl: Move AC_LIBOBJ invocations to module description.
2985         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
2986         * modules/acosl (configure.ac): ... to here.
2987
2988 2011-05-21  Bruno Haible  <bruno@clisp.org>
2989
2990         asinl: Respect rules for use of AC_LIBOBJ.
2991         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
2992         * modules/asinl (configure.ac): ... to here.
2993
2994 2011-05-21  Bruno Haible  <bruno@clisp.org>
2995
2996         tanl: Move AC_LIBOBJ invocations to module description.
2997         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
2998         * modules/tanl (configure.ac): ... to here.
2999
3000 2011-05-21  Bruno Haible  <bruno@clisp.org>
3001
3002         cosl: Move AC_LIBOBJ invocations to module description.
3003         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
3004         * modules/cosl (configure.ac): ... to here.
3005
3006 2011-05-21  Bruno Haible  <bruno@clisp.org>
3007
3008         sinl: Move AC_LIBOBJ invocations to module description.
3009         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
3010         * modules/sinl (configure.ac): ... to here.
3011
3012 2011-05-21  Bruno Haible  <bruno@clisp.org>
3013
3014         logl: Move AC_LIBOBJ invocations to module description.
3015         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
3016         * modules/logl (configure.ac): ... to here.
3017
3018 2011-05-21  Bruno Haible  <bruno@clisp.org>
3019
3020         expl: Move AC_LIBOBJ invocations to module description.
3021         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
3022         * modules/expl (configure.ac): ... to here.
3023
3024 2011-05-21  Bruno Haible  <bruno@clisp.org>
3025
3026         roundl: Move AC_LIBOBJ invocations to module description.
3027         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
3028         * modules/roundl (configure.ac): ... to here.
3029
3030 2011-05-21  Bruno Haible  <bruno@clisp.org>
3031
3032         round: Move AC_LIBOBJ invocations to module description.
3033         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
3034         * modules/round (configure.ac): ... to here.
3035
3036 2011-05-21  Bruno Haible  <bruno@clisp.org>
3037
3038         roundf: Move AC_LIBOBJ invocations to module description.
3039         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
3040         * modules/roundf (configure.ac): ... to here.
3041
3042 2011-05-21  Bruno Haible  <bruno@clisp.org>
3043
3044         truncl: Move AC_LIBOBJ invocations to module description.
3045         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
3046         * modules/truncl (configure.ac): ... to here.
3047
3048 2011-05-21  Bruno Haible  <bruno@clisp.org>
3049
3050         trunc: Move AC_LIBOBJ invocations to module description.
3051         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
3052         * modules/trunc (configure.ac): ... to here.
3053
3054 2011-05-21  Bruno Haible  <bruno@clisp.org>
3055
3056         truncf: Move AC_LIBOBJ invocations to module description.
3057         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
3058         * modules/truncf (configure.ac): ... to here.
3059
3060 2011-05-21  Bruno Haible  <bruno@clisp.org>
3061
3062         ceill: Move AC_LIBOBJ invocations to module description.
3063         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
3064         * modules/ceill (configure.ac): ... to here.
3065
3066 2011-05-21  Bruno Haible  <bruno@clisp.org>
3067
3068         ceil: Move AC_LIBOBJ invocations to module description.
3069         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
3070         * modules/ceil (configure.ac): ... to here.
3071
3072 2011-05-21  Bruno Haible  <bruno@clisp.org>
3073
3074         ceilf: Move AC_LIBOBJ invocations to module description.
3075         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
3076         * modules/ceilf (configure.ac): ... to here.
3077
3078 2011-05-21  Bruno Haible  <bruno@clisp.org>
3079
3080         floorl: Respect rules for use of AC_LIBOBJ.
3081         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
3082         * modules/floorl (configure.ac): ... to here.
3083
3084 2011-05-21  Bruno Haible  <bruno@clisp.org>
3085
3086         floor: Respect rules for use of AC_LIBOBJ.
3087         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
3088         * modules/floor (configure.ac): ... to here.
3089
3090 2011-05-21  Bruno Haible  <bruno@clisp.org>
3091
3092         floorf: Move AC_LIBOBJ invocations to module description.
3093         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
3094         * modules/floorf (configure.ac): ... to here.
3095
3096 2011-05-20  Bruno Haible  <bruno@clisp.org>
3097
3098         sqrtl: Respect rules for use of AC_LIBOBJ.
3099         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
3100         * modules/sqrtl (configure.ac): ... to here.
3101
3102 2011-05-20  Bruno Haible  <bruno@clisp.org>
3103
3104         ldexpl: Respect rules for use of AC_LIBOBJ.
3105         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
3106         * modules/ldexpl (configure.ac): ... to here.
3107
3108 2011-05-20  Bruno Haible  <bruno@clisp.org>
3109
3110         frexpl*: Respect rules for use of AC_LIBOBJ.
3111         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
3112         invocation from here...
3113         * modules/frexpl (configure.ac): ... to here.
3114         * modules/frexpl-nolibm (configure.ac): ... and here.
3115
3116 2011-05-20  Bruno Haible  <bruno@clisp.org>
3117
3118         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
3119         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
3120         invocation from here...
3121         * modules/frexp (configure.ac): ... to here.
3122         * modules/frexp-nolibm (configure.ac): ... and here.
3123
3124 2011-05-20  Bruno Haible  <bruno@clisp.org>
3125
3126         isnan: Respect rules for use of AC_LIBOBJ.
3127         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
3128         invocations here.
3129         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
3130         REPLACE_ISNAN.
3131         * modules/isnand (configure.ac): Likewise.
3132         * modules/isnanl (configure.ac): Likewise.
3133
3134 2011-05-20  Bruno Haible  <bruno@clisp.org>
3135
3136         isnanl*: Respect rules for use of AC_LIBOBJ.
3137         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
3138         invocation from here...
3139         * modules/isnanl (configure.ac): ... to here.
3140         * modules/isnanl-nolibm (configure.ac): ... and here.
3141
3142 2011-05-20  Bruno Haible  <bruno@clisp.org>
3143
3144         isnand*: Move AC_LIBOBJ invocations to module description.
3145         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
3146         invocation from here...
3147         * modules/isnand (configure.ac): ... to here.
3148         * modules/isnand-nolibm (configure.ac): ... and here.
3149
3150 2011-05-20  Bruno Haible  <bruno@clisp.org>
3151
3152         isnanf*: Move AC_LIBOBJ invocations to module description.
3153         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
3154         invocation from here...
3155         * modules/isnanf (configure.ac): ... to here.
3156         * modules/isnanf-nolibm (configure.ac): ... and here.
3157
3158 2011-05-20  Bruno Haible  <bruno@clisp.org>
3159
3160         isnan*: Separate the AC_LIBOBJ invocations.
3161         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
3162         AC_LIBOBJ invocation.
3163         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
3164         here.
3165         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
3166         AC_LIBOBJ invocation.
3167         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
3168         here.
3169         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
3170         AC_LIBOBJ invocation.
3171         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
3172         here.
3173         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
3174
3175 2011-05-08  Bruno Haible  <bruno@clisp.org>
3176
3177         isinf: Move AC_LIBOBJ invocations to module description.
3178         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
3179         * modules/isinf (configure.ac): ... to here.
3180
3181 2011-05-08  Bruno Haible  <bruno@clisp.org>
3182
3183         isfinite: Move AC_LIBOBJ invocations to module description.
3184         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
3185         * modules/isfinite (configure.ac): ... to here.
3186
3187 2011-05-08  Bruno Haible  <bruno@clisp.org>
3188
3189         isblank: Move AC_LIBOBJ invocations to module description.
3190         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
3191         here...
3192         * modules/isblank (configure.ac): ... to here.
3193
3194 2011-05-08  Bruno Haible  <bruno@clisp.org>
3195
3196         isapipe: Move AC_LIBOBJ invocations to module description.
3197         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
3198         gl_PREREQ_ISAPIPE invocations from here...
3199         * modules/isapipe (configure.ac): ... to here.
3200         (Depends-on): Update condition.
3201
3202 2011-05-08  Bruno Haible  <bruno@clisp.org>
3203
3204         ioctl: Move AC_LIBOBJ invocations to module description.
3205         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
3206         invocations from here...
3207         * modules/ioctl (configure.ac): ... to here.
3208         (Depends-on): Update condition.
3209
3210 2011-05-08  Bruno Haible  <bruno@clisp.org>
3211
3212         imaxdiv: Move AC_LIBOBJ invocations to module description.
3213         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
3214         invocations from here...
3215         * modules/imaxdiv (configure.ac): ... to here.
3216
3217 2011-05-08  Bruno Haible  <bruno@clisp.org>
3218
3219         imaxabs: Move AC_LIBOBJ invocations to module description.
3220         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
3221         invocations from here...
3222         * modules/imaxabs (configure.ac): ... to here.
3223
3224 2011-05-08  Bruno Haible  <bruno@clisp.org>
3225
3226         getaddrinfo: Move AC_LIBOBJ invocations to module description.
3227         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
3228         AC_LIBOBJ invocations from here...
3229         * modules/getaddrinfo (configure.ac): ... to here.
3230         (Depends-on): Add conditions.
3231
3232 2011-05-08  Bruno Haible  <bruno@clisp.org>
3233
3234         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3235         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
3236         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3237         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
3238         (gl_PREREQ_INET_PTON): ... from here.
3239         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
3240         gl_PREREQ_INET_PTON here.
3241         (Depends-on): Update condition.
3242
3243 2011-05-08  Bruno Haible  <bruno@clisp.org>
3244
3245         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3246         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
3247         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3248         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
3249         (gl_PREREQ_INET_NTOP): ... from here.
3250         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
3251         gl_PREREQ_INET_NTOP here.
3252         (Depends-on): Update condition.
3253
3254 2011-05-08  Bruno Haible  <bruno@clisp.org>
3255
3256         iconv_open: Move AC_LIBOBJ invocations to module description.
3257         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
3258         AC_LIBOBJ invocations from here...
3259         * modules/iconv_open (configure.ac): ... to here.
3260
3261 2011-05-08  Bruno Haible  <bruno@clisp.org>
3262
3263         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
3264         If module 'iconv_open' is among the main modules and module
3265         'iconv_open-utf' is among the tests dependencies, then
3266         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
3267         return the special iconv_t values. Therefore iconv() and iconv_close()
3268         must support these special iconv_t values, already in lib, not only in
3269         tests.
3270         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
3271         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
3272         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
3273         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
3274         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
3275         (Depends-on): Add the dependencies of iconv_open-utf.
3276         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
3277         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
3278         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
3279
3280 2011-05-08  Bruno Haible  <bruno@clisp.org>
3281
3282         group-member: Move AC_LIBOBJ invocations to module description.
3283         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
3284         gl_PREREQ_GROUP_MEMBER invocations from here...
3285         * modules/group-member (configure.ac): ... to here.
3286
3287 2011-05-08  Bruno Haible  <bruno@clisp.org>
3288
3289         grantpt: Move AC_LIBOBJ invocations to module description.
3290         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
3291         invocations from here...
3292         * modules/grantpt (configure.ac): ... to here.
3293
3294 2011-05-08  Bruno Haible  <bruno@clisp.org>
3295
3296         glob: Move AC_LIBOBJ invocations to module description.
3297         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3298         from here...
3299         * modules/glob (configure.ac): ... to here.
3300
3301 2011-05-08  Bruno Haible  <bruno@clisp.org>
3302
3303         getusershell: Move AC_LIBOBJ invocations to module description.
3304         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3305         Move AC_LIBOBJ invocation from here...
3306         * modules/getusershell (configure.ac): ... to here.
3307         (Depends-on): Update condition.
3308
3309 2011-05-08  Bruno Haible  <bruno@clisp.org>
3310
3311         gettimeofday: Move AC_LIBOBJ invocations to module description.
3312         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3313         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3314         gl_PREREQ_GETTIMEOFDAY invocations from here...
3315         * modules/gettimeofday (configure.ac): ... to here.
3316
3317 2011-05-08  Bruno Haible  <bruno@clisp.org>
3318
3319         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3320         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3321         just gl_FUNC_TZSET.
3322         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3323         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3324         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3325         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3326
3327 2011-05-08  Bruno Haible  <bruno@clisp.org>
3328
3329         getsubopt: Move AC_LIBOBJ invocations to module description.
3330         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3331         gl_PREREQ_GETSUBOPT invocations from here...
3332         * modules/getsubopt (configure.ac): ... to here.
3333
3334 2011-05-08  Bruno Haible  <bruno@clisp.org>
3335
3336         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3337         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3338         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3339         * modules/getpass-gnu (configure.ac): ... to here.
3340
3341 2011-05-08  Bruno Haible  <bruno@clisp.org>
3342
3343         getpass: Move AC_LIBOBJ invocations to module description.
3344         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3345         gl_PREREQ_GETPASS invocations from here...
3346         * modules/getpass (configure.ac): ... to here.
3347
3348 2011-05-08  Bruno Haible  <bruno@clisp.org>
3349
3350         getpagesize: Move AC_LIBOBJ invocations to module description.
3351         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3352         from here...
3353         * modules/getpagesize (configure.ac): ... to here.
3354
3355 2011-05-08  Bruno Haible  <bruno@clisp.org>
3356
3357         getopt: Move AC_LIBOBJ invocations to module description.
3358         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3359         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3360         invocations from here...
3361         * modules/getopt-gnu (configure.ac): ... to here.
3362         * modules/getopt-posix (configure.ac): ... and here.
3363         (Depends-on): Update condition.
3364
3365 2011-05-08  Bruno Haible  <bruno@clisp.org>
3366
3367         getopt, argp: Respect rules for use of AC_LIBOBJ.
3368         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3369         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3370         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3371         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3372
3373 2011-05-08  Bruno Haible  <bruno@clisp.org>
3374
3375         getlogin_r: Move AC_LIBOBJ invocations to module description.
3376         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3377         gl_PREREQ_GETLOGIN_R invocations from here...
3378         * modules/getlogin_r (configure.ac): ... to here.
3379
3380 2011-05-08  Bruno Haible  <bruno@clisp.org>
3381
3382         getlogin: Move AC_LIBOBJ invocations to module description.
3383         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3384         here...
3385         * modules/getlogin (configure.ac): ... to here.
3386
3387 2011-05-08  Bruno Haible  <bruno@clisp.org>
3388
3389         getloadavg: Move AC_LIBOBJ invocations to module description.
3390         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3391         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3392         * modules/getloadavg (configure.ac): ... to here.
3393
3394 2011-05-08  Bruno Haible  <bruno@clisp.org>
3395
3396         gethrxtime: Move AC_LIBOBJ invocations to module description.
3397         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3398         LIB_GETHRXTIME from here...
3399         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3400         invocations from here...
3401         * modules/gethrxtime (configure.ac): ... to here.
3402
3403 2011-05-08  Bruno Haible  <bruno@clisp.org>
3404
3405         gethostname: Move AC_LIBOBJ invocations to module description.
3406         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3407         gl_PREREQ_GETHOSTNAME invocations from here...
3408         * modules/gethostname (configure.ac): ... to here.
3409
3410 2011-05-08  Bruno Haible  <bruno@clisp.org>
3411
3412         getgroups: Move AC_LIBOBJ invocations to module description.
3413         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3414         here...
3415         * modules/getgroups (configure.ac): ... to here.
3416
3417 2011-05-08  Bruno Haible  <bruno@clisp.org>
3418
3419         getdtablesize: Move AC_LIBOBJ invocations to module description.
3420         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3421         invocation from here...
3422         * modules/getdtablesize (configure.ac): ... to here.
3423
3424 2011-05-08  Bruno Haible  <bruno@clisp.org>
3425
3426         getdomainname: Move AC_LIBOBJ invocations to module description.
3427         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3428         gl_PREREQ_GETDOMAINNAME invocations from here...
3429         * modules/getdomainname (configure.ac): ... to here.
3430
3431 2011-05-08  Bruno Haible  <bruno@clisp.org>
3432
3433         getline: Move AC_LIBOBJ invocations to module description.
3434         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3435         invocations from here...
3436         * modules/getline (configure.ac): ... to here.
3437
3438 2011-05-08  Bruno Haible  <bruno@clisp.org>
3439
3440         getline: Simplify.
3441         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3442         It's already handled through the module dependency.
3443
3444 2011-05-08  Bruno Haible  <bruno@clisp.org>
3445
3446         getdelim: Move AC_LIBOBJ invocations to module description.
3447         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3448         and gl_PREREQ_GETDELIM invocations from here...
3449         * modules/getdelim (configure.ac): ... to here.
3450         (Depends-on): Fix condition.
3451
3452 2011-05-08  Bruno Haible  <bruno@clisp.org>
3453
3454         getcwd: Move AC_LIBOBJ invocations to module description.
3455         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3456         invocations from here...
3457         * modules/getcwd (configure.ac): ... to here.
3458
3459 2011-05-08  Bruno Haible  <bruno@clisp.org>
3460
3461         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3462         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3463         here...
3464         * modules/getcwd-lgpl (configure.ac): ... to here.
3465
3466 2011-05-07  Bruno Haible  <bruno@clisp.org>
3467
3468         crypto/gc: Move AC_LIBOBJ invocations to module description.
3469         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3470         * modules/crypto/gc (configure.ac): ... to here.
3471
3472 2011-05-07  Bruno Haible  <bruno@clisp.org>
3473
3474         fwriting: Move AC_LIBOBJ invocations to module description.
3475         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3476         here...
3477         * modules/fwriting (configure.ac): ... to here.
3478
3479 2011-05-07  Bruno Haible  <bruno@clisp.org>
3480
3481         fwritable: Move AC_LIBOBJ invocations to module description.
3482         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3483         here...
3484         * modules/fwritable (configure.ac): ... to here.
3485
3486 2011-05-07  Bruno Haible  <bruno@clisp.org>
3487
3488         futimens: Move AC_LIBOBJ invocations to module description.
3489         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3490         here...
3491         * modules/futimens (configure.ac): ... to here.
3492
3493 2011-05-07  Bruno Haible  <bruno@clisp.org>
3494
3495         ftruncate: Move AC_LIBOBJ invocations to module description.
3496         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3497         gl_PREREQ_FTRUNCATE invocations from here...
3498         * modules/ftruncate (configure.ac): ... to here.
3499
3500 2011-05-07  Bruno Haible  <bruno@clisp.org>
3501
3502         fsync: Move AC_LIBOBJ invocations to module description.
3503         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3504         invocations from here...
3505         * modules/fsync (configure.ac): ... to here.
3506
3507 2011-05-07  Bruno Haible  <bruno@clisp.org>
3508
3509         fsusage: Move AC_LIBOBJ invocations to module description.
3510         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3511         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3512         * modules/fsusage (configure.ac): ... to here.
3513
3514 2011-05-07  Bruno Haible  <bruno@clisp.org>
3515
3516         freopen: Move AC_LIBOBJ invocations to module description.
3517         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3518         invocations from here...
3519         * modules/freopen (configure.ac): ... to here.
3520
3521 2011-05-07  Bruno Haible  <bruno@clisp.org>
3522
3523         free: Move AC_LIBOBJ invocations to module description.
3524         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3525         invocations from here...
3526         * modules/free (configure.ac): ... to here.
3527
3528 2011-05-07  Bruno Haible  <bruno@clisp.org>
3529
3530         freadable: Move AC_LIBOBJ invocations to module description.
3531         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3532         here...
3533         * modules/freadable (configure.ac): ... to here.
3534
3535 2011-05-07  Bruno Haible  <bruno@clisp.org>
3536
3537         fpurge: Move AC_LIBOBJ invocations to module description.
3538         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3539         invocations from here...
3540         * modules/fpurge (configure.ac): ... to here.
3541
3542 2011-05-07  Bruno Haible  <bruno@clisp.org>
3543
3544         fpending: Move AC_LIBOBJ invocations to module description.
3545         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3546         gl_FUNC_FPENDING.
3547         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3548         invocations from here...
3549         * modules/fpending (configure.ac): ... to here.
3550
3551 2011-05-07  Bruno Haible  <bruno@clisp.org>
3552
3553         fopen: Move AC_LIBOBJ invocations to module description.
3554         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3555         invocations from here...
3556         * modules/fopen (configure.ac): ... to here.
3557
3558 2011-05-07  Bruno Haible  <bruno@clisp.org>
3559
3560         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3561         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3562         gl_FUNC_FNMATCH_POSIX.
3563         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3564         invocations from here...
3565         * modules/fnmatch (configure.ac): ... to here.
3566         * modules/fnmatch-gnu (configure.ac): ... and here.
3567
3568 2011-05-07  Bruno Haible  <bruno@clisp.org>
3569
3570         flock: Move AC_LIBOBJ invocations to module description.
3571         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3572         invocations from here...
3573         * modules/flock (configure.ac): ... to here.
3574
3575 2011-05-07  Bruno Haible  <bruno@clisp.org>
3576
3577         fileblocks: Move AC_LIBOBJ invocations to module description.
3578         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3579         gl_PREREQ_FILEBLOCKS invocations from here...
3580         * modules/fileblocks (configure.ac): ... to here.
3581
3582 2011-05-06  Bruno Haible  <bruno@clisp.org>
3583
3584         fflush: Move AC_LIBOBJ invocations to module description.
3585         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3586         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3587         invocations from here...
3588         * modules/fflush (configure.ac): ... to here.
3589
3590 2011-05-06  Bruno Haible  <bruno@clisp.org>
3591
3592         fdopendir: Move AC_LIBOBJ invocations to module description.
3593         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3594         here...
3595         * modules/fdopendir (configure.ac): ... to here.
3596         (Depends-on): Improve conditions.
3597
3598 2011-05-06  Bruno Haible  <bruno@clisp.org>
3599
3600         _Exit: Move AC_LIBOBJ invocations to module description.
3601         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3602         invocations from here...
3603         * modules/_Exit (configure.ac): ... to here.
3604
3605 2011-05-21  Bruno Haible  <bruno@clisp.org>
3606
3607         euidaccess: Respect rules for use of AC_LIBOBJ.
3608         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3609         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3610         from here...
3611         * modules/euidaccess (configure.ac): ... to here.
3612
3613 2011-05-06  Bruno Haible  <bruno@clisp.org>
3614
3615         error: Move AC_LIBOBJ invocations to module description.
3616         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3617         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3618         invocations from here...
3619         * modules/error (configure.ac): ... to here.
3620
3621 2011-05-06  Bruno Haible  <bruno@clisp.org>
3622
3623         duplocale: Move AC_LIBOBJ invocations to module description.
3624         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3625         gl_PREREQ_DUPLOCALE invocations from here...
3626         * modules/duplocale (configure.ac): ... to here.
3627
3628 2011-05-05  Bruno Haible  <bruno@clisp.org>
3629
3630         dirfd: Move AC_LIBOBJ invocations to module description.
3631         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3632         gl_FUNC_DIRFD.
3633         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3634         here...
3635         * modules/dirfd (configure.ac): ... to here.
3636         (Depends-on): Fix condition.
3637
3638 2011-05-05  Bruno Haible  <bruno@clisp.org>
3639
3640         chown: Respect rules for use of AC_LIBOBJ.
3641         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3642         * modules/chown (configure.ac): ... to here.
3643
3644 2011-05-05  Bruno Haible  <bruno@clisp.org>
3645
3646         chdir-long: Move AC_LIBOBJ invocations to module description.
3647         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3648         gl_PREREQ_CHDIR_LONG invocations from here...
3649         * modules/chdir-long (configure.ac): ... to here.
3650
3651 2011-05-05  Bruno Haible  <bruno@clisp.org>
3652
3653         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3654         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3655         from here...
3656         * modules/canonicalize-lgpl (configure.ac): ... to here.
3657
3658 2011-05-05  Bruno Haible  <bruno@clisp.org>
3659
3660         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3661         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3662         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3663         REPLACE_CALLOC.
3664         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3665         * modules/calloc-gnu (configure.ac): Likewise.
3666
3667 2011-05-05  Bruno Haible  <bruno@clisp.org>
3668
3669         btowc: Move AC_LIBOBJ invocations to module description.
3670         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3671         invocations from here...
3672         * modules/btowc (configure.ac): ... to here.
3673
3674 2011-05-21  Bruno Haible  <bruno@clisp.org>
3675
3676         atexit: Move AC_LIBOBJ invocations to module description.
3677         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3678         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3679         here...
3680         * modules/atexit (configure.ac): ... to here.
3681
3682 2011-05-05  Bruno Haible  <bruno@clisp.org>
3683
3684         atoll: Move AC_LIBOBJ invocations to module description.
3685         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3686         invocations from here...
3687         * modules/atoll (configure.ac): ... to here.
3688
3689 2011-05-05  Bruno Haible  <bruno@clisp.org>
3690
3691         argz: Move AC_LIBOBJ invocations to module description.
3692         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3693         * modules/argz (configure.ac): ... to here.
3694
3695 2011-05-05  Bruno Haible  <bruno@clisp.org>
3696
3697         alphasort: Move AC_LIBOBJ invocations to module description.
3698         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3699         gl_PREREQ_ALPHASORT invocations from here...
3700         * modules/alphasort (configure.ac): ... to here.
3701
3702 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3703
3704         verify: new macro verify_expr; verify_true deprecated
3705         * NEWS: Mention this.
3706         * doc/verify.texi (Compile-time Assertions): Document this.
3707         * lib/verify.h (verify_true): Deprecate.
3708         (verify_expr): New macro.
3709         * tests/test-verify.c (function): Test verify_expr.
3710
3711 2011-06-14  Jim Meyering  <meyering@redhat.com>
3712
3713         init.sh: give more portable redirection-related advice in a comment
3714         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3715         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3716         for lots of discussion.  Stefano Lattarini suggested the solution
3717         of putting "9>&2" after the command.  Reported by Bruno Haible.
3718
3719 2011-06-13  Bruno Haible  <bruno@clisp.org>
3720
3721         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3722         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3723         'none'.
3724
3725 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3726
3727         ftoastr: use strtof only if HAVE_STRTOF
3728         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3730         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3731         * modules/ftoastr (configure.ac): Check for strtof.
3732
3733 2011-06-13  Bruno Haible  <bruno@clisp.org>
3734
3735         gnulib-tool: Addendum to 2011-06-08 commit.
3736         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3737         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3738
3739 2011-06-13  Bruno Haible  <bruno@clisp.org>
3740
3741         fseeko: Provide a non-inline replacement of fseek().
3742         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3743         * modules/fseeko (Depends-on): Add fseek.
3744         * modules/fseek (License): Change to LGPLv2+.
3745
3746 2011-06-13  Bruno Haible  <bruno@clisp.org>
3747
3748         ftello: Provide a non-inline replacement of ftell().
3749         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3750         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3751         not have ftello() (such as on mingw).
3752         * modules/ftello (Depends-on): Add ftell.
3753         * modules/ftell (License): Change to LGPLv2+.
3754
3755 2011-05-07  Bruno Haible  <bruno@clisp.org>
3756
3757         ftell: Move AC_LIBOBJ invocations to module description.
3758         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3759         * modules/ftell (configure.ac): ... to here.
3760
3761 2011-05-07  Bruno Haible  <bruno@clisp.org>
3762
3763         ftello: Respect rules for use of AC_LIBOBJ.
3764         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3765         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3766         here...
3767         * modules/ftello (configure.ac): ... to here.
3768
3769 2011-05-07  Bruno Haible  <bruno@clisp.org>
3770
3771         fseeko: Simplify.
3772         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3773         (gl_FUNC_FSEEKO): Inline it here.
3774
3775 2011-05-07  Bruno Haible  <bruno@clisp.org>
3776
3777         fseek: Move AC_LIBOBJ invocations to module description.
3778         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3779         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3780         * modules/fseek (configure.ac): ... to here.
3781
3782 2011-05-07  Bruno Haible  <bruno@clisp.org>
3783
3784         fseek: Respect rules for use of AC_LIBOBJ.
3785         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3786         here...
3787         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3788
3789 2011-05-07  Bruno Haible  <bruno@clisp.org>
3790
3791         fseeko: Respect rules for use of AC_LIBOBJ.
3792         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3793         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3794         here...
3795         * modules/fseeko (configure.ac): ... to here.
3796
3797 2011-06-13  Bruno Haible  <bruno@clisp.org>
3798
3799         gnulib-tool: Allow comments in the 'Depends-on' section.
3800         * doc/gnulib.texi (Module description): Mention comment syntax in the
3801         Depends-on section.
3802         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3803
3804 2011-06-13  Bruno Haible  <bruno@clisp.org>
3805
3806         file-set.h: guard __attibute__ use, now that it's not always defined
3807         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3808         versions that support it.  This fixes a coreutils build failure with
3809         the vendor cc on HP-UX 11.31.
3810
3811 2011-06-12  Bruno Haible  <bruno@clisp.org>
3812
3813         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3814         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3815         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3816         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3817         (acl, aclsort): New declarations.
3818         (aclv_nontrivial): New declaration.
3819         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3820         (file_has_acl): Read also the second kind of HP-UX ACLs.
3821         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3822         kind of HP-UX ACLs if the first kind fails.
3823         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3824         second kind of HP-UX ACLs.
3825         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3826         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3827         agree.
3828         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3829         hpuxjfs.
3830         Handle hpuxjfs.
3831         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3832         hpuxjfs.
3833         Handle hpuxjfs.
3834         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3835         (func_test_same_acls): Use both lsacl and getacl.
3836         Handle hpuxjfs.
3837         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3838         (func_test_same_acls): Use both lsacl and getacl.
3839         Handle hpuxjfs.
3840
3841 2011-06-12  Bruno Haible  <bruno@clisp.org>
3842
3843         acl: Complete the 2010-08-10 fix.
3844         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3845         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3846         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3847         explicitly.
3848         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3849         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3850
3851 2011-06-12  Bruno Haible  <bruno@clisp.org>
3852
3853         spawn-pipe tests: Comments.
3854         * tests/test-spawn-pipe-child.c (main): Update comment.
3855         Reported by James Youngman <jay@gnu.org>.
3856
3857 2011-06-11  James Youngman  <jay@gnu.org>
3858
3859         New module 'stat-size'.
3860         * modules/stat-size: New module.  Provides macros for accessing
3861         file size information in instances of struct stat.  Depends on the
3862         fileblocks module because it calls st_blocks.
3863         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3864         * doc/gnulib.texi: Include stat-size.texi.
3865         * doc/stat-size.texi: Documentation for this module.
3866         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3867         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3868         AC_STRUCT_ST_BLOCKS.
3869
3870 2011-06-09  Bruno Haible  <bruno@clisp.org>
3871
3872         thread: Support pthreads-win32.
3873         * lib/glthread/thread.h (gl_thread_self): Define differently on
3874         pthreads-win32.
3875         (gl_null_thread): New declaration.
3876         (gl_thread_self_pointer): New macro.
3877         * lib/glthread/thread.c (gl_null_thread): New constant.
3878         * tests/test-lock.c: Use gl_thread_self_pointer instead of
3879         gl_thread_self.
3880         * tests/test-tls.c: Likewise.
3881         Suggested by Paul Eggert. Reported by Eric Blake.
3882
3883 2011-06-09  Bruno Haible  <bruno@clisp.org>
3884
3885         thread: Fix confusion between NULL and 0.
3886         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
3887         Reported by Paul Eggert.
3888
3889 2011-06-09  Bruno Haible  <bruno@clisp.org>
3890
3891         spawn-pipe tests: Avoid test failure on HP-UX 11.
3892         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
3893         is closed.
3894
3895 2011-06-09  Bruno Haible  <bruno@clisp.org>
3896
3897         acl tests: Fix compilation error on HP-UX 11.
3898         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
3899
3900 2011-06-09  Bruno Haible  <bruno@clisp.org>
3901
3902         rmdir: Avoid test failure on HP-UX 10.20.
3903         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
3904         EEXIST.
3905
3906 2011-06-08  Eric Blake  <eblake@redhat.com>
3907
3908         perror: fix test on mingw
3909         * modules/perror-tests (Depends-on): Add dup2.
3910
3911         strerror_r-posix: fix on MacOS
3912         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
3913         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
3914         logic bug.
3915         * lib/strerror_r.c (strerror_r): Fix the bug.
3916         * lib/strerror.c (strerror): Likewise.
3917         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3918         problem.
3919         * doc/posix-functions/strerror.texi (strerror): Likewise.
3920         * doc/posix-functions/perror.texi (perror): Likewise.
3921         * tests/test-strerror.c (main): Enhance test.
3922         * tests/test-strerror_r.c (main): Likewise.
3923
3924 2011-06-08  Bruno Haible  <bruno@clisp.org>
3925
3926         gnulib-tool: Better isolation between different gnulib-tool invocations.
3927         * gnulib-tool: New option --witness-c-macro.
3928         (witness_c_macro): New variable.
3929         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
3930         AM_CPPFLAGS define it as a C macro.
3931         (func_emit_tests_Makefile_am): Likewise.
3932         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
3933         read it from there.
3934         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
3935         m4_define, not AC_DEFUN.
3936         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
3937         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
3938         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
3939         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
3940         s|...|...|, to substitute the values of the GNULIB_* module indicator
3941         variables.
3942         * modules/dirent (Makefile.am): Likewise.
3943         * modules/fcntl-h (Makefile.am): Likewise.
3944         * modules/iconv-h (Makefile.am): Likewise.
3945         * modules/langinfo (Makefile.am): Likewise.
3946         * modules/locale (Makefile.am): Likewise.
3947         * modules/math (Makefile.am): Likewise.
3948         * modules/netdb (Makefile.am): Likewise.
3949         * modules/poll-h (Makefile.am): Likewise.
3950         * modules/pty (Makefile.am): Likewise.
3951         * modules/search (Makefile.am): Likewise.
3952         * modules/signal (Makefile.am): Likewise.
3953         * modules/spawn (Makefile.am): Likewise.
3954         * modules/stdio (Makefile.am): Likewise.
3955         * modules/stdlib (Makefile.am): Likewise.
3956         * modules/string (Makefile.am): Likewise.
3957         * modules/sys_ioctl (Makefile.am): Likewise.
3958         * modules/sys_select (Makefile.am): Likewise.
3959         * modules/sys_socket (Makefile.am): Likewise.
3960         * modules/sys_stat (Makefile.am): Likewise.
3961         * modules/sys_times (Makefile.am): Likewise.
3962         * modules/sys_utsname (Makefile.am): Likewise.
3963         * modules/sys_wait (Makefile.am): Likewise.
3964         * modules/termios (Makefile.am): Likewise.
3965         * modules/time (Makefile.am): Likewise.
3966         * modules/unistd (Makefile.am): Likewise.
3967         * modules/wchar (Makefile.am): Likewise.
3968
3969 2011-06-08  Eric Blake  <eblake@redhat.com>
3970
3971         strerror: simplify replacement
3972         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
3973         * modules/strerror (configure.ac): No prereqs needed here...
3974         * modules/strerror-override (configure.ac): ...but this needs it.
3975         (Files): Add file for needed prereq macro.
3976
3977 2011-06-08  Bruno Haible  <bruno@clisp.org>
3978
3979         strerror_r-posix: Tweaks.
3980         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
3981         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
3982         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
3983         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
3984         (gl_FUNC_STRERROR_R): ... to here.
3985         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
3986
3987 2011-06-07  Eric Blake  <eblake@redhat.com>
3988
3989         perror: document fixed bugs
3990         * doc/posix-functions/perror.texi (perror): Document recent
3991         patches.
3992
3993 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3994
3995         stat-time: get_stat_birthtime failure is better-defined
3996         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
3997         return a timestamp whose tv_sec and tv_nsec values are both -1.
3998         Previously, the spec said only that the tv_nsec value was negative.
3999         This upward-compatible change simplifies GNU tar a bit.
4000
4001 2011-06-07  Eric Blake  <eblake@redhat.com>
4002
4003         strerror_r-posix: work around cygwin 1.7.9
4004         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
4005         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
4006         bug without replacing strerror_r.
4007         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
4008         strerror_r is buggy, but without requiring strerror_r compilation.
4009         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
4010
4011         test-perror: relax test to ignore cygwin bug
4012         * tests/test-perror2.c (main): Relax test on requiring detection
4013         of stream errors, and use unbuffered stream.
4014         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
4015         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
4016         * doc/posix-functions/fputc.texi (fputc): Likewise.
4017         * doc/posix-functions/fputs.texi (fputs): Likewise.
4018         * doc/posix-functions/fputws.texi (fputws): Likewise.
4019         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
4020         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
4021         * doc/posix-functions/getopt.texi (getopt): Likewise.
4022         * doc/posix-functions/perror.texi (perror): Likewise.
4023         * doc/posix-functions/printf.texi (printf): Likewise.
4024         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
4025         * doc/posix-functions/psignal.texi (psignal): Likewise.
4026         * doc/posix-functions/putc.texi (putc): Likewise.
4027         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
4028         Likewise.
4029         * doc/posix-functions/putchar.texi (putchar): Likewise.
4030         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
4031         Likewise.
4032         * doc/posix-functions/puts.texi (puts): Likewise.
4033         * doc/posix-functions/putwc.texi (putwc): Likewise.
4034         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
4035         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
4036         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4037         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
4038         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4039         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
4040         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
4041         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
4042
4043 2011-05-22  Bruno Haible  <bruno@clisp.org>
4044
4045         strerror: Move AC_LIBOBJ invocations to module description.
4046         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
4047         gl_PREREQ_STRERROR invocations from here...
4048         * modules/strerror (configure.ac): ... to here.
4049
4050 2011-05-21  Bruno Haible  <bruno@clisp.org>
4051
4052         perror: Use common idiom.
4053         * modules/perror (configure.ac): Reorder statements.
4054
4055 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4056
4057         tests: fix usage message in 'mktempd_'
4058         * tests/init.sh (mktempd_): In the usage message, use literal
4059         'mktempd_', not '$ME' (which is even undefined), as the name of
4060         the subroutine.
4061
4062 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4063
4064         tests init: new function 'fatal_', for hard errors
4065         Before this patch, the only way offered by tests/init.sh to
4066         properly signal a hard error was the `framework_failure_'
4067         function.  But the error message issued by that function,
4068         as its name would suggest, refers to a set-up failure in the
4069         testsuite, while hard errors can obviously also be due to
4070         other reasons.  The best way to fix this inconsistency is to
4071         introduce a new function with a more general error message.
4072         * tests/init.sh (fatal_): New function.
4073
4074 2011-06-06  Eric Blake  <eblake@redhat.com>
4075
4076         canonicalize-lgpl: use common idiom
4077         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
4078         over newer POSIX -Rf.
4079         Reported by Bruno Haible.
4080
4081         canonicalize-lgpl: work around AIX realpath bug
4082         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
4083         * doc/posix-functions/realpath.texi (realpath): Document it.
4084         Reported by Bruno Haible.
4085
4086         strerror: work around FreeBSD bug
4087         * lib/strerror.c (strerror): Special case 0.
4088         Reported by Bruno Haible.
4089
4090         strerror-override: avoid bloating errno module
4091         * modules/errno (Files, configure.ac): Move replacement strings...
4092         * modules/strerror-override: ...to new module.
4093         * modules/strerror (Depends-on): Add strerror-override.
4094         * modules/strerror_r-posix (Depends-on): Likewise.
4095         * MODULES.html.sh: Document new module.
4096         Reported by Bruno Haible.
4097
4098 2011-06-06  Bruno Haible  <bruno@clisp.org>
4099
4100         spawn-pipe tests: Rename program.
4101         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
4102         * tests/test-spawn-pipe-child.c: Update comment.
4103         * tests/test-spawn-pipe.sh: Update.
4104         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
4105
4106         spawn-pipe tests: Link the child program only against libc.
4107         * tests/test-spawn-pipe-child.c: New file, extracted from
4108         tests/test-spawn-pipe.c.
4109         (main): Expect only one argument.
4110         (is_open): New function, copied from tests/test-pipe.c.
4111         * tests/test-spawn-pipe.c: Don't include <errno.h>.
4112         (child_main): Remove function.
4113         (test_pipe): Pass only one argument to the child program.
4114         (main): Remove child process code. Expect the child program's name as
4115         first argument.
4116         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4117         argument.
4118         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
4119         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
4120         test-spawn-pipe-child against no libraries.
4121
4122 2011-06-06  Bruno Haible  <bruno@clisp.org>
4123
4124         careadlinkat: Avoid mismatch between ssize_t and int.
4125         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
4126         * lib/careadlinkat.c (careadlinkatcwd): Define always.
4127
4128 2011-06-06  Jim Meyering  <meyering@redhat.com>
4129
4130         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
4131         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
4132         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
4133
4134 2011-06-05  Bruno Haible  <bruno@clisp.org>
4135
4136         ansi-c++-opt: Interoperability with libtool.
4137         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
4138         set the variable to "no", not to ":".
4139         * NEWS: Mention the change.
4140
4141 2011-06-05  Bruno Haible  <bruno@clisp.org>
4142
4143         acl: Fix test failure on AIX 7.
4144         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
4145         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
4146
4147 2011-06-05  Bruno Haible  <bruno@clisp.org>
4148
4149         pipe-filter-ii: Fix test failure on AIX and IRIX.
4150         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
4151         with EAGAIN, retry with a smaller buffer size.
4152
4153 2011-06-05  Bruno Haible  <bruno@clisp.org>
4154
4155         localename: Fix link dependencies.
4156         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
4157         * modules/localename-tests (Makefile.am): Link test-localename with
4158         $(LIBTHREAD).
4159
4160 2011-06-05  Bruno Haible  <bruno@clisp.org>
4161
4162         error: Avoid gcc warning.
4163         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
4164
4165 2011-06-05  Bruno Haible  <bruno@clisp.org>
4166
4167         unsetenv: Avoid gcc warning.
4168         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
4169
4170 2011-06-05  Bruno Haible  <bruno@clisp.org>
4171
4172         setenv: Avoid gcc warning.
4173         * lib/setenv.c (setenv): Provide declaration if system lacks it.
4174
4175 2011-06-05  Bruno Haible  <bruno@clisp.org>
4176
4177         sys_select: Ensure memset is declared also on AIX 7.
4178         * lib/sys_select.in.h: Include <string.h> also on AIX.
4179         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
4180         self-contained also on AIX 7.1.
4181
4182 2011-06-04  Jim Meyering  <meyering@redhat.com>
4183
4184         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
4185         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
4186         function name, "error".
4187         (_gl_translatable_diag_func_re): New configurable variable.
4188
4189 2011-06-04  Bruno Haible  <bruno@clisp.org>
4190
4191         getopt: Avoid gcc warning.
4192         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
4193
4194 2011-06-04  Bruno Haible  <bruno@clisp.org>
4195
4196         strerror_r: Fix comments.
4197         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
4198         commit.
4199
4200 2011-06-04  Bruno Haible  <bruno@clisp.org>
4201
4202         perror: Fix compilation error.
4203         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
4204         Undefine fprintf, not sprintf.
4205         * modules/perror (Depends-on): Remove intprops, verify.
4206
4207 2011-06-04  Bruno Haible  <bruno@clisp.org>
4208
4209         setlocale: Enable replacement on Cygwin 1.5.
4210         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
4211         Cygwin 1.5.x.
4212         * doc/posix-functions/setlocale.texi: Mention that the problem with the
4213         LC_CTYPE category also exists on Cygwin 1.5.x.
4214
4215 2011-06-04  Bruno Haible  <bruno@clisp.org>
4216
4217         strerror-override: Don't disable symbol renamings.
4218         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
4219         * lib/strerror-override.c: Include config.h.
4220         (strerror_override): Don't undefine.
4221
4222 2011-06-03  Bruno Haible  <bruno@clisp.org>
4223
4224         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
4225         * lib/localename.h: Update copyright header.
4226         * lib/localename.c: Likewise.
4227         * lib/relocatable.h: Likewise.
4228         * lib/relocatable.c: Likewise.
4229
4230 2011-06-02  Bruno Haible  <bruno@clisp.org>
4231
4232         doc: Fix a module name.
4233         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
4234
4235 2011-06-02  Bruno Haible  <bruno@clisp.org>
4236
4237         pipe2: Remove dependency on 'nonblocking' module.
4238         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
4239         O_NONBLOCK is defined by gnulib.
4240         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
4241         is zero.
4242         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
4243         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
4244         defined by gnulib.
4245         (get_nonblocking_flag): New function.
4246         (main): Test O_NONBLOCK flag only if it is nonzero.
4247         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
4248
4249 2011-06-03  Jim Meyering  <meyering@redhat.com>
4250
4251         maint: three new prohibit-header-without-use rules
4252         Prohibit use of cloexec.h, posixver.h, same.h without use.
4253         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
4254         (sc_prohibit_posixver_without_use): Likewise.
4255         (sc_prohibit_same_without_use): Likewise.
4256
4257 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4258
4259         allocator: 'die' routine is now given requested size
4260         * lib/allocator.h (struct allocator.die): New size arg.
4261         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
4262         If the actual problem is an ssize_t limitation, not a size_t or
4263         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
4264
4265 2011-06-01  Eric Blake  <eblake@redhat.com>
4266
4267         strerror: drop strerror_r dependency
4268         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
4269         * lib/strerror-override.c (strerror_override): ...to new file.
4270         * lib/strerror-override.h: Add prototype.
4271         * lib/strerror-impl.h: Delete.
4272         * lib/strerror.c (strerror): New implementation.
4273         * modules/errno (Files): Add new files.
4274         (configure.ac): Compile new file as appropriate.
4275         * modules/strerror (Files): Drop unused file.
4276         (Depends-on): Drop strerror_r-posix.
4277         * MODULES.html.sh: Document strerror_r-posix.
4278         Requested by Sam Steingold.
4279
4280         perror: call strerror_r directly
4281         * modules/perror (Files): Drop strerror-impl.h.
4282         * lib/perror.c (perror): Use our own stack buffer, rather than
4283         calling a wrapper that uses static storage.
4284         * doc/posix-functions/perror.texi (perror): Document a limitation
4285         of our replacement.
4286
4287         strerror_r: fix includes for FreeBSD
4288         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
4289         since we use abort on some platforms.
4290         Reported by Matthias Bolte.
4291
4292 2011-05-31  Bruno Haible  <bruno@clisp.org>
4293
4294         Fix link errors in tests: openat-die uses gettext-h.
4295         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4296         against $(LIBINTL).
4297         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4298         against $(LIBINTL).
4299         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4300         $(LIBINTL).
4301         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4302         against $(LIBINTL).
4303         * modules/linkat-tests (Makefile.am): Link test-linkat against
4304         $(LIBINTL).
4305         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4306         $(LIBINTL).
4307         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4308         against $(LIBINTL).
4309         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4310         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4311         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4312         $(LIBINTL).
4313         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4314         $(LIBINTL).
4315         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4316         $(LIBINTL).
4317         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4318
4319 2011-05-31  Bruno Haible  <bruno@clisp.org>
4320
4321         Fix link errors in tests: wait-process uses gettext-h.
4322         * modules/nonblocking-pipe-tests (Makefile.am): Set
4323         test_nonblocking_pipe_main_LDADD.
4324         * modules/nonblocking-socket-tests (Makefile.am): Link
4325         test-nonblocking-socket-main against $(LIBINTL).
4326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4327
4328 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4329
4330         assert-h: work around 'verify' incompatibility
4331         * lib/verify.h: Use @...@ directives, not ifdef.
4332         * modules/assert-h (assert.h): Implement the directives.
4333         (assert.h): Substitute the symbol-prefix more consistently.
4334
4335 2011-05-29  Jim Meyering  <meyering@redhat.com>
4336
4337         trim: remove three superfluous assignments
4338         * lib/trim.c (trim2): Remove three superfluous assignments
4339         and correct brace positioning.
4340
4341 2011-05-29  Bruno Haible  <bruno@clisp.org>
4342
4343         wctype-h: Avoid namespace pollution on Solaris 2.6.
4344         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4345         identifiers.
4346         * doc/posix-headers/wctype.texi: Mention the problem.
4347         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4348
4349 2011-05-28  Jim Meyering  <meyering@redhat.com>
4350
4351         parse-datetime.y: accommodate -Wstrict-overflow
4352         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4353         placate -Wstrict-overflow.
4354
4355         trim: avoid a warning from -O2 -Wstrict-overflow
4356         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4357
4358 2011-05-29  Bruno Haible  <bruno@clisp.org>
4359
4360         gnulib-tool: Fix bug in yesterday's commit.
4361         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4362         twice.
4363
4364 2011-05-29  Bruno Haible  <bruno@clisp.org>
4365
4366         Allow multiple gnulib generated include files to be combined.
4367         * gnulib-tool (func_compute_include_guard_prefix): New function.
4368         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4369         ${gl_include_guard_prefix} references.
4370         (func_import, func_create_testdir): Invoke
4371         func_compute_include_guard_prefix.
4372         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4373         * lib/ctype.in.h: Likewise.
4374         * lib/dirent.in.h: Likewise.
4375         * lib/errno.in.h: Likewise.
4376         * lib/fcntl.in.h: Likewise.
4377         * lib/float.in.h: Likewise.
4378         * lib/getopt.in.h: Likewise.
4379         * lib/iconv.in.h: Likewise.
4380         * lib/langinfo.in.h: Likewise.
4381         * lib/locale.in.h: Likewise.
4382         * lib/math.in.h: Likewise.
4383         * lib/netdb.in.h: Likewise.
4384         * lib/netinet_in.in.h: Likewise.
4385         * lib/poll.in.h: Likewise.
4386         * lib/pthread.in.h: Likewise.
4387         * lib/pty.in.h: Likewise.
4388         * lib/sched.in.h: Likewise.
4389         * lib/se-selinux.in.h: Likewise.
4390         * lib/search.in.h: Likewise.
4391         * lib/signal.in.h: Likewise.
4392         * lib/spawn.in.h: Likewise.
4393         * lib/stdarg.in.h: Likewise.
4394         * lib/stddef.in.h: Likewise.
4395         * lib/stdint.in.h: Likewise.
4396         * lib/stdio.in.h: Likewise.
4397         * lib/stdlib.in.h: Likewise.
4398         * lib/string.in.h: Likewise.
4399         * lib/strings.in.h: Likewise.
4400         * lib/sys_file.in.h: Likewise.
4401         * lib/sys_ioctl.in.h: Likewise.
4402         * lib/sys_select.in.h: Likewise.
4403         * lib/sys_socket.in.h: Likewise.
4404         * lib/sys_stat.in.h: Likewise.
4405         * lib/sys_time.in.h: Likewise.
4406         * lib/sys_times.in.h: Likewise.
4407         * lib/sys_uio.in.h: Likewise.
4408         * lib/sys_utsname.in.h: Likewise.
4409         * lib/sys_wait.in.h: Likewise.
4410         * lib/sysexits.in.h: Likewise.
4411         * lib/termios.in.h: Likewise.
4412         * lib/time.in.h: Likewise.
4413         * lib/unistd.in.h: Likewise.
4414         * lib/wchar.in.h: Likewise.
4415         * lib/wctype.in.h: Likewise.
4416         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4417         * modules/ctype (Makefile.am): Likewise.
4418         * modules/dirent (Makefile.am): Likewise.
4419         * modules/errno (Makefile.am): Likewise.
4420         * modules/fcntl-h (Makefile.am): Likewise.
4421         * modules/float (Makefile.am): Likewise.
4422         * modules/getopt-posix (Makefile.am): Likewise.
4423         * modules/iconv-h (Makefile.am): Likewise.
4424         * modules/langinfo (Makefile.am): Likewise.
4425         * modules/locale (Makefile.am): Likewise.
4426         * modules/math (Makefile.am): Likewise.
4427         * modules/netdb (Makefile.am): Likewise.
4428         * modules/netinet_in (Makefile.am): Likewise.
4429         * modules/poll-h (Makefile.am): Likewise.
4430         * modules/pthread (Makefile.am): Likewise.
4431         * modules/pty (Makefile.am): Likewise.
4432         * modules/sched (Makefile.am): Likewise.
4433         * modules/search (Makefile.am): Likewise.
4434         * modules/selinux-h (Makefile.am): Likewise.
4435         * modules/signal (Makefile.am): Likewise.
4436         * modules/spawn (Makefile.am): Likewise.
4437         * modules/stdarg (Makefile.am): Likewise.
4438         * modules/stddef (Makefile.am): Likewise.
4439         * modules/stdint (Makefile.am): Likewise.
4440         * modules/stdio (Makefile.am): Likewise.
4441         * modules/stdlib (Makefile.am): Likewise.
4442         * modules/string (Makefile.am): Likewise.
4443         * modules/strings (Makefile.am): Likewise.
4444         * modules/sys_file (Makefile.am): Likewise.
4445         * modules/sys_ioctl (Makefile.am): Likewise.
4446         * modules/sys_select (Makefile.am): Likewise.
4447         * modules/sys_socket (Makefile.am): Likewise.
4448         * modules/sys_stat (Makefile.am): Likewise.
4449         * modules/sys_time (Makefile.am): Likewise.
4450         * modules/sys_times (Makefile.am): Likewise.
4451         * modules/sys_uio (Makefile.am): Likewise.
4452         * modules/sys_utsname (Makefile.am): Likewise.
4453         * modules/sys_wait (Makefile.am): Likewise.
4454         * modules/sysexits (Makefile.am): Likewise.
4455         * modules/termios (Makefile.am): Likewise.
4456         * modules/time (Makefile.am): Likewise.
4457         * modules/unistd (Makefile.am): Likewise.
4458         * modules/wchar (Makefile.am): Likewise.
4459         * modules/wctype-h (Makefile.am): Likewise.
4460         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4461
4462 2011-05-29  Bruno Haible  <bruno@clisp.org>
4463
4464         assert-h: Allow multiple gnulib generated replacements to coexist.
4465         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4466
4467 2011-05-29  Bruno Haible  <bruno@clisp.org>
4468
4469         argp: Allow coexistence with strerror_r-posix module.
4470         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4471         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4472         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4473         not the glibc signature.
4474
4475 2011-05-28  Bruno Haible  <bruno@clisp.org>
4476
4477         gnulib-tool: Alternative structure of testdirs, similar to --import.
4478         * gnulib-tool: New option --single-configure.
4479         (func_usage): Document it.
4480         (single_configure): New variable.
4481         (func_modules_transitive_closure_separately,
4482         func_modules_transitive_closure_separately,
4483         func_determine_use_libtests, func_modules_add_dummy_separately,
4484         func_modules_to_filelist_separately): New functions, extracted from
4485         func_import.
4486         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4487         (func_import): Use the new functions.
4488         (func_create_testdir): Set final_modules. Handle $single_configure =
4489         true case.
4490
4491 2011-05-28  Bruno Haible  <bruno@clisp.org>
4492
4493         getloadavg: Remove an unreliable safety check.
4494         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4495         getloadavg.c is in place.
4496         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4497         Reported by Sam Steingold <sds@gnu.org>.
4498
4499 2011-05-28  Bruno Haible  <bruno@clisp.org>
4500
4501         doc: Cleanup yet another file produced by texinfo.tex.
4502         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4503
4504 2011-05-28  Bruno Haible  <bruno@clisp.org>
4505
4506         Finish the conditional dependencies mechanism.
4507         * gnulib-tool: New option --no-conditional-dependencies.
4508         (func_usage): Document it. Don't mark --conditional-dependencies as
4509         experimental.
4510         (cond_dependencies): The possible values can now be true, false, empty.
4511         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4512         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4513         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4514
4515 2011-05-28  Bruno Haible  <bruno@clisp.org>
4516
4517         doc: Use a recent texinfo.tex.
4518         * doc/Makefile (tex_opts): New variable.
4519         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4520
4521 2011-05-28  Jim Meyering  <meyering@redhat.com>
4522
4523         intprops.h: adjust comment to match code change
4524         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4525         only once, it *may* have side effects.  Also fix an unrelated typo.
4526         (_GL_INT_SIGNED): Likewise.
4527
4528 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4529
4530         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4531
4532 2011-05-26  Bruno Haible  <bruno@clisp.org>
4533
4534         mbsrchr: Avoid collision with system function on Interix.
4535         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4536         Reported by Markus Duft <mduft@gentoo.org>.
4537
4538 2011-05-15  James Youngman  <jay@gnu.org>
4539
4540         getopt: for ambiguous options, enumerate the possibilities.
4541         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4542         the ambiguous options when an ambiguous prefix is given. This was
4543         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4544         glibc change was
4545         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4546
4547 2011-05-25  Eric Blake  <eblake@redhat.com>
4548
4549         getcwd: work around mingw bug
4550         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4551         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4552         Reported by Matthias Bolte.
4553
4554 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4555
4556         test-intprops: disable -Wtype-limits diagnostics
4557         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4558         diagnostics.  Otherwise, the integer overflow macros generate many
4559         diagnostics.  Reported by Jim Meyering in
4560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4561
4562         intprops: shorten, to pacify gcc -Woverlength-strings
4563         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4564         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4565         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4566         likely to run afoul of C compiler limits for string constant lengths.
4567         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4568
4569 2011-05-24  Eric Blake  <eblake@redhat.com>
4570
4571         docs: document recently fixed glibc printf bug
4572         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4573         * doc/posix-functions/printf.texi (printf): Likewise.
4574         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4575         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4576
4577         closein-tests: convert to init.sh
4578         * modules/closein-tests (Files): Add init.sh
4579         * tests/test-closein.sh Use it.
4580
4581         yesno-tests: convert to init.sh
4582         * modules/yesno-tests (Files): Add init.sh.
4583         * tests/test-yesno.sh: Use it.
4584
4585         atexit-tests: ensure reliable exit status
4586         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4587         Reported by Bruno Haible.
4588
4589 2011-05-24  Bruno Haible  <bruno@clisp.org>
4590
4591         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4592         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4593         gl_PREREQ_STRERROR_R invocations from here...
4594         * modules/strerror_r-posix (configure.ac): ... to here.
4595
4596 2011-05-24  Eric Blake  <eblake@redhat.com>
4597
4598         strerror_r: fix missing header
4599         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4600
4601         strerror_r: fix AIX test failures
4602         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4603         ERANGE failure.
4604
4605         strerror_r: fix Solaris test failures
4606         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4607         failures.
4608         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4609
4610         strerror_r: enforce POSIX recommendations
4611         * lib/strerror_r.c (safe_copy): New helper method.
4612         (strerror_r): Guarantee a non-empty string.
4613         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4614         recent POSIX rulings and to match our strerror guarantees.
4615         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4616
4617 2011-05-24  Jim Meyering  <meyering@redhat.com>
4618
4619         test-perror2.c: avoid warning about unused variable
4620         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4621
4622 2011-05-24  Eric Blake  <eblake@redhat.com>
4623
4624         perror: avoid spurious test failure on HP-UX
4625         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4626
4627         tests: fix logic bug in init.sh
4628         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4629         shell.
4630
4631 2011-05-24  Jim Meyering  <meyering@redhat.com>
4632
4633         utimensat: do not reference an out-of-scope buffer
4634         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4635         declared in an inner scope, yet "times" would be dereferenced outside
4636         the scope in which "ts" was valid.
4637         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4638         of ts[2] "out/up", so that the use of aliased "times" (via
4639         "times = ts;") does not end up referencing an out-of-scope "ts"
4640
4641         opendir-safer.c: don't clobber errno; don't close negative FD
4642         * lib/opendir-safer.c (opendir_safer):
4643         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4644         file descriptor, and more importantly, don't clobber the
4645         offending errno value with EINVAL.  Before, upon failure
4646         of dup_safer, we would pass the negative file descriptor to
4647         fdopendir, which would clobber errno.
4648
4649 2011-05-23  Bruno Haible  <bruno@clisp.org>
4650
4651         idcache: Fix module description.
4652         * modules/idcache (Include): Set to "idcache.h".
4653
4654 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4655
4656         gnulib-tool: fix portability problem with MacOS sed
4657         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4658         before the "}".  Problem reported by Leo in
4659         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4660         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4661         sed_extract_condition1, sed_extract_condition2.
4662
4663 2011-05-23  Bruno Haible  <bruno@clisp.org>
4664
4665         hash: Simplify autoconf macro.
4666         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4667
4668 2011-05-23  Bruno Haible  <bruno@clisp.org>
4669
4670         getugroups: Fix module description.
4671         * modules/getugroups (Include): Set to "getugroups.h".
4672
4673 2011-05-23  Bruno Haible  <bruno@clisp.org>
4674
4675         linkat: Simplify autoconf macro.
4676         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4677
4678 2011-05-23  Bruno Haible  <bruno@clisp.org>
4679             Eric Blake  <eblake@redhat.com>
4680
4681         linkat, renameat: Update dependencies.
4682         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4683         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4684         symlinkat.
4685
4686 2011-05-23  Jim Meyering  <meyering@redhat.com>
4687
4688         maint.mk: more tight_scope improvements
4689         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4690         (_gl_TS_headers): Define only in if-0'd block.
4691         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4692         sometimes we must *not* use it.  Adjust uses accordingly.
4693         (sc_tight_scope): Use much simpler grep-based test to determine
4694         whether we skip this rule.
4695
4696         maint.mk: generalize/improve the tight-scope rule
4697         * top/maint.mk: Emit a warning when the test is skipped.
4698         (_gl_TS_dir): Add $(srcdir)/ prefix.
4699         (_gl_TS_function_match): Simplify, rather than trying
4700         to enumerate common types.  Otherwise, it would fail to match an
4701         "extern unsigned char const *" declaration in idutils.
4702         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4703         a way to support use of that type of macro.
4704         (_gl_TS_var_match): Simplify regexp.
4705         (_gl_TS_obj_files): New configurable variable.
4706         (_gl_TS_headers): Likewise.
4707
4708 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4709
4710         verify: fix bug when gnulib <assert.h> is also included
4711         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4712         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4713         Perhaps there's a better way, but this fixes the immediate problem.
4714         Problem reported by Bruno Haible in
4715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4716
4717 2011-05-22  Bruno Haible  <bruno@clisp.org>
4718
4719         xgetcwd: Simplify autoconf macro.
4720         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4721
4722 2011-05-22  Bruno Haible  <bruno@clisp.org>
4723
4724         New module 'mktime-internal'.
4725         * modules/mktime-internal: New file.
4726         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4727         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4728         mktime_internal as a C macro if libc has __mktime_internal.
4729         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4730         conditions.
4731         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4732
4733 2011-05-22  Bruno Haible  <bruno@clisp.org>
4734
4735         timegm: Correct mktime replacement statements.
4736         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4737         defining mktime as a C macro. This completes a 2009-07-28 commit.
4738
4739 2011-05-22  Bruno Haible  <bruno@clisp.org>
4740
4741         timegm: Simplify autoconf macro.
4742         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4743
4744 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4745
4746         clock-time: change to LGPLv2+.
4747         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4748         BSD-like but we have no mark for that; this is good enough for now.
4749
4750 2011-05-21  Bruno Haible  <bruno@clisp.org>
4751
4752         strerror_r: Fix comments.
4753         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4754
4755 2011-05-21  Bruno Haible  <bruno@clisp.org>
4756
4757         relocatable-prog-wrapper: Fix possible link error.
4758         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4759         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4760         (gl_FUNC_SETENV): ... to here.
4761         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4762         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4763
4764 2011-05-21  Bruno Haible  <bruno@clisp.org>
4765
4766         relocatable-prog-wrapper: Assume strerror() exists.
4767         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4768         m4/strerror.m4.
4769         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4770         * lib/relocwrapper.c: Remove mention of strerror module.
4771         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4772         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4773         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4774         C macro.
4775
4776 2011-05-21  Bruno Haible  <bruno@clisp.org>
4777
4778         select: Simplify replacement idiom.
4779         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4780         Win32 platforms.
4781         * lib/sys_select.in.h (select): Simplify accordingly.
4782         * modules/select (Depends-on): Likewise.
4783
4784 2011-05-21  Bruno Haible  <bruno@clisp.org>
4785
4786         mkdir-p: Simplify autoconf macro.
4787         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4788         gl_FUNC_LCHOWN.
4789
4790 2011-05-21  Eric Blake  <eblake@redhat.com>
4791
4792         strerror_r: avoid clobbering strerror on cygwin
4793         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4794         fall back instead to sys_errlist.
4795         * modules/strerror (configure.ac): Add witness.
4796         * tests/test-strerror_r.c (main): Enhance test.
4797         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4798         * tests/test-perror2.c (main): Free memory before exit.
4799
4800 2011-05-21  Bruno Haible  <bruno@clisp.org>
4801
4802         mkdtemp: Use gnulib naming conventions.
4803         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4804         * modules/mkdtemp (configure.ac): Update.
4805
4806 2011-05-20  Eric Blake  <eblake@redhat.com>
4807
4808         strerror_r: avoid corrupting errno on Solaris
4809         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4810         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4811
4812         strerror_r: avoid compiler warning
4813         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4814
4815         strerror_r: simplify AIX code
4816         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4817
4818         test-perror: avoid spurious failure on FreeBSD
4819         * modules/perror-tests (Depends-on): Add strerror, now that
4820         strerror_r no longer pulls it in.
4821
4822 2011-05-20  Bruno Haible  <bruno@clisp.org>
4823
4824         strerror_r-posix: Remove unused dependencies.
4825         * modules/strerror_r-posix (Depends-on): Remove strerror.
4826         Reported by Eric Blake.
4827
4828 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4829
4830         intprops: remove assumption about A|B representation
4831         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4832         is a valid integer if both A and B are.  Although this is true for
4833         all known practical hosts, the C standard doesn't guarantee it,
4834         and the code need not assume it.  Also, this change may work around
4835         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4837
4838 2011-05-20  Eric Blake  <eblake@redhat.com>
4839
4840         perror: work around FreeBSD bug
4841         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4842         is broken.  Move AC_LIBOBJ...
4843         * modules/perror (configure.ac): Here.
4844         * doc/posix-functions/perror.texi (perror): Document this.
4845         * tests/test-perror2.c (main): Enhance test.
4846
4847         test-perror: check for strerror interactions
4848         * tests/macros.h (STREQ): Add macro.
4849         * modules/perror-tests (Files): Add second test.
4850         * tests/test-perror2.c (main): New file.
4851         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4852
4853         test-perror: rewrite to use init script
4854         * modules/perror-tests (Files): Add init.sh.
4855         * tests/test-perror.sh: Use temporary directory.
4856
4857 2011-05-20  Jim Meyering  <meyering@redhat.com>
4858
4859         maint: replace misused "a" with "an"
4860         * doc/intprops.texi: "a integer"
4861         * doc/regex.texi: "a explanation"
4862         * lib/alignof.h: "a object"
4863         * lib/argmatch.h: "a explanation"
4864         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4865         * lib/stdint.in.h: "a integer"
4866         * lib/userspec.c: "a owner"
4867         * doc/gnulib.texi: Fix "a idea", and reword.
4868
4869 2011-05-19  Jim Meyering  <meyering@redhat.com>
4870
4871         maint: correct misuse of "a" and "an"
4872         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
4873         * lib/argp-help.c: "an docum...": s/an/a/
4874         * lib/argp-parse.c: "An vector": s/An/A/
4875         * lib/execute.c: "an native": s/an/a/
4876         * lib/spawn-pipe.c: Likewise.
4877         * lib/gc.h: "an Gc_rc": s/an/a/
4878         * lib/unigbrk.in.h: "an grapheme": s/an/a/
4879         * lib/fts.c: "an stat.st_dev": s/an/a/
4880
4881 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4882
4883         intprops-tests: work around HP-UX 11.23 cc bug with constants
4884         * tests/test-intprops.c (VERIFY): New macro.
4885         (main): Use it, instead of verify, to work around the compiler bug; see
4886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4887
4888         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
4889         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
4890         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
4891         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
4892         (_GL_REMAINDER_OVERFLOW): Use it.
4893
4894         intprops-tests: revert unsigned part of previous change
4895         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
4896         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
4897         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
4898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
4899
4900 2011-05-19  Bruno Haible  <bruno@clisp.org>
4901
4902         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
4903         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
4904         strerror_r() returned without filling the buffer.
4905         Reported by Eric Blake.
4906
4907 2011-05-19  Eric Blake  <eblake@redhat.com>
4908
4909         strerror_r: guarantee unchanged errno
4910         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
4911         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
4912         failure.
4913         * tests/test-strerror_r.c (main): Enhance test.
4914
4915 2011-05-19  Bruno Haible  <bruno@clisp.org>
4916
4917         strerror_r: Reorder #if blocks.
4918         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
4919         for consistency with the previous commit.
4920
4921 2011-05-19  Bruno Haible  <bruno@clisp.org>
4922
4923         perror: Avoid clobbering the strerror buffer when possible.
4924         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
4925         * lib/strerror.c: Include it.
4926         * modules/strerror (Files): Add lib/strerror-impl.h.
4927         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
4928         (my_strerror): New function, defined through lib/strerror-impl.h.
4929         (perror): Use it instead of strerror.
4930         * modules/perror (Files): Add lib/strerror-impl.h.
4931         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
4932
4933 2011-05-19  Eric Blake  <eblake@redhat.com>
4934
4935         strerror_r: fix on newer cygwin
4936         * lib/strerror_r.c (strerror_r): Cygwin now has
4937         __xpg_strerror_r, use it.
4938
4939 2011-05-19  Bruno Haible  <bruno@clisp.org>
4940
4941         strerror_r: Avoid clobbering the strerror buffer when possible.
4942         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
4943         (sys_nerr, sys_errlist): New declarations.
4944         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
4945         HP-UX, native Win32, IRIX, and 32-bit Solaris.
4946         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
4947
4948 2011-05-19  Bruno Haible  <bruno@clisp.org>
4949
4950         strerror_r: Fix test failure on mingw.
4951         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
4952         EXTEND_STRERROR_R.
4953         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
4954         macros from errno.in.h instead.
4955
4956 2011-05-19  Eric Blake  <eblake@redhat.com>
4957
4958         strerror: relax test for Solaris
4959         * tests/test-strerror.c (main): Permit Solaris behavior.
4960         * tests/test-strerror_r.c (main): Likewise.
4961
4962         strerror: enforce POSIX ruling on strerror(0)
4963         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
4964         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4965         * lib/strerror_r.c (rpl_strerror_r): Work around it.
4966         * doc/posix-functions/strerror.texi (strerror): Document it.
4967         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
4968         * tests/test-strerror.c (main): Strengthen test.
4969         * tests/test-strerror_r.c (main): Likewise.
4970
4971 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4972
4973         intprop-tests: port to older and more-pedantic compilers
4974         * modules/intprops-tests (Files): Add tests/macros.h.
4975         * tests/test-intprops.c: Include macros.h.
4976         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
4977         it's no longer documented to expand to an integer constant expression.
4978         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
4979         argument is floating point, as it's no longer documented to expand
4980         to an integer constant expression in that case.
4981         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
4982         compiler bugs reported by Bruno Haible.  See
4983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4984         (U0, U1): New constants, to work around the same bugs.  Also,
4985         in tests, use e.g., "(unsigned int) 39" rather than "39u".
4986
4987         intprops: work around C compiler bugs
4988         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
4989         bug in Sun C 5.11 2010/08/13 and other compilers; see
4990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4991
4992         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
4993         * doc/intprops.texi (Integer Type Determination): Fix
4994         documentation for TYPE_IS_INTEGER: it returns an constant
4995         expression, not an integer constant expression.  Fix doc for
4996         TYPE_SIGNED: it returns an integer constant expression only if its
4997         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
4998         hardly worth documented that way....)
4999
5000 2011-05-18  Bruno Haible  <bruno@clisp.org>
5001
5002         strerror_r: Avoid clobbering the strerror buffer when possible.
5003         * lib/strerror_r.c (strerror_r): Merge the three implementations.
5004         Handle gnulib defined errno values here. When strerror() returns NULL
5005         or an empty string, return EINVAL.
5006         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
5007         gnulib defined errno values here.
5008         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
5009
5010 2011-05-18  Eric Blake  <eblake@redhat.com>
5011
5012         fnmatch: avoid compiler warning
5013         * lib/fnmatch_loop.c (FCT): Use correct type.
5014         Reported by Matthias Bolte.
5015
5016 2011-05-13  Jim Meyering  <meyering@redhat.com>
5017
5018         maint.mk: three new prohibit_<HDR>_without_use rules
5019         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
5020         (sc_prohibit_stdio-safer_without_use): Likewise.
5021         (sc_prohibit_xfreopen_without_use): Likewise.
5022
5023 2011-05-17  Jim Meyering  <meyering@redhat.com>
5024
5025         announce-gen: fail if the NEWS delta is empty
5026         If there's nothing noteworthy in NEWS, then either you forgot
5027         or you shouldn't be releasing.
5028         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
5029
5030 2011-05-17  Pádraig Brady <P@draigBrady.com>
5031
5032         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
5033         reserved symbols starting with double underscore from the check.
5034
5035 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
5036
5037         intprops: add doc
5038         * doc/intprops.texi: New file, documenting intprops.
5039         * doc/gnulib.texi (Particular Modules): Include it.
5040
5041         verify: add doc to gnulib manual and fix example
5042         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
5043         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
5044         (Compile-time Assertions): Fix example so it can't overflow.
5045
5046 2011-05-17  Jim Meyering  <meyering@redhat.com>
5047
5048         warnings.m4: don't usurp save_CPPFLAGS variable name
5049         * m4/warnings.m4: Prefix local temporary variable name with gl_.
5050
5051         doc: fix typo
5052         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
5053
5054 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5055             Bruno Haible  <bruno@clisp.org>
5056
5057         doc: Tweak recent change.
5058         * README (Portability guidelines): Tweak new text.
5059         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
5060         Interix 6.1.
5061
5062 2011-05-16  Eric Blake  <eblake@redhat.com>
5063
5064         inttypes: avoid autoconf warning
5065         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
5066         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5067
5068 2011-05-16  Sam Steingold <sds@gnu.org>
5069         and Eric Blake  <eblake@redhat.com>
5070
5071         vc-list-files: accept multiple directory operands
5072         * build-aux/vc-list-files: Iterate over all remaining operands.
5073
5074 2011-05-16  Bruno Haible  <bruno@clisp.org>
5075
5076         Fix confusion regarding deprecated modules.
5077         * modules/calloc (Status, Notice): Mark module as deprecated, not
5078         obsolete.
5079         * modules/fnmatch-posix (Status, Notice): Likewise.
5080         * modules/getdate (Status, Notice): Likewise.
5081         * modules/getopt (Status, Notice): Likewise.
5082         * modules/malloc (Status, Notice): Likewise.
5083         * modules/pipe (Status, Notice): Likewise.
5084         * modules/realloc (Status, Notice): Likewise.
5085         * modules/rename-dest-slash (Status, Notice): Likewise.
5086         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
5087         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
5088         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
5089         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
5090         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
5091
5092 2011-05-16  Bruno Haible  <bruno@clisp.org>
5093
5094         doc: List the target platforms.
5095         * doc/gnulib-intro.texi (Target Platforms): New section.
5096         * doc/gnulib.texi (Introduction): Update menu.
5097         * README (Portability guidelines): Refer to the new section. Update
5098         statement about oldest supported environment. Remove rationale why
5099         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
5100         unportable C89 function.
5101         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
5102         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
5103
5104 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5105
5106         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
5107
5108 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5109
5110         intprops-tests: new module
5111         * modules/intprops-tests, tests/test-intprops.c: New files.
5112
5113         intprops: add safe, portable integer overflow checking
5114         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5115         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5116         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5117         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5118         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
5119         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
5120         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
5121         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
5122         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5123         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
5124         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
5125
5126 2011-05-12  James Youngman  <jay@gnu.org>
5127
5128         Add a test for glibc's Bugzilla bug #12378.
5129         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
5130         doesn't allow the literal matching of a lone "[" (which is
5131         required by POSIX).
5132         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
5133
5134 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5135
5136         Sync glibc change fixing Bugzilla bug #12378.
5137         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
5138         beginning and fall back to matching as normal character if the
5139         string ends before the matching ']' is found.  This is what POSIX
5140         requires.
5141
5142 2011-05-13  Eric Blake  <eblake@redhat.com>
5143
5144         getcwd-lgpl: relax test for FreeBSD
5145         * doc/posix-functions/getcwd.texi (getcwd): Document portability
5146         issue.
5147         * tests/test-getcwd-lgpl.c (main): Relax test.
5148         Reported by Matthias Bolte.
5149
5150 2011-05-11  Eric Blake  <eblake@redhat.com>
5151
5152         test-fflush: silence compiler warning
5153         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
5154
5155 2011-05-11  Bruno Haible  <bruno@clisp.org>
5156
5157         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
5158         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
5159         * modules/canonicalize (Depends-on): Add 'nocrash'.
5160         * modules/canonicalize-lgpl (Depends-on): Likewise.
5161         * doc/posix-functions/realpath.texi: Update platforms list.
5162         Reported by Ryan Schmidt <ryandesign@macports.org>.
5163
5164 2011-05-11  Bruno Haible  <bruno@clisp.org>
5165
5166         group-member: Declare function in <unistd.h>.
5167         * lib/unistd.in.h (group_member): New declaration.
5168         * lib/group-member.h: Remove file.
5169         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
5170         * tests/test-unistd-c++.cc: Check signature of group_member.
5171         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
5172         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
5173         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
5174         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
5175         HAVE_GROUP_MEMBER.
5176         * modules/group-member (Files): Remove lib/group-member.h.
5177         (Depends-on): Add unistd. Specify conditions.
5178         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5179         (Include): Change to <unistd.h>.
5180         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
5181         HAVE_GROUP_MEMBER.
5182         * NEWS: Mention the change.
5183         * lib/euidaccess.c: Don't include group-member.h.
5184
5185 2011-05-11  Bruno Haible  <bruno@clisp.org>
5186
5187         group-member: Document module.
5188         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
5189         module.
5190
5191 2011-05-11  Bruno Haible  <bruno@clisp.org>
5192
5193         fclose: Fix mistake earlier today.
5194         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
5195
5196 2011-05-11  Eric Blake  <eblake@redhat.com>
5197
5198         fclose: preserve fflush errors
5199         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
5200         Reported by Jim Meyering.
5201
5202         bootstrap: support a prereq of 'rpcgen -' on RHEL5
5203         * build-aux/bootstrap (check_versions): When no specific version
5204         is required, merely check that the app produces an exit status
5205         that indicates its existence.
5206
5207         maint.mk: drop redundant check
5208         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
5209         the same but better.
5210
5211 2011-05-11  Bruno Haible  <bruno@clisp.org>
5212
5213         fclose: Fix possible link error.
5214         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
5215         unregister_shadow_fd. Improve comments.
5216         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
5217         Eric Blake.
5218
5219 2011-05-11  Jim Meyering  <meyering@redhat.com>
5220
5221         maint.mk: improve "can not" detection and generalize rule name
5222         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
5223         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
5224         Use the same technique as in sc_prohibit_doubled_word, so that
5225         we recognize "can not" also when the words are separated by a newline.
5226         Suggested by Eric Blake.
5227         (perl_filename_lineno_text_): Define.  Factored out of...
5228         (prohibit_doubled_word_): ...here.  Use the new definition.
5229         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
5230         (prohibit_undesirable_word_seq_RE_): New overridable variable.
5231         (ignore_undesirable_word_sequence_RE_): New overridable variable.
5232
5233 2011-05-10  Eric Blake  <eblake@redhat.com>
5234
5235         fclose: avoid double close race when possible
5236         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
5237         all but WINDOWS_SOCKETS.
5238
5239 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
5240
5241         openat: correct new comment
5242         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5243
5244 2011-05-10  Jim Meyering  <meyering@redhat.com>
5245
5246         openat: add comments
5247         * lib/openat-proc.c (openat_proc_name): Add comments,
5248         mostly from Eric Blake.
5249
5250 2011-05-09  Eric Blake  <eblake@redhat.com>
5251
5252         openat: reduce syscalls in first probe of /proc
5253         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
5254         be a directory.  Simplify the probe for .. bugs.
5255         * modules/openat (Depends-on): Drop same-inode.
5256         Reported by Bastien ROUCARIES.
5257
5258 2011-05-09  Jim Meyering  <meyering@redhat.com>
5259
5260         maint.mk: change semantics/name of tight_scope variables
5261         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
5262         Rename variables to align with semantics that make them more useful.
5263
5264         maint.mk: tweak new rule's name not to impinge
5265         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
5266         (sc_tight_scope): Use new rule name rather than $@-0.
5267
5268         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
5269         * top/maint.mk (sc_tight_scope): New rule.
5270         (sc_tight_scope-0): New rule, ifdef'd out.
5271         (_gl_TS_dir): Default.
5272         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
5273         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
5274
5275 2011-05-09  Simon Josefsson  <simon@josefsson.org>
5276
5277         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
5278         Haible <bruno@clisp.org>.
5279
5280 2011-05-08  Bruno Haible  <bruno@clisp.org>
5281
5282         Comments.
5283         * m4/isnanf.m4: Add comment.
5284         * m4/isnanl.m4: Likewise.
5285
5286 2011-05-08  Bruno Haible  <bruno@clisp.org>
5287
5288         glob: Remove obsolete macro.
5289         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
5290
5291 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5292
5293         intprops: Sun C 5.11 supports __typeof__
5294         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
5295         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5296         which is new.
5297         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5298
5299         intprops: switch to usual gnulib indenting and naming
5300         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5301         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5302
5303         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5304
5305 2011-05-08  Jim Meyering  <meyering@redhat.com>
5306
5307         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5308         * top/maint.mk (release-prep): Use make's --no-print-directory
5309         option when generating the announcement.  This eliminates the
5310         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5311         generated announcement template.
5312
5313 2011-05-08  Bruno Haible  <bruno@clisp.org>
5314
5315         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5316         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5317         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5318
5319 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5320
5321         ignore-value, verify: Omit include files from lib_SOURCES.
5322         * modules/ignore-value, modules/verify (Makefile.am):
5323         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5324         that leads Automake to duplicate use of am__objects_... variables
5325         in Makefile.in.  See
5326         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5327
5328 2011-05-07  Bruno Haible  <bruno@clisp.org>
5329
5330         fclose: Simplify autoconf macro.
5331         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5332         defined.
5333
5334 2011-05-07  Bruno Haible  <bruno@clisp.org>
5335
5336         canonicalize-lgpl: Fix autoconf macro ordering bug.
5337         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5338         gl_STDLIB_H_DEFAULTS.
5339
5340 2011-05-06  Eric Blake  <eblake@redhat.com>
5341
5342         maintainer-makefile: make sc_po_check easier to tune
5343         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5344         to probe for strings, such as an alternate location for gnulib.
5345
5346         fclose: guarantee behavior on seekable stdin
5347         * modules/fclose (Depends-on): Add fflush.
5348         * doc/posix-functions/fclose.texi (fclose): Document this.
5349         * tests/test-fclose.c (main): Make test for this unconditional.
5350
5351 2011-05-06  Bruno Haible  <bruno@clisp.org>
5352
5353         fflush, fpurge: Relicense under LGPLv2+.
5354         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5355         * modules/fpurge (License): Likewise.
5356         With permission from Eric Blake and Jim Meyering.
5357         Suggested by Eric Blake.
5358
5359 2011-05-06  Karl Berry  <karl@gnu.org>
5360
5361         * MODULES.html.sh (func_all_modules): remove exit.
5362
5363 2011-05-06  Jim Meyering  <meyering@redhat.com>
5364
5365         maint.mk: use info-gnu@ as the default only for a stable release
5366         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5367         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5368         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5369         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5370
5371 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5372
5373         assert-h: new module, which supports C1X-style static_assert
5374         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5375         * lib/verify.h: Revamp so that this can be copied into assert.h,
5376         while retaining the ability to use it standalone as before.
5377         Rename private identifiers so as not to encroach on the
5378         standard C namespace, since this is now used by assert.h.
5379         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5380         the old verify_true.
5381         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5382         the old verify_true.  Use _GL_VERIFY_TYPE.
5383         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5384         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5385         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5386         defined when this file is copied into the replacement assert.h.
5387         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5388         and _Static_assert is not built in.
5389         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5390         defined, and use the new macros mentioned above.
5391         * doc/posix-headers/assert.texi: Document this.
5392
5393 2011-05-05  Bruno Haible  <bruno@clisp.org>
5394
5395         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5396         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5397         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5398         gl_REPLACE_FCLOSE here.
5399         * modules/fflush (Depends-on): Remove fclose.
5400         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5401         combination with module 'fclose'.
5402
5403 2011-05-05  Bruno Haible  <bruno@clisp.org>
5404
5405         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5406         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5407         gl_FUNC_FFLUSH.
5408         (gl_FUNC_FFLUSH): Use it.
5409         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5410         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5411         gl_REPLACE_FSEEKO here.
5412
5413 2011-05-05  Bruno Haible  <bruno@clisp.org>
5414
5415         tzset: Relicense under LGPL.
5416         * modules/tzset (License): Change to LGPL.
5417         No agreement needed; it's a no-op.
5418
5419         strtoimax, strtoumax: Relicense under LGPL.
5420         * modules/strtoimax (License): Change to LGPL.
5421         * modules/strtoumax (License): Likewise.
5422         With permission from Jim Meyering, Paul Eggert:
5423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5425
5426         getgroups: Relicense under LGPL.
5427         * modules/getgroups (License): Change to LGPL.
5428         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5429         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5432
5433         nanosleep: Relicense under LGPL.
5434         * modules/nanosleep (License): Change to LGPL.
5435         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5436         Haible:
5437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5440         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5441
5442         futimens: Relicense under LGPL.
5443         * modules/futimens (License): Change to LGPL.
5444         With permission from Eric Blake:
5445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5446
5447         fflush: Relicense under LGPL.
5448         * modules/fflush (License): Change to LGPL.
5449         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5451         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5453
5454         tmpfile: Relicense under LGPL.
5455         * modules/tmpfile (License): Change to LGPL.
5456         With permission from Ben Pfaff:
5457         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5458
5459         isfinite: Relicense under LGPL.
5460         * modules/isfinite (License): Change to LGPL.
5461         With permission from Ben Pfaff, Bruno Haible:
5462         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5464
5465         acosl..tanl: Relicense under LGPL.
5466         * modules/acosl (License): Change to LGPL.
5467         * modules/asinl (License): Likewise.
5468         * modules/atanl (License): Likewise.
5469         * modules/cosl (License): Likewise.
5470         * modules/expl (License): Likewise.
5471         * modules/logl (License): Likewise.
5472         * modules/sinl (License): Likewise.
5473         * modules/sqrtl (License): Likewise.
5474         * modules/tanl (License): Likewise.
5475         Source code originally from glibc and Paolo Bonzini. Agreements:
5476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5478
5479 2011-05-05  Bruno Haible  <bruno@clisp.org>
5480
5481         signal: Define sighandler_t.
5482         * lib/signal.in.h (sighandler_t): New type.
5483         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5484         whether sighandler_t is defined.
5485         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5486         * modules/signal (Depends-on): Add extensions.
5487         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5488         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5489         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5490
5491 2011-05-05  Eric Blake  <eblake@redhat.com>
5492
5493         maint: remove useless REPLACE_*_H macros
5494         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5495         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5496         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5497         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5498         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5499         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5500         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5501         * m4/btowc.m4: Update callers.
5502         * m4/dirfd.m4: Likewise.
5503         * m4/duplocale.m4: Likewise.
5504         * m4/fchdir.m4: Likewise.
5505         * m4/fdopendir.m4: Likewise.
5506         * m4/inet_ntop.m4: Likewise.
5507         * m4/inet_pton.m4: Likewise.
5508         * m4/ioctl.m4: Likewise.
5509         * m4/mbrlen.m4: Likewise.
5510         * m4/mbrtowc.m4: Likewise.
5511         * m4/mbsinit.m4: Likewise.
5512         * m4/mbsnrtowcs.m4: Likewise.
5513         * m4/mbsrtowcs.m4: Likewise.
5514         * m4/poll.m4: Likewise.
5515         * m4/setlocale.m4: Likewise.
5516         * m4/wcrtomb.m4: Likewise.
5517         * m4/wcsnrtombs.m4: Likewise.
5518         * m4/wcsrtombs.m4: Likewise.
5519         * m4/wctob.m4: Likewise.
5520         * m4/wcwidth.m4: Likewise.
5521         * modules/posix_spawn: Likewise.
5522         * modules/posix_spawn_file_actions_addclose: Likewise.
5523         * modules/posix_spawn_file_actions_adddup2: Likewise.
5524         * modules/posix_spawn_file_actions_addopen: Likewise.
5525         * modules/posix_spawn_file_actions_destroy: Likewise.
5526         * modules/posix_spawn_file_actions_init: Likewise.
5527         * modules/posix_spawnattr_destroy: Likewise.
5528         * modules/posix_spawnattr_getflags: Likewise.
5529         * modules/posix_spawnattr_getpgroup: Likewise.
5530         * modules/posix_spawnattr_getschedparam: Likewise.
5531         * modules/posix_spawnattr_getschedpolicy: Likewise.
5532         * modules/posix_spawnattr_getsigdefault: Likewise.
5533         * modules/posix_spawnattr_getsigmask: Likewise.
5534         * modules/posix_spawnattr_init: Likewise.
5535         * modules/posix_spawnattr_setflags: Likewise.
5536         * modules/posix_spawnattr_setpgroup: Likewise.
5537         * modules/posix_spawnattr_setschedparam: Likewise.
5538         * modules/posix_spawnattr_setschedpolicy: Likewise.
5539         * modules/posix_spawnattr_setsigdefault: Likewise.
5540         * modules/posix_spawnattr_setsigmask: Likewise.
5541         * modules/posix_spawnp: Likewise.
5542
5543 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5544
5545         Add option to do-release-commit-and-tag to specify branch.
5546         * build-aux/do-release-commit-and-tag: Add --branch.
5547
5548 2011-05-03  Bruno Haible  <bruno@clisp.org>
5549
5550         Avoid unnecessary compilation units, through conditional dependencies.
5551         * modules/accept (Depends-on): Add conditions to the dependencies.
5552         * modules/acosl (Depends-on): Likewise.
5553         * modules/argz (Depends-on): Likewise.
5554         * modules/asinl (Depends-on): Likewise.
5555         * modules/atanl (Depends-on): Likewise.
5556         * modules/atoll (Depends-on): Likewise.
5557         * modules/bind (Depends-on): Likewise.
5558         * modules/btowc (Depends-on): Likewise.
5559         * modules/canonicalize-lgpl (Depends-on): Likewise.
5560         * modules/ceil (Depends-on): Likewise.
5561         * modules/ceilf (Depends-on): Likewise.
5562         * modules/ceill (Depends-on): Likewise.
5563         * modules/chdir-long (Depends-on): Likewise.
5564         * modules/chown (Depends-on): Likewise.
5565         * modules/close (Depends-on): Likewise.
5566         * modules/connect (Depends-on): Likewise.
5567         * modules/cosl (Depends-on): Likewise.
5568         * modules/dirfd (Depends-on): Likewise.
5569         * modules/dprintf (Depends-on): Likewise.
5570         * modules/dprintf-posix (Depends-on): Likewise.
5571         * modules/error (Depends-on): Likewise.
5572         * modules/euidaccess (Depends-on): Likewise.
5573         * modules/expl (Depends-on): Likewise.
5574         * modules/faccessat (Depends-on): Likewise.
5575         * modules/fchdir (Depends-on): Likewise.
5576         * modules/fclose (Depends-on): Likewise.
5577         * modules/fcntl (Depends-on): Likewise.
5578         * modules/fdopendir (Depends-on): Likewise.
5579         * modules/fflush (Depends-on): Likewise.
5580         * modules/floor (Depends-on): Likewise.
5581         * modules/floorf (Depends-on): Likewise.
5582         * modules/floorl (Depends-on): Likewise.
5583         * modules/fnmatch (Depends-on): Likewise.
5584         * modules/fopen (Depends-on): Likewise.
5585         * modules/fprintf-posix (Depends-on): Likewise.
5586         * modules/frexp (Depends-on): Likewise.
5587         * modules/frexp-nolibm (Depends-on): Likewise.
5588         * modules/frexpl (Depends-on): Likewise.
5589         * modules/frexpl-nolibm (Depends-on): Likewise.
5590         * modules/fseek (Depends-on): Likewise.
5591         * modules/fsusage (Depends-on): Likewise.
5592         * modules/ftell (Depends-on): Likewise.
5593         * modules/ftello (Depends-on): Likewise.
5594         * modules/futimens (Depends-on): Likewise.
5595         * modules/getcwd (Depends-on): Likewise.
5596         * modules/getcwd-lgpl (Depends-on): Likewise.
5597         * modules/getdelim (Depends-on): Likewise.
5598         * modules/getdomainname (Depends-on): Likewise.
5599         * modules/getgroups (Depends-on): Likewise.
5600         * modules/gethostname (Depends-on): Likewise.
5601         * modules/getline (Depends-on): Likewise.
5602         * modules/getlogin_r (Depends-on): Likewise.
5603         * modules/getopt-posix (Depends-on): Likewise.
5604         * modules/getpeername (Depends-on): Likewise.
5605         * modules/getsockname (Depends-on): Likewise.
5606         * modules/getsockopt (Depends-on): Likewise.
5607         * modules/getsubopt (Depends-on): Likewise.
5608         * modules/getusershell (Depends-on): Likewise.
5609         * modules/glob (Depends-on): Likewise.
5610         * modules/grantpt (Depends-on): Likewise.
5611         * modules/iconv_open (Depends-on): Likewise.
5612         * modules/iconv_open-utf (Depends-on): Likewise.
5613         * modules/inet_ntop (Depends-on): Likewise.
5614         * modules/inet_pton (Depends-on): Likewise.
5615         * modules/ioctl (Depends-on): Likewise.
5616         * modules/isapipe (Depends-on): Likewise.
5617         * modules/isfinite (Depends-on): Likewise.
5618         * modules/isinf (Depends-on): Likewise.
5619         * modules/lchown (Depends-on): Likewise.
5620         * modules/ldexpl (Depends-on): Likewise.
5621         * modules/link (Depends-on): Likewise.
5622         * modules/linkat (Depends-on): Likewise.
5623         * modules/listen (Depends-on): Likewise.
5624         * modules/logl (Depends-on): Likewise.
5625         * modules/lstat (Depends-on): Likewise.
5626         * modules/mbrlen (Depends-on): Likewise.
5627         * modules/mbrtowc (Depends-on): Likewise.
5628         * modules/mbsinit (Depends-on): Likewise.
5629         * modules/mbsnrtowcs (Depends-on): Likewise.
5630         * modules/mbsrtowcs (Depends-on): Likewise.
5631         * modules/mbtowc (Depends-on): Likewise.
5632         * modules/memcmp (Depends-on): Likewise.
5633         * modules/mkdir (Depends-on): Likewise.
5634         * modules/mkdtemp (Depends-on): Likewise.
5635         * modules/mkfifo (Depends-on): Likewise.
5636         * modules/mkfifoat (Depends-on): Likewise.
5637         * modules/mknod (Depends-on): Likewise.
5638         * modules/mkostemp (Depends-on): Likewise.
5639         * modules/mkostemps (Depends-on): Likewise.
5640         * modules/mkstemp (Depends-on): Likewise.
5641         * modules/mkstemps (Depends-on): Likewise.
5642         * modules/mktime (Depends-on): Likewise.
5643         * modules/nanosleep (Depends-on): Likewise.
5644         * modules/open (Depends-on): Likewise.
5645         * modules/openat (Depends-on): Likewise.
5646         * modules/perror (Depends-on): Likewise.
5647         * modules/poll (Depends-on): Likewise.
5648         * modules/popen (Depends-on): Likewise.
5649         * modules/posix_spawn (Depends-on): Likewise.
5650         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5651         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5652         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5653         * modules/posix_spawnp (Depends-on): Likewise.
5654         * modules/pread (Depends-on): Likewise.
5655         * modules/printf-posix (Depends-on): Likewise.
5656         * modules/ptsname (Depends-on): Likewise.
5657         * modules/putenv (Depends-on): Likewise.
5658         * modules/pwrite (Depends-on): Likewise.
5659         * modules/readline (Depends-on): Likewise.
5660         * modules/readlink (Depends-on): Likewise.
5661         * modules/readlinkat (Depends-on): Likewise.
5662         * modules/recv (Depends-on): Likewise.
5663         * modules/recvfrom (Depends-on): Likewise.
5664         * modules/regex (Depends-on): Likewise.
5665         * modules/remove (Depends-on): Likewise.
5666         * modules/rename (Depends-on): Likewise.
5667         * modules/renameat (Depends-on): Likewise.
5668         * modules/rmdir (Depends-on): Likewise.
5669         * modules/round (Depends-on): Likewise.
5670         * modules/roundf (Depends-on): Likewise.
5671         * modules/roundl (Depends-on): Likewise.
5672         * modules/rpmatch (Depends-on): Likewise.
5673         * modules/select (Depends-on): Likewise.
5674         * modules/send (Depends-on): Likewise.
5675         * modules/sendto (Depends-on): Likewise.
5676         * modules/setenv (Depends-on): Likewise.
5677         * modules/setlocale (Depends-on): Likewise.
5678         * modules/setsockopt (Depends-on): Likewise.
5679         * modules/shutdown (Depends-on): Likewise.
5680         * modules/sigaction (Depends-on): Likewise.
5681         * modules/signbit (Depends-on): Likewise.
5682         * modules/sigprocmask (Depends-on): Likewise.
5683         * modules/sinl (Depends-on): Likewise.
5684         * modules/sleep (Depends-on): Likewise.
5685         * modules/snprintf (Depends-on): Likewise.
5686         * modules/snprintf-posix (Depends-on): Likewise.
5687         * modules/socket (Depends-on): Likewise.
5688         * modules/sprintf-posix (Depends-on): Likewise.
5689         * modules/sqrtl (Depends-on): Likewise.
5690         * modules/stat (Depends-on): Likewise.
5691         * modules/strchrnul (Depends-on): Likewise.
5692         * modules/strdup-posix (Depends-on): Likewise.
5693         * modules/strerror (Depends-on): Likewise.
5694         * modules/strerror_r-posix (Depends-on): Likewise.
5695         * modules/strndup (Depends-on): Likewise.
5696         * modules/strnlen (Depends-on): Likewise.
5697         * modules/strptime (Depends-on): Likewise.
5698         * modules/strsep (Depends-on): Likewise.
5699         * modules/strsignal (Depends-on): Likewise.
5700         * modules/strstr-simple (Depends-on): Likewise.
5701         * modules/strtod (Depends-on): Likewise.
5702         * modules/strtoimax (Depends-on): Likewise.
5703         * modules/strtok_r (Depends-on): Likewise.
5704         * modules/strtoumax (Depends-on): Likewise.
5705         * modules/symlink (Depends-on): Likewise.
5706         * modules/symlinkat (Depends-on): Likewise.
5707         * modules/tanl (Depends-on): Likewise.
5708         * modules/tcgetsid (Depends-on): Likewise.
5709         * modules/tmpfile (Depends-on): Likewise.
5710         * modules/trunc (Depends-on): Likewise.
5711         * modules/truncf (Depends-on): Likewise.
5712         * modules/truncl (Depends-on): Likewise.
5713         * modules/uname (Depends-on): Likewise.
5714         * modules/unlink (Depends-on): Likewise.
5715         * modules/unlockpt (Depends-on): Likewise.
5716         * modules/unsetenv (Depends-on): Likewise.
5717         * modules/usleep (Depends-on): Likewise.
5718         * modules/utimensat (Depends-on): Likewise.
5719         * modules/vasprintf (Depends-on): Likewise.
5720         * modules/vdprintf (Depends-on): Likewise.
5721         * modules/vdprintf-posix (Depends-on): Likewise.
5722         * modules/vfprintf-posix (Depends-on): Likewise.
5723         * modules/vprintf-posix (Depends-on): Likewise.
5724         * modules/vsnprintf (Depends-on): Likewise.
5725         * modules/vsnprintf-posix (Depends-on): Likewise.
5726         * modules/vsprintf-posix (Depends-on): Likewise.
5727         * modules/wcrtomb (Depends-on): Likewise.
5728         * modules/wcscasecmp (Depends-on): Likewise.
5729         * modules/wcscspn (Depends-on): Likewise.
5730         * modules/wcsdup (Depends-on): Likewise.
5731         * modules/wcsncasecmp (Depends-on): Likewise.
5732         * modules/wcsnrtombs (Depends-on): Likewise.
5733         * modules/wcspbrk (Depends-on): Likewise.
5734         * modules/wcsrtombs (Depends-on): Likewise.
5735         * modules/wcsspn (Depends-on): Likewise.
5736         * modules/wcsstr (Depends-on): Likewise.
5737         * modules/wcstok (Depends-on): Likewise.
5738         * modules/wcswidth (Depends-on): Likewise.
5739         * modules/wctob (Depends-on): Likewise.
5740         * modules/wctomb (Depends-on): Likewise.
5741         * modules/wctype (Depends-on): Likewise.
5742         * modules/wcwidth (Depends-on): Likewise.
5743         * modules/write (Depends-on): Likewise.
5744
5745 2011-05-03  Bruno Haible  <bruno@clisp.org>
5746
5747         Support for conditional dependencies.
5748         * doc/gnulib.texi (Module description): Document the syntax of
5749         conditional dependencies.
5750         * gnulib-tool: New option --conditional-dependencies.
5751         (func_usage): Document it.
5752         (cond_dependencies): New variable.
5753         (func_get_automake_snippet_conditional,
5754         func_get_automake_snippet_unconditional): New functions, extracted from
5755         func_get_automake_snippet.
5756         (func_get_automake_snippet): Use them.
5757         (sed_first_32_chars): New variable.
5758         (func_module_shellfunc_name): New function.
5759         (func_module_shellvar_name): New function.
5760         (func_module_conditional_name): New function.
5761         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5762         func_cond_module_condition): New functions.
5763         (func_modules_transitive_closure): Add support for conditional
5764         dependencies.
5765         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5766         conditional automake snippet in an automake conditional.
5767         (func_emit_autoconf_snippets): Emit shell functions that contain the
5768         code for conditional modules.
5769         (func_import, func_create_testdir): Update specification.
5770
5771 2011-05-03  Eric Blake  <eblake@redhat.com>
5772
5773         test-getaddrinfo: report error information
5774         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5775
5776 2011-05-03  Jim Meyering  <meyering@redhat.com>
5777
5778         bootstrap: avoid build failure when $GZIP is set
5779         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5780         program name.  If defined at all, it is supposed to list gzip options.
5781         Reported by Alan Curry in http://debbugs.gnu.org/8609
5782
5783 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5784
5785         readme-release: new module with release instructions
5786         * modules/readme-release: New module.
5787         * top/README-release: New file, from coreutils, grep, diffutils.
5788         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5789
5790 2011-05-02  Eric Blake  <eblake@redhat.com>
5791
5792         fflush: also replace fclose when fixing fflush
5793         * modules/fflush (Depends-on): Add fclose.
5794         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5795         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5796         memstreams with no backing fd.
5797         * doc/posix-functions/fclose.texi (fclose): Document the use of
5798         fflush module to fix the bug.
5799         * tests/test-fclose.c (main): Relax test when fclose is used in
5800         isolation.
5801
5802         fclose: add some tests
5803         * modules/fclose-tests: New test module.
5804         * tests/test-fclose.c: New file.
5805         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5806
5807         fclose: reduced dependencies
5808         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5809         simpler lseek.
5810         * lib/fclose.c (rpl_fclose): Likewise.
5811         Reported by Simon Josefsson.
5812
5813         exit: drop remaining clients
5814         * modules/argmatch (Depends-on): Replace exit with stdlib.
5815         * modules/copy-file (Depends-on): Likewise.
5816         * modules/execute (Depends-on): Likewise.
5817         * modules/exitfail (Depends-on): Likewise.
5818         * modules/obstack (Depends-on): Likewise.
5819         * modules/pagealign_alloc (Depends-on): Likewise.
5820         * modules/pipe-filter-gi (Depends-on): Likewise.
5821         * modules/pipe-filter-ii (Depends-on): Likewise.
5822         * modules/savewd (Depends-on): Likewise.
5823         * modules/spawn-pipe (Depends-on): Likewise.
5824         * modules/wait-process (Depends-on): Likewise.
5825         * modules/xsetenv (Depends-on): Likewise.
5826         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5827         * modules/git-merge-changelog (Depends-on): Likewise.
5828         * modules/long-options (Depends-on): Likewise.
5829         * modules/pt_chown (Depends-on): Likewise.
5830         * modules/sysexits (Depends-on): Likewise.
5831
5832         freading: relax license from LGPLv3+ to LGPLv2+
5833         * modules/freading (License): Relax LGPL version.
5834
5835 2011-05-02  Bruno Haible  <bruno@clisp.org>
5836
5837         fchdir: Remove unused dependencies.
5838         * modules/fchdir (Depends-on): Remove include_next.
5839
5840 2011-05-02  Bruno Haible  <bruno@clisp.org>
5841
5842         gnulib-tool: Refactor.
5843         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5844         from func_emit_autoconf_snippets.
5845         (func_emit_autoconf_snippets): Use it.
5846
5847 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5848
5849         * NEWS: Document removal of 'exit'.
5850         * modules/exit: Remove file.
5851
5852 2011-05-01  Bruno Haible  <bruno@clisp.org>
5853
5854         Update DEPENDENCIES.
5855         * DEPENDENCIES (gettext): Recommend the newest release.
5856         Reported by Simon Josefsson.
5857
5858 2011-05-01  Bruno Haible  <bruno@clisp.org>
5859
5860         gnulib-tool: Reduce code duplication.
5861         * gnulib-tool (func_emit_autoconf_snippets): New function.
5862         (func_import, func_create_testdir): Use it.
5863
5864 2011-04-30  Eric Blake  <eblake@redhat.com>
5865
5866         fclose: don't fail on non-seekable input stream
5867         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5868         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
5869         since fflush is allowed to fail in that case.
5870
5871 2011-04-30  Bruno Haible  <bruno@clisp.org>
5872
5873         dup3: cleanup
5874         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
5875
5876 2011-04-30  Bruno Haible  <bruno@clisp.org>
5877
5878         netdb: Make it work in C++ mode.
5879         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
5880         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
5881         module.
5882         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
5883         gl_MODULE_INDICATOR_FOR_TESTS.
5884         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
5885         * modules/netdb-c++-tests: New file.
5886         * tests/test-netdb-c++.cc: New file.
5887
5888 2011-04-30  Bruno Haible  <bruno@clisp.org>
5889
5890         New modules 'vfscanf', 'vscanf'.
5891         * modules/vfscanf: New file.
5892         * modules/vscanf: New file.
5893         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
5894         here.
5895         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
5896         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
5897
5898 2011-04-30  Bruno Haible  <bruno@clisp.org>
5899
5900         passfd: Add comments.
5901         * lib/passfd.c: Add comments about platforms.
5902
5903 2011-04-30  Bruno Haible  <bruno@clisp.org>
5904
5905         sys_uio: Make <sys/uio.h> self-contained.
5906         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
5907         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
5908
5909 2011-04-30  Bruno Haible  <bruno@clisp.org>
5910
5911         sys_socket: Ensure 'struct iovec' definition.
5912         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
5913         <sys/socket.h>.
5914         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
5915
5916 2011-04-30  Bruno Haible  <bruno@clisp.org>
5917
5918         sys_uio: Protect definition of 'struct iovec'.
5919         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
5920         it as a C struct.
5921
5922 2011-04-30  Bruno Haible  <bruno@clisp.org>
5923
5924         manywarnings: fix indentation
5925         * m4/manywarnings.m4: Indent by 2 spaces consistently.
5926
5927 2011-04-30  Pádraig Brady <P@draigBrady.com>
5928
5929         manywarnings: add -Wno-missing-field-initializers if needed.
5930         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
5931         option if it's needed to allow initialization with { 0, }
5932
5933 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
5934
5935         announce-gen: cosmetic improvement
5936         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
5937
5938 2011-04-29  Jim Meyering  <meyering@redhat.com>
5939
5940         vc-list-files: indent with spaces, not TABs
5941         * build-aux/vc-list-files: Convert leading TABs to spaces,
5942         to match the style of most other files in gnulib.
5943
5944         announce-gen: indent with spaces, not TABs
5945         * build-aux/announce-gen: Convert all TABs to spaces, to match
5946         the style of most other files in gnulib.
5947
5948 2011-04-29  Eric Blake  <eblake@redhat.com>
5949
5950         quotearg: avoid uninitialized variable use
5951         * lib/quotearg.c (quoting_options_from_style): Initialize
5952         remaining fields, and ensure that custom styles are only used via
5953         quoting_options rather than quoting_style.
5954
5955 2011-04-29  Jim Meyering  <meyering@redhat.com>
5956
5957         maint.mk: remove unused VC-tag variable
5958         * top/maint.mk (VC-tag): Remove unused variable.
5959
5960 2011-04-29  Bruno Haible  <bruno@clisp.org>
5961
5962         netdb: fix gai_strerror replacements
5963         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
5964         * modules/netdb: Substitute it.
5965
5966 2011-04-29  Jim Meyering  <meyering@redhat.com>
5967
5968         test-getcwd.c: avoid new set-but-not-used warning
5969         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5970         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
5971         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
5972         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
5973
5974         test-hash.c: avoid a new shadowing warning
5975         * tests/test-hash.c (main): Don't shadow "dup".
5976
5977 2011-04-28  Eric Blake  <eblake@redhat.com>
5978
5979         getaddrinfo: fix gai_strerror signature
5980         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
5981         and work around mingw with UNICODE defined.
5982         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
5983         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
5984         * modules/netdb (Makefile.am): Substitute it.
5985         * lib/netdb.in.h (gai_strerror): Declare replacement.
5986         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
5987         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
5988         the fix.
5989
5990         getsockopt: avoid compiler warning
5991         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
5992         Reported by Matthias Bolte.
5993
5994         tests: drop unused link dependency
5995         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
5996         * modules/dirent-safer-tests (Makefile.am): Likewise.
5997         * modules/fdopendir-tests (Makefile.am): Likewise.
5998         * modules/mkfifoat-tests (Makefile.am): Likewise.
5999         * modules/openat-safer-tests (Makefile.am): Likewise.
6000         * modules/openat-tests (Makefile.am): Likewise.
6001         * modules/readlinkat-tests (Makefile.am): Likewise.
6002         * modules/symlinkat-tests (Makefile.am): Likewise.
6003         * modules/linkat-tests (Makefile.am): Likewise.
6004         (Depends-on): Switch to filenamecat-lgpl.
6005         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
6006         LIBINTL.
6007         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
6008         * tests/test-linkat.c (main): Don't require xalloc.
6009
6010         hash, mgetgroups: drop xalloc dependency
6011         * lib/hash.c (includes): Adjust includes.
6012         * lib/mgetgroups.c (includes): Likewise.
6013         (xgetgroups): Move...
6014         * lib/xgetgroups.c: ...to new file.
6015         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
6016         * modules/xgetgroups: New file, split from...
6017         * modules/mgetgroups: ...here.
6018         (Depends-on): Add xalloc-oversized.
6019         * modules/hash (Depends-on): Likewise.
6020         * modules/hash-tests (Depends-on): Drop xalloc.
6021         (test_hash_LDADD): Drop unused library.
6022         * tests/test-hash.c (main): Break xalloc dependency.
6023         (includes): Drop unused include.
6024
6025         xalloc-oversized: new module
6026         * modules/xalloc-oversized: New module.
6027         * modules/xalloc (Depends-on): Add it.
6028         * lib/xalloc.h (xalloc_oversized): Move...
6029         * lib/xalloc-oversized.h: ...into new file.
6030
6031         utimecmp: drop dependency on xmalloc
6032         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
6033         due to memory pressure.
6034         * modules/utimecmp (Depends-on): Drop xalloc.
6035
6036 2011-04-27  Eric Blake  <eblake@redhat.com>
6037
6038         getcwd: fix mingw bugs
6039         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
6040         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
6041         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
6042
6043 2011-04-27  Bruno Haible  <bruno@clisp.org>
6044
6045         mkstemps: Ensure declaration on MacOS X 10.5.
6046         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
6047         * doc/glibc-functions/mkstemps.texi: Document header file problem on
6048         MacOS X.
6049
6050 2011-04-27  Bruno Haible  <bruno@clisp.org>
6051
6052         mkstemp: More documentation.
6053         * doc/posix-functions/mkstemp.texi: Document header file problem on
6054         MacOS X.
6055
6056 2011-04-27  Bruno Haible  <bruno@clisp.org>
6057
6058         mkstemp: Tweak configure message when cross-compiling.
6059         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
6060         result as a guess.
6061
6062 2011-04-27  Bruno Haible  <bruno@clisp.org>
6063
6064         clean-temp: Clarify what it does.
6065         * lib/clean-temp.h: Add more comments.
6066         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
6067         module.
6068         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
6069         * doc/glibc-functions/mkstemps.texi: Likewise.
6070         * doc/glibc-functions/mkostemps.texi: Likewise.
6071
6072 2011-04-27  Eric Blake  <eblake@redhat.com>
6073
6074         fchdir: avoid extra chdir and fix test
6075         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
6076         getcwd-lgpl.
6077         * lib/fchdir.c (get_name): Any absolute name will do; it does not
6078         have to be canonical.
6079         (canonicalize_file_name): Drop unused macro.
6080         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
6081
6082         filenamecat-lgpl: fix licence
6083         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
6084         when it was first created.
6085
6086         linkat, renameat: add missing dependency
6087         * modules/linkat (Depends-on): Require getcwd-lgpl.
6088         * modules/renameat (Depends-on): Likewise.
6089
6090         tests: reduce dependencies
6091         * tests/test-linkat.c (main): Use lighter-weight getcwd.
6092         * tests/test-renameat.c (main): Likewise.
6093         * modules/linkat-tests (Depends-on): Relax dependency.
6094         * modules/renameat-tests (Depends-on): Likewise.
6095         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
6096         dependency explicit.
6097
6098         save-cwd: reduce default dependency
6099         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
6100         * lib/save-cwd.c: Update comments.
6101         * NEWS: Document the semantic change.
6102
6103         getcwd: enhance tests
6104         * tests/test-getcwd-lgpl.c: New file, taken from...
6105         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
6106         repeat long path stress tests from m4 probe.
6107         * modules/getcwd-lgpl-tests: New module.
6108         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
6109         * m4/getcwd-abort-bug.m4: Update comment.
6110         * m4/getcwd-path-max.m4: Likewise.
6111
6112         getcwd-lgpl: new module
6113         * modules/getcwd-lgpl: New module.
6114         * lib/getcwd-lgpl.c: New file.
6115         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6116         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6117         * modules/getcwd (configure.ac): Set C witness.
6118         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
6119
6120         getcwd: tweak comments
6121         * m4/getcwd-abort-bug.m4: Fix comments.
6122         * m4/getcwd-path-max.m4: Likewise.
6123         * m4/getcwd.m4: Likewise.
6124
6125 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6126         and Eric Blake  <eblake@redhat.com>
6127
6128         mkstemp: replace if system version uses wrong permissions
6129         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6130         read/write mode bits set in file created by mkstemp.
6131         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
6132
6133 2011-04-27  Eric Blake  <eblake@redhat.com>
6134
6135         passfd: avoid compiler warning
6136         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
6137         Reported by Laine Stump.
6138
6139 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
6140
6141         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
6142         required by the NetBSD (and perhaps other 4.4BSD derived) join.
6143
6144 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6145         and Eric Blake  <eblake@redhat.com>
6146
6147         mkstemp: mention clean-temp module
6148         * lib/mkstemp.c: Add comment.
6149         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
6150
6151 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6152
6153         inttypes: also provide default values for 32-bit tests
6154         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
6155         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6156
6157 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6158
6159         strtoumax: remove dependency on strtoimax
6160         This is like the strtoull change of yesterday.
6161         * modules/strtoumax (Files): Add lib/strtoimax.c.
6162         (Depends-on): Remove strtoimax and add verify.
6163
6164         inttypes-incomplete: new module
6165         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
6166         all but the PRI* and SCN* parts of gl_INTTYPES_H.
6167         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
6168         of gl_INTTYPES_H.
6169         (gl_INTTYPES_H): Rewrite in terms of these new macros.
6170         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
6171         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
6172         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
6173         * modules/strtoumax, modules/xstrtol (Depends-on):
6174         Depend on inttypes-incomplete, not inttypes.
6175         * modules/inttypes-incomplete: New module, containing the contents
6176         of the old modules/inttypes module, except that the Files: section
6177         omits m4/inttypes-pri.m4, and the configure.ac section invokes
6178         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
6179         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
6180         (Depends-on): Depend only on inttypes-incomplete.
6181         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
6182
6183         inttypes: omit now-redundant strtoimax and strtoumax work
6184         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
6185         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
6186
6187         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
6188         This supports apps that need pointers to strtoimax and strtoumax,
6189         and ports to HP-UX 11.00 64.bit, which has macros that expand to
6190         nonexistent functions.  See
6191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
6192         et seq.
6193         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
6194         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
6195         a macro.
6196         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6197
6198 2011-04-25  Simon Josefsson  <simon@josefsson.org>
6199
6200         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
6201
6202 2011-04-25  Bruno Haible  <bruno@clisp.org>
6203
6204         strtol, strtoul: Mark modules as obsolete.
6205         * modules/strtol (Status, Notice): New sections.
6206         * modules/strtoul (Status, Notice): New sections.
6207
6208 2011-04-25  Bruno Haible  <bruno@clisp.org>
6209
6210         strtod: Remove check for strtod, unless supporting old platforms.
6211         * modules/strtod-obsolete: New file.
6212         * m4/strtod-obsolete.m4: New file.
6213         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
6214         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
6215         * modules/strtod (Depends-on): Add strtod-obsolete.
6216         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
6217
6218 2011-04-25  Bruno Haible  <bruno@clisp.org>
6219
6220         strcase: Make module obsolete.
6221         * modules/strcase (Status, Notice): New sections.
6222
6223 2011-04-25  Bruno Haible  <bruno@clisp.org>
6224
6225         dup2: Remove check for dup2, unless supporting old obsolete platforms.
6226         * modules/dup2-obsolete: New file.
6227         * m4/dup2-obsolete.m4: New file.
6228         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
6229         gl_FUNC_DUP2_OBSOLETE is not also defined.
6230         * modules/dup2 (Depends-on): Add dup2-obsolete.
6231         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
6232
6233 2011-04-25  Bruno Haible  <bruno@clisp.org>
6234
6235         strnlen: Avoid memchr related link error on old obsolete platforms.
6236         * modules/memchr-obsolete: New file.
6237         * m4/memchr-obsolete.m4: New file.
6238         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
6239         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
6240         * modules/memchr (Depends-on): Add memchr-obsolete.
6241         * modules/strnlen (Depends-on): Likewise.
6242         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
6243
6244 2011-04-25  Jim Meyering  <meyering@redhat.com>
6245
6246         maint.mk: makefile_at_at_check extend and clean up
6247         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
6248         in addition to */Makefile.am.
6249         Exempt legitimate uses of @VAR@ notation, e.g.,
6250         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
6251         Remove obsolete coreutils-specific comment.
6252         Prompted by discussion here:
6253         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
6254
6255 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6256
6257         strtoul: remove dependency on strtol
6258         This is so that 'configure' need not check for strtol merely because
6259         the application needs strtoul.
6260         * modules/strtoul (Files): Add lib/strtol.c.
6261         (Depends-on): Remove strtol.
6262
6263         strtoull: remove dependency on strtoul
6264         This is like the strtoll change.
6265         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
6266         (Depends-on): Remove strtoul.
6267
6268         strtoll: remove dependency on strtol
6269         This is so that 'configure' need not check for strtol merely because
6270         the application needs strtoll.
6271         * modules/strtoll (Files): Add lib/strtol.c.
6272         (Depends-on): Remove strtol.
6273
6274 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6275
6276         inttypes: Move some configure check to module 'imaxdiv'.
6277         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
6278         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
6279         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
6280
6281 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6282
6283         inttypes: Move some configure check to module 'imaxabs'.
6284         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
6285         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6286         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
6287
6288 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6289
6290         inttypes: Remove configure tests that are not needed since 2009-12-31.
6291         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
6292         gl_cv_header_working_inttypes_h.
6293
6294 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6295
6296         * modules/strnlen (Depends-on): Remove memchr.
6297         The strnlen implementation doesn't need the memchr module's fixes; see
6298         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6299
6300         strtol: remove dependency on wchar
6301         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6302         * modules/strtol (Depends-on): Remove wchar.
6303
6304 2011-04-21  Eric Blake  <eblake@redhat.com>
6305
6306         passfd: fix test regression on Linux
6307         * modules/passfd-tests (configure.ac): Correct socketpair check.
6308
6309         passfd: speed up configure and drop unused code
6310         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6311         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6312         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6313         Instead of probing at configure for unix_scm_rights_bsd44_way,
6314         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6315         check to a struct member probe.
6316         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6317         (sendfd, recvfd): Update preprocessor checks.
6318         * modules/passfd (Files): Reflect rename, and drop unused file.
6319         (Depends-on): Drop unused dependency.
6320
6321         passfd: allow compilation on mingw
6322         * modules/sys_socket (Depends-on): Add sys_uio.
6323         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6324         iovec and a minimal struct msghdr.
6325         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6326         * tests/test-sys_socket.c (main): Enhance test.
6327         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6328         guaranteed to provide what we need.
6329         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6330         * modules/passfd-tests (Depends-on): Add sys_wait.
6331         * tests/test-passfd.c (main): Skip test on mingw, for now.
6332         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6333         partial 'struct msghdr' implementation.
6334
6335         sys_uio: new module
6336         * modules/sys_uio: New module.
6337         * modules/sys_uio-tests: Likewise.
6338         * lib/sys_uio.in.h: New file.
6339         * m4/sys_uio_h.m4: Likewise.
6340         * tests/test-sys_uio.c: Likewise.
6341         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6342         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6343
6344 2011-04-20  Jim Meyering  <meyering@redhat.com>
6345
6346         useless-if-before-free: avoid false-positive
6347         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6348         disjunct so that it too requires a terminating ";".  Without that,
6349         this script would identify as useless one statement from gcc that
6350         was not:
6351           if (aligned_ptr)
6352             free (((void **) aligned_ptr) [-1]);
6353
6354 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6355
6356         doc: update users.txt.
6357         * users.txt: Add barcode.
6358
6359 2011-04-19  Bruno Haible  <bruno@clisp.org>
6360
6361         ioctl: Remove link dependency on native Windows.
6362         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6363         (gl_close_fn, gl_ioctl_fn): New types.
6364         (struct fd_hook): Renamed from struct close_hook. Change type of
6365         private_close_fn field. Add private_ioctl_fn field.
6366         (close_hook_fn): Add parameter for primary close method.
6367         (execute_close_hooks, execute_all_close_hooks): Likewise.
6368         (ioctl_hook_fn): New type.
6369         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6370         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6371         argument.
6372         (unregister_fd_hook): Renamed from unregister_close_hook.
6373         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6374         Don't include <unistd.h>.
6375         (close): Remove undef.
6376         (anchor): Update.
6377         (execute_close_hooks): Add argument for primary close method.
6378         (execute_all_close_hooks): Likewise.
6379         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6380         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6381         argument. Allow each argument to be NULL.
6382         (unregister_fd_hook): Renamed from unregister_close_hook.
6383         * lib/close.c (rpl_close): Pass 'close' function pointer to
6384         execute_all_close_hooks.
6385         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6386         (primary_ioctl): New function.
6387         (ioctl): Don't call ioctlsocket here. Instead, call
6388         execute_all_ioctl_hooks.
6389         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6390         close method.
6391         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6392         (fd_sockets_hook): Renamed from close_sockets_hook.
6393         (gl_sockets_startup, gl_sockets_cleanup): Update.
6394         * modules/fd-hook: Renamed from modules/close-hook. Update.
6395         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6396         * modules/sockets (Depends-on): Likewise.
6397         * modules/ioctl (Depends-on): Add fd-hook.
6398         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6399         GNULIB_SOCKET.
6400
6401 2011-04-19  Bruno Haible  <bruno@clisp.org>
6402
6403         Move the support of O_NONBLOCK in open() to the 'open' module.
6404         * modules/nonblocking (Depends-on): Remove 'open'.
6405         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6406         gl_cv_have_open_O_NONBLOCK.
6407         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6408         O_NONBLOCK support.
6409         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6410
6411 2011-04-17  Bruno Haible  <bruno@clisp.org>
6412
6413         pipe2: Simplify code.
6414         * lib/pipe2.c (pipe2): Reduce code duplication.
6415
6416 2011-04-17  Bruno Haible  <bruno@clisp.org>
6417
6418         nonblocking: Add comment.
6419         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6420
6421 2011-04-17  Bruno Haible  <bruno@clisp.org>
6422
6423         nonblocking: Add tests for sockets.
6424         * tests/test-nonblocking-socket.sh: New file.
6425         * tests/test-nonblocking-socket-main.c: New file.
6426         * tests/test-nonblocking-socket-child.c: New file.
6427         * tests/test-nonblocking-socket.h: New file.
6428         * tests/socket-server.h: New file.
6429         * tests/socket-client.h: New file.
6430         * modules/nonblocking-socket-tests: New file.
6431         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6432
6433 2011-04-17  Bruno Haible  <bruno@clisp.org>
6434
6435         nonblocking: Add tests for pipes.
6436         * tests/test-nonblocking-pipe.sh: New file.
6437         * tests/test-nonblocking-pipe-main.c: New file.
6438         * tests/test-nonblocking-pipe-child.c: New file.
6439         * tests/test-nonblocking-pipe.h: New file.
6440         * tests/test-nonblocking-writer.h: New file.
6441         * tests/test-nonblocking-reader.h: New file.
6442         * tests/test-nonblocking-misc.h: New file.
6443         * modules/nonblocking-pipe-tests: New file.
6444         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6445
6446 2011-04-16  Bruno Haible  <bruno@clisp.org>
6447
6448         gettext: Clarify the needed programmer actions.
6449         * modules/gettext (Notice): New field.
6450         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6451
6452 2011-04-16  Bruno Haible  <bruno@clisp.org>
6453
6454         strchrnul: Tweak last commit.
6455         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6456         bug.
6457         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6458         as in _GL_FUNCDECL_SYS.
6459         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6460         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6461
6462 2011-04-15  Eric Blake  <eblake@redhat.com>
6463
6464         strchrnul: work around cygwin bug
6465         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6466         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6468         * modules/string (Makefile.am): Substitute it.
6469         * lib/string.in.h (strchrnul): Use it.
6470
6471 2011-04-15  Bruno Haible  <bruno@clisp.org>
6472
6473         Don't require lib/stdio-write.c when only module 'stdio' is used.
6474         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6475         invocation.
6476         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6477
6478 2011-04-14  Bruno Haible  <bruno@clisp.org>
6479
6480         Support non-blocking pipe I/O in read() on native Windows.
6481         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6482         (read): New declaration.
6483         * lib/read.c: New file.
6484         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6485         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6486         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6487         vscanf): New declarations.
6488         * lib/stdio-read.c: New file.
6489         * m4/read.m4: New file.
6490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6491         REPLACE_READ.
6492         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6493         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6494         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6495         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6496         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6497         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6498         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6499         * modules/read: New file.
6500         * modules/nonblocking (Files): Add lib/stdio-read.c.
6501         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6502         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6503         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6504         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6505         * modules/pread (Depends-on): Add read.
6506         * modules/safe-read (Depends-on): Likewise.
6507         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6508         gets, scanf, vfscanf, vscanf): Verify signatures.
6509         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6510         problem with non-blocking pipes.
6511         * doc/posix-functions/fgetc.texi: Likewise.
6512         * doc/posix-functions/fgets.texi: Likewise.
6513         * doc/posix-functions/fread.texi: Likewise.
6514         * doc/posix-functions/fscanf.texi: Likewise.
6515         * doc/posix-functions/getc.texi: Likewise.
6516         * doc/posix-functions/getchar.texi: Likewise.
6517         * doc/posix-functions/gets.texi: Likewise.
6518         * doc/posix-functions/scanf.texi: Likewise.
6519         * doc/posix-functions/vfscanf.texi: Likewise.
6520         * doc/posix-functions/vscanf.texi: Likewise.
6521
6522 2011-04-14  Bruno Haible  <bruno@clisp.org>
6523
6524         Support non-blocking pipe I/O in write() on native Windows.
6525         * lib/write.c (rpl_write): Split a write request that failed merely
6526         because the byte count was larger than the pipe buffer's size.
6527         * doc/posix-functions/write.texi: Mention the problem with large byte
6528         counts.
6529
6530 2011-04-14  Bruno Haible  <bruno@clisp.org>
6531
6532         wchar: Ensure that wchar_t gets defined on uClibc.
6533         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6534         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6535
6536 2011-04-13  Bruno Haible  <bruno@clisp.org>
6537
6538         safe-write, full-read: Avoid unnecessary compilation units.
6539         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6540         (Depends-on): Remove safe-read. Add ssize_t.
6541         * modules/full-read (Files): Add lib/full-write.c.
6542         (Depends-on): Add full-write.
6543
6544 2011-04-13  Bruno Haible  <bruno@clisp.org>
6545
6546         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6547         * modules/pwrite (Depends-on): Add 'write'.
6548
6549 2011-04-13  Bruno Haible  <bruno@clisp.org>
6550
6551         Support non-blocking pipe I/O in write() on native Windows.
6552         * lib/unistd.in.h (write): Enable replacement also if
6553         GNULIB_UNISTD_H_NONBLOCKING is 1.
6554         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6555         (rpl_write): When failing to write on a non-blocking pipe, change
6556         errno from ENOSPC to EAGAIN.
6557         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6558         putchar, puts, vfprintf, vprintf): Enable replacement also if
6559         GNULIB_STDIO_H_NONBLOCKING is 1.
6560         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6561         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6562         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6563         CALL_WITH_SIGPIPE_EMULATION.
6564         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6565         * m4/nonblocking.m4: New file.
6566         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6567         for non-blocking I/O support.
6568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6569         GNULIB_UNISTD_H_NONBLOCKING.
6570         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6571         required for non-blocking I/O support.
6572         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6573         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6574         lib/stdio-write.c, m4/asm-underscore.m4.
6575         (Depends-on): Add stdio, unistd.
6576         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6577         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6578         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6579         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6580         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6581         problem with non-blocking pipes.
6582         * doc/posix-functions/fputc.texi: Likewise.
6583         * doc/posix-functions/fputs.texi: Likewise.
6584         * doc/posix-functions/fwrite.texi: Likewise.
6585         * doc/posix-functions/printf.texi: Likewise.
6586         * doc/posix-functions/putc.texi: Likewise.
6587         * doc/posix-functions/putchar.texi: Likewise.
6588         * doc/posix-functions/puts.texi: Likewise.
6589         * doc/posix-functions/vfprintf.texi: Likewise.
6590         * doc/posix-functions/vprintf.texi: Likewise.
6591         * doc/posix-functions/write.texi: Likewise.
6592
6593 2011-04-10  Jim Meyering  <meyering@redhat.com>
6594
6595         maint.mk: prohibit doubled words
6596         Detect them also when they're separated by a newline.
6597         There are 3 ways to customize it:
6598           - disable the test on a per file basis, as usual with rules using
6599             $(VC_LIST_EXCEPT)
6600           - replace the default doubled-word-selecting regexp (affects all files)
6601           - ignore a particular file-vs-doubled-word match
6602         I nearly used that last one to ignore the "is is" match in
6603         coreutils' NEWS file, since the text was "ls -is is ..."
6604         To do that, I would have added this line to cfg.mk:
6605           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6606         but it would have ignored any "is is" match in NEWS.
6607         Low probability, but still...
6608         Instead, I changed the text, slightly:
6609           -  ls -is is now consistent with ls -lis in ignoring values returned
6610           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6611         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6612         (prohibit_doubled_word_): Define.
6613         (sc_prohibit_doubled_word): New rule.
6614         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6615
6616 2011-04-10  Jim Meyering  <meyering@redhat.com>
6617
6618         maint: fix doubled-word typo in comment
6619         * m4/gethostname.m4: s/is is/it is/
6620         * m4/getdomainname.m4: Likewise.
6621
6622 2011-04-10  Jim Meyering  <meyering@redhat.com>
6623
6624         maint: remove doubled word: s/it it/it/
6625         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6626
6627 2011-04-10  Jim Meyering  <meyering@redhat.com>
6628
6629         maint.mk: remove useless semicolon and backslash
6630         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6631         semicolon and backslash.
6632
6633 2011-04-10  Bruno Haible  <bruno@clisp.org>
6634
6635         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6636         * modules/stdint-tests (Depends-on): Add wchar.
6637
6638 2011-04-10  Jim Meyering  <meyering@redhat.com>
6639
6640         maint: remove doubled words in comments, e.g., s/a a/a/
6641         * lib/strptime.c (day_of_the_week): s/the the/the/
6642         * tests/test-chown.h (test_chown): s/a a/a/
6643
6644         test-chown.h: correct a cast
6645         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6646         when the destination is a stat.st_gid.
6647
6648 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6649
6650         getaddrinfo: Fix test for sa_len member.
6651         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6652         include <sys/types.h> before <sys/socket.h>.
6653
6654 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6655
6656         maint: change "can not" to "cannot"
6657         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6658         boundaries.
6659
6660 2011-04-09  Jim Meyering  <meyering@redhat.com>
6661
6662         maint: change "a a" to "a"
6663         * tests/test-lchown.h (test_lchown): s/a a/a/
6664
6665         maint.mk: prohibit \<the the\>
6666         * top/maint.mk (sc_prohibit_the_the): New rule.
6667
6668         maint: fix "the the" in comment
6669         * lib/count-one-bits.h: s/the the/the/
6670
6671         maint: change "can not" to "cannot"
6672         But do not change the occurrences in maintain.texi or in
6673         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6674         * doc/gnulib-tool.texi: s/can not/cannot/
6675         * doc/posix-functions/accept.texi (accept): Likewise.
6676         * doc/posix-functions/socket.texi (socket): Likewise.
6677         * lib/mbrtowc.c: Likewise.
6678
6679         maint.mk: prohibit use of "can not"
6680         * top/maint.mk (sc_prohibit_can_not): New rule.
6681         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6682
6683 2011-04-09  Bruno Haible  <bruno@clisp.org>
6684
6685         careadlinkat: Guard against misuse of careadlinkatcwd.
6686         * lib/careadlinkat.c: Include <stdlib.h>.
6687         (careadlinkatcwd): Check that the fd argument is as expected.
6688
6689 2011-04-09  Bruno Haible  <bruno@clisp.org>
6690
6691         careadlinkat: Use common coding style.
6692         * lib/careadlinkat.c: Move gnulib includes after system includes.
6693
6694 2011-04-09  Bruno Haible  <bruno@clisp.org>
6695
6696         careadlinkat: Clarify specification.
6697         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6698         (careadlinkatcwd): Add comment.
6699         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6700
6701 2011-04-09  Bruno Haible  <bruno@clisp.org>
6702
6703         areadlinkat: Avoid link error on many platforms.
6704         * modules/areadlinkat (Depends-on): Add areadlink.
6705
6706 2011-04-09  Bruno Haible  <bruno@clisp.org>
6707
6708         allocator, careadlinkat: Fix double-inclusion guard.
6709         * lib/allocator.h: Fix double-inclusion guard.
6710         * lib/careadlinkat.h: Likewise.
6711
6712 2011-04-09  Bruno Haible  <bruno@clisp.org>
6713
6714         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6715         * lib/relocwrapper.c: Update dependencies hierarchy.
6716         * build-aux/install-reloc: Update list of files to be compiled.
6717         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6718         lib/allocator.[hc].
6719
6720 2011-04-08  Eric Blake  <eblake@redhat.com>
6721
6722         strftime: silence gnulib-tool warning
6723         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6724
6725 2011-04-08  Bruno Haible  <bruno@clisp.org>
6726
6727         verify: Fix syntax error with GCC 4.6 in C++ mode.
6728         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6729         (HAVE_STATIC_ASSERT): New macro.
6730         (verify_true, verify): Use 'static_assert' if it is supported and
6731         '_Static_assert' is not supported.
6732
6733 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6734
6735         allocator: New module.
6736         * modules/allocator, lib/allocator.c: New files.
6737         * lib/allocator.h (stdlib_allocator): New decl.
6738         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6739         Remove.  Do not include <stdlib.h>.
6740         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6741         * modules/careadlinkat (Files): Remove lib/allocator.h.
6742         (Depends-on): Add allocator.
6743
6744         stdlib: let modules use system malloc, realloc
6745         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6746         if !_GL_USE_STDLIB_ALLOC.
6747         (malloc, realloc): Limit this change to a smaller scope.
6748
6749         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6750         (malloc, realloc): Don't #undef; no longer needed.
6751         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6752         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6753         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6754         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6755         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6756         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6757         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6758         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6759
6760         careadlinkat: rename members to avoid problem
6761         * lib/allocator.h (struct allocator): Rename members from
6762         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6763         and realloc are #define'd.  Reported by Eric Blake in
6764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6765         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6766
6767 2011-04-08  Eric Blake  <eblake@redhat.com>
6768
6769         nonblocking: reduce dependency
6770         * tests/test-nonblocking.c: Only test sockets when in use.
6771         * modules/nonblocking-tests (Depends-on): Drop socket.
6772         (Makefile.am): Link even if sockets are not present.
6773         * modules/pipe2-tests (Makefile.am): Likewise.
6774         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6775
6776         pipe2: fix O_NONBLOCK support on mingw
6777         * modules/pipe2 (Depends-on): Add nonblocking.
6778         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6779         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6780         * tests/test-nonblocking.c (main): Likewise.
6781         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6782
6783         fcntl-h: fix O_ACCMODE on cygwin
6784         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6785         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6786
6787         pipe-filter: drop O_NONBLOCK workarounds
6788         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6789         * modules/pipe-filter-ii (Depends-on): Likewise.
6790         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6791
6792         nonblocking: provide O_NONBLOCK for mingw
6793         * modules/nonblocking (Depends-on): Add open.
6794         (configure.ac): Set new witness macro.
6795         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6796         * modules/fcntl-h (Makefile.am): Substitute it.
6797         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6798         nonblocking module is in use.
6799         * lib/nonblocking.c: Adjust portability test.
6800         * lib/open.c (open): Don't let native open see gnulib flag.
6801         * tests/test-fcntl-h.c (main): Enhance test.
6802         * tests/test-open.h (test_open): Likewise.
6803         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6804
6805         careadlinkat: fix compilation error on mingw
6806         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6807         within struct allocator.
6808
6809 2011-04-06  Eric Blake  <eblake@redhat.com>
6810
6811         binary-io: relicense under LGPLv2+
6812         * modules/binary-io (License): Relax to LGPLv2+.
6813         Requested for libvirt, and required by pipe2.
6814
6815 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6816
6817         verify: use _Static_assert if available
6818         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6819         (verify_true, verify): Use it if available.  This generates better
6820         diagnostics with GCC 4.6.0 and later.
6821
6822 2011-04-05  Bruno Haible  <bruno@clisp.org>
6823
6824         Remove leftover generated .h files after config.status changed.
6825
6826         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6827         GL_GENERATE_ALLOCA_H.
6828         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6829         GL_GENERATE_ALLOCA_H evaluates to false.
6830
6831         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6832         GL_GENERATE_ARGZ_H.
6833         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6834         evaluates to false.
6835
6836         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6837         GL_GENERATE_BYTESWAP_H.
6838         * modules/byteswap (Makefile.am): Remove byteswap.h if
6839         GL_GENERATE_BYTESWAP_H evaluates to false.
6840
6841         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6842         GL_GENERATE_ERRNO_H.
6843         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6844         evaluates to false.
6845
6846         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6847         GL_GENERATE_FLOAT_H.
6848         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6849         evaluates to false.
6850
6851         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6852         GL_GENERATE_FNMATCH_H.
6853         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6854         GL_GENERATE_FNMATCH_H evaluates to false.
6855
6856         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6857         GL_GENERATE_GLOB_H.
6858         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6859         evaluates to false.
6860
6861         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6862         automake conditional GL_GENERATE_ICONV_H.
6863         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6864         evaluates to false.
6865
6866         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6867         GL_GENERATE_NETINET_IN_H.
6868         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
6869         GL_GENERATE_NETINET_IN_H evaluates to false.
6870
6871         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
6872         conditional GL_GENERATE_PTHREAD_H.
6873         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
6874         * modules/pthread (Makefile.am): Remove pthread.h if
6875         GL_GENERATE_PTHREAD_H evaluates to false.
6876
6877         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
6878         GL_GENERATE_SCHED_H.
6879         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
6880         evaluates to false.
6881
6882         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
6883         conditional GL_GENERATE_SELINUX_CONTEXT_H.
6884         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
6885         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
6886
6887         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
6888         GL_GENERATE_STDARG_H.
6889         * modules/stdarg (Makefile.am): Remove stdarg.h if
6890         GL_GENERATE_STDARG_H evaluates to false.
6891
6892         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
6893         GL_GENERATE_STDBOOL_H.
6894         * modules/stdbool (Makefile.am): Remove stdbool.h if
6895         GL_GENERATE_STDBOOL_H evaluates to false.
6896
6897         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
6898         conditional GL_GENERATE_STDDEF_H.
6899         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
6900         * modules/stddef (Makefile.am): Remove stddef.h if
6901         GL_GENERATE_STDDEF_H evaluates to false.
6902
6903         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
6904         GL_GENERATE_STDINT_H.
6905         * modules/stdint (Makefile.am): Remove stdint.h if
6906         GL_GENERATE_STDINT_H evaluates to false.
6907
6908         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
6909         GL_GENERATE_SYSEXITS_H.
6910         * modules/sysexits (Makefile.am): Remove sysexits.h if
6911         GL_GENERATE_SYSEXITS_H evaluates to false.
6912
6913         Reported by Karl Berry and Ralf Wildenhues.
6914
6915 2011-04-05  Bruno Haible  <bruno@clisp.org>
6916
6917         Ensure to rebuild generated .h files when config.status has changed.
6918         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
6919         config.status.
6920         * modules/ctype (Makefile.am): Likewise.
6921         * modules/dirent (Makefile.am): Likewise.
6922         * modules/errno (Makefile.am): Likewise.
6923         * modules/fcntl-h (Makefile.am): Likewise.
6924         * modules/float (Makefile.am): Likewise.
6925         * modules/getopt-posix (Makefile.am): Likewise.
6926         * modules/glob (Makefile.am): Likewise.
6927         * modules/iconv-h (Makefile.am): Likewise.
6928         * modules/inttypes (Makefile.am): Likewise.
6929         * modules/langinfo (Makefile.am): Likewise.
6930         * modules/locale (Makefile.am): Likewise.
6931         * modules/math (Makefile.am): Likewise.
6932         * modules/netdb (Makefile.am): Likewise.
6933         * modules/netinet_in (Makefile.am): Likewise.
6934         * modules/poll-h (Makefile.am): Likewise.
6935         * modules/pthread (Makefile.am): Likewise.
6936         * modules/pty (Makefile.am): Likewise.
6937         * modules/sched (Makefile.am): Likewise.
6938         * modules/search (Makefile.am): Likewise.
6939         * modules/selinux-h (Makefile.am): Likewise.
6940         * modules/signal (Makefile.am): Likewise.
6941         * modules/spawn (Makefile.am): Likewise.
6942         * modules/stdarg (Makefile.am): Likewise.
6943         * modules/stdbool (Makefile.am): Likewise.
6944         * modules/stddef (Makefile.am): Likewise.
6945         * modules/stdint (Makefile.am): Likewise.
6946         * modules/stdio (Makefile.am): Likewise.
6947         * modules/stdlib (Makefile.am): Likewise.
6948         * modules/string (Makefile.am): Likewise.
6949         * modules/strings (Makefile.am): Likewise.
6950         * modules/sys_file (Makefile.am): Likewise.
6951         * modules/sys_ioctl (Makefile.am): Likewise.
6952         * modules/sys_select (Makefile.am): Likewise.
6953         * modules/sys_socket (Makefile.am): Likewise.
6954         * modules/sys_stat (Makefile.am): Likewise.
6955         * modules/sys_time (Makefile.am): Likewise.
6956         * modules/sys_times (Makefile.am): Likewise.
6957         * modules/sys_utsname (Makefile.am): Likewise.
6958         * modules/sys_wait (Makefile.am): Likewise.
6959         * modules/sysexits (Makefile.am): Likewise.
6960         * modules/termios (Makefile.am): Likewise.
6961         * modules/time (Makefile.am): Likewise.
6962         * modules/unistd (Makefile.am): Likewise.
6963         * modules/wchar (Makefile.am): Likewise.
6964         * modules/wctype-h (Makefile.am): Likewise.
6965         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
6966
6967 2011-04-05  Bruno Haible  <bruno@clisp.org>
6968
6969         pipe2: Relicense under LGPLv2+.
6970         * modules/pipe2 (License): Change to LGPLv2+.
6971         Requested by Eric Blake, for libvirt.
6972
6973 2011-04-05  Bruce Korb  <bkorb@gnu.org>
6974
6975         bootstrap: compute gnulib_extra_files after updating build_aux
6976         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
6977         change build_aux or also supply gnulib_extra_files.  Handle correctly.
6978
6979 2011-04-05  Eric Blake  <eblake@redhat.com>
6980
6981         bootstrap: preserve git whitelist item sorting
6982         * build-aux/bootstrap (sort_patterns): New function.
6983         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
6984
6985 2011-04-05  Simon Josefsson  <simon@josefsson.org>
6986
6987         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
6988         sc_space_tab check.
6989
6990 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6991
6992         areadlink, areadlinkat: rewrite in terms of careadlinkat
6993         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
6994         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
6995         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
6996         (malloc, realloc): Remove #undefs.
6997         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
6998         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
6999         readlink, ssize_t, stdint, unistd.
7000         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
7001         areadlink, stdint.
7002
7003         careadlinkat: new module
7004         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
7005         * modules/careadlinkat: New files, written by me with
7006         a review and feedback from Ben Pfaff in
7007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
7008
7009 2011-04-01  Bruno Haible  <bruno@clisp.org>
7010
7011         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
7012         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
7013         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
7014         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
7015         Reported by Bruce Korb <bruce.korb@gmail.com>.
7016
7017 2011-04-01  Bruno Haible  <bruno@clisp.org>
7018
7019         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
7020         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
7021         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
7022         * modules/wcpcpy (Depends-on): Add extensions.
7023         * modules/wcpncpy (Depends-on): Likewise.
7024         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
7025         systems.
7026         * doc/posix-functions/wcpncpy.texi: Likewise.
7027         * doc/posix-functions/wcwidth.texi: Likewise.
7028
7029 2011-03-31  Eric Blake  <eblake@redhat.com>
7030
7031         nonblocking: fix mingw test failures
7032         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
7033         non-blocking flag on regular file.
7034         (get_nonblocking_flag): Set errno on invalid fd.
7035         * tests/test-nonblocking.c (main): Avoid test failure on
7036         directories if fchdir is not active.
7037         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
7038
7039 2011-03-31  Bruno Haible  <bruno@clisp.org>
7040
7041         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
7042         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
7043         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
7044         Reported by Simon Josefsson <simon@josefsson.org>.
7045
7046 2011-03-31  Bruno Haible  <bruno@clisp.org>
7047         and Eric Blake  <eblake@redhat.com>
7048
7049         nonblocking: new module
7050         * modules/nonblocking: New module.
7051         * modules/nonblocking-tests: Likewise.
7052         * lib/nonblocking.h: New file.
7053         * lib/nonblocking.c: Likewise.
7054         * tests/test-nonblocking.c: New test.
7055         * lib/ioctl.c (ioctl) [mingw]: Update comment.
7056
7057 2011-03-30  Bruno Haible  <bruno@clisp.org>
7058
7059         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
7060         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
7061         instead of 'printf' format for GCC >= 4.4.
7062         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
7063         (fprintf, printf, vfprintf, vprintf): Declare with
7064         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
7065         the system's vfprintf() function.
7066         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
7067
7068 2011-03-30  Eric Blake  <eblake@redhat.com>
7069
7070         passfd: fix scoping bug
7071         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
7072         before sendmsg/recvmsg.
7073
7074         passfd: standardize coding conventions
7075         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
7076         can be learned at compile time.
7077         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
7078         ifdefs.
7079         (sendfd, recvfd): Follow gnulib code conventions.
7080
7081         passfd: fix incorrect sendmsg arguments
7082         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
7083         incorrect msg_controllen value.
7084         * modules/passfd-tests (Depends-on): Check for alarm.
7085         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
7086         Reported by Bastien ROUCARIES.
7087
7088 2011-03-30  Bruno Haible  <bruno@clisp.org>
7089
7090         c-strcasestr: Relicense under LGPLv2+.
7091         * modules/c-strcasestr (License): Change to LGPLv2+.
7092         Requested by Eric Blake, for libvirt.
7093
7094 2011-03-30  Simon Josefsson  <simon@josefsson.org>
7095
7096         * users.txt: Add libidn2.  Fix libtasn1 link.
7097
7098 2011-03-30  Jim Meyering  <meyering@redhat.com>
7099
7100         tests: readlink* ("",... fails with EINVAL on newer kernels
7101         readlink and readlinkat have typically failed with ENOENT for
7102         the invalid, empty file name,  "".  However, with the advent
7103         of linux-2.6.39, they fail with EINVAL.
7104         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
7105         when operating on the empty file name.
7106         * tests/test-readlink.h (test_readlink): Likewise.
7107
7108 2011-03-29  Bruno Haible  <bruno@clisp.org>
7109
7110         Relicense some modules under LGPLv2+, for libidn2.
7111         * modules/array-mergesort (License): Change to LGPLv2+.
7112         * modules/c-strcaseeq (License): Likewise.
7113         * modules/striconveh (License): Likewise.
7114         * modules/striconveha (License): Likewise.
7115         * modules/uniconv/base (License): Likewise.
7116         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7117         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7118         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
7119         * modules/unictype/base (License): Likewise.
7120         * modules/unictype/bidiclass-of (License): Likewise.
7121         * modules/unictype/category-M (License): Likewise.
7122         * modules/unictype/category-none (License): Likewise.
7123         * modules/unictype/category-of (License): Likewise.
7124         * modules/unictype/category-test (License): Likewise.
7125         * modules/unictype/category-test-withtable (License): Likewise.
7126         * modules/unictype/combining-class (License): Likewise.
7127         * modules/unictype/joiningtype-of (License): Likewise.
7128         * modules/unictype/scripts (License): Likewise.
7129         * modules/uninorm/base (License): Likewise.
7130         * modules/uninorm/canonical-decomposition (License): Likewise.
7131         * modules/uninorm/composition (License): Likewise.
7132         * modules/uninorm/decompose-internal (License): Likewise.
7133         * modules/uninorm/decomposition-table (License): Likewise.
7134         * modules/uninorm/nfc (License): Likewise.
7135         * modules/uninorm/nfd (License): Likewise.
7136         * modules/uninorm/u32-normalize (License): Likewise.
7137         * modules/unistr/base (License): Likewise.
7138         * modules/unistr/u32-cpy (License): Likewise.
7139         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
7140         * modules/unistr/u32-to-u8 (License): Likewise.
7141         * modules/unistr/u32-uctomb (License): Likewise.
7142         * modules/unistr/u8-check (License): Likewise.
7143         * modules/unistr/u8-mblen (License): Likewise.
7144         * modules/unistr/u8-mbtouc (License): Likewise.
7145         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
7146         * modules/unistr/u8-mbtoucr (License): Likewise.
7147         * modules/unistr/u8-prev (License): Likewise.
7148         * modules/unistr/u8-strlen (License): Likewise.
7149         * modules/unistr/u8-to-u32 (License): Likewise.
7150         * modules/unistr/u8-uctomb (License): Likewise.
7151         * modules/unitypes (License): Likewise.
7152         Requested by Simon Josefsson.
7153
7154 2011-03-29  Simon Josefsson  <simon@josefsson.org>
7155
7156         lib-symbol-visibility: Add a notice.
7157         * modules/lib-symbol-visibility (Notice): New field.
7158
7159 2011-03-29  Bruno Haible  <bruno@clisp.org>
7160
7161         getaddrinfo: Doc fix.
7162         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
7163         section "fixed in Gnulib".
7164
7165 2011-03-28  Simon Josefsson  <simon@josefsson.org>
7166
7167         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
7168         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
7169
7170 2011-03-26  Bruno Haible  <bruno@clisp.org>
7171
7172         unictype/property-byname: Reduce the number of load-time relocations.
7173         * lib/unictype/pr_byname.c: Include <stdlib.h>.
7174         (UC_PROPERTY_INDEX_*): New enumeration values.
7175         (uc_property_byname): Convert an index from the lookup table to an
7176         uc_property_t.
7177         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
7178         values.
7179
7180 2011-03-26  Bruno Haible  <bruno@clisp.org>
7181
7182         unictype/property-byname: Allow omitted word separators and aliases.
7183         * lib/unictype/pr_byname.gperf: Add property names without word
7184         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
7185         for 'space'.
7186
7187 2011-03-26  Bruno Haible  <bruno@clisp.org>
7188
7189         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
7190         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
7191         also hyphens to space.
7192         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
7193         without spaces.
7194         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
7195
7196 2011-03-26  Bruno Haible  <bruno@clisp.org>
7197
7198         unictype/joiningtype-byname: Recognize long names as well.
7199         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
7200         a long name.
7201         * lib/unictype/joiningtype_byname.c: Include <string.h>,
7202         unictype/joiningtype_byname.h.
7203         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
7204         * lib/unictype/joiningtype_byname.gperf: New file.
7205         * modules/unictype/joiningtype-byname (Files): Add
7206         lib/unictype/joiningtype_byname.gperf.
7207         (Depends-on): Add gperf.
7208         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
7209         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
7210         long names.
7211
7212         Tests for module 'unictype/joiningtype-longname'.
7213         * modules/unictype/joiningtype-longname-tests: New file.
7214         * tests/unictype/test-joiningtype_longname.c: New file.
7215
7216         New module 'unictype/joiningtype-longname'.
7217         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
7218         * lib/unictype/joiningtype_longname.c: New file.
7219         * modules/unictype/joiningtype-longname: New file.
7220         * modules/unictype/joiningtype-all (Depends-on): Add
7221         unictype/joiningtype-longname.
7222
7223 2011-03-26  Bruno Haible  <bruno@clisp.org>
7224
7225         unictype/bidiclass-byname: Recognize long names as well.
7226         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
7227         name.
7228         * lib/unictype/bidi_byname.c: Include <string.h>,
7229         unictype/bidi_byname.h.
7230         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
7231         * lib/unictype/bidi_byname.gperf: New file.
7232         * modules/unictype/bidiclass-byname (Files): Add
7233         lib/unictype/bidi_byname.gperf.
7234         (Depends-on): Add gperf.
7235         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
7236         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
7237         long names.
7238
7239         Tests for module 'unictype/bidiclass-longname'.
7240         * modules/unictype/bidiclass-longname-tests: New file.
7241         * tests/unictype/test-bidi_longname.c: New file.
7242
7243         New module 'unictype/bidiclass-longname'.
7244         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
7245         * lib/unictype/bidi_longname.c: New file.
7246         * modules/unictype/bidiclass-longname: New file.
7247         * modules/unictype/bidiclass-all (Depends-on): Add
7248         unictype/bidiclass-longname.
7249
7250 2011-03-26  Bruno Haible  <bruno@clisp.org>
7251
7252         unictype/bidi*: Rename modules.
7253         * modules/unictype/bidiclass-all: Renamed from
7254         modules/unictype/bidicategory-all.
7255         * modules/unictype/bidiclass-name: Renamed from
7256         modules/unictype/bidiclass-name.
7257         (Description): Update.
7258         * modules/unictype/bidiclass-name-tests: Renamed from
7259         modules/unictype/bidicategory-name-tests.
7260         * modules/unictype/bidiclass-byname: Renamed from
7261         modules/unictype/bidicategory-byname.
7262         (Description): Update.
7263         * modules/unictype/bidiclass-byname-tests: Renamed from
7264         modules/unictype/bidicategory-byname-tests.
7265         * modules/unictype/bidiclass-of: Renamed from
7266         modules/unictype/bidicategory-of.
7267         (Description): Update.
7268         * modules/unictype/bidiclass-of-tests: Renamed from
7269         modules/unictype/bidicategory-of-tests.
7270         * modules/unictype/bidiclass-test: Renamed from
7271         modules/unictype/bidicategory-test.
7272         (Description): Update.
7273         * modules/unictype/bidiclass-test-tests: Renamed from
7274         modules/unictype/bidicategory-test-tests.
7275         * modules/unictype/bidicategory-all: New file, a simple redirection.
7276         * modules/unictype/bidicategory-name: Likewise.
7277         * modules/unictype/bidicategory-byname: Likewise.
7278         * modules/unictype/bidicategory-of: Likewise.
7279         * modules/unictype/bidicategory-test: Likewise.
7280         * modules/unictype/property-bidi-* (Dependencies): Update.
7281         * lib/unictype/bidi_*.c: Update comment.
7282
7283 2011-03-26  Bruno Haible  <bruno@clisp.org>
7284
7285         unictype/bidi*: Rename functions, part 2.
7286         * modules/unictype/bidicategory-name (configure.ac): Update required
7287         libunistring version.
7288         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7289
7290 2011-03-25  Bruno Haible  <bruno@clisp.org>
7291
7292         New module 'unictype/combining-class-all'.
7293         * modules/unictype/combining-class-all: New file.
7294
7295         Tests for module 'unictype/combining-class-byname'.
7296         * modules/unictype/combining-class-byname-tests: New file.
7297         * tests/unictype/test-combiningclass_byname.c: New file.
7298
7299         New module 'unictype/combining-class-byname'.
7300         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7301         * lib/unictype/combiningclass_byname.c: New file.
7302         * lib/unictype/combiningclass_byname.gperf: New file.
7303         * modules/unictype/combining-class-byname: New file.
7304
7305         Tests for module 'unictype/combining-class-longname'.
7306         * modules/unictype/combining-class-longname-tests: New file.
7307         * tests/unictype/test-combiningclass_longname.c: New file.
7308
7309         New module 'unictype/combining-class-longname'.
7310         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7311         * lib/unictype/combiningclass_longname.c: New file.
7312         * modules/unictype/combining-class-longname: New file.
7313
7314         Tests for module 'unictype/combining-class-name'.
7315         * modules/unictype/combining-class-name-tests: New file.
7316         * tests/unictype/test-combiningclass_name.c: New file.
7317
7318         New module 'unictype/combining-class-name'.
7319         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7320         * lib/unictype/combiningclass_name.c: New file.
7321         * modules/unictype/combining-class-name: New file.
7322
7323 2011-03-25  Bruno Haible  <bruno@clisp.org>
7324
7325         unictype/combining-class: Rename source files.
7326         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7327         of unictype/combining.h.
7328         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7329         Update.
7330         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7331         * modules/unictype/combining-class (Description): Fix.
7332         (Files, Makefile.am): Update.
7333         * tests/unictype/test-combiningclass.c: Renamed from
7334         tests/unictype/test-combining.c.
7335         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7336
7337 2011-03-25  Bruno Haible  <bruno@clisp.org>
7338
7339         unictype: Update list of canonical combining classes.
7340         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7341
7342 2011-03-25  Bruno Haible  <bruno@clisp.org>
7343
7344         unictype/category-byname: Recognize long names as well.
7345         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7346         a long name.
7347         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7348         unictype/categ_byname.h.
7349         (UC_CATEGORY_INDEX_*): New enumeration values.
7350         (uc_general_category_byname): Use uc_general_category_lookup and
7351         convert from index to value.
7352         * lib/unictype/categ_byname.gperf: New file.
7353         * modules/unictype/category-byname (Files): Add
7354         lib/unictype/categ_byname.gperf.
7355         (Depends-on): Add gperf.
7356         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7357         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7358         long names.
7359
7360         Tests for module 'unictype/category-longname'.
7361         * modules/unictype/category-longname-tests: New file.
7362         * tests/unictype/test-categ_longname.c: New file.
7363
7364         New module 'unictype/category-longname'.
7365         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7366         * lib/unictype/categ_longname.c: New file.
7367         * modules/unictype/category-longname: New file.
7368         * modules/unictype/category-all (Depends-on): Add it.
7369
7370 2011-03-25  Bruno Haible  <bruno@clisp.org>
7371
7372         Tests for module 'unictype/category-LC'.
7373         * modules/unictype/category-LC-tests: New file.
7374         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7375
7376         New module 'unictype/category-LC'.
7377         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7378         (UC_CATEGORY_LC): New declaration.
7379         (UC_CASED_LETTER): New macro.
7380         * lib/gen-uni-tables.c (is_category_LC): New function.
7381         (output_categories): Also handle category LC.
7382         (UC_CATEGORY_MASK_LC): New enumeration value.
7383         (general_category_byname): Also handle category LC.
7384         * lib/unictype/categ_LC.c: New file.
7385         * lib/unictype/categ_LC.h: New file, automatically generated.
7386         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7387         category LC.
7388         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7389         * modules/unictype/category-LC: New file.
7390         * modules/unictype/category-byname (Depends-on): Add
7391         unictype/category-LC.
7392         * modules/unictype/category-all (Depends-on): Likewise.
7393
7394 2011-03-25  Eric Blake  <eblake@redhat.com>
7395
7396         xmalloc: revert yesterday's regression
7397         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7398         realloc's underlying behavior (allowing allocation of zero-size
7399         objects, especially if malloc-gnu is also in use).
7400
7401 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7402
7403         maint.mk: add missing version to VC-tag
7404         * top/maint.mk: git tag was missing actual tag name; add it.
7405
7406         valgrind: do leak checking, and exit with code 1 on error (not 0)
7407         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7408         to VALGRIND.
7409
7410 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7411
7412         posix-modules: say what it does.
7413         * posix-modules: Add a line to the --help output saying what it does.
7414
7415 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7416
7417         xmalloc: Do not leak if underlying realloc is C99 compatible.
7418         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7419         This avoids a leak on C99-based systems.  See
7420         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7421
7422 2011-03-24  Eric Blake  <eblake@redhat.com>
7423
7424         realloc: document portability problem
7425         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7426         passing 0 size to realloc.
7427
7428 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7429
7430         doc: update users.txt
7431         * users.txt: Add cvsps, tmpwatch
7432
7433 2011-03-23  Matt Rice  <ratmice@gmail.com>
7434
7435         doc: update users.txt
7436         * users.txt: Add gdb.
7437
7438 2011-03-23  Jim Meyering  <meyering@redhat.com>
7439
7440         doc: update users.txt
7441         Looking through matches up to the following URL (there are still
7442         several more pages), I found several projects that use gnulib:
7443         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7444         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7445         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7446
7447 2011-03-22  Bruno Haible  <bruno@clisp.org>
7448
7449         unictype/bidi*: Rename functions.
7450         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7451         uc_bidi_class, uc_is_bidi_class): New declarations.
7452         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7453         uc_bidi_category_byname.
7454         (uc_bidi_category_byname): New function.
7455         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7456         u_bidi_category_name.
7457         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7458         (uc_bidi_category_name): New function.
7459         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7460         uc_bidi_category.
7461         (uc_bidi_category): New function.
7462         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7463         uc_is_bidi_category. Invoke uc_bidi_class.
7464         (uc_is_bidi_category): New function.
7465         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7466         instead of uc_bidi_category_byname.
7467         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7468         instead of uc_bidi_category_name.
7469         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7470         uc_bidi_category.
7471         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7472         instead of uc_is_bidi_category.
7473
7474 2011-03-21  Bruno Haible  <bruno@clisp.org>
7475
7476         New module 'unictype/joininggroup-all'.
7477         * modules/unictype/joininggroup-all: New file.
7478
7479         Tests for module 'unictype/joininggroup-of'.
7480         * modules/unictype/joininggroup-of-tests: New file.
7481         * tests/unictype/test-joininggroup_of.c: New file.
7482         * tests/unictype/test-joininggroup_of.h: New file, automatically
7483         generated by gen-uni-tables.
7484
7485         New module 'unictype/joininggroup-of'.
7486         * modules/unictype/joininggroup-of: New file.
7487         * lib/unictype/joininggroup_of.c: New file.
7488         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7489         gen-uni-tables.
7490
7491         Tests for module 'unictype/joininggroup-byname'.
7492         * modules/unictype/joininggroup-byname-tests: New file.
7493         * tests/unictype/test-joininggroup_byname.c: New file.
7494
7495         New module 'unictype/joininggroup-byname'.
7496         * modules/unictype/joininggroup-byname: New file.
7497         * lib/unictype/joininggroup_byname.c: New file.
7498         * lib/unictype/joininggroup_byname.gperf: New file.
7499
7500         Tests for module 'unictype/joininggroup-name'.
7501         * modules/unictype/joininggroup-name-tests: New file.
7502         * tests/unictype/test-joininggroup_name.c: New file.
7503
7504         New module 'unictype/joininggroup-name'.
7505         * modules/unictype/joininggroup-name: New file.
7506         * lib/unictype/joininggroup_name.c: New file.
7507         * lib/unictype/joininggroup_name.h: New file.
7508
7509         New module 'unictype/joiningtype-all'.
7510         * modules/unictype/joiningtype-all: New file.
7511
7512         Tests for module 'unictype/joiningtype-of'.
7513         * modules/unictype/joiningtype-of-tests: New file.
7514         * tests/unictype/test-joiningtype_of.c: New file.
7515         * tests/unictype/test-joiningtype_of.h: New file, automatically
7516         generated by gen-uni-tables.
7517
7518         New module 'unictype/joiningtype-of'.
7519         * modules/unictype/joiningtype-of: New file.
7520         * lib/unictype/joiningtype_of.c: New file.
7521         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7522         gen-uni-tables.
7523
7524         Tests for module 'unictype/joiningtype-byname'.
7525         * modules/unictype/joiningtype-byname-tests: New file.
7526         * tests/unictype/test-joiningtype_byname.c: New file.
7527
7528         New module 'unictype/joiningtype-byname'.
7529         * modules/unictype/joiningtype-byname: New file.
7530         * lib/unictype/joiningtype_byname.c: New file.
7531
7532         Tests for module 'unictype/joiningtype-name'.
7533         * modules/unictype/joiningtype-name-tests: New file.
7534         * tests/unictype/test-joiningtype_name.c: New file.
7535
7536         New module 'unictype/joiningtype-name'.
7537         * modules/unictype/joiningtype-name: New file.
7538         * lib/unictype/joiningtype_name.c: New file.
7539
7540         unictype: Add support for Arabic shaping properties.
7541         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7542         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7543         declarations.
7544         (UC_JOINING_GROUP_*): New enumeration values.
7545         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7546         declarations.
7547         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7548         (unicode_joining_type): New variable.
7549         (UC_JOINING_GROUP_*): New enumeration values.
7550         (unicode_joining_group): New variable.
7551         (fill_arabicshaping, joining_type_as_c_identifier,
7552         output_joining_type_test, output_joining_type,
7553         joining_group_as_c_identifier, output_joining_group_test,
7554         output_joining_group): New functions.
7555         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7556         fill_arabicshaping and output_joining_type_test, output_joining_type,
7557         output_joining_group_test, output_joining_group.
7558         Reported by Simon Josefsson.
7559
7560 2011-03-21  Jim Meyering  <meyering@redhat.com>
7561
7562         strftime: fix a bug in yesterday's change
7563         * lib/strftime.c (add): Accommodate width's initial value of -1.
7564         Otherwise, nstrftime would copy uninitialized data into
7565         the result buffer.
7566
7567 2011-03-21  Jim Meyering  <meyering@redhat.com>
7568
7569         tests: add strftime-tests module
7570         * tests/test-strftime.c: New file.
7571         * modules/strftime-tests: New module.
7572
7573 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7574
7575         strftime: don't assume a byte count fits in 'int'
7576         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7577         found this problem by static analysis, using gcc -Wstrict-overflow
7578         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7579         on an integer overflow having undefined behavior, but it turns out
7580         that the argument is a size, which might not fit in 'int' anyway,
7581
7582 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7583
7584         stdio: don't require ignore_value around fwrite
7585
7586         This patch works around libc bug 11959
7587         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7588         Without this patch, applications must often write
7589         ignore_value (fwrite (...)) even though the ignore_value is
7590         not helpful here.  It's common to write many objects, using
7591         fwrite/printf/etc., and then use ferror to detect output error.
7592
7593         I considered making this patch optional, but decided against it,
7594         because libc is obviously being inconsistent here: there is no
7595         reason libc should insist that user code must inspect fwrite
7596         return's value without also insisting that it inspect printf's,
7597         putchar's, etc.  If user code wants to have a strict style where
7598         all these functions' values are checked (so that ferror need not
7599         be checked), we could add support for that style in a new gnulib
7600         module, but in the meantime it's better to be consistent and to
7601         support common usage.
7602
7603         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7604         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7605         that we are compiling in checking mode, and if not C++, and
7606         if not already wrapping fwrite for some other reason.
7607         (fwrite): #define to rpl_fwrite if the latter is defined.
7608
7609 2011-03-20  Bruno Haible  <bruno@clisp.org>
7610
7611         verror: Fix compilation error introduced on 2011-02-13.
7612         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7613         instead of __attribute__.
7614         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7615
7616 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7617             Bruno Haible  <bruno@clisp.org>
7618
7619         socklen: do not depend on sys_socket
7620         While trying to modify Emacs to use gnulib's socklen module,
7621         I discovered a circular dependency: socklen depends on sys_socket
7622         and vice versa.  Emacs can use socklen, but it does not need
7623         sys_socket because it has its own substitute for sys/socket.h.
7624         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7625         gl_TYPE_SOCKLEN_T.
7626         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7627         gl_PREREQ_SYS_H_SOCKET.
7628         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7629         gl_PREREQ_SYS_H_SOCKET.
7630         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7631         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7632         * modules/socklen (Depends-on): Do not depend on sys_socket.
7633         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7634
7635 2011-03-20  Jim Meyering  <meyering@redhat.com>
7636
7637         maint.mk: sort file names *after* new transformation
7638         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7639         prefix would have led to an unwarranted failure in GNU parted.
7640         Sort after that transformation.
7641
7642 2011-03-19  Jim Meyering  <meyering@redhat.com>
7643
7644         maint.mk: fix po-file syntax-check rule
7645         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7646         Patch by Bruno Haible.
7647
7648 2011-03-19  Bruno Haible  <bruno@clisp.org>
7649
7650         socklen: Update comment.
7651         * m4/socklen.m4: Update comment about platforms.
7652
7653 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7654             Bruno Haible  <bruno@clisp.org>
7655
7656         inet_ntop, inet_pton: Simplify.
7657         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7658         documented to provide socklen_t and we already depend on sys_socket.
7659         * modules/inet_pton (Depends-on): Likewise.
7660         * lib/arpa_inet.in.h: Adjust comment.
7661
7662 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7663             Bruno Haible  <bruno@clisp.org>
7664
7665         netdb: Simplify.
7666         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7667         documented to provide socklen_t and we already depend on sys_socket.
7668         * lib/netdb.in.h: Adjust comment.
7669
7670 2011-03-19  Bruno Haible  <bruno@clisp.org>
7671
7672         sys_socket, netdb: Document problem with socklen_t.
7673         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7674         platforms.
7675         * doc/posix-headers/netdb.texi: Likewise.
7676
7677 2011-03-18  Eric Blake  <eblake@redhat.com>
7678
7679         maint.mk: let po check work in VPATH build
7680         * top/maint.mk (po_file): Allow cfg.mk override.
7681         (sc_po_check): Allow VPATH use.
7682         Reported by Jiri Denemark.
7683
7684 2011-03-16  Jim Meyering  <meyering@redhat.com>
7685
7686         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7687         Before, you would have had to create one .x-sc_ file per rule in order
7688         to exempt offending files.  Now, you may instead use a Make variable --
7689         usually defined in cfg.mk -- whose name identifies the affected rule.
7690         * top/maint.mk (_sc_excl): Define.
7691         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7692         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7693
7694 2011-03-13  Bruno Haible  <bruno@clisp.org>
7695
7696         ignore-value tests: Avoid warnings.
7697         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7698         empty for gcc < 3.4.
7699
7700 2011-03-13  Bruno Haible  <bruno@clisp.org>
7701
7702         passfd: Fix link error on Solaris.
7703         * modules/passfd (Description): Correct.
7704         (Depends-on): Add socketlib.
7705         (Link): New section.
7706         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7707
7708 2011-03-13  Bruno Haible  <bruno@clisp.org>
7709
7710         passfd: Fix link error on AIX 5.2.
7711         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7712
7713 2011-03-13  Bruno Haible  <bruno@clisp.org>
7714
7715         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7716         * lib/sys_socket.in.h: Include <stddef.h>.
7717         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7718         CMSG_FIRSTHDR. Remove unused variable.
7719
7720 2011-03-13  Bruno Haible  <bruno@clisp.org>
7721
7722         passfd: Fix compilation error on OpenBSD.
7723         * lib/passfd.c: Include <sys/uio.h>.
7724
7725 2011-03-13  Bruno Haible  <bruno@clisp.org>
7726
7727         passfd test: Fix warnings.
7728         * tests/test-passfd.c: Include <sys/wait.h>.
7729         (main): Fix typo.
7730
7731 2011-03-13  Bruno Haible  <bruno@clisp.org>
7732
7733         passfd module, part 4, tweaks.
7734         * tests/test-passfd.c: Reorder includes.
7735         (main): Fix perror and printf calls.
7736
7737 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7738
7739         passfd module, part 4.
7740         * modules/passfd-tests: New file.
7741         * tests/test-passfd.c: New file.
7742
7743 2011-03-13  Jim Meyering  <meyering@redhat.com>
7744
7745         Makefile: rely on GNU make; derive syntax-check rule names
7746         Rather than requiring that each sc_ rule be listed as a dependent
7747         of "check", use features of GNU make to derive the list.
7748         * Makefile (syntax-check-rules): Define.
7749         (check): Depend on the new variable, not the hard-coded list.
7750
7751 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7752             Bruno Haible  <bruno@clisp.org>
7753
7754         passfd module, part 3.
7755         * lib/passfd.h (recvfd): Add a flags argument.
7756         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7757         (recvfd): Add a flags argument.
7758         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7759         exists.
7760         * modules/passfd (Depends-on): Add cloexec.
7761         Suggested by Eric Blake.
7762
7763 2011-03-13  Bruno Haible  <bruno@clisp.org>
7764
7765         passfd module, part 2, tweaks.
7766         * modules/passfd (Files): Reorder.
7767         (Depends-on): Remove errno.
7768         (Include): Remove <sys/socket.h>, <sys/un.h>.
7769         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7770         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7771         specification header. Include <sys/socket.h> always. Don't include
7772         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7773         (sendfd): Clarify that it sets errno when it fails.
7774         (recvfd): Fix specification.
7775
7776 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7777
7778         passfd module, part 2.
7779         * modules/passfd: New file.
7780         * lib/passfd.h: New file.
7781         * lib/passfd.c: New file.
7782
7783 2011-03-12  Bruno Haible  <bruno@clisp.org>
7784
7785         wcswidth, mbswidth: Avoid integer overflow.
7786         * lib/wcswidth.c: Include <limits.h>.
7787         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7788         * lib/mbswidth.c: Include <limits.h>.
7789         (mbsnwidth): Avoid 'int' overflow.
7790         Reported by Jim Meyering.
7791
7792 2011-03-12  Bruno Haible  <bruno@clisp.org>
7793
7794         futimens, utimensat: Avoid endless recursion on Solaris 10.
7795         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7796         Solaris.
7797         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7798         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7799
7800 2011-03-11  Jim Meyering  <meyering@redhat.com>
7801
7802         maint.mk: relax a regexp to accommodate other formatting styles
7803         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7804         between "ngettext" and the following "(".
7805
7806 2011-03-11  Pádraig Brady <P@draigBrady.com>
7807
7808         maint.mk: suppress a false positive warning
7809         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7810         diagnostics are marked with ngettext.
7811
7812 2011-03-10  Eric Blake  <eblake@redhat.com>
7813
7814         wchar: add explicit dependencies, for Tru64
7815         * modules/mbmemcasecoll (Depends-on): Add wchar.
7816         * modules/mbtowc (Depends-on): Likewise.
7817         * modules/vasnprintf (Depends-on): Likewise.
7818         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7819         * modules/wctomb (Depends-on): Likewise.
7820         Reported by Peter O'Gorman.
7821
7822 2011-03-08  Bruno Haible  <bruno@clisp.org>
7823
7824         passfd module, part 1, tweaks.
7825         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7826         Improve indentation. Improve AC_MSG_CHECKING messages.
7827         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7828         gl_SOCKET_FAMILIES.
7829
7830 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7831
7832         passfd module, part 1.
7833         * m4/afunix.m4: New file.
7834         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7835         sockets.
7836
7837 2011-03-08  Bruno Haible  <bruno@clisp.org>
7838
7839         regex-quote: New API.
7840         * lib/regex-quote.h: Include <stdbool.h>.
7841         (struct regex_quote_spec): New type.
7842         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7843         New declarations.
7844         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7845         'const struct regex_quote_spec *' argument.
7846         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7847         (pcre_special): New constant.
7848         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7849         New functions.
7850         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7851         'const struct regex_quote_spec *' argument.
7852         * modules/regex-quote (Depends-on): Add stdbool.
7853         * tests/test-regex-quote.c (check): Update for new API. Add test for
7854         anchored results.
7855         * NEWS: Mention the API change.
7856         Reported by Reuben Thomas and Eric Blake.
7857
7858 2011-03-06  Bruno Haible  <bruno@clisp.org>
7859
7860         regex-quote: Fix creation of POSIX extended regular expressions.
7861         * lib/regex-quote.c (ere_special): Add grouping and alternation
7862         operators.
7863
7864 2011-03-05  Bruno Haible  <bruno@clisp.org>
7865
7866         doc: Improve doc regarding autopoint vs. gnulib.
7867         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7868         disable autopoint while running autoreconf.
7869         Suggested by Ralf Wildenhues.
7870
7871 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7872
7873         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
7874         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
7875
7876 2011-03-03  Bruce Korb  <bkorb@gnu.org>
7877
7878         parse-duration: remove xalloc.h dependency
7879         * lib/parse-duration.c (parse_period): handle NULL return from
7880         strdup instead of calling xstrdup().
7881         * modules/parse-duration: remove "xalloc" dependency
7882
7883 2011-03-03  Matthew Booth  <mbooth@redhat.com>
7884
7885         bootstrap: honor m4_base when running aclocal
7886         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
7887
7888 2011-03-02  Jim Meyering  <meyering@redhat.com>
7889
7890         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
7891         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
7892         on request from Matt Booth.
7893
7894 2011-03-01  Eric Blake  <eblake@redhat.com>
7895
7896         test-link: work on Hurd
7897         * tests/test-link.h (test_link): Hurd rejects linking directories
7898         with EISDIR instead of the POSIX-mandated EPERM.
7899
7900 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
7901
7902         stdio: simplify by moving files to printf-posix, sigpipe
7903         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
7904         since this symbol is needed only if printf is replaced.
7905         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
7906         Require gl_ASM_SYMBOL_PREFIX.
7907         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
7908         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
7909         (Depends-on): Add 'raise'.
7910         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
7911         * modules/stdio (Files): Remove lib/stdio-write.c,
7912         m4/asm-underscore.m4.
7913         (Depends-on): Remove 'raise'.
7914
7915         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
7916         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
7917         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
7918         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
7919
7920 2011-02-28  Bruno Haible  <bruno@clisp.org>
7921
7922         localcharset: Assume ANSI C behaviour of free().
7923         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
7924         calling free().
7925         Suggested by Simon Josefsson <simon@josefsson.org>.
7926
7927 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
7928             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
7929             Bruno Haible  <bruno@clisp.org>  (tiny change)
7930
7931         On Cygwin, use /proc file system instead of win32 API.
7932         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
7933         Win32 file names.
7934         (DllMain): Simplify by removing Cygwin specific code.
7935         (find_shared_library_fullname): Use Linux specific implementation also
7936         for Cygwin.
7937         (get_shared_library_fullname): Update accordingly.
7938         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
7939         Win32 file names.
7940         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
7941         Cygwin specific code.
7942
7943 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
7944             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
7945
7946         Fix OpenMP flag detection for various Fortran compilers.
7947         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
7948         OpenMP-conditional compilation construct, to force compile
7949         failure with missing OpenMP flag.
7950         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
7951
7952 2011-02-25  Eric Blake  <eblake@redhat.com>
7953
7954         strstr: expand test coverage
7955         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
7956         compilation.
7957         * tests/test-memmem.c (main): Duplicate tests.
7958         * tests/test-strcasestr.c (main): Likewise.
7959         * tests/test-c-strcasestr.c (main): Likewise.
7960
7961 2011-02-25  Jim Meyering  <meyering@redhat.com>
7962
7963         maint.mk: detect missing-NL-at-EOF, too
7964         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
7965         it also detects when a file lacks a newline at EOF.
7966         (require_exactly_one_NL_at_EOF_): Renamed from
7967         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
7968         since people may well have .x-sc_... file names tied to the
7969         existing name.  Suggested by Eric Blake.
7970
7971 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7972
7973         dirname: move m4/dos.m4 functionality into lib/dosname.h
7974
7975         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
7976         extracts symbols from it, puts them into config.h; but it's much
7977         easier to use the symbols directly.  filename.h already does this,
7978         but it disagrees with dos.m4 in some respects.  This patch
7979         introduces a different include file dosname.h that packages up
7980         dos.m4, and then later we can work on merging filename.h and
7981         dosname.h.  Applications that need only the easy-to-configure
7982         symbols should consider including dosname.h rather than dirname.h.
7983         * NEWS: Mention incompatible changes.
7984         * m4/dos.m4: Remove.
7985         * lib/dosname.h, modules/dosname: New files.
7986         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
7987         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
7988         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
7989         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
7990         Include dosname.h, not dirname.h.
7991         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
7992         Include dosname.h, for definitions of symbols like ISSLASH
7993         that used to be in config.h.
7994         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
7995         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7996         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7997         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7998         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
7999         * modules/rmdir (Files): Likewise.
8000         * modules/stat (Files): Likewise.
8001         * modules/unlink (Files): Likewise.
8002         * modules/dirname-lgpl (Depends-on): Add dosname.
8003         * modules/lstat (Depends-on): Likewise.
8004         * modules/openat (Depends-on): Likewise.
8005         * modules/rmdir (Depends-on): Likewise.
8006         * modules/savewd (Depends-on): Likewise.
8007         * modules/stat (Depends-on): Likewise.
8008         * modules/unlink (Depends-on): Likewise.
8009         * modules/openat (Depends-on): Remove dirname-lgpl.
8010         * modules/savewd (Depends-on): Likewise.
8011         * tests/test-dirname.c: Do not use removed symbols like
8012         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
8013         the remaining symbols, e.g., ISSLASH ('\\').
8014
8015 2011-02-25  Eric Blake  <eblake@redhat.com>
8016
8017         strstr: revert patches that introduced bug and pessimization
8018         * lib/str-two-way.h: Add another reference.
8019         (two_way_short_needle, two_way_long_needle): Revert changes from
8020         2011-02-24; they pessimize search speed.
8021         (critical_factorization): Partially revert changes from
8022         2010-06-22; they violate the requirement that the left half of the
8023         needle be smaller than the period of the needle.
8024
8025 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8026
8027         filenamecat: remove unnecessary dependency on dirname-lgpl
8028         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
8029         is no direct dependency, just an indirect one via filenamecat-lgpl.
8030
8031         remove: remove unnecessary use of m4/dos.m4
8032         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
8033         * modules/remove (FILES): Remove m4/dos.m4.
8034
8035         * lib/openat-proc.c: Don't include dirname.h; not needed.
8036
8037         backupfile: remove unnecessary use of m4/dos.m4
8038         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
8039         of its symbols are used by the backupfile code.  backupfile.c does
8040         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
8041         for the rare case of programs that want all their backup file
8042         names to live within 8+3 limits, and dos.m4 doesn't address that.
8043         * modules/backupfile (Files): Remove m4/dos.m4.
8044
8045 2011-02-24  Jim Meyering  <meyering@redhat.com>
8046
8047         strstr: fix a bug whereby strstr would mistakenly return NULL
8048         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
8049         in period calculation.
8050         (two_way_long_needle): Likewise.
8051         The original problem was reported by Mike Stump in
8052         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
8053         Ralf Wildenhues provided the short needle and haystack.
8054         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
8055         Add a more involved test to trigger the bug in two_way_long_needle.
8056
8057 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8058
8059         gnulib-tool: remove use of bold display in help screen
8060         * gnulib-tool (func_usage): Do not use bold display anymore in the
8061         help screen.  That was just meant to be a temporary emphasis for a
8062         backward-incompatible change.
8063
8064 2011-02-23  Bruno Haible  <bruno@clisp.org>
8065
8066         Fix misindentation of preprocessor directives.
8067         * lib/argp-namefrob.h: Reindent preprocessor directives.
8068         * lib/getopt_int.h (struct _getopt_data): Likewise.
8069         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
8070         * lib/vasnprintf.c (decode_long_double): Likewise.
8071         * tests/test-argmatch.c: Insert blank lines, for clarity.
8072         * tests/test-exclude.c: Likewise.
8073
8074 2011-02-22  Bruno Haible  <bruno@clisp.org>
8075
8076         ioctl: Fix for MacOS X in 64-bit mode.
8077         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
8078         value.
8079         Suggested by Eric Blake.
8080         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
8081
8082 2011-02-22  Jim Meyering  <meyering@redhat.com>
8083
8084         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
8085         * Makefile (sc_cpp_indent_check): Don't limit the check to files
8086         in lib/.
8087
8088 2011-02-22  Eric Blake  <eblake@redhat.com>
8089
8090         maint: avoid any CDPATH issue
8091         * Makefile (sc_cpp_indent_check): Anchor cd argument.
8092
8093         maint: adjust cpp indentation for my modules, as well
8094         * Makefile (sc_cpp_indent_check): Add my name.
8095         * lib/fbufmode.c: Filter through cppi.
8096         * lib/fpurge.c: Likewise.
8097         * lib/freadable.c: Likewise.
8098         * lib/freading.c: Likewise.
8099         * lib/fwritable.c: Likewise.
8100         * lib/fwriting.c: Likewise.
8101         * lib/sigaction.c: Likewise.
8102
8103 2011-02-22  Jim Meyering  <meyering@redhat.com>
8104
8105         maint: adjust cpp indentation to reflect nesting depth
8106         I.e., in a block of code that begins with an unnested "#if",
8107         put one space between the "#" in column 1 and following token.
8108         For example,
8109         -#include <sys/vfs.h>
8110         +# include <sys/vfs.h>
8111         Do this only in .c files that are part of a module I maintain.
8112         * lib/linkat.c: Filter through cppi.
8113         * lib/nanosleep.c: Likewise.
8114         * lib/openat.c: Likewise.
8115         * lib/openat-die.c: Likewise.
8116         * lib/dup3.c: Likewise.
8117         * lib/fchownat.c: Likewise.
8118         * lib/flock.c: Likewise.
8119         * lib/fsync.c: Likewise.
8120         * lib/fts.c: Likewise.
8121         * lib/getpass.c: Likewise.
8122         * lib/gettimeofday.c: Likewise.
8123         * lib/userspec.c: Likewise.
8124         * Makefile (sc_cpp_indent_check): New rule, to check this.
8125
8126 2011-02-22  Bruno Haible  <bruno@clisp.org>
8127
8128         New module 'wctomb'.
8129         * lib/stdlib.in.h (wctomb): New declaration.
8130         * lib/wctomb.c: New file.
8131         * lib/wctomb-impl.h: New file.
8132         * m4/wctomb.m4: New file.
8133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
8134         REPLACE_WCTOMB.
8135         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
8136         REPLACE_WCTOMB.
8137         * modules/wctomb: New file.
8138         * tests/test-stdlib-c++.cc: Test signature of wctomb.
8139         * doc/posix-functions/wctomb.texi: Mention the new module.
8140         * modules/wctob (Depends-on): Add wctomb.
8141
8142 2011-02-22  Bruno Haible  <bruno@clisp.org>
8143
8144         New module 'mbtowc'.
8145         * lib/stdlib.in.h (mbtowc): New declaration.
8146         * lib/mbtowc.c: New file.
8147         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
8148         * m4/mbtowc.m4: New file.
8149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
8150         REPLACE_MBTOWC.
8151         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
8152         REPLACE_MBTOWC.
8153         * modules/mbtowc: New file.
8154         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
8155         * doc/posix-functions/mbtowc.texi: Mention the new module.
8156         * modules/btowc (Depends-on): Add mbtowc.
8157
8158 2011-02-22  Bruno Haible  <bruno@clisp.org>
8159
8160         wcrtomb: Add more tests for native Windows platforms.
8161         * tests/test-wcrtomb-w32-1.sh: New file.
8162         * tests/test-wcrtomb-w32-2.sh: New file.
8163         * tests/test-wcrtomb-w32-3.sh: New file.
8164         * tests/test-wcrtomb-w32-4.sh: New file.
8165         * tests/test-wcrtomb-w32-5.sh: New file.
8166         * tests/test-wcrtomb-w32.c: New file.
8167         * modules/wcrtomb-tests (Files): Add them.
8168         (Makefile.am): Arrange to run these tests.
8169         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
8170         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
8171
8172 2011-02-20  Bruno Haible  <bruno@clisp.org>
8173
8174         wcrtomb: Enhance test.
8175         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
8176
8177 2011-02-20  Bruno Haible  <bruno@clisp.org>
8178
8179         mbrtowc: Tiny optimization.
8180         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
8181
8182 2011-02-20  Jim Meyering  <meyering@redhat.com>
8183
8184         test-exclude.c: remove unmatched #endif
8185         * tests/test-exclude.c: Remove stray #endif, left over from
8186         the change of a week ago.
8187
8188 2011-02-19  Jim Meyering  <meyering@redhat.com>
8189
8190         git-version-gen: skip "-dirty" check when appropriate
8191         * build-aux/git-version-gen: Don't run any git commands when the
8192         version string comes from .tarball-version.  Prior to this, we
8193         would run git update-index --refresh even from a just-unpacked
8194         tarball directory, and that could affect a .git/ directory in a
8195         parent of the build directory.  Reported by Mike Frysinger.
8196
8197 2011-02-19  Bruno Haible  <bruno@clisp.org>
8198
8199         unictype/property-byname: Reduce the size of the 'data' segment.
8200         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
8201
8202 2011-02-19  Bruno Haible  <bruno@clisp.org>
8203
8204         unictype/scripts: Reduce the size of the 'data' segment.
8205         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
8206         '%pic'.
8207         * lib/unictype/scripts_byname.gperf: Regenerated.
8208
8209 2011-02-19  Bruno Haible  <bruno@clisp.org>
8210
8211         stdint: Update documentation.
8212         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
8213
8214 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8215
8216         stdint: omit redundant check for wchar.h
8217         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
8218         always tests whether wchar.h exists, so remove the now-redundant test.
8219
8220 2011-02-18  Bruno Haible  <bruno@clisp.org>
8221
8222         stdint: Cut dependency to module 'wchar'.
8223         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
8224         include the necessary prerequisites.
8225         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
8226         * modules/stdint (Depends-on): Remove wchar.
8227         (Makefile.am): Substitute HAVE_WCHAR_H.
8228         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
8229
8230 2011-02-18  Eric Blake  <eblake@redhat.com>
8231
8232         longlong: skip, rather than fail, on cross-compilation
8233         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
8234         when cross-compiling; regression from 2011-02-16.
8235
8236 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8237
8238         * NEWS: Mention 2011-02-08 change to stdlib.
8239
8240 2011-02-17  Bruno Haible  <bruno@clisp.org>
8241
8242         getloadavg: Add comments about platforms.
8243         * m4/getloadavg.m4: Add comment.
8244         * lib/getloadavg.c: Likewise.
8245
8246 2011-02-17  Bruno Haible  <bruno@clisp.org>
8247
8248         getloadavg: Fix link error on Solaris 2.6.
8249         * modules/getloadavg (Link): New section.
8250         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
8251         linking test-getloadavg.
8252         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
8253         getloadavg.
8254
8255 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8256
8257         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
8258         It was 'int', but this doesn't match the IRIX 6.5 manual.
8259         Suggested by Bruno Haible in
8260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
8261
8262 2011-02-17  Bruno Haible  <bruno@clisp.org>
8263
8264         havelib: Fix comments.
8265         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
8266         change.
8267
8268 2011-02-17  Bruno Haible  <bruno@clisp.org>
8269
8270         havelib: Update config.rpath.
8271         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
8272
8273 2011-02-17  Bruno Haible  <bruno@clisp.org>
8274
8275         getloadavg test: Add some plausibility checks.
8276         * tests/test-getloadavg.c (check_avg): Print a warning when the value
8277         is improbable.
8278
8279 2011-02-16  Eric Blake  <eblake@redhat.com>
8280
8281         maintainer-makefile: make syntax-check a no-op from tarballs
8282         * top/maint.mk (no-vc-detected): New rule.
8283         (local-checks-available): Use it to avoid hanging if someone tries
8284         'make syntax-check' from a tarball.  Also append to any non-syntax
8285         checks already defined in cfg.mk.
8286
8287 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8288
8289         longlong: tune, particularly for common case of c99
8290
8291         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
8292         or running anything if c99, or if unsigned long long int does not
8293         work.  In either case, we know the answer without further tests.
8294         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
8295         it at most once, and use its results for both long long int and
8296         unsigned long long int.  This is more likely to be efficient in
8297         the common case where the program wants to check for both long
8298         long int and unsigned long long int.
8299         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8300         since the answer is already known.
8301
8302 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8303
8304         getloadavg: set errno
8305         * lib/getloadavg.c: Set errno when returning -1.  If no other
8306         error number looks appropriate, set it to ENOSYS if the getloadavg
8307         looks like it can't possibly ever work, ENOTSUP otherwise.
8308         Suggested by Bruno Haible in
8309         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8310
8311         getloadavg: trim unused parts and speed up 'configure'
8312         * NEWS: Document this.
8313         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8314         always compiled if getloadavg is absent.
8315         Move test code to ...
8316         * tests/test-getloadavg.c: New file, containing previous
8317         contents of test from lib/getloadavg.c.  It also contains
8318         suggestions by Bruno Haible in
8319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8320         * modules/getloadavg-tests: New file.
8321         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8322         Do tests in the same order as they're needed for getloadavg.c.
8323         Omit setgid-related tests that generate symbols KMEM_GROUP,
8324         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8325         Do only the tests that are needed to see whether the system has
8326         getloadavg, moving the other tests into ...
8327         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8328         NLIST_NAME_UNION; nobody should be using it.  Do not define
8329         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8330         relevant, as the user of this module shouldn't care how getloadavg
8331         is implemented.
8332
8333         getloadavg: omit unused var
8334         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8335
8336 2011-02-15  Jim Meyering  <meyering@redhat.com>
8337
8338         doc: update users.txt
8339         * users.txt: Update iwhd's URL.
8340
8341 2011-02-13  Bruno Haible  <bruno@clisp.org>
8342
8343         Consistent macro naming for macros that use GCC __attribute__.
8344         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8345         _ATTRIBUTE_NONNULL_.
8346         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8347         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8348         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8349         ATTRIBUTE_DEPRECATED.
8350         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8351         ATTRIBUTE_NORETURN.
8352         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8353         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8354         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8355         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8356         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8357         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8358         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8359         ATTRIBUTE_SENTINEL.
8360         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8361         ATTRIBUTE_RETURN_CHECK.
8362         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8363         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8364         ATTRIBUTE_NORETURN.
8365         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8366         Reported by Paul Eggert.
8367
8368 2011-02-13  Bruno Haible  <bruno@clisp.org>
8369
8370         Don't interfere with a program's definition of __attribute__.
8371         * lib/argp.h (__attribute__): Remove definition.
8372         (_GL_ATTRIBUTE_FORMAT): New macro.
8373         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8374         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8375         (_GL_ATTRIBUTE_FORMAT): New macro.
8376         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8377         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8378         GCC 3 or newer.
8379         * lib/error.h (__attribute__): Remove definition.
8380         (_GL_ATTRIBUTE_FORMAT): New macro.
8381         (error, error_at_line): Use it.
8382         * lib/hash.h (__attribute__): Remove definition.
8383         (ATTRIBUTE_WUR): Update definition. Define always.
8384         * lib/openat.h (__attribute__): Remove definition.
8385         (ATTRIBUTE_NORETURN): Update definition. Define always.
8386         * lib/sigpipe-die.h (__attribute__): Remove definition.
8387         (ATTRIBUTE_NORETURN): Update definition. Define always.
8388         * lib/vasnprintf.h (__attribute__): Remove definition.
8389         (_GL_ATTRIBUTE_FORMAT): New macro.
8390         (asnprintf, vasnprintf): Use it.
8391         * lib/xalloc.h (__attribute__): Remove definition.
8392         (ATTRIBUTE_NORETURN): Update definition. Define always.
8393         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8394         * lib/xmemdup0.h (__attribute__): Remove definition.
8395         (ATTRIBUTE_NORETURN): Update definition. Define always.
8396         * lib/xprintf.h (__attribute__): Remove definition.
8397         (_GL_ATTRIBUTE_FORMAT): New macro.
8398         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8399         * lib/xstrtol.h (__attribute__): Remove definition.
8400         (ATTRIBUTE_NORETURN): Update definition. Define always.
8401         * lib/xvasprintf.h (__attribute__): Remove definition.
8402         (_GL_ATTRIBUTE_FORMAT): New macro.
8403         (xasprintf, xvasprintf): Use it.
8404         * tests/test-argmatch.c (__attribute__): Remove definition.
8405         (ATTRIBUTE_NORETURN): Update definition. Define always.
8406         * tests/test-exclude.c (__attribute__): Remove definition.
8407         (ATTRIBUTE_NORETURN): Update definition. Define always.
8408         Reported by Paul Eggert.
8409
8410 2011-02-13  Bruno Haible  <bruno@clisp.org>
8411
8412         mbrtowc: Add more tests for native Windows platforms.
8413         * tests/test-mbrtowc-w32-1.sh: New file.
8414         * tests/test-mbrtowc-w32-2.sh: New file.
8415         * tests/test-mbrtowc-w32-3.sh: New file.
8416         * tests/test-mbrtowc-w32-4.sh: New file.
8417         * tests/test-mbrtowc-w32-5.sh: New file.
8418         * tests/test-mbrtowc-w32.c: New file.
8419         * modules/mbrtowc-tests (Files): Add them.
8420         (Makefile.am): Arrange to run these tests.
8421         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8422         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8423
8424 2011-02-13  Bruno Haible  <bruno@clisp.org>
8425
8426         mbrtowc: Work around native Windows bug.
8427         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8428         guess when no suitable locale for testing was found.
8429         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8430
8431 2011-02-13  Bruno Haible  <bruno@clisp.org>
8432
8433         mbsinit: Work around mingw bug.
8434         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8435         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8436         Windows.
8437         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8438
8439 2011-02-13  Bruno Haible  <bruno@clisp.org>
8440
8441         mbsinit: Don't crash for a NULL argument.
8442         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8443         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8444
8445 2011-02-13  Bruno Haible  <bruno@clisp.org>
8446
8447         Don't interfere with a program's definition of __attribute__.
8448         * lib/stdio.in.h (__attribute__): Remove definition.
8449         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8450         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8451         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8452         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8453         * lib/string.in.h (__attribute__): Remove definition.
8454         Reported by Paul Eggert.
8455
8456 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8457
8458         stdlib: don't get in the way of non-GCC __attribute__
8459         See thread starting at
8460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8461         Revert previous stdlib change, installing the following instead:
8462         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8463         to get in the way of a non-GCC compiler that supports __attribute__.
8464         (_GL_ATTRIBUTE_RETURN): New macro.
8465         (_Exit): Use it instead of __attribute__.
8466
8467 2011-02-12  Bruno Haible  <bruno@clisp.org>
8468
8469         quotearg test: Avoid test failure on mingw.
8470         * tests/test-quotearg.sh: Convert the locale identifier from native
8471         Windows syntax to Unix syntax.
8472
8473 2011-02-12  Bruno Haible  <bruno@clisp.org>
8474
8475         setlocale: Prefer gnulib's override over libintl's override.
8476         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8477         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8478         GNULIB_defined_setlocale is set.
8479
8480 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8481
8482         stdlib: support non-GCC __attribute__
8483
8484         Fix a serious and tricky problem encountered when attempting to
8485         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8486         5.5, but it crashed due to memory corruption on Solaris 10 with
8487         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8488         bits that are otherwise zero.  This tagging is optional inside
8489         Emacs but is preferred and is used when __attribute__ ((__aligned
8490         (8))) works, as it does with both recent-enough GCC and with Sun C
8491         5.11.  However, Sun C 5.11 is not GCC and does not #define
8492         __GNUC__ and __GNUC_MINOR__.
8493
8494         When I added the getloadavg module to Emacs, it brought in
8495         stdlib.in.h, which contained this fragment:
8496
8497            #ifndef __attribute__
8498            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8499            #  define __attribute__(Spec)   /* empty */
8500            # endif
8501            #endif
8502
8503         When files that include <stdlib.h> were compiled with Sun C 5.11,
8504         the above code disabled __attribute__ ((__aligned (8))), which
8505         caused variables to not be properly aligned, which eventually led
8506         to the pointer corruption mentioned above.  (This was a bit hard
8507         to diagnose, unfortunately.)
8508
8509         Several "#define __attribute__(X) /* empty */" code snippets need
8510         to be eradicated from Gnulib to work with non-GCC compilers that
8511         support __attribute__.  The Autoconf way to do this is to test for
8512         each kind of attribute that we want support for, and selectively
8513         enable that in source code.
8514
8515         Fix this problem just for stdlib.h, by adding a test for the
8516         __noreturn__ attribute, and change stdlib.in.h to use that test
8517         when needed.  This technique can be easily generalized to the
8518         other *.in.h files and attributes, and a similar technique can be
8519         used for *.h and *.c files.  This patch is enough to solve the
8520         problem for Emacs + getloadavg, and I thought I'd publish it for
8521         feedback before undertaking further, similar fixes in other
8522         modules.
8523
8524         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8525         because it's not needed for stdlib.h.  It merely substitutes the
8526         value directly into stdlib.h.  We may well need to #define it, or
8527         similar symbols, for other modules, but it's nice to also have an
8528         option to not #define it for applications like Emacs that do not
8529         need it.
8530
8531         * lib/stdlib.in.h (__attribute__): Do not #define.
8532         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8533         be defined only if the _Exit module is also used.
8534         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8536         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8537         platforms.
8538         * modules/_Exit (Files): Add m4/attribute.m4.
8539         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8540         * m4/attribute.m4: New file.
8541
8542 2011-02-12  Bruno Haible  <bruno@clisp.org>
8543
8544         wcsrtombs: Work around bug on native Windows.
8545         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8546         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8547         instead of len.
8548         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8549
8550 2011-02-12  Bruno Haible  <bruno@clisp.org>
8551
8552         mbsrtowcs: Work around bug on native Windows.
8553         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8554         against mingw bug.
8555         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8556
8557 2011-02-12  Bruno Haible  <bruno@clisp.org>
8558
8559         Avoid setlocale bugs in tests.
8560         * modules/btowc (Dependencies): Add setlocale.
8561         * modules/c-strcase (Dependencies): Likewise.
8562         * modules/mbmemcasecmp (Dependencies): Likewise.
8563         * modules/mbmemcasecoll (Dependencies): Likewise.
8564         * modules/mbrtowc (Dependencies): Likewise.
8565         * modules/mbscasecmp (Dependencies): Likewise.
8566         * modules/mbscasestr (Dependencies): Likewise.
8567         * modules/mbschr (Dependencies): Likewise.
8568         * modules/mbscspn (Dependencies): Likewise.
8569         * modules/mbsinit (Dependencies): Likewise.
8570         * modules/mbsncasecmp (Dependencies): Likewise.
8571         * modules/mbsnrtowcs (Dependencies): Likewise.
8572         * modules/mbspbrk (Dependencies): Likewise.
8573         * modules/mbspcasecmp (Dependencies): Likewise.
8574         * modules/mbsrchr (Dependencies): Likewise.
8575         * modules/mbsrtowcs (Dependencies): Likewise.
8576         * modules/mbsspn (Dependencies): Likewise.
8577         * modules/mbsstr (Dependencies): Likewise.
8578         * modules/nl_langinfo (Dependencies): Likewise.
8579         * modules/quotearg (Dependencies): Likewise.
8580         * modules/unicase/locale-language (Dependencies): Likewise.
8581         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8582         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8583         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8584         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8585         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8586         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8587         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8588         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8589         * modules/vasnprintf-posix (Dependencies): Likewise.
8590         * modules/wcrtomb (Dependencies): Likewise.
8591         * modules/wcsnrtombs (Dependencies): Likewise.
8592         * modules/wcsrtombs (Dependencies): Likewise.
8593
8594 2011-02-12  Bruno Haible  <bruno@clisp.org>
8595
8596         setlocale: Workaround native Windows bug.
8597         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8598         succeeds but sets LC_CTYPE to "C", report a failure.
8599         * tests/test-setlocale2.sh: New file.
8600         * tests/test-setlocale2.c: New file.
8601         * modules/setlocale-tests (Files): Add the new files.
8602         (Makefile.am): Enable test-setlocale2.sh test.
8603         * doc/posix-functions/setlocale.texi: Mention workaround.
8604
8605 2011-02-11  Bruno Haible  <bruno@clisp.org>
8606
8607         Tests for module 'setlocale'.
8608         * modules/setlocale-tests: New file.
8609         * tests/test-setlocale1.sh: New file.
8610         * tests/test-setlocale1.c: New file.
8611
8612         New module 'setlocale'.
8613         * lib/locale.in.h (setlocale): New declaration.
8614         * lib/setlocale.c: New file, based on
8615         gettext/gettext-runtime/intl/setlocale.c.
8616         * m4/setlocale.m4: New file.
8617         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8618         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8619         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8620         REPLACE_SETLOCALE.
8621         * modules/setlocale: New file.
8622         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8623         * doc/posix-functions/setlocale.texi: Mention the new module.
8624
8625 2011-02-11  Bruno Haible  <bruno@clisp.org>
8626
8627         Prepare for locale dependent tests on mingw.
8628         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8629         because it has the wrong locale encoding.
8630         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8631         French_France.1252 instead of "fr".
8632         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8633         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8634         because it has the wrong locale encoding.
8635         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8636         native Windows, try Turkish_Turkey.65001.
8637         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8638         Chinese_China.54936.
8639
8640         Prepare for locale dependent tests on mingw.
8641         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8642         differently.
8643         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8644         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8645         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8646         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8647
8648 2011-02-11  Eric Blake  <eblake@redhat.com>
8649
8650         strptime: avoid compiler warnings
8651         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8652         compiler warnings about dead code.
8653         Reported by Daniel P. Berrange.
8654
8655 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8656
8657         doc: update users.txt
8658         * users.txt: Add rcs.
8659
8660 2011-02-10  John W. Eaton  <jwe@gnu.org>
8661
8662         doc: update users.txt
8663         * users.txt: Add octave.
8664
8665 2011-02-10  Jim Meyering  <meyering@redhat.com>
8666
8667         doc: update users.txt
8668         * users.txt: Add iwhd.
8669
8670 2011-02-09  Bruno Haible  <bruno@clisp.org>
8671
8672         gnulib-tool: Make copyright notice adjustment more robust.
8673         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8674         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8675         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8676         License".
8677         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8678
8679 2011-02-06  Bruno Haible  <bruno@clisp.org>
8680
8681         New module 'towctrans'.
8682         * modules/towctrans: New file.
8683         * lib/wctype.in.h (towctrans): New declaration.
8684         * lib/towctrans.c: New file.
8685         * lib/towctrans-impl.h: New file.
8686         * m4/towctrans.m4: New file.
8687         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8688         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8689         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8690         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8691         * doc/posix-functions/towctrans.texi: Mention the new module.
8692
8693 2011-02-06  Bruno Haible  <bruno@clisp.org>
8694
8695         New module 'wctrans'.
8696         * modules/wctrans: New file.
8697         * lib/wctype.in.h (wctrans): New declaration.
8698         * lib/wctrans.c: New file.
8699         * lib/wctrans-impl.h: New file.
8700         * m4/wctrans.m4: New file.
8701         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8702         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8703         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8704         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8705         * doc/posix-functions/wctrans.texi: Mention the new module.
8706
8707 2011-02-06  Bruno Haible  <bruno@clisp.org>
8708
8709         New module 'iswctype'.
8710         * modules/iswctype: New file.
8711         * lib/wctype.in.h (iswctype): New declaration.
8712         * lib/iswctype.c: New file.
8713         * lib/iswctype-impl.h: New file.
8714         * m4/iswctype.m4: New file.
8715         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8716         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8717         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8718         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8719         * doc/posix-functions/iswctype.texi: Mention the new module and the
8720         HP-UX 11.00 problem.
8721
8722 2011-02-06  Bruno Haible  <bruno@clisp.org>
8723
8724         New module 'wctype'.
8725         * modules/wctype: Change to represent the wctype() substitute.
8726         * lib/wctype.in.h (wctype): New declaration.
8727         * lib/wctype.c: New file.
8728         * lib/wctype-impl.h: New file.
8729         * m4/wctype.m4: New file.
8730         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8731         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8732         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8733         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8734         * doc/posix-functions/wctype.texi: Mention the new module and the
8735         HP-UX 11.00 problem.
8736
8737 2011-02-06  Bruno Haible  <bruno@clisp.org>
8738
8739         wctype-h: Ensure wctype_t and wctrans_t are defined.
8740         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8741         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8742         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8743         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8744         HAVE_WCTRANS_T.
8745         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8746
8747 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8748
8749         flock: fix license typo
8750
8751         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8752         omitted.
8753
8754 2011-02-08  Bruno Haible  <bruno@clisp.org>
8755
8756         Split large sed scripts, for HP-UX sed.
8757         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8758         to avoid HP-UX limit of 99 commands, in the near future.
8759         * modules/stdlib (Makefile.am): Likewise.
8760         * modules/unistd (Makefile.am): Likewise.
8761         * modules/wchar (Makefile.am): Likewise.
8762         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8763         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8764         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8765
8766 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8767             Bruno Haible  <bruno@clisp.org>
8768
8769         stdlib: improve random_r modularization
8770         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8771         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8772         you also need the random_r module to get this material right.
8773         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8774         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8775         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8776
8777 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8778
8779         stdlib: don't depend on stdint
8780         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8781         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8782         be independent of whether stdint.h is needed.
8783         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8784         here, instead of ...
8785         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8786         struct random_data should be using the random_r module, not just
8787         the stdlib module (which wouldn't make sense: what package needs
8788         just struct random_data without also needing random_r?).
8789         * modules/stdlib (Depends-on): Remove stdint.
8790
8791         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8792         See the thread rooted at
8793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8794         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8795         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8796         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8797         __VMS)); previously it was always included (via fcntl--.h).
8798         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8799         hand; this is good enough for load averages.  Also, do not use
8800         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8801         flags directly if available and don't bother otherwise.  (Packages
8802         that need the extra reliability should use the modules that define
8803         these flags on older platforms that lack them.)
8804         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8805         fcntl-safer.
8806
8807 2011-02-08  Jim Meyering  <meyering@redhat.com>
8808
8809         di-set.h, ino-map.h: add multiple-inclusion guard
8810         Technically, the guard is required only for ino-map.h, due to its
8811         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8812         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8813         * lib/ino-map.h: Likewise.
8814
8815 2011-02-06  Bruno Haible  <bruno@clisp.org>
8816
8817         iswblank: Ensure declaration on glibc systems.
8818         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8819         * modules/iswblank (Dependencies): Add 'extensions'.
8820         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8821
8822 2011-02-06  Bruno Haible  <bruno@clisp.org>
8823
8824         New module 'iswblank'.
8825         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8826         * modules/iswblank: New file.
8827         * modules/wctype-h (Files): Remove lib/iswblank.c.
8828         (Makefile.am): Substitute GNULIB_ISWBLANK.
8829         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8830         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8831         (gl_WCTYPE_H_DEFAULTS): New macro.
8832         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8833         * modules/iswblank-tests: New file.
8834         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8835         * tests/test-wctype-h.c (main): Remove iswblank tests.
8836         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8837         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8838         of 'wctype-h'.
8839         * NEWS: Mention the change.
8840         * modules/mbchar (Depends-on): Add iswblank.
8841
8842 2011-02-08  Bruno Haible  <bruno@clisp.org>
8843
8844         di-set tests: Refactor.
8845         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8846         unnecessary includes.
8847         (ASSERT): Remove macro.
8848         (main): Make C90 compliant by avoiding variable declaration after
8849         statement.
8850         * modules/di-set-tests (Files): Add tests/macros.h.
8851
8852 2011-02-08  Bruno Haible  <bruno@clisp.org>
8853
8854         ino-map tests: Refactor.
8855         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8856         unnecessary includes.
8857         (ASSERT): Remove macro.
8858         (main): Make C90 compliant by avoiding variable declaration after
8859         statement.
8860         * modules/ino-map-tests (Files): Add tests/macros.h.
8861
8862 2011-02-08  Jim Meyering  <meyering@redhat.com>
8863
8864         di-set: add "const" to a cast
8865         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8866         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8867
8868 2011-02-06  Bruno Haible  <bruno@clisp.org>
8869
8870         Rename module 'wctype' to 'wctype-h'.
8871         * modules/wctype-h: Renamed from modules/wctype.
8872         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
8873         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
8874         (Files, Depends-on, Makefile.am): Update.
8875         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
8876         (Files, Makefile.am): Update.
8877         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
8878         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
8879         * doc/posix-headers/wctype.texi: Update.
8880         * doc/posix-functions/iswalnum.texi: Update.
8881         * doc/posix-functions/iswalpha.texi: Update.
8882         * doc/posix-functions/iswblank.texi: Update.
8883         * doc/posix-functions/iswcntrl.texi: Update.
8884         * doc/posix-functions/iswdigit.texi: Update.
8885         * doc/posix-functions/iswgraph.texi: Update.
8886         * doc/posix-functions/iswlower.texi: Update.
8887         * doc/posix-functions/iswprint.texi: Update.
8888         * doc/posix-functions/iswpunct.texi: Update.
8889         * doc/posix-functions/iswspace.texi: Update.
8890         * doc/posix-functions/iswupper.texi: Update.
8891         * doc/posix-functions/iswxdigit.texi: Update.
8892         * doc/posix-functions/towlower.texi: Update.
8893         * doc/posix-functions/towupper.texi: Update.
8894         * NEWS: Mention the change.
8895         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
8896         * modules/mbchar (Dependencies): Likewise.
8897         * modules/mbswidth (Dependencies): Likewise.
8898         * modules/quotearg (Dependencies): Likewise.
8899         * modules/regex (Dependencies): Likewise.
8900         * modules/wcscasecmp (Dependencies): Likewise.
8901         * modules/wcsncasecmp (Dependencies): Likewise.
8902         * modules/wcwidth (Dependencies): Likewise.
8903
8904 2011-02-06  Bruno Haible  <bruno@clisp.org>
8905
8906         New module 'wcswidth'.
8907         * modules/wcswidth: New file.
8908         * lib/wchar.in.h (wcswidth): New declaration.
8909         * lib/wcswidth.c: New file.
8910         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
8911         * m4/wcswidth.m4: New file.
8912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
8913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
8914         REPLACE_WCSWIDTH.
8915         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
8916         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
8917         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
8918         * doc/posix-functions/wcswidth.texi: Mention the new module.
8919
8920 2011-02-06  Bruno Haible  <bruno@clisp.org>
8921
8922         New module 'wcstok'.
8923         * modules/wcstok: New file.
8924         * lib/wchar.in.h (wcstok): New declaration.
8925         * lib/wcstok.c: New file.
8926         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
8927         * m4/wcstok.m4: New file.
8928         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
8929         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
8930         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
8931         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
8932         * doc/posix-functions/wcstok.texi: Mention the new module.
8933
8934 2011-02-06  Bruno Haible  <bruno@clisp.org>
8935
8936         New module 'wcsstr'.
8937         * modules/wcsstr: New file.
8938         * lib/wchar.in.h (wcsstr): New declaration.
8939         * lib/wcsstr.c: New file.
8940         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8941         * m4/wcsstr.m4: New file.
8942         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
8943         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
8944         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
8945         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
8946         * doc/posix-functions/wcsstr.texi: Mention the new module.
8947
8948 2011-02-06  Bruno Haible  <bruno@clisp.org>
8949
8950         New module 'wcspbrk'.
8951         * modules/wcspbrk: New file.
8952         * lib/wchar.in.h (wcspbrk): New declaration.
8953         * lib/wcspbrk.c: New file.
8954         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
8955         * m4/wcspbrk.m4: New file.
8956         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
8957         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
8958         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
8959         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
8960         * doc/posix-functions/wcspbrk.texi: Mention the new module.
8961
8962 2011-02-06  Bruno Haible  <bruno@clisp.org>
8963
8964         New module 'wcsspn'.
8965         * modules/wcsspn: New file.
8966         * lib/wchar.in.h (wcsspn): New declaration.
8967         * lib/wcsspn.c: New file.
8968         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
8969         * m4/wcsspn.m4: New file.
8970         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
8971         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
8972         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
8973         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
8974         * doc/posix-functions/wcsspn.texi: Mention the new module.
8975
8976 2011-02-06  Bruno Haible  <bruno@clisp.org>
8977
8978         New module 'wcscspn'.
8979         * modules/wcscspn: New file.
8980         * lib/wchar.in.h (wcscspn): New declaration.
8981         * lib/wcscspn.c: New file.
8982         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
8983         * m4/wcscspn.m4: New file.
8984         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
8985         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
8986         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
8987         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
8988         * doc/posix-functions/wcscspn.texi: Mention the new module.
8989
8990 2011-02-06  Bruno Haible  <bruno@clisp.org>
8991
8992         New module 'wcsrchr'.
8993         * modules/wcsrchr: New file.
8994         * lib/wchar.in.h (wcsrchr): New declaration.
8995         * lib/wcsrchr.c: New file.
8996         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
8997         * m4/wcsrchr.m4: New file.
8998         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
8999         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
9000         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
9001         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
9002         * doc/posix-functions/wcsrchr.texi: Mention the new module.
9003
9004 2011-02-06  Bruno Haible  <bruno@clisp.org>
9005
9006         New module 'wcschr'.
9007         * modules/wcschr: New file.
9008         * lib/wchar.in.h (wcschr): New declaration.
9009         * lib/wcschr.c: New file.
9010         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
9011         * m4/wcschr.m4: New file.
9012         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
9013         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
9014         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
9015         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
9016         * doc/posix-functions/wcschr.texi: Mention the new module.
9017
9018 2011-02-06  Bruno Haible  <bruno@clisp.org>
9019
9020         New module 'wcsdup'.
9021         * modules/wcsdup: New file.
9022         * lib/wchar.in.h (wcsdup): New declaration.
9023         * lib/wcsdup.c: New file.
9024         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
9025         * m4/wcsdup.m4: New file.
9026         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
9027         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
9028         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
9029         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
9030         * doc/posix-functions/wcsdup.texi: Mention the new module.
9031
9032 2011-02-06  Bruno Haible  <bruno@clisp.org>
9033
9034         New module 'wcsxfrm'.
9035         * modules/wcsxfrm: New file.
9036         * lib/wchar.in.h (wcsxfrm): New declaration.
9037         * lib/wcsxfrm.c: New file.
9038         * lib/wcsxfrm-impl.h: New file.
9039         * m4/wcsxfrm.m4: New file.
9040         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
9041         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
9042         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
9043         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
9044         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
9045
9046 2011-02-06  Bruno Haible  <bruno@clisp.org>
9047
9048         New module 'wcscoll'.
9049         * modules/wcscoll: New file.
9050         * lib/wchar.in.h (wcscoll): New declaration.
9051         * lib/wcscoll.c: New file.
9052         * lib/wcscoll-impl.h: New file.
9053         * m4/wcscoll.m4: New file.
9054         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
9055         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
9056         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
9057         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
9058         * doc/posix-functions/wcscoll.texi: Mention the new module.
9059
9060 2011-02-06  Bruno Haible  <bruno@clisp.org>
9061
9062         New module 'wcsncasecmp'.
9063         * modules/wcsncasecmp: New file.
9064         * lib/wchar.in.h (wcsncasecmp): New declaration.
9065         * lib/wcsncasecmp.c: New file.
9066         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
9067         * m4/wcsncasecmp.m4: New file.
9068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
9069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
9070         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
9071         HAVE_WCSNCASECMP.
9072         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
9073         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
9074
9075 2011-02-06  Bruno Haible  <bruno@clisp.org>
9076
9077         New module 'wcscasecmp'.
9078         * modules/wcscasecmp: New file.
9079         * lib/wchar.in.h (wcscasecmp): New declaration.
9080         * lib/wcscasecmp.c: New file.
9081         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
9082         * m4/wcscasecmp.m4: New file.
9083         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
9084         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
9085         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
9086         HAVE_WCSCASECMP.
9087         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
9088         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
9089
9090 2011-02-05  Bruno Haible  <bruno@clisp.org>
9091
9092         New module 'wcsncmp'.
9093         * modules/wcsncmp: New file.
9094         * lib/wchar.in.h (wcsncmp): New declaration.
9095         * lib/wcsncmp.c: New file.
9096         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
9097         * m4/wcsncmp.m4: New file.
9098         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
9099         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
9100         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
9101         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
9102         * doc/posix-functions/wcsncmp.texi: Mention the new module.
9103
9104 2011-02-05  Bruno Haible  <bruno@clisp.org>
9105
9106         New module 'wcscmp'.
9107         * modules/wcscmp: New file.
9108         * lib/wchar.in.h (wcscmp): New declaration.
9109         * lib/wcscmp.c: New file.
9110         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
9111         * m4/wcscmp.m4: New file.
9112         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9113         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9114         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9115         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9116         * doc/posix-functions/wcscmp.texi: Mention the new module.
9117
9118 2011-02-05  Bruno Haible  <bruno@clisp.org>
9119
9120         New module 'wcsncat'.
9121         * modules/wcsncat: New file.
9122         * lib/wchar.in.h (wcsncat): New declaration.
9123         * lib/wcsncat.c: New file.
9124         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
9125         * m4/wcsncat.m4: New file.
9126         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
9127         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
9128         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
9129         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
9130         * doc/posix-functions/wcsncat.texi: Mention the new module.
9131
9132 2011-02-05  Bruno Haible  <bruno@clisp.org>
9133
9134         New module 'wcscat'.
9135         * modules/wcscat: New file.
9136         * lib/wchar.in.h (wcscat): New declaration.
9137         * lib/wcscat.c: New file.
9138         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
9139         * m4/wcscat.m4: New file.
9140         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
9141         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
9142         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
9143         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
9144         * doc/posix-functions/wcscat.texi: Mention the new module.
9145
9146 2011-02-05  Bruno Haible  <bruno@clisp.org>
9147
9148         New module 'wcpncpy'.
9149         * modules/wcpncpy: New file.
9150         * lib/wchar.in.h (wcpncpy): New declaration.
9151         * lib/wcpncpy.c: New file.
9152         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
9153         * m4/wcpncpy.m4: New file.
9154         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
9155         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
9156         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
9157         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
9158         * doc/posix-functions/wcpncpy.texi: Mention the new module.
9159
9160 2011-02-05  Bruno Haible  <bruno@clisp.org>
9161
9162         New module 'wcsncpy'.
9163         * modules/wcsncpy: New file.
9164         * lib/wchar.in.h (wcsncpy): New declaration.
9165         * lib/wcsncpy.c: New file.
9166         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
9167         * m4/wcsncpy.m4: New file.
9168         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
9169         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
9170         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
9171         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
9172         * doc/posix-functions/wcsncpy.texi: Mention the new module.
9173
9174 2011-02-05  Bruno Haible  <bruno@clisp.org>
9175
9176         New module 'wcpcpy'.
9177         * modules/wcpcpy: New file.
9178         * lib/wchar.in.h (wcpcpy): New declaration.
9179         * lib/wcpcpy.c: New file.
9180         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
9181         * m4/wcpcpy.m4: New file.
9182         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
9183         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
9184         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
9185         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
9186         * doc/posix-functions/wcpcpy.texi: Mention the new module.
9187
9188 2011-02-05  Bruno Haible  <bruno@clisp.org>
9189
9190         New module 'wcscpy'.
9191         * modules/wcscpy: New file.
9192         * lib/wchar.in.h (wcscpy): New declaration.
9193         * lib/wcscpy.c: New file.
9194         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
9195         * m4/wcscpy.m4: New file.
9196         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
9197         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
9198         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
9199         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
9200         * doc/posix-functions/wcscpy.texi: Mention the new module.
9201
9202 2011-02-05  Bruno Haible  <bruno@clisp.org>
9203
9204         New module 'wcsnlen'.
9205         * modules/wcsnlen: New file.
9206         * lib/wchar.in.h (wcsnlen): New declaration.
9207         * lib/wcsnlen.c: New file.
9208         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
9209         * m4/wcsnlen.m4: New file.
9210         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
9211         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
9212         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
9213         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
9214         * doc/posix-functions/wcsnlen.texi: Mention the new module.
9215
9216 2011-02-05  Bruno Haible  <bruno@clisp.org>
9217
9218         New module 'wcslen'.
9219         * modules/wcslen: New file.
9220         * lib/wchar.in.h (wcslen): New declaration.
9221         * lib/wcslen.c: New file.
9222         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
9223         * m4/wcslen.m4: New file.
9224         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
9225         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
9226         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
9227         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
9228         * doc/posix-functions/wcslen.texi: Mention the new module.
9229
9230 2011-02-05  Bruno Haible  <bruno@clisp.org>
9231
9232         New module 'wmemset'.
9233         * modules/wmemset: New file.
9234         * lib/wchar.in.h (wmemset): New declaration.
9235         * lib/wmemset.c: New file.
9236         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
9237         * m4/wmemset.m4: New file.
9238         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
9239         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
9240         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
9241         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
9242         * doc/posix-functions/wmemset.texi: Mention the new module.
9243
9244 2011-02-05  Bruno Haible  <bruno@clisp.org>
9245
9246         New module 'wmemmove'.
9247         * modules/wmemmove: New file.
9248         * lib/wchar.in.h (wmemmove): New declaration.
9249         * lib/wmemmove.c: New file.
9250         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
9251         * m4/wmemmove.m4: New file.
9252         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
9253         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
9254         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
9255         HAVE_WMEMMOVE.
9256         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
9257         * doc/posix-functions/wmemmove.texi: Mention the new module.
9258
9259 2011-02-05  Bruno Haible  <bruno@clisp.org>
9260
9261         New module 'wmemcpy'.
9262         * modules/wmemcpy: New file.
9263         * lib/wchar.in.h (wmemcpy): New declaration.
9264         * lib/wmemcpy.c: New file.
9265         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
9266         * m4/wmemcpy.m4: New file.
9267         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
9268         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
9269         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
9270         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
9271         * doc/posix-functions/wmemcpy.texi: Mention the new module.
9272
9273 2011-02-05  Bruno Haible  <bruno@clisp.org>
9274
9275         New module 'wmemcmp'.
9276         * modules/wmemcmp: New file.
9277         * lib/wchar.in.h (wmemcmp): New declaration.
9278         * lib/wmemcmp.c: New file.
9279         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
9280         * m4/wmemcmp.m4: New file.
9281         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
9282         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
9283         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
9284         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
9285         * doc/posix-functions/wmemcmp.texi: Mention the new module.
9286
9287 2011-02-07  Jim Meyering  <meyering@redhat.com>
9288
9289         di-set, ino-map: new modules, from coreutils
9290         * lib/di-set.c: New file.
9291         * lib/di-set.h: Likewise.
9292         * lib/ino-map.c: Likewise.
9293         * lib/ino-map.h: Likewise.
9294         * modules/di-set: Likewise.
9295         * modules/di-set-tests: Likewise.
9296         * modules/ino-map: Likewise.
9297         * modules/ino-map-tests: Likewise.
9298         * tests/test-di-set.c: Likewise.
9299         * tests/test-ino-map.c: Likewise.
9300
9301 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9302
9303         getloadavg: merge minor changes from Emacs
9304
9305         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9306         (getloadavg): Use memset, not bzero.
9307
9308         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9309         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9310         clash (bug#86).
9311
9312 2010-11-14  Bruno Haible  <bruno@clisp.org>
9313
9314         Allow multiple gnulib generated replacements to coexist.
9315         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9316         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9317         * lib/langinfo.in.h (nl_item): Likewise.
9318         * lib/math.in.h (_NaN, NAN): Likewise.
9319         * lib/netdb.in.h (struct addrinfo): Likewise.
9320         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9321         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9322         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9323         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9324         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9325         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9326         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9327         pthread_mutexattr_init, pthread_mutexattr_settype,
9328         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9329         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9330         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9331         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9332         * lib/sched.in.h (struct sched_param): Likewise.
9333         * lib/se-selinux.in.h (security_class_t, security_context_t,
9334         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9335         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9336         lsetfilecon, fsetfilecon, security_check_context,
9337         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9338         Likewise.
9339         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9340         Likewise.
9341         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9342         _gl_function_taking_int_returning_void_t, union sigval,
9343         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9344         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9345         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9346         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9347         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9348         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9349         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9350         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9351         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9352         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9353         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9354         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9355         socklen_t, rpl_fd_isset): Likewise.
9356         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9357         * lib/sys_time.in.h (struct timeval): Likewise.
9358         * lib/sys_times.in.h (struct tms): Likewise.
9359         * lib/sys_utsname.in.h (struct utsname):
9360         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9361         * lib/unistd.in.h (getpagesize): Likewise.
9362         * lib/wchar.in.h (mbstate_t): Likewise.
9363         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9364         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9365         towlower, towupper): Likewise.
9366         Reported by Sam Steingold <sds@gnu.org>.
9367
9368 2011-02-05  Eric Blake  <eblake@redhat.com>
9369
9370         unsetenv: work around Haiku issues
9371         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9372         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9373
9374 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9375
9376         libposix: avoid calling error() within libposix
9377         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9378         is defined.
9379
9380 2011-02-05  Eric Blake  <eblake@redhat.com>
9381
9382         strerror_r-posix: port to cygwin
9383         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9384         implementation.
9385         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9386         * tests/test-strerror_r.c (main): Fix test.
9387         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9388         issue.
9389
9390 2011-02-05  Bruno Haible  <bruno@clisp.org>
9391
9392         New module 'wmemchr'.
9393         * modules/wmemchr: New file.
9394         * lib/wchar.in.h (wmemchr): New declaration.
9395         * lib/wmemchr.c: New file.
9396         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9397         * m4/wmemchr.m4: New file.
9398         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9399         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9400         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9401         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9402         * doc/posix-functions/wmemchr.texi: Mention the new module.
9403
9404 2011-02-04  Eric Blake  <eblake@redhat.com>
9405
9406         fdopendir: detect FreeBSD bug
9407         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9408         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9409
9410 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9411
9412         stdbool: do not define HAVE_STDBOOL_H
9413         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9414         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9415         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9416         imported from the latest Autoconf git.  It was motivated by Emacs,
9417         which uses gnulib but does not need HAVE_STDBOOL_H.
9418
9419 2011-02-04  Bruno Haible  <bruno@clisp.org>
9420
9421         wcsnrtombs: Prepare for new module wwcsnrtombs.
9422         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9423         * lib/wcsnrtombs.c: Include it.
9424         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9425
9426         wcsrtombs: Prepare for new module wwcsrtombs.
9427         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9428         * lib/wcsrtombs.c: Include it.
9429         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9430
9431         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9432         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9433         * lib/mbsnrtowcs.c: Include it.
9434         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9435
9436         mbsrtowcs: Prepare for new module mbsrtowwcs.
9437         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9438         * lib/mbsrtowcs.c: Include it.
9439         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9440
9441 2011-02-04  Bruno Haible  <bruno@clisp.org>
9442
9443         vasnprintf: Reduce use of malloc for small format strings.
9444         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9445         (arguments): Add room for the first 7 arguments.
9446         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9447         (char_directives, u8_directives, u16_directives, u32_directives): Add
9448         room for the first 7 directives.
9449         * lib/printf-parse.c: Include <string.h>.
9450         (PRINTF_PARSE): Change memory handling code so that it uses the first
9451         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9452         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9453         Reported by Pádraig Brady <P@draigbrady.com>.
9454
9455 2011-01-31  Eric Blake  <eblake@redhat.com>
9456
9457         dup2: work around Haiku bug
9458         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9459         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9460         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9461         * tests/test-dup2.c (main): Enhance test.
9462
9463 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9464
9465         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9466         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9467         declared by eglibc 2.11.2.
9468         * lib/stdio.in.h: Likewise.
9469
9470 2011-01-31  Eric Blake  <eblake@redhat.com>
9471
9472         ignore-value: add missing test dependency
9473         * tests/test-ignore-value.c: Revert previous change; stdio.h
9474         provides off_t.
9475         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9476
9477 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9478
9479         mktime: clarify long_int width checking
9480         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9481         the top level, to make it clearer that the assumption about
9482         long_int width is being checked.  See
9483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9484
9485 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9486
9487         ignore-value: Fix self-test.
9488         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9489
9490 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9491
9492         TYPE_MAXIMUM: avoid theoretically undefined behavior
9493         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9494         negative number, which the C Standard says has undefined behavior.
9495         In practice this is not a problem, but might as well do it by the book.
9496         Reported by Rich Felker and Eric Blake; see
9497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9498         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9499         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9501         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9502         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9503         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9504
9505         mktime: #undef mktime before #defining it
9506         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9507
9508         mktime: systematically normalize tm_isdst comparisons
9509         * lib/mktime.c (isdst_differ): New function.
9510         (__mktime_internal): Use it systematically for all isdst comparisons.
9511         This completes the fix for libc BZ #6723, and removes the need for
9512         normalizing tm_isdst.  See
9513         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9514         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9515
9516         mktime: fix some integer overflow issues and sidestep the rest
9517
9518         This was prompted by a bug report by Benjamin Lindner for MinGW
9519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9520         His bug is due to signed integer overflow (0 - INT_MIN), and I
9521         I scanned through mktime.c looking for other integer overflow
9522         problems, fixing all the bugs I found.
9523
9524         Although the C Standard says the resulting code is still not safe
9525         in the presence of integer overflow, in practice it should be good
9526         enough for all real-world two's-complement implementations, except
9527         for debugging environments that deliberately trap on integer
9528         overflow (e.g., gcc -ftrapv).
9529
9530         * lib/mktime.c (WRAPV): New macro.
9531         (SHR): Also check that long_int and time_t shift right in the
9532         usual way, before using the fast-but-unportable method.
9533         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9534         used.  The code already assumed two's complement, so there's
9535         no need to test for alternatives.  All uses removed.
9536         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9537         the C standard.  Problem reported by Rich Felker in
9538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9539         (twos_complement_arithmetic): Also check long_int and time_t.
9540         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9541         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9542         (__mktime_internal): Avoid integer overflow with unary subtraction
9543         in two instances where -1 - X is an adequate replacement for -X,
9544         since the calculations are approximate.
9545
9546 2011-01-29  Eric Blake  <eblake@redhat.com>
9547
9548         mktime: avoid infinite loop
9549         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9550         type; behavior is still undefined but portable to all known targets.
9551         Reported by Rich Felker.
9552
9553 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9554
9555         rename, unlink, same-inode: Relicense.
9556         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9557         * modules/unlink (License): Likewise.
9558         * modules/same-inode (License): Likewise.
9559
9560 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9561
9562         mktime: avoid problems on NetBSD 5 / i386
9563         * lib/mktime.c (long_int): New type.  This works around a problem
9564         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9565         but time_t is 64 bits, and where I expect the existing code is
9566         wrong in some cases.
9567         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9568         (ydhms_diff): Bring back the compile-time check for wide-enough
9569         year and yday.
9570
9571         mktime: fix misspelling in comment
9572         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9573         This merges all recent glibc changes of importance.
9574
9575 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9576
9577         move-if-change: cope with concurrent mv of identical file.
9578         * build-aux/move-if-change (CMPPROG): Accept environment
9579         variable as an override for `cmp'.
9580         (usage): Document CMPPROG.
9581         Adjust comparison to drop stdout.  Cope with failure of mv if
9582         the target file exists and is identical to the source, for
9583         parallel builds.
9584         Report from H.J. Lu against binutils in PR binutils/12283.
9585
9586 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9587
9588         * users.txt: Mention sharutils.
9589
9590 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9591
9592         * users.txt: Mention OATH Toolkit.
9593
9594 2011-01-27  Bruno Haible  <bruno@clisp.org>
9595
9596         Prepare for supporting FreeBSD 10.
9597         * build-aux/config.libpath: Remove handling of freebsd1*.
9598
9599 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9600
9601         Prepare for supporting FreeBSD 10.
9602         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9603         match FreeBSD 10.0.
9604
9605 2011-01-27  Bruno Haible  <bruno@clisp.org>
9606
9607         vma-iter, get-rusage-as: Add OpenBSD support.
9608         * modules/vma-iter (configure.ac): Test for mquery.
9609         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9610         * lib/vma-iter.c: Include <sys/mman.h>.
9611         (vma_iterate): Add an implementation based on mquery().
9612         * lib/resource-ext.h (get_rusage_as): Update comments.
9613         * lib/get-rusage-as.c: Likewise.
9614         * lib/get-rusage-data.c: Likewise.
9615
9616 2011-01-26  Karl Berry  <karl@gnu.org>
9617
9618         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9619         variables to make it easier to override the makeinfo program used.
9620
9621 2011-01-26  Eric Blake  <eblake@redhat.com>
9622
9623         fcntl: work around Haiku F_DUPFD bugs
9624         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9625         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9626         cloexec bit on duplication.
9627         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9628
9629 2011-01-26  Bruno Haible  <bruno@clisp.org>
9630
9631         Enable memory leak tests on AIX.
9632         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9633         * tests/test-fprintf-posix3.c (main): Likewise.
9634
9635 2011-01-26  Bruno Haible  <bruno@clisp.org>
9636
9637         Tests for module 'get-rusage-data'.
9638         * modules/get-rusage-data-tests: New file.
9639         * tests/test-get-rusage-data.c: New file.
9640
9641         New module 'get-rusage-data'.
9642         * lib/resource-ext.h (get_rusage_data): New declaration.
9643         * lib/get-rusage-data.c: New file.
9644         * modules/get-rusage-data: New file.
9645
9646 2011-01-25  Bruno Haible  <bruno@clisp.org>
9647
9648         get-rusage-as: Allow for easier testing.
9649         * lib/resource-ext.h (get_rusage_as): Add comment.
9650         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9651         (main): New function for interactive testing.
9652
9653 2011-01-25  Bruno Haible  <bruno@clisp.org>
9654
9655         vma-iter: Treat Haiku like BeOS.
9656         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9657         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9658
9659 2011-01-25  Eric Blake  <eblake@redhat.com>
9660
9661         c-stack: fix regression on cygwin when libsigsegv is present
9662         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9663
9664 2011-01-24  Bruno Haible  <bruno@clisp.org>
9665
9666         vma-iter: Avoid empty intervals.
9667         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9668         on an empty interval.
9669
9670 2011-01-24  Jim Meyering  <meyering@redhat.com>
9671
9672         u64: remove unnecessary #include
9673         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9674
9675 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9676
9677         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9678         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9679
9680 2011-01-23  Bruno Haible  <bruno@clisp.org>
9681
9682         New module 'vma-iter'.
9683         * lib/vma-iter.h: New file.
9684         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9685         * modules/vma-iter: New file.
9686         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9687         for get_rusage_as_via_iterator.
9688         (vma_iterate_callback): New function.
9689         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9690         * modules/get-rusage-as (Depends-on): Add vma-iter.
9691
9692 2011-01-23  Bruno Haible  <bruno@clisp.org>
9693
9694         uninorm: Tweak includes.
9695         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9696         Reported by Jim Meyering.
9697
9698 2011-01-23  Bruno Haible  <bruno@clisp.org>
9699
9700         get-rusage-as: Improve on NetBSD.
9701         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9702         /proc, like on FreeBSD.
9703
9704 2011-01-23  Jim Meyering  <meyering@redhat.com>
9705
9706         xreadlink.h: remove unnecessary #include
9707         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9708
9709         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9710         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9711
9712 2011-01-23  Bruno Haible  <bruno@clisp.org>
9713
9714         get-rusage-as: Fix bug.
9715         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9716         original limit when aborting the first loop.
9717
9718 2011-01-23  Bruno Haible  <bruno@clisp.org>
9719
9720         wctype: Ensure valid C syntax.
9721         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9722         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9723
9724 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9725
9726         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9727         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9728         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9729         as they are needed only for configure's test case.
9730         This removes two unnecessary symbols from config.h.
9731
9732         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9733         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9734         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9735         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9736         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9737         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9738         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9739         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9740         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9741         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9742         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9743         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9744         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9745         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9746         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9747         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9748         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9749         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9750
9751 2011-01-21  Eric Blake  <eblake@redhat.com>
9752
9753         maintainer-makefile: work with older git for submodule check
9754         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9755         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9756         Reported by Matthias Bolte.
9757
9758         bootstrap: minor portability fixes
9759         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9760         (usage): Omit leading capital and trailing . on help phrases, per
9761         GNU Coding Standards.
9762         (check_versions, top level): Prefix messages with script name.
9763
9764 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9765
9766         bootstrap: support --no-git option
9767         * build-aux/bootstrap: Add --no-git option, to be used when
9768         --gnulib-srcdir points to the exact desired checkout.
9769
9770 2011-01-21  Eric Blake  <eblake@redhat.com>
9771
9772         strerror_r-posix: work with glibc 2.13
9773         * lib/strerror_r.c (strerror_r): Fix return type.
9774
9775 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9776             Bruno Haible  <bruno@clisp.org>
9777
9778         uN_strstr: New unit tests.
9779         * modules/unistr/u8-strstr-tests: New file.
9780         * modules/unistr/u16-strstr-tests: New file.
9781         * modules/unistr/u32-strstr-tests: New file.
9782         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9783         * tests/unistr/test-u8-strstr.c: New file.
9784         * tests/unistr/test-u16-strstr.c: New file.
9785         * tests/unistr/test-u32-strstr.c: New file.
9786
9787 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9788             Bruno Haible  <bruno@clisp.org>
9789
9790         Make uN_strstr functions O(n) worst-case.
9791         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9792         16-bit and 32-bit unit cases, use the unibyte algorithm from
9793         lib/mbsstr.c.
9794         * lib/unistr/u8-strstr.c: Include <string.h>.
9795         (UNIT_IS_UINT8_T): New macro.
9796         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9797         (U_STRLEN, U_STRNLEN): New macros.
9798         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9799         (U_STRLEN, U_STRNLEN): New macros.
9800         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9801         (configure.ac): Update required libunistring version.
9802         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9803         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9804         malloca.
9805         (configure.ac): Update required libunistring version.
9806         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9807         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9808         malloca.
9809         (configure.ac): Update required libunistring version.
9810
9811 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9812             Bruno Haible  <bruno@clisp.org>
9813
9814         Prepare for faster uN_strstr functions.
9815         * lib/str-kmp.h: Support definable UNITs.
9816         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9817         needle_len argument.
9818         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9819         * lib/mbscasestr.c (mbscasestr): Likewise.
9820
9821 2011-01-21  Pádraig Brady <P@draigBrady.com>
9822
9823         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9824         * tests/test-malloca.c (main): Unset the environment variable
9825         to greatly speed up the test.
9826         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9827         * modules/malloca-tests: Depend on unsetenv.
9828
9829 2011-01-21  Pádraig Brady <P@draigBrady.com>
9830
9831         ignore-value: remove stdint dependency
9832         * lib/ignore-value.h: Remove <stdint.h>
9833         * modules/ignore-value: Remove stdint dependency.
9834
9835 2011-01-21  Jim Meyering  <meyering@redhat.com>
9836
9837         maint.mk: adjust variable name to be consistent with other gl_ vars
9838         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9839         to be lower case.
9840
9841 2011-01-20  Jim Meyering  <meyering@redhat.com>
9842
9843         maint.mk: make "check" depend on public-submodule-commit by default
9844         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9845
9846 2011-01-20  Bruno Haible  <bruno@clisp.org>
9847
9848         mbfile, mbiter: Complete change from 2008-12-21.
9849         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9850         * m4/mbiter.m4 (gl_MBITER): Likewise.
9851
9852 2011-01-20  Jim Meyering  <meyering@redhat.com>
9853
9854         init.sh: insert space between each function name and "()"
9855         * tests/init.sh: Make it a little easier to see that a function's
9856         name is "warn_", and not "warn" when looking at the first part of
9857         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9858
9859 2011-01-20  Jim Meyering  <meyering@redhat.com>
9860
9861         mountlist: clean up code formatting
9862         * lib/mountlist.c (read_file_system_list): Split a long line,
9863         correct bracing style, use NULL in place of "(struct statfs *)0",
9864         don't parenthesize return value, add spaces around "=" and after
9865         ";-in-for-stmt".
9866
9867 2011-01-14  Markus Duft <mduft@gentoo.org>
9868
9869         mountlist: add support for Interix
9870         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
9871         Apply statvfs to all entries of /dev/fs.
9872         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
9873         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
9874
9875 2011-01-20  Jim Meyering  <meyering@redhat.com>
9876
9877         maint.mk: improve the public-submodule-commit rule
9878         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
9879         to suppress printing of its commands... unless V=1.
9880         Add git submodule's --quiet option to suppress printing of e.g.,
9881         "Entering gnulib" output.
9882         "cd" into $(srcdir) before running git submodule.
9883
9884 2011-01-20  Bruno Haible  <bruno@clisp.org>
9885
9886         include_next: Fix bug introduced on 2011-01-18.
9887         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
9888         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
9889         ac_cv_header_... variable if the second argument is not 'check'.
9890         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
9891         gl_NEXT_HEADERS_INTERNAL.
9892
9893 2011-01-20  Bruno Haible  <bruno@clisp.org>
9894
9895         Allow the user to avoid the GNULIB_TEST_* macros.
9896         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
9897         Suggested by Paul Eggert.
9898
9899 2011-01-14  Jim Meyering  <meyering@redhat.com>
9900
9901         bootstrap: avoid failure when there is no .gitmodules file
9902         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
9903         has been assigned to, even when its value is the empty string.
9904         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
9905         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
9906         Reported by John W. Eaton <jwe@gnu.org>.
9907
9908 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9909
9910         assume <ctype.h>, ..., <time.h> exist
9911         For years gnulib has been assuming the existence of the headers
9912         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
9913         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
9914         them, since they don't appear to be needed.
9915         * README (Portability guidelines): Document this.
9916         * lib/flock.c: Assume <fcntl.h> exists.
9917         * lib/regex_internal.h: Assume <locale.h> exists.
9918         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
9919         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
9920         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
9921         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
9922         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
9923         * m4/regex.m4 (gl_REGEX): Likewise.
9924         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
9925         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
9926         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
9927         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
9928         * tests/test-argp.c: Likewise.
9929         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
9930
9931         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
9932         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
9933         AA_APPLE_UNIVERSAL_BUILD.  See
9934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
9935         * NEWS: Document this.
9936
9937 2011-01-19  Eric Blake  <eblake@redhat.com>
9938
9939         c-stack: assume stack overflow if SA_SIGINFO unsupported
9940         * lib/c-stack.c (SIGACTION_WORKS): Rename...
9941         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
9942         sigaction will work.
9943         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
9944         behavior match Linux.
9945         * tests/test-c-stack.c (main): Prefer NULL for pointers.
9946
9947         stdbool-tests: accomodate Haiku
9948         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
9949
9950         binary-io: fix O_TEXT on Haiku
9951         * modules/binary-io (Depends-on): Add fcntl-h.
9952         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9953         than blindly undefining O_TEXT.
9954         Reported by Scott McCreary.
9955
9956 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9957
9958         include_next: do not check for standard headers like stddef.h
9959
9960         I found this problem when modifying Emacs to use gnulib.
9961         I noticed that it added HAVE_STDDEF_H to config.h, even though
9962         gnulib always assumes <stddef.h> exists as per README and this
9963         symbol is unnecessary.
9964         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
9965         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
9966         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
9967         faster for headers like stddef.h that are known to exist.
9968         (gl_CHECK_NEXT_HEADERS): Use it.
9969         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
9970         rather than gl_CHECK_NEXT_HEADERS.
9971         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
9972         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
9973
9974 2011-01-18  Eric Blake  <eblake@redhat.com>
9975
9976         ansi-c++-opt: skip C++ dependency style if C++ is unused
9977         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
9978         tests when we know C++ compilation is not desired.
9979         Reported by Scott McCreary.
9980
9981 2011-01-18  Bruno Haible  <bruno@clisp.org>
9982
9983         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
9984         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
9985         (main): Perform test also when getrlimit and setrlimit don't exist or
9986         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
9987         limiting the address space size using setrlimit, compare the address
9988         space size before and after the the test.
9989         * tests/test-dprintf-posix2.c: Likewise.
9990         * tests/test-fprintf-posix3.sh: Update skip messages.
9991         * tests/test-dprintf-posix2.sh: Likewise.
9992         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
9993         * modules/dprintf-posix-tests (Depends-on): Likewise.
9994         Reported by Bruce Korb <bkorb@gnu.org> and
9995         Gary V. Vaughan <gary@gnu.org>.
9996
9997 2011-01-18  Bruno Haible  <bruno@clisp.org>
9998
9999         get-rusage-as: Improvement for Cygwin.
10000         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
10001         areas that are merely reserved.
10002
10003 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10004
10005         strftime: remove dependencies on multibyte modules
10006
10007         strftime depended on mbrlen, mbsinit, and wchar, but these modules
10008         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
10009         only if __osf__ is defined, and I suspect OSF doesn't need these
10010         other modules.  If my guess is wrong, we'll need to come up with a
10011         variant of strftime that doesn't need the multibyte modules.
10012
10013         I discovered this problem when attempting modify Emacs to use the
10014         strftime module.  With the previous gnulib, this caused Emacs to
10015         need 31 new files, ranging from lib/config.charset to
10016         m4/wint_t.m4.  This was overkill and I expect would be offputting
10017         to the Emacs maintainers.  After this change, only 6 new files are
10018         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
10019         stdbool.m4, and tm_gmtoff.m4.
10020
10021         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
10022         Suggested by Bruno Haible in
10023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
10024         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
10025         and do not check for wchar.h.
10026         * modules/strftime (Files): Remove m4/mbstate_t.m4.
10027         (Depends-on): Remove mbrlen, mbsinit, wchar.
10028
10029 2011-01-18  Bruno Haible  <bruno@clisp.org>
10030
10031         Tests for module 'get-rusage-as'.
10032         * modules/get-rusage-as-tests: New file.
10033         * tests/test-get-rusage-as.c: New file.
10034
10035         New module 'get-rusage-as'.
10036         * modules/get-rusage-as: New file.
10037         * lib/resource-ext.h: New file.
10038         * lib/get-rusage-as.c: New file.
10039
10040 2011-01-17  Eric Blake  <eblake@redhat.com>
10041
10042         sigaction: relax license from LGPLv3+ to LGPLv2+
10043         * modules/sigaction (License): Relax to LGPLv2+.
10044
10045 2011-01-14  Bruno Haible  <bruno@clisp.org>
10046
10047         filemode: Make function declarations usable in C++ mode.
10048         * lib/filemode.h: Enclose function declarations in extern "C" block.
10049         Reported by John W. Eaton <jwe@gnu.org>.
10050
10051 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
10052
10053         save-cwd: no longer include "xgetcwd.h"
10054         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
10055         This avoids a compilation failure in projects that use save-cwd
10056         without also using the xgetcwd module.
10057
10058 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10059
10060         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
10061         This is so that a program like Emacs, which needs only dtoastr,
10062         does not have to bother with distributing and compiling ftoastr
10063         and ldtoastr.
10064         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
10065         * modules/dtoastr, modules/ldtoastr: New files.
10066         * modules/ftoastr: Now works just for 'float'.
10067         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
10068         (Makefile.am): Remove ftoastr.h (not needed and no effect),
10069         dtoastr.c, ldtoastr.c.
10070
10071 2011-01-11  Jim Meyering  <meyering@redhat.com>
10072
10073         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
10074         There is no need to work around the lack of the fchdir function,
10075         since gnulib can now provide a replacement when required.
10076         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
10077         * modules/save-cwd (Depends-on): Add fchdir.
10078
10079 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10080
10081         openat, save-cwd: avoid xmalloc
10082
10083         This removes a direct (but undocumented) dependency of openat on
10084         xalloc, along with an indirect dependency via save-cwd.  It also
10085         removes a dependency of save-cwd on xgetcwd, and thereby
10086         indirectly on xalloc.  This change causes the openat substitute
10087         to fall back on save_cwd when memory is tight, and for save_cwd to
10088         fail instead of dying when memory is tight, but that's good enough.
10089         Problem and initial idea for fix reported by Bastien Roucaries in
10090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
10091
10092         * lib/openat-proc.c: Include stdlib.h (for malloc), not
10093         xalloc.h (for xmalloc).
10094         (openat_proc_name): Use malloc, not xmalloc.
10095         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
10096         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
10097
10098         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
10099         This avoids heap allocation for file names whose lengths are in
10100         the range 512..1023, with the upper bound increasing to at most
10101         4031 depending on the platform's PATH_MAX.  (We do not want
10102         pathmax.h here as it might supply a non-constant PATH_MAX.)
10103         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
10104         Perhaps they should be moved to malloca.h?
10105         (OPENAT_BUFFER_SIZE): Use them.
10106
10107 2011-01-10  Bruno Haible  <bruno@clisp.org>
10108
10109         doc: Update users.txt.
10110         * users.txt: Add recutils.
10111
10112 2011-01-09  Karl Berry  <karl@gnu.org>
10113
10114         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10115
10116         * doc/configmake.texi: New file.
10117         * doc/gnulib.texi: Include it.
10118         * modules/configmake: Move documentation from here.
10119
10120 2011-01-09  Bruno Haible  <bruno@clisp.org>
10121
10122         Update to Unicode 6.0.0.
10123         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
10124         (get_lbp): Update for Unicode 6.0.0.
10125         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
10126         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
10127         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
10128         U+11001, U+11038..U+11046. Remove U+06DE.
10129         (uc_width): Fix bounds of planes.
10130         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10131         lib/uniwidth/width.c.
10132         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
10133         trailing whitespace removed.
10134         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
10135         without comments, but with the original copyright notice.
10136         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
10137         * lib/unicase/ignorable.h: Likewise.
10138         * lib/unicase/tocasefold.h: Likewise.
10139         * lib/unicase/tolower.h: Likewise.
10140         * lib/unicase/totitle.h: Likewise.
10141         * lib/unicase/toupper.h: Likewise.
10142         * lib/unictype/bidi_of.h: Likewise.
10143         * lib/unictype/blocks.h: Likewise.
10144         * lib/unictype/categ_C.h: Likewise.
10145         * lib/unictype/categ_Cn.h: Likewise.
10146         * lib/unictype/categ_L.h: Likewise.
10147         * lib/unictype/categ_Ll.h: Likewise.
10148         * lib/unictype/categ_Lm.h: Likewise.
10149         * lib/unictype/categ_Lo.h: Likewise.
10150         * lib/unictype/categ_Lu.h: Likewise.
10151         * lib/unictype/categ_M.h: Likewise.
10152         * lib/unictype/categ_Mc.h: Likewise.
10153         * lib/unictype/categ_Me.h: Likewise.
10154         * lib/unictype/categ_Mn.h: Likewise.
10155         * lib/unictype/categ_N.h: Likewise.
10156         * lib/unictype/categ_Nd.h: Likewise.
10157         * lib/unictype/categ_No.h: Likewise.
10158         * lib/unictype/categ_P.h: Likewise.
10159         * lib/unictype/categ_Po.h: Likewise.
10160         * lib/unictype/categ_S.h: Likewise.
10161         * lib/unictype/categ_Sc.h: Likewise.
10162         * lib/unictype/categ_Sk.h: Likewise.
10163         * lib/unictype/categ_Sm.h: Likewise.
10164         * lib/unictype/categ_So.h: Likewise.
10165         * lib/unictype/categ_of.h: Likewise.
10166         * lib/unictype/combining.h: Likewise.
10167         * lib/unictype/ctype_alnum.h: Likewise.
10168         * lib/unictype/ctype_alpha.h: Likewise.
10169         * lib/unictype/ctype_graph.h: Likewise.
10170         * lib/unictype/ctype_lower.h: Likewise.
10171         * lib/unictype/ctype_print.h: Likewise.
10172         * lib/unictype/ctype_punct.h: Likewise.
10173         * lib/unictype/ctype_upper.h: Likewise.
10174         * lib/unictype/decdigit.h: Likewise.
10175         * lib/unictype/digit.h: Likewise.
10176         * lib/unictype/numeric.h: Likewise.
10177         * lib/unictype/pr_alphabetic.h: Likewise.
10178         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10179         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10180         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10181         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10182         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10183         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10184         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10185         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10186         * lib/unictype/pr_case_ignorable.h: Likewise.
10187         * lib/unictype/pr_cased.h: Likewise.
10188         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
10189         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
10190         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
10191         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
10192         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
10193         * lib/unictype/pr_combining.h: Likewise.
10194         * lib/unictype/pr_composite.h: Likewise.
10195         * lib/unictype/pr_currency_symbol.h: Likewise.
10196         * lib/unictype/pr_decimal_digit.h: Likewise.
10197         * lib/unictype/pr_deprecated.h: Likewise.
10198         * lib/unictype/pr_format_control.h: Likewise.
10199         * lib/unictype/pr_grapheme_base.h: Likewise.
10200         * lib/unictype/pr_grapheme_extend.h: Likewise.
10201         * lib/unictype/pr_grapheme_link.h: Likewise.
10202         * lib/unictype/pr_id_continue.h: Likewise.
10203         * lib/unictype/pr_id_start.h: Likewise.
10204         * lib/unictype/pr_ideographic.h: Likewise.
10205         * lib/unictype/pr_lowercase.h: Likewise.
10206         * lib/unictype/pr_math.h: Likewise.
10207         * lib/unictype/pr_numeric.h: Likewise.
10208         * lib/unictype/pr_other_alphabetic.h: Likewise.
10209         * lib/unictype/pr_other_id_continue.h: Likewise.
10210         * lib/unictype/pr_other_math.h: Likewise.
10211         * lib/unictype/pr_punctuation.h: Likewise.
10212         * lib/unictype/pr_sentence_terminal.h: Likewise.
10213         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10214         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10215         * lib/unictype/pr_unified_ideograph.h: Likewise.
10216         * lib/unictype/pr_uppercase.h: Likewise.
10217         * lib/unictype/pr_xid_continue.h: Likewise.
10218         * lib/unictype/pr_xid_start.h: Likewise.
10219         * lib/unictype/scripts.h: Likewise.
10220         * lib/unictype/scripts_byname.gperf: Likewise.
10221         * lib/unictype/sy_java_ident.h: Likewise.
10222         * lib/unigbrk/gbrkprop.h: Likewise.
10223         * lib/unilbrk/lbrkprop1.h: Likewise.
10224         * lib/unilbrk/lbrkprop2.h: Likewise.
10225         * lib/uninorm/decomposition-table2.h: Likewise.
10226         * lib/uniwbrk/wbrkprop.h: Likewise.
10227         * tests/unicase/test-cased.c: Likewise.
10228         * tests/unicase/test-ignorable.c: Likewise.
10229         * tests/unicase/test-uc_tolower.c: Likewise.
10230         * tests/unicase/test-uc_totitle.c: Likewise.
10231         * tests/unicase/test-uc_toupper.c: Likewise.
10232         * tests/unictype/test-categ_C.c: Likewise.
10233         * tests/unictype/test-categ_Cn.c: Likewise.
10234         * tests/unictype/test-categ_L.c: Likewise.
10235         * tests/unictype/test-categ_Ll.c: Likewise.
10236         * tests/unictype/test-categ_Lm.c: Likewise.
10237         * tests/unictype/test-categ_Lo.c: Likewise.
10238         * tests/unictype/test-categ_Lu.c: Likewise.
10239         * tests/unictype/test-categ_M.c: Likewise.
10240         * tests/unictype/test-categ_Mc.c: Likewise.
10241         * tests/unictype/test-categ_Me.c: Likewise.
10242         * tests/unictype/test-categ_Mn.c: Likewise.
10243         * tests/unictype/test-categ_N.c: Likewise.
10244         * tests/unictype/test-categ_Nd.c: Likewise.
10245         * tests/unictype/test-categ_No.c: Likewise.
10246         * tests/unictype/test-categ_P.c: Likewise.
10247         * tests/unictype/test-categ_Po.c: Likewise.
10248         * tests/unictype/test-categ_S.c: Likewise.
10249         * tests/unictype/test-categ_Sc.c: Likewise.
10250         * tests/unictype/test-categ_Sk.c: Likewise.
10251         * tests/unictype/test-categ_Sm.c: Likewise.
10252         * tests/unictype/test-categ_So.c: Likewise.
10253         * tests/unictype/test-ctype_alnum.c: Likewise.
10254         * tests/unictype/test-ctype_alpha.c: Likewise.
10255         * tests/unictype/test-ctype_graph.c: Likewise.
10256         * tests/unictype/test-ctype_lower.c: Likewise.
10257         * tests/unictype/test-ctype_print.c: Likewise.
10258         * tests/unictype/test-ctype_punct.c: Likewise.
10259         * tests/unictype/test-ctype_upper.c: Likewise.
10260         * tests/unictype/test-decdigit.h: Likewise.
10261         * tests/unictype/test-digit.h: Likewise.
10262         * tests/unictype/test-numeric.h: Likewise.
10263         * tests/unictype/test-pr_alphabetic.c: Likewise.
10264         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10265         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10266         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10267         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10268         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10269         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10270         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10271         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10272         * tests/unictype/test-pr_case_ignorable.c: Likewise.
10273         * tests/unictype/test-pr_cased.c: Likewise.
10274         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
10275         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
10276         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
10277         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
10278         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
10279         * tests/unictype/test-pr_combining.c: Likewise.
10280         * tests/unictype/test-pr_composite.c: Likewise.
10281         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10282         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10283         * tests/unictype/test-pr_deprecated.c: Likewise.
10284         * tests/unictype/test-pr_format_control.c: Likewise.
10285         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10286         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10287         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10288         * tests/unictype/test-pr_id_continue.c: Likewise.
10289         * tests/unictype/test-pr_id_start.c: Likewise.
10290         * tests/unictype/test-pr_ideographic.c: Likewise.
10291         * tests/unictype/test-pr_lowercase.c: Likewise.
10292         * tests/unictype/test-pr_math.c: Likewise.
10293         * tests/unictype/test-pr_numeric.c: Likewise.
10294         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10295         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10296         * tests/unictype/test-pr_other_math.c: Likewise.
10297         * tests/unictype/test-pr_punctuation.c: Likewise.
10298         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10299         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10300         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10301         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10302         * tests/unictype/test-pr_uppercase.c: Likewise.
10303         * tests/unictype/test-pr_xid_continue.c: Likewise.
10304         * tests/unictype/test-pr_xid_start.c: Likewise.
10305         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10306         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10307         changes.
10308         * lib/unictype/categ_Cc.h: Likewise.
10309         * lib/unictype/categ_Cf.h: Likewise.
10310         * lib/unictype/categ_Co.h: Likewise.
10311         * lib/unictype/categ_Cs.h: Likewise.
10312         * lib/unictype/categ_Lt.h: Likewise.
10313         * lib/unictype/categ_Nl.h: Likewise.
10314         * lib/unictype/categ_Pc.h: Likewise.
10315         * lib/unictype/categ_Pd.h: Likewise.
10316         * lib/unictype/categ_Pe.h: Likewise.
10317         * lib/unictype/categ_Pf.h: Likewise.
10318         * lib/unictype/categ_Pi.h: Likewise.
10319         * lib/unictype/categ_Ps.h: Likewise.
10320         * lib/unictype/categ_Z.h: Likewise.
10321         * lib/unictype/categ_Zl.h: Likewise.
10322         * lib/unictype/categ_Zp.h: Likewise.
10323         * lib/unictype/categ_Zs.h: Likewise.
10324         * lib/unictype/ctype_blank.h: Likewise.
10325         * lib/unictype/ctype_cntrl.h: Likewise.
10326         * lib/unictype/ctype_digit.h: Likewise.
10327         * lib/unictype/ctype_space.h: Likewise.
10328         * lib/unictype/ctype_xdigit.h: Likewise.
10329         * lib/unictype/mirror.h: Likewise.
10330         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10331         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10332         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10333         * lib/unictype/pr_bidi_control.h: Likewise.
10334         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10335         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10336         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10337         * lib/unictype/pr_bidi_pdf.h: Likewise.
10338         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10339         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10340         * lib/unictype/pr_dash.h: Likewise.
10341         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10342         * lib/unictype/pr_diacritic.h: Likewise.
10343         * lib/unictype/pr_extender.h: Likewise.
10344         * lib/unictype/pr_hex_digit.h: Likewise.
10345         * lib/unictype/pr_hyphen.h: Likewise.
10346         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10347         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10348         * lib/unictype/pr_ignorable_control.h: Likewise.
10349         * lib/unictype/pr_iso_control.h: Likewise.
10350         * lib/unictype/pr_join_control.h: Likewise.
10351         * lib/unictype/pr_left_of_pair.h: Likewise.
10352         * lib/unictype/pr_line_separator.h: Likewise.
10353         * lib/unictype/pr_logical_order_exception.h: Likewise.
10354         * lib/unictype/pr_non_break.h: Likewise.
10355         * lib/unictype/pr_not_a_character.h: Likewise.
10356         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10357         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10358         * lib/unictype/pr_other_id_start.h: Likewise.
10359         * lib/unictype/pr_other_lowercase.h: Likewise.
10360         * lib/unictype/pr_other_uppercase.h: Likewise.
10361         * lib/unictype/pr_paired_punctuation.h: Likewise.
10362         * lib/unictype/pr_paragraph_separator.h: Likewise.
10363         * lib/unictype/pr_pattern_syntax.h: Likewise.
10364         * lib/unictype/pr_pattern_white_space.h: Likewise.
10365         * lib/unictype/pr_private_use.h: Likewise.
10366         * lib/unictype/pr_quotation_mark.h: Likewise.
10367         * lib/unictype/pr_radical.h: Likewise.
10368         * lib/unictype/pr_soft_dotted.h: Likewise.
10369         * lib/unictype/pr_space.h: Likewise.
10370         * lib/unictype/pr_titlecase.h: Likewise.
10371         * lib/unictype/pr_variation_selector.h: Likewise.
10372         * lib/unictype/pr_white_space.h: Likewise.
10373         * lib/unictype/pr_zero_width.h: Likewise.
10374         * lib/unictype/sy_c_ident.h: Likewise.
10375         * lib/unictype/sy_c_whitespace.h: Likewise.
10376         * lib/unictype/sy_java_whitespace.h: Likewise.
10377         * lib/uninorm/composition-table.gperf: Likewise.
10378         * lib/uninorm/decomposition-table1.h: Likewise.
10379         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10380         LB8.
10381         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10382         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10383         * modules/unictype/*: Bump version number of expected libunistring
10384         version.
10385
10386 2011-01-09  Bruno Haible  <bruno@clisp.org>
10387
10388         Update to Unicode 5.2.0.
10389         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10390         trailing whitespace removed.
10391
10392 2011-01-09  Bruno Haible  <bruno@clisp.org>
10393
10394         New Unicode character properties, from Unicode 5.2.0.
10395         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10396         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10397         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10398         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10399         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10400         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10401         uc_is_property_cased, uc_is_property_case_ignorable,
10402         uc_is_property_changes_when_lowercased,
10403         uc_is_property_changes_when_uppercased,
10404         uc_is_property_changes_when_titlecased,
10405         uc_is_property_changes_when_casefolded,
10406         uc_is_property_changes_when_casemapped): New declarations.
10407         * lib/unictype/pr_byname.gperf: Add the new properties.
10408         * modules/unictype/property-byname (Depends-on): Depend on the new
10409         properties modules.
10410         * modules/unictype/property-all (Depends-on): Likewise.
10411         * MODULES.html.sh (Unicode string functions): Add
10412         unictype/property-case-ignorable, unictype/property-cased,
10413         unictype/property-changes-when-casefolded,
10414         unictype/property-changes-when-casemapped,
10415         unictype/property-changes-when-lowercased,
10416         unictype/property-changes-when-titlecased,
10417         unictype/property-changes-when-uppercased.
10418
10419         New module 'unictype/property-changes-when-casemapped'.
10420         * modules/unictype/property-changes-when-casemapped: New file.
10421         * lib/unictype/pr_changes_when_casemapped.c: New file.
10422         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10423         generated by gen-uni-tables.
10424         * modules/unictype/property-changes-when-casemapped-tests: New file.
10425         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10426         automatically generated by gen-uni-tables.
10427
10428         New module 'unictype/property-changes-when-casefolded'.
10429         * modules/unictype/property-changes-when-casefolded: New file.
10430         * lib/unictype/pr_changes_when_casefolded.c: New file.
10431         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10432         generated by gen-uni-tables.
10433         * modules/unictype/property-changes-when-casefolded-tests: New file.
10434         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10435         automatically generated by gen-uni-tables.
10436
10437         New module 'unictype/property-changes-when-titlecased'.
10438         * modules/unictype/property-changes-when-titlecased: New file.
10439         * lib/unictype/pr_changes_when_titlecased.c: New file.
10440         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10441         generated by gen-uni-tables.
10442         * modules/unictype/property-changes-when-titlecased-tests: New file.
10443         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10444         automatically generated by gen-uni-tables.
10445
10446         New module 'unictype/property-changes-when-uppercased'.
10447         * modules/unictype/property-changes-when-uppercased: New file.
10448         * lib/unictype/pr_changes_when_uppercased.c: New file.
10449         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10450         generated by gen-uni-tables.
10451         * modules/unictype/property-changes-when-uppercased-tests: New file.
10452         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10453         automatically generated by gen-uni-tables.
10454
10455         New module 'unictype/property-changes-when-lowercased'.
10456         * modules/unictype/property-changes-when-lowercased: New file.
10457         * lib/unictype/pr_changes_when_lowercased.c: New file.
10458         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10459         generated by gen-uni-tables.
10460         * modules/unictype/property-changes-when-lowercased-tests: New file.
10461         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10462         automatically generated by gen-uni-tables.
10463
10464         New module 'unictype/property-case-ignorable'.
10465         * modules/unictype/property-case-ignorable: New file.
10466         * lib/unictype/pr_case_ignorable.c: New file.
10467         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10468         by gen-uni-tables.
10469         * modules/unictype/property-case-ignorable-tests: New file.
10470         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10471         generated by gen-uni-tables.
10472
10473         New module 'unictype/property-cased'.
10474         * modules/unictype/property-cased: New file.
10475         * lib/unictype/pr_cased.c: New file.
10476         * lib/unictype/pr_cased.h: New file, automatically generated by
10477         gen-uni-tables.
10478         * modules/unictype/property-cased-tests: New file.
10479         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10480         gen-uni-tables.
10481
10482 2011-01-09  Bruno Haible  <bruno@clisp.org>
10483
10484         Update to Unicode 5.2.0.
10485         * lib/gen-uni-tables.c (output_predicate, output_category,
10486         output_combclass, output_bidi_category, output_decimal_digit_test,
10487         output_decimal_digit, output_digit_test, output_digit,
10488         output_numeric_test, output_numeric, output_mirror, output_scripts,
10489         output_scripts_byname, output_blocks, output_ident_category): Fix
10490         comment header.
10491         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10492         get_wbp.
10493         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10494         items.
10495         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10496         Changes_When_Lowercased, Changes_When_Uppercased,
10497         Changes_When_Titlecased, Changes_When_Casefolded,
10498         Changes_When_Casemapped.
10499         (is_property_alphabetic, is_property_default_ignorable_code_point):
10500         Update for Unicode 5.2.0.
10501         (is_property_cased, is_property_case_ignorable,
10502         is_property_changes_when_lowercased,
10503         is_property_changes_when_uppercased,
10504         is_property_changes_when_titlecased,
10505         is_property_changes_when_casefolded,
10506         is_property_changes_when_casemapped): New functions.
10507         (output_properties): Output also the properties cased, case_ignorable,
10508         changes_when_lowercased, changes_when_uppercased,
10509         changes_when_titlecased, changes_when_casefolded,
10510         changes_when_casemapped.
10511         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10512         Unicode TR#11 revision 17 -> 19.
10513         (LBP_CP): New enumeration value.
10514         (LBP_*): Adjust values accordingly.
10515         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10516         TR#14 revision 22 -> 24.
10517         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10518         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10519         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10520         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10521         is_WBP_MIDLETTER.
10522         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10523         the code1 and code2 of each composition rule.
10524         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10525         * lib/unicase/ignorable.h: Likewise.
10526         * lib/unicase/tocasefold.h: Likewise.
10527         * lib/unicase/tolower.h: Likewise.
10528         * lib/unicase/totitle.h: Likewise.
10529         * lib/unicase/toupper.h: Likewise.
10530         * lib/unictype/bidi_of.h: Likewise.
10531         * lib/unictype/blocks.h: Likewise.
10532         * lib/unictype/categ_C.h: Likewise.
10533         * lib/unictype/categ_Cf.h: Likewise.
10534         * lib/unictype/categ_Cn.h: Likewise.
10535         * lib/unictype/categ_L.h: Likewise.
10536         * lib/unictype/categ_Ll.h: Likewise.
10537         * lib/unictype/categ_Lm.h: Likewise.
10538         * lib/unictype/categ_Lo.h: Likewise.
10539         * lib/unictype/categ_Lu.h: Likewise.
10540         * lib/unictype/categ_M.h: Likewise.
10541         * lib/unictype/categ_Mc.h: Likewise.
10542         * lib/unictype/categ_Mn.h: Likewise.
10543         * lib/unictype/categ_N.h: Likewise.
10544         * lib/unictype/categ_Nd.h: Likewise.
10545         * lib/unictype/categ_Nl.h: Likewise.
10546         * lib/unictype/categ_No.h: Likewise.
10547         * lib/unictype/categ_P.h: Likewise.
10548         * lib/unictype/categ_Pd.h: Likewise.
10549         * lib/unictype/categ_Po.h: Likewise.
10550         * lib/unictype/categ_S.h: Likewise.
10551         * lib/unictype/categ_Sc.h: Likewise.
10552         * lib/unictype/categ_So.h: Likewise.
10553         * lib/unictype/categ_of.h: Likewise.
10554         * lib/unictype/combining.h: Likewise.
10555         * lib/unictype/ctype_alnum.h: Likewise.
10556         * lib/unictype/ctype_alpha.h: Likewise.
10557         * lib/unictype/ctype_graph.h: Likewise.
10558         * lib/unictype/ctype_lower.h: Likewise.
10559         * lib/unictype/ctype_print.h: Likewise.
10560         * lib/unictype/ctype_punct.h: Likewise.
10561         * lib/unictype/ctype_upper.h: Likewise.
10562         * lib/unictype/decdigit.h: Likewise.
10563         * lib/unictype/digit.h: Likewise.
10564         * lib/unictype/numeric.h: Likewise.
10565         * lib/unictype/pr_alphabetic.h: Likewise.
10566         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10567         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10568         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10569         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10570         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10571         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10572         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10573         * lib/unictype/pr_combining.h: Likewise.
10574         * lib/unictype/pr_composite.h: Likewise.
10575         * lib/unictype/pr_currency_symbol.h: Likewise.
10576         * lib/unictype/pr_dash.h: Likewise.
10577         * lib/unictype/pr_decimal_digit.h: Likewise.
10578         * lib/unictype/pr_deprecated.h: Likewise.
10579         * lib/unictype/pr_diacritic.h: Likewise.
10580         * lib/unictype/pr_extender.h: Likewise.
10581         * lib/unictype/pr_grapheme_base.h: Likewise.
10582         * lib/unictype/pr_grapheme_extend.h: Likewise.
10583         * lib/unictype/pr_grapheme_link.h: Likewise.
10584         * lib/unictype/pr_id_continue.h: Likewise.
10585         * lib/unictype/pr_id_start.h: Likewise.
10586         * lib/unictype/pr_ideographic.h: Likewise.
10587         * lib/unictype/pr_ignorable_control.h: Likewise.
10588         * lib/unictype/pr_logical_order_exception.h: Likewise.
10589         * lib/unictype/pr_lowercase.h: Likewise.
10590         * lib/unictype/pr_numeric.h: Likewise.
10591         * lib/unictype/pr_other_alphabetic.h: Likewise.
10592         * lib/unictype/pr_punctuation.h: Likewise.
10593         * lib/unictype/pr_sentence_terminal.h: Likewise.
10594         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10595         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10596         * lib/unictype/pr_unified_ideograph.h: Likewise.
10597         * lib/unictype/pr_uppercase.h: Likewise.
10598         * lib/unictype/pr_xid_continue.h: Likewise.
10599         * lib/unictype/pr_xid_start.h: Likewise.
10600         * lib/unictype/pr_zero_width.h: Likewise.
10601         * lib/unictype/scripts.h: Likewise.
10602         * lib/unictype/scripts_byname.gperf: Likewise.
10603         * lib/unictype/sy_java_ident.h: Likewise.
10604         * lib/unigbrk/gbrkprop.h: Likewise.
10605         * lib/unilbrk/lbrkprop1.h: Likewise.
10606         * lib/unilbrk/lbrkprop2.h: Likewise.
10607         * lib/unilbrk/lbrktables.h: Likewise.
10608         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10609         LBP_CP. Implement rule LB30.
10610         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10611         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10612         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10613         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10614         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10615         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10616         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10617         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10618         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10619         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10620         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10621         bits instead of 16 bits in the code1 and code2 of each composition
10622         rule.
10623         (uc_composition): Update for Unicode 5.2.0.
10624         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10625         * lib/uninorm/decomposition-table2.h: Likewise.
10626         * lib/uniwbrk/wbrkprop.h: Likewise.
10627         * tests/unicase/test-cased.c: Likewise.
10628         * tests/unicase/test-ignorable.c: Likewise.
10629         * tests/unicase/test-uc_tolower.c: Likewise.
10630         * tests/unicase/test-uc_totitle.c: Likewise.
10631         * tests/unicase/test-uc_toupper.c: Likewise.
10632         * tests/unictype/test-categ_C.c: Likewise.
10633         * tests/unictype/test-categ_Cf.c: Likewise.
10634         * tests/unictype/test-categ_Cn.c: Likewise.
10635         * tests/unictype/test-categ_L.c: Likewise.
10636         * tests/unictype/test-categ_Ll.c: Likewise.
10637         * tests/unictype/test-categ_Lm.c: Likewise.
10638         * tests/unictype/test-categ_Lo.c: Likewise.
10639         * tests/unictype/test-categ_Lu.c: Likewise.
10640         * tests/unictype/test-categ_M.c: Likewise.
10641         * tests/unictype/test-categ_Mc.c: Likewise.
10642         * tests/unictype/test-categ_Mn.c: Likewise.
10643         * tests/unictype/test-categ_N.c: Likewise.
10644         * tests/unictype/test-categ_Nd.c: Likewise.
10645         * tests/unictype/test-categ_Nl.c: Likewise.
10646         * tests/unictype/test-categ_No.c: Likewise.
10647         * tests/unictype/test-categ_P.c: Likewise.
10648         * tests/unictype/test-categ_Pd.c: Likewise.
10649         * tests/unictype/test-categ_Po.c: Likewise.
10650         * tests/unictype/test-categ_S.c: Likewise.
10651         * tests/unictype/test-categ_Sc.c: Likewise.
10652         * tests/unictype/test-categ_So.c: Likewise.
10653         * tests/unictype/test-ctype_alnum.c: Likewise.
10654         * tests/unictype/test-ctype_alpha.c: Likewise.
10655         * tests/unictype/test-ctype_graph.c: Likewise.
10656         * tests/unictype/test-ctype_lower.c: Likewise.
10657         * tests/unictype/test-ctype_print.c: Likewise.
10658         * tests/unictype/test-ctype_punct.c: Likewise.
10659         * tests/unictype/test-ctype_upper.c: Likewise.
10660         * tests/unictype/test-decdigit.h: Likewise.
10661         * tests/unictype/test-digit.h: Likewise.
10662         * tests/unictype/test-numeric.h: Likewise.
10663         * tests/unictype/test-pr_alphabetic.c: Likewise.
10664         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10665         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10666         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10667         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10668         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10669         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10670         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10671         * tests/unictype/test-pr_combining.c: Likewise.
10672         * tests/unictype/test-pr_composite.c: Likewise.
10673         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10674         * tests/unictype/test-pr_dash.c: Likewise.
10675         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10676         * tests/unictype/test-pr_deprecated.c: Likewise.
10677         * tests/unictype/test-pr_diacritic.c: Likewise.
10678         * tests/unictype/test-pr_extender.c: Likewise.
10679         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10680         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10681         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10682         * tests/unictype/test-pr_id_continue.c: Likewise.
10683         * tests/unictype/test-pr_id_start.c: Likewise.
10684         * tests/unictype/test-pr_ideographic.c: Likewise.
10685         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10686         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10687         * tests/unictype/test-pr_lowercase.c: Likewise.
10688         * tests/unictype/test-pr_numeric.c: Likewise.
10689         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10690         * tests/unictype/test-pr_punctuation.c: Likewise.
10691         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10692         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10693         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10694         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10695         * tests/unictype/test-pr_uppercase.c: Likewise.
10696         * tests/unictype/test-pr_xid_continue.c: Likewise.
10697         * tests/unictype/test-pr_xid_start.c: Likewise.
10698         * tests/unictype/test-pr_zero_width.c: Likewise.
10699         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10700         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10701         changed behaviour: line breaking is now disallowed between a letter
10702         or '=' and '('.
10703         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10704         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10705         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10706         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10707         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10708         lib/uniwidth/width.c.
10709         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10710         without comments, but with the original copyright notice.
10711         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10712         changes.
10713         * lib/unictype/categ_Cc.h: Likewise.
10714         * lib/unictype/categ_Co.h: Likewise.
10715         * lib/unictype/categ_Cs.h: Likewise.
10716         * lib/unictype/categ_Lt.h: Likewise.
10717         * lib/unictype/categ_Me.h: Likewise.
10718         * lib/unictype/categ_Pc.h: Likewise.
10719         * lib/unictype/categ_Pe.h: Likewise.
10720         * lib/unictype/categ_Pf.h: Likewise.
10721         * lib/unictype/categ_Pi.h: Likewise.
10722         * lib/unictype/categ_Ps.h: Likewise.
10723         * lib/unictype/categ_Sk.h: Likewise.
10724         * lib/unictype/categ_Sm.h: Likewise.
10725         * lib/unictype/categ_Z.h: Likewise.
10726         * lib/unictype/categ_Zl.h: Likewise.
10727         * lib/unictype/categ_Zp.h: Likewise.
10728         * lib/unictype/categ_Zs.h: Likewise.
10729         * lib/unictype/ctype_blank.h: Likewise.
10730         * lib/unictype/ctype_cntrl.h: Likewise.
10731         * lib/unictype/ctype_digit.h: Likewise.
10732         * lib/unictype/ctype_space.h: Likewise.
10733         * lib/unictype/ctype_xdigit.h: Likewise.
10734         * lib/unictype/mirror.h: Likewise.
10735         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10736         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10737         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10738         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10739         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10740         * lib/unictype/pr_bidi_control.h: Likewise.
10741         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10742         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10743         * lib/unictype/pr_bidi_pdf.h: Likewise.
10744         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10745         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10746         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10747         * lib/unictype/pr_format_control.h: Likewise.
10748         * lib/unictype/pr_hex_digit.h: Likewise.
10749         * lib/unictype/pr_hyphen.h: Likewise.
10750         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10751         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10752         * lib/unictype/pr_iso_control.h: Likewise.
10753         * lib/unictype/pr_join_control.h: Likewise.
10754         * lib/unictype/pr_left_of_pair.h: Likewise.
10755         * lib/unictype/pr_line_separator.h: Likewise.
10756         * lib/unictype/pr_math.h: Likewise.
10757         * lib/unictype/pr_non_break.h: Likewise.
10758         * lib/unictype/pr_not_a_character.h: Likewise.
10759         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10760         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10761         * lib/unictype/pr_other_id_continue.h: Likewise.
10762         * lib/unictype/pr_other_id_start.h: Likewise.
10763         * lib/unictype/pr_other_lowercase.h: Likewise.
10764         * lib/unictype/pr_other_math.h: Likewise.
10765         * lib/unictype/pr_other_uppercase.h: Likewise.
10766         * lib/unictype/pr_paired_punctuation.h: Likewise.
10767         * lib/unictype/pr_paragraph_separator.h: Likewise.
10768         * lib/unictype/pr_pattern_syntax.h: Likewise.
10769         * lib/unictype/pr_pattern_white_space.h: Likewise.
10770         * lib/unictype/pr_private_use.h: Likewise.
10771         * lib/unictype/pr_quotation_mark.h: Likewise.
10772         * lib/unictype/pr_radical.h: Likewise.
10773         * lib/unictype/pr_soft_dotted.h: Likewise.
10774         * lib/unictype/pr_space.h: Likewise.
10775         * lib/unictype/pr_titlecase.h: Likewise.
10776         * lib/unictype/pr_variation_selector.h: Likewise.
10777         * lib/unictype/pr_white_space.h: Likewise.
10778         * lib/unictype/sy_c_ident.h: Likewise.
10779         * lib/unictype/sy_c_whitespace.h: Likewise.
10780         * lib/unictype/sy_java_whitespace.h: Likewise.
10781         * modules/uni*/*: Bump version number of expected libunistring version.
10782         Reported by Simon Josefsson.
10783
10784 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10785
10786         useless-if-before-free: fix typo in --help and make the internal,
10787         automatic version date update process work once again.
10788         --help output contained a NUL character instead of the
10789         backslash-zero that was intended.  Also, the "must lie within
10790         the first 8 lines" line is on line 9, and hence not getting
10791         automatically updated.
10792         * build-aux/useless-if-before-free: Fix the former by adding a
10793         backslash, and the latter by condensing the three lines of what-it-does
10794         to a single line, leaving one line of slack for the future.
10795
10796 2011-01-09  Bruno Haible  <bruno@clisp.org>
10797
10798         uniwidth/width: Fix width of U+1D173..U+1D17A.
10799         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10800         symbolic_width, output_width_property_test): New functions.
10801         (main): Invoke output_nonspacing_property, output_width_property_test.
10802         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10803         U+1D173..U+1D17A.
10804         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10805         1.
10806         * modules/uniwidth/*: Bump version number of expected libunistring
10807         version.
10808         * modules/unilbrk/*: Likewise.
10809
10810 2011-01-08  Bruno Haible  <bruno@clisp.org>
10811
10812         uninorm tests: Preserve copyright of Unicode data file.
10813         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10814         Mention modifications.
10815
10816 2011-01-08  Bruno Haible  <bruno@clisp.org>
10817
10818         gen-uni-tables: Prepare for Unicode 5.2.0.
10819         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10820         (debug_output_lbp, output_lbp): Update.
10821
10822 2011-01-08  Bruno Haible  <bruno@clisp.org>
10823
10824         unilbrk: Clarify gen-uni-tables.c code.
10825         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10826         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10827         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10828
10829 2011-01-07  Bruno Haible  <bruno@clisp.org>
10830
10831         strtod: Restore errno when successfully parsing Infinity or NaN.
10832         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10833         restore the original errno.
10834
10835 2011-01-07  Bruno Haible  <bruno@clisp.org>
10836
10837         remove test: Avoid failure on HP-UX 11.
10838         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10839
10840 2011-01-07  Bruno Haible  <bruno@clisp.org>
10841
10842         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10843         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10844         error code.
10845
10846 2011-01-07  Pádraig Brady <P@draigBrady.com>
10847
10848         ignore-value: fixup comments, and add Eric Blake
10849         as an author since he rewrote the macros.
10850         * lib/ignore-value.h (ignore_value):  State that
10851         we now support aggregates.  Also specify exactly
10852         when the GCC warn_unused_result feature was added.
10853
10854 2011-01-06  Eric Blake  <eblake@redhat.com>
10855
10856         ignore-value: support aggregate types
10857         * lib/ignore-value.h (ignore_value): Provide separate gcc
10858         definition.
10859         * modules/ignore-value-tests: New test module.
10860         * tests/test-ignore-value.c: New test.
10861
10862         maint.mk: improve sc_prohibit_strcmp regex
10863         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10864         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10865         definition of STRNEQ.
10866
10867         signal: work around Haiku issue with SIGBUS
10868         * lib/siglist.h: Add comment.
10869         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
10870         strsignal's favoring of SIGSEGV.
10871         * tests/test-signal.c (main): Avoid test failure.
10872         * doc/posix-headers/signal.texi (signal.h): Document the issue.
10873         Reported by Scott McCreary.
10874
10875         maint.mk: add pre-release check to ensure submodule commits are public
10876         * top/maint.mk (public-submodule-commit): New rule.
10877         (submodule-checks): New variable.
10878         (alpha beta stable): Depend on the variable.
10879
10880 2011-01-05  Pádraig Brady <P@draigBrady.com>
10881         and Jim Meyering  <meyering@redhat.com>
10882
10883         ignore-value: make ignore_value more generic; deprecate ignore_ptr
10884         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
10885         (ATTRIBUTE_DEPRECATED): Define.
10886         (_ignore_case): New function.
10887         (ignore_value): New macro, to replace the old function.
10888         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
10889         * modules/ignore-value (Depends-on): Add stdint.
10890
10891 2011-01-04  Eric Blake  <eblake@redhat.com>
10892
10893         doc: regenerate INSTALL
10894         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
10895         @firstparagraphindent support, now that autoconf dropped it.
10896         (INSTALL_PRELUDE): Reinstate old macro.
10897         * doc/install.texi: Resync from autoconf.
10898         * doc/INSTALL: Reflect recent autoconf update.
10899         * doc/INSTALL.ISO: Likewise.
10900         * doc/INSTALL.UTF-8: Likewise.
10901         Reported by Karl Berry.
10902
10903 2011-01-04  Bruce Korb  <address@hidden>
10904
10905         git-version-gen: avoid a sub-shell
10906         * build-aux/git-version-gen: Redirect stderr in `...` via
10907         "exec 2>...", rather than via an added sub-shell.
10908
10909 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
10910
10911         git-version-gen: use (...) rather than sh -c '...'
10912         * build-aux/git-version-gen: Rather than hard-coding a shell's name
10913         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
10914
10915 2011-01-03  Jim Meyering  <meyering@redhat.com>
10916
10917         git-version-gen: convert leading TABs to spaces
10918         * build-aux/git-version-gen: Expand leading TABs.
10919
10920         git-version-gen: handle failed "git rev-list"
10921         * build-aux/git-version-gen: Rather than leaking a "fatal" error
10922         from git and proceeding as if it had succeeded but printed no SHA1
10923         checksums, suppress the diagnostic and handle the failure.
10924         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
10925
10926         git-version-gen: include command name in one more diagnostic
10927         * build-aux/git-version-gen: When the required .tarball-version file
10928         was missing or unreadable, you might see the diagnostic from "cat",
10929         but no trace of the name of the invoking script.  Now, you still see
10930         the diagnostic from cat, but also get one from "git-version-gen: ".
10931         Inspired by a patch from Bruce Korb.
10932
10933         update-copyright: adjust test to match changed code
10934         * tests/test-update-copyright.sh: Change test's expected output
10935         to match new actual output.
10936
10937 2011-01-02  Bruno Haible  <bruno@clisp.org>
10938
10939         getlogin_r: Avoid test failure on HP-UX 11.
10940         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
10941         ERANGE when the second argument is zero.
10942         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
10943         portability problem.
10944
10945 2011-01-02  Bruce Korb  <bkorb@gnu.org>
10946
10947         * build-aux/update-copyright: doc Simon's changes
10948
10949 2011-01-02  Simon Josefsson  <simon@josefsson.org>
10950
10951         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
10952         environment variable.
10953
10954 2011-01-02  Bruno Haible  <bruno@clisp.org>
10955
10956         unigbrk: Avoid gcc warnings.
10957         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
10958         unused variable.
10959         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
10960         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
10961         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
10962         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
10963         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
10964         Change type of first argument to 'const char *'.
10965         (main): Remove unused variable.
10966         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
10967         type of first argument to 'const char *'.
10968         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
10969         Likewise.
10970         (main): Change type of variable 's'.
10971         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
10972         to 'int'.
10973
10974 2011-01-02  Bruno Haible  <bruno@clisp.org>
10975
10976         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
10977         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
10978         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
10979         bug.
10980         * lib/pwrite.c: Undo 2010-12-31 patch.
10981         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
10982
10983 2011-01-02  Bruno Haible  <bruno@clisp.org>
10984
10985         pread: Fix test whether it works.
10986         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
10987
10988 2011-01-02  Bruno Haible  <bruno@clisp.org>
10989
10990         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
10991         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
10992         ends in "6". Don't require a specific month name. Try also the locale
10993         names found on HP-UX 11 and Solaris 7.
10994
10995 2011-01-02  Bruno Haible  <bruno@clisp.org>
10996
10997         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
10998         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
10999         C linkage.
11000         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
11001
11002 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11003
11004         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
11005         for consistency, since the "cluster" term is not used elsewhere.
11006         * lib/unigbrk.in.h: Update name.
11007         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
11008         * lib/unigbrk/u16-grapheme-next.c: Update name.
11009         * lib/unigbrk/u16-grapheme-prev.c: Update name.
11010         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
11011         * lib/unigbrk/u32-grapheme-next.c: Update name.
11012         * lib/unigbrk/u32-grapheme-prev.c: Update name.
11013         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
11014         * lib/unigbrk/u8-grapheme-next.c: Update name.
11015         * lib/unigbrk/u8-grapheme-prev.c: Update name.
11016         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
11017         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
11018         Suggested by Bruno Haible.
11019
11020 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11021
11022         Remove module 'u8-grapheme-len' as too redundant with
11023         'u8-grapheme-next'.
11024         * modules/unigbrk/u8-grapheme-len: Delete file.
11025         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
11026         * lib/unigbrk.in.h: Remove prototype for deleted function.
11027         * lib/unigbrk/u8-grapheme-len.c: Delete file.
11028         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
11029
11030         Remove module 'u16-grapheme-len' as too redundant with
11031         'u16-grapheme-next'.
11032         * modules/unigbrk/u16-grapheme-len: Delete file.
11033         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
11034         * lib/unigbrk.in.h: Remove prototype for deleted function.
11035         * lib/unigbrk/u16-grapheme-len.c: Delete file.
11036         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
11037
11038         Remove module 'u32-grapheme-len' as too redundant with
11039         'u32-grapheme-next'.
11040         * modules/unigbrk/u32-grapheme-len: Delete file.
11041         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
11042         * lib/unigbrk.in.h: Remove prototype for deleted function.
11043         * lib/unigbrk/u32-grapheme-len.c: Delete file.
11044         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
11045
11046         Suggested by Bruno Haible.
11047
11048 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11049
11050         * unigbrk.in.h: Fix typo: "ben" => "been".
11051         Reported by Bruno Haible.
11052
11053 2011-01-01  Jim Meyering  <meyering@redhat.com>
11054
11055         maint: update almost all copyright ranges to include 2011
11056         Run the new "make update-copyright" rule.
11057
11058 2011-01-01  Jim Meyering  <meyering@redhat.com>
11059
11060         maint: update-copyright: exempt doc/INSTALL*
11061         * Makefile (update-copyright): Also exclude doc/INSTALL*,
11062         since they are generated.  Suggested by Bruno Haible.
11063
11064 2011-01-01  Jim Meyering  <meyering@redhat.com>
11065
11066         maint: refine the update-copyright rule
11067         * Makefile (update-copyright): Also exclude any file that includes
11068         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
11069         code that merely generates the comment.
11070
11071 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11072
11073         New module 'u8-grapheme-len'.
11074         * modules/unigbrk/u8-grapheme-len: New file.
11075         * modules/unigbrk/u8-grapheme-len-tests: New file.
11076         * lib/unigbrk.in.h: Add prototype for new function.
11077         * lib/unigbrk/u8-grapheme-len.c: New file.
11078         * tests/unigbrk/test-u8-grapheme-len.c: New file.
11079
11080         New module 'u16-grapheme-len'.
11081         * modules/unigbrk/u16-grapheme-len: New file.
11082         * modules/unigbrk/u16-grapheme-len-tests: New file.
11083         * lib/unigbrk.in.h: Add prototype for new function.
11084         * lib/unigbrk/u16-grapheme-len.c: New file.
11085         * tests/unigbrk/test-u16-grapheme-len.c: New file.
11086
11087         New module 'u32-grapheme-len'.
11088         * modules/unigbrk/u32-grapheme-len: New file.
11089         * modules/unigbrk/u32-grapheme-len-tests: New file.
11090         * lib/unigbrk.in.h: Add prototype for new function.
11091         * lib/unigbrk/u32-grapheme-len.c: New file.
11092         * tests/unigbrk/test-u32-grapheme-len.c: New file.
11093
11094         New module 'u8-grapheme-next'.
11095         * modules/unigbrk/u8-grapheme-next: New file.
11096         * modules/unigbrk/u8-grapheme-next-tests: New file.
11097         * lib/unigbrk.in.h: Add prototype for new function.
11098         * lib/unigbrk/u8-grapheme-next.c: New file.
11099         * tests/unigbrk/test-u8-grapheme-next.c: New file.
11100
11101         New module 'u16-grapheme-next'.
11102         * modules/unigbrk/u16-grapheme-next: New file.
11103         * modules/unigbrk/u16-grapheme-next-tests: New file.
11104         * lib/unigbrk.in.h: Add prototype for new function.
11105         * lib/unigbrk/u16-grapheme-next.c: New file.
11106         * tests/unigbrk/test-u16-grapheme-next.c: New file.
11107
11108         New module 'u32-grapheme-next'.
11109         * modules/unigbrk/u32-grapheme-next: New file.
11110         * modules/unigbrk/u32-grapheme-next-tests: New file.
11111         * lib/unigbrk.in.h: Add prototype for new function.
11112         * lib/unigbrk/u32-grapheme-next.c: New file.
11113         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11114
11115         New module 'u8-grapheme-prev'.
11116         * modules/unigbrk/u8-grapheme-prev: New file.
11117         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11118         * lib/unigbrk.in.h: Add prototype for new function.
11119         * lib/unigbrk/u8-grapheme-prev.c: New file.
11120         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
11121
11122         New module 'u16-grapheme-prev'.
11123         * modules/unigbrk/u16-grapheme-prev: New file.
11124         * modules/unigbrk/u16-grapheme-prev-tests: New file.
11125         * lib/unigbrk.in.h: Add prototype for new function.
11126         * lib/unigbrk/u16-grapheme-prev.c: New file.
11127         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
11128
11129         New module 'u32-grapheme-prev'.
11130         * modules/unigbrk/u32-grapheme-prev: New file.
11131         * modules/unigbrk/u32-grapheme-prev-tests: New file.
11132         * lib/unigbrk.in.h: Add prototype for new function.
11133         * lib/unigbrk/u32-grapheme-prev.c: New file.
11134         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
11135
11136         New module 'u8-grapheme-breaks'.
11137         * modules/unigbrk/u8-grapheme-breaks: New file.
11138         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
11139         * lib/unigbrk.in.h: Add prototype for new function.
11140         * lib/unigbrk/u8-grapheme-breaks.c: New file.
11141         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
11142
11143         New module 'u16-grapheme-breaks'.
11144         * modules/unigbrk/u16-grapheme-breaks: New file.
11145         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
11146         * lib/unigbrk.in.h: Add prototype for new function.
11147         * lib/unigbrk/u16-grapheme-breaks.c: New file.
11148         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
11149
11150         New module 'u32-grapheme-breaks'.
11151         * modules/unigbrk/u32-grapheme-breaks: New file.
11152         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
11153         * lib/unigbrk.in.h: Add prototype for new function.
11154         * lib/unigbrk/u32-grapheme-breaks.c: New file.
11155         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
11156
11157         New module 'ulc-grapheme-breaks'.
11158         * modules/unigbrk/ulc-grapheme-breaks: New file.
11159         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
11160         * m4/locale-ar.m4: New file.
11161         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
11162         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
11163         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
11164
11165 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11166
11167         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
11168         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
11169         modified how this file was generated before I initially submitted
11170         the module, but failed to regenerate it.  This meant that several
11171         of the level2 entries were wrong.
11172         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
11173         Remove the division-by-2 that is folded into the table now that
11174         gbrkprop.h has been regenerated properly.  Now -1 entries are
11175         handled correctly.
11176
11177         New module 'unigbrk/uc-gbrk-prop-tests'.
11178         * modules/unigbrk/uc-gbrk-prop-tests: New file.
11179         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
11180         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
11181         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
11182
11183 2011-01-01  Bruno Haible  <bruno@clisp.org>
11184
11185         Avoid use of hexadecimal escapes.
11186         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
11187         instead of hexadecimal escapes.
11188
11189 2011-01-01  Jim Meyering  <meyering@redhat.com>
11190
11191         maint: new rule to update copyright year ranges
11192         * Makefile (update-copyright): New rule.
11193
11194         maint: indent with TABs in Makefile
11195         * Makefile: Expand leading sequences of spaces to TABs
11196
11197         version-etc: update the copyright year it reports
11198         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
11199
11200 2010-12-31  Bruno Haible  <bruno@clisp.org>
11201
11202         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
11203         * lib/isfinite.c (zerof, zerod, zerol): New variables.
11204         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
11205         zero.
11206
11207 2010-12-31  Bruno Haible  <bruno@clisp.org>
11208
11209         pwrite: Work around HP-UX 11.11 bug.
11210         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
11211         works and set REPLACE_PWRITE if not.
11212         * lib/pwrite.c (pwrite): Add an implementation that uses the system
11213         function.
11214         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
11215
11216 2010-12-31  Bruno Haible  <bruno@clisp.org>
11217
11218         pread: Work around HP-UX 11 bugs.
11219         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
11220         and set REPLACE_PREAD if not.
11221         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
11222
11223 2010-12-31  Eric Blake  <eblake@redhat.com>
11224
11225         nl_langinfo: fix YESEXPR on Irix 6.5
11226         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
11227         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
11228         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
11229         it.
11230
11231 2010-12-31  Bruno Haible  <bruno@clisp.org>
11232
11233         iconv: Document HP-UX 11 bug.
11234         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
11235
11236 2010-12-31  Bruno Haible  <bruno@clisp.org>
11237
11238         ldexpl: Fix link error on HP-UX 11.
11239         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
11240         LDEXPL_LIBM, using $ISNANL_LIBM.
11241
11242 2010-12-31  Eric Blake  <eblake@redhat.com>
11243
11244         ftello: avoid compilation failure with SunStudio c89
11245         * lib/ftello.c (ftello): Use lseek, not llseek.
11246
11247         tests: avoid failing coreutils tests on cygwin
11248         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
11249         (create_exe_shims_): Return 0 when skipping.
11250
11251 2010-12-31  Bruno Haible  <bruno@clisp.org>
11252
11253         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
11254         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
11255
11256 2010-12-31  Bruno Haible  <bruno@clisp.org>
11257
11258         waitpid: Fix link error in C++ mode.
11259         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
11260
11261 2010-12-31  Bruno Haible  <bruno@clisp.org>
11262
11263         isnan: Use GCC built-ins when possible.
11264         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
11265         __builtin_isnan.
11266         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
11267         (isnan): Define using GCC built-ins for GCC >= 4.0.
11268
11269 2010-12-31  Bruno Haible  <bruno@clisp.org>
11270
11271         isnand: Fix mistake.
11272         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
11273         __builtin_isnand.
11274
11275 2010-12-31  Bruno Haible  <bruno@clisp.org>
11276
11277         open: Avoid C++ error on HP-UX 11.
11278         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
11279
11280 2010-12-31  Bruno Haible  <bruno@clisp.org>
11281
11282         time_r: Add missing declarations on HP-UX 11.
11283         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
11284         instead of HAVE_LOCALTIME_R.
11285         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
11286         HAVE_LOCALTIME_R always.
11287         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
11288         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
11289         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
11290         HAVE_LOCALTIME_R.
11291         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
11292         * doc/posix-functions/localtime_r.texi: Likewise.
11293
11294 2010-12-29  Eric Blake  <eblake@redhat.com>
11295
11296         mountlist: tweak previous commit
11297         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11298         Reported by Paul Eggert.
11299
11300         mountlist: fix local drive detection on cygwin
11301         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11302         that works for cygwin.
11303
11304 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11305
11306         ftoastr, snprintf: ftoastr + snprintf module
11307         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11308         since the snprintf module now should be good enough here.
11309         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11310         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11311         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11312         GNULIB_SNPRINTF only for the test directory, and the latter
11313         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11314         seems to suffice by itself.
11315
11316 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11317
11318         alloca: one step towards thread-safety
11319         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11320         need for a static variable.  All callers changed.  This does not
11321         make the alloca replacement thread-safe, but it's one step.
11322
11323         tests: minor indenting change
11324         * tests/init.sh: Sync from coreutils housekeeping patch
11325         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11326         to keep lines within 80 columns.
11327
11328 2010-12-28  Jim Meyering  <meyering@redhat.com>
11329
11330         regex: don't infloop on persistent failing calloc
11331         * lib/regexec.c (build_trtable): Return failure indication upon
11332         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11333         In glibc, this was fixed for version 2.13:
11334         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11335
11336 2010-12-28  Bruno Haible  <bruno@clisp.org>
11337             Paul Eggert <eggert@cs.ucla.edu>
11338
11339         linkat: Make implementation robust against system behaviour variations.
11340         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11341         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11342         way, and to -2 if it needs a generic runtime test.
11343         * lib/linkat.c (solaris_optimized_link_immediate,
11344         solaris_optimized_link_follow): New functions.
11345         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11346         (check_same_link): Use it.
11347
11348 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11349
11350         New module 'unigbrk/base'.
11351         * modules/unigbrk/base: New file.
11352         * lib/unigbrk.in.h: New file.
11353
11354         New module 'unigbrk/uc-gbrk-prop'.
11355         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11356         * modules/unigbrk/uc-gbrk-prop: New file.
11357         * lib/unigbrk/gbrkprop.h: New file.
11358         * lib/unigbrk/uc-gbrk-prop.c: New file.
11359
11360         New module 'unigbrk/uc-is-grapheme-break'.
11361         * modules/unigbrk/uc-is-grapheme-break: New file.
11362         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11363         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11364         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11365         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11366         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11367
11368         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11369
11370 2010-12-27  Bruno Haible  <bruno@clisp.org>
11371
11372         linkat test: Avoid failure on Solaris 11 2010-11.
11373         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11374
11375 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11376
11377         utimens: work around glibc rounding bug on more platforms
11378         * lib/utimens.c (fdutimens): Work around rounding bug even if
11379         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11380         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11381
11382 2010-12-27  Bruno Haible  <bruno@clisp.org>
11383
11384         select tests: Improve comments.
11385         * tests/test-select.c (do_select): Add comments.
11386
11387 2010-12-27  Bruno Haible  <bruno@clisp.org>
11388
11389         select tests: Safer way of handling timeout.
11390         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11391         at every invocation.
11392
11393 2010-12-27  Bruno Haible  <bruno@clisp.org>
11394
11395         select tests: Use 'bool' where appropriate.
11396         * tests/test-select.c (connect_to_socket): Change argument type to
11397         'bool'.
11398
11399 2010-12-27  Bruno Haible  <bruno@clisp.org>
11400
11401         select tests: Use existing modules.
11402         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11403         (configure.ac): Don't test for unistd.h.
11404         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11405         declared in <unistd.h>.
11406
11407 2010-12-27  Bruno Haible  <bruno@clisp.org>
11408
11409         mbrtowc: Work around a Solaris 7 bug.
11410         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11411         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11412         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11413         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11414         MBRTOWC_NULL_ARG1_BUG.
11415         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11416         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11417         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11418         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11419
11420 2010-12-27  Jim Meyering  <meyering@redhat.com>
11421
11422         read-file.c: tweak syntax
11423         * lib/read-file.c (fread_file): Remove space after "*" in function
11424         definitions.
11425
11426 2010-12-27  Bruno Haible  <bruno@clisp.org>
11427
11428         times test: Avoid gcc warnings on OSF/1.
11429         * tests/test-times.c (main): Cast printf arguments from clock_t to
11430         'long int'.
11431
11432 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11433
11434         utimens: work around glibc rounding bug on older Linux kernels
11435         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11436         on Linux with a glibc whose utimes might not work, then work
11437         around a longstanding glibc bug involving rounding rather than
11438         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11439         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11440
11441 2010-12-26  Bruno Haible  <bruno@clisp.org>
11442
11443         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11444         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11445         _GL_CXXALIAS_SYS.
11446         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11447
11448 2010-12-26  Bruno Haible  <bruno@clisp.org>
11449
11450         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11451         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11452         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11453         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11454         looking for the declaration.
11455         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11456         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11457         problem.
11458         * doc/posix-functions/inet_pton.texi: Likewise.
11459
11460 2010-12-26  Bruno Haible  <bruno@clisp.org>
11461
11462         arpa_inet: Use the common idioms with C++ support.
11463         * lib/arpa_inet.in.h: Include c++defs.h.
11464         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11465         support.
11466         * modules/arpa_inet (Depends-on): Add c++defs.
11467         (Makefile.am): Substitute the contents of c++defs.h.
11468         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11469         * modules/arpa_inet-c++-tests: New file.
11470         * tests/test-arpa_inet-c++.cc: New file.
11471
11472 2010-12-25  Bruno Haible  <bruno@clisp.org>
11473
11474         Fix more C++ link errors on Solaris 8.
11475         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11476         $(LIB_EACCESS).
11477         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11478         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11479         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11480         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11481         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11482
11483 2010-12-25  Bruno Haible  <bruno@clisp.org>
11484
11485         printf-posix: Fix link error when a non-GCC compiler is used.
11486         * lib/stdio.in.h (printf): When not using GCC, override printf
11487         correctly.
11488         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11489
11490 2010-12-25  Bruno Haible  <bruno@clisp.org>
11491
11492         strerror_r-posix: Update doc.
11493         * doc/posix-functions/strerror_r.texi: Update doc about the return
11494         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11495
11496 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11497
11498         utimens: simplify the logic of the previous change
11499         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11500         This should not affect whether the test succeeds or fails.
11501
11502         utimens: configure better on hosts with NFS clock skew
11503         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11504         uses the clock of the local host.  It might use the clock of the
11505         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11506         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11507
11508 2010-12-25  Bruno Haible  <bruno@clisp.org>
11509
11510         ptsname test: Avoid failure on Solaris.
11511         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11512         open a pseudo-terminal; don't use BSD-style ptys.
11513         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11514
11515 2010-12-25  Bruno Haible  <bruno@clisp.org>
11516
11517         ptsname: Avoid ERANGE failure on some systems.
11518         * lib/ptsname.c (buffer): Increase size.
11519
11520 2010-12-25  Bruno Haible  <bruno@clisp.org>
11521
11522         rename, renameat: Avoid test failures at NFS mounted locations.
11523         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11524         so that subsequent mkdir calls succeed.
11525
11526 2010-12-25  Bruno Haible  <bruno@clisp.org>
11527
11528         iswblank: Fix C++ link error on Solaris 8.
11529         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11530         _GL_FUNCDECL_SYS.
11531
11532 2010-12-25  Bruno Haible  <bruno@clisp.org>
11533
11534         unistd: Fix C++ link error on Solaris 8.
11535         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11536
11537 2010-12-25  Bruno Haible  <bruno@clisp.org>
11538
11539         readlink doc: Mention an old glibc bug.
11540         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11541
11542 2010-12-25  Bruno Haible  <bruno@clisp.org>
11543
11544         fcntl-h: Fix for use of C++ on glibc systems.
11545         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11546         also on glibc systems in C++ mode.
11547         Reported by Gary V. Vaughan <gary@gnu.org>.
11548
11549 2010-12-25  Bruno Haible  <bruno@clisp.org>
11550
11551         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11552         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11553
11554 2010-12-25  Bruno Haible  <bruno@clisp.org>
11555
11556         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11557         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11558         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11559         test whether truncl works according to ISO C 99 with IEC 60559.
11560         * m4/truncl-ieee.m4: New file.
11561         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11562         m4/signbit.m4.
11563         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11564
11565 2010-12-25  Bruno Haible  <bruno@clisp.org>
11566
11567         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11568         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11569         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11570         test whether ceill works according to ISO C 99 with IEC 60559.
11571         * m4/ceill-ieee.m4: New file.
11572         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11573         m4/signbit.m4.
11574         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11575
11576 2010-12-25  Bruno Haible  <bruno@clisp.org>
11577
11578         Ensure all prerequisites of <wchar.h> are included.
11579         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11580         before <wchar.h>.
11581         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11582         gl_MBRLEN_NUL_RETVAL): Likewise.
11583         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11584         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11585         AC_FUNC_MBRTOWC): Likewise.
11586         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11587         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11588         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11589         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11590         Likewise.
11591         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11592         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11593         (gl_WCHAR_H): Improve comments.
11594         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11595
11596 2010-12-25  Bruno Haible  <bruno@clisp.org>
11597
11598         strtok_r: Fix C syntax error in autoconf macro.
11599         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11600         characters in test program.
11601
11602 2010-12-24  Bruno Haible  <bruno@clisp.org>
11603
11604         ceil, trunc, round: Fix gcc warnings.
11605         * lib/ceil.c (MIN): Undefine before redefining.
11606         * lib/trunc.c (MIN): Likewise.
11607         * lib/round.c (MIN): Likewise.
11608         Include <math.h> first.
11609
11610 2010-12-24  Bruno Haible  <bruno@clisp.org>
11611
11612         select tests: Avoid failures on OSF/1 5.1.
11613         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11614         failure of closing the last socket; it may fail with ECONNRESET.
11615
11616 2010-12-24  Eric Blake  <eblake@redhat.com>
11617
11618         stdint: avoid HP-UX 10.20 preprocessor bug
11619         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11620         than #if.
11621         * tests/test-floor2.c (main): Likewise.
11622         Reported by Peter O'Gorman.
11623
11624         pipe: make obsoletion transition easier
11625         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11626         * modules/pipe (Files): Include revived file.
11627         (Include): Drop reference, to mirror getdate's behavior.
11628
11629 2010-12-24  Bruno Haible  <bruno@clisp.org>
11630
11631         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11632         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11633         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11634         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11635
11636 2010-12-24  Bruno Haible  <bruno@clisp.org>
11637
11638         gethostname: Ensure declaration on NonStop Kernel.
11639         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11640         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11641
11642 2010-12-24  Bruno Haible  <bruno@clisp.org>
11643
11644         sys_select: Ensure all necessary types on NonStop Kernel.
11645         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11646         include <sys/time.h>.
11647         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11648         NonStop Kernel.
11649         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11650
11651 2010-12-24  Bruno Haible  <bruno@clisp.org>
11652
11653         sys_select: Remove unneeded include.
11654         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11655         have <sys/select.h>.
11656
11657 2010-12-24  Bruno Haible  <bruno@clisp.org>
11658
11659         gethostname: Provide a fallback for HOST_NAME_MAX.
11660         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11661         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11662         instead.
11663         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11664
11665 2010-12-24  Bruno Haible  <bruno@clisp.org>
11666
11667         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11668         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11669         (SA_RESTART): Likewise.
11670         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11671
11672 2010-12-24  Bruno Haible  <bruno@clisp.org>
11673
11674         signal: Define NSIG.
11675         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11676         * tests/test-signal.c (nsig): New variable.
11677         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11678
11679 2010-12-24  Bruno Haible  <bruno@clisp.org>
11680
11681         rename, renameat: Avoid test failures on OSF/1 5.1.
11682         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11683         alternative error codes.
11684         * tests/test-renameat.c (main): Likewise.
11685
11686 2010-12-24  Bruno Haible  <bruno@clisp.org>
11687
11688         *printf: Detect large precisions bug on Solaris 10/SPARC.
11689         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11690         by Paul Eggert.
11691         * tests/test-snprintf-posix.h (test_function): Add this test code here
11692         too.
11693         * tests/test-sprintf-posix.h (test_function): Likewise.
11694         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11695         * tests/test-vasprintf-posix.c (test_function): Likewise.
11696         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11697         around by gnulib.
11698         * doc/posix-functions/printf.texi: Likewise.
11699         * doc/posix-functions/snprintf.texi: Likewise.
11700         * doc/posix-functions/sprintf.texi: Likewise.
11701         * doc/posix-functions/vfprintf.texi: Likewise.
11702         * doc/posix-functions/vprintf.texi: Likewise.
11703         * doc/posix-functions/vsnprintf.texi: Likewise.
11704         * doc/posix-functions/vsprintf.texi: Likewise.
11705         * doc/posix-functions/dprintf.texi: Undo last commit.
11706         * doc/posix-functions/vdprintf.texi: Likewise.
11707
11708 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11709
11710         tests: port test-fdutimensat.c to Solaris 8
11711         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11712         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11713         On Solaris 8, it fails with errno == ENOSYS, because there is no
11714         futimens (so it can't use the fd), and there is no lutimens (so it
11715         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11716
11717         vsnprintf: make more consistent with snprintf; doc fixes
11718
11719         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11720         the byte count return problem was promoted from the snprintf-posix
11721         to the snprintf module.
11722         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11723         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11724         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11725         * tests/test-snprintf.c (main): Check the byte count returned.
11726         * tests/test-vsnprintf.c (main): Likewise.
11727
11728 2010-12-23  Eric Blake  <eblake@redhat.com>
11729
11730         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11731         * modules/sigpipe (License): Relax license.
11732
11733 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11734
11735         doc: document Solaris printf bug with large float precisions
11736         * doc/posix-functions/dprintf.texi (dprintf):
11737         * doc/posix-functions/fprintf.texi (fprintf):
11738         * doc/posix-functions/printf.texi (printf):
11739         * doc/posix-functions/snprintf.texi (snprintf):
11740         * doc/posix-functions/sprintf.texi (sprintf):
11741         * doc/posix-functions/vdprintf.texi (vdprintf):
11742         * doc/posix-functions/vfprintf.texi (vfprintf):
11743         * doc/posix-functions/vprintf.texi (vprintf):
11744         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11745         * doc/posix-functions/vsprintf.texi (vsprintf):
11746         Mention that these functions mishandle large floating point
11747         precisions on Solaris 10.  The same bug is also present in Solaris
11748         8, and I assume earlier.  This causes "cd gnulib-tests; make
11749         check" to fail on Solaris 8 (and I assume, later) when building
11750         the latest coreutils, in test-vasprintf-posix's call to
11751         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11752         the wide flavors (e.g., wprintf) so this patch just updates the
11753         documentation for the narrow ones.
11754
11755         test-posixtm.c: add two tests
11756         * tests/test-posixtm.c: Add two tests, to highlight the
11757         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11758         around this bug; this is merely to document it.
11759
11760 2010-12-22  Bruno Haible  <bruno@clisp.org>
11761
11762         getlogin_r: Work around portability problem on OSF/1.
11763         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11764         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11765         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11766         test for a truncated result.
11767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11768         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11769         * modules/getlogin_r (Depends-on): Add memchr.
11770         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11771
11772 2010-12-22  Bruno Haible  <bruno@clisp.org>
11773
11774         ptsname: Avoid test failure on OSF/1 5.1.
11775         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11776         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11777         (same_slave): New function.
11778         (main): Use it to compare ptsname's result with the expected file name.
11779
11780 2010-12-22  Bruno Haible  <bruno@clisp.org>
11781
11782         Port extended stdio modules to HP NonStop Kernel.
11783         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11784         macros.
11785         * lib/fbufmode.c: Update comments.
11786         * lib/fflush.c: Likewise.
11787         * lib/fpurge.c: Likewise.
11788         * lib/freadable.c: Likewise.
11789         * lib/freadahead.c: Likewise.
11790         * lib/freading.c: Likewise.
11791         * lib/freadptr.c: Likewise.
11792         * lib/freadseek.c: Likewise.
11793         * lib/fseeko.c: Likewise.
11794         * lib/fseterr.c: Likewise.
11795         * lib/fwritable.c: Likewise.
11796         * lib/fwriting.c: Likewise.
11797         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11798
11799 2010-12-22  Bruno Haible  <bruno@clisp.org>
11800
11801         ttyname_r: Work around bug on OSF/1 5.1.
11802         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11803         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11804         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11805         present.
11806         * lib/ttyname_r.c (ttyname_r): Update comments.
11807
11808 2010-12-22  Bruno Haible  <bruno@clisp.org>
11809
11810         round: Implement result sign according to IEEE 754.
11811         * lib/round.c (MIN, MINUS_ZERO): New macros.
11812         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11813         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11814         * tests/test-round-ieee.c (main): Likewise.
11815         * tests/test-roundl-ieee.c (main): Likewise.
11816
11817         trunc: Implement result sign according to IEEE 754.
11818         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11819         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11820         * tests/test-trunc2.c: Include minus-zero.h.
11821         (MINUS_ZERO): New macro.
11822         (trunc_reference): Keep in sync with lib/trunc.c.
11823         * tests/test-truncf2.c: Include minus-zero.h.
11824         (MINUS_ZERO): New macro.
11825         (truncf_reference): Keep in sync with lib/trunc.c.
11826         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11827         * tests/test-trunc-ieee.c (main): Likewise.
11828         * tests/test-truncl-ieee.c (main): Likewise.
11829
11830         ceil: Implement result sign according to IEEE 754.
11831         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11832         (FUNC): Return -0.0 for -1 < x < 0.
11833         * tests/test-ceil2.c: Include minus-zero.h.
11834         (MINUS_ZERO): New macro.
11835         (ceil_reference): Keep in sync with lib/ceil.c.
11836         * tests/test-ceilf2.c: Include minus-zero.h.
11837         (MINUS_ZERO): New macro.
11838         (ceilf_reference): Keep in sync with lib/ceil.c.
11839         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11840         * tests/test-ceil-ieee.c (main): Likewise.
11841         * tests/test-ceill-ieee.c (main): Likewise.
11842
11843         floor: Implement result sign according to IEEE 754.
11844         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11845         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11846         * tests/test-floorf2.c (floorf_reference): Likewise.
11847         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11848         * tests/test-floor-ieee.c (main): Likewise.
11849         * tests/test-floorl-ieee.c (main): Likewise.
11850
11851 2010-12-22  Bruno Haible  <bruno@clisp.org>
11852
11853         getaddrinfo: Update doc.
11854         * doc/posix-functions/gai_strerror.texi: Return type is also different
11855         on AIX and HP-UX.
11856
11857 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11858
11859         getaddrinfo, inet_ntop: Update doc for Solaris.
11860         * doc/posix-functions/gai_strerror.texi: Return type is also an
11861         issue on Solaris 9 and earlier.
11862         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11863         on Solaris 10 and earlier.
11864
11865 2010-12-21  Bruno Haible  <bruno@clisp.org>
11866
11867         New module 'roundl-ieee'.
11868         * modules/roundl-ieee: New file.
11869         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
11870         test whether roundl works according to ISO C 99 with IEC 60559.
11871         * m4/roundl-ieee.m4: New file.
11872         * modules/roundl-ieee-tests: New file.
11873         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
11874         * tests/test-roundl.c (main): Remove signbit tests.
11875         * modules/roundl-tests (Depends-on): Remove signbit.
11876         * doc/posix-functions/roundl.texi: Mention the new module.
11877
11878 2010-12-21  Bruno Haible  <bruno@clisp.org>
11879
11880         New module 'truncl-ieee'.
11881         * modules/truncl-ieee: New file.
11882         * modules/truncl-ieee-tests: New file.
11883         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
11884         * tests/test-truncl.c (main): Remove signbit tests.
11885         * modules/truncl-tests (Depends-on): Remove signbit.
11886         * doc/posix-functions/truncl.texi: Mention the new module.
11887
11888 2010-12-21  Bruno Haible  <bruno@clisp.org>
11889
11890         New module 'ceill-ieee'.
11891         * modules/ceill-ieee: New file.
11892         * modules/ceill-ieee-tests: New file.
11893         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
11894         * tests/test-ceill.c (main): Remove signbit tests.
11895         * modules/ceill-tests (Depends-on): Remove signbit.
11896         * doc/posix-functions/ceill.texi: Mention the new module.
11897
11898 2010-12-21  Bruno Haible  <bruno@clisp.org>
11899
11900         New module 'floorl-ieee'.
11901         * modules/floorl-ieee: New file.
11902         * modules/floorl-ieee-tests: New file.
11903         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
11904         * tests/test-floorl.c (main): Remove signbit tests.
11905         * modules/floorl-tests (Depends-on): Remove signbit.
11906         * doc/posix-functions/floorl.texi: Mention the new module.
11907
11908 2010-12-21  Bruno Haible  <bruno@clisp.org>
11909
11910         New module 'round-ieee'.
11911         * modules/round-ieee: New file.
11912         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
11913         whether round works according to ISO C 99 with IEC 60559.
11914         * m4/round-ieee.m4: New file.
11915         * modules/round-ieee-tests: New file.
11916         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
11917         * tests/test-round1.c (main): Remove signbit tests.
11918         * modules/round-tests (Depends-on): Remove 'signbit'.
11919         * doc/posix-functions/round.texi: Mention the new module.
11920
11921 2010-12-21  Bruno Haible  <bruno@clisp.org>
11922
11923         New module 'trunc-ieee'.
11924         * modules/trunc-ieee: New file.
11925         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
11926         whether trunc works according to ISO C 99 with IEC 60559.
11927         * m4/trunc-ieee.m4: New file.
11928         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
11929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
11930         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
11931         * modules/trunc-ieee-tests: New file.
11932         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
11933         * tests/test-trunc1.c (main): Remove signbit tests.
11934         * modules/trunc-tests (Depends-on): Remove 'signbit'.
11935         * doc/posix-functions/trunc.texi: Mention the new module.
11936
11937 2010-12-21  Bruno Haible  <bruno@clisp.org>
11938
11939         New module 'ceil-ieee'.
11940         * modules/ceil-ieee: New file.
11941         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
11942         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
11943         ISO C 99 with IEC 60559.
11944         * m4/ceil-ieee.m4: New file.
11945         * modules/ceil (Files): Add lib/ceil.c.
11946         (Depends-on): Add 'float'.
11947         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11948         * lib/math.in.h (ceil): New declaration.
11949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
11950         REPLACE_CEIL.
11951         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
11952         * modules/ceil-ieee-tests: New file.
11953         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
11954         * tests/test-math-c++.cc: Check the signature of 'ceil'.
11955         * doc/posix-functions/ceil.texi: Mention the new module.
11956
11957 2010-12-21  Bruno Haible  <bruno@clisp.org>
11958
11959         New module 'floor-ieee'.
11960         * modules/floor-ieee: New file.
11961         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
11962         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
11963         ISO C 99 with IEC 60559.
11964         * m4/floor-ieee.m4: New file.
11965         * modules/floor (Files): Add lib/floor.c.
11966         (Depends-on): Add 'float'.
11967         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11968         * lib/math.in.h (floor): New declaration.
11969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
11970         REPLACE_FLOOR.
11971         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
11972         * modules/floor-ieee-tests: New file.
11973         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
11974         * tests/test-math-c++.cc: Check the signature of 'floor'.
11975         * doc/posix-functions/floor.texi: Mention the new module.
11976
11977 2010-12-21  Bruno Haible  <bruno@clisp.org>
11978
11979         New module 'roundf-ieee'.
11980         * modules/roundf-ieee: New file.
11981         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
11982         test whether roundf works according to ISO C 99 with IEC 60559.
11983         * m4/roundf-ieee.m4: New file.
11984         * modules/roundf-ieee-tests: New file.
11985         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
11986         * tests/test-roundf1.c (main): Remove signbit tests.
11987         * modules/roundf-tests (Depends-on): Remove 'signbit'.
11988         * doc/posix-functions/roundf.texi: Mention the new module.
11989
11990 2010-12-21  Bruno Haible  <bruno@clisp.org>
11991
11992         New module 'truncf-ieee'.
11993         * modules/truncf-ieee: New file.
11994         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
11995         test whether truncf works according to ISO C 99 with IEC 60559.
11996         * m4/truncf-ieee.m4: New file.
11997         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
11998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
11999         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
12000         * modules/truncf-ieee-tests: New file.
12001         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
12002         * tests/test-truncf1.c (main): Remove signbit tests.
12003         * modules/truncf-tests (Depends-on): Remove 'signbit'.
12004         * doc/posix-functions/truncf.texi: Mention the new module.
12005
12006 2010-12-21  Bruno Haible  <bruno@clisp.org>
12007
12008         New module 'ceilf-ieee'.
12009         * modules/ceilf-ieee: New file.
12010         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
12011         test whether ceilf works according to ISO C 99 with IEC 60559.
12012         * m4/ceilf-ieee.m4: New file.
12013         * modules/ceilf-ieee-tests: New file.
12014         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
12015         * tests/test-ceilf1.c (main): Remove signbit tests.
12016         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
12017         * doc/posix-functions/ceilf.texi: Mention the new module.
12018
12019 2010-12-21  Bruno Haible  <bruno@clisp.org>
12020
12021         New module 'floorf-ieee'.
12022         * modules/floorf-ieee: New file.
12023         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
12024         test whether floorf works according to ISO C 99 with IEC 60559.
12025         * m4/floorf-ieee.m4: New file.
12026         * modules/floorf-ieee-tests: New file.
12027         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
12028         * tests/test-floorf1.c (main): Remove signbit tests.
12029         * modules/floorf-tests (Depends-on): Remove 'signbit'.
12030         * doc/posix-functions/floorf.texi: Mention the new module.
12031
12032 2010-12-21  Bruno Haible  <bruno@clisp.org>
12033
12034         Support for minus zero in autoconf macros.
12035         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
12036         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
12037         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
12038         * tests/minus-zero.h: Update comments.
12039
12040 2010-12-21  Bruno Haible  <bruno@clisp.org>
12041
12042         Tests for module 'ceil'.
12043         * modules/ceil-tests: New file.
12044         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
12045         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
12046
12047 2010-12-21  Bruno Haible  <bruno@clisp.org>
12048
12049         Tests for module 'floor'.
12050         * modules/floor-tests: New file.
12051         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
12052         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
12053
12054 2010-12-21  Bruno Haible  <bruno@clisp.org>
12055
12056         math: Fix indentation.
12057         * lib/math.in.h (floorf): Fix indentation.
12058
12059 2010-12-21  Bruno Haible  <bruno@clisp.org>
12060
12061         Fix cross-compilation guesses on Solaris.
12062         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
12063         not match "solaris2.10".
12064         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12065         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
12066         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
12067
12068 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12069
12070         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
12071         This fixes a problem observed with the latest coreutils snapshot
12072         that caused a test to fail on Solaris 8.  src/csplit.c's call
12073         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
12074         earlier, instead of returning the number of bytes that would have
12075         been generated; this causes csplit to incorrectly report memory
12076         exhaustion.
12077         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
12078         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
12079         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
12080         comments to match.
12081         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
12082         Fix typo in matching older versions of Solaris: "solaris2.10"
12083         is matched by the shell pattern "solaris2.[0-9]*".  This matters
12084         only for guessing while cross-compiling.
12085         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
12086
12087 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12088
12089         ftoastr: fix comment again
12090         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12091         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
12092         Also, simplify example a bit by using flags = 0.
12093
12094 2010-12-20  Bruno Haible  <bruno@clisp.org>
12095
12096         round*, trunc*: Update documentation regarding glibc.
12097         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
12098         * doc/posix-functions/round.texi: Likewise.
12099         * doc/posix-functions/roundl.texi: Likewise.
12100         * doc/posix-functions/truncf.texi: Likewise.
12101         * doc/posix-functions/trunc.texi: Likewise.
12102         * doc/posix-functions/truncl.texi: Likewise.
12103
12104 2010-12-20  Bruno Haible  <bruno@clisp.org>
12105
12106         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
12107         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
12108         * doc/posix-functions/round.texi: Likewise.
12109         * doc/posix-functions/roundl.texi: Likewise.
12110
12111 2010-12-20  Bruno Haible  <bruno@clisp.org>
12112
12113         ttyname_r: Add missing declaration on HP-UX 11.
12114         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12115         HAVE_TTYNAME_R.
12116         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12117         declared. Set HAVE_TTYNAME_R always.
12118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12119         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
12120         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
12121         HAVE_TTYNAME_R.
12122         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
12123
12124 2010-12-20  Bruno Haible  <bruno@clisp.org>
12125
12126         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
12127         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
12128         * doc/posix-functions/getlogin_r.texi: Likewise.
12129         * tests/test-getlogin.c: Include <errno.h>.
12130         (main): Avoid test failure on HP-UX 11.11.
12131         * tests/test-getlogin_r.c (main): Likewise.
12132
12133 2010-12-20  Bruno Haible  <bruno@clisp.org>
12134
12135         getlogin_r: Add missing declaration on HP-UX 11.
12136         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
12137         declared also when it exists as a function.
12138         * doc/posix-functions/getlogin_r.texi: Document this workaround.
12139
12140 2010-12-20  Bruno Haible  <bruno@clisp.org>
12141
12142         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
12143         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
12144         through wcrtomb.
12145
12146 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12147
12148         ftoastr: fix comment
12149         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12150         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
12151
12152 2010-12-19  Bruno Haible  <bruno@clisp.org>
12153
12154         isnan: Ensure it is a macro.
12155         * lib/math.in.h (isnan): Define as a macro if not already a macro.
12156         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
12157         Solaris.
12158
12159 2010-12-19  Bruno Haible  <bruno@clisp.org>
12160
12161         ldexpl test: Fix link error on OSF/1 5.1.
12162         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
12163
12164 2010-12-19  Bruno Haible  <bruno@clisp.org>
12165
12166         wctype: Make it work in C++ mode on OSF/1 5.1.
12167         * lib/wctype.in.h (iswblank): Declare but not define here.
12168         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
12169         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12170         * modules/wctype (Files): Add lib/iswblank.c.
12171
12172 2010-12-19  Bruno Haible  <bruno@clisp.org>
12173
12174         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
12175         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
12176         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
12177
12178 2010-12-19  Bruno Haible  <bruno@clisp.org>
12179
12180         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
12181         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
12182         _POSIX_PII_SOCKET.
12183         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
12184         * doc/posix-functions/recvfrom.texi: Likewise.
12185         * doc/posix-functions/send.texi: Likewise.
12186         * doc/posix-functions/sendto.texi: Likewise.
12187
12188 2010-12-19  Bruno Haible  <bruno@clisp.org>
12189
12190         tcgetsid: Add missing declaration on OSF/1 5.1.
12191         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
12192         HAVE_TCGETSID.
12193         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
12194         Don't set HAVE_TCGETSID.
12195         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
12196         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
12197         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
12198         HAVE_TCGETSID.
12199         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
12200
12201 2010-12-19  Bruno Haible  <bruno@clisp.org>
12202
12203         stdio: Fix problem with popen() declaration on OSF/1 5.1.
12204         * lib/stdio.in.h: During the include_next statement, let recursive
12205         includes of this file include only the system header file.
12206
12207 2010-12-19  Bruno Haible  <bruno@clisp.org>
12208
12209         iconv_open: Fix regression from 2010-12-04.
12210         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
12211         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
12212
12213 2010-12-19  Bruno Haible  <bruno@clisp.org>
12214
12215         stdbool test: Avoid a gcc warning.
12216         * tests/test-stdbool.c (main): Fail if e1 is false.
12217         Reported by Jim Meyering.
12218
12219 2010-12-19  Jim Meyering  <meyering@redhat.com>
12220
12221         setenv: restore to working order
12222         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
12223         mistakenly removed.
12224         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
12225         HAVE_SETENV.
12226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
12227         HAVE_SETENV.
12228
12229 2010-12-19  Bruno Haible  <bruno@clisp.org>
12230
12231         Document some different function declarations on OSF/1 5.1.
12232         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
12233         * doc/posix-functions/inet_ntop.texi: Likewise.
12234         * doc/posix-functions/gethostname.texi: Likewise.
12235         * lib/unistd.in.h (gethostname): Update comment.
12236
12237 2010-12-19  Bruno Haible  <bruno@clisp.org>
12238
12239         doc: Mention vasprintf-posix module.
12240         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
12241         the 'vasprintf-posix' module.
12242         * doc/glibc-functions/vasprintf.texi: Likewise.
12243
12244 2010-12-19  Bruno Haible  <bruno@clisp.org>
12245
12246         unsetenv: Add missing declaration on OSF/1 5.1.
12247         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
12248         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
12249         Don't set HAVE_UNSETENV. In the test program, set _BSD.
12250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
12251         not HAVE_UNSETENV.
12252         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
12253         HAVE_UNSETENV.
12254         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
12255
12256 2010-12-19  Bruno Haible  <bruno@clisp.org>
12257
12258         setenv: Add missing declaration on OSF/1 5.1.
12259         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
12260         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
12261         declared. Don't set HAVE_SETENV.
12262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
12263         not HAVE_SETENV.
12264         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
12265         HAVE_SETENV.
12266         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
12267
12268 2010-12-19  Bruno Haible  <bruno@clisp.org>
12269
12270         nl_langinfo tests: Avoid gcc warning.
12271         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
12272
12273 2010-12-19  Bruno Haible  <bruno@clisp.org>
12274
12275         mknod: Avoid error in C++ mode on OSF/1 with GCC.
12276         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
12277         _GL_CXXALIAS_SYS.
12278
12279 2010-12-19  Bruno Haible  <bruno@clisp.org>
12280
12281         stdbool: Relax test.
12282         * tests/test-stdbool.c (e): Don't require that casts from a variable's
12283         address to 'bool' work in static initializer, for compilers other than
12284         GCC.
12285
12286 2010-12-19  Bruno Haible  <bruno@clisp.org>
12287
12288         ftello: Add missing declaration on OSF/1 5.1.
12289         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
12290         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
12291         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
12292         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
12293         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
12294
12295 2010-12-19  Bruno Haible  <bruno@clisp.org>
12296
12297         fseeko: Add missing declaration on OSF/1 5.1.
12298         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12299         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12301         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12302         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12303
12304 2010-12-19  Bruno Haible  <bruno@clisp.org>
12305
12306         fchdir: Add missing declaration on OSF/1 5.1.
12307         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12308         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12310         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12311         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12312
12313 2010-12-19  Bruno Haible  <bruno@clisp.org>
12314
12315         relocatable-prog-wrapper: Separate from relocatable-prog.
12316         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12317         uninstall-relocwrapper rule here.
12318         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12319         Reported by Ian Beckwith <ianb@erislabs.net>.
12320
12321 2010-12-19  Bruno Haible  <bruno@clisp.org>
12322
12323         unistr/u8-mbsnlen: Add missing dependency.
12324         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12325         Reported by Ian Beckwith <ianb@erislabs.net>.
12326
12327 2010-12-19  Bruno Haible  <bruno@clisp.org>
12328
12329         iconv: Make it possible again to use this module without 'iconv-h'.
12330         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12331         if it is not defined.
12332         Reported by Ian Beckwith <ianb@erislabs.net>.
12333
12334 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12335
12336         acl: port to Solaris 8 when copying from tmpfs to ufs
12337         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12338         error number.  Problem observed on Solaris 8 with latest
12339         coreutils, with "mv A B", where A is on a tmpfs file system and B
12340         is on a ufs file system.  This caused coreutils' mv/part-symlink
12341         test to fail.
12342
12343         tests: set fail=0 at start
12344         * tests/init.sh (setup_): Move fail=0 initialization here ...
12345         (mktempd_): ... from here, so that tests can rely on fail being
12346         set to 0 initially.  This fixes a problem in coreutils; see:
12347         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12348
12349 2010-12-18  Bruno Haible  <bruno@clisp.org>
12350
12351         memmem-simple: Stylistic changes.
12352         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12353         Fix preprocessor directive indentation.
12354
12355 2010-12-15  Pádraig Brady <P@draigBrady.com>
12356
12357         memmem, memmem-simple: reorganize and expand empty needle check
12358         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12359         functional checks to memmem-simple so that one has a fully functional
12360         memmem by using just this module.
12361         Restrict the performance only check to the memmem module.
12362         Also expand the empty needle check to ensure the correct
12363         pointer is returned, not just a non NULL pointer.
12364         * doc/glibc-functions/memmem.texi: Rearrange the portability
12365         documentation to correlate with the rearranged checks.
12366         Clarify exactly how the memmem and memmem-simple modules
12367         relate to each other.
12368
12369 2010-12-15  Pádraig Brady <P@draigBrady.com>
12370             Bruno Haible  <bruno@clisp.org>
12371
12372         Improve cross-compilation guesses for uClibc.
12373         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12374         that uClibc does not have the glibc bug.
12375         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12376         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12377
12378 2010-12-14  Eric Blake  <eblake@redhat.com>
12379
12380         configmake: provide fallbacks for oldest supported autotools
12381         * m4/configmake.m4: New file.
12382         * modules/configmake (Files): Ship it.
12383         (configure.ac): Use it to guarantee fallbacks.
12384
12385 2010-12-13  Pádraig Brady <P@draigBrady.com>
12386
12387         read-file: Improve handling of large files
12388         * lib/read-file.c (fread_file): Minimize realloc()s
12389         for regular files, and better manage sizes around SIZE_MAX.
12390
12391 2010-12-13  Eric Blake  <eblake@redhat.com>
12392
12393         cloexec, fcntl: relax license
12394         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12395         consent from all contributors.
12396         * modules/fcntl (License): Likewise.
12397
12398 2010-12-10  Bruno Haible  <bruno@clisp.org>
12399
12400         Tests for module 'pipe-posix'.
12401         * modules/pipe-posix-tests: New file.
12402         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12403
12404 2010-12-10  Bruno Haible  <bruno@clisp.org>
12405
12406         pipe-posix: Make it work in C++ mode.
12407         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12408         (pipe): Use common idiom, not a macro definition.
12409         * lib/pipe.c: New file.
12410         * m4/pipe.m4: New file.
12411         * modules/pipe-posix (Description): Enhance.
12412         (Files): Add lib/pipe.c, m4/pipe.m4.
12413         (configure.ac): Invoke gl_FUNC_PIPE.
12414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12415         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12416         * tests/test-unistd-c++.cc: Check the signature of pipe.
12417
12418 2010-12-10  Bruno Haible  <bruno@clisp.org>
12419
12420         Rename module 'pipe' to 'spawn-pipe'.
12421         * modules/spawn-pipe: New file, renamed from modules/pipe.
12422         (Files, configure.ac, Makefile.am): Update.
12423         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12424         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12425         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12426         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12427         "spawn-pipe.h" instead of "pipe.h".
12428         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12429         to gl_SPAWN_PIPE.
12430         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12431         (Files, Makefile.am): Update.
12432         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12433         Update.
12434         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12435         Include "spawn-pipe.h" instead of "pipe.h".
12436         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12437         * lib/javacomp.c: Likewise.
12438         * lib/javaversion.c: Likewise.
12439         * lib/pipe-filter-gi.c: Likewise.
12440         * lib/pipe-filter-ii.c: Likewise.
12441         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12442         * modules/javacomp (Depends-on): Likewise.
12443         * modules/javaversion (Depends-on): Likewise.
12444         * modules/pipe-filter-gi (Depends-on): Likewise.
12445         * modules/pipe-filter-ii (Depends-on): Likewise.
12446         * MODULES.html.sh (Executing programs): Update.
12447         * NEWS: Mention the change.
12448
12449 2010-12-10  Eric Blake  <eblake@redhat.com>
12450
12451         pipe-posix: new module
12452         * modules/pipe-posix: New file.
12453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12454         (gl_UNISTD_H): Check for declaration.
12455         * modules/unistd (Makefile.am): Substitute it.
12456         * lib/unistd.in.h (pipe): Provide it for mingw.
12457         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12458         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12459
12460 2010-12-07  Bruno Haible  <bruno@clisp.org>
12461
12462         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12463         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12464         u8_strcmp_gnu.
12465         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12466
12467 2010-12-06  Bruno Haible  <bruno@clisp.org>
12468
12469         Update internal documentation.
12470         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12471
12472 2010-12-04  Bruno Haible  <bruno@clisp.org>
12473
12474         Put more information about failed tests into the test return codes.
12475         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12476         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12477         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12478         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12479         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12480         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12481         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12482         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12483         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12485         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12486         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12487         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12488         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12489         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12490         returns a bit mask.
12491         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12492         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12493         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12494         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12495         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12496         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12497         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12498         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12499         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12500         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12501         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12502         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12503         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12504         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12505         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12506         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12507         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12508         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12509         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12510         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12511         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12512         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12513         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12514         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12515         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12516         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12517         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12518         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12519         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12520         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12521         gl_PRINTF_PRECISION): Likewise.
12522         * m4/regex.m4 (gl_REGEX): Likewise.
12523         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12524         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12525         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12526         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12527         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12528         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12529         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12530         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12531         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12532         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12533         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12534         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12535         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12536         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12537         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12538         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12539         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12540         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12541         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12542         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12543         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12544         enumerated value.
12545         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12546
12547 2010-12-04  Bruno Haible  <bruno@clisp.org>
12548
12549         Update for Solaris 11 2010-11.
12550         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12551         Express, released in November 2010.
12552
12553 2010-12-04  Bruno Haible  <bruno@clisp.org>
12554
12555         nproc: Relax license.
12556         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12557         and Paul Eggert.
12558         Requested by Ludovic Courtès <ludo@gnu.org>.
12559
12560 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12561
12562         utimecmp: fine-grained src to nearby coarse-grained dest
12563
12564         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12565         and the source is on a file system with higher-resolution time
12566         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12567         not work, and the time stamps are close together, the algorithm to
12568         determine the exact resolution from the read-back mtime was buggy:
12569         it had a "!=" where it should have had an "==".  This bug has been
12570         in the code ever since it was introduced to gnulib.
12571         Problem reported by Dan Jacobson in
12572         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12573
12574 2010-11-30  Bruno Haible  <bruno@clisp.org>
12575
12576         strerror_r-posix: Fix autoconf test.
12577         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12578
12579 2010-11-28  Bruno Haible  <bruno@clisp.org>
12580             Paul Eggert  <eggert@cs.ucla.edu>
12581
12582         Tests for module 'getdomainname'.
12583         * modules/getdomainname-tests: New file.
12584         * tests/test-getdomainname.c: New file, based on
12585         tests/test-gethostname.c.
12586
12587 2010-11-28  Bruno Haible  <bruno@clisp.org>
12588             Paul Eggert  <eggert@cs.ucla.edu>
12589
12590         getdomainname: Use the system function when possible.
12591         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12592         (getdomainname): Replace if needed. Provide the declaration if it is
12593         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12594         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12595         (getdomainname): When the system has getdomainname, call the system
12596         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12597         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12598         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12599         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12600         the function if its second argument is of type 'int' or if it is found
12601         in libnsl.
12602         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12603         <sys/systeminfo.h> and sysinfo().
12604         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12606         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12607         HAVE_GETDOMAINNAME.
12608         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12609         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12610         * doc/glibc-functions/getdomainname.texi: Document the problems with
12611         the getdomainname declaration.
12612
12613 2010-11-28  Bruno Haible  <bruno@clisp.org>
12614
12615         sys_socket: Ensure ss_family field on AIX.
12616         * lib/sys_socket.in.h (ss_family): New macro definition.
12617         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12618         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12619         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12620         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12621         * modules/sys_socket (Makefile.am): Substitute
12622         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12623         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12624
12625 2010-11-27  Bruno Haible  <bruno@clisp.org>
12626
12627         readline: Improve configure output.
12628         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12629         "checking for readline..." result understandable.
12630
12631 2010-11-27  Bruno Haible  <bruno@clisp.org>
12632
12633         *printf-posix: Detect a bug on Solaris 10/x86.
12634         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12635         for floating-point output.
12636         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12637         directive.
12638         * tests/test-snprintf-posix.h (test_function): Likewise.
12639         * tests/test-sprintf-posix.h (test_function): Likewise.
12640         * tests/test-vasprintf-posix.c (test_function): Likewise.
12641         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12642         * doc/posix-functions/printf.texi: Likewise.
12643         * doc/posix-functions/snprintf.texi: Likewise.
12644         * doc/posix-functions/sprintf.texi: Likewise.
12645         * doc/posix-functions/vfprintf.texi: Likewise.
12646         * doc/posix-functions/vprintf.texi: Likewise.
12647         * doc/posix-functions/vsnprintf.texi: Likewise.
12648         * doc/posix-functions/vsprintf.texi: Likewise.
12649         * doc/glibc-functions/obstack_printf.texi: Likewise.
12650         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12651
12652 2010-11-27  Bruno Haible  <bruno@clisp.org>
12653
12654         Fix link error when module libunistring-optional is in use.
12655         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12656         * modules/striconveha-tests (Makefile.am): Likewise.
12657
12658 2010-11-27  Bruno Haible  <bruno@clisp.org>
12659
12660         regex: Mention link dependencies.
12661         * modules/regex (Link): New section.
12662         * modules/rpmatch (Link): Likewise.
12663         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12664
12665 2010-11-27  Bruno Haible  <bruno@clisp.org>
12666
12667         ftoastr: Fix compilation error on Solaris.
12668         * lib/ftoastr.c: Include <config.h>.
12669
12670 2010-11-27  Bruno Haible  <bruno@clisp.org>
12671
12672         getloadavg: Update documentation.
12673         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12674
12675 2010-11-27  Bruno Haible  <bruno@clisp.org>
12676
12677         sys_socket: Fix test whether the functions are declared.
12678         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12679         not <sys/select.h>.
12680
12681 2010-11-27  Bruno Haible  <bruno@clisp.org>
12682
12683         getpass: Make sure to get system declaration on some platforms.
12684         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12685         gl_USE_SYSTEM_EXTENSIONS.
12686         * modules/getpass (Depends-on): Add extensions.
12687
12688 2010-11-26  Bruno Haible  <bruno@clisp.org>
12689
12690         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12691         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12692         'iconv' module is present.
12693         (ICONV_CONST): New macro.
12694         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12695         ICONV_CONST.
12696         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12697         set ICONV_CONST.
12698         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12699         here.
12700         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12701         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12702         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12703         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12704         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12705         present.
12706
12707 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12708
12709         ftoastr: comment fix
12710         * lib/ftoastr.c: "little" -> "little or no" in comment
12711
12712 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12713
12714         stdint: port to GCC 4.3 + OSX + Octave
12715         On this platform, stdint.h is buggy and defines int64_t to long
12716         long int.  The replacement defined it to long int, causing
12717         problems with C++ style name mangling.  Instead, trust the system
12718         definition if INT64_MAX is defined, and likewise for the unsigned
12719         variant.   Problem reported by Jarno Rajahalme in
12720         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12721         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12722         and don't mess with int64_t and INT64_MAX in this case.
12723         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12724
12725 2010-11-24  Bruno Haible  <bruno@clisp.org>
12726
12727         doc: Corrections regarding MacOS X 10.4 and 10.5.
12728         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12729         MacOS X.
12730         Reported by Simon Josefsson.
12731
12732 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12733
12734         Uninstall ".bin" files installed by relocwrapper.
12735         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12736         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12737         unless it is already there.
12738
12739 2010-11-21  Bruno Haible  <bruno@clisp.org>
12740
12741         Update for NetBSD 5.0.
12742         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12743         NetBSD; the test fails on NetBSD 5.0.
12744         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12745         about NetBSD.
12746
12747 2010-11-21  Bruno Haible  <bruno@clisp.org>
12748
12749         Update for HP-UX 11.23 and HP-UX 11.31.
12750         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12751         HP-UX.
12752
12753 2010-11-21  Bruno Haible  <bruno@clisp.org>
12754
12755         Update for MacOS X 10.5.
12756         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12757         MacOS X; the test fails on MacOS X 10.5.8.
12758         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12759         about MacOS X.
12760
12761 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12762
12763         bootstrap: add bootstrap_sync option.
12764         See discussion at
12765         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12766         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12767         * build-aux/bootstrap: Accept --bootstrap-sync to update
12768         bootstrap if it is not identical to the local gnulib's
12769         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12770         enable this by default.  Accept --no-bootstrap-sync to disable
12771         it.
12772
12773 2010-11-20  Bruno Haible  <bruno@clisp.org>
12774
12775         Ensure that <features.h> is included before __GLIBC__ is tested.
12776         * lib/printf-parse.h: Include <features.h>.
12777         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12778         Reported by Mike Frysinger <vapier@gentoo.org>.
12779
12780         Ensure that <features.h> is included before __GLIBC__ is tested.
12781         * lib/wchar.in.h: Include <features.h>.
12782         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12783         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12784         Reported by Mike Frysinger <vapier@gentoo.org>.
12785
12786         Ensure that <features.h> is included before __GLIBC__ is tested.
12787         * lib/arpa_inet.in.h: Include <features.h>.
12788         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12789         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12790         Reported by Mike Frysinger <vapier@gentoo.org>.
12791
12792         Ensure that <features.h> is included before __GLIBC__ is tested.
12793         * build-aux/link-warning.h: Include <features.h>.
12794         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12795         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12796         Reported by Mike Frysinger <vapier@gentoo.org>.
12797
12798         Ensure that <features.h> is included before __GLIBC__ is tested.
12799         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12800         Reported by Mike Frysinger <vapier@gentoo.org>.
12801
12802 2010-11-20  Bruno Haible  <bruno@clisp.org>
12803
12804         memmem: Fix autoconf test.
12805         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12806
12807 2010-11-20  Bruno Haible  <bruno@clisp.org>
12808
12809         Port to uClibc.
12810         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12811         * lib/fcntl.in.h: Likewise.
12812         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12813         * lib/mbrtowc.c (mbrtowc): Likewise.
12814         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12815         * lib/strerror_r.c: Likewise.
12816         * lib/unistr/u8-strnlen.c: Likewise.
12817         * lib/vasnprintf.c (decimal_point_char): Likewise.
12818         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12819         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12820         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12821         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12822         * tests/test-sigaction.c (handler, main): Likewise.
12823         * lib/freading.h: Treat uClibc like a non-glibc platform.
12824         * lib/freading.c: Likewise.
12825         * lib/gettext.h: Likewise.
12826         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12827         Likewise.
12828         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12829         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12830         * lib/propername.c (proper_name_utf8): Likewise.
12831         * lib/spawn.in.h: Likewise.
12832         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12833         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12834         mem_cd_iconveh_internal): Likewise.
12835         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12836         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12837         strstr, strcasestr): Likewise.
12838         * lib/unicodeio.c (unicode_to_mb): Likewise.
12839         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12840         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12841         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12842         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12843         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12844         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12845         * lib/unistr/u8-stpncpy.c: Likewise.
12846         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12847         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12848         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12849         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12850         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12851         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12852         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12853         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12854         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12855         Likewise.
12856         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12857         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12858         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12859         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12860         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12861         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12862         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12863         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12864         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12865         * tests/test-striconveha.c (main): Likewise.
12866         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12867         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12868         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
12869         * doc/posix-functions/getline.texi: Likewise.
12870         Reported by Mike Frysinger <vapier@gentoo.org>.
12871
12872 2010-11-20  Bruno Haible  <bruno@clisp.org>
12873
12874         nproc: Fix condition.
12875         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
12876         HAVE_PTHREAD_AFFINITY_NP.
12877
12878 2010-11-20  Bruno Haible  <bruno@clisp.org>
12879
12880         Fix a comment.
12881         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
12882
12883 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12884
12885         ftoastr: don't assume snprintf
12886         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
12887         Implement a subset of snprintf here, by using sprintf safely.
12888         * modules/ftoastr (Depends-on): Remove snprintf.
12889
12890 2010-11-19  Jim Meyering  <meyering@redhat.com>
12891
12892         test-rename.h: fix compilation failure
12893         * tests/test-rename.h (test_rename): Add omitted "}".
12894
12895 2010-11-17  Jim Meyering  <meyering@redhat.com>
12896
12897         maint.mk: add a URL discussing the no-@acronym policy
12898         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
12899
12900 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12901
12902         ftoastr: depend on snprintf, improve comments
12903         * lib/ftoastr.c: Also mention Loitsch's draft.
12904         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
12905         needed in the current implementation, but it might simplify
12906         speeding up the code later.
12907         * modules/ftoastr: Depend on snprintf; this improves portability.
12908         Suggested by Bruno Haible in the same email.
12909
12910         ftoastr: port to hosts lacking strtof and strtold
12911         Problem reported by Bruno Haible in
12912         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
12913         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
12914         environment and strtold (and presumably strtof) are not available.
12915         * modules/ftoastr (Files): Add m4/c-strtod.m4.
12916         (configure.ac): Require gl_C99_STRTOLD.
12917
12918 2010-11-18  Bruno Haible  <bruno@clisp.org>
12919
12920         c-strtold: Avoid link error on AIX 7.
12921         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
12922         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
12923         (gl_C_STRTOLD): Test whether strtold_l exists.
12924         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12925
12926 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12927
12928         intprops: new macro INT_BITS_STRLEN_BOUND
12929         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
12930         ftoastr.h.  This exposes an internal of intprops.h that was formerly
12931         not exposed.  Also, it uses a slightly tighter bound than before;
12932         though this makes no practical difference, we might as well be as
12933         tight as we easily can.
12934
12935         ftoastr: new module, for lossless conversion of floats to short strings
12936         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
12937         * modules/ftoastr: New files.
12938
12939 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12940
12941         bootstrap: port to Solaris sed
12942         * build-aux/bootstrap (get_version): Port to Solaris sed.
12943         See Ralf Wildenhues's note in
12944         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
12945
12946 2010-11-14  Jim Meyering  <meyering@redhat.com>
12947
12948         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
12949         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
12950         and move definition closer to sole use.
12951
12952 2010-11-13  Jim Meyering  <meyering@redhat.com>
12953
12954         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
12955         Now we require at least autoconf-2.59, which means the work-around
12956         is no longer needed.
12957         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
12958         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12959         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12960         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12961         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12962
12963 2010-11-13  Bruno Haible  <bruno@clisp.org>
12964
12965         rename, renameat: Avoid test failures at NFS mounted locations.
12966         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
12967         functions.
12968         (test_rename): Use assert_nonexistent.
12969         * tests/test-rename.c: Include <dirent.h>.
12970         * tests/test-renameat.c: Likewise.
12971         Reported by Gary V. Vaughan <gary@gnu.org>.
12972
12973         rename, renameat: Document Linux bug with NFS
12974         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
12975         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
12976         * doc/posix-functions/renameat.texi: Likewise.
12977         Suggested by Eric Blake.
12978
12979 2010-11-13  Bruno Haible  <bruno@clisp.org>
12980
12981         rename test: Add comments.
12982         * tests/test-rename.h (test_rename): Add structure and comments.
12983
12984 2010-11-13  Eric Blake  <eblake@redhat.com>
12985
12986         maintainer-makefile: cover a few more files
12987         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
12988         scripts generated within C files, for libvirt.
12989
12990 2010-11-13  Bruno Haible  <bruno@clisp.org>
12991
12992         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
12993         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
12994         character, return the number of bytes that belong together, not always
12995         1.
12996         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
12997         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
12998         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
12999         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
13000         number of bytes of an invalid character.
13001         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
13002         (main): Invoke it.
13003         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
13004         results.
13005         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
13006         malformed byte sequences.
13007         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
13008         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
13009         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
13010         Reported by Ben Pfaff and Paolo Bonzini.
13011
13012 2010-11-13  Bruno Haible  <bruno@clisp.org>
13013
13014         openat: Work around glibc bug with fchownat() and empty file names.
13015         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
13016         (gl_FUNC_FCHOWNAT): Invoke it.
13017         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
13018         * doc/posix-functions/fchownat.texi: Document the glibc bug.
13019         Reported by Gary V. Vaughan <gary@gnu.org>.
13020
13021 2010-11-13  Bruno Haible  <bruno@clisp.org>
13022
13023         openat: Ensure autoconf macro ordering.
13024         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
13025         gl_USE_SYSTEM_EXTENSIONS.
13026         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
13027
13028 2010-11-13  Bruno Haible  <bruno@clisp.org>
13029
13030         Update comments.
13031         * lib/unistr/u8-check.c: Update file name in comments.
13032         * lib/unistr/u8-mblen.c: Likewise.
13033         * lib/unistr/u8-prev.c: Likewise.
13034         * lib/unistr/u8-strmblen.c: Likewise.
13035         * lib/unistr/u8-strmbtouc.c: Likewise.
13036
13037 2010-11-13  Jim Meyering  <meyering@redhat.com>
13038
13039         tests: avoid test failure on Solaris 10 due to lack of PATH export
13040         * tests/test-update-copyright.sh: Don't forget to export PATH.
13041
13042         init.sh: ensure that IFS is defined, just in case...
13043         * tests/init.sh (setup_): Ensure that IFS is defined,
13044         so that saving and restoring it works as expected.  This
13045         appears to be useful at least for an old version of dash
13046         from a long time ago (RH 6).  See here for details:
13047         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
13048
13049         maint.mk: tighten "test a == b" check
13050         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
13051         test to files that contain something like #!/bin/sh.
13052         Without this, coreutils would get two false positives in
13053         the comments of C source files.
13054
13055 2010-11-12  Eric Blake  <eblake@redhat.com>
13056
13057         bootstrap: fix typo in previous attempt
13058         * build-aux/bootstrap (buildreq): Correct the grouping.
13059         Reported by Paul Eggert.
13060
13061         maintainer-makefile: prohibit test x == x
13062         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
13063         Based on a report by Matthias Bolte.
13064
13065         bootstrap: allow FreeBSD gzip
13066         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
13067         which has no '.' and goes to stderr.
13068         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
13069         Reported by Matthias Bolte.
13070
13071         maintainer-makefile: check for i18n setup
13072         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
13073         will likely work.
13074
13075 2010-11-12  Bruno Haible  <bruno@clisp.org>
13076
13077         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
13078         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
13079         * lib/nanosleep.c (nanosleep): Likewise.
13080
13081 2010-11-11  Bruno Haible  <bruno@clisp.org>
13082
13083         fcntl-h: Fix for use of C++ on glibc systems.
13084         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13085         also on glibc systems in C++ mode.
13086         Reported by Gary V. Vaughan <gary@gnu.org>.
13087
13088 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13089
13090         mknod: avoid false failure with dash
13091         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
13092
13093 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13094
13095         unlink: Fix "is it should" typo in diagnostic.
13096         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
13097         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
13098
13099 2010-11-11  Bruno Haible  <bruno@clisp.org>
13100
13101         Tests for module 'strerror_r-posix'.
13102         * modules/strerror_r-posix-tests: New file.
13103         * tests/test-strerror_r.c: New file.
13104         * tests/test-string-c++.cc: Check the signature of strerror_r.
13105
13106         New module 'strerror_r-posix'.
13107         * lib/string.in.h (strerror_r): New declaration.
13108         * lib/strerror_r.c: New file.
13109         * m4/strerror_r.m4: New file.
13110         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
13111         of strerror_r.
13112         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13113         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13114         * modules/strerror_r-posix: New file.
13115         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13116         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13117         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13118         portability problems.
13119
13120 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
13121
13122         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
13123         line is also considered for output. Quoted function name in shell
13124         command, so temporary files for functions like MyClass::operator()
13125         are removed correctly without errors.
13126
13127 2010-11-09  Bruno Haible  <bruno@clisp.org>
13128
13129         * doc/posix-functions/strerror.texi: List more failing platforms.
13130
13131         * doc/posix-functions/strerror.texi: Add a comment.
13132
13133 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13134
13135         fdopendir: fix bug on MacOS X when low on file descriptors
13136
13137         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
13138         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
13139         All callers changed.
13140         (fdopendir): Invoke save_cwd at the top level, not after using
13141         multiple dup() calls to use up file descriptors.  Then retry
13142         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
13143         less than the maximum number of open file descriptors, because
13144         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
13145         on Mac OS X 10.6.4 for tar 1.24
13146         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
13147         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
13148         and for tar 1.25
13149         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
13150
13151 2010-11-07  Bruno Haible  <bruno@clisp.org>
13152
13153         vasnprintf: Support I flag on glibc systems.
13154         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
13155         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
13156         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
13157         snprintf function.
13158         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
13159         glibc systems.
13160         * tests/test-vasnprintf-posix3.c: New file.
13161         * modules/vasnprintf-posix-tests (Files): Add it.
13162         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13163
13164 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13165
13166         [html] Fix copy/paste bug: Use unique name for compiler warnings.
13167         * MODULES.html.sh: For compiler warnings, use name
13168         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
13169
13170 2010-11-05  Eric Blake  <eblake@redhat.com>
13171
13172         ceil, floor: avoid spurious failure with icc
13173         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
13174         [denormals-as-zero] when optimizing without -mieee-fp option.
13175         * tests/test-floorf2.c (floorf_reference): Likewise.
13176         * tests/test-ceilf1.c (dummy): New function.
13177         (main): Use it to outsmart icc's optimization.
13178         * tests/test-floorf1.c (dummy, main): Likewise.
13179
13180         tests: require working signbit
13181         * modules/ceilf-tests (Depends-on): Add signbit.
13182         * modules/ceill-tests (Depends-on): Likewise.
13183         * modules/floorf-tests (Depends-on): Likewise.
13184         * modules/floorl-tests (Depends-on): Likewise.
13185         * modules/round-tests (Depends-on): Likewise.
13186         * modules/roundf-tests (Depends-on): Likewise.
13187         * modules/roundl-tests (Depends-on): Likewise.
13188         * modules/trunc-tests (Depends-on): Likewise.
13189         * modules/truncf-tests (Depends-on): Likewise.
13190         * modules/truncl-tests (Depends-on): Likewise.
13191
13192         strtod: work around icc bug
13193         * lib/strtod.c (minus_zero): Define to working value.
13194         (strtod): Use it to avoid icc bug.
13195
13196         copysign: enhance tests
13197         * modules/copysign-tests (Files): Add minus-zero.h.
13198         * tests/test-copysign.c (main): Also test zeros.
13199
13200 2010-11-04  Eric Blake  <eblake@redhat.com>
13201
13202         ceil, floor, round, trunc: enhance tests of -0
13203         * tests/test-ceilf1.c (main): Ensure correct sign of result.
13204         * tests/test-ceill.c (main): Likewise.
13205         * tests/test-floorf1.c (main): Likewise.
13206         * tests/test-floorl.c (main): Likewise.
13207         * tests/test-round1.c (main): Likewise.
13208         * tests/test-roundf1.c (main): Likewise.
13209         * tests/test-roundl.c (main): Likewise.
13210         * tests/test-trunc1.c (main): Likewise.
13211         * tests/test-truncf1.c (main): Likewise.
13212         * tests/test-truncl.c (main): Likewise.
13213
13214 2010-11-04  Eric Blake  <eblake@redhat.com>
13215
13216         frexp, tests: work around ICC bug with -zero
13217         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
13218         works with more compilers.
13219         * tests/minus-zero.h: New file.
13220         * modules/ceilf-tests (Files): Include it.
13221         * modules/ceill-tests (Files): Likewise.
13222         * modules/floorf-tests (Files): Likewise.
13223         * modules/floorl-tests (Files): Likewise.
13224         * modules/frexp-nolibm-tests (Files): Likewise.
13225         * modules/frexp-tests (Files): Likewise.
13226         * modules/frexpl-nolibm-tests (Files): Likewise.
13227         * modules/frexpl-tests (Files): Likewise.
13228         * modules/isnan-tests (Files): Likewise.
13229         * modules/isnand-nolibm-tests (Files): Likewise.
13230         * modules/isnand-tests (Files): Likewise.
13231         * modules/isnanf-nolibm-tests (Files): Likewise.
13232         * modules/isnanf-tests (Files): Likewise.
13233         * modules/isnanl-nolibm-tests (Files): Likewise.
13234         * modules/isnanl-tests (Files): Likewise.
13235         * modules/round-tests (Files): Likewise.
13236         * modules/roundf-tests (Files): Likewise.
13237         * modules/roundl-tests (Files): Likewise.
13238         * modules/ldexpl-tests (Files): Likewise.
13239         * modules/signbit-tests (Files): Likewise.
13240         * modules/snprintf-posix-tests (Files): Likewise.
13241         * modules/sprintf-posix-tests (Files): Likewise.
13242         * modules/strtod-tests (Files): Likewise.
13243         * modules/trunc-tests (Files): Likewise.
13244         * modules/truncf-tests (Files): Likewise.
13245         * modules/truncl-tests (Files): Likewise.
13246         * modules/vsnprintf-posix-tests (Files): Likewise.
13247         * modules/vsprintf-posix-tests (Files): Likewise.
13248         * modules/vasnprintf-posix-tests (Files): Likewise.
13249         * modules/vasprintf-posix-tests (Files): Likewise.
13250         * tests/test-ceilf1.c (main): Use it.
13251         * tests/test-ceill.c (main): Likewise.
13252         * tests/test-floorf1.c (main): Likewise.
13253         * tests/test-floorl.c (main): Likewise.
13254         * tests/test-frexp.c (main): Likewise.
13255         * tests/test-frexpl.c (main): Likewise.
13256         * tests/test-isnan.c (main): Likewise.
13257         * tests/test-isnand.h (main): Likewise.
13258         * tests/test-isnanf.h (main): Likewise.
13259         * tests/test-isnanl.h (main): Likewise.
13260         * tests/test-ldexpl.c (main): Likewise.
13261         * tests/test-round.c (main): Likewise.
13262         * tests/test-roundf.c (main): Likewise.
13263         * tests/test-roundl.c (main): Likewise.
13264         * tests/test-signbit.c (test_signbitf, test_signbitd)
13265         (test_signbitl): Likewise.
13266         * tests/test-snprintf-posix.h (test_function): Likewise.
13267         * tests/test-sprintf-posix.h (test_function): Likewise.
13268         * tests/test-strtod.c (main): Likewise.
13269         * tests/test-trunc1.c (main): Likewise.
13270         * tests/test-truncf1.c (main): Likewise.
13271         * tests/test-truncl.c (main): Likewise.
13272
13273         isnanl: work around icc bug
13274         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
13275
13276 2010-11-03  Eric Blake  <eblake@redhat.com>
13277
13278         tests: fix compiler warnings
13279         * tests/test-getopt.h (test_getopt): Fix condition.
13280         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13281         * tests/test-pipe2.c (main): Likewise.
13282         * tests/test-quotearg-simple.c (main): Avoid icc warning.
13283
13284         utimens: fix broken m4 test
13285         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
13286
13287 2010-10-28  Bruno Haible  <bruno@clisp.org>
13288
13289         posix_spawn*, getdtablesize: Relax license.
13290         * modules/posix_spawn (License): Change to LGPLv2+.
13291         * modules/posix_spawnp (License): Likewise.
13292         * modules/posix_spawn-internal (License): Likewise.
13293         * modules/posix_spawnattr_init (License): Likewise.
13294         * modules/posix_spawnattr_getflags (License): Likewise.
13295         * modules/posix_spawnattr_setflags (License): Likewise.
13296         * modules/posix_spawnattr_getpgroup (License): Likewise.
13297         * modules/posix_spawnattr_setpgroup (License): Likewise.
13298         * modules/posix_spawnattr_getschedparam (License): Likewise.
13299         * modules/posix_spawnattr_setschedparam (License): Likewise.
13300         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13301         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13302         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13303         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13304         * modules/posix_spawnattr_getsigmask (License): Likewise.
13305         * modules/posix_spawnattr_setsigmask (License): Likewise.
13306         * modules/posix_spawnattr_destroy (License): Likewise.
13307         * modules/posix_spawn_file_actions_init (License): Likewise.
13308         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13309         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13310         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13311         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13312         * modules/getdtablesize (License): Likewise.
13313         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13314
13315 2010-10-26  Bruno Haible  <bruno@clisp.org>
13316
13317         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13318         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13319         Cygwin and mingw.
13320         Suggested by Eric Blake.
13321
13322 2010-10-26  Bruno Haible  <bruno@clisp.org>
13323
13324         stdio: Work around compilation error due to renameat() on Solaris 10.
13325         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13326         * lib/renameat.c: Don't include <unistd.h> here.
13327         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13328         Reported by Paul Eggert and Eric Blake.
13329
13330 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13331
13332         renameat: port to Solaris 10, which declares renameat in unistd.h
13333
13334         * lib/renameat.c: Include unistd.h before stdio.h, because
13335         Solaris 10 declares renameat in unistd.h.  Problem encountered
13336         when building GNU tar 1.24 on Solaris 10.
13337
13338 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13339
13340         fdopendir: fix C89 compilation
13341         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13342         compilers.
13343
13344 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13345
13346         inttostr: simplify by removing unnecessary redundancy
13347         * lib/anytostr.c: Don't include verify.h.
13348         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13349         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13350         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13351         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13352         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13353         Likewise.
13354         * modules/inttostr (Depends-on): Remove 'verify'.
13355
13356 2010-10-23  Bruno Haible  <bruno@clisp.org>
13357
13358         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13359         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13360         Reported by Eric Blake.
13361
13362 2010-10-23  Bruno Haible  <bruno@clisp.org>
13363
13364         Tests: Fix LOCALE_JA on MirBSD 10.
13365         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13366         to an UTF-8 locale.
13367         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13368         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13369         Reported by Eric Blake.
13370
13371 2010-10-21  Bruno Haible  <bruno@clisp.org>
13372
13373         nl_langinfo test: Avoid test failure on NetBSD 5.
13374         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13375         Reported by Eric Blake.
13376
13377 2010-10-21  Eric Blake  <eblake@redhat.com>
13378
13379         c-stack: work around libsigsegv 2.8 bug
13380         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13381         overflow on at least PowerPC64.
13382
13383 2010-10-17  Bruno Haible  <bruno@clisp.org>
13384
13385         userspec: Drop redundant file.
13386         * modules/userspec (Files): Remove lib/inttostr.h.
13387
13388 2010-10-17  Bruno Haible  <bruno@clisp.org>
13389
13390         nl_langinfo tests: Silence some warnings.
13391         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13392         Reported by Jim Meyering.
13393
13394 2010-10-17  Bruno Haible  <bruno@clisp.org>
13395
13396         Make use of GCC's attribute __alloc_size__.
13397         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13398         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13399         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13400         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13401         __alloc_size__.
13402         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13403         Suggested by Jim Meyering.
13404
13405 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13406
13407         bootstrap: anchor .gitignore entries.
13408         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13409         with...
13410         (insert_vc_ignore): ... this new function, which prepends `/' to
13411         all .gitignore entries before passing them to
13412         insert_sorted_if_absent.
13413
13414 2010-10-16  Bruno Haible  <bruno@clisp.org>
13415
13416         nextafter: Fix configure check.
13417         * modules/nextafter (configure.ac): Correct expected prototype.
13418
13419 2010-10-16  Bruno Haible  <bruno@clisp.org>
13420
13421         termios: Update documentation.
13422         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13423
13424 2010-10-16  Bruno Haible  <bruno@clisp.org>
13425
13426         tests: Make them compile with TinyCC.
13427         * tests/test-strstr.c (main): Remove parentheses around array
13428         initializer.
13429
13430 2010-10-15  Eric Blake  <eblake@redhat.com>
13431
13432         ignore-value: make header idempotent
13433         * lib/ignore-value.h: Add double-inclusion guards.
13434         Reported by Stefan Berger.
13435
13436 2010-10-15  Jim Meyering  <meyering@redhat.com>
13437
13438         GNUmakefile: handle "stable" target, not "major"
13439         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13440         lists in maint.mk and announce-gen.  Without this, "make stable"
13441         would fail to ensure that $(VERSION) is up to date.
13442
13443 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13444
13445         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13446         & co.
13447
13448 2010-10-14  Bruno Haible  <bruno@clisp.org>
13449
13450         vasnprintf: Don't set errno to 0.
13451         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13452         block that sets it to 0.
13453         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13454
13455 2010-10-14  Bruno Haible  <bruno@clisp.org>
13456
13457         socketlib: Fix.
13458         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13459         gl_PREREQ_SYS_H_WINSOCK2.
13460         Reported by Ian Beckwith <ianb@erislabs.net>.
13461
13462 2010-10-13  Jim Meyering  <meyering@redhat.com>
13463
13464         test-select-stdin.c: avoid warn_unused_result warnings
13465         * tests/test-select-stdin.c: Include "macros.h".
13466         ASSERT that read and fflush succeed.
13467
13468 2010-10-13  Jim Meyering  <meyering@redhat.com>
13469
13470         git-version-gen: do require git-VC'd files in cwd
13471         * build-aux/git-version-gen: Reject a git version string
13472         if there are no commits associated with the current directory.
13473         This avoids an unlikely false-positive (unrelated dir whose parent
13474         repository also contains a tag matching v*), as pointed out
13475         by Giuseppe Scrivano in
13476         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13477
13478 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13479
13480         argv-iter: omit nonconforming declaration
13481         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13482         enum arg_iter_err declaration, which doesn't conform to C99.
13483         Solaris 10 cc warns about this.
13484
13485 2010-10-13  Eric Blake  <eblake@redhat.com>
13486
13487         termios: fix compilation on mingw
13488         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13489         (gl_TERMIOS_H): Adjust it on mingw.
13490         * modules/termios (Makefile.am): Substitute new key.
13491         * lib/termios.in.h (includes): Make include_next conditional.
13492         * doc/posix-headers/termios.texi (termios.h): Update
13493         documentation.
13494         Reported by Daniel P. Berrange.
13495
13496 2010-10-13  Jim Meyering  <meyering@redhat.com>
13497
13498         git-version-gen: don't require that .git/ be in the current dir
13499         * build-aux/git-version-gen: Adjust this script so that it works
13500         when run from any working directory beneath the top-level .git/-
13501         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13502         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13503
13504         test-select: avoid warn_unused_result warnings
13505         * tests/test-select.c: Include "macros.h".
13506         ASSERT that each call to read, write, and pipe succeeds.
13507         While not technically required, also check each "close".
13508         * modules/select-tests (Files): Add tests/macros.h.
13509
13510         test-symlinkat: remove declaration of unused local
13511         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13512
13513         test-inttostr: avoid shadowing warnings
13514         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13515         and use malloc rather than the stack for the same reason as
13516         mentioned in the comment justifying the other allocation.
13517
13518 2010-10-11  Bruno Haible  <bruno@clisp.org>
13519
13520         stdlib: Allow multiple gnulib generated replacements to coexist.
13521         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13522         Reported by Sam Steingold <sds@gnu.org>.
13523
13524 2010-10-11  Jim Meyering  <meyering@redhat.com>
13525
13526         fix a documentation typo
13527         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13528
13529 2010-10-11  Eric Blake  <eblake@redhat.com>
13530
13531         futimens: work around Solaris 11 bug
13532         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13533         * tests/test-futimens.h (test_futimens): Enhance, rather than
13534         weaken test.
13535         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13536
13537 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13538
13539         Indentation.
13540         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13541         higher-level operators more to the left.
13542
13543 2010-10-11  Jim Meyering  <meyering@redhat.com>
13544
13545         test-futimens: avoid unwarranted test failure on Solaris 5.11
13546         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13547         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13548         because it tries to dereference the NULL name argument.
13549
13550 2010-10-11  Bruno Haible  <bruno@clisp.org>
13551
13552         Indentation.
13553         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13554         indentation.
13555
13556 2010-10-11  Jim Meyering  <meyering@redhat.com>
13557
13558         spawn.in.h: make indentation consistent with parentheses
13559         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13560         Make indentation consistent with parentheses.
13561
13562 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13563
13564         Fix mismatched parens in previous commit
13565         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13566         parens.
13567
13568 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13569
13570         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13571
13572         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13573         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13574         * lib/malloca.c: Include "verify.h".
13575         (verify1): Remove, replacing with a verify call.
13576         * lib/relocwrapper.c (verify1): Likewise.
13577         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13578         Likewise.
13579         * modules/malloca (Depends-on): Add 'verify'.
13580         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13581         * modules/vasnprintf (Depends-on): Add 'verify'.
13582         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13583         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13584         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13585         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13586         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13587         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13588         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13589
13590         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13591
13592         Formerly the style was sometimes 2*X - 1, because the C standard
13593         was wrongly thought to disallow ?: in integral constant expressions.
13594         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13595         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13596         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13597         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13598         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13599         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13600         verify that time_t cannot be floating.
13601
13602 2010-10-08  Eric Blake  <eblake@redhat.com>
13603
13604         time: enforce recent POSIX ruling that time_t is integral
13605         * lib/time.in.h (__time_t_must_be_integral): Detect any
13606         problematic systems, allowing the rest of gnulib to assume POSIX.
13607
13608 2010-10-08  Jim Meyering  <meyering@redhat.com>
13609
13610         fdopendir: fix a bug on systems lacking openat and /proc support
13611         OpenBSD 4.7 is one such system.  The most noticeable effect was
13612         failure of any application making nontrivial use of fts: rm, du,
13613         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13614           ./rm: traversal failed: `a': Bad file descriptor
13615         Debugging that, you see that even though FD 6 was closed just
13616         prior to the opendir call in fd_clone_opendir, its resulting
13617         dir->dd_fd was 8, rather than the expected value of 6:
13618
13619         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13620         93                close (fd);
13621         (gdb) n
13622         94                dir = fd_clone_opendir (dupfd);
13623         (gdb) n
13624         95                saved_errno = errno;
13625         (gdb) p dir->dd_fd
13626         $11 = 8
13627
13628         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13629         The problem is that on OpenBSD, fd_clone_opendir has to resort
13630         to using the old-style save/restore CWD mechanism, due to its
13631         lack of openat/proc support, and *that* would steal the FD (6)
13632         that opendir was supposed to use.
13633
13634         The fix is to squirrel away the desired FD so that save_cwd uses a
13635         different one, and then free the dest FD right before calling opendir.
13636         That guarantees opendir will use the required file descriptor.
13637
13638         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13639
13640 2010-10-08  Bruno Haible  <bruno@clisp.org>
13641
13642         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13643         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13644
13645 2010-10-08  Bruno Haible  <bruno@clisp.org>
13646
13647         nanosleep: Make replacement POSIX compliant.
13648         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13649         is out of range.
13650         Reported by Jim Meyering.
13651
13652 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13653
13654         bootstrap: add hook for altering gnulib.mk, for Bison
13655         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13656         the Bison bootstrapping process can rewrite file names and variables
13657         in this file before later parts of 'bootstrap' use the file.
13658         Bison wants to include lib/gnulib.mk from the top-level makefile,
13659         so it needs the file names in this file to be relative to the top
13660         level, not relative to lib; plus it needs variable names to be
13661         rewritten.
13662         (slurp): Use the new function.
13663
13664         bootstrap: reformat for readability
13665         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13666
13667 2010-10-08  Eric Blake  <eblake@redhat.com>
13668
13669         docs: update cygwin progress
13670         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13671         1.7.7.
13672         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13673         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13674         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13675         * doc/posix-functions/carg.texi (carg): Likewise.
13676         * doc/posix-functions/cargf.texi (cargf): Likewise.
13677         * doc/posix-functions/casin.texi (casin): Likewise.
13678         * doc/posix-functions/casinf.texi (casinf): Likewise.
13679         * doc/posix-functions/casinh.texi (casinh): Likewise.
13680         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13681         * doc/posix-functions/catan.texi (catan): Likewise.
13682         * doc/posix-functions/catanf.texi (catanf): Likewise.
13683         * doc/posix-functions/catanh.texi (catanh): Likewise.
13684         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13685         * doc/posix-functions/ccos.texi (ccos): Likewise.
13686         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13687         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13688         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13689         * doc/posix-functions/cexp.texi (cexp): Likewise.
13690         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13691         * doc/posix-functions/cimag.texi (cimag): Likewise.
13692         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13693         * doc/posix-functions/clog.texi (clog): Likewise.
13694         * doc/posix-functions/clogf.texi (clogf): Likewise.
13695         * doc/posix-functions/conj.texi (conj): Likewise.
13696         * doc/posix-functions/conjf.texi (conjf): Likewise.
13697         * doc/posix-functions/cpow.texi (cpow): Likewise.
13698         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13699         * doc/posix-functions/cproj.texi (cproj): Likewise.
13700         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13701         * doc/posix-functions/creal.texi (creal): Likewise.
13702         * doc/posix-functions/crealf.texi (crealf): Likewise.
13703         * doc/posix-functions/csin.texi (csin): Likewise.
13704         * doc/posix-functions/csinf.texi (csinf): Likewise.
13705         * doc/posix-functions/csinh.texi (csinh): Likewise.
13706         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13707         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13708         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13709         * doc/posix-functions/ctan.texi (ctan): Likewise.
13710         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13711         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13712         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13713         * doc/posix-headers/complex.texi (complex.h): Likewise.
13714
13715 2010-10-07  Jim Meyering  <meyering@redhat.com>
13716
13717         parse-datetime: avoid compilation failure on OpenBSD 4.7
13718         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13719         This works around a compilation failure on OpenBSD 4.7:
13720         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13721
13722 2010-10-07  Eric Blake  <eblake@redhat.com>
13723
13724         docs: update cygwin progress
13725         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13726         1.7.6.
13727         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13728         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13729         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13730         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13731         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13732         Likewise.
13733         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13734         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13735         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13736         Likewise.
13737         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13738         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13739         Likewise.
13740         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13741         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13742         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13743         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13744         Likewise.
13745         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13746         Likewise.
13747         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13748
13749         docs: update parse-datetime history
13750         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13751         documentation of this function's history and alternatives.
13752
13753         cygwin: use more robust version check
13754         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13755         exclude an eventual cygwin 1.9.1.
13756         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13757         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13758         (gl_FUNC_STRCASESTR): Likewise.
13759         Reported by Bruno Haible.
13760
13761 2010-10-06  Bruno Haible  <bruno@clisp.org>
13762
13763         string, sys_select: Avoid #including large headers unless necessary.
13764         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13765         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13766         OSF/1, BeOS, Haiku.
13767         Reported by Jim Meyering.
13768
13769 2010-10-05  Eric Blake  <eblake@redhat.com>
13770
13771         memmem, strstr, strcasestr: fix bug with long periodic needle
13772         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13773         periodic needle having false positive.
13774         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13775         and cygwin 1.7.7.
13776         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13777         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13778         (gl_FUNC_STRCASESTR): Likewise.
13779         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13780         * tests/test-memmem.c (main): Expose the bug.
13781         * tests/test-strcasestr.c (main): Likewise.
13782         * tests/test-strstr.c (main): Likewise.
13783         * tests/test-c-strcasestr.c (main): Likewise.
13784         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13785         * doc/posix-functions/strstr.texi (strstr): Likewise.
13786         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13787         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13788
13789 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13790
13791         parse-datetime: do some more renaming
13792         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13793         parse_datetime, not get_date.  Mention the renaming.
13794         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13795         in comments.
13796         * m4/bison.m4: Likewise.
13797
13798 2010-10-05  Eric Blake  <eblake@redhat.com>
13799
13800         parse-datetime: better name than get_date
13801         * NEWS: Reword the deprecation notice.
13802         * modules/get_date: Rename to modules/parse-datetime.
13803         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13804         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13805         * lib/get_date.y: Rename to lib/parse-datetime.y.
13806         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13807         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13808         * doc/getdate.texi: Provide fallback wrapper.
13809         * lib/getdate.h: Move guts, and wrap...
13810         * lib/parse-datetime.h: ...new file.
13811         * lib/parse-datetime.y (get_date): Rename...
13812         (parse_datetime): ...to this.
13813         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13814         (gl_PARSE_DATETIME): ...to this.
13815         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13816         documentation.
13817         * modules/getdate (Files): Provide fallback docs and header.
13818         (Notice, Depends-on): Update references.
13819         * tests/test-parse-datetime.c: Likewise.
13820         * DEPENDENCIES: Likewise.
13821         * MODULES.html.sh (Date and time <time.h>): Likewise.
13822         * doc/parse-datetime.texi (Date input formats)
13823         (Authors of parse_datetime): Likewise.
13824         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13825         (Include): Likewise.
13826         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13827         * gnulib-tool: Likewise.
13828         * m4/bison.m4 (gl_BISON): Likewise.
13829         Suggested by Bruno Haible.
13830
13831 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13832
13833         more ports to Solaris tr, which needs [] around ranges
13834         * gnulib-tool: Solaris tr needs [] around ranges.
13835         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13836         * tests/test-pipe-filter-gi1.c (main): Likewise.
13837         * tests/test-pipe-filter-ii1.c (main): Likewise.
13838
13839 2010-10-05  Eric Blake  <eblake@redhat.com>
13840
13841         bootstrap: fix Solaris regression
13842         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13843         around ranges.
13844         Reported by Pádraig Brady.
13845
13846         bootstrap: work with pkg-config
13847         * build-aux/bootstrap (check_versions): Also transliterate - in
13848         prerequisite name.
13849         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13850         prerequisites that were already found, to avoid confusion.
13851         Reported by Justin Clift.
13852
13853         faccessat: remove unused wrappers
13854         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13855         presence of these wrappers dragged in -lgen on Solaris.
13856         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13857
13858 2010-10-05  Jim Meyering  <meyering@redhat.com>
13859
13860         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13861         * Makefile (sc_pragma_columns): New syntax-check rule.
13862
13863 2010-10-04  Bruno Haible  <bruno@clisp.org>
13864
13865         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13866         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13867         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13868         Reported by Bruce Korb and Eric Blake.
13869
13870 2010-10-04  Bruno Haible  <bruno@clisp.org>
13871
13872         threadlib: Make option --with-libpth-prefix work.
13873         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
13874         use $LIBPTH, not just -lpth.
13875
13876 2010-10-04  Bruno Haible  <bruno@clisp.org>
13877
13878         Avoid line length limitation from HP NonStop system header files.
13879         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
13880         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
13881         * lib/ctype.in.h: Likewise.
13882         * lib/dirent.in.h: Likewise.
13883         * lib/errno.in.h: Likewise.
13884         * lib/fcntl.in.h: Likewise.
13885         * lib/float.in.h: Likewise.
13886         * lib/getopt.in.h: Likewise.
13887         * lib/iconv.in.h: Likewise.
13888         * lib/inttypes.in.h: Likewise.
13889         * lib/langinfo.in.h: Likewise.
13890         * lib/locale.in.h: Likewise.
13891         * lib/math.in.h: Likewise.
13892         * lib/netdb.in.h: Likewise.
13893         * lib/netinet_in.in.h: Likewise.
13894         * lib/poll.in.h: Likewise.
13895         * lib/pthread.in.h: Likewise.
13896         * lib/pty.in.h: Likewise.
13897         * lib/sched.in.h: Likewise.
13898         * lib/se-selinux.in.h: Likewise.
13899         * lib/search.in.h: Likewise.
13900         * lib/signal.in.h: Likewise.
13901         * lib/spawn.in.h: Likewise.
13902         * lib/stdarg.in.h: Likewise.
13903         * lib/stddef.in.h: Likewise.
13904         * lib/stdint.in.h: Likewise.
13905         * lib/stdio.in.h: Likewise.
13906         * lib/stdlib.in.h: Likewise.
13907         * lib/string.in.h: Likewise.
13908         * lib/strings.in.h: Likewise.
13909         * lib/sys_file.in.h: Likewise.
13910         * lib/sys_ioctl.in.h: Likewise.
13911         * lib/sys_select.in.h: Likewise.
13912         * lib/sys_socket.in.h: Likewise.
13913         * lib/sys_stat.in.h: Likewise.
13914         * lib/sys_time.in.h: Likewise.
13915         * lib/sys_times.in.h: Likewise.
13916         * lib/sys_utsname.in.h: Likewise.
13917         * lib/sys_wait.in.h: Likewise.
13918         * lib/sysexits.in.h: Likewise.
13919         * lib/termios.in.h: Likewise.
13920         * lib/time.in.h: Likewise.
13921         * lib/unistd.in.h: Likewise.
13922         * lib/wchar.in.h: Likewise.
13923         * lib/wctype.in.h: Likewise.
13924         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
13925         * modules/ctype (Makefile.am): Likewise.
13926         * modules/dirent (Makefile.am): Likewise.
13927         * modules/errno (Makefile.am): Likewise.
13928         * modules/fcntl-h (Makefile.am): Likewise.
13929         * modules/float (Makefile.am): Likewise.
13930         * modules/getopt-posix (Makefile.am): Likewise.
13931         * modules/iconv-h (Makefile.am): Likewise.
13932         * modules/inttypes (Makefile.am): Likewise.
13933         * modules/langinfo (Makefile.am): Likewise.
13934         * modules/locale (Makefile.am): Likewise.
13935         * modules/math (Makefile.am): Likewise.
13936         * modules/netdb (Makefile.am): Likewise.
13937         * modules/netinet_in (Makefile.am): Likewise.
13938         * modules/poll-h (Makefile.am): Likewise.
13939         * modules/pthread (Makefile.am): Likewise.
13940         * modules/pty (Makefile.am): Likewise.
13941         * modules/sched (Makefile.am): Likewise.
13942         * modules/search (Makefile.am): Likewise.
13943         * modules/selinux-h (Makefile.am): Likewise.
13944         * modules/signal (Makefile.am): Likewise.
13945         * modules/spawn (Makefile.am): Likewise.
13946         * modules/stdarg (Makefile.am): Likewise.
13947         * modules/stddef (Makefile.am): Likewise.
13948         * modules/stdint (Makefile.am): Likewise.
13949         * modules/stdio (Makefile.am): Likewise.
13950         * modules/stdlib (Makefile.am): Likewise.
13951         * modules/string (Makefile.am): Likewise.
13952         * modules/strings (Makefile.am): Likewise.
13953         * modules/sys_file (Makefile.am): Likewise.
13954         * modules/sys_ioctl (Makefile.am): Likewise.
13955         * modules/sys_select (Makefile.am): Likewise.
13956         * modules/sys_socket (Makefile.am): Likewise.
13957         * modules/sys_stat (Makefile.am): Likewise.
13958         * modules/sys_time (Makefile.am): Likewise.
13959         * modules/sys_times (Makefile.am): Likewise.
13960         * modules/sys_utsname (Makefile.am): Likewise.
13961         * modules/sys_wait (Makefile.am): Likewise.
13962         * modules/sysexits (Makefile.am): Likewise.
13963         * modules/termios (Makefile.am): Likewise.
13964         * modules/time (Makefile.am): Likewise.
13965         * modules/unistd (Makefile.am): Likewise.
13966         * modules/wchar (Makefile.am): Likewise.
13967         * modules/wctype (Makefile.am): Likewise.
13968
13969 2010-10-04  Bruno Haible  <bruno@clisp.org>
13970
13971         read-file tests: Avoid a test failure on NonStop Kernel.
13972         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
13973         a regular file.
13974         Reported by Joachim Schmitz <schmitz@hp.com>.
13975
13976 2010-10-03  Bruno Haible  <bruno@clisp.org>
13977
13978         gnulib-tool: Fixes for --create-testdir with --libtool.
13979         * gnulib-tool (func_get_automake_snippet): Don't augment
13980         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
13981         an executable.
13982         (func_create_testdir): Handle module 'alloca' like func_import.
13983         Reported by Bruce Korb <bruce.korb@gmail.com>.
13984
13985 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
13986
13987         Avoid some lines longer than 80 characters.
13988         * lib/stdint.in.h: Break long comment lines.
13989         * lib/math.in.h: Likewise.
13990         (_GL_NUM_UINT_WORDS): New macro, for readability.
13991         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
13992         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
13993         * lib/stdlib.in.h: Likewise.
13994         * lib/spawn.in.h: Likewise.
13995         * lib/sys_socket.in.h: Update an URL.
13996         * lib/sys_stat.in.h: Break long line.
13997
13998 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
13999
14000         Improve pmccabe2html.
14001         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
14002         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
14003         when the sources change. Remove the line in the HTML about "Used
14004         ranges" (which implied that there might be other unused ranges),
14005         rename "Resume" to "Summary" (easier to understand for more users).
14006         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
14007         styles, and some unnecessary blank lines.
14008
14009 2010-10-03  Bruno Haible  <bruno@clisp.org>
14010             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14011
14012         acl: Add support for ACLs on NonStop Kernel.
14013         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
14014         Check whether the function aclsort() exists.
14015         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
14016         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
14017         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14018         (acl_nontrivial [HAVE_ACLSORT]: New function.
14019         (file_has_acl): Implement for NonStop Kernel.
14020         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14021         (qset_acl): Implement for NonStop Kernel.
14022         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
14023         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14024         (main): Implement for NonStop Kernel.
14025         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
14026         Kernel. Handle this flavor.
14027         * tests/test-set-mode-acl.sh: Likewise.
14028         * tests/test-copy-acl.sh: Likewise.
14029         * tests/test-copy-file.sh: Likewise.
14030
14031 2010-10-03  Bruno Haible  <bruno@clisp.org>
14032
14033         Info about ACLs on NonStop Kernel.
14034         * doc/acl-resources.txt: Add info about NonStop Kernel.
14035         References by Joachim Schmitz <schmitz@hp.com>.
14036
14037 2010-10-02  Bruno Haible  <bruno@clisp.org>
14038
14039         Define missing EDQUOT on NonStop Kernel.
14040         * lib/errno.in.h (EDQUOT): Assign a value if missing.
14041         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
14042         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
14043         missing.
14044         * doc/posix-headers/errno.texi: Mention the NSK bug.
14045         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
14046         Reported by Joachim Schmitz <schmitz@hp.com>.
14047
14048 2010-10-02  Bruno Haible  <bruno@clisp.org>
14049
14050         Update doc for POSIX:2008.
14051         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
14052         Update URL of POSIX specification.
14053
14054 2010-10-02  Bruno Haible  <bruno@clisp.org>
14055
14056         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
14057         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
14058         from gnulib, not from Automake.
14059
14060 2010-10-02  Bruno Haible  <bruno@clisp.org>
14061
14062         New module 'system-posix'.
14063         * modules/system-posix: New file.
14064         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
14065         module is present.
14066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
14067         GNULIB_SYSTEM_POSIX.
14068         * modules/stdlib (Depends-on): Remove sys_wait.
14069         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
14070         * doc/posix-functions/system.texi: Mention the new module.
14071         * doc/posix-headers/stdlib.texi: Likewise.
14072         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
14073         define test_sys_wait_macros to a no-op.
14074         Reported by Sam Steingold <sds@gnu.org>.
14075
14076 2010-09-30  Bruno Haible  <bruno@clisp.org>
14077
14078         More renaming from 'getdate' to 'get_date'.
14079         * doc/get_date.texi: Renamed from doc/getdate.texi.
14080         * modules/get_date (Files): Update.
14081         * MODULES.html.sh (Date and time <time.h>): Update.
14082         * DEPENDENCIES: Update.
14083         * gnulib-tool: Update comment.
14084         * m4/bison.m4 (gl_BISON): Likewise.
14085         * m4/get_date.m4 (gl_GET_DATE): Likewise.
14086
14087 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
14088
14089         bootstrap: support ACLOCAL_FLAGS during aclocal
14090         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
14091         can add additional -I dir for third-party .m4 files.
14092
14093 2010-09-30  Eric Blake  <eblake@redhat.com>
14094
14095         bootstrap: use glibtoolize on MacOS
14096         * build-aux/bootstrap (check_versions): Convert libtool into
14097         libtoolize.
14098         (tool search): Move libtool check earlier, and look for
14099         glibtoolize for MacOS.
14100         (gnulib_tool_options): Auto-add --libtool when appropriate.
14101         Reported by Justin Clift.
14102
14103         poll: fix typo that broke test on MacOS
14104         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
14105         Reported by Justin Clift.
14106
14107         getdate: rename to get_date
14108         Note: getdate.h is not renamed, to minimize client impact.
14109         * modules/getdate: Mark obsolete.  Move old contents...
14110         * modules/get_date: ...to new module name.
14111         * modules/getdate-tests: Move...
14112         * modules/get_date-tests: ...here.
14113         * m4/getdate.m4: Move...
14114         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14115         * lib/getdate.y: Move...
14116         * lib/get_date.y: ...here.
14117         * tests/test-getdate.c: Move...
14118         * tests/test-get_date.c: ...here.
14119         * doc/posix-functions/getdate.texi (getdate): Update name.
14120         * NEWS: Mention the change.
14121
14122 2010-09-29  Bruno Haible  <bruno@clisp.org>
14123
14124         Separate the module 'waitpid' from the module 'sys_wait'.
14125         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
14126         present.
14127         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
14128         gl_MODULE_INDICATOR_FOR_TESTS.
14129         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
14130         * modules/sys_wait (Depends-on): Remove waitpid.
14131         (Makefile.am): Substitute GNULIB_WAITPID.
14132         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
14133         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
14134         signature only if the 'waitpid' module is present.
14135         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
14136         * NEWS: Mention the change.
14137         * modules/grantpt (Depends-on): Add waitpid.
14138         * modules/wait-process (Depends-on): Likewise.
14139
14140 2010-09-29  Bruno Haible  <bruno@clisp.org>
14141
14142         More tests for module 'sys_wait'.
14143         * modules/sys_wait-c++-tests: New file.
14144         * tests/test-sys_wait-c++.cc: New file.
14145         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
14146         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14147
14148 2010-09-29  Bruno Haible  <bruno@clisp.org>
14149
14150         New module 'waitpid'.
14151         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
14152         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
14153         Don't include <process.h>.
14154         (waitpid): Declare only, using modern idiom.
14155         * m4/waitpid.m4: New file.
14156         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
14157         * modules/waitpid: New file.
14158         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
14159         (Makefile.am): Update.
14160         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14161
14162 2010-09-28  Bruno Haible  <bruno@clisp.org>
14163
14164         poll: Assume ANSI C.
14165         * lib/poll.c (poll): Use an ANSI C declaration.
14166
14167 2010-09-28  Bruno Haible  <bruno@clisp.org>
14168
14169         poll-h: Create poll.h on all platforms.
14170         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
14171         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
14172         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
14173         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
14174         (gl_REPLACE_POLL_H): Don't set POLL_H.
14175         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
14176         * modules/poll-h (Depends-on): Add include_next.
14177         (Makefile.am): Create poll.h unconditionally. Substitute also
14178         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
14179
14180 2010-09-28  Bruno Haible  <bruno@clisp.org>
14181
14182         Tests for module 'poll-h'.
14183         * modules/poll-h-c++-tests: New file.
14184         * tests/test-poll-h-c++.cc: New file.
14185
14186         Tests for module 'poll-h'.
14187         * modules/poll-h-tests: New file.
14188         * tests/test-poll-h.c: New file.
14189
14190 2010-09-28  Bruno Haible  <bruno@clisp.org>
14191
14192         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14193         * modules/poll-h (Depends-on): Add 'extensions'.
14194
14195 2010-09-28  Bruno Haible  <bruno@clisp.org>
14196
14197         New module 'poll-h'.
14198         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
14199         (poll): Use modern idiom.
14200         * modules/poll-h: New file.
14201         * modules/poll (Files): Remove lib/poll.in.h.
14202         (Depends-on): Add poll-h.
14203         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
14204         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
14205         * m4/poll_h.m4: New file.
14206         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
14207         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
14208         and invoke gl_REPLACE_POLL_H.
14209         * lib/poll.c: Use common idiom.
14210         * tests/test-poll.c: Likewise.
14211         * doc/posix-headers/poll.texi: Mention the poll-h module.
14212         Suggested by Eric Blake.
14213
14214 2010-09-26  Bruno Haible  <bruno@clisp.org>
14215
14216         sys_wait: Implement WSTOPSIG.
14217         * lib/sys_wait.in.h (WSTOPSIG): New macro.
14218         Reported by Simon Josefsson.
14219
14220 2010-09-26  Simon Josefsson  <simon@josefsson.org>
14221
14222         stdlib, sys_wait: Avoid compilation error on mingw.
14223         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
14224
14225 2010-09-26  Bruno Haible  <bruno@clisp.org>
14226
14227         stdlib tests: Avoid code duplication.
14228         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
14229         * modules/sys_wait-tests (Files): Likewise.
14230         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
14231         * tests/test-stdlib.c: Include test-sys_wait.h.
14232         (main): Invoke test_sys_wait_macros.
14233         * tests/test-sys_wait.c: Include test-sys_wait.h.
14234         (main): Invoke test_sys_wait_macros.
14235
14236 2010-09-25  Simon Josefsson  <simon@josefsson.org>
14237
14238         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
14239         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
14240         sure Windows sockets are working before calling getaddrinfo.
14241         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
14242         * doc/gnulib.texi (Windows sockets): Fix typo.
14243
14244 2010-09-25  Bruno Haible  <bruno@clisp.org>
14245
14246         Tests for module 'regex-quote'.
14247         * modules/regex-quote-tests: New file.
14248         * tests/test-regex-quote.c: New file.
14249
14250         New module 'regex-quote'.
14251         * lib/regex-quote.h: New file.
14252         * lib/regex-quote.c: New file.
14253         * modules/regex-quote: New file.
14254         Suggested by Reuben Thomas <rrt@sc3d.org>.
14255
14256 2010-09-24  Bruno Haible  <bruno@clisp.org>
14257
14258         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
14259         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
14260
14261 2010-09-23  Bruno Haible  <bruno@clisp.org>
14262
14263         setenv: Relax license.
14264         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
14265         Blake.
14266         Requested by Eric Blake.
14267
14268 2010-09-22  Bruno Haible  <bruno@clisp.org>
14269
14270         termios: Relax license.
14271         * modules/termios (License): Change to LGPLv2+.
14272         Requested by Eric Blake.
14273
14274 2010-09-22  Bruno Haible  <bruno@clisp.org>
14275
14276         threadlib: Allow the package to change the default to 'no'.
14277         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
14278         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
14279         Reported by Paul Eggert.
14280
14281 2010-09-22  Pádraig Brady  <P@draigbrady.com>
14282             Bruno Haible  <bruno@clisp.org>
14283
14284         Fix endless loop in mbmemcasecoll.
14285         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
14286         byte.
14287         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
14288
14289 2010-09-22  Bruno Haible  <bruno@clisp.org>
14290
14291         Tests for module 'memcoll'.
14292         * modules/memcoll-tests: New file.
14293         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14294
14295         memcoll, xmemcoll: Clarify size vs. length.
14296         * modules/memcoll.c (memcoll0): Clarify specification.
14297         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14298         passed to collate_error.
14299
14300 2010-09-22  Bruno Haible  <bruno@clisp.org>
14301
14302         Tests for module 'memcasecmp'.
14303         * modules/memcasecmp-tests: New file.
14304         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14305
14306 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14307
14308         * lib/pthread.in.h: Add split double-inclusion guard, and include
14309         system <pthread.h> if there is one.  Use @@-style as in other
14310         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14311         pthread.h doesn't.
14312         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14313         (pthread_mutexattr_settype, pthread_mutex_trylock):
14314         New static inline functions, if there's no system <pthread.h>.
14315         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14316         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14317         Approximate with mutexes if the system lacks spinlocks, as in
14318         MacOS.
14319         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14320         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14321         @@-style.  Check for spinlocks separately.
14322         (gl_PTHREAD_DEFAULTS): New macro.
14323         * modules/pthread: Redo to use a more typical style for in.h files.
14324
14325 2010-09-21  Eric Blake  <eblake@redhat.com>
14326
14327         net_if: enhance tests
14328         * tests/test-net_if.c (main): Move signature checks earlier.
14329         Print failures to stderr.
14330         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14331         Document the bug that we do not yet fix.
14332
14333 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14334
14335         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14336         about gnulib, not GSS.
14337
14338 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14339
14340         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14341         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14342         for Emacs.
14343         * build-aux/pmccabe2html: Make Makefile.am example code more
14344         cut-and-paste friendly.
14345
14346 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14347
14348         * tests/test-net_if.c: New file.
14349         * modules/net_if-tests: New file.
14350
14351 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14352
14353         pthread: add pthread_spin_destroy
14354         * lib/pthread.in.h (pthread_spin_destroy): New function.
14355
14356 2010-09-19  Bruno Haible  <bruno@clisp.org>
14357
14358         gnulib-tool: Fix --help output.
14359         * gnulib-tool (func_usage): Fix help message.
14360         Reported by Reuben Thomas <rrt@sc3d.org>.
14361
14362 2010-09-18  Jim Meyering  <meyering@redhat.com>
14363
14364         maint.mk: avoid unexpanded \n in two diagnostics
14365         * top/maint.mk (sc_prohibit_always_true_header_tests):
14366         Don't use a literal \n in a halt=... assignment.  It would not be
14367         expanded, and the two \n bytes would appear in the diagnostic output
14368         rather than the desired newline.  Use halt=$$(printf ... instead.
14369         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14370
14371 2010-09-18  Bruno Haible  <bruno@clisp.org>
14372
14373         netinet_in: Doc tweak.
14374         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14375         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14376
14377 2010-09-18  Jim Meyering  <meyering@redhat.com>
14378
14379         init.sh: correct an outdated comment
14380         * tests/init.sh (create_exe_shims_):  s/function/alias/
14381
14382         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14383         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14384         a file named "*.exe" is removed between the glob expansion and the
14385         processing of that oddly named file.
14386
14387 2010-09-17  Eric Blake  <eblake@redhat.com>
14388
14389         mirbsd: add some more support
14390         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14391         in BSD family.
14392         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14393         devices as OpenBSD.
14394         * m4/host-os.m4 (mirbsd): Add MirBSD.
14395
14396         tests: fix unportable assumption on sys/wait.h
14397         * tests/test-sys_wait.c (main): Relax test.
14398         * tests/test-stdlib.c (main): Likewise.
14399
14400         init.sh: accomodate directory with no .exes
14401         * tests/init.sh: Accomodate directory containing only scripts.
14402
14403         tests: avoid compiler warning
14404         * tests/test-stdlib.c (main): Use the variable.
14405
14406         fdutimens, fdutimensat: update signature, again
14407         * lib/utimens.h (gl_futimens): Delete, and move signature...
14408         (fdutimens): ...here.
14409         (fdutimensat): Rearrange signature.
14410         (lutimensat): Rename variable for clarity.
14411         * lib/fdutimensat.c (fdutimensat): Update signature.
14412         * lib/utimens.c (fdutimens): Likewise.
14413         (gl_futimens): Delete.
14414         (utimens, lutimens): Update callers.
14415         * lib/futimens.c (futimens): Likewise.
14416         * tests/test-fdutimensat.c: Likewise.
14417         * tests/test-utimens.c: Likewise.
14418         * tests/test-futimens.h: Update comment.
14419         * NEWS: Mention this.
14420         Suggested by Paul Eggert.
14421
14422 2010-09-17  Bruno Haible  <bruno@clisp.org>
14423
14424         Take over the maintenance of some older macros from Autoconf.
14425         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14426         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14427         GNU Autoconf.
14428         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14429         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14430
14431 2010-09-17  Eric Blake  <eblake@redhat.com>
14432
14433         fdutimensat: drop atflag validation
14434         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14435         with valid fd, to close a race scenario where futimens is
14436         unsupported and FILE was replaced by a symlink.
14437         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14438         accordingly.
14439         Suggested by Paul Eggert.
14440
14441 2010-09-16  Bruno Haible  <bruno@clisp.org>
14442
14443         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14444         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14445
14446 2010-09-16  Bruno Haible  <bruno@clisp.org>
14447
14448         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14449         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14450         login_tty exists.
14451         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14452
14453 2010-09-16  Bruno Haible  <bruno@clisp.org>
14454
14455         login_tty: Make the replacement code work on BSD systems.
14456         * lib/login_tty.c: Include <sys/ioctl.h>.
14457         (login_tty): Use ioctl TIOCSCTTY when available.
14458         * modules/login_tty (Depends-on): Add sys_ioctl.
14459         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14460
14461 2010-09-16  Bruno Haible  <bruno@clisp.org>
14462
14463         login_tty: Stricter unit test.
14464         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14465         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14466         and tcgetsid() after login_tty.
14467         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14468
14469 2010-09-16  Bruno Haible  <bruno@clisp.org>
14470
14471         New module 'tcgetsid'.
14472         * lib/tcgetsid.c: New file.
14473         * m4/tcgetsid.m4: New file.
14474         * modules/tcgetsid: New file.
14475         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14476         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14477         GNULIB_TCGETSID, HAVE_TCGETSID.
14478         * lib/termios.in.h: Include <sys/types.h>.
14479         (tcgetsid): New declaration.
14480         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14481         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14482         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14483         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14484
14485 2010-09-16  Bruno Haible  <bruno@clisp.org>
14486
14487         Tests for module 'termios'.
14488         * modules/termios-c++-tests: New file.
14489         * modules/termios-tests: New file.
14490         * tests/test-termios-c++.cc: New file.
14491         * tests/test-termios.c: New file.
14492
14493         New module 'termios'.
14494         * modules/termios: New file.
14495         * lib/termios.in.h: New file.
14496         * m4/termios_h.m4: New file.
14497         * doc/posix-headers/termios.texi: Mention the new module.
14498
14499 2010-09-16  Eric Blake  <eblake@redhat.com>
14500
14501         fdutimensat: add an atflag parameter
14502         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14503         * lib/utimens.h (fdutimensat): Update prototype.
14504         * tests/test-fdutimensat.c: Adjust test to match.
14505         * NEWS: Document the change.
14506         Suggested by Paul Eggert.
14507
14508 2010-09-16  Bruno Haible  <bruno@clisp.org>
14509
14510         Fix typos in comments.
14511         * lib/striconveh.h: Fix typo in comment.
14512         * lib/login_tty.c (login_tty): Likewise.
14513
14514 2010-09-15  Bruno Haible  <bruno@clisp.org>
14515
14516         stdlib: clarify MirBSD WEXITSTATUS bug
14517         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14518         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14519
14520 2010-09-15  Eric Blake  <eblake@redhat.com>
14521
14522         stdlib: work around MirBSD WEXITSTATUS bug
14523         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14524         * modules/stdlib (Depends-on): Add sys_wait.
14525         * tests/test-sys_wait.c (main): Enhance test.
14526         * tests/test-stdlib.c (main): Likewise.
14527         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14528
14529         docs: mention MacOS issue with WEXITSTATUS(constant)
14530         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14531         issue.
14532         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14533
14534         strnlen: add tests
14535         * modules/strnlen-tests: New file.
14536         * tests/test-strnlen.c: Likewise.
14537
14538 2010-09-14  Bruno Haible  <bruno@clisp.org>
14539
14540         unistr/base: Avoid link errors when module 'libunistring' is also used.
14541         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14542         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14543         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14544         Declare also when HAVE_LIBUNISTRING is set.
14545         Reported by Pádraig Brady <P@draigbrady.com>.
14546
14547 2010-09-14  Eric Blake  <eblake@redhat.com>
14548
14549         test-rawmemchr: make more robust
14550         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14551         (Depends-on, configure.ac): Add needed prerequisites to use it.
14552         * modules/memchr-tests (Files, Depends-on, configure.ac):
14553         Likewise, to avoid implicit reliance on memchr module prereqs.
14554         * tests/test-memchr.c (main): Ensure proper masking.
14555         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14556         reads.
14557
14558         memchr: detect glibc Alpha bug
14559         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14560         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14561         Alpha.
14562         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14563         * tests/test-memchr.c (main): Enhance test.
14564         Reported by Nelson H. F. Beebe.
14565
14566 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14567
14568         fts, getcwd, glob: audit for dirfd returning -1
14569         * lib/fts.c (opendir): Remove #define; no longer used.
14570         (opendirat): New arg PDIR_FD.  All callers changed.
14571         (fts_build, _opendir2): Use new opendirat to avoid the need for
14572         dirfd, or for checking whether dirfd returns a negative value.
14573         Don't use opendir; always use openat followed by fdopendir.
14574         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14575         it.
14576         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14577         returns -1 here.
14578         * modules/fts (Depends-on): Remove dirfd.
14579         * modules/getcwd (Depends-on): Likewise.
14580
14581 2010-09-13  Eric Blake  <eblake@redhat.com>
14582
14583         float: fix broken MirBSD header
14584         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14585         * doc/posix-headers/float.texi (float.h): Document it.
14586
14587 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14588
14589         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14590         * lib/fts.c (opendirat): New arg extra_flags.
14591         (__opendir2): Use it to avoid following symlinks when opening
14592         a directory, if symlinks are not supposed to be followed.  See
14593         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14594
14595         fdopendir: preserve argument fd before returning
14596         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14597         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14598         (fdopendir): Use them, arranging for FD to be open to the same
14599         directory that it was when it started.  (It might be temporarily
14600         closed while fdopendir is running, so this not thread- or
14601         signal-safe.)  Be careful to do the right thing even when file
14602         descriptors are scarce and dup fails with errno == EMFILE.  See
14603         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14604
14605 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14606
14607         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14608         * NEWS: Document change.
14609         * m4/regex.m4: Disable test for regoff_t size.
14610
14611 2010-09-13  Jim Meyering  <meyering@redhat.com>
14612
14613         fts: don't operate on an invalid file descriptor after failed dup
14614         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14615         negative file descriptor.
14616
14617 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14618
14619         savedir: add streamsavedir, deprecate fdsavedir
14620         * NEWS: Mention deprecation of fdsavedir.
14621         * lib/savedir.c (streamsavedir): New extern function, whose name
14622         ends in "savedir" to be consistent with the others.  This differs
14623         from savedirstream in that it doesn't close its argument.  The
14624         next version of GNU tar will use this instead of fdsavedir, to
14625         avoid some race conditions and conserve file descriptors.
14626         (savedirstream): Reimplement as a wrapper around streamsavedir.
14627         (fdsavedir): Add a comment deprecating this function.  As far as
14628         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14629         * lib/savedir.h (streamsavedir): New decl.
14630         (fdsavedir): Add a comment deprecating this.
14631
14632 2010-09-10  Bruno Haible  <bruno@clisp.org>
14633
14634         langinfo: Fix last commit.
14635         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14636         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14637         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14638
14639 2010-09-10  Bruno Haible  <bruno@clisp.org>
14640
14641         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14642         * lib/progreloc.c (O_EXEC): Define fallback.
14643
14644 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14645
14646         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14647         * NEWS: Document recent changes to fcntl-h.
14648         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14649         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14650         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14651         Similarly for O_SEARCH; this last was already true, but not documented.
14652         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14653         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14654         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14655         Likewise.
14656         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14657         is zero, not whether it is defined.
14658         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14659         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14660         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14661
14662 2010-09-10  Bruno Haible  <bruno@clisp.org>
14663
14664         langinfo, nl_langinfo: Fix for IRIX 5.3.
14665         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14666         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14667         HAVE_LANGINFO_YESEXPR.
14668         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14669         HAVE_LANGINFO_YESEXPR.
14670         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14671         HAVE_LANGINFO_T_FMT_AMPM is 0.
14672         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14673         HAVE_LANGINFO_YESEXPR is 0.
14674         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14675         NOEXPR.
14676         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14677         * doc/posix-functions/nl_langinfo.texi: Likewise.
14678         Reported by Eric Blake.
14679
14680 2010-09-10  Bruno Haible  <bruno@clisp.org>
14681
14682         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14683         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14684         on FreeBSD 8.0 and OpenBSD 4.6.
14685         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14686         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14687         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14688         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14689         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14690         ac_includes_default.
14691         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14692
14693 2010-09-09  Eric Blake  <eblake@redhat.com>
14694
14695         strsignal: work around NetBSD bug
14696         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14697         * lib/string.in.h (includes): Likewise.
14698         * doc/posix-functions/strsignal.texi (strsignal): Document the
14699         bug.
14700         Reported by Nelson H. F. Beebe.
14701
14702         gnulib-tool: work with NetBSD /bin/sh
14703         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14704         (func_get_description, func_get_comment, func_get_status)
14705         (func_get_notice, func_get_applicability, func_get_filelist)
14706         (func_get_dependencies, func_get_autoconf_early_snippet)
14707         (func_get_autoconf_snippet, func_get_automake_snippet)
14708         (func_get_include_directive, func_get_link_directive)
14709         (func_get_license, func_get_maintainer, func_import): Avoid
14710         shell syntax errors from parsing syntax extensions.
14711
14712 2010-09-09  Bruno Haible  <bruno@clisp.org>
14713
14714         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14715         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14716         a reliable way to determine whether the 'alias' command works.
14717
14718 2010-09-08  Jim Meyering  <meyering@redhat.com>
14719
14720         init.sh: penalize a set-x-impaired shell; don't disqualify it
14721         * tests/init.sh: Too many shells corrupt application stderr when
14722         you set -x, so we can't afford to disqualify them, since at least
14723         on Irix-6.5, that would disqualify all bourne shells.
14724         Instead, use a two-pass approach.
14725         On the first pass, try to find a shell that meets the stricter
14726         condition that set -x does not corrupt stderr.
14727         If no shell meets the stricter condition, retest each candidate
14728         shell, but without that extra condition.  Finally, when
14729         VERBOSE=yes is requested and set -x might cause trouble, simply
14730         issue a warning and refrain from enabling debug output.
14731
14732 2010-09-08  Eric Blake  <eblake@redhat.com>
14733
14734         unsetenv: fix OpenBSD bug
14735         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14736         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14737         documentation.
14738         Reported by Jim Meyering.
14739
14740         strtod: work around IRIX 6.5 bug
14741         * lib/strtod.c (strtod): Reparse number on shorter string if
14742         exponent parse was invalid.
14743         * tests/test-strtod.c (main): Add check for "0x1p 2".
14744         Reported by Tom G. Christensen.
14745
14746         getopt: optimize previous patch
14747         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14748         empty variable.  Speed up awk script.
14749         Reported by Paolo Bonzini.
14750
14751 2010-09-08  Jim Meyering  <meyering@redhat.com>
14752
14753         test.sh: disqualify shells for which set -x corrupts stderr
14754         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14755         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14756         appear in stderr output.  For example, this command:
14757             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14758         prints "P=1" on those two systems:
14759
14760 2010-09-08  Bruno Haible  <bruno@clisp.org>
14761
14762         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14763         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14764         commands, because some shells ignore redirections when there is an
14765         error in the command lookup.
14766         Reported by Eric Blake.
14767
14768 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14769
14770         * lib/regex.h: Fix a mention of `regex_compile' (should be
14771         `re_compile_pattern').
14772         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14773         (re_set_registers): Correct name of parameter in comment.
14774
14775         * doc/regex.texi: Add documentation for missing syntax flags.
14776         Remove commented-out documentation of defunct syntax option
14777         RE_NO_EMPTY_ALTS.
14778         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14779         Add documentation of re_set_registers.
14780         Document trick to re-use a pattern buffer by setting fastmap manually.
14781         Update documentation of struct re_pattern_buffer per public members.
14782         Uncomment documentation of equivalence class operators and
14783         collating symbol operators, since they are now implemented,
14784         Explain leftmost-longest matching in relation to alternatives.
14785         Tidy documentation of substring matching.
14786         Remove POSIX documentation, which is done better in
14787         glibc, and refer the reader there. Keep BSD API documentation, as
14788         that is not readily available elsewhere.
14789
14790 2010-09-07  Eric Blake  <eblake@redhat.com>
14791
14792         getopt: handle POSIXLY_CORRECT set but not exported
14793         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14794         export state of POSIXLY_CORRECT, due to bash set -o posix.
14795         Reported by Dustin J. Mitchell.
14796
14797 2010-09-05  Bruno Haible  <bruno@clisp.org>
14798
14799         gnulib-tool: Highlight the changed options.
14800         * gnulib-tool (func_usage): Display the --import, --add-import,
14801         --remove-import explanations in bold font.
14802
14803 2010-09-06  Karl Berry  <karl@gnu.org>
14804
14805         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14806
14807 2010-09-05  Bruno Haible  <bruno@clisp.org>
14808
14809         uniwidth/width: Update comment.
14810         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14811         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14812
14813 2010-09-05  Bruno Haible  <bruno@clisp.org>
14814
14815         isinf, isnan: Relax license.
14816         * modules/isinf (License): Change from GPL to LGPL, with consent from
14817         Ben Pfaff.
14818         * modules/isnan (License): Likewise.
14819         Requested by Ludovic Courtès.
14820
14821 2010-09-04  Bruno Haible  <bruno@clisp.org>
14822
14823         gnulib-tool: Help migration from --import to --add-import or --update.
14824         * gnulib-tool: Emit a verbose error message when --import is used
14825         without any module name.
14826
14827 2010-09-04  Bruno Haible  <bruno@clisp.org>
14828
14829         Update doc about gnulib-tool.
14830         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14831         'gnulib-tool --update' in more detail.
14832         Reported by Eric Blake.
14833
14834 2010-09-04  Bruno Haible  <bruno@clisp.org>
14835
14836         gnulib-tool: Change --import. New options --add/remove-import.
14837         * gnulib-tool: New options --add-import, --remove-import.
14838         (func_usage): Document them.
14839         (have_associative): Define always.
14840         (func_import): In import mode, don't merge the specified settings with
14841         the cached settings. Implement remove-import mode.
14842         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14843         Explain when to use them versus --import.
14844         (Simple update): Use --add-import instead of --import.
14845         * NEWS: Mention the change.
14846
14847 2010-09-04  Bruno Haible  <bruno@clisp.org>
14848
14849         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14850         separate gnulib.mk.
14851
14852 2010-09-04  Bruno Haible  <bruno@clisp.org>
14853
14854         gnulib-tool: Don't talk about CVS any more.
14855         * gnulib-tool (func_usage, func_import): Write "version control"
14856         instead of CVS.
14857
14858 2010-09-04  Jim Meyering  <meyering@redhat.com>
14859
14860         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14861         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14862         false positives (whose names may be ill-chosen) when searching
14863         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14864         would cause a false-positive.
14865
14866         avoid coreutils "make distcheck" failure
14867         Coreutils tests with an absolute build directory name that contains
14868         a space.  Not quoting this directory name caused a failure.
14869         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
14870         * tests/test-vc-list-files-cvs.sh: Likewise.
14871
14872 2010-09-04  Bruno Haible  <bruno@clisp.org>
14873
14874         gnulib-tool: Avoid error when run in a package without Makefile.am.
14875         * gnulib-tool: When collecting the m4dirs in a package that does not
14876         have a Makefile.am, eliminate those directories that contain no
14877         gnulib-cache.m4. Fix expression that counts these directories.
14878
14879 2010-09-04  Bruno Haible  <bruno@clisp.org>
14880
14881         update-copyright test: Improve output when perl is missing or too old.
14882         * tests/test-update-copyright.sh: Move test of Perl version down after
14883         the test whether Perl exists. Provide an explanation relating Perl's
14884         error message to Automake's SKIP: message.
14885
14886 2010-09-04  Bruno Haible  <bruno@clisp.org>
14887
14888         Don't augment PATH in TESTS_ENVIRONMENT.
14889         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
14890         set abs_aux_dir instead of augmenting PATH.
14891         * modules/vc-list-files-tests (Makefile.am): Likewise.
14892         * tests/test-update-copyright.sh: Augment PATH here.
14893         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
14894         path_prepend_.
14895         * tests/test-vc-list-files-git.sh: Likewise.
14896
14897 2010-09-04  Jim Meyering  <meyering@redhat.com>
14898
14899         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
14900         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
14901
14902 2010-09-04  Bruno Haible  <bruno@clisp.org>
14903
14904         strdup: Fix compilation error in C++ mode.
14905         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
14906         the macro.
14907
14908 2010-09-04  Bruno Haible  <bruno@clisp.org>
14909
14910         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
14911         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
14912         macro into a function.
14913         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14914
14915 2010-09-04  Bruno Haible  <bruno@clisp.org>
14916
14917         Set PATH_SEPARATOR the same way autoconf does.
14918         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
14919         the value of PATH_SEPARATOR the same way autoconf-generated configure
14920         scripts do.
14921         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
14922         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14923
14924 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14925
14926         Set PATH_SEPARATOR the same way autoconf does.
14927         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
14928         the same way autoconf-generated configure scripts do.
14929         * posix-modules: Likewise.
14930
14931 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14932
14933         hash: fix safe_hasher const typo
14934         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
14935         const; otherwise, there is a type error later.
14936
14937 2010-09-02  Jim Meyering  <meyering@redhat.com>
14938
14939         test-update-copyright.sh: require perl 5.8.0
14940         * tests/test-update-copyright.sh: Require 5.8.0,
14941         which Tom G. Christensen has confirmed is adequate,
14942         while 5.6.1 is not.
14943
14944 2010-09-02  Eric Blake  <eblake@redhat.com>
14945
14946         tests: init.sh improvements for re-exec'ing with zsh
14947         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
14948         -vx through shell re-exec.
14949         Reported by Tom G. Christensen.
14950
14951         wctype: fix typo in previous commit
14952         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
14953         Reported by Ludovic Courtès.
14954
14955 2010-09-02  Jim Meyering  <meyering@redhat.com>
14956
14957         test-update-copyright.sh: skip test if Perl is too old
14958         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
14959         Reported by Tom G. Christensen.
14960
14961 2010-09-02  Bruno Haible  <bruno@clisp.org>
14962
14963         wctype: Avoid compilation error on IRIX 6.5.30.
14964         * lib/wctype.in.h (iswblank): Declare with a replacement if
14965         REPLACE_ISWBLANK is set.
14966         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
14967         declared. Set REPLACE_ISWBLANK.
14968         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
14969         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
14970         * doc/posix-headers/wctype.texi: Likewise.
14971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14972
14973 2010-09-01  Bruno Haible  <bruno@clisp.org>
14974
14975         New module 'socketlib'.
14976         * modules/socketlib: New file.
14977         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
14978         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
14979         * modules/sockets (Depends-on): Add socketlib.
14980         Suggested by Sam Steingold <sds@gnu.org>.
14981
14982 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14983
14984         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
14985
14986         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
14987         when one needs search access to a directory but not read access.
14988         On systems where it is available, it works in some cases where
14989         O_RDONLY does not, namely on directories that are searchable but
14990         not readable, and which need only to be searchable.  If O_SEARCH
14991         is not available, fall back to the traditional method of using
14992         O_RDONLY.
14993
14994         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14995         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
14996         when opening a directory that needs only to be searchable.
14997         * lib/chdir-safer.c (chdir_no_follow): Likewise.
14998         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
14999         * lib/openat-proc.c (openat_proc_name): Likewise.
15000         * lib/openat.c (openat_needs_fchdir): Likewise.
15001         * lib/save-cwd.c (save_cwd): Likewise.
15002         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
15003
15004 2010-08-28  Bruno Haible  <bruno@clisp.org>
15005
15006         New module 'host-cpu-c-abi'.
15007         * modules/host-cpu-c-abi: New file.
15008         * m4/host-cpu-c-abi.m4: New file, based on part of
15009         clisp/src/m4/general.m4.
15010         Requested by Sam Steingold <sds@gnu.org>.
15011
15012 2010-08-31  Eric Blake  <eblake@redhat.com>
15013         and Jim Meyering  <meyering@redhat.com>
15014
15015         hash: factor, and guard against misbehaving hasher function
15016         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
15017         of table->hasher's return value.  Also protect against a hash value
15018         so large that adding it to table->bucket results in a NULL pointer.
15019         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
15020         Use it in place of open-coded check-and-abort.
15021
15022 2010-08-30  Bruno Haible  <bruno@clisp.org>
15023
15024         hash: silence spurious clang warning
15025         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
15026         Reported by Eric Blake.
15027
15028 2010-08-30  Eric Blake  <eblake@redhat.com>
15029
15030         strstr, memmem, strcasestr: avoid leaked shell message
15031         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
15032         FreeBSD.
15033         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15034         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15035
15036         tests: silence clang warning
15037         * tests/test-malloca.c (do_allocation): Avoid dead store.
15038
15039 2010-08-29  Bruno Haible  <bruno@clisp.org>
15040
15041         gettext: Fix recent mistake.
15042         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
15043
15044 2010-08-29  Bruno Haible  <bruno@clisp.org>
15045
15046         selinux-h: Offer a --without-selinux option.
15047         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
15048         --without-selinux was specified, skip all tests and define
15049         HAVE_SELINUX_SELINUX_H to 0.
15050         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
15051         set LIB_SELINUX to empty.
15052         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
15053         gl_LIBSELINUX. If --without-selinux was specified, replace
15054         selinux/context.h.
15055         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
15056
15057 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15058             Bruno Haible  <bruno@clisp.org>
15059
15060         Make the module 'realloc-gnu' work again on AIX and OSF/1.
15061         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
15062         of HAVE_REALLOC.
15063         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
15064         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
15065         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
15066         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15067
15068 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15069             Bruno Haible  <bruno@clisp.org>
15070
15071         Make the module 'calloc-gnu' work again on AIX and OSF/1.
15072         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
15073         HAVE_CALLOC.
15074         * lib/xmalloc.c: Update accordingly.
15075         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
15076         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
15077         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15078
15079 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15080             Bruno Haible  <bruno@clisp.org>
15081
15082         Make the module 'malloc-gnu' work again on AIX and OSF/1.
15083         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
15084         HAVE_MALLOC.
15085         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
15086         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
15087         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15088
15089 2010-08-29  Bruno Haible  <bruno@clisp.org>
15090
15091         Update modules list.
15092         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15093         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
15094         (String handling <string.h>): Add astrxfrm.
15095         (File system functions): Add readlinkat.
15096
15097 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15098
15099         Tests for module 'realloc-gnu'.
15100         * modules/realloc-gnu-tests: New file.
15101         * tests/test-realloc-gnu.c: New file.
15102
15103         Tests for module 'calloc-gnu'.
15104         * modules/calloc-gnu-tests: New file.
15105         * tests/test-calloc-gnu.c: New file.
15106
15107         Tests for module 'malloc-gnu'.
15108         * modules/malloc-gnu-tests: New file.
15109         * tests/test-malloc-gnu.c: New file.
15110
15111 2010-08-28  Bruno Haible  <bruno@clisp.org>
15112
15113         Rename module 'realloc' -> 'realloc-gnu'.
15114         * modules/realloc-gnu: New file, copied from modules/realloc.
15115         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15116         obsolete.
15117         * modules/mgetgroups (Depends-on): Update.
15118         * doc/posix-functions/realloc.texi: Update.
15119         * NEWS: Mention the change.
15120
15121         Rename module 'calloc' -> 'calloc-gnu'.
15122         * modules/calloc-gnu: New file, copied from modules/calloc.
15123         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
15124         obsolete.
15125         * doc/posix-functions/calloc.texi: Update.
15126         * NEWS: Mention the change.
15127
15128         Rename module 'malloc' -> 'malloc-gnu'.
15129         * modules/malloc-gnu: New file, copied from modules/malloc.
15130         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
15131         obsolete.
15132         * modules/argp (Depends-on): Update.
15133         * modules/regex (Depends-on): Update.
15134         * doc/posix-functions/malloc.texi: Update.
15135         * NEWS: Mention the change.
15136
15137 2010-08-28  Eric Blake  <eblake@redhat.com>
15138
15139         pread, pwrite: add missing dependency
15140         * modules/pread (Depends-on): Add extensions.
15141         * modules/pwrite (Depends-on): Likewise.
15142
15143 2010-08-28  Bruno Haible  <bruno@clisp.org>
15144
15145         unistr/u*-strchr: Fix tests dependencies.
15146         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
15147         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
15148         Reported by Ian Beckwith <ianb@erislabs.net>.
15149
15150 2010-08-28  Bruno Haible  <bruno@clisp.org>
15151
15152         read-file: Don't occupy too much unused memory.
15153         * lib/read-file.c (fread_file): Shrink the buffer at the end.
15154
15155 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
15156             Eric Blake  <eblake@redhat.com>
15157             Bruno Haible  <bruno@clisp.org>
15158
15159         read-file: Avoid memory reallocations with regular files.
15160         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
15161         (fread_file): With regular files, use the remaining length as the
15162         initial buffer size.  Check against overflow.
15163         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
15164         sys_stat.
15165
15166 2010-08-28  Bruno Haible  <bruno@clisp.org>
15167
15168         ftello: Relax license.
15169         * modules/ftello (License): Relax to LGPLv2+.
15170         Reported by Eric Blake.
15171
15172 2010-08-28  Bruno Haible  <bruno@clisp.org>
15173
15174         Avoid relocwrapper link errors due to gnulib replacement functions.
15175         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
15176         function.
15177         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15178
15179 2010-08-28  Bruno Haible  <bruno@clisp.org>
15180
15181         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
15182         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
15183         defined.
15184         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
15185         Suggested by Eric Blake.
15186
15187 2010-08-28  Bruno Haible  <bruno@clisp.org>
15188
15189         sys_socket, netdb: Ensure socklen_t gets defined.
15190         * modules/sys_socket (Depends-on): Add socklen.
15191         * modules/netdb (Depends-on): Likewise.
15192         * modules/getaddrinfo (Depends-on): Remove socklen.
15193         * modules/getsockopt (Depends-on): Likewise.
15194         * modules/setsockopt (Depends-on): Likewise.
15195         * tests/test-sys_socket.c: Check that socklen_t is defined.
15196         * tests/test-netdb.c: Likewise.
15197         * m4/socklen.m4: Update comments.
15198         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15199
15200 2010-08-27  Eric Blake  <eblake@redhat.com>
15201
15202         login_tty: add missing dependency
15203         * modules/login_tty (Depends-on): Add pty.
15204
15205 2010-08-26  Eric Blake  <eblake@redhat.com>
15206
15207         lib-symbol-versions: fix m4 quoting
15208         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
15209         format for AC_LINK_IFELSE.
15210
15211         glob: fix compile test
15212         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
15213
15214         btowc: fix missing file
15215         * modules/btowc (Files): Also ship locale-fr.m4.
15216
15217         lseek: fix link test
15218         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
15219         AC_LINK_IFELSE.
15220
15221         include_next: silence autoconf 2.68 warning
15222         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
15223         AC_COMPILE_IFELSE as special.
15224         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
15225         autoconf < 2.68.
15226
15227         acl: fix compilation test
15228         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
15229         AC_COMPILE_IFELSE.
15230
15231 2010-08-26  Bruno Haible  <bruno@clisp.org>
15232
15233         Modernize AC_TRY_RUN invocations.
15234         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
15235         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15236         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
15237         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
15238         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
15239         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15240         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15241         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15242         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15243         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15244         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15245         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15246         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15247         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15248         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15249         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15250         gl_MBRLEN_NUL_RETVAL): Likewise.
15251         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15252         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15253         Likewise.
15254         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15255         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15256         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15257         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15258         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
15259         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
15260         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
15261         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15262         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
15263         Likewise.
15264         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15265         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
15266         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15267         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15268         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15269         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15270         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15271         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
15272         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15274
15275 2010-08-26  Bruno Haible  <bruno@clisp.org>
15276
15277         Modernize AC_TRY_LINK invocations.
15278         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
15279         AC_TRY_LINK.
15280         * m4/argp.m4 (gl_ARGP): Likewise.
15281         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15282         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15283         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15284         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15285         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15286         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
15287         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15288         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15289         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15290         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15291         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15292         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
15293         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
15294         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15295         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15296         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15297         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15298         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15299         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15300         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15301         Likewise.
15302         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15303         Likewise.
15304         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15305         Likewise.
15306         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15307         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15308         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15309         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15310         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15311         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15312         * m4/servent.m4 (gl_SERVENT): Likewise.
15313         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15314         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15315         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15316         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15317         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15318         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15319         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15320         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15321         * modules/tsearch-tests (configure.ac): Likewise.
15322
15323 2010-08-26  Bruno Haible  <bruno@clisp.org>
15324
15325         Modernize AC_TRY_COMPILE invocations.
15326         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15327         AC_TRY_COMPILE.
15328         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15329         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15330         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15331         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15332         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15333         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15334         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15335         * m4/lock.m4 (gl_LOCK): Likewise.
15336         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15337         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15338         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15339         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15340         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15341         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15342         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15343         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15344         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15345         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15346         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15347         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15348         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15349         extraneous semicolon.
15350
15351 2010-08-26  Jim Meyering  <meyering@redhat.com>
15352
15353         stat-time: relax license LGPL
15354         * modules/stat-time (License): Change from GPL to LGPL,
15355         with consent from all contributors, for use in libguile.
15356         Requested by Ludovic Courtès.
15357
15358 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15359
15360         poll: return immediately on POLLHUP.
15361         * lib/poll.c (poll): Always set timeout before wait_timeout is
15362         computed.
15363
15364 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15365
15366         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15367         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15368         rmdir ("dir/.//"), unlinkat.
15369
15370 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15371
15372         stdbool: avoid spurious failure with modern xlc
15373         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15374
15375 2010-08-24  Bruno Haible  <bruno@clisp.org>
15376
15377         getloadavg: simplify code
15378         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15379         gl_have_func. Update comments.
15380
15381 2010-08-24  Eric Blake  <eblake@redhat.com>
15382
15383         getloadavg: don't define SVR4 on cygwin
15384         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15385         only define SVR4 when -lkvm is required.
15386         Reported by Yaakov Selkowitz.
15387
15388 2010-08-24  Bruno Haible  <bruno@clisp.org>
15389
15390         priv-set: fix comment
15391         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15392
15393 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15394
15395         priv-set: fix comments
15396         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15397         to match code, as suggested by David Bartley in:
15398         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15399
15400 2010-08-23  Eric Blake  <eblake@redhat.com>
15401
15402         stdbool: avoid rejecting clang
15403         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15404         * tests/test-stdbool.c: Enable more tests if using the system
15405         <stdbool.h> instead of the gnulib replacement.
15406         (main): Move xlc bug test to a runtime test for all compilers.
15407         Reported by Anders Kaseorg.
15408
15409         argz: fix shell quoting issue
15410         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15411         Reported by Charles Wilson.
15412
15413 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15414             Erik Faye-Lund <kusmabite@gmail.com>
15415
15416         poll, select: handle ERROR_BROKEN_PIPE.
15417         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15418         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15419         * lib/select.c (win32_compute_revents): Do not mark a pipe
15420         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15421
15422 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15423
15424         fts: allow compilation with C++
15425         * lib/fts_.h: Specify extern "C" linkage with C++.
15426
15427 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15428
15429         Fix gnulib-tool sed script de-commentation for AIX sed.
15430         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15431         sed.
15432
15433 2010-08-17  Eric Blake  <eblake@redhat.com>
15434
15435         test-stddef: test for (some) offsetof bugs
15436         * tests/test-stddef.c: Enhance test to ensure correct type of
15437         offsetof.
15438         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15439         that we are not fixing at this time.
15440
15441 2010-08-15  Bruno Haible  <bruno@clisp.org>
15442
15443         stpncpy: Allow stpncpy to be defined as a macro.
15444         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15445         if it's already correctly declared.
15446         * lib/string.in.h (stpncpy): Undefine before redefining.
15447         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15448
15449 2010-08-14  Bruno Haible  <bruno@clisp.org>
15450
15451         Rename module 'memxfrm' to 'amemxfrm'.
15452         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15453         (amemxfrm): Renamed from memxfrm.
15454         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15455         (amemxfrm): Renamed from memxfrm.
15456         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15457         * NEWS: Mention the change.
15458         * MODULES.html.sh (String handling <string.h>): Update.
15459         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15460         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15461         * lib/unicase/u16-casexfrm.c: Likewise.
15462         * lib/unicase/u32-casexfrm.c: Likewise.
15463         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15464         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15465         * lib/uninorm/u16-normxfrm.c: Likewise.
15466         * lib/uninorm/u32-normxfrm.c: Likewise.
15467         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15468         memxfrm.
15469         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15470         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15471         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15472         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15473         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15474         Suggested by Paul Eggert.
15475
15476 2010-08-14  Bruno Haible  <bruno@clisp.org>
15477
15478         Tests for module 'astrxfrm'.
15479         * modules/astrxfrm-tests: New file.
15480         * tests/test-astrxfrm.c: New file.
15481
15482         New module 'astrxfrm'.
15483         * lib/astrxfrm.h: New file.
15484         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15485         * modules/astrxfrm: New file.
15486
15487 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15488
15489         regex: Tweak doc.
15490         * doc/regex.texi (Overview): Don't mention regex.c.
15491         (GNU Regular Expression Compiling): Likewise.
15492         (Match-end-of-line Operator): Mention 'not_eol'.
15493
15494 2010-08-14  Brian Gough  <bjg@gnu.org>
15495             Bruno Haible  <bruno@clisp.org>
15496
15497         git-merge-changelog: add doc relating to use with bzr and hg.
15498         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15499
15500 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15501
15502         pthread: fix pthread.h creation for srcdir != builddir
15503         * modules/pthread (Makefile.am): Fix the rule to work also in a
15504         non-srcdir build.
15505
15506 2010-08-13  Karl Berry  <karl@gnu.org>
15507
15508         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15509         * doc/posix-*/*: force line break before @url of POSIX
15510         specifications.
15511         Suggested by Werner Lemberg.
15512
15513 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15514
15515         strtod: fix const diagnostic
15516         * lib/strtod.c (strtod): Don't assign const char * to char *,
15517         as this elicits a warning from GCC when warnings are enabled.
15518
15519 2010-08-10  Pádraig Brady <P@draigbrady.com>
15520         and Eric Blake  <eblake@redhat.com>
15521
15522         copy-acl: ignore ENOTSUP on HP-UX
15523         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15524         so that it is available for HP-UX.
15525         * lib/copy-acl.c (qcopy_acl): Use it.
15526         Reported by Patrick M. Callahan.
15527
15528 2010-08-10  Eric Blake  <eblake@redhat.com>
15529
15530         open, chown: relax license
15531         * modules/open (License): Change to LGPLv2+, with consent by all
15532         authors, for use in augeas.
15533         * modules/chown (License): Likewise.
15534         * modules/lchown (Likewise): Likewise.
15535         Requested by Adam Stokes.
15536
15537 2010-08-09  Karl Berry  <karl@gnu.org>
15538
15539         * build-aux/ar-lib: new file, import from Automake.
15540         * config/srclist.txt: autocheck for updates.
15541
15542 2010-08-09  Eric Blake  <eblake@redhat.com>
15543
15544         readlinkat: adjust client modules
15545         * modules/areadlinkat (Depends-on): Use readlinkat, not
15546         symlinkat.
15547         * modules/areadlinkat-with-size (Depends-on): Likewise.
15548
15549         mknod: be more vocal about danger of running tests as root
15550         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15551         root, since that is just asking for problems.
15552         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15553
15554         readlinkat: split into its own module
15555         * modules/symlinkat: Split readlinkat...
15556         * modules/readlinkat: ...into separate module.
15557         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15558         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15559         * lib/symlinkat.c (readlinkat): Move...
15560         * lib/readlinkat.c: ...into new file.
15561         * modules/symlinkat-tests: Split readlinkat test...
15562         * modules/readlinkat-tests: ...into separate module.
15563         * tests/test-symlinkat.c: Split...
15564         * tests/test-readlinkat.c: ...into new file.
15565         * NEWS: Document the split.
15566         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15567         * lib/unistd.in.h (readlinkat): Likewise.
15568         Suggested by Bruno Haible.
15569
15570 2010-08-08  Bruno Haible  <bruno@clisp.org>
15571
15572         memxfrm: Speed up.
15573         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15574         that usually only one call to strxfrm is necessary for each string
15575         part.
15576         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15577
15578 2010-08-07  Karl Berry  <karl@gnu.org>
15579
15580         * doc/posix-headers/limits.texi,
15581         * doc/posix-functions/malloc.texi,
15582         * doc/posix-functions/strsignal.texi: missing @item.
15583         * doc/ld-version-script.texi: spurious leading i.
15584         * doc/regex.texi (Interval Operators): no commas inside @var.
15585
15586 2010-08-01  Bruno Haible  <bruno@clisp.org>
15587
15588         Integrate the regex documentation.
15589         * doc/gnulib.texi: Define 'cn' index.
15590         (Regular expressions): New a chapter that includes regex.texi and
15591         regexprops-generic.texi.
15592         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15593         syntax.
15594
15595         Whitespace cleanup.
15596         * doc/regex.texi: Remove trailing spaces.
15597
15598         Add regex documentation.
15599         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15600         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15601         Written by Kathy A. Hargreaves and Karl Berry.
15602
15603 2010-08-01  Bruno Haible  <bruno@clisp.org>
15604
15605         link: Update documentation.
15606         * doc/posix-functions/link.texi: Update regarding Solaris.
15607
15608 2010-07-31  Bruno Haible  <bruno@clisp.org>
15609
15610         Update modules list.
15611         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15612         (String handling <string.h>): Add memcmp2, memxfrm.
15613         (Container data structures): Add xlist, xsublist, xoset.
15614         (Core language properties): Add alignof, unused-parameter.
15615         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15616         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15617         (Unibyte characters <ctype.h>): New section.
15618         (String handling <string.h>): New section.
15619         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15620         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15621         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15622         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15623         tan, tanh, tanl, y0, y1, yn.
15624         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15625         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15626         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15627         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15628         unlockpt, vdprintf, vdprintf-posix.
15629         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15630         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15631         xconcat-filename.
15632         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15633         getdtablesize, pipe2, pipe2-safer.
15634         (Security): New section.
15635         (Networking functions): Add accept4.
15636         (Signal handling): Add sigpipe.
15637         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15638         mbmemcasecoll.
15639         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15640         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15641         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15642         pipe-filter-ii.
15643         (Misc): Add argp-version-etc, login_tty, parse-duration.
15644
15645 2010-07-31  Bruno Haible  <bruno@clisp.org>
15646
15647         Improve doc in MODULES.html.
15648         * modules/linkat (Description): Add the word "function".
15649         * modules/mkfifo (Description): Likewise.
15650         * modules/mknod (Description): Likewise.
15651         * modules/remove (Description): Likewise.
15652         * modules/renameat (Description): Likewise.
15653         * modules/stat (Description): Likewise.
15654         * modules/symlink (Description): Likewise.
15655         * modules/unlink (Description): Likewise.
15656
15657 2010-07-31  Bruno Haible  <bruno@clisp.org>
15658
15659         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15660         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15661         option --enable/disable-c++ instead of --enable/disable-cxx.
15662         * NEWS: Mention the change.
15663
15664 2010-07-31  Bruno Haible  <bruno@clisp.org>
15665
15666         readlink, areadlink: Relax test a bit.
15667         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15668         alternative to ENOTDIR.
15669         * tests/test-areadlink.h (test_areadlink): Likewise.
15670         Reported by Rainer Tammer.
15671
15672 2010-07-31  Bruno Haible  <bruno@clisp.org>
15673
15674         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15675         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15676         character, perform the search using U_STRCHR.
15677         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15678         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15679         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15680         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15681         Suggested by Paolo Bonzini.
15682
15683 2010-07-31  Bruno Haible  <bruno@clisp.org>
15684
15685         unistr/u*-strstr: Fix dependencies.
15686         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15687         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15688         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15689
15690 2010-07-31  Bruno Haible  <bruno@clisp.org>
15691
15692         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15693         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15694         the beginning of the loop.
15695         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15696         cases in 'switch' statement.
15697
15698         unistr/u8-strchr: Fix several bugs.
15699         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15700         the string. When not found, return NULL, not a pointer near the end.
15701
15702         More tests for unistr/u8-strchr.
15703         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15704         that the function does not read past the first occurrence of the byte
15705         being searched.
15706         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15707         * tests/unistr/test-u16-strchr.c (main): New function.
15708         * tests/unistr/test-u32-strchr.c (main): New function.
15709
15710 2010-07-31  Bruno Haible  <bruno@clisp.org>
15711
15712         posix-modules: Ignore backup files of documentation files.
15713         * posix-modules: grep only through files named *.texi.
15714
15715 2010-07-31  Bruno Haible  <bruno@clisp.org>
15716
15717         symlinkat: Fix documentation.
15718         * doc/posix-functions/readlinkat.texi: Fix module name.
15719
15720 2010-07-31  Bruno Haible  <bruno@clisp.org>
15721
15722         fchownat: Replace also when chown has the trailing slash bug.
15723         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15724         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15725         introduced on 2010-04-10.
15726         Reported by Rainer Tammer.
15727
15728 2010-07-31  Bruno Haible  <bruno@clisp.org>
15729
15730         linkat: Work around AIX 7.1 bug.
15731         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15732         whether linkat handles trailing slash correctly. If not, replace linkat
15733         and define LINKAT_TRAILING_SLASH_BUG.
15734         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15735         check whether (fd1,file1) points to a directory if file1 or file2 ends
15736         in a slash. Code taken from lib/link.c.
15737         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15738         Reported by Rainer Tammer.
15739
15740 2010-07-31  Bruno Haible  <bruno@clisp.org>
15741
15742         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15743         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15744         This disables an xlc optimization that was causing wrong test results.
15745         Reported by Rainer Tammer.
15746
15747 2010-07-31  Bruno Haible  <bruno@clisp.org>
15748
15749         iconv: Work around AIX 6.1..7.1 bug.
15750         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15751         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15752         cross-compiling, guess no on all versions of AIX.
15753         Reported by Rainer Tammer.
15754
15755 2010-07-31  Bruno Haible  <bruno@clisp.org>
15756
15757         readlink: Relax test a bit.
15758         * tests/test-readlink.h (test_readlink): Allow different errno value
15759         when readlink is called with a file name that ends in / and refers to
15760         a file.
15761         Suggested by Eric Blake.
15762         Reported by Rainer Tammer.
15763
15764 2010-07-31  Bruno Haible  <bruno@clisp.org>
15765
15766         copysign: Does not require -lm on glibc systems.
15767         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15768         gl_COMMON_DOUBLE_MATHFUNC.
15769         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15770
15771 2010-07-31  Bruno Haible  <bruno@clisp.org>
15772
15773         duplocale: Work around AIX 7.1 bug.
15774         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15775         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15776         * lib/duplocale.c (rpl_duplocale): Update comment.
15777         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15778         Reported by Rainer Tammer.
15779
15780 2010-07-30  Bruno Haible  <bruno@clisp.org>
15781
15782         dirfd: Avoid link error on AIX 7.1.
15783         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15784         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15785         exist, set REPLACE_DIRFD.
15786         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15787         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15788         * doc/posix-functions/dirfd.texi: Update.
15789         Reported by Rainer Tammer.
15790
15791 2010-07-30  Eric Blake  <eblake@redhat.com>
15792
15793         strtod: next round of AIX fixes
15794         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15795         exponent.
15796         * tests/test-strtod.c (main): Enhance tests.
15797         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15798         Reported by Rainer Tammer.
15799
15800         futimens: fix configure check
15801         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15802         Reported by Bruno Haible.
15803
15804 2010-07-30  Bruno Haible  <bruno@clisp.org>
15805
15806         getline: Update regarding AIX.
15807         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15808         Reported by Rainer Tammer.
15809
15810 2010-07-30  Bruno Haible  <bruno@clisp.org>
15811
15812         wcwidth: Drop replacement on AIX 7.
15813         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15814         AIX 7.
15815         Reported by Rainer Tammer.
15816
15817 2010-07-30  Bruno Haible  <bruno@clisp.org>
15818
15819         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15820         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15821         a 'char *'.
15822         Reported by Rainer Tammer.
15823
15824 2010-07-30  Bruno Haible  <bruno@clisp.org>
15825
15826         unlink: Update regarding AIX.
15827         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15828         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15829         Reported by Rainer Tammer.
15830
15831 2010-07-30  Bruno Haible  <bruno@clisp.org>
15832
15833         symlink: Update regarding AIX.
15834         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15835         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15836         Reported by Rainer Tammer.
15837
15838 2010-07-30  Bruno Haible  <bruno@clisp.org>
15839
15840         strndup: Update regarding AIX.
15841         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15842         AIX 7.
15843         Reported by Rainer Tammer.
15844
15845 2010-07-30  Bruno Haible  <bruno@clisp.org>
15846
15847         stat: Update regarding AIX.
15848         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15849         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15850         Reported by Rainer Tammer.
15851
15852 2010-07-30  Bruno Haible  <bruno@clisp.org>
15853
15854         truncl: Fix autoconf test.
15855         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15856         whether truncl works.
15857         Reported by Rainer Tammer.
15858
15859 2010-07-30  Bruno Haible  <bruno@clisp.org>
15860
15861         round: Update regarding AIX.
15862         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15863         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15864         Reported by Rainer Tammer.
15865
15866 2010-07-30  Bruno Haible  <bruno@clisp.org>
15867
15868         rename: Update regarding AIX.
15869         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
15870         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
15871         Reported by Rainer Tammer.
15872
15873 2010-07-30  Bruno Haible  <bruno@clisp.org>
15874
15875         printf.m4: Update regarding AIX.
15876         * m4/printf.m4: Update comments regarding AIX.
15877         Reported by Rainer Tammer.
15878
15879 2010-07-30  Bruno Haible  <bruno@clisp.org>
15880
15881         iconv: Update regarding AIX.
15882         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
15883         AIX 7.
15884         Reported by Rainer Tammer.
15885
15886 2010-07-30  Bruno Haible  <bruno@clisp.org>
15887
15888         getopt: Update regarding AIX.
15889         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
15890         no on AIX.
15891         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
15892         Reported by Rainer Tammer.
15893
15894 2010-07-30  Bruno Haible  <bruno@clisp.org>
15895
15896         ldexpl; Update regarding AIX.
15897         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
15898         on AIX 7.
15899         Reported by Rainer Tammer.
15900
15901 2010-07-30  Bruno Haible  <bruno@clisp.org>
15902
15903         frexpl: Update regarding AIX.
15904         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
15905         on AIX 7.
15906         Reported by Rainer Tammer.
15907
15908 2010-07-30  Bruno Haible  <bruno@clisp.org>
15909
15910         open, fopen: Update regarding AIX.
15911         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
15912         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15913         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
15914         * doc/posix-functions/fopen.texi: Likewise.
15915         Reported by Rainer Tammer.
15916
15917 2010-07-30  Bruno Haible  <bruno@clisp.org>
15918
15919         chown: Update doc regarding AIX.
15920         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
15921         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
15922         Reported by Rainer Tammer.
15923
15924 2010-07-30  Eric Blake  <eblake@redhat.com>
15925
15926         strtod: fix bug in replacement function on AIX
15927         * lib/strtod.c (strtod): Special case broken "0x" parse in
15928         underlying strtod.
15929         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
15930         * doc/posix-functions/strtod.texi (strtod): Likewise.
15931         Reported by Rainer Tammer.
15932
15933 2010-07-30  Bruno Haible  <bruno@clisp.org>
15934
15935         mbrlen: Fix cross-compilation guess for AIX.
15936         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
15937         guess. Leftover from 2008-12-22.
15938
15939 2010-07-30  Bruno Haible  <bruno@clisp.org>
15940
15941         mbrtowc: Fix cross-compilation guess for AIX.
15942         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
15943         guess. Leftover from 2008-12-21.
15944
15945 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
15946
15947         init.sh: work around trap limitation of some shells
15948         * tests/init.sh (setup_): Move exit trap outside of shell function.
15949
15950 2010-07-29  Eric Blake  <eblake@redhat.com>
15951
15952         strtod: aid debugging
15953         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
15954         understanding why strtod is rejected.
15955
15956 2010-07-28  Bruno Haible  <bruno@clisp.org>
15957
15958         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
15959         * lib/unistr/u8-chr.c: Include <string.h>.
15960         * tests/unistr/test-u8-chr.c: Likewise.
15961         * tests/unistr/test-u16-chr.c: Likewise.
15962         * tests/unistr/test-u32-chr.c: Likewise.
15963         * tests/unistr/test-u8-strchr.c: Likewise.
15964         * tests/unistr/test-u16-strchr.c: Likewise.
15965         * tests/unistr/test-u32-strchr.c: Likewise.
15966         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
15967         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
15968         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
15969         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
15970
15971 2010-07-28  Bruno Haible  <bruno@clisp.org>
15972
15973         Use spaces for indentation, not tabs.
15974         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15975
15976 2010-07-27  Bruno Haible  <bruno@clisp.org>
15977
15978         mbspcasecmp: Fix function specification.
15979         * lib/string.in.h (mbspcasecmp): Fix specification comment.
15980         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
15981         Reported by Eric Blake <eblake@redhat.com>.
15982
15983 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
15984
15985         timespec: use cast and not conditional, as truncation isn't possible
15986         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
15987         instead of a conditional.  Comment about the situation in more detail.
15988         This undoes most of the 2009-10-29 patch.
15989
15990 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
15991
15992         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
15993         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
15994         * lib/unistr/u8-strchr.c: Likewise.
15995         * modules/unistr/u8-chr: Depend on memchr.
15996
15997         unistr/u*-strchr: add tests
15998         * modules/unistr/u8-strchr-tests: New file.
15999         * modules/unistr/u16-strchr-tests: New file.
16000         * modules/unistr/u32-strchr-tests: New file.
16001         * tests/unistr/test-strchr.h: New file.
16002         * tests/unistr/test-u8-strchr.c: New file.
16003         * tests/unistr/test-u16-strchr.c: New file.
16004         * tests/unistr/test-u32-strchr.c: New file.
16005
16006         unistr/u*-chr: test multibyte sequences more
16007         * tests/unistr/test-chr.h: Do complete testing of the characters in the
16008         test vector.
16009         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
16010         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
16011         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
16012
16013         unistr/u*-chr: test multibyte sequences
16014         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
16015
16016         unistr/u*-chr: prepare for multibyte tests
16017         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
16018         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
16019         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
16020         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
16021         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
16022         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
16023
16024 2010-07-18  Bruno Haible  <bruno@clisp.org>
16025
16026         unistr/u8-strchr: Optimize non-ASCII argument case.
16027         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
16028         because the first byte often matches anyway.
16029         Reported by Pádraig Brady <P@draigbrady.com>.
16030
16031 2010-07-15  Karl Berry  <karl@gnu.org>
16032
16033         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
16034
16035 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
16036
16037         getcwd: on Solaris, work better if ancestors are inaccessible
16038         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
16039         buffer and size, try again with a large buffer.  This works better
16040         on Solaris, since its getcwd succeeds even if the path to the root
16041         is inaccessible, and this is helpful in common cases such as .zfs
16042         hidden directories.  Problem reported by J Chapman Flack in
16043         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
16044         Use system getcwd if it's declared, not merely if it's partly
16045         working; use the partly-working test only to avoid needless effort
16046         if the system getcwd fails.
16047         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
16048         comment that was already obsolete and is now even more obsolete.
16049         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
16050         now might call strdup.
16051
16052 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
16053
16054         pthread: Add enough so that coreutils/src/sort.c compiles.
16055         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
16056         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
16057         gnulib. Include <sched.h> and <time.h>, as per POSIX.
16058         Include <sys/types.h>, in case it defines pthread_t.
16059         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
16060         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
16061         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
16062         (pthread_rwlockattr_t, pthread_spinlock_t):
16063         New typedefs, if HAVE_PTHREAD_T is not defined.
16064         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
16065         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
16066         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
16067         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
16068         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
16069         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
16070         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
16071         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
16072         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
16073         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
16074         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
16075         New macros.
16076         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
16077         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
16078         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
16079         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
16080         (pthread_spin_unlock): New dummy functions.
16081         (pthread_create): Return EAGAIN; don't set errno.
16082         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
16083         require AC_C_INLINE.
16084         * modules/pthread (Depends-on): Add sched, time.
16085         (pthread.h): Use AM_V_GEN.
16086
16087 2010-07-13  Bruno Haible  <bruno@clisp.org>
16088
16089         striconveh: Don't malloc memory if the result buffer is sufficient.
16090         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
16091         buffer if its size is sufficient.
16092         Reported by Ludovic Courtès <ludo@gnu.org>.
16093
16094 2010-07-13  Bruno Haible  <bruno@clisp.org>
16095
16096         strtod: Add safety check.
16097         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
16098
16099 2010-07-12  Bruno Haible  <bruno@clisp.org>
16100
16101         Unify tests that set gl_cv_func_ldexpl_no_libm.
16102         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
16103         gl_FUNC_LDEXPL.
16104         (gl_FUNC_LDEXPL): Invoke it.
16105         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16106
16107 2010-07-12  Bruno Haible  <bruno@clisp.org>
16108
16109         Unify tests that set gl_cv_func_ldexp_no_libm.
16110         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
16111         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
16112         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16113         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16114         * modules/strtod (Files): Add m4/ldexp.m4.
16115
16116 2010-07-12  Bruno Haible  <bruno@clisp.org>
16117
16118         Unify tests that set gl_cv_func_frexpl_no_libm.
16119         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
16120         gl_FUNC_FREXPL_NO_LIBM.
16121         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
16122         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16123
16124 2010-07-12  Bruno Haible  <bruno@clisp.org>
16125
16126         Unify tests that set gl_cv_func_frexp_no_libm.
16127         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
16128         gl_FUNC_FREXP_NO_LIBM.
16129         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
16130         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16131
16132 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16133
16134         memcoll: clarify sizes versus lengths, document better, and tweak perf
16135         * lib/memcoll.c (strcoll_loop, memcoll0):
16136         Improve quality of descriptive comments.  Name variables
16137         consistently as to whether they are lengths (which do not include
16138         terminating null) versus sizes (which do).
16139         * lib/xmemcoll.c (xmemcoll0): Likewise.
16140         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
16141         returned when s1size == 0; this is easier to compile and saves
16142         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
16143
16144 2010-07-12  Bruno Haible  <bruno@clisp.org>
16145
16146         Tests for module '_Exit'.
16147         * modules/_Exit-tests: New file.
16148         * tests/test-_Exit.sh: New file.
16149         * tests/test-_Exit.c: New file.
16150
16151         New module '_Exit'.
16152         * lib/stdlib.in.h (__attribute__): New macro.
16153         (_Exit): New declaration.
16154         * lib/_Exit.c: New file.
16155         * m4/_Exit.m4: New file.
16156         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
16157         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
16158         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
16159         * modules/_Exit: New file.
16160         * tests/test-stdlib-c++.cc (_Exit): Check signature.
16161         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
16162
16163 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16164
16165         strtod: make it more-accurate typically, and don't require libm
16166         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
16167         Include limits.h.  Don't include string.h.
16168         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
16169         (locale_isspace): New function, so that no casts are needed to
16170         check whether *s is a space.
16171         (ldexp): Provide an unused dummy if not available.
16172         (scale_radix_exp, parse_number, underlying_strtod): New functions.
16173         (strtod): Use them.  This implementation prefers to use the
16174         underlying strtod if available, falling back on our own code
16175         only to fix known bugs.  This is more likely to produce an
16176         accurate result.  Also, it avoids the use of libm functions.
16177         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
16178         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
16179         was absent, but it caused a test failure with coreutils.
16180         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
16181         with libm.
16182         * modules/strtod (Makefile.am, Link): libm is no longer needed.
16183         * modules/strtod-tests (Makefile.am): Likewise.
16184
16185 2010-07-11  Pádraig Brady  <P@draigBrady.com>
16186             Bruno Haible  <bruno@clisp.org>
16187
16188         unistr/u8-strchr: Optimize ASCII argument case.
16189         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
16190
16191 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16192
16193         (x)memcoll: minor tweaks
16194         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
16195         is after the type that it qualifies.
16196         (memcoll0): Likewise.
16197         * lib/memcoll.h (memcoll0): Likewise.
16198         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
16199         * lib/xmemcoll.h (xmemcoll0): Likewise.
16200         * lib/memcoll.c (memcoll0): Correct the comment.  This function
16201         differs from memcoll in that the NUL byte is part of the argument.
16202         Omit the abort-checks, as performance is a real issue here.  Plus,
16203         the checks were wrong anyway (an off-by-one error).  Omit local
16204         variable 'diff', as it's a bit clearer that way.
16205         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
16206         no longer needed.
16207
16208 2010-07-08  Chen Guo <chenguo4@yahoo.com>
16209
16210         (x)memcoll: speedup when input is known to be NUL delimited
16211         * lib/memcoll.c: Include stdlib.
16212         (memcoll0): New function.
16213         (strcoll_loop): New function, refactored for use in both memcoll
16214         and memcoll0.
16215         * lib/memcoll.h (memcoll0): Add prototype.
16216         * lib/xmemcoll.c (xmemcoll0): New function.
16217         (collate_error): New function, refactored for use in both xmemcoll
16218         and xmemcoll0.
16219         * lib/xmemcoll.h (xmemcoll0): Add prototype.
16220         * m4/memcoll.m4: add inline invocation.
16221
16222 2010-07-06  Pádraig Brady  <P@draigBrady.com>
16223
16224         * build-aux/bootstrap: Remove any local translations
16225         from the translation project synchronization directory,
16226         so that local only translations are not distributed.
16227
16228 2010-07-04  Bruno Haible  <bruno@clisp.org>
16229
16230         fsusage: Clarify which code applies to which platforms.
16231         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
16232         platform.
16233         * lib/fsusage.c (get_fs_usage): Likewise.
16234
16235 2010-07-04  Bruno Haible  <bruno@clisp.org>
16236
16237         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
16238         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
16239         Reported by Martin Lambers <marlam@marlam.de>.
16240
16241 2010-07-04  Jim Meyering  <meyering@redhat.com>
16242
16243         hash: once again explicitly disallow insertion of NULL
16244         * lib/hash.c (hash_insert0): Reinstate just-removed test:
16245         inserting a NULL pointer cannot work with these functions.
16246         Add a comment with details.
16247         This reverts part of the 2010-07-01 commit, 5bef1a35
16248         "hash: extend module to deal with non-pointer keys".
16249
16250 2010-07-01  Bruno Haible  <bruno@clisp.org>
16251
16252         stdbool: Update doc.
16253         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
16254         Info from Christian Weisgerber <naddy@mips.inka.de>.
16255
16256 2010-07-01  Jim Meyering  <meyering@redhat.com>
16257
16258         hash: extend module to deal with non-pointer keys
16259         * lib/hash.c (hash_insert0): New interface, much like hash_insert
16260         but that allows insertion of non-pointer entries.
16261         Do not disallow an ENTRY value of NULL.
16262         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
16263         * lib/hash.h (hash_insert0): Declare.
16264
16265 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16266
16267         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
16268         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
16269         not present (i.e. with autoconf 2.59 and when using gettextize, not
16270         gnulib), require AC_GNU_SOURCE instead.
16271
16272 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
16273
16274         idpriv-drop: Fix tests.
16275         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
16276         not to the test-idpriv-droptemp program.
16277
16278 2010-06-29  Bruno Haible  <bruno@clisp.org>
16279
16280         string: Fix syntax error with g++ 2.96.
16281         * lib/string.in.h (__pure__): Remove definition.
16282         (_GL_ATTRIBUTE_PURE): New macro.
16283         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
16284         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
16285         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16286
16287 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
16288
16289         unitypes: Fix bug introduced on 2010-05-18.
16290         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
16291
16292 2010-06-22  Eric Blake  <eblake@redhat.com>
16293
16294         memmem: slight optimization
16295         * lib/str-two-way.h (critical_factorization): Update comments.
16296         Reduce work during factorization phase.
16297         Reported by Carlos Bueno <carlos@bueno.org>.
16298
16299 2010-06-21  Bruno Haible  <bruno@clisp.org>
16300
16301         Fix HAVE_CALLOC_POSIX misnomer.
16302         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16303         !HAVE_CALLOC_POSIX.
16304         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16305         HAVE_CALLOC_POSIX.
16306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16307         instead of HAVE_CALLOC_POSIX.
16308         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16309         HAVE_CALLOC_POSIX.
16310
16311         Use modern idiom for calloc() replacement.
16312         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16313         AC_FUNC_CALLOC.
16314         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16315         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16316         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16317         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16318         (gl_REPLACE_CALLOC): New macro.
16319
16320 2010-06-21  Bruno Haible  <bruno@clisp.org>
16321
16322         Fix HAVE_REALLOC_POSIX misnomer.
16323         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16324         !HAVE_REALLOC_POSIX.
16325         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16326         HAVE_REALLOC_POSIX.
16327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16328         instead of HAVE_REALLOC_POSIX.
16329         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16330         HAVE_REALLOC_POSIX.
16331
16332         Use modern idiom for realloc() replacement.
16333         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16334         AC_FUNC_REALLOC.
16335         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16336         Autoconf's AC_FUNC_REALLOC.
16337         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16338         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16339         (gl_REPLACE_REALLOC): New macro.
16340         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16341
16342 2010-06-21  Bruno Haible  <bruno@clisp.org>
16343
16344         Fix HAVE_MALLOC_POSIX misnomer.
16345         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16346         !HAVE_MALLOC_POSIX.
16347         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16348         HAVE_MALLOC_POSIX.
16349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16350         instead of HAVE_MALLOC_POSIX.
16351         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16352         HAVE_MALLOC_POSIX.
16353
16354         Use modern idiom for malloc() replacement.
16355         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16356         AC_FUNC_MALLOC.
16357         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16358         Autoconf's AC_FUNC_MALLOC.
16359         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16360         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16361         (gl_REPLACE_MALLOC): New macro.
16362         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16363
16364 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16365
16366         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16367         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16368         This macro takes 3 arguments, not 4.
16369
16370 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16371
16372         ipv6: fix detection under mingw
16373         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16374         in6_addr.
16375
16376 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16377
16378         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16379         that strtod() works when cross-compiling to a glibc version known
16380         to work.
16381
16382 2010-06-15  Bruno Haible  <bruno@clisp.org>
16383
16384         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16385
16386 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16387
16388         select: Correct timeout.
16389         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16390
16391 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16392
16393         git-version-gen: init shell var to avoid env var influence
16394         * build-aux/git-version-gen (v): Init shell var to empty.
16395
16396 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16397
16398         priv-set: Don't assume that priv.h exists merely because getppriv does.
16399         See Jan Andersen's bug report about AIX 5L in
16400         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16401         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16402         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16403         * lib/priv-set.h: Likewise.
16404         * tests/test-priv-set.c: Likewise.
16405
16406 2010-06-13  Bruno Haible  <bruno@clisp.org>
16407
16408         relocatable: Make it easier to test whether to install wrappers.
16409         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16410         RELOCATABLE_VIA_WRAPPER.
16411
16412 2010-06-13  Bruno Haible  <bruno@clisp.org>
16413
16414         gnulib-tool: Display specified modules and dependencies differently.
16415         * gnulib-tool (func_show_module_list): New function.
16416         (func_import, func_create_testdir): Invoke it.
16417         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16418
16419 2010-06-13  Bruno Haible  <bruno@clisp.org>
16420
16421         gnulib-tool: Align code of func_import and func_create_testdir.
16422         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16423         specified_modules.
16424
16425 2010-06-12  Jim Meyering  <meyering@redhat.com>
16426
16427         test-inttostr: avoid spurious failure on Solaris 9
16428         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16429         to accept "%ju".  Reported by Bruno Haible.
16430
16431 2010-06-11  Jim Meyering  <meyering@redhat.com>
16432
16433         test-sys_socket: mark variables as used more readably
16434         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16435         as "used" explicitly via (void) statement casts.  This is more
16436         readable than using them in an artificial return expression.
16437         Suggestion from Bruno Haible.
16438
16439 2010-06-11  Bruno Haible  <bruno@clisp.org>
16440
16441         Avoid some more warnings from "gcc -Wwrite-strings".
16442         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16443         to 'const char *'.
16444         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16445         * tests/test-c-strcasestr.c (main): Likewise.
16446         * tests/test-mbscasestr1.c (main): Likewise.
16447         * tests/test-mbscasestr2.c (main): Likewise.
16448         * tests/test-memmem.c (main): Likewise.
16449         * tests/test-strstr.c (main): Likewise.
16450         * tests/test-strcasestr.c (main): Likewise.
16451
16452 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16453
16454         init.sh: change framework_failure_ to fail with status 99, not 1
16455         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16456         automake's parallel-tests rule that this is an unexpected failure,
16457         even if the test is listed in XFAIL_TESTS.
16458
16459 2010-06-11  Jim Meyering  <meyering@redhat.com>
16460
16461         test-inttostr: avoid warnings about 4-6KB literal strings
16462         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16463         Include "macros.h", for its definition of ASSERT.
16464         (CK): s/assert/ASSERT/
16465         * modules/inttostr-tests (Files): Add macros.h.
16466
16467         init.sh: don't use $ME_ or skip_ before they are defined
16468         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16469         their first uses.  Also hoist their companions: warn_, fail_,
16470         framework_failure_, $stderr_fileno.  Prompted by a patch from
16471         Stefano Lattarini.
16472
16473         test-sys_socket: avoid set-but-not-used warnings from gcc
16474         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16475         avoid warning about set-but-not-used variables.
16476
16477         test-xvasprintf: avoid 'const' discard warnings
16478         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16479         "const" when assigning from literal strings.
16480         (test_xasprintf): Add "void" in function argument list to placate
16481         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16482
16483         tests: avoid compilation warnings in argmatch and exclude tests...
16484         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16485         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16486         Since it always exits, declare with the "noreturn" attribute.
16487         * tests/test-argmatch.c: Likewise.
16488
16489         tests: avoid 'const' discard warnings in mbsstr tests
16490         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16491         * tests/test-mbsstr2.c (main): Likewise.
16492
16493         test-verify: avoid warning from gcc's -Wmissing-declarations
16494         * tests/test-verify.c (function): Declare to be static.
16495
16496         test-inttostr.c: include <string.h> for use of strcmp
16497         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16498
16499         test-linkat: avoid failed assertion on "other" architectures
16500         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16501         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16502         sparc: https://bugs.launchpad.net/bugs/591968
16503
16504 2010-06-11  Jim Meyering  <meyering@redhat.com>
16505
16506         printf.m4: avoid autoconf's "Expanded Before Required" warning
16507         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16508         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16509         autoconf warning.
16510
16511 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16512
16513         Replacement header templates are now named with ".in", not "_".
16514         * doc/gnulib-intro.texi: Correct.
16515
16516 2010-06-10  Jim Meyering  <meyering@redhat.com>
16517
16518         inttostr-tests: depend on snprintf, not snprintf-posix
16519         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16520         snprintf-posix, to avoid this aclocal failure:
16521           missing file gnulib-tests/vasnprintf.c
16522           configure.ac:45: error: expected source file, required through \
16523           AC_LIBSOURCES, not found
16524
16525 2010-06-10  Jim Meyering  <meyering@redhat.com>
16526
16527         inttostr: add a new function, inttostr, and tests
16528         The namesake function was not available.  The existence of the
16529         template file, inttostr.c makes its addition nontrivial.
16530         * lib/anytostr.c: Rename from inttostr.c.
16531         (anytostr): Rename from inttostr.
16532         * lib/inttostr.c: New file.
16533         * modules/inttostr (Files): Add anytostr.c.
16534         (Makefile.am): Set lib_SOURCES instead of ...
16535         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16536         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16537         * lib/offtostr.c: Likewise.
16538         * lib/uinttostr.c: Likewise.
16539         * lib/umaxtostr.c: Likewise.
16540         * modules/inttostr-tests: New file.
16541         * tests/test-inttostr.c: New file.  Test these functions.
16542
16543 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16544             Bruno Haible  <bruno@clisp.org>
16545
16546         Add "Extending Gnulib" chapter to manual.
16547         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16548         chapter.
16549         (Extending Gnulib): New chapter.
16550         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16551         chapter.
16552
16553 2010-06-09  Bruno Haible  <bruno@clisp.org>
16554
16555         Avoid relocwrapper link errors due to gnulib replacement functions.
16556         * lib/areadlink.c: Use the system's malloc, realloc functions.
16557         (areadlink): Set errno to ENOMEM explicitly.
16558         * modules/areadlink (Depends-on): Remove malloc-posix.
16559         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16560
16561 2010-06-09  Bruno Haible  <bruno@clisp.org>
16562
16563         Avoid relocwrapper link errors due to gnulib replacement functions.
16564         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16565         * lib/malloca.c: Likewise.
16566         * lib/relocatable.c: Likewise.
16567         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16568         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16569         * lib/setenv.c: Use the system's malloc, realloc functions.
16570         * lib/strerror.c: Use the system's sprintf function.
16571         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16572
16573 2010-06-04  Bruno Haible  <bruno@clisp.org>
16574
16575         Prefer documented low-level autoconf macro names.
16576         * m4/lib-link.m4: Use m4_translit instead of translit.
16577         * m4/environ.m4: Likewise.
16578         * m4/mathfunc.m4: Likewise.
16579         * m4/onceonly.m4: Likewise.
16580         * m4/stdint.m4: Likewise.
16581         Suggested by Eric Blake.
16582
16583 2010-06-04  Martin Lambers  <marlam@marlam.de>
16584             Bruno Haible  <bruno@clisp.org>
16585
16586         havelib: Allow library names with '+' characters.
16587         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16588         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16589
16590 2010-06-09  Bruno Haible  <bruno@clisp.org>
16591
16592         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16593         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16594         realloc failed.
16595
16596 2010-06-08  Peter Simons  <simons@cryp.to>
16597
16598         maint.mk: make the news-check rule more configurable
16599         * top/maint.mk (news-check-lines-spec): New variable.
16600         (news-check): Use "sed -n 1,10p" in place of "head".
16601
16602 2010-06-07  Jim Meyering  <meyering@redhat.com>
16603
16604         do-release-commit-and-tag: fix typo in --help
16605         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16606
16607         regex: avoid new dead-code warning with gcc-4.6.0
16608         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16609         if-block containing a while-loop.  It's been unused for at least
16610         5 years.
16611
16612 2010-06-05  Bruno Haible  <bruno@clisp.org>
16613
16614         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16615         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16616
16617 2010-06-04  Bruno Haible  <bruno@clisp.org>
16618
16619         Update to GNU gettext 0.18.1.
16620         * modules/gettext (configure.ac): Require gettext infrastructure from
16621         version 0.18.1.
16622
16623 2010-06-03  Bruno Haible  <bruno@clisp.org>
16624
16625         Don't use AC_LIBOBJ with file names in subdirectories.
16626         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16627         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16628         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16629         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16630         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16631         gl_LIBUNISTRING_LIBSOURCE.
16632         (Makefile.am): Augment lib_SOURCES here, conditionally.
16633         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16634
16635 2010-06-03  Bruno Haible  <bruno@clisp.org>
16636
16637         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16638         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16639         expansion does not end with a newline.
16640         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16641         unnecessary newline.
16642
16643 2010-06-03  Bruno Haible  <bruno@clisp.org>
16644
16645         Reduce dependencies.
16646         * tests/test-quotearg.h: New file, extracted from
16647         tests/test-quotearg.c.
16648         * tests/test-quotearg-simple.c: New file, extracted from
16649         tests/test-quotearg.c.
16650         * tests/test-quotearg.c: Don't include <ctype.h>.
16651         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16652         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16653         use_quote_double_quotes, use_quotearg_colon): Moved to
16654         tests/test-quotearg.h.
16655         (results_g, flag_results, custom_quotes, custom_results): Moved
16656         to tests/test-quotearg-simple.c.
16657         (main): Moved the part that does not depend on gettext to
16658         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16659         performed.
16660         * modules/quotearg-simple: New file.
16661         * modules/quotearg-simple-tests: New file.
16662         * modules/quotearg (Depends-on): Add quotearg-simple.
16663         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16664         (Files): Add tests/test-quotearg.h.
16665         Reported by Paolo Bonzini.
16666
16667 2010-06-03  Bruno Haible  <bruno@clisp.org>
16668
16669         Reduce dependencies.
16670         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16671
16672 2010-06-03  Bruno Haible  <bruno@clisp.org>
16673
16674         time: Undefine more broken macros.
16675         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16676         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16677         Reported by Eric Blake.
16678
16679 2010-06-03  Bruno Haible  <bruno@clisp.org>
16680
16681         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16682         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16683         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16684         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16685         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16686         Reported by Ludovic Courtès <ludo@gnu.org>.
16687
16688 2010-06-02  Eric Blake  <eblake@redhat.com>
16689
16690         time: work with mingw + pthreads-win32 library
16691         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16692         if timespec is defined only in pthread.h.
16693         * modules/time (Makefile.am): Substitute it.
16694         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16695         <pthread.h>, when needed.
16696         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16697         from the library.
16698
16699 2010-05-31  Bruno Haible  <bruno@clisp.org>
16700
16701         Avoid expanding two macros in the wrong order.
16702         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16703         gl_LIBUNISTRING if it is defined.
16704         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16705         autoconf >= 2.64.
16706         Reported by Ludovic Courtès <ludo@gnu.org>.
16707
16708 2010-05-27  Jim Meyering  <meyering@redhat.com>
16709
16710         maint.mk: also prohibit "#undef" of always-defined symbols
16711         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16712         Allow more than one space before the symbol name.
16713         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16714         the regexp uses alternation.
16715
16716 2010-05-26  Eric Blake  <eblake@redhat.com>
16717
16718         maint.mk: avoid echo -e
16719         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16720         Convert all uses of echo -* to printf.
16721         Reported by Matthias Bolte.
16722
16723 2010-05-25  Bruno Haible  <bruno@clisp.org>
16724
16725         Update to GNU gettext 0.18, part 2.
16726         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16727         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16728
16729 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16730
16731         Add missing include in test-pwrite.c.
16732         * tests/test-pwrite.c: Include string.h, for strcmp.
16733
16734 2010-05-24  Bruno Haible  <bruno@clisp.org>
16735
16736         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16737
16738 2010-05-24  Bruno Haible  <bruno@clisp.org>
16739
16740         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16741         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16742         iconveh_error argument.
16743         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16744         U_STRCONV_TO_LOCALE.
16745         * lib/unistr/u16-strcoll.c: Likewise.
16746         * lib/unistr/u32-strcoll.c: Likewise.
16747         * modules/unistr/u8-strcoll (Depends-on): Add
16748         uniconv/u8-strconv-to-enc, localcharset. Remove
16749         uniconv/u8-strconv-to-locale.
16750         (configure.ac): Bump version number.
16751         * modules/unistr/u16-strcoll (Depends-on): Add
16752         uniconv/u16-strconv-to-enc, localcharset. Remove
16753         uniconv/u16-strconv-to-locale.
16754         (configure.ac): Bump version number.
16755         * modules/unistr/u32-strcoll (Depends-on): Add
16756         uniconv/u32-strconv-to-enc, localcharset. Remove
16757         uniconv/u32-strconv-to-locale.
16758         (configure.ac): Bump version number.
16759
16760 2010-05-24  Bruno Haible  <bruno@clisp.org>
16761
16762         Avoid a test failure on NetBSD 5.0.
16763         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16764         an iconv() bug.
16765
16766 2010-05-24  Bruno Haible  <bruno@clisp.org>
16767
16768         Adjust #include directive style.
16769         * modules/regex (Includes): Recommend to write <regex.h>.
16770
16771 2010-05-24  Bruno Haible  <bruno@clisp.org>
16772
16773         regex: Don't require alloca.
16774         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16775         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16776         only inside if (0).
16777
16778 2010-05-23  Jim Meyering  <meyering@redhat.com>
16779
16780         test-renameat.c: include <sys/stat.h>
16781         * tests/test-renameat.c: Include <sys/stat.h>; required for
16782         definition of S_IS* macros.
16783
16784 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16785
16786         Update maintainer documentation for 'relocatable-prog' module.
16787         * doc/relocatable-maint.texi: Update.
16788         Comments by Bruno Haible.
16789
16790 2010-05-23  Bruno Haible  <bruno@clisp.org>
16791
16792         git-merge-changelog: Enable --split-merged-entry by default.
16793         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16794         (usage): Don't mention this option any more.
16795         Reported by Ralf Wildenhues.
16796
16797 2010-05-23  Jim Meyering  <meyering@redhat.com>
16798
16799         test-pwrite: do not leave behind a test file named "out"
16800         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16801         The trivial-looking use of init.sh is really necessary.
16802         It ensures that the temporary file, "out", is created in
16803         a temporary directory, and removed upon termination.
16804         * tests/test-pwrite.sh: Re-add file.
16805         * modules/pwrite-tests: Reference it.
16806
16807 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16808
16809         Fix output redirection buglet in init.sh.
16810         * tests/init.sh: Fix redirection of stderr.
16811
16812 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16813
16814         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16815
16816 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16817
16818         * modules/valgrind-tests: New file.
16819         * m4/valgrind-tests.m4: New file.
16820         * doc/valgrind-tests.texi: New file.
16821         * doc/gnulib.texi (Running self-tests under valgrind): New
16822         section.
16823
16824 2010-05-19  Bruno Haible  <bruno@clisp.org>
16825
16826         Clean up dead code in recent commit.
16827         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16828         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16829         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16830         Suggested by Paolo Bonzini.
16831
16832 2010-05-19  Bruno Haible  <bruno@clisp.org>
16833
16834         Avoid valgrind error reports from libunistring.
16835         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16836         * modules/libunistring (Files): Add it.
16837         * modules/libunistring-optional (Files): Likewise.
16838
16839 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16840             Bruno Haible  <bruno@clisp.org>
16841
16842         New module 'libunistring-optional'.
16843         * modules/libunistring-optional: New file.
16844         * m4/libunistring-base.m4: New file.
16845         * m4/libunistring-optional.m4: New file.
16846         * lib/unicase.in.h: Renamed from lib/unicase.h.
16847         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16848         * lib/unictype.in.h: Renamed from lib/unictype.h.
16849         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16850         * lib/uniname.in.h: Renamed from lib/uniname.h.
16851         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16852         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16853         * lib/unistr.in.h: Renamed from lib/unistr.h.
16854         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16855         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16856         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16857         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16858         gl_LIBUNISTRING. If the library was found, determine the installed
16859         version and set LIBUNISTRING_VERSION.
16860         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16861         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16862         handle a configuration option --with-included-libunistring.
16863         * modules/libunistring (Files): Add m4/absolute-header.m4.
16864         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16865         Add m4/libunistring-base.m4.
16866         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16867         (Makefile.am): Build unicase.h from unicase.in.h.
16868         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
16869         Add m4/libunistring-base.m4.
16870         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16871         (Makefile.am): Build uniconv.h from uniconv.in.h.
16872         * modules/unictype/base (Files): Use unictype.in.h instead of
16873         unictype.h. Add m4/libunistring-base.m4.
16874         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16875         (Makefile.am): Build unictype.h from unictype.in.h.
16876         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
16877         Add m4/libunistring-base.m4.
16878         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16879         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
16880         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
16881         Add m4/libunistring-base.m4.
16882         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16883         (Makefile.am): Build uniname.h from uniname.in.h.
16884         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
16885         Add m4/libunistring-base.m4.
16886         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16887         (Makefile.am): Build uninorm.h from uninorm.in.h.
16888         * modules/unistdio/base (Files): Use unistdio.in.h instead of
16889         unistdio.h. Add m4/libunistring-base.m4.
16890         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16891         (Makefile.am): Build unistdio.h from unistdio.in.h.
16892         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
16893         Add m4/libunistring-base.m4.
16894         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16895         (Makefile.am): Build unistr.h from unistr.in.h.
16896         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
16897         Add m4/libunistring-base.m4.
16898         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16899         (Makefile.am): Build unitypes.h from unitypes.in.h.
16900         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
16901         Add m4/libunistring-base.m4.
16902         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16903         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
16904         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
16905         uniwidth.h. Add m4/libunistring-base.m4.
16906         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16907         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
16908         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
16909         instead of augmenting lib_SOURCES.
16910         * modules/unicase/empty-suffix-context: Likewise.
16911         * modules/unicase/locale-language: Likewise.
16912         * modules/unicase/tolower: Likewise.
16913         * modules/unicase/totitle: Likewise.
16914         * modules/unicase/toupper: Likewise.
16915         * modules/unicase/u8-casecmp: Likewise.
16916         * modules/unicase/u8-casecoll: Likewise.
16917         * modules/unicase/u8-casefold: Likewise.
16918         * modules/unicase/u8-casexfrm: Likewise.
16919         * modules/unicase/u8-ct-casefold: Likewise.
16920         * modules/unicase/u8-ct-tolower: Likewise.
16921         * modules/unicase/u8-ct-totitle: Likewise.
16922         * modules/unicase/u8-ct-toupper: Likewise.
16923         * modules/unicase/u8-is-cased: Likewise.
16924         * modules/unicase/u8-is-casefolded: Likewise.
16925         * modules/unicase/u8-is-lowercase: Likewise.
16926         * modules/unicase/u8-is-titlecase: Likewise.
16927         * modules/unicase/u8-is-uppercase: Likewise.
16928         * modules/unicase/u8-prefix-context: Likewise.
16929         * modules/unicase/u8-suffix-context: Likewise.
16930         * modules/unicase/u8-tolower: Likewise.
16931         * modules/unicase/u8-totitle: Likewise.
16932         * modules/unicase/u8-toupper: Likewise.
16933         * modules/unicase/u16-casecmp: Likewise.
16934         * modules/unicase/u16-casecoll: Likewise.
16935         * modules/unicase/u16-casefold: Likewise.
16936         * modules/unicase/u16-casexfrm: Likewise.
16937         * modules/unicase/u16-ct-casefold: Likewise.
16938         * modules/unicase/u16-ct-tolower: Likewise.
16939         * modules/unicase/u16-ct-totitle: Likewise.
16940         * modules/unicase/u16-ct-toupper: Likewise.
16941         * modules/unicase/u16-is-cased: Likewise.
16942         * modules/unicase/u16-is-casefolded: Likewise.
16943         * modules/unicase/u16-is-lowercase: Likewise.
16944         * modules/unicase/u16-is-titlecase: Likewise.
16945         * modules/unicase/u16-is-uppercase: Likewise.
16946         * modules/unicase/u16-prefix-context: Likewise.
16947         * modules/unicase/u16-suffix-context: Likewise.
16948         * modules/unicase/u16-tolower: Likewise.
16949         * modules/unicase/u16-totitle: Likewise.
16950         * modules/unicase/u16-toupper: Likewise.
16951         * modules/unicase/u32-casecmp: Likewise.
16952         * modules/unicase/u32-casecoll: Likewise.
16953         * modules/unicase/u32-casefold: Likewise.
16954         * modules/unicase/u32-casexfrm: Likewise.
16955         * modules/unicase/u32-ct-casefold: Likewise.
16956         * modules/unicase/u32-ct-tolower: Likewise.
16957         * modules/unicase/u32-ct-totitle: Likewise.
16958         * modules/unicase/u32-ct-toupper: Likewise.
16959         * modules/unicase/u32-is-cased: Likewise.
16960         * modules/unicase/u32-is-casefolded: Likewise.
16961         * modules/unicase/u32-is-lowercase: Likewise.
16962         * modules/unicase/u32-is-titlecase: Likewise.
16963         * modules/unicase/u32-is-uppercase: Likewise.
16964         * modules/unicase/u32-prefix-context: Likewise.
16965         * modules/unicase/u32-suffix-context: Likewise.
16966         * modules/unicase/u32-tolower: Likewise.
16967         * modules/unicase/u32-totitle: Likewise.
16968         * modules/unicase/u32-toupper: Likewise.
16969         * modules/unicase/ulc-casecmp: Likewise.
16970         * modules/unicase/ulc-casecoll: Likewise.
16971         * modules/unicase/ulc-casexfrm: Likewise.
16972         * modules/uniconv/u8-conv-from-enc: Likewise.
16973         * modules/uniconv/u8-conv-to-enc: Likewise.
16974         * modules/uniconv/u8-strconv-from-enc: Likewise.
16975         * modules/uniconv/u8-strconv-from-locale: Likewise.
16976         * modules/uniconv/u8-strconv-to-enc: Likewise.
16977         * modules/uniconv/u8-strconv-to-locale: Likewise.
16978         * modules/uniconv/u16-conv-from-enc: Likewise.
16979         * modules/uniconv/u16-conv-to-enc: Likewise.
16980         * modules/uniconv/u16-strconv-from-enc: Likewise.
16981         * modules/uniconv/u16-strconv-from-locale: Likewise.
16982         * modules/uniconv/u16-strconv-to-enc: Likewise.
16983         * modules/uniconv/u16-strconv-to-locale: Likewise.
16984         * modules/uniconv/u32-conv-from-enc: Likewise.
16985         * modules/uniconv/u32-conv-to-enc: Likewise.
16986         * modules/uniconv/u32-strconv-from-enc: Likewise.
16987         * modules/uniconv/u32-strconv-from-locale: Likewise.
16988         * modules/uniconv/u32-strconv-to-enc: Likewise.
16989         * modules/uniconv/u32-strconv-to-locale: Likewise.
16990         * modules/unictype/bidicategory-byname: Likewise.
16991         * modules/unictype/bidicategory-name: Likewise.
16992         * modules/unictype/bidicategory-of: Likewise.
16993         * modules/unictype/bidicategory-test: Likewise.
16994         * modules/unictype/block-list: Likewise.
16995         * modules/unictype/block-test: Likewise.
16996         * modules/unictype/category-C: Likewise.
16997         * modules/unictype/category-Cc: Likewise.
16998         * modules/unictype/category-Cf: Likewise.
16999         * modules/unictype/category-Cn: Likewise.
17000         * modules/unictype/category-Co: Likewise.
17001         * modules/unictype/category-Cs: Likewise.
17002         * modules/unictype/category-L: Likewise.
17003         * modules/unictype/category-Ll: Likewise.
17004         * modules/unictype/category-Lm: Likewise.
17005         * modules/unictype/category-Lo: Likewise.
17006         * modules/unictype/category-Lt: Likewise.
17007         * modules/unictype/category-Lu: Likewise.
17008         * modules/unictype/category-M: Likewise.
17009         * modules/unictype/category-Mc: Likewise.
17010         * modules/unictype/category-Me: Likewise.
17011         * modules/unictype/category-Mn: Likewise.
17012         * modules/unictype/category-N: Likewise.
17013         * modules/unictype/category-Nd: Likewise.
17014         * modules/unictype/category-Nl: Likewise.
17015         * modules/unictype/category-No: Likewise.
17016         * modules/unictype/category-P: Likewise.
17017         * modules/unictype/category-Pc: Likewise.
17018         * modules/unictype/category-Pd: Likewise.
17019         * modules/unictype/category-Pe: Likewise.
17020         * modules/unictype/category-Pf: Likewise.
17021         * modules/unictype/category-Pi: Likewise.
17022         * modules/unictype/category-Po: Likewise.
17023         * modules/unictype/category-Ps: Likewise.
17024         * modules/unictype/category-S: Likewise.
17025         * modules/unictype/category-Sc: Likewise.
17026         * modules/unictype/category-Sk: Likewise.
17027         * modules/unictype/category-Sm: Likewise.
17028         * modules/unictype/category-So: Likewise.
17029         * modules/unictype/category-Z: Likewise.
17030         * modules/unictype/category-Zl: Likewise.
17031         * modules/unictype/category-Zp: Likewise.
17032         * modules/unictype/category-Zs: Likewise.
17033         * modules/unictype/category-and: Likewise.
17034         * modules/unictype/category-and-not: Likewise.
17035         * modules/unictype/category-byname: Likewise.
17036         * modules/unictype/category-name: Likewise.
17037         * modules/unictype/category-none: Likewise.
17038         * modules/unictype/category-of: Likewise.
17039         * modules/unictype/category-or: Likewise.
17040         * modules/unictype/category-test: Likewise.
17041         * modules/unictype/combining-class: Likewise.
17042         * modules/unictype/ctype-alnum: Likewise.
17043         * modules/unictype/ctype-alpha: Likewise.
17044         * modules/unictype/ctype-blank: Likewise.
17045         * modules/unictype/ctype-cntrl: Likewise.
17046         * modules/unictype/ctype-digit: Likewise.
17047         * modules/unictype/ctype-graph: Likewise.
17048         * modules/unictype/ctype-lower: Likewise.
17049         * modules/unictype/ctype-print: Likewise.
17050         * modules/unictype/ctype-punct: Likewise.
17051         * modules/unictype/ctype-space: Likewise.
17052         * modules/unictype/ctype-upper: Likewise.
17053         * modules/unictype/ctype-xdigit: Likewise.
17054         * modules/unictype/decimal-digit: Likewise.
17055         * modules/unictype/digit: Likewise.
17056         * modules/unictype/mirror: Likewise.
17057         * modules/unictype/numeric: Likewise.
17058         * modules/unictype/property-alphabetic: Likewise.
17059         * modules/unictype/property-ascii-hex-digit: Likewise.
17060         * modules/unictype/property-bidi-arabic-digit: Likewise.
17061         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
17062         * modules/unictype/property-bidi-block-separator: Likewise.
17063         * modules/unictype/property-bidi-boundary-neutral: Likewise.
17064         * modules/unictype/property-bidi-common-separator: Likewise.
17065         * modules/unictype/property-bidi-control: Likewise.
17066         * modules/unictype/property-bidi-embedding-or-override: Likewise.
17067         * modules/unictype/property-bidi-eur-num-separator: Likewise.
17068         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
17069         * modules/unictype/property-bidi-european-digit: Likewise.
17070         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
17071         * modules/unictype/property-bidi-left-to-right: Likewise.
17072         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
17073         * modules/unictype/property-bidi-other-neutral: Likewise.
17074         * modules/unictype/property-bidi-pdf: Likewise.
17075         * modules/unictype/property-bidi-segment-separator: Likewise.
17076         * modules/unictype/property-bidi-whitespace: Likewise.
17077         * modules/unictype/property-byname: Likewise.
17078         * modules/unictype/property-combining: Likewise.
17079         * modules/unictype/property-composite: Likewise.
17080         * modules/unictype/property-currency-symbol: Likewise.
17081         * modules/unictype/property-dash: Likewise.
17082         * modules/unictype/property-decimal-digit: Likewise.
17083         * modules/unictype/property-default-ignorable-code-point: Likewise.
17084         * modules/unictype/property-deprecated: Likewise.
17085         * modules/unictype/property-diacritic: Likewise.
17086         * modules/unictype/property-extender: Likewise.
17087         * modules/unictype/property-format-control: Likewise.
17088         * modules/unictype/property-grapheme-base: Likewise.
17089         * modules/unictype/property-grapheme-extend: Likewise.
17090         * modules/unictype/property-grapheme-link: Likewise.
17091         * modules/unictype/property-hex-digit: Likewise.
17092         * modules/unictype/property-hyphen: Likewise.
17093         * modules/unictype/property-id-continue: Likewise.
17094         * modules/unictype/property-id-start: Likewise.
17095         * modules/unictype/property-ideographic: Likewise.
17096         * modules/unictype/property-ids-binary-operator: Likewise.
17097         * modules/unictype/property-ids-trinary-operator: Likewise.
17098         * modules/unictype/property-ignorable-control: Likewise.
17099         * modules/unictype/property-iso-control: Likewise.
17100         * modules/unictype/property-join-control: Likewise.
17101         * modules/unictype/property-left-of-pair: Likewise.
17102         * modules/unictype/property-line-separator: Likewise.
17103         * modules/unictype/property-logical-order-exception: Likewise.
17104         * modules/unictype/property-lowercase: Likewise.
17105         * modules/unictype/property-math: Likewise.
17106         * modules/unictype/property-non-break: Likewise.
17107         * modules/unictype/property-not-a-character: Likewise.
17108         * modules/unictype/property-numeric: Likewise.
17109         * modules/unictype/property-other-alphabetic: Likewise.
17110         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
17111         * modules/unictype/property-other-grapheme-extend: Likewise.
17112         * modules/unictype/property-other-id-continue: Likewise.
17113         * modules/unictype/property-other-id-start: Likewise.
17114         * modules/unictype/property-other-lowercase: Likewise.
17115         * modules/unictype/property-other-math: Likewise.
17116         * modules/unictype/property-other-uppercase: Likewise.
17117         * modules/unictype/property-paired-punctuation: Likewise.
17118         * modules/unictype/property-paragraph-separator: Likewise.
17119         * modules/unictype/property-pattern-syntax: Likewise.
17120         * modules/unictype/property-pattern-white-space: Likewise.
17121         * modules/unictype/property-private-use: Likewise.
17122         * modules/unictype/property-punctuation: Likewise.
17123         * modules/unictype/property-quotation-mark: Likewise.
17124         * modules/unictype/property-radical: Likewise.
17125         * modules/unictype/property-sentence-terminal: Likewise.
17126         * modules/unictype/property-soft-dotted: Likewise.
17127         * modules/unictype/property-space: Likewise.
17128         * modules/unictype/property-terminal-punctuation: Likewise.
17129         * modules/unictype/property-test: Likewise.
17130         * modules/unictype/property-titlecase: Likewise.
17131         * modules/unictype/property-unassigned-code-value: Likewise.
17132         * modules/unictype/property-unified-ideograph: Likewise.
17133         * modules/unictype/property-uppercase: Likewise.
17134         * modules/unictype/property-variation-selector: Likewise.
17135         * modules/unictype/property-white-space: Likewise.
17136         * modules/unictype/property-xid-continue: Likewise.
17137         * modules/unictype/property-xid-start: Likewise.
17138         * modules/unictype/property-zero-width: Likewise.
17139         * modules/unictype/scripts: Likewise.
17140         * modules/unictype/syntax-c-ident: Likewise.
17141         * modules/unictype/syntax-c-whitespace: Likewise.
17142         * modules/unictype/syntax-java-ident: Likewise.
17143         * modules/unictype/syntax-java-whitespace: Likewise.
17144         * modules/unilbrk/u8-possible-linebreaks: Likewise.
17145         * modules/unilbrk/u8-width-linebreaks: Likewise.
17146         * modules/unilbrk/u16-possible-linebreaks: Likewise.
17147         * modules/unilbrk/u16-width-linebreaks: Likewise.
17148         * modules/unilbrk/u32-possible-linebreaks: Likewise.
17149         * modules/unilbrk/u32-width-linebreaks: Likewise.
17150         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
17151         * modules/unilbrk/ulc-width-linebreaks: Likewise.
17152         * modules/uniname/uniname: Likewise.
17153         * modules/uninorm/canonical-decomposition: Likewise.
17154         * modules/uninorm/composition: Likewise.
17155         * modules/uninorm/decomposing-form: Likewise.
17156         * modules/uninorm/decomposition: Likewise.
17157         * modules/uninorm/filter: Likewise.
17158         * modules/uninorm/nfc: Likewise.
17159         * modules/uninorm/nfd: Likewise.
17160         * modules/uninorm/nfkc: Likewise.
17161         * modules/uninorm/nfkd: Likewise.
17162         * modules/uninorm/u8-normalize: Likewise.
17163         * modules/uninorm/u8-normcmp: Likewise.
17164         * modules/uninorm/u8-normcoll: Likewise.
17165         * modules/uninorm/u8-normxfrm: Likewise.
17166         * modules/uninorm/u16-normalize: Likewise.
17167         * modules/uninorm/u16-normcmp: Likewise.
17168         * modules/uninorm/u16-normcoll: Likewise.
17169         * modules/uninorm/u16-normxfrm: Likewise.
17170         * modules/uninorm/u32-normalize: Likewise.
17171         * modules/uninorm/u32-normcmp: Likewise.
17172         * modules/uninorm/u32-normcoll: Likewise.
17173         * modules/uninorm/u32-normxfrm: Likewise.
17174         * modules/unistdio/u8-asnprintf: Likewise.
17175         * modules/unistdio/u8-asprintf: Likewise.
17176         * modules/unistdio/u8-snprintf: Likewise.
17177         * modules/unistdio/u8-sprintf: Likewise.
17178         * modules/unistdio/u8-u8-asnprintf: Likewise.
17179         * modules/unistdio/u8-u8-asprintf: Likewise.
17180         * modules/unistdio/u8-u8-snprintf: Likewise.
17181         * modules/unistdio/u8-u8-sprintf: Likewise.
17182         * modules/unistdio/u8-u8-vasnprintf: Likewise.
17183         * modules/unistdio/u8-u8-vasprintf: Likewise.
17184         * modules/unistdio/u8-u8-vsnprintf: Likewise.
17185         * modules/unistdio/u8-u8-vsprintf: Likewise.
17186         * modules/unistdio/u8-vasnprintf: Likewise.
17187         * modules/unistdio/u8-vasprintf: Likewise.
17188         * modules/unistdio/u8-vsnprintf: Likewise.
17189         * modules/unistdio/u8-vsprintf: Likewise.
17190         * modules/unistdio/u16-asnprintf: Likewise.
17191         * modules/unistdio/u16-asprintf: Likewise.
17192         * modules/unistdio/u16-snprintf: Likewise.
17193         * modules/unistdio/u16-sprintf: Likewise.
17194         * modules/unistdio/u16-u16-asnprintf: Likewise.
17195         * modules/unistdio/u16-u16-asprintf: Likewise.
17196         * modules/unistdio/u16-u16-snprintf: Likewise.
17197         * modules/unistdio/u16-u16-sprintf: Likewise.
17198         * modules/unistdio/u16-u16-vasnprintf: Likewise.
17199         * modules/unistdio/u16-u16-vasprintf: Likewise.
17200         * modules/unistdio/u16-u16-vsnprintf: Likewise.
17201         * modules/unistdio/u16-u16-vsprintf: Likewise.
17202         * modules/unistdio/u16-vasnprintf: Likewise.
17203         * modules/unistdio/u16-vasprintf: Likewise.
17204         * modules/unistdio/u16-vsnprintf: Likewise.
17205         * modules/unistdio/u16-vsprintf: Likewise.
17206         * modules/unistdio/u32-asnprintf: Likewise.
17207         * modules/unistdio/u32-asprintf: Likewise.
17208         * modules/unistdio/u32-snprintf: Likewise.
17209         * modules/unistdio/u32-sprintf: Likewise.
17210         * modules/unistdio/u32-u32-asnprintf: Likewise.
17211         * modules/unistdio/u32-u32-asprintf: Likewise.
17212         * modules/unistdio/u32-u32-snprintf: Likewise.
17213         * modules/unistdio/u32-u32-sprintf: Likewise.
17214         * modules/unistdio/u32-u32-vasnprintf: Likewise.
17215         * modules/unistdio/u32-u32-vasprintf: Likewise.
17216         * modules/unistdio/u32-u32-vsnprintf: Likewise.
17217         * modules/unistdio/u32-u32-vsprintf: Likewise.
17218         * modules/unistdio/u32-vasnprintf: Likewise.
17219         * modules/unistdio/u32-vasprintf: Likewise.
17220         * modules/unistdio/u32-vsnprintf: Likewise.
17221         * modules/unistdio/u32-vsprintf: Likewise.
17222         * modules/unistdio/ulc-asnprintf: Likewise.
17223         * modules/unistdio/ulc-asprintf: Likewise.
17224         * modules/unistdio/ulc-fprintf: Likewise.
17225         * modules/unistdio/ulc-snprintf: Likewise.
17226         * modules/unistdio/ulc-sprintf: Likewise.
17227         * modules/unistdio/ulc-vasnprintf: Likewise.
17228         * modules/unistdio/ulc-vasprintf: Likewise.
17229         * modules/unistdio/ulc-vfprintf: Likewise.
17230         * modules/unistdio/ulc-vsnprintf: Likewise.
17231         * modules/unistdio/ulc-vsprintf: Likewise.
17232         * modules/unistr/u8-check: Likewise.
17233         * modules/unistr/u8-chr: Likewise.
17234         * modules/unistr/u8-cmp: Likewise.
17235         * modules/unistr/u8-cmp2: Likewise.
17236         * modules/unistr/u8-cpy: Likewise.
17237         * modules/unistr/u8-cpy-alloc: Likewise.
17238         * modules/unistr/u8-endswith: Likewise.
17239         * modules/unistr/u8-mblen: Likewise.
17240         * modules/unistr/u8-mbsnlen: Likewise.
17241         * modules/unistr/u8-mbtouc: Likewise.
17242         * modules/unistr/u8-mbtouc-unsafe: Likewise.
17243         * modules/unistr/u8-mbtoucr: Likewise.
17244         * modules/unistr/u8-move: Likewise.
17245         * modules/unistr/u8-next: Likewise.
17246         * modules/unistr/u8-prev: Likewise.
17247         * modules/unistr/u8-set: Likewise.
17248         * modules/unistr/u8-startswith: Likewise.
17249         * modules/unistr/u8-stpcpy: Likewise.
17250         * modules/unistr/u8-stpncpy: Likewise.
17251         * modules/unistr/u8-strcat: Likewise.
17252         * modules/unistr/u8-strchr: Likewise.
17253         * modules/unistr/u8-strcmp: Likewise.
17254         * modules/unistr/u8-strcoll: Likewise.
17255         * modules/unistr/u8-strcpy: Likewise.
17256         * modules/unistr/u8-strcspn: Likewise.
17257         * modules/unistr/u8-strdup: Likewise.
17258         * modules/unistr/u8-strlen: Likewise.
17259         * modules/unistr/u8-strmblen: Likewise.
17260         * modules/unistr/u8-strmbtouc: Likewise.
17261         * modules/unistr/u8-strncat: Likewise.
17262         * modules/unistr/u8-strncmp: Likewise.
17263         * modules/unistr/u8-strncpy: Likewise.
17264         * modules/unistr/u8-strnlen: Likewise.
17265         * modules/unistr/u8-strpbrk: Likewise.
17266         * modules/unistr/u8-strrchr: Likewise.
17267         * modules/unistr/u8-strspn: Likewise.
17268         * modules/unistr/u8-strstr: Likewise.
17269         * modules/unistr/u8-strtok: Likewise.
17270         * modules/unistr/u8-to-u16: Likewise.
17271         * modules/unistr/u8-to-u32: Likewise.
17272         * modules/unistr/u8-uctomb: Likewise.
17273         * modules/unistr/u16-check: Likewise.
17274         * modules/unistr/u16-chr: Likewise.
17275         * modules/unistr/u16-cmp: Likewise.
17276         * modules/unistr/u16-cmp2: Likewise.
17277         * modules/unistr/u16-cpy: Likewise.
17278         * modules/unistr/u16-cpy-alloc: Likewise.
17279         * modules/unistr/u16-endswith: Likewise.
17280         * modules/unistr/u16-mblen: Likewise.
17281         * modules/unistr/u16-mbsnlen: Likewise.
17282         * modules/unistr/u16-mbtouc: Likewise.
17283         * modules/unistr/u16-mbtouc-unsafe: Likewise.
17284         * modules/unistr/u16-mbtoucr: Likewise.
17285         * modules/unistr/u16-move: Likewise.
17286         * modules/unistr/u16-next: Likewise.
17287         * modules/unistr/u16-prev: Likewise.
17288         * modules/unistr/u16-set: Likewise.
17289         * modules/unistr/u16-startswith: Likewise.
17290         * modules/unistr/u16-stpcpy: Likewise.
17291         * modules/unistr/u16-stpncpy: Likewise.
17292         * modules/unistr/u16-strcat: Likewise.
17293         * modules/unistr/u16-strchr: Likewise.
17294         * modules/unistr/u16-strcmp: Likewise.
17295         * modules/unistr/u16-strcoll: Likewise.
17296         * modules/unistr/u16-strcpy: Likewise.
17297         * modules/unistr/u16-strcspn: Likewise.
17298         * modules/unistr/u16-strdup: Likewise.
17299         * modules/unistr/u16-strlen: Likewise.
17300         * modules/unistr/u16-strmblen: Likewise.
17301         * modules/unistr/u16-strmbtouc: Likewise.
17302         * modules/unistr/u16-strncat: Likewise.
17303         * modules/unistr/u16-strncmp: Likewise.
17304         * modules/unistr/u16-strncpy: Likewise.
17305         * modules/unistr/u16-strnlen: Likewise.
17306         * modules/unistr/u16-strpbrk: Likewise.
17307         * modules/unistr/u16-strrchr: Likewise.
17308         * modules/unistr/u16-strspn: Likewise.
17309         * modules/unistr/u16-strstr: Likewise.
17310         * modules/unistr/u16-strtok: Likewise.
17311         * modules/unistr/u16-to-u32: Likewise.
17312         * modules/unistr/u16-to-u8: Likewise.
17313         * modules/unistr/u16-uctomb: Likewise.
17314         * modules/unistr/u32-check: Likewise.
17315         * modules/unistr/u32-chr: Likewise.
17316         * modules/unistr/u32-cmp: Likewise.
17317         * modules/unistr/u32-cmp2: Likewise.
17318         * modules/unistr/u32-cpy: Likewise.
17319         * modules/unistr/u32-cpy-alloc: Likewise.
17320         * modules/unistr/u32-endswith: Likewise.
17321         * modules/unistr/u32-mblen: Likewise.
17322         * modules/unistr/u32-mbsnlen: Likewise.
17323         * modules/unistr/u32-mbtouc: Likewise.
17324         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17325         * modules/unistr/u32-mbtoucr: Likewise.
17326         * modules/unistr/u32-move: Likewise.
17327         * modules/unistr/u32-next: Likewise.
17328         * modules/unistr/u32-prev: Likewise.
17329         * modules/unistr/u32-set: Likewise.
17330         * modules/unistr/u32-startswith: Likewise.
17331         * modules/unistr/u32-stpcpy: Likewise.
17332         * modules/unistr/u32-stpncpy: Likewise.
17333         * modules/unistr/u32-strcat: Likewise.
17334         * modules/unistr/u32-strchr: Likewise.
17335         * modules/unistr/u32-strcmp: Likewise.
17336         * modules/unistr/u32-strcoll: Likewise.
17337         * modules/unistr/u32-strcpy: Likewise.
17338         * modules/unistr/u32-strcspn: Likewise.
17339         * modules/unistr/u32-strdup: Likewise.
17340         * modules/unistr/u32-strlen: Likewise.
17341         * modules/unistr/u32-strmblen: Likewise.
17342         * modules/unistr/u32-strmbtouc: Likewise.
17343         * modules/unistr/u32-strncat: Likewise.
17344         * modules/unistr/u32-strncmp: Likewise.
17345         * modules/unistr/u32-strncpy: Likewise.
17346         * modules/unistr/u32-strnlen: Likewise.
17347         * modules/unistr/u32-strpbrk: Likewise.
17348         * modules/unistr/u32-strrchr: Likewise.
17349         * modules/unistr/u32-strspn: Likewise.
17350         * modules/unistr/u32-strstr: Likewise.
17351         * modules/unistr/u32-strtok: Likewise.
17352         * modules/unistr/u32-to-u16: Likewise.
17353         * modules/unistr/u32-to-u8: Likewise.
17354         * modules/unistr/u32-uctomb: Likewise.
17355         * modules/uniwbrk/u8-wordbreaks: Likewise.
17356         * modules/uniwbrk/u16-wordbreaks: Likewise.
17357         * modules/uniwbrk/u32-wordbreaks: Likewise.
17358         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17359         * modules/uniwbrk/wordbreak-property: Likewise.
17360         * modules/uniwidth/u8-strwidth: Likewise.
17361         * modules/uniwidth/u8-width: Likewise.
17362         * modules/uniwidth/u16-strwidth: Likewise.
17363         * modules/uniwidth/u16-width: Likewise.
17364         * modules/uniwidth/u32-strwidth: Likewise.
17365         * modules/uniwidth/u32-width: Likewise.
17366         * modules/uniwidth/width: Likewise.
17367         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17368         with $(LIBUNISTRING).
17369         * modules/unicase/ignorable-tests: Likewise.
17370         * modules/unicase/locale-language-tests: Likewise.
17371         * modules/unicase/tolower-tests: Likewise.
17372         * modules/unicase/totitle-tests: Likewise.
17373         * modules/unicase/toupper-tests: Likewise.
17374         * modules/unicase/u8-casecmp-tests: Likewise.
17375         * modules/unicase/u8-casecoll-tests: Likewise.
17376         * modules/unicase/u8-casefold-tests: Likewise.
17377         * modules/unicase/u8-is-cased-tests: Likewise.
17378         * modules/unicase/u8-is-casefolded-tests: Likewise.
17379         * modules/unicase/u8-is-lowercase-tests: Likewise.
17380         * modules/unicase/u8-is-titlecase-tests: Likewise.
17381         * modules/unicase/u8-is-uppercase-tests: Likewise.
17382         * modules/unicase/u8-tolower-tests: Likewise.
17383         * modules/unicase/u8-totitle-tests: Likewise.
17384         * modules/unicase/u8-toupper-tests: Likewise.
17385         * modules/unicase/u16-casecmp-tests: Likewise.
17386         * modules/unicase/u16-casecoll-tests: Likewise.
17387         * modules/unicase/u16-casefold-tests: Likewise.
17388         * modules/unicase/u16-is-cased-tests: Likewise.
17389         * modules/unicase/u16-is-casefolded-tests: Likewise.
17390         * modules/unicase/u16-is-lowercase-tests: Likewise.
17391         * modules/unicase/u16-is-titlecase-tests: Likewise.
17392         * modules/unicase/u16-is-uppercase-tests: Likewise.
17393         * modules/unicase/u16-tolower-tests: Likewise.
17394         * modules/unicase/u16-totitle-tests: Likewise.
17395         * modules/unicase/u16-toupper-tests: Likewise.
17396         * modules/unicase/u32-casecmp-tests: Likewise.
17397         * modules/unicase/u32-casecoll-tests: Likewise.
17398         * modules/unicase/u32-casefold-tests: Likewise.
17399         * modules/unicase/u32-is-cased-tests: Likewise.
17400         * modules/unicase/u32-is-casefolded-tests: Likewise.
17401         * modules/unicase/u32-is-lowercase-tests: Likewise.
17402         * modules/unicase/u32-is-titlecase-tests: Likewise.
17403         * modules/unicase/u32-is-uppercase-tests: Likewise.
17404         * modules/unicase/u32-tolower-tests: Likewise.
17405         * modules/unicase/u32-totitle-tests: Likewise.
17406         * modules/unicase/u32-toupper-tests: Likewise.
17407         * modules/unicase/ulc-casecmp-tests: Likewise.
17408         * modules/unicase/ulc-casecoll-tests: Likewise.
17409         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17410         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17411         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17412         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17413         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17414         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17415         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17416         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17417         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17418         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17419         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17420         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17421         * modules/unictype/bidicategory-byname-tests: Likewise.
17422         * modules/unictype/bidicategory-name-tests: Likewise.
17423         * modules/unictype/bidicategory-of-tests: Likewise.
17424         * modules/unictype/bidicategory-test-tests: Likewise.
17425         * modules/unictype/block-list-tests: Likewise.
17426         * modules/unictype/block-of-tests: Likewise.
17427         * modules/unictype/block-test-tests: Likewise.
17428         * modules/unictype/category-C-tests: Likewise.
17429         * modules/unictype/category-Cc-tests: Likewise.
17430         * modules/unictype/category-Cf-tests: Likewise.
17431         * modules/unictype/category-Cn-tests: Likewise.
17432         * modules/unictype/category-Co-tests: Likewise.
17433         * modules/unictype/category-Cs-tests: Likewise.
17434         * modules/unictype/category-L-tests: Likewise.
17435         * modules/unictype/category-Ll-tests: Likewise.
17436         * modules/unictype/category-Lm-tests: Likewise.
17437         * modules/unictype/category-Lo-tests: Likewise.
17438         * modules/unictype/category-Lt-tests: Likewise.
17439         * modules/unictype/category-Lu-tests: Likewise.
17440         * modules/unictype/category-M-tests: Likewise.
17441         * modules/unictype/category-Mc-tests: Likewise.
17442         * modules/unictype/category-Me-tests: Likewise.
17443         * modules/unictype/category-Mn-tests: Likewise.
17444         * modules/unictype/category-N-tests: Likewise.
17445         * modules/unictype/category-Nd-tests: Likewise.
17446         * modules/unictype/category-Nl-tests: Likewise.
17447         * modules/unictype/category-No-tests: Likewise.
17448         * modules/unictype/category-P-tests: Likewise.
17449         * modules/unictype/category-Pc-tests: Likewise.
17450         * modules/unictype/category-Pd-tests: Likewise.
17451         * modules/unictype/category-Pe-tests: Likewise.
17452         * modules/unictype/category-Pf-tests: Likewise.
17453         * modules/unictype/category-Pi-tests: Likewise.
17454         * modules/unictype/category-Po-tests: Likewise.
17455         * modules/unictype/category-Ps-tests: Likewise.
17456         * modules/unictype/category-S-tests: Likewise.
17457         * modules/unictype/category-Sc-tests: Likewise.
17458         * modules/unictype/category-Sk-tests: Likewise.
17459         * modules/unictype/category-Sm-tests: Likewise.
17460         * modules/unictype/category-So-tests: Likewise.
17461         * modules/unictype/category-Z-tests: Likewise.
17462         * modules/unictype/category-Zl-tests: Likewise.
17463         * modules/unictype/category-Zp-tests: Likewise.
17464         * modules/unictype/category-Zs-tests: Likewise.
17465         * modules/unictype/category-and-not-tests: Likewise.
17466         * modules/unictype/category-and-tests: Likewise.
17467         * modules/unictype/category-byname-tests: Likewise.
17468         * modules/unictype/category-name-tests: Likewise.
17469         * modules/unictype/category-none-tests: Likewise.
17470         * modules/unictype/category-of-tests: Likewise.
17471         * modules/unictype/category-or-tests: Likewise.
17472         * modules/unictype/category-test-withtable-tests: Likewise.
17473         * modules/unictype/combining-class-tests: Likewise.
17474         * modules/unictype/ctype-alnum-tests: Likewise.
17475         * modules/unictype/ctype-alpha-tests: Likewise.
17476         * modules/unictype/ctype-blank-tests: Likewise.
17477         * modules/unictype/ctype-cntrl-tests: Likewise.
17478         * modules/unictype/ctype-digit-tests: Likewise.
17479         * modules/unictype/ctype-graph-tests: Likewise.
17480         * modules/unictype/ctype-lower-tests: Likewise.
17481         * modules/unictype/ctype-print-tests: Likewise.
17482         * modules/unictype/ctype-punct-tests: Likewise.
17483         * modules/unictype/ctype-space-tests: Likewise.
17484         * modules/unictype/ctype-upper-tests: Likewise.
17485         * modules/unictype/ctype-xdigit-tests: Likewise.
17486         * modules/unictype/decimal-digit-tests: Likewise.
17487         * modules/unictype/digit-tests: Likewise.
17488         * modules/unictype/mirror-tests: Likewise.
17489         * modules/unictype/numeric-tests: Likewise.
17490         * modules/unictype/property-alphabetic-tests: Likewise.
17491         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17492         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17493         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17494         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17495         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17496         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17497         * modules/unictype/property-bidi-control-tests: Likewise.
17498         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17499         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17500         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17501         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17502         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17503         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17504         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17505         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17506         * modules/unictype/property-bidi-pdf-tests: Likewise.
17507         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17508         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17509         * modules/unictype/property-byname-tests: Likewise.
17510         * modules/unictype/property-combining-tests: Likewise.
17511         * modules/unictype/property-composite-tests: Likewise.
17512         * modules/unictype/property-currency-symbol-tests: Likewise.
17513         * modules/unictype/property-dash-tests: Likewise.
17514         * modules/unictype/property-decimal-digit-tests: Likewise.
17515         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17516         * modules/unictype/property-deprecated-tests: Likewise.
17517         * modules/unictype/property-diacritic-tests: Likewise.
17518         * modules/unictype/property-extender-tests: Likewise.
17519         * modules/unictype/property-format-control-tests: Likewise.
17520         * modules/unictype/property-grapheme-base-tests: Likewise.
17521         * modules/unictype/property-grapheme-extend-tests: Likewise.
17522         * modules/unictype/property-grapheme-link-tests: Likewise.
17523         * modules/unictype/property-hex-digit-tests: Likewise.
17524         * modules/unictype/property-hyphen-tests: Likewise.
17525         * modules/unictype/property-id-continue-tests: Likewise.
17526         * modules/unictype/property-id-start-tests: Likewise.
17527         * modules/unictype/property-ideographic-tests: Likewise.
17528         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17529         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17530         * modules/unictype/property-ignorable-control-tests: Likewise.
17531         * modules/unictype/property-iso-control-tests: Likewise.
17532         * modules/unictype/property-join-control-tests: Likewise.
17533         * modules/unictype/property-left-of-pair-tests: Likewise.
17534         * modules/unictype/property-line-separator-tests: Likewise.
17535         * modules/unictype/property-logical-order-exception-tests: Likewise.
17536         * modules/unictype/property-lowercase-tests: Likewise.
17537         * modules/unictype/property-math-tests: Likewise.
17538         * modules/unictype/property-non-break-tests: Likewise.
17539         * modules/unictype/property-not-a-character-tests: Likewise.
17540         * modules/unictype/property-numeric-tests: Likewise.
17541         * modules/unictype/property-other-alphabetic-tests: Likewise.
17542         * modules/unictype/property-other-default-ignorable-code-point-tests:
17543         Likewise.
17544         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17545         * modules/unictype/property-other-id-continue-tests: Likewise.
17546         * modules/unictype/property-other-id-start-tests: Likewise.
17547         * modules/unictype/property-other-lowercase-tests: Likewise.
17548         * modules/unictype/property-other-math-tests: Likewise.
17549         * modules/unictype/property-other-uppercase-tests: Likewise.
17550         * modules/unictype/property-paired-punctuation-tests: Likewise.
17551         * modules/unictype/property-paragraph-separator-tests: Likewise.
17552         * modules/unictype/property-pattern-syntax-tests: Likewise.
17553         * modules/unictype/property-pattern-white-space-tests: Likewise.
17554         * modules/unictype/property-private-use-tests: Likewise.
17555         * modules/unictype/property-punctuation-tests: Likewise.
17556         * modules/unictype/property-quotation-mark-tests: Likewise.
17557         * modules/unictype/property-radical-tests: Likewise.
17558         * modules/unictype/property-sentence-terminal-tests: Likewise.
17559         * modules/unictype/property-soft-dotted-tests: Likewise.
17560         * modules/unictype/property-space-tests: Likewise.
17561         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17562         * modules/unictype/property-test-tests: Likewise.
17563         * modules/unictype/property-titlecase-tests: Likewise.
17564         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17565         * modules/unictype/property-unified-ideograph-tests: Likewise.
17566         * modules/unictype/property-uppercase-tests: Likewise.
17567         * modules/unictype/property-variation-selector-tests: Likewise.
17568         * modules/unictype/property-white-space-tests: Likewise.
17569         * modules/unictype/property-xid-continue-tests: Likewise.
17570         * modules/unictype/property-xid-start-tests: Likewise.
17571         * modules/unictype/property-zero-width-tests: Likewise.
17572         * modules/unictype/scripts-tests: Likewise.
17573         * modules/unictype/syntax-c-ident-tests: Likewise.
17574         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17575         * modules/unictype/syntax-java-ident-tests: Likewise.
17576         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17577         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17578         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17579         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17580         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17581         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17582         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17583         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17584         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17585         * modules/uniname/uniname-tests: Likewise.
17586         * modules/uninorm/canonical-decomposition-tests: Likewise.
17587         * modules/uninorm/compat-decomposition-tests: Likewise.
17588         * modules/uninorm/composition-tests: Likewise.
17589         * modules/uninorm/decomposing-form-tests: Likewise.
17590         * modules/uninorm/decomposition-tests: Likewise.
17591         * modules/uninorm/filter-tests: Likewise.
17592         * modules/uninorm/nfc-tests: Likewise.
17593         * modules/uninorm/nfd-tests: Likewise.
17594         * modules/uninorm/nfkc-tests: Likewise.
17595         * modules/uninorm/nfkd-tests: Likewise.
17596         * modules/uninorm/u8-normcmp-tests: Likewise.
17597         * modules/uninorm/u8-normcoll-tests: Likewise.
17598         * modules/uninorm/u16-normcmp-tests: Likewise.
17599         * modules/uninorm/u16-normcoll-tests: Likewise.
17600         * modules/uninorm/u32-normcmp-tests: Likewise.
17601         * modules/uninorm/u32-normcoll-tests: Likewise.
17602         * modules/unistdio/u8-asnprintf-tests: Likewise.
17603         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17604         * modules/unistdio/u8-vasprintf-tests: Likewise.
17605         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17606         * modules/unistdio/u8-vsprintf-tests: Likewise.
17607         * modules/unistdio/u16-asnprintf-tests: Likewise.
17608         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17609         * modules/unistdio/u16-vasprintf-tests: Likewise.
17610         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17611         * modules/unistdio/u16-vsprintf-tests: Likewise.
17612         * modules/unistdio/u32-asnprintf-tests: Likewise.
17613         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17614         * modules/unistdio/u32-vasprintf-tests: Likewise.
17615         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17616         * modules/unistdio/u32-vsprintf-tests: Likewise.
17617         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17618         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17619         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17620         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17621         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17622         * modules/unistr/u8-check-tests: Likewise.
17623         * modules/unistr/u8-chr-tests: Likewise.
17624         * modules/unistr/u8-cmp-tests: Likewise.
17625         * modules/unistr/u8-cmp2-tests: Likewise.
17626         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17627         * modules/unistr/u8-cpy-tests: Likewise.
17628         * modules/unistr/u8-mblen-tests: Likewise.
17629         * modules/unistr/u8-mbsnlen-tests: Likewise.
17630         * modules/unistr/u8-mbtouc-tests: Likewise.
17631         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17632         * modules/unistr/u8-mbtoucr-tests: Likewise.
17633         * modules/unistr/u8-move-tests: Likewise.
17634         * modules/unistr/u8-next-tests: Likewise.
17635         * modules/unistr/u8-prev-tests: Likewise.
17636         * modules/unistr/u8-set-tests: Likewise.
17637         * modules/unistr/u8-stpcpy-tests: Likewise.
17638         * modules/unistr/u8-stpncpy-tests: Likewise.
17639         * modules/unistr/u8-strcat-tests: Likewise.
17640         * modules/unistr/u8-strcmp-tests: Likewise.
17641         * modules/unistr/u8-strcoll-tests: Likewise.
17642         * modules/unistr/u8-strcpy-tests: Likewise.
17643         * modules/unistr/u8-strdup-tests: Likewise.
17644         * modules/unistr/u8-strlen-tests: Likewise.
17645         * modules/unistr/u8-strmblen-tests: Likewise.
17646         * modules/unistr/u8-strmbtouc-tests: Likewise.
17647         * modules/unistr/u8-strncat-tests: Likewise.
17648         * modules/unistr/u8-strncmp-tests: Likewise.
17649         * modules/unistr/u8-strncpy-tests: Likewise.
17650         * modules/unistr/u8-strnlen-tests: Likewise.
17651         * modules/unistr/u8-to-u16-tests: Likewise.
17652         * modules/unistr/u8-to-u32-tests: Likewise.
17653         * modules/unistr/u8-uctomb-tests: Likewise.
17654         * modules/unistr/u16-check-tests: Likewise.
17655         * modules/unistr/u16-chr-tests: Likewise.
17656         * modules/unistr/u16-cmp-tests: Likewise.
17657         * modules/unistr/u16-cmp2-tests: Likewise.
17658         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17659         * modules/unistr/u16-cpy-tests: Likewise.
17660         * modules/unistr/u16-mblen-tests: Likewise.
17661         * modules/unistr/u16-mbsnlen-tests: Likewise.
17662         * modules/unistr/u16-mbtouc-tests: Likewise.
17663         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17664         * modules/unistr/u16-mbtoucr-tests: Likewise.
17665         * modules/unistr/u16-move-tests: Likewise.
17666         * modules/unistr/u16-next-tests: Likewise.
17667         * modules/unistr/u16-prev-tests: Likewise.
17668         * modules/unistr/u16-set-tests: Likewise.
17669         * modules/unistr/u16-stpcpy-tests: Likewise.
17670         * modules/unistr/u16-stpncpy-tests: Likewise.
17671         * modules/unistr/u16-strcat-tests: Likewise.
17672         * modules/unistr/u16-strcmp-tests: Likewise.
17673         * modules/unistr/u16-strcoll-tests: Likewise.
17674         * modules/unistr/u16-strcpy-tests: Likewise.
17675         * modules/unistr/u16-strdup-tests: Likewise.
17676         * modules/unistr/u16-strlen-tests: Likewise.
17677         * modules/unistr/u16-strmblen-tests: Likewise.
17678         * modules/unistr/u16-strmbtouc-tests: Likewise.
17679         * modules/unistr/u16-strncat-tests: Likewise.
17680         * modules/unistr/u16-strncmp-tests: Likewise.
17681         * modules/unistr/u16-strncpy-tests: Likewise.
17682         * modules/unistr/u16-strnlen-tests: Likewise.
17683         * modules/unistr/u16-to-u32-tests: Likewise.
17684         * modules/unistr/u16-to-u8-tests: Likewise.
17685         * modules/unistr/u16-uctomb-tests: Likewise.
17686         * modules/unistr/u32-check-tests: Likewise.
17687         * modules/unistr/u32-chr-tests: Likewise.
17688         * modules/unistr/u32-cmp-tests: Likewise.
17689         * modules/unistr/u32-cmp2-tests: Likewise.
17690         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17691         * modules/unistr/u32-cpy-tests: Likewise.
17692         * modules/unistr/u32-mblen-tests: Likewise.
17693         * modules/unistr/u32-mbsnlen-tests: Likewise.
17694         * modules/unistr/u32-mbtouc-tests: Likewise.
17695         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17696         * modules/unistr/u32-mbtoucr-tests: Likewise.
17697         * modules/unistr/u32-move-tests: Likewise.
17698         * modules/unistr/u32-next-tests: Likewise.
17699         * modules/unistr/u32-prev-tests: Likewise.
17700         * modules/unistr/u32-set-tests: Likewise.
17701         * modules/unistr/u32-stpcpy-tests: Likewise.
17702         * modules/unistr/u32-stpncpy-tests: Likewise.
17703         * modules/unistr/u32-strcat-tests: Likewise.
17704         * modules/unistr/u32-strcmp-tests: Likewise.
17705         * modules/unistr/u32-strcoll-tests: Likewise.
17706         * modules/unistr/u32-strcpy-tests: Likewise.
17707         * modules/unistr/u32-strdup-tests: Likewise.
17708         * modules/unistr/u32-strlen-tests: Likewise.
17709         * modules/unistr/u32-strmblen-tests: Likewise.
17710         * modules/unistr/u32-strmbtouc-tests: Likewise.
17711         * modules/unistr/u32-strncat-tests: Likewise.
17712         * modules/unistr/u32-strncmp-tests: Likewise.
17713         * modules/unistr/u32-strncpy-tests: Likewise.
17714         * modules/unistr/u32-strnlen-tests: Likewise.
17715         * modules/unistr/u32-to-u16-tests: Likewise.
17716         * modules/unistr/u32-to-u8-tests: Likewise.
17717         * modules/unistr/u32-uctomb-tests: Likewise.
17718         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17719         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17720         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17721         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17722         * modules/uniwidth/u8-strwidth-tests: Likewise.
17723         * modules/uniwidth/u8-width-tests: Likewise.
17724         * modules/uniwidth/u16-strwidth-tests: Likewise.
17725         * modules/uniwidth/u16-width-tests: Likewise.
17726         * modules/uniwidth/u32-strwidth-tests: Likewise.
17727         * modules/uniwidth/u32-width-tests: Likewise.
17728         * modules/uniwidth/width-tests: Likewise.
17729
17730 2010-05-18  Richard Jones  <rjones@redhat.com>
17731
17732         doc: users.txt: list hivex
17733         * users.txt: Add hivex.
17734
17735 2010-05-18  Richard Jones  <rjones@redhat.com>
17736
17737         doc: users.txt: list febootstrap
17738         * users.txt: Add febootstrap.
17739
17740 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17741
17742         bootstrap: fix an error when gnulib is not used as a git submodule
17743         * build-aux/bootstrap (gnulib_path): If its length is zero then
17744         assign "gnulib" to it.
17745         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17746
17747 2010-05-16  Bruno Haible  <bruno@clisp.org>
17748
17749         Avoid autoconf warnings about AM_ICONV.
17750         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17751         2.64.
17752
17753 2010-05-16  Bruno Haible  <bruno@clisp.org>
17754
17755         absolute-header: Make the macro usable in more situations.
17756         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17757         from gl_ABSOLUTE_HEADER.
17758         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17759
17760 2010-05-16  James Youngman  <jay@gnu.org>
17761
17762         doc: update users.txt
17763         * users.txt: Add CSSC.
17764
17765 2010-05-16  Jim Meyering  <meyering@redhat.com>
17766
17767         init.sh: fix an error in the previous change; add more comments
17768         * tests/init.sh: Compare exit code in loop against 9, not 2.
17769         Patch by Bruno Haible.
17770         Make the two tests more similar by adding an empty "then" clause.
17771         Add comments.
17772
17773         init.sh: avoid unnecessary shell re-exec
17774         * tests/init.sh: Improve the re-exec-required check to first test the
17775         current shell.  If it passes the test, do not search for a shell that
17776         does pass, and do not re-exec.  This test is particularly contorted to
17777         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17778         of $(...) evokes a syntax error and causes immediate shell exit with
17779         status 2.  Bruno Haible reported that the re-exec made it impossible
17780         to single-step through any init.sh-using script.
17781
17782 2010-05-16  Bruno Haible  <bruno@clisp.org>
17783
17784         Fix collision between gnulib's and libintl's printf replacements.
17785         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17786         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17787         (printf): When using GNU C, map the __printf__ function to rpl_printf
17788         via __asm__. When not using GNU C, define rpl_printf instead of
17789         __printf__.
17790         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17791         commit.
17792         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17793         commit.
17794         * m4/asm-underscore.m4: New file.
17795         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17796         * modules/stdio (Files): Add m4/asm-underscore.m4.
17797         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17798         Reported by Ben Pfaff.
17799
17800 2010-05-16  Bruno Haible  <bruno@clisp.org>
17801
17802         verify: Avoid skipping the test on openSUSE 11.0.
17803         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17804
17805 2010-05-13  Bruno Haible  <bruno@clisp.org>
17806
17807         Avoid useless warnings from G++.
17808         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17809         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17810         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17811
17812 2010-05-11  Jim Meyering  <meyering@redhat.com>
17813
17814         maint.mk: tweak preceding change
17815         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17816         regexps tighter by anchoring at EOL, and make the new group "shy"
17817         for slightly decreased overhead.
17818
17819 2010-05-11  Eric Blake  <eblake@redhat.com>
17820
17821         maint.mk: gnulib doesn't guarantee NSIG
17822         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17823
17824 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17825
17826         test-pwrite.c: Remove unused variable declaration.
17827         * tests/test-pwrite.c (main): Remove read_buf declaration.
17828
17829         Remove useless test-pwrite.sh file.
17830         * tests/test-pwrite.sh: Delete file.
17831         * modules/pwrite-tests: Remove references.
17832         Reported by Bruno Haible.
17833
17834 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17835
17836         init.sh: fix a typo
17837         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17838
17839 2010-05-10  Jim Meyering  <meyering@redhat.com>
17840
17841         maint.mk: avoid using a temporary file in the always-defined-macros check
17842         * top/maint.mk (.re-defmac): Remove rule.
17843         (gl_trap_): Remove definition.
17844         (sc_prohibit_always-defined_macros): Rewrite not to create and
17845         depend on a temporary file.  Instead, depend on GNU grep's ability
17846         to read a list of regular expressions from stdin when given "-f -".
17847
17848 2010-05-09  Bruno Haible  <bruno@clisp.org>
17849
17850         Update to GNU gettext 0.18, part 1.
17851         * m4/gettext.m4: Update to GNU gettext 0.18.
17852         * m4/intl.m4: Likewise.
17853         * m4/po.m4: Likewise.
17854         * modules/gettext (Files): Add m4/fcntl-o.m4.
17855         (configure.ac): Require gettext infrastructure from version 0.18.
17856
17857 2010-05-09  Jim Meyering  <meyering@redhat.com>
17858
17859         init.sh: enable MALLOC_PERTURB_
17860         * tests/init.sh: Enable glibc's malloc-perturbing option.
17861
17862         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17863         With my recent change in init.sh from the two-line form:
17864             -#   : ${srcdir=.}
17865             -#   . "$srcdir/init.sh"; path_prepend_ .
17866             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17867         I noticed that using the one-line form would cause this test
17868         to fail with a false-positive, or to stop working altogether,
17869         depending on whether help-version changed or all the tests did.
17870         * top/maint.mk (_hv_regex): Remove this definition.
17871         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
17872         (_hv_regex_strong): Use a stronger regex to check for conformance.
17873         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
17874         Give a separate diagnostic for lack of conforming use.
17875
17876         maint.mk: prohibit definition of symbols defined by gnulib
17877         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
17878         definition of symbols defined by gnulib.
17879
17880 2010-05-09  Bruno Haible  <bruno@clisp.org>
17881
17882         acl: Avoid test failure on Cygwin-hosted mingw.
17883         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
17884
17885 2010-05-09  Bruno Haible  <bruno@clisp.org>
17886
17887         error: Use system's fcntl function.
17888         * lib/error.c (fcntl): Undefine.
17889
17890 2010-05-09  Jim Meyering  <meyering@redhat.com>
17891
17892         verify: adjust formatting to be more consistent
17893         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
17894         argument-list '('s, and after one comma.
17895
17896 2010-05-09  Bruno Haible  <bruno@clisp.org>
17897
17898         error: More reliable output on mingw.
17899         * lib/error.c: Include <windows.h>.
17900         (is_open): New function.
17901         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
17902         defined.
17903
17904 2010-05-09  Bruno Haible  <bruno@clisp.org>
17905
17906         vasnprintf: Fix syntax errors in libintl build on mingw.
17907         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
17908         pad_ourselves and prec_ourselves after use.
17909
17910 2010-05-08  Bruno Haible  <bruno@clisp.org>
17911
17912         * lib/config.charset: Update comments for Cygwin 1.7.
17913         * lib/localcharset.c: Likewise.
17914
17915 2010-05-07  Jim Meyering  <meyering@redhat.com>
17916
17917         init.sh: improve comments
17918         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
17919         . "${srcdir=.}/init.sh"; path_prepend_ .
17920         Add a note about path_prepend_ and the alternative of using
17921         TESTS_ENVIRONMENT.
17922
17923 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17924
17925         exclude: Unescape hashed patterns in wildcard mode.
17926         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
17927         to the hash list.
17928         * tests/test-exclude8.sh: New test case.
17929         * modules/exclude-tests: Add new test.
17930
17931 2010-05-05  Eric Blake  <eblake@redhat.com>
17932
17933         verify: automate tests
17934         * modules/verify-tests: New module.
17935         * tests/test-verify.sh: New file.
17936         * tests/test-verify.c: Guard each negative test with a unique id.
17937         Also avoid warning about unused left hand of comma expressions.
17938
17939 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17940
17941         Further improvements to verify.h, suggested by Eric Blake.
17942         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
17943         the GL_* versions, to avoid collision with OpenGL.
17944         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
17945         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
17946         than testing merely whether it's defined.
17947
17948         Modify verify.h to pacify gcc -Wredundant_decls.
17949         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
17950         These use the prefix "GL_" since they're likely to be useful elsewhere.
17951         We may need to break them out into a different .h file.
17952         (__COUNTER__): Define to 0 if the compiler doesn't support it.
17953         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
17954         of verify_function__.
17955
17956 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17957
17958         Tests for module pwrite.
17959         * modules/pwrite-tests: New file.
17960         * tests/test-pwrite.sh: New file.
17961         * tests/test-pwrite.c: New file.
17962
17963         New module pwrite.
17964         * lib/unistd.in.h (pwrite): New declaration.
17965         * lib/pwrite.c: New file, from glibc with modifications.
17966         * m4/pwrite.m4: New file.
17967         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
17968         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
17969         REPLACE_PWRITE.
17970         * modules/pwrite: New file.
17971         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
17972         REPLACE_PWRITE.
17973         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
17974         * doc/posix-functions/pwrite.texi: Mention the new module.
17975
17976 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17977
17978         pread: Update documentation.
17979         * doc/posix-functions/pread.texi: Mention the 'pread' module.
17980
17981 2010-05-04  Eric Blake  <eblake@redhat.com>
17982
17983         docs: update cygwin progress
17984         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
17985         this bug.
17986         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
17987         Added in cygwin 1.7.2.
17988         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
17989         Likewise.
17990         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
17991         Likewise.
17992         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17993         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17994         * doc/glibc-functions/accept4.texi (accept4): Likewise.
17995         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
17996         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
17997         Mention nproc module.
17998         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
17999         bug in cygwin 1.7.5 addition.
18000         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
18001         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
18002         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
18003         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
18004         1.7.5.
18005         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
18006         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
18007         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
18008         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
18009         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
18010         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
18011         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
18012         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
18013         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
18014         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
18015         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
18016         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
18017         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
18018         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
18019         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
18020         Likewise.
18021         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
18022         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
18023         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
18024         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
18025         Likewise.
18026         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
18027         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
18028         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
18029         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
18030         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
18031         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
18032         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
18033         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
18034         Likewise.
18035         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
18036         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
18037         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
18038         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
18039         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
18040         Likewise.
18041         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
18042         Likewise.
18043         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
18044         Likewise.
18045         * doc/glibc-functions/xdrrec_endofrecord.texi
18046         (xdrrec_endofrecord): Likewise.
18047         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
18048         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
18049         Likewise.
18050         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
18051         Likewise.
18052
18053 2010-05-04  Jim Meyering  <meyering@redhat.com>
18054
18055         gendocs.sh: make its "-s FILE" option more useful
18056         * build-aux/gendocs.sh: When honoring the -s FILE option, update
18057         $PACKAGE to reflect the probably-different basename of "FILE".
18058
18059 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18060
18061         bootstrap: don't ignore download_po_files failure
18062         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
18063         failure.
18064
18065 2010-05-03  Jim Meyering  <meyering@redhat.com>
18066
18067         maint.mk: allow to pass options to gendocs.sh
18068         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
18069         (gendocs_options_): New overridable variable.
18070
18071         gnu-web-doc-update: don't ignore configure or build failure
18072         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
18073
18074         announce-gen: backslash-escape '@'s in --help output
18075         * build-aux/announce-gen: Fix syntax errors.
18076
18077         maint.mk, announce-gen: allow project-specific announcement mail headers
18078         * top/maint.mk (translation_project_): Define default.
18079         (announcement_Cc_, announcement_mail_headers_): Likewise.
18080         (announcement): Invoke announce-gen with new --mail-headers option.
18081         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
18082
18083         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
18084         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
18085         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
18086         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
18087         line in the "err2" output file when running "make check" in verbose
18088         mode (i.e., with set -x enabled).
18089
18090 2010-05-03  Bruno Haible  <bruno@clisp.org>
18091
18092         wctob: Fix for weird platforms.
18093         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
18094         argument value.
18095
18096 2010-05-03  Jim Meyering  <meyering@redhat.com>
18097
18098         maint.mk: prohibit unwarranted use of <strings.h>
18099         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
18100         strings.h in a file that does not also use strcasecmp, strncasecmp,
18101         ffs or ffsll.
18102
18103         maint.mk: remove obsolete comments
18104         * top/maint.mk: Remove stale, commented-out rules.
18105
18106 2010-05-02  Bruno Haible  <bruno@clisp.org>
18107
18108         wcwidth: Declare also when it's aliased.
18109         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
18110         macro.
18111
18112 2010-05-02  Bruno Haible  <bruno@clisp.org>
18113
18114         Fix regression from 2010-04-25.
18115         * gnulib-tool (func_modules_transitive_closure): Check the status of
18116         all modules, not only of the tests that are of the form foo-tests where
18117         foo is a module.
18118
18119 2010-05-02  Bruno Haible  <bruno@clisp.org>
18120
18121         wctob: Work around nasty Cygwin 1.7.2 bug.
18122         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
18123         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
18124
18125 2010-05-01  Bruno Haible  <bruno@clisp.org>
18126
18127         fpurge: Sharper test.
18128         * tests/test-fpurge.c (main): Add one more ftell check.
18129         * modules/fpurge-tests (Depends-on): Add ftell.
18130         Suggested by Eric Blake.
18131
18132 2010-05-01  Bruno Haible  <bruno@clisp.org>
18133
18134         ftello: Another test.
18135         * tests/test-ftello3.c: New file.
18136         * modules/ftello-tests (Files): Add it.
18137         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18138         MOSTLYCLEANFILES.
18139
18140         ftell: Another test.
18141         * tests/test-ftell3.c: New file.
18142         * modules/ftell-tests (Files): Add it.
18143         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18144         MOSTLYCLEANFILES.
18145
18146 2010-05-01  Bruno Haible  <bruno@clisp.org>
18147
18148         ftell, ftello: Work around Solaris bug.
18149         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
18150         * lib/ftello.c: Include stdio-impl.h.
18151         (ftello): On Solaris, when _IOWRT is set, compute the result without
18152         looking at _IOREAD.
18153         * modules/ftello (Files): Add lib/stdio-impl.h.
18154         * doc/posix-functions/ftell.texi: Mention Solaris bug.
18155         * doc/posix-functions/ftello.texi: Likewise.
18156         Reported by Eric Blake.
18157
18158 2010-05-01  Bruno Haible  <bruno@clisp.org>
18159
18160         freading: Adapt to special meaning of _IOREAD flag on Solaris.
18161         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
18162         the _IOWRT flag is also set.
18163
18164 2010-05-01  Bruno Haible  <bruno@clisp.org>
18165
18166         Fix doc about a HP-UX stdio bug.
18167         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
18168         * doc/posix-functions/ftello.texi: Likewise.
18169
18170 2010-05-01  Bruno Haible  <bruno@clisp.org>
18171
18172         lseek test: Fix failure on Solaris.
18173         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
18174         output.
18175
18176 2010-04-30  Jim Meyering  <meyering@redhat.com>
18177
18178         bootstrap: don't ignore failure to generate po*/Makevars
18179         * build-aux/bootstrap (with_gettext): Don't ignore failure
18180         to create po/Makevars or runtime-po/Makevars.
18181
18182 2010-04-29  Eric Blake  <eblake@redhat.com>
18183
18184         headers: relax license to LGPLv2+
18185         * modules/fcntl-h (License): Relax license.
18186         * modules/getopt-posix (License): Likewise.
18187         * modules/locale (License): Likewise.
18188         * modules/math (License): Likewise.
18189         * modules/pty (License): Likewise.
18190         * modules/sched (License): Likewise.
18191         * modules/search (License): Likewise.
18192         * modules/spawn (License): Likewise.
18193         * modules/stdarg (License): Likewise.
18194         * modules/sysexits (License): Likewise.
18195
18196 2010-04-29  Jim Meyering  <meyering@redhat.com>
18197
18198         inttypes: relax license to LGPLv2+
18199         * modules/inttypes (License): Relax license.
18200
18201 2010-04-29  Simon Josefsson  <simon@josefsson.org>
18202
18203         * top/maint.mk (indent): Run twice to produce idempotent results.
18204
18205 2010-04-28  Bruno Haible  <bruno@clisp.org>
18206
18207         getdate: Generate getdate.c in the source directory.
18208         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
18209         MOSTLYCLEANFILES.
18210         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
18211
18212 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
18213
18214         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
18215         is not declared as a const *; avoid warnings in that case.
18216
18217 2010-04-28  Eric Blake  <eblake@redhat.com>
18218
18219         canonicalize-lgpl: avoid compiler warning
18220         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
18221         declaration' / 'extraneous semicolon' warning with some compilers.
18222         Reported by Andreas Gruenbacher.
18223
18224 2010-04-28  Jim Meyering  <meyering@redhat.com>
18225
18226         init.sh: ensure a more reliable exit status when exiting via trap
18227         * tests/init.sh (setup_): Don't rely on $? in signal handler.
18228         Inspired by patches from Dmitry V. Levin.
18229         Also trap on signal 3 (SIGQUIT).
18230
18231 2010-04-27  Bruno Haible  <bruno@clisp.org>
18232
18233         Update doc about utimes().
18234         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
18235         'utimens' module.
18236         Reported by Andreas Gruenbacher <agruen@suse.de>.
18237
18238 2010-04-27  Eric Blake  <eblake@redhat.com>
18239
18240         full-read, full-write: relax license
18241         * modules/full-read (License): Drop to LGPLv2+.
18242         * modules/full-write (License): Likewise.
18243         * modules/safe-read (License): Likewise.
18244         * modules/safe-write (License): Likewise.
18245
18246         pthread: mention library for linking
18247         * modules/pthread (Link): Mention $(LIB_PTHREAD).
18248
18249 2010-04-27  Jim Meyering  <meyering@redhat.com>
18250
18251         maint.mk: fix a bug introduced in last change
18252         * top/maint.mk (gl_assured_headers_): Now that all names are on
18253         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
18254         is not anchored to end of word, it should be adequate.
18255
18256         maint.mk: avoid side-effect in latest syntax-check
18257         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
18258         to run commands via $(shell...), and hence to incur cost only when
18259         the new rule is actually run.
18260
18261         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
18262         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
18263         and use that to create a regexp used to detect all #if HAVE_..._H uses.
18264         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
18265         (gl_assured_headers_, az_, AZ_): Define.
18266         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
18267
18268 2010-04-26  Jim Meyering  <jim@meyering.net>
18269             Bruno Haible  <bruno@clisp.org>
18270
18271         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
18272         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
18273         Prompted by an exchange with Gilles Espinasse.
18274
18275 2010-04-26  Jim Meyering  <meyering@redhat.com>
18276
18277         git-version-gen: aesthetic tweak
18278         * build-aux/git-version-gen: Use "$nl" rather than a literal,
18279         so that the command remains on a single line.
18280
18281 2010-04-26  Eric Blake  <eblake@redhat.com>
18282
18283         git-version-gen: allow use on EBCDIC hosts
18284         * build-aux/git-version-gen (dirty): Use literal rather than tying
18285         ourselves to ascii.
18286         Reported by Steve Goetze.
18287
18288 2010-04-25  Bruno Haible  <bruno@clisp.org>
18289
18290         netdb: Add support for GNULIB_POSIXCHECK.
18291         * lib/netdb.in.h: Include warn-on-use.h.
18292         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
18293         functions are used when GNULIB_POSIXCHECK is defined and the
18294         getaddrinfo module is not in use.
18295         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18296         freeaddrinfo, gai_strerror, getnameinfo are declared.
18297         * modules/netdb (Depends-on): Add warn-on-use.
18298         (Makefile.am): Include warn-on-use.h in netdb.h.
18299
18300 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18301
18302         build: avoid "make check" failure without .git/ directory
18303         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18304         there is no .git/ directory.
18305
18306 2010-04-25  Bruno Haible  <bruno@clisp.org>
18307
18308         ptsname: Fix misuse of ttyname_r.
18309         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18310         of errno.
18311
18312 2010-04-25  Bruno Haible  <bruno@clisp.org>
18313
18314         ttyname_r: Make it work on Solaris 10.
18315         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18316         if the system function has the POSIX declaration. Test whether the
18317         function fails if the buffer is less than 128 bytes large.
18318         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18319         system's ttyname_r function. Provide a reasonably large buffer.
18320         * modules/ttyname_r (Depends-on): Add extensions.
18321         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18322
18323 2010-04-25  Bruno Haible  <bruno@clisp.org>
18324
18325         Use the 'extensions' module for some more functions on Solaris.
18326         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18327         module.
18328         * doc/posix-functions/ctime_r.texi: Likewise.
18329         * doc/posix-functions/getgrgid_r.texi: Likewise.
18330         * doc/posix-functions/getgrnam_r.texi: Likewise.
18331         * doc/posix-functions/getpwnam_r.texi: Likewise.
18332         * doc/posix-functions/getpwuid_r.texi: Likewise.
18333         * doc/posix-functions/readdir_r.texi: Likewise.
18334         * doc/posix-functions/sigwait.texi: Likewise.
18335         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18336         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18337
18338 2010-04-25  Bruno Haible  <bruno@clisp.org>
18339
18340         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18341         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18342         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18343         * lib/ttyname_r.c: Include <limits.h>.
18344         (ttyname_r): Define using the system's ttyname_r function, if it exists
18345         and not on Solaris.
18346         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18347         set.
18348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18349         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18350         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18351         Reported by Simon Josefsson.
18352
18353 2010-04-25  Bruno Haible  <bruno@clisp.org>
18354
18355         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18356         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18357         * doc/posix-functions/ctime_r.texi: Likewise.
18358         * doc/posix-functions/getgrgid_r.texi: Likewise.
18359         * doc/posix-functions/getgrnam_r.texi: Likewise.
18360         * doc/posix-functions/getlogin_r.texi: Likewise.
18361         * doc/posix-functions/getpwnam_r.texi: Likewise.
18362         * doc/posix-functions/getpwuid_r.texi: Likewise.
18363         * doc/posix-functions/readdir_r.texi: Likewise.
18364         * doc/posix-functions/sigwait.texi: Likewise.
18365         * doc/posix-functions/ttyname_r.texi: Likewise.
18366         Reported by Simon Josefsson.
18367
18368 2010-04-25  Bruno Haible  <bruno@clisp.org>
18369
18370         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18371         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18372         also to --create-testdir.
18373         (func_acceptable): Don't consider the status of *-tests modules here.
18374         (func_modules_transitive_closure): Consider it here, before including a
18375         test module.
18376         (func_import, func_create_testdir): Set inc_all_direct_tests,
18377         inc_all_indirect_tests.
18378         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18379         --create-testdir and --create-megatestdir.
18380
18381 2010-04-25  Bruno Haible  <bruno@clisp.org>
18382
18383         gnulib-tool: Add --without-*-tests options.
18384         * gnulib-tool (func_usage): Document the --without-*-tests options.
18385         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18386         excl_unportable_tests): New variables.
18387         Fail if they are specified with --import or --update.
18388         (func_acceptable): Respect the excl_*_tests variables.
18389         (func_import): Set the excl_*_tests variables to empty.
18390
18391 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18392             Bruno Haible  <bruno@clisp.org>
18393
18394         Work around a MacOS X 10.4 bug with openpty.
18395         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18396         * tests/test-openpty.c (main): Close the master side explicitly.
18397
18398 2010-04-25  Bruno Haible  <bruno@clisp.org>
18399
18400         strnlen: Fix a C++ test error on MacOS X and Solaris.
18401         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18402         the function is not declared.
18403         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18404         Simon Josefsson.
18405
18406 2010-04-24  Bruno Haible  <bruno@clisp.org>
18407
18408         Avoid a gcc warning.
18409         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18410         of correct type for %08lx directive.
18411         Reported by Eric Blake.
18412
18413 2010-04-24  Bruno Haible  <bruno@clisp.org>
18414
18415         vasnprintf: Correct errno value in case of out-of-memory.
18416         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18417         or sprintf. Use the errno value from SNPRINTF or sprintf.
18418         Reported by Ian Beckwith <ianb@erislabs.net>.
18419
18420 2010-04-24  Bruno Haible  <bruno@clisp.org>
18421
18422         ansi-c++-opt: Find correct compiler when cross-compiling.
18423         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18424         AC_CHECK_PROGS.
18425         Reported by Simon Josefsson.
18426
18427 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18428
18429         vc-list-files: Add support for subversion
18430         * build-aux/vc-list-files: Use "svn list" to generate the list of
18431         files controlled by subversion.
18432
18433 2010-04-23  Jim Meyering  <meyering@redhat.com>
18434
18435         vc-list-files tests: convert to use init.sh
18436         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18437         path_prepend_.
18438         Use Exit, not exit.
18439         Use skip_ rather than open coding it.
18440         Remove trap set-up and compare definitions.
18441         * tests/test-vc-list-files-git.sh: Likewise.
18442         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18443
18444 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18445
18446         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18447         backup files.
18448
18449 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18450
18451         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18452
18453 2010-04-20  Eric Blake  <eblake@redhat.com>
18454
18455         tests: be robust to ignored SIGPIPE
18456         * tests/test-select-in.sh: Consume all output.
18457         * tests/test-lseek.sh: Check correct exit status, while avoiding
18458         EPIPE.
18459
18460 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18461             Bruno Haible  <bruno@clisp.org>
18462
18463         visibility: Don't use -fvisibility if it leads to a warning.
18464         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18465         yes, don't pretend that visibility works if it leads to a warning.
18466         Reported by Mike Gran <spk121@yahoo.com>.
18467
18468 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18469
18470         * build-aux/bootstrap: Use "git -h" for testing for supported options
18471         instead of "git --help".  The short-form option only shows a summary,
18472         and doesn't layout the full man page.  Grep for the full option name
18473         in the summary, too.
18474
18475 2010-04-19  Bruno Haible  <bruno@clisp.org>
18476
18477         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18478         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18479         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18480         mention of RELOCATABLE_STRIP.
18481         Reported by Sylvain Beucler <beuc@beuc.net>.
18482
18483 2010-04-19  Bruno Haible  <bruno@clisp.org>
18484
18485         * lib/diffseq.h: Fix typo in comment.
18486         Reported by Eric Blake.
18487
18488 2010-04-19  Bruno Haible  <bruno@clisp.org>
18489
18490         ioctl: Move autoconf macro to a .m4 file.
18491         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18492         * modules/ioctl (Files): Add it.
18493         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18494         Reported by Ian Beckwith <ianb@erislabs.net>.
18495
18496 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18497             Bruno Haible  <bruno@clisp.org>
18498
18499         diffseq: Accommodate use-case with abstract arrays.
18500         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18501         is not defined.
18502         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18503         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18504
18505 2010-04-18  Bruno Haible  <bruno@clisp.org>
18506
18507         * doc/posix-headers/stdbool.texi: More precise wording.
18508
18509 2010-04-17  Jim Meyering  <meyering@redhat.com>
18510
18511         maint.mk: use gnu-style indentation in an embedded perl script
18512         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18513         Rename variable: s/two/last_two_bytes/
18514
18515 2010-04-16  Eric Blake  <eblake@redhat.com>
18516
18517         test-stdbool: skip test that fails with Solaris CC
18518         * tests/test-stdbool.c (f): Skip test that causes compilation
18519         error under buggy C++ compiler.
18520         * lib/stdbool.in.h: Document the limitation.
18521         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18522
18523         setenv: allow compilation with C++
18524         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18525         register keyword.
18526
18527         stdint: allow test to pass with C++
18528         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18529
18530         getopt: allow compilation with C++
18531         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18532         struct.
18533         * lib/getopt.c (_getopt_internal_r): Use correct type.
18534         Reported by Dagobert Michelson, via Joel E. Denny.
18535
18536 2010-04-16  Bruno Haible  <bruno@clisp.org>
18537
18538         Override netdb.h always.
18539         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18540         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18541         Reported by Ludovic Courtès <ludo@gnu.org>.
18542
18543 2010-04-15  Bruno Haible  <bruno@clisp.org>
18544
18545         openpty: Fix mistake from 2010-03-21.
18546         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18547         Reported by Simon Josefsson.
18548
18549 2010-04-15  Eric Blake  <eblake@redhat.com>
18550
18551         test-forkpty: fix expected signature
18552         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18553         Reported by Simon Josefsson.
18554
18555 2010-04-15  Jim Meyering  <meyering@redhat.com>
18556
18557         maint.mk: texinfo_suffix_re_: correct the default regexp
18558         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18559
18560         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18561         make it configurable via texinfo_suffix_re_.
18562
18563 2010-04-14  Eric Blake  <eblake@redhat.com>
18564
18565         strtok_r: relax license to LGPLv2+
18566         * modules/strtok_r (License): Relax license.
18567         Reported by Matthias Bolte.
18568
18569 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18570
18571         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18572         version 1.4.4 by default instead of requiring the libgcrypt
18573         version used during build.  This makes it possible to use the
18574         application with older but still binary compatible libgcrypt
18575         versions.
18576
18577 2010-04-13  Eric Blake  <eblake@redhat.com>
18578
18579         getopt-gnu: match recent glibc fixes and posix ruling
18580         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18581         '+' handling, when requesting extensions.
18582         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18583         'W;' handling.
18584         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18585         * doc/posix-functions/getopt.texi (getopt): Document this.
18586         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18587         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18588         Likewise.
18589
18590         getopt: merge bug fixes from glibc
18591         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18592         diagnostics.  Honor '+:' correctly.  Reject ';'.
18593
18594         getopt-posix: detect MacOS bug
18595         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18596         optind when missing a required argument.
18597         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18598         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18599         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18600         Likewise.
18601
18602         getopt-posix: avoid spurious failure on Solaris
18603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18604         an indicator that setting optind=1 is sufficient for reset.
18605
18606         getopt-posix: avoid spurious failure on FreeBSD
18607         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18608         in POSIX mode, since the m4 test uses it.
18609
18610         gnulib-tool: silence warning on BSD sh
18611         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18612
18613 2010-04-13  Jim Meyering  <meyering@redhat.com>
18614
18615         doc: users.txt: GNU patch now uses gnulib
18616         * users.txt: Add patch.
18617
18618 2010-04-12  Jim Meyering  <meyering@redhat.com>
18619
18620         maint.mk: generate more concise timing data for syntax-check rules
18621         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18622         " done" from each line that reports a syntax-check test duration.
18623
18624 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18625
18626         git-version-gen: use "git update-index..." rather than "git status"
18627         * build-aux/git-version-gen: Use git update-index --refresh, not
18628         "git status".  With some versions of git, "git status" would fail
18629         to update the index and result in an unwarranted "-dirty" suffix.
18630
18631 2010-04-11  Jim Meyering  <meyering@redhat.com>
18632
18633         openat: correct formatting (no semantic change)
18634         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18635         Suggested by Bruno Haible.
18636
18637 2010-04-11  Bruno Haible  <bruno@clisp.org>
18638
18639         Stricter declaration checking in testdirs.
18640         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18641         If for_tests is true, augment AM_CPPFLAGS to define
18642         GNULIB_STRICT_CHECKING.
18643         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18644         GNULIB_STRICT_CHECKING is defined, verify that the function is
18645         declared.
18646
18647 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18648             Bruno Haible  <bruno@clisp.org>
18649
18650         libunistring: Improve configure output.
18651         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18652         Don't say "consider installing GNU libunistring" when checking again
18653         with libiconv.
18654
18655 2010-04-11  Bruno Haible  <bruno@clisp.org>
18656
18657         libunistring: Correct value of $LTLIBUNISTRING.
18658         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18659         correct the value of $LTLIBUNISTRING.
18660
18661 2010-04-11  Bruno Haible  <bruno@clisp.org>
18662
18663         havelib: Add static libraries to LIBS in the right order.
18664         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18665         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18666
18667 2010-04-11  Bruno Haible  <bruno@clisp.org>
18668
18669         libunistring: Detect libunistring also when it depends on libiconv.
18670         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18671         the second AC_LIB_HAVE_LINKFLAGS invocation.
18672
18673 2010-04-11  James Youngman  <jay@gnu.org>
18674
18675         close-stream: declare local scalars to be "const"
18676         * lib/close-stream.c (close_stream): Make boolean variables const
18677         to document the fact that we set but do not change them.
18678
18679 2010-04-11  Bruno Haible  <bruno@clisp.org>
18680
18681         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18682
18683 2010-04-11  Jim Meyering  <meyering@redhat.com>
18684
18685         maint.mk: don't include dist-check.mk
18686         * top/maint.mk: Remove bogus include directive.
18687
18688         maint.mk: improve empty-line-at-EOF check
18689         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18690         solution, rather than tail+Perl-based one.  The latter would read
18691         a few kilobytes from the end of each file, and did not handle empty
18692         files properly.
18693
18694         maint.mk: print the elapsed time for each syntax-check rule
18695         * top/maint.mk (sc_m_rules_): Save start time in a file.
18696         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18697         (local-check): Interpose the .z rules
18698
18699 2010-04-11  Jim Meyering  <meyering@redhat.com>
18700
18701         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18702         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18703         empty file with one that ends in an empty line.
18704
18705 2010-04-10  Bruno Haible  <bruno@clisp.org>
18706
18707         mkdir: Make it work on mingw64.
18708         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18709         * lib/mkdir.c: Update comment.
18710         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
18711
18712 2010-04-10  Bruno Haible  <bruno@clisp.org>
18713
18714         Don't override improved macro from newer autoconf.
18715         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18716         autoconf >= 2.62.
18717         Reported by Joel E. Denny <jdenny@clemson.edu>.
18718
18719 2010-04-10  Jim Meyering  <meyering@redhat.com>
18720
18721         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18722         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18723
18724         maint.mk: correct a diagnostic
18725         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18726         in diagnostic; now use $prohibit.
18727
18728 2010-04-10  Bruno Haible  <address@hidden>
18729
18730         fchownat: Fix a C++ test error on Solaris 8.
18731         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18732         the function does not exist.
18733
18734 2010-04-10  Bruno Haible  <bruno@clisp.org>
18735
18736         vasnprintf: Add more tests.
18737         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18738         (test_function): Test converting an invalid wide string.
18739
18740         vasnprintf: Correct handling of unconvertible wide string arguments.
18741         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18742         VASNPRINTF.
18743         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18744         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18745         smaller than the expected maximum need for the directive. Set errno to
18746         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18747         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18749         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18750         * modules/vasnprintf (Files): Add m4/printf.m4.
18751         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18752
18753 2010-04-10  Bruno Haible  <bruno@clisp.org>
18754
18755         vasnprintf: Fix crash in %ls directive.
18756         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18757         string is passed as argument to %ls, with no precision and no width.
18758         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18759
18760 2010-04-10  Bruno Haible  <bruno@clisp.org>
18761
18762         vasnprintf: Fix multiple test failures on mingw.
18763         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18764         _snprintf, or snwprintf, not _snwprintf.
18765
18766 2010-04-10  Bruno Haible  <bruno@clisp.org>
18767
18768         write: Fix a C++ test error on mingw.
18769         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18770
18771 2010-04-10  Bruno Haible  <bruno@clisp.org>
18772
18773         vasnprintf test: Reduce code duplication.
18774         * tests/test-vasnprintf.c (test_function): New function, extracted from
18775         test_vasnprintf.
18776         (test_vasnprintf, test_asnprintf): Invoke it.
18777
18778 2010-04-10  Bruno Haible  <bruno@clisp.org>
18779
18780         strnlen: Fix warning in C++ mode on MacOS X.
18781         * lib/string.in.h (strnlen): Use the modern idiom.
18782         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18783         defining strnlen as a macro already in <config.h>.
18784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18785         REPLACE_STRNLEN.
18786         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18787         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18788
18789 2010-04-08  James Youngman  <jay@gnu.org>
18790
18791         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18792         the example.
18793
18794 2010-04-09  Jim Meyering  <meyering@redhat.com>
18795
18796         maint.mk: print better diagnostic when there is no $(_hv_file)
18797         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18798         announce that when $(_hv_file) (aka help-version) does not exist.
18799
18800         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18801         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18802         not try to interpret its random input bytes.  Jarno Rajahalme reported
18803         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18804         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18805         (mktempd_): Likewise, just in case.
18806
18807         ftruncate: add two years to projected module removal date: 2012
18808         * m4/ftruncate.m4: Adjust comments.
18809
18810         ftruncate: mark module as obsolete; even MinGW provides it, now
18811         * modules/ftruncate (Status): Obsolete.
18812         (Notice): Say that.
18813         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18814         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18815
18816 2010-04-08  Bruno Haible  <bruno@clisp.org>
18817
18818         Fix side effects from tests-related modules.
18819         * modules/dprintf-posix (Comment): New section.
18820         * modules/fprintf-posix (Comment): Likewise.
18821         * modules/obstack-printf-posix (Comment): Likewise.
18822         * modules/printf-posix (Comment): Likewise.
18823         * modules/snprintf-posix (Comment): Likewise.
18824         * modules/sprintf-posix (Comment): Likewise.
18825         * modules/vasnprintf-posix (Comment): Likewise.
18826         * modules/vasprintf-posix (Comment): Likewise.
18827         * modules/vdprintf-posix (Comment): Likewise.
18828         * modules/vfprintf-posix (Comment): Likewise.
18829         * modules/vprintf-posix (Comment): Likewise.
18830         * modules/vsnprintf-posix (Comment): Likewise.
18831         * modules/vsprintf-posix (Comment): Likewise.
18832         * modules/xprintf-posix (Comment): Likewise.
18833         * modules/xvasprintf-posix (Comment): Likewise.
18834         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18835         * modules/floorf-tests (Depends-on): Likewise.
18836         * modules/round-tests (Depends-on): Likewise.
18837         * modules/roundf-tests (Depends-on): Likewise.
18838         * modules/trunc-tests (Depends-on): Likewise.
18839         * modules/truncf-tests (Depends-on): Likewise.
18840         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18841         'fprintf-posix' module is not present.
18842         * tests/test-floorf2.c (check): Likewise.
18843         * tests/test-trunc2.c (check): Likewise.
18844         * tests/test-truncf2.c (check): Likewise.
18845         * tests/test-round2.c (equal): Likewise.
18846         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18847
18848 2010-04-07  Karl Berry  <karl@gnu.org>
18849
18850         * config/srclist.txt,
18851         * config/srclistvars.sh,
18852         * config/srclist-update: doc fixes.
18853
18854 2010-04-07  Jim Meyering  <meyering@redhat.com>
18855
18856         maint.mk: add a PATH crosschecking syntax-check rule
18857         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18858         Useful if you use a test like the one in help-version (coreutils,
18859         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18860         printed by prog --version.
18861
18862 2010-04-06  Bruno Haible  <bruno@clisp.org>
18863
18864         Fix link error on mingw.
18865         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18866         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18867
18868 2010-04-06  Bruno Haible  <bruno@clisp.org>
18869
18870         Assume rmdir exists.
18871         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
18872
18873 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
18874
18875         doc: update users.txt
18876         * users.txt: Add gcal.
18877
18878 2010-04-06  Jim Meyering  <meyering@redhat.com>
18879
18880         init.sh: simply unset TMPDIR rather than risking env -i
18881         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
18882         although it probably works fine on all Unix-based systems, some
18883         systems (Cygwin?) cannot tolerate a totally cleared environment.
18884         Suggestion from Eric Blake.
18885
18886 2010-04-06  Jim Meyering  <meyering@redhat.com>
18887
18888         init.sh: portability fix: use env's POSIX-specified -i option not -u
18889         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
18890         than unportable env -u.  Solaris 5.11's env lacks support for -u.
18891
18892 2010-04-05  Bruno Haible  <bruno@clisp.org>
18893
18894         btowc: Work around Cygwin 1.7.2 bug.
18895         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
18896         does not map NUL to 0.
18897         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
18898
18899 2010-04-05  Bruno Haible  <bruno@clisp.org>
18900
18901         Make the multithread modules work on Cygwin 1.7.2.
18902         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
18903         imported symbols can be declared weak, so that it returns "no" on
18904         Cygwin 1.7.2.
18905
18906 2010-04-05  Bruno Haible  <bruno@clisp.org>
18907
18908         Use the module 'strncat'.
18909         * modules/unistr/u8-strncat (Depends-on): Add strncat.
18910
18911         Tests for module 'strncat'.
18912         * modules/strncat-tests: New file.
18913         * tests/test-strncat.c: New file.
18914
18915         New module 'strncat'.
18916         * lib/string.in.h (strncat): New declaration.
18917         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
18918         * m4/strncat.m4: New file, based on m4/memchr.m4.
18919         * modules/strncat: New file.
18920         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
18921         is declared.
18922         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
18923         REPLACE_STRNCAT.
18924         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
18925         REPLACE_STRNCAT.
18926         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
18927         module.
18928         * tests/test-string-c++.cc: Check signature of strncat.
18929
18930 2010-04-05  Jim Meyering  <meyering@redhat.com>
18931
18932         xstrtoumax-tests: convert to use init.sh
18933         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
18934         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18935         Use Exit, not exit.
18936         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18937
18938         xstrtoimax-tests: convert to use init.sh
18939         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
18940         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18941         Use Exit, not exit.
18942         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18943
18944 2010-04-05  Bruno Haible  <bruno@clisp.org>
18945
18946         sys_socket: Avoid #define replacements in C++ mode.
18947         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
18948         warning to the function if possible, rather than #defining the symbol
18949         to a dysfunctional alias.
18950
18951 2010-04-05  Bruno Haible  <bruno@clisp.org>
18952
18953         fseeko: Fix C++ test error on mingw.
18954         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
18955         gl_FUNC_FSEEKO.
18956         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
18957         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
18958         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
18959         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
18960
18961 2010-04-05  Bruno Haible  <bruno@clisp.org>
18962
18963         duplocale: Improve test output.
18964         * tests/test-duplocale.c (main): Print reason for skipped test.
18965
18966 2010-04-05  Bruno Haible  <bruno@clisp.org>
18967
18968         Assume rmdir exists.
18969         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
18970         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
18971
18972 2010-04-05  Bruno Haible  <bruno@clisp.org>
18973
18974         Fix link error on Solaris 8 with cc.
18975         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
18976
18977 2010-04-05  Bruno Haible  <bruno@clisp.org>
18978
18979         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18980         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
18981
18982 2010-04-05  Bruno Haible  <bruno@clisp.org>
18983
18984         vasprintf: Update documentation.
18985         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
18986
18987 2010-04-05  Bruno Haible  <bruno@clisp.org>
18988
18989         ptsname: Improve test.
18990         * tests/test-ptsname.c (main): Also try the various master names of BSD
18991         systems.
18992
18993 2010-04-05  Bruno Haible  <bruno@clisp.org>
18994
18995         memchr: Avoid a possible C++ test error.
18996         * lib/string.in.h (memchr): Provide declaration if function is missing.
18997         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
18998         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
18999         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
19000         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
19001
19002 2010-04-05  Bruno Haible  <bruno@clisp.org>
19003
19004         strtok_r: Improve idiom.
19005         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
19006         AC_LIBOBJ is used.
19007
19008 2010-04-05  Bruno Haible  <bruno@clisp.org>
19009
19010         strdup: Improve idiom.
19011         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
19012         AC_LIBOBJ is used.
19013         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
19014         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
19015         when AC_LIBOBJ is used.
19016
19017 2010-04-05  Bruno Haible  <bruno@clisp.org>
19018
19019         mbsinit, mbrtowc, wcrtomb: Improve idioms.
19020         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
19021         don't set REPLACE_MBSINIT to 1.
19022         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
19023         don't set REPLACE_MBRTOWC to 1.
19024         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
19025         exist, don't set REPLACE_MBSRTOWCS to 1.
19026         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
19027         exist, don't set REPLACE_MBSNRTOWCS to 1.
19028         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
19029         don't set REPLACE_WCRTOMB to 1.
19030         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
19031         exist, don't set REPLACE_WCSRTOMBS to 1.
19032         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
19033         exist, don't set REPLACE_WCSNRTOMBS to 1.
19034
19035 2010-04-05  Bruno Haible  <bruno@clisp.org>
19036
19037         ldexpl: Improve idiom.
19038         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
19039         make sure to set HAVE_DECL_LDEXPL to 0.
19040
19041 2010-04-05  Jim Meyering  <meyering@redhat.com>
19042
19043         xstrtol-tests: convert to use init.sh
19044         * modules/xstrtol-tests (Files): Add tests/init.sh.
19045         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19046         Use Exit, not exit.
19047         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19048
19049         atexit-tests: convert to use init.sh
19050         * modules/atexit-tests (Files): Add tests/init.sh.
19051         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19052         Use Exit, not exit.
19053         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19054
19055         init.sh: fix typo
19056         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
19057
19058         init.sh: make it easier for a test script to write to the tty, ...
19059         when using automake's parallel-tests mode.
19060         * tests/init.sh (stderr_fileno_): Define overridable variable.
19061         (warn_): New function, to use it.
19062         (fail_, skip_, framework_failure_): Use warn_.
19063
19064 2010-04-04  Bruno Haible  <bruno@clisp.org>
19065
19066         btowc: Avoid warning.
19067         * lib/btowc.c: Include <stdlib.h>.
19068         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
19069
19070 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19071             Bruno Haible  <bruno@clisp.org>
19072
19073         wchar: Port to NetBSD 1.5.
19074         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
19075         * lib/wctype.in.h (WEOF): Likewise.
19076
19077 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19078             Bruno Haible  <bruno@clisp.org>
19079
19080         Port extended stdio to NetBSD 1.5.
19081         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
19082         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
19083         older.
19084
19085 2010-04-04  Bruno Haible  <bruno@clisp.org>
19086
19087         string: Remove unused substitution.
19088         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19089         HAVE_DECL_STRERROR.
19090         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
19091
19092 2010-04-04  Bruno Haible  <bruno@clisp.org>
19093
19094         strtod: Avoid a possible C++ test error.
19095         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
19096         set REPLACE_STRTOD.
19097
19098 2010-04-04  Bruno Haible  <bruno@clisp.org>
19099
19100         strerror: Update documentation.
19101         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
19102
19103 2010-04-04  Bruno Haible  <bruno@clisp.org>
19104
19105         stdio: Fix some C++ test errors on Solaris 8 with GCC.
19106         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
19107         _GL_CXXALIAS_SYS_CAST.
19108
19109 2010-04-04  Bruno Haible  <bruno@clisp.org>
19110
19111         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19112         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19113         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19114         REPLACE_FREXPL to 1.
19115         * doc/posix-functions/frexpl.texi: Update documentation.
19116
19117 2010-04-04  Bruno Haible  <bruno@clisp.org>
19118
19119         math: Fix some C++ test errors on Solaris 8 and Cygwin.
19120         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
19121
19122 2010-04-04  Bruno Haible  <bruno@clisp.org>
19123
19124         Implement nanosleep for native Windows.
19125         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
19126
19127 2010-04-04  Bruno Haible  <bruno@clisp.org>
19128
19129         math: Fix some C++ test errors on Solaris 8.
19130         * lib/math.in.h (truncf, trunc): Use simpler idiom.
19131
19132 2010-04-04  Bruno Haible  <bruno@clisp.org>
19133
19134         math: Fix some C++ test errors on Cygwin.
19135         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
19136         truncl): Provide declaration if the system does not have it.
19137         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
19138         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
19139         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
19140         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
19141         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
19142         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
19143         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
19144         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
19145         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
19146         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
19147         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
19148         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
19149         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
19150         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
19151         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
19152         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
19153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
19154         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19155         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19156         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
19157         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19158         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19159
19160 2010-04-04  Bruno Haible  <bruno@clisp.org>
19161
19162         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
19163         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19164         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19165         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19166         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19167         * m4/isinf.m4 (gl_ISINF): Likewise.
19168         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19169
19170 2010-04-04  Bruno Haible  <bruno@clisp.org>
19171
19172         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
19173         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19174
19175 2010-04-04  Bruno Haible  <bruno@clisp.org>
19176
19177         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
19178         * modules/tmpfile (configure.ac): Update.
19179
19180         tmpfile: Fix C++ test error on mingw.
19181         * lib/stdio.in.h (tmpfile): New declaration.
19182         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
19183         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
19184         * modules/tmpfile (Depends-on): Add stdio.
19185         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19186         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
19187         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
19188         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
19189         REPLACE_TMPFILE.
19190         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
19191
19192 2010-04-04  Bruno Haible  <bruno@clisp.org>
19193
19194         ioctl: Fix C++ test error on mingw.
19195         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
19196         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
19197         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
19198
19199 2010-04-03  Bruno Haible  <bruno@clisp.org>
19200
19201         wcwidth: Fix C++ test error on mingw.
19202         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
19203         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
19204         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
19205
19206 2010-04-03  Bruno Haible  <bruno@clisp.org>
19207
19208         nanosleep: Fix C++ test error on mingw.
19209         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
19210         * lib/time.in.h (nanosleep): Use modern idiom.
19211         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
19212         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
19213         REPLACE_NANOSLEEP to 1.
19214         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
19215         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
19216
19217 2010-04-03  Bruno Haible  <bruno@clisp.org>
19218
19219         strptime: Fix C++ test error on mingw.
19220         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
19221         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
19222         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
19223         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
19224         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
19225         not REPLACE_STRPTIME.
19226         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
19227         REPLACE_STRPTIME.
19228
19229 2010-04-03  Bruno Haible  <bruno@clisp.org>
19230
19231         timegm: Fix C++ test error on mingw.
19232         * lib/time.in.h (timegm): Use modern idiom.
19233         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
19234         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
19235         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
19236         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
19237
19238 2010-04-03  Bruno Haible  <bruno@clisp.org>
19239
19240         timegm: Assume declaration if function exists.
19241         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
19242         if it exists. Don't clobber ac_cv_func_timegm.
19243
19244 2010-04-03  Bruno Haible  <bruno@clisp.org>
19245
19246         time_r: Fix C++ test error on mingw.
19247         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
19248         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
19249         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
19250         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
19251         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
19252
19253 2010-04-03  Bruno Haible  <bruno@clisp.org>
19254
19255         time_r: Minor updates.
19256         * modules/time_r (Description): Mention the provided functions.
19257         * lib/time_r.c: Don't include <string.h>.
19258         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
19259         * doc/posix-functions/localtime_r.texi: Likewise.
19260
19261 2010-04-03  Bruno Haible  <bruno@clisp.org>
19262
19263         time: Fix regression introduced on 2010-03-08.
19264         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
19265         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
19266
19267 2010-04-03  Jim Meyering  <meyering@redhat.com>
19268
19269         maint.mk: don't silently disable project-specific syntax-check rules
19270         * top/maint.mk (_prohibit_regexp): Define, to help people realize
19271         that they need to convert their project-specific syntax-check rules
19272         to use the new _sc_search_regexp.
19273
19274 2010-04-03  Bruno Haible  <bruno@clisp.org>
19275
19276         fchdir: Fix regression introduced on 2010-03-08.
19277         * lib/unistd.in.h (fchdir): Fix declaration.
19278         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
19279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
19280         REPLACE_FCHDIR.
19281         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
19282         REPLACE_FCHDIR.
19283
19284 2010-04-03  Bruno Haible  <bruno@clisp.org>
19285
19286         getpagesize: Fix C++ test error on mingw.
19287         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
19288         system does not declare the function.
19289         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
19290         declared.
19291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19292         HAVE_DECL_GETPAGESIZE.
19293         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
19294
19295 2010-04-03  Bruno Haible  <bruno@clisp.org>
19296
19297         stdio: Make C++ tests work on mingw.
19298         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19299         does not declare the function.
19300
19301 2010-04-03  Bruno Haible  <bruno@clisp.org>
19302
19303         ftello: Fix C++ test error on mingw.
19304         * lib/stdio.in.h (ftello): Use modern idiom.
19305         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19306         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19307         is missing and that it needs to be replaced.
19308         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19310         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19311
19312 2010-04-03  Bruno Haible  <bruno@clisp.org>
19313
19314         fseeko: Fix C++ test error on mingw.
19315         * lib/stdio.in.h (fseeko): Use modern idiom.
19316         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19317         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19318         is missing and that it needs to be replaced.
19319         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19321         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19322
19323 2010-04-03  Bruno Haible  <bruno@clisp.org>
19324
19325         mkstemp: Fix C++ test error on mingw.
19326         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19327         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19328         function is missing and that it needs to be replaced.
19329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19330         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19331
19332 2010-04-03  Bruno Haible  <bruno@clisp.org>
19333
19334         stpncpy: Fix C++ test error on mingw.
19335         * lib/string.in.h (stpncpy): Use modern idiom.
19336         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19337         function is missing and that it needs to be replaced.
19338         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19339         REPLACE_STPNCPY.
19340         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19341
19342 2010-04-03  Bruno Haible  <bruno@clisp.org>
19343
19344         sys_stat: Fix C++ test error on mingw.
19345         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19346         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19347
19348 2010-04-03  Bruno Haible  <bruno@clisp.org>
19349
19350         pty: Update doc.
19351         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19352
19353 2010-04-03  Bruno Haible  <bruno@clisp.org>
19354
19355         unistd: Fix C++ test error on mingw.
19356         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19357
19358 2010-04-03  Bruno Haible  <bruno@clisp.org>
19359
19360         Update doc regarding mingw.
19361         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19362         * doc/glibc-functions/login_tty.texi: Likewise.
19363         * doc/glibc-functions/forkpty.texi: Likewise.
19364
19365 2010-04-03  Bruno Haible  <bruno@clisp.org>
19366
19367         stdlib: Avoid compilation failure of c-strtold on mingw.
19368         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19369
19370 2010-04-03  Bruno Haible  <bruno@clisp.org>
19371
19372         locale: Make C++ tests work on Cygwin and mingw.
19373         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19374         cannot provide the function.
19375         Reported by Simon Josefsson.
19376
19377 2010-04-03  Bruno Haible  <bruno@clisp.org>
19378
19379         localename: Port to MacOS X 10.6.
19380         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19381         memory layout of the locales in MacOS X 10.6 as well.
19382         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19383
19384 2010-04-02  Bruno Haible  <bruno@clisp.org>
19385
19386         gnulib-tool: Ensure that long-running tests are executed last.
19387         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19388         running tests after the one for the other tests.
19389
19390 2010-04-02  Bruno Haible  <bruno@clisp.org>
19391
19392         gnulib-tool: Ensure the tests in the main directory are executed first.
19393         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19394         start with the current directory.
19395
19396 2010-04-02  Bruno Haible  <bruno@clisp.org>
19397
19398         Tests for module 'havelib', moved here from GNU gettext.
19399         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19400         modifications.
19401         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19402         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19403         with modifications.
19404         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19405         modifications.
19406         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19407         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19408         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19409         with modifications.
19410         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19411         with modifications.
19412         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19413         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19414         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19415         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19416         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19417         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19418         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19419         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19420         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19421         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19422         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19423         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19424         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19425         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19426         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19427         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19428         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19429         with modifications.
19430         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19431         with modifications.
19432         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19433         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19434         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19435         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19436         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19437         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19438         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19439         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19440         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19441         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19442         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19443         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19444         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19445         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19446         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19447         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19448         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19449         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19450         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19451         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19452         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19453         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19454         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19455         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19456         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19457         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19458         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19459         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19460         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19461         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19462         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19463         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19464         * tests/havelib/rpathx/rpathx.c: New file, from
19465         gettext/autoconf-lib-link.
19466         * tests/havelib/rpathx/Makefile.am: New file, from
19467         gettext/autoconf-lib-link.
19468         * tests/havelib/rpathx/configure.ac: New file, from
19469         gettext/autoconf-lib-link with modifications.
19470         * tests/havelib/rpathy/rpathy.c: New file, from
19471         gettext/autoconf-lib-link.
19472         * tests/havelib/rpathy/Makefile.am: New file, from
19473         gettext/autoconf-lib-link.
19474         * tests/havelib/rpathy/configure.ac: New file, from
19475         gettext/autoconf-lib-link with modifications.
19476         * tests/havelib/rpathz/rpathz.c: New file, from
19477         gettext/autoconf-lib-link.
19478         * tests/havelib/rpathz/Makefile.am: New file, from
19479         gettext/autoconf-lib-link.
19480         * tests/havelib/rpathz/configure.ac: New file, from
19481         gettext/autoconf-lib-link with modifications.
19482         * tests/havelib/rpathlx/usex.c: New file, from
19483         gettext/autoconf-lib-link.
19484         * tests/havelib/rpathlx/Makefile.am: New file, from
19485         gettext/autoconf-lib-link.
19486         * tests/havelib/rpathlx/configure.ac: New file, from
19487         gettext/autoconf-lib-link with modifications.
19488         * tests/havelib/rpathly/usey.c: New file, from
19489         gettext/autoconf-lib-link.
19490         * tests/havelib/rpathly/Makefile.am: New file, from
19491         gettext/autoconf-lib-link.
19492         * tests/havelib/rpathly/configure.ac: New file, from
19493         gettext/autoconf-lib-link with modifications.
19494         * tests/havelib/rpathlz/usez.c: New file, from
19495         gettext/autoconf-lib-link.
19496         * tests/havelib/rpathlz/Makefile.am: New file, from
19497         gettext/autoconf-lib-link.
19498         * tests/havelib/rpathlz/configure.ac: New file, from
19499         gettext/autoconf-lib-link with modifications.
19500         * tests/havelib/rpathlyx/usey.c: New file, from
19501         gettext/autoconf-lib-link.
19502         * tests/havelib/rpathlyx/Makefile.am: New file, from
19503         gettext/autoconf-lib-link.
19504         * tests/havelib/rpathlyx/configure.ac: New file, from
19505         gettext/autoconf-lib-link with modifications.
19506         * tests/havelib/rpathlzyx/usez.c: New file, from
19507         gettext/autoconf-lib-link.
19508         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19509         gettext/autoconf-lib-link.
19510         * tests/havelib/rpathlzyx/configure.ac: New file, from
19511         gettext/autoconf-lib-link with modifications.
19512         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19513         with modifications.
19514
19515 2010-04-02  Bruno Haible  <bruno@clisp.org>
19516
19517         gnulib-tool: Create distributed built sources also for the tests.
19518         * gnulib-tool (func_create_testdir): Also generate distributed built
19519         sources in the tests directory.
19520
19521 2010-04-02  Bruno Haible  <bruno@clisp.org>
19522
19523         gnulib-tool: Obey user's environment variables.
19524         * gnulib-tool (func_create_testdir): When creating built sources,
19525         respect the environment variables for autoconf, automake, etc. given by
19526         the user.
19527
19528 2010-04-02  Bruno Haible  <bruno@clisp.org>
19529
19530         gnulib-tool: Provide the value of --m4-base to modules.
19531         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19532         of gl_m4_base.
19533
19534 2010-04-02  Eric Blake  <eblake@redhat.com>
19535
19536         maint.mk: fix some fallout
19537         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19538         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19539
19540 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19541
19542         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19543         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19544         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19545         (sc_cast_of_x_alloc_return_value): Likewise.
19546         (sc_cast_of_alloca_return_value): Likewise.
19547         (sc_space_tab): Likewise.
19548         (sc_prohibit_atoi_atof): Likewise.
19549         (sc_prohibit_magic_number_exit): Likewise.
19550         (sc_error_exit_success): Likewise.
19551         (sc_file_system): Likewise.
19552         (sc_prohibit_have_config_h): Likewise.
19553         (sc_require_config_h): Likewise.
19554         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19555         (sc_obsolete_symbols): Likewise.
19556         (sc_changelog): Likewise.
19557         (sc_program_name): Likewise.
19558         (sc_the_the): Likewise.
19559         (sc_trailing_blank): Likewise.
19560         (sc_two_space_separator_in_usage): Likewise.
19561         (sc_useless_cpp_parens): Likewise.
19562         (sc_GPL_version): Likewise.
19563         (sc_GFDL_version): Likewise.
19564         (sc_texinfo_acronym): Likewise.
19565         (sc_prohibit_cvs_keyword): Likewise.
19566         (sc_prohibit_stat_st_blocks): Likewise.
19567         (sc_prohibit_S_IS_definition): Likewise.
19568         (sc_redundant_const): Likewise.
19569         (sc_makefile_TAB_only_indentation): Likewise.
19570         (sc_m4_quote_check): Likewise.
19571         (sc_makefile_path_separator_check): Likewise.
19572         (sc_copyright_check): Likewise.
19573         (sc_Wundef_boolean): Likewise.
19574         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19575
19576         maint.mk: match 0 or more whitespace-before-function-call '('
19577         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19578         that have zero or two-and-more spaces between the function name
19579         and the open parenthesis.
19580         (sc_error_message_warn_fatal): Likewise.
19581         (sc_error_message_uppercase): Likewise.
19582         (sc_error_message_period): Likewise.
19583
19584 2010-03-31  Eric Blake  <eblake@redhat.com>
19585
19586         maint.mk: check for [ as well as test
19587         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19588         Based on a libvirt report by Matthias Bolte.
19589
19590         gnumakefile: don't squelch _version output
19591         * top/GNUmakefile (_version): Create one-shot dependency rather
19592         than using $(shell) when version must be regenerated.
19593         (_autoreconf): Run verbosely, by default.
19594
19595         sys_time: avoid compiler warnings
19596         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19597         unconditional, fixing regression from 2010-03-29.
19598         Reported by Simon Josefsson.
19599
19600 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19601
19602         maint.mk: s/_header_without_use/_sc_header_without_use/
19603         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19604         (sc_prohibit_assert_without_use): Use the new name.
19605         (sc_prohibit_close_stream_without_use): Likewise.
19606         (sc_prohibit_getopt_without_use): Likewise.
19607         (sc_prohibit_quotearg_without_use): Likewise.
19608         (sc_prohibit_quote_without_use): Likewise.
19609         (sc_prohibit_long_options_without_use): Likewise.
19610         (sc_prohibit_inttostr_without_use): Likewise.
19611         (sc_prohibit_ignore_value_without_use): Likewise.
19612         (sc_prohibit_error_without_use): Likewise.
19613         (sc_prohibit_xalloc_without_use): Likewise.
19614         (sc_prohibit_hash_without_use): Likewise.
19615         (sc_prohibit_hash_pjw_without_use): Likewise.
19616         (sc_prohibit_safe_read_without_use): Likewise.
19617         (sc_prohibit_argmatch_without_use): Likewise.
19618         (sc_prohibit_canonicalize_without_use): Likewise.
19619         (sc_prohibit_root_dev_ino_without_use): Likewise.
19620         (sc_prohibit_openat_without_use): Likewise.
19621         (sc_prohibit_c_ctype_without_use): Likewise.
19622         (sc_prohibit_signal_without_use): Likewise.
19623         (sc_prohibit_intprops_without_use): Likewise.
19624
19625 2010-03-30  Eric Blake  <eblake@redhat.com>
19626
19627         maint: improve module indicators
19628         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19629         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19630         columns, and avoid extra macro expansion.
19631
19632         fdopendir: work around FreeBSD bug
19633         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19634         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19635         * modules/dirent (Makefile.am): Substitute it.
19636         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19637         declaration.
19638         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19639         fix.
19640         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19641
19642 2010-03-29  Bruno Haible  <bruno@clisp.org>
19643
19644         Emit #pragma system_header after the inclusion guard, not before.
19645         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19646         guard that spans the entire file, not before. This enables an
19647         optimization in GCC's preprocessor.
19648         * lib/ctype.in.h: Likewise.
19649         * lib/dirent.in.h: Likewise.
19650         * lib/errno.in.h: Likewise.
19651         * lib/float.in.h: Likewise.
19652         * lib/getopt.in.h: Likewise.
19653         * lib/iconv.in.h: Likewise.
19654         * lib/langinfo.in.h: Likewise.
19655         * lib/locale.in.h: Likewise.
19656         * lib/math.in.h: Likewise.
19657         * lib/netdb.in.h: Likewise.
19658         * lib/netinet_in.in.h: Likewise.
19659         * lib/pty.in.h: Likewise.
19660         * lib/sched.in.h: Likewise.
19661         * lib/se-selinux.in.h: Likewise.
19662         * lib/search.in.h: Likewise.
19663         * lib/spawn.in.h: Likewise.
19664         * lib/stdarg.in.h: Likewise.
19665         * lib/stdint.in.h: Likewise.
19666         * lib/string.in.h: Likewise.
19667         * lib/strings.in.h: Likewise.
19668         * lib/sys_file.in.h: Likewise.
19669         * lib/sys_ioctl.in.h: Likewise.
19670         * lib/sys_time.in.h: Likewise.
19671         * lib/sys_times.in.h: Likewise.
19672         * lib/sys_utsname.in.h: Likewise.
19673         * lib/sys_wait.in.h: Likewise.
19674         * lib/sysexits.in.h: Likewise.
19675         * lib/wctype.in.h: Likewise.
19676
19677 2010-03-28  James Youngman  <jay@gnu.org>
19678
19679         save-cwd: don't leak a file descriptor when the caller execs.
19680         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19681         saved file descriptor.
19682         * modules/save-cwd (Depends-on): Depend on cloexec.
19683
19684 2010-03-29  Bruno Haible  <bruno@clisp.org>
19685
19686         Remove vestiges of fts-lgpl module.
19687         * lib/fts_.h: Assume GNULIB_FTS is 1.
19688         * lib/fts.c: Likewise.
19689         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19690
19691 2010-03-28  Bruno Haible  <bruno@clisp.org>
19692
19693         Fix definition of tests witness macro.
19694         * gnulib-tool (func_import): Fix definition of witness macro.
19695
19696 2010-03-28  Bruno Haible  <bruno@clisp.org>
19697
19698         Fix ioctl's protoype on glibc systems.
19699         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19700         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19701         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19702         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19703         signature. If not, arrange to replace the ioctl function.
19704         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19705         REPLACE_IOCTL.
19706         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19707         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19708         Reported by Ludovic Courtès <ludo@gnu.org>.
19709
19710 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19711
19712         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19713         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19714         made it so grep -r --include=GLOB* ... did not work.
19715
19716 2010-03-26  Jim Meyering  <meyering@redhat.com>
19717             Eric Blake  <eblake@redhat.com>
19718
19719         maint.mk: prohibit use of test's -o and -a operators
19720         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19721
19722 2010-03-28  Bruno Haible  <bruno@clisp.org>
19723
19724         Remove unused GNULIB_XYZ macro definitions.
19725         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19726         invocation.
19727
19728 2010-03-28  Bruno Haible  <bruno@clisp.org>
19729
19730         Mark privileged tests modules.
19731         * modules/idpriv-drop-tests (Status): New section.
19732         * modules/idpriv-droptemp-tests (Status): New section.
19733
19734 2010-03-28  Bruno Haible  <bruno@clisp.org>
19735
19736         Split C++ tests into separate tests modules.
19737         * modules/dirent-c++-tests: New file, extracted from
19738         modules/dirent-tests.
19739         * modules/dirent-tests: Depend on it.
19740         * modules/fcntl-h-c++-tests: New file, extracted from
19741         modules/fcntl-h-tests.
19742         * modules/fcntl-h-tests: Depend on it.
19743         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19744         * modules/glob-tests: Depend on it.
19745         * modules/iconv-h-c++-tests: New file, extracted from
19746         modules/iconv-h-tests.
19747         * modules/iconv-h-tests: Depend on it.
19748         * modules/langinfo-c++-tests: New file, extracted from
19749         modules/langinfo-tests.
19750         * modules/langinfo-tests: Depend on it.
19751         * modules/locale-c++-tests: New file, extracted from
19752         modules/locale-tests.
19753         * modules/locale-tests: Depend on it.
19754         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19755         * modules/math-tests: Depend on it.
19756         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19757         * modules/pty-tests: Depend on it.
19758         * modules/search-c++-tests: New file, extracted from
19759         modules/search-tests.
19760         * modules/search-tests: Depend on it.
19761         * modules/signal-c++-tests: New file, extracted from
19762         modules/signal-tests.
19763         * modules/signal-tests: Depend on it.
19764         * modules/spawn-c++-tests: New file, extracted from
19765         modules/spawn-tests.
19766         * modules/spawn-tests: Depend on it.
19767         * modules/stdio-c++-tests: New file, extracted from
19768         modules/stdio-tests.
19769         * modules/stdio-tests: Depend on it.
19770         * modules/stdlib-c++-tests: New file, extracted from
19771         modules/stdlib-tests.
19772         * modules/stdlib-tests: Depend on it.
19773         * modules/string-c++-tests: New file, extracted from
19774         modules/string-tests.
19775         * modules/string-tests: Depend on it.
19776         * modules/sys_ioctl-c++-tests: New file, extracted from
19777         modules/sys_ioctl-tests.
19778         * modules/sys_ioctl-tests: Depend on it.
19779         * modules/sys_select-c++-tests: New file, extracted from
19780         modules/sys_select-tests.
19781         * modules/sys_select-tests: Depend on it.
19782         * modules/sys_socket-c++-tests: New file, extracted from
19783         modules/sys_socket-tests.
19784         * modules/sys_socket-tests: Depend on it.
19785         * modules/sys_stat-c++-tests: New file, extracted from
19786         modules/sys_stat-tests.
19787         * modules/sys_stat-tests: Depend on it.
19788         * modules/sys_time-c++-tests: New file, extracted from
19789         modules/sys_time-tests.
19790         * modules/sys_time-tests: Depend on it.
19791         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19792         * modules/time-tests: Depend on it.
19793         * modules/unistd-c++-tests: New file, extracted from
19794         modules/unistd-tests.
19795         * modules/unistd-tests: Depend on it.
19796         * modules/wchar-c++-tests: New file, extracted from
19797         modules/wchar-tests.
19798         * modules/wchar-tests: Depend on it.
19799         * modules/wctype-c++-tests: New file, extracted from
19800         modules/wctype-tests.
19801         * modules/wctype-tests: Depend on it.
19802         Reported by Simon Josefsson.
19803
19804 2010-03-28  Bruno Haible  <bruno@clisp.org>
19805
19806         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19807         * gnulib-tool (func_exists_module): New function, extracted from
19808         func_verify_module.
19809         (func_verify_module): Use it.
19810         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19811         'foo' only if 'foo' exists.
19812         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19813         module.
19814
19815 2010-03-28  Bruno Haible  <bruno@clisp.org>
19816
19817         gnulib-tool: Add support for special categories of tests.
19818         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19819         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19820         (func_usage): Document them.
19821         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19822         inc_unportable_tests, inc_all_tests): New variables.
19823         (func_acceptable): Consider these variables.
19824         (func_modules_transitive_closure): Make it work when the 'Status' field
19825         consists of multiple words.
19826         (func_import): Store and restore the values of inc_cxx_tests,
19827         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19828         inc_all_tests in gnulib-comp.m4.
19829         (func_create_testdir): Set inc_all_tests to true.
19830         * doc/gnulib.texi (Extra tests modules): New section.
19831         Suggested by Jim Meyering.
19832
19833 2010-03-28  Bruno Haible  <bruno@clisp.org>
19834
19835         ansi-c++-opt: Allow turning off the C++ build by default.
19836         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19837         gl_CXX_CHOICE_DEFAULT_NO is defined.
19838         Requested by Eric Blake.
19839
19840 2010-03-28  Bruno Haible  <bruno@clisp.org>
19841
19842         unistd: Avoid #define replacements in C++ mode.
19843         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19844         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19845         setsockopt, shutdown, select): In C++, attach a warning to the function
19846         if possible, rather than #defining the symbol to a dysfunctional alias.
19847         Reported by John W. Eaton <jwe@gnu.org>.
19848
19849 2010-03-28  Bruno Haible  <bruno@clisp.org>
19850
19851         Fix link errors on mingw.
19852         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19853         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19854         $(LIBSOCKET).
19855         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19856         $(LIBSOCKET).
19857
19858 2010-03-28  Bruno Haible  <bruno@clisp.org>
19859             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19860
19861         lib-ignore: Determine different options for different compilers.
19862         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19863         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19864         Add comments.
19865         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19866         * NEWS: Mention the change.
19867
19868 2010-03-27  Bruno Haible  <bruno@clisp.org>
19869
19870         Remove unused GNULIB_XYZ macro definitions.
19871         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19872         * modules/fseek (configure.ac): Likewise.
19873         * modules/ioctl (configure.ac): Likewise.
19874         * modules/open (configure.ac): Likewise.
19875         * modules/stdlib-safer (configure.ac): Likewise.
19876
19877 2010-03-27  Bruno Haible  <bruno@clisp.org>
19878
19879         Add a remark about certain modules.
19880         * modules/malloc (Comment): New section.
19881         * modules/realloc (Comment): Likewise.
19882         * modules/sigpipe (Comment): Likewise.
19883
19884 2010-03-27  Bruno Haible  <bruno@clisp.org>
19885
19886         Resolve conflict between the two kinds of module indicators.
19887         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
19888         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
19889         * modules/canonicalize (configure.ac): Invoke
19890         gl_MODULE_INDICATOR_FOR_TESTS.
19891         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
19892         GNULIB_XYZ.
19893         * tests/test-dirent-c++.cc: Likewise.
19894         * tests/test-dirent-safer.c: Likewise.
19895         * tests/test-dup2.c: Likewise.
19896         * tests/test-fchdir.c: Likewise.
19897         * tests/test-fcntl-h-c++.cc: Likewise.
19898         * tests/test-getopt.c: Likewise.
19899         * tests/test-getopt.h: Likewise.
19900         * tests/test-langinfo-c++.cc: Likewise.
19901         * tests/test-locale-c++.cc: Likewise.
19902         * tests/test-math-c++.cc: Likewise.
19903         * tests/test-pty-c++.cc: Likewise.
19904         * tests/test-search-c++.cc: Likewise.
19905         * tests/test-signal-c++.cc: Likewise.
19906         * tests/test-spawn-c++.cc: Likewise.
19907         * tests/test-stdio-c++.cc: Likewise.
19908         * tests/test-stdlib-c++.cc: Likewise.
19909         * tests/test-string-c++.cc: Likewise.
19910         * tests/test-sys_ioctl-c++.cc: Likewise.
19911         * tests/test-sys_select-c++.cc: Likewise.
19912         * tests/test-sys_socket-c++.cc: Likewise.
19913         * tests/test-sys_stat-c++.cc: Likewise.
19914         * tests/test-sys_time-c++.cc: Likewise.
19915         * tests/test-time-c++.cc: Likewise.
19916         * tests/test-unistd-c++.cc: Likewise.
19917         * tests/test-wchar-c++.cc: Likewise.
19918         * tests/uninorm/test-u8-nfc.c: Likewise.
19919         * tests/uninorm/test-u8-nfd.c: Likewise.
19920         * tests/uninorm/test-u8-nfkc.c: Likewise.
19921         * tests/uninorm/test-u8-nfkd.c: Likewise.
19922         * tests/uninorm/test-u16-nfc.c: Likewise.
19923         * tests/uninorm/test-u16-nfd.c: Likewise.
19924         * tests/uninorm/test-u16-nfkc.c: Likewise.
19925         * tests/uninorm/test-u16-nfkd.c: Likewise.
19926         * tests/uninorm/test-u32-nfc.c: Likewise.
19927         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19928         * tests/uninorm/test-u32-nfd.c: Likewise.
19929         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19930         * tests/uninorm/test-u32-nfkc.c: Likewise.
19931         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19932         * tests/uninorm/test-u32-nfkd.c: Likewise.
19933         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19934         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19935
19936 2010-03-27  Bruno Haible  <bruno@clisp.org>
19937
19938         Distinguish two kinds of module indicators.
19939         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
19940         gl_MODULE_INDICATOR.
19941         (gl_MODULE_INDICATOR): New macro.
19942         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19943         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
19944         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19945         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19946         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19947         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19948         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19949         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19950         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19951         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19952         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19953         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19954         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19955         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19956         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19957         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19958         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19959         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19960         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19961         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19962         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19963         * modules/cloexec (configure.ac): Likewise.
19964         * modules/getopt-gnu (configure.ac): Likewise.
19965         * modules/uninorm/u8-normalize (configure.ac): Likewise.
19966         * modules/uninorm/u16-normalize (configure.ac): Likewise.
19967         * modules/uninorm/u32-normalize (configure.ac): Likewise.
19968         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
19969
19970 2010-03-27  Bruno Haible  <bruno@clisp.org>
19971
19972         New module description field 'Comment'.
19973         * gnulib-tool: New option --extract-comment.
19974         (func_usage): Document it.
19975         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
19976         (func_get_comment): New function.
19977         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
19978
19979 2010-03-27  Bruno Haible  <bruno@clisp.org>
19980
19981         Addendum to 2010-02-07 commit.
19982         * gnulib-tool (func_usage): Document --extract-applicability option.
19983
19984 2010-03-27  Bruno Haible  <bruno@clisp.org>
19985
19986         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
19987         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
19988         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
19989         rather than link errors.
19990
19991 2010-03-27  Bruno Haible  <bruno@clisp.org>
19992
19993         Avoid side effects from tests-related modules on the compilation of lib.
19994         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
19995         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
19996         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
19997         parameter. Emit into AM_CPPFLAGS a definition of the designated C
19998         macro.
19999         (func_import): Define a witness macro. Assign it a value that depends
20000         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
20001         tests-related modules.
20002         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
20003         Reported by Jim Meyering.
20004
20005 2010-03-27  Bruno Haible  <bruno@clisp.org>
20006
20007         Factorize common .m4 code.
20008         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
20009         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
20010         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
20011         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
20012         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20013         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
20014         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
20015         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20016         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20017         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20018         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
20019         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20020         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20021         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20022         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20023         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
20024         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20025         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20026         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20027         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
20028         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
20029         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20030         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20031         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20032         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20033         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20034         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
20035         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
20036         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
20037         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20038         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20039         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20040
20041 2010-03-27  Bruno Haible  <bruno@clisp.org>
20042
20043         Fix a compilation error on Cygwin with g++ >= 4.3.
20044         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
20045         if it is undefined or if we alias it to chmod.
20046         (lstat): Don't warn about the use of this function if it is undefined
20047         or if we alias it to stat.
20048         Reported by Simon Josefsson.
20049
20050 2010-03-27  Bruno Haible  <bruno@clisp.org>
20051
20052         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
20053         * modules/getlogin (configure.ac): Update.
20054
20055         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
20056         * modules/getlogin_r (configure.ac): Update.
20057
20058         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
20059         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
20060         * modules/inet_ntop (configure.ac): Update.
20061
20062         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
20063         * modules/inet_pton (configure.ac): Update.
20064
20065         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
20066         * modules/mbslen (configure.ac): Update.
20067
20068         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
20069         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
20070         * modules/forkpty (configure.ac): Update.
20071         * modules/openpty (configure.ac): Update.
20072
20073 2010-03-26  Simon Josefsson  <simon@josefsson.org>
20074
20075         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
20076         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
20077
20078 2010-03-25  Eric Blake  <eblake@redhat.com>
20079
20080         maint: use pragma consistently across replacement headers
20081         * lib/ctype.in.h (system_header): Hoist for consistent placement.
20082         * lib/dirent.in.h (system_header): Likewise.
20083         * lib/errno.in.h (system_header): Likewise.
20084         * lib/float.in.h (system_header): Likewise.
20085         * lib/getopt.in.h (system_header): Likewise.
20086         * lib/iconv.in.h (system_header): Likewise.
20087         * lib/inttypes.in.h (system_header): Likewise.
20088         * lib/langinfo.in.h (system_header): Likewise.
20089         * lib/locale.in.h (system_header): Likewise.
20090         * lib/math.in.h (system_header): Likewise.
20091         * lib/netdb.in.h (system_header): Likewise.
20092         * lib/netinet_in.in.h (system_header): Likewise.
20093         * lib/pty.in.h (system_header): Likewise.
20094         * lib/sched.in.h (system_header): Likewise.
20095         * lib/se-selinux.in.h (system_header): Likewise.
20096         * lib/search.in.h (system_header): Likewise.
20097         * lib/spawn.in.h (system_header): Likewise.
20098         * lib/stdarg.in.h (system_header): Likewise.
20099         * lib/stdint.in.h (system_header): Likewise.
20100         * lib/string.in.h (system_header): Likewise.
20101         * lib/strings.in.h (system_header): Likewise.
20102         * lib/sys_file.in.h (system_header): Likewise.
20103         * lib/sys_ioctl.in.h (system_header): Likewise.
20104         * lib/sys_socket.in.h (system_header): Likewise.
20105         * lib/sys_times.in.h (system_header): Likewise.
20106         * lib/sys_utsname.in.h (system_header): Likewise.
20107         * lib/sys_wait.in.h (system_header): Likewise.
20108         * lib/sysexits.in.h (system_header): Likewise.
20109         * lib/unistd.in.h (system_header): Likewise.
20110         * lib/wctype.in.h (system_header): Likewise.
20111
20112         arpa/inet: fix mingw compilation warning
20113         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20114         Reported by Matthew Bolte.
20115
20116 2010-03-25  Bruno Haible  <bruno@clisp.org>
20117
20118         Avoid collision between gnulib wrapper and libintl wrapper.
20119         * lib/printf.c (printf): Don't define if a printf wrapper is already
20120         defined in intl/printf.c.
20121         Reported by Michel Boaventura <michel@michelboaventura.com>.
20122
20123 2010-03-25  Bruno Haible  <bruno@clisp.org>
20124
20125         Use ANSI C.
20126         * lib/readutmp.h (getutent): Provide ANSI C prototype.
20127
20128 2010-03-25  Bruno Haible  <bruno@clisp.org>
20129
20130         Minor formatting changes.
20131         * lib/acosl.c: Insert space before function argument list.
20132         * lib/argz.c: Likewise.
20133         * lib/asinl.c: Likewise.
20134         * lib/expl.c: Likewise.
20135         * lib/gen-uni-tables.c: Likewise.
20136         * lib/gettext.h: Likewise.
20137         * lib/glthread/lock.h: Likewise.
20138         * lib/tanl.c: Likewise.
20139         * lib/uniname/uniname.c: Likewise.
20140         * tests/test-idpriv-drop.c: Likewise.
20141         * tests/test-idpriv-droptemp.c: Likewise.
20142         * tests/test-lock.c: Likewise.
20143         * tests/test-tls.c: Likewise.
20144         * lib/argp-help.c: Insert space before function-like macro argument
20145         list.
20146         * lib/memcmp.c: Likewise.
20147         * tests/test-base64.c: Likewise.
20148         * lib/localename.c: Insert space before sizeof's argument list.
20149         * lib/safe-alloc.h: Likewise.
20150         * lib/file-set.h: Insert space before macro argument list.
20151         * tests/test-argp.c: Likewise.
20152         * lib/argp-namefrob.h: Insert space before function parameter list.
20153         * lib/getaddrinfo.c: Likewise.
20154         * lib/netdb.in.h: Likewise.
20155         * lib/parse-duration.h: Likewise.
20156         * lib/parse-duration.c: Likewise.
20157         * lib/poll.c: Likewise.
20158         * lib/select.c: Likewise.
20159         * lib/trim.h: Likewise.
20160         * tests/test-usleep.c: Likewise.
20161         * lib/ldexpl.c: Insert space before function parameter list and before
20162         function argument list.
20163         * lib/logl.c: Likewise.
20164         * lib/sqrtl.c: Likewise.
20165         * lib/trim.c: Likewise.
20166         * lib/cosl.c: Use GNU style indentation. Insert space before function
20167         argument list.
20168         * lib/sinl.c: Likewise.
20169         * lib/tsearch.c: Insert space after 'for'.
20170         Reported by Jim Meyering.
20171
20172 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
20173
20174         * maint.mk (sc_Wundef_boolean): Check for the presence of the
20175         config header before grepping, as it's not present before
20176         autoreconf/configure are run.  Reported by Simon Josefsson.
20177
20178 2010-03-23  Bruno Haible  <bruno@clisp.org>
20179
20180         pt_chown: Make it work with automake < 1.11.
20181         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
20182         Reported by Simon Josefsson.
20183
20184 2010-03-23  Bruno Haible  <bruno@clisp.org>
20185
20186         pt_chown: Don't depend on GPLed modules.
20187         * lib/pt_chown.c: Don't include idpriv.h.
20188         (main): Don't drop privileges.
20189         * modules/pt_chown (Depends-on): Remove idpriv-drop.
20190         Reported by Simon Josefsson.
20191
20192 2010-03-24  Simon Josefsson  <simon@josefsson.org>
20193
20194         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
20195         suggestions from karl@freefriends.org (Karl Berry).
20196
20197 2010-03-22  Eric Blake  <eblake@redhat.com>
20198
20199         gethostname: further tweaks
20200         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
20201         are overriding gethostname.
20202         Suggested by Bruno Haible.
20203
20204 2010-03-21  Bruno Haible  <bruno@clisp.org>
20205
20206         Fix comments.
20207         * lib/forkpty.c (rpl_forkpty): Fix comment.
20208         * lib/openpty.c (rpl_openpty): Likewise.
20209         Reported by Eric Blake.
20210
20211 2010-03-22  Eric Blake  <eblake@redhat.com>
20212
20213         gethostname: fix build on mingw
20214         * lib/unistd.in.h (includes): Work around fact that mingw
20215         <winsock2.h> re-includes <unistd.h>, by avoiding any
20216         redeclarations if we are being included by <winsock2.h>.
20217         Reported by Matthias Bolte.
20218
20219 2010-03-21  Bruno Haible  <bruno@clisp.org>
20220
20221         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20222         * lib/forkpty.c (forkpty): New replacement function, from glibc with
20223         modifications.
20224         * lib/pty.in.h (forkpty): Update declaration. Add comments.
20225         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
20226         provide the replacement.
20227         * modules/forkpty (Depends-on): Add openpty, login_tty.
20228         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
20229         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
20230         * doc/glibc-functions/forkpty.texi: More supported platforms.
20231         * config/srclist.txt: Add forkpty.c (commented).
20232
20233 2010-03-21  Bruno Haible  <bruno@clisp.org>
20234
20235         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
20236         (Makefile.am): Verify that PTY_LIB is defined.
20237
20238         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
20239
20240 2010-03-21  Bruno Haible  <bruno@clisp.org>
20241
20242         Tests for module 'login_tty'.
20243         * modules/login_tty-tests: New file.
20244         * tests/test-login_tty.c: New file.
20245
20246         New module 'login_tty'.
20247         * lib/login_tty.c: New file.
20248         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
20249         * modules/login_tty: New file.
20250         * doc/glibc-functions/login_tty.texi: Mention the new module.
20251
20252 2010-03-21  Bruno Haible  <bruno@clisp.org>
20253
20254         login_tty: Documentation.
20255         * doc/glibc-functions/login_tty.texi: New file.
20256         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
20257
20258 2010-03-21  Bruno Haible  <bruno@clisp.org>
20259
20260         pty: Consistent macro naming.
20261         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
20262         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
20263         * modules/pty (configure.ac): Update.
20264
20265 2010-03-21  Bruno Haible  <bruno@clisp.org>
20266
20267         Tests for openpty: Make stricter.
20268         * tests/test-openpty.c (main): Add test of canonical processing and
20269         erase.
20270         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
20271
20272         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20273         * lib/openpty.c (openpty): New replacement function.
20274         * lib/pty.in.h: Include <termios.h>.
20275         (openpty): Update declaration. Add comments.
20276         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
20277         is not declared, arrange to provide the replacement. Check for _getpty
20278         and posix_openpt.
20279         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
20280         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
20281         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
20282         * modules/pty-tests (test_pty_c___LDADD): New variable.
20283         * doc/glibc-functions/openpty.texi: More supported platforms.
20284
20285 2010-03-21  Bruno Haible  <bruno@clisp.org>
20286
20287         setenv: Tweaks.
20288         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20289         the test program.
20290         * doc/posix-functions/setenv.texi: Update platforms list.
20291
20292 2010-03-21  Bruno Haible  <bruno@clisp.org>
20293
20294         New module 'unlockpt'.
20295         * lib/unlockpt.c: New file, from glibc with modifications.
20296         * m4/unlockpt.m4: New file.
20297         * modules/unlockpt: New file.
20298         * lib/stdlib.in.h (unlockpt): New declaration.
20299         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20300         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20301         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20302         HAVE_UNLOCKPT.
20303         * doc/posix-functions/unlockpt.texi: Mention the new module.
20304         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20305         * config/srclist.txt: Add unlockpt.c (commented).
20306
20307 2010-03-21  Jim Meyering  <meyering@redhat.com>
20308
20309         maint.mk: prohibit inclusion of "intprops.h" without use
20310         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20311
20312 2010-03-21  Bruno Haible  <bruno@clisp.org>
20313
20314         New module 'grantpt'.
20315         * lib/grantpt.c: New file, from glibc with modifications.
20316         * m4/grantpt.m4: New file.
20317         * modules/grantpt: New file.
20318         * lib/stdlib.in.h (grantpt): New declaration.
20319         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20320         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20321         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20322         HAVE_GRANTPT.
20323         * doc/posix-functions/grantpt.texi: Mention the new module.
20324         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20325         * config/srclist.txt: Add grantpt.c (commented).
20326
20327 2010-03-21  Bruno Haible  <bruno@clisp.org>
20328
20329         New module 'pt_chown'.
20330         * lib/pt_chown.c: New file, from glibc with modifications.
20331         * lib/pty-private.h: New file, from glibc with modifications.
20332         * modules/pt_chown: New file.
20333         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20334
20335 2010-03-21  Bruno Haible  <bruno@clisp.org>
20336
20337         Tests for module 'ptsname'.
20338         * modules/ptsname-tests: New file.
20339         * tests/test-ptsname.c: New file.
20340
20341         New module 'ptsname'.
20342         * lib/ptsname.c: New file, from glibc with modifications.
20343         * m4/ptsname.m4: New file.
20344         * modules/ptsname: New file.
20345         * lib/stdlib.in.h (ptsname): New declaration.
20346         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20347         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20348         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20349         HAVE_PTSNAME.
20350         * doc/posix-functions/ptsname.texi: Mention the new module.
20351         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20352         * config/srclist.txt: Add ptsname.c (commented).
20353
20354 2010-03-21  Bruno Haible  <bruno@clisp.org>
20355
20356         Tests for module 'ttyname_r'.
20357         * modules/ttyname_r-tests: New file.
20358         * tests/test-ttyname_r.c: New file.
20359
20360         New module 'ttyname_r'.
20361         * lib/ttyname_r.c: New file.
20362         * m4/ttyname_r.m4: New file.
20363         * modules/ttyname_r: New file.
20364         * lib/unistd.in.h (ttyname_r): New declaration.
20365         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20366         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20367         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20368         HAVE_TTYNAME_R.
20369         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20370         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20371
20372 2010-03-20  Bruno Haible  <bruno@clisp.org>
20373
20374         signal: Undefine macro definitions in C++ mode.
20375         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20376         sigfillset): Undefine macro definitions from the system header in C++
20377         mode.
20378         Reported by John W. Eaton <jwe@gnu.org>.
20379
20380 2010-03-20  Bruno Haible  <bruno@clisp.org>
20381
20382         Ensure no #include statements inside extern "C" { ... }.
20383         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20384         contain #include statements.
20385         * lib/time.in.h: Likewise.
20386
20387 2010-03-20  Bruno Haible  <bruno@clisp.org>
20388
20389         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20390         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20391         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20392         Reported by John W. Eaton <jwe@gnu.org>.
20393
20394 2010-03-20  Bruno Haible  <bruno@clisp.org>
20395
20396         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20397         Reported by Jim Meyering.
20398
20399 2010-03-20  Bruno Haible  <bruno@clisp.org>
20400
20401         pipe: Set errno upon failure.
20402         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20403         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20404         errno value in error message.
20405
20406 2010-03-20  Bruno Haible  <bruno@clisp.org>
20407             Jim Meyering  <meyering@redhat.com>
20408
20409         lchown: Avoid "unused variable" warning.
20410         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20411
20412 2010-03-20  Bruno Haible  <bruno@clisp.org>
20413
20414         Work around unlink() bug on MacOS X 10.5.6.
20415         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20416         attempting to unlink a parent directory.
20417         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20418         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20419         activate for the replacement function.
20420         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20421
20422 2010-03-20  Bruno Haible  <bruno@clisp.org>
20423
20424         Fix link errors on Solaris 8.
20425         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20426         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20427
20428 2010-03-19  Jim Meyering  <meyering@redhat.com>
20429
20430         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20431         The _LIBC implementation of build_range_exp correctly honors the
20432         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20433         However, the non-_LIBC implementation would ignore that syntax-bit
20434         flag and return REG_ERANGE unconditionally.
20435         This change makes it honor that flag.
20436         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20437         Make two pointer parameters "const".
20438         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20439         (parse_bracket_exp): Update caller.
20440
20441         regex.m4: correct the reversed range endpoint ([b-a]) test
20442         * m4/regex.m4: When requiring that [b-a] evoke failure,
20443         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20444         test pass once again for x86-based systems.
20445
20446 2010-03-19  Bruno Haible  <bruno@clisp.org>
20447
20448         scandir: Fix link error on Solaris 8.
20449         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20450         macros.
20451
20452 2010-03-19  Bruno Haible  <bruno@clisp.org>
20453
20454         getusershell: Fix documentation.
20455         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20456         module.
20457         * doc/glibc-functions/setusershell.texi: Likewise.
20458
20459         getusershell: Provide declaration, missing on Solaris 9.
20460         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20461         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20462         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20463         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20465         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20466         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20467         HAVE_GETUSERSHELL.
20468         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20469
20470 2010-03-19  Bruno Haible  <bruno@clisp.org>
20471
20472         wctype: Provide iswblank function.
20473         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20474         exists and is fine.
20475         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20476         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20477         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20478         * doc/posix-functions/iswblank.texi: Update.
20479
20480 2010-03-19  Bruno Haible  <bruno@clisp.org>
20481
20482         Tests of module 'pty' in C++ mode.
20483         * modules/pty-tests: New file.
20484         * tests/test-pty-c++.cc: New file.
20485         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20486
20487 2010-03-19  Eric Blake  <eblake@redhat.com>
20488
20489         logb: fix documentation
20490         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20491         1.5 declaration bug.
20492
20493         forkpty, openpty: prefer glibc's const-safe prototype
20494         * lib/forkpty.c (rpl_forkpty): New file.
20495         * lib/openpty.c (rpl_openpty): Likewise.
20496         * modules/forkpty (Files): Distribute it.
20497         * modules/openpty (Files): Likewise.
20498         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20499         check...
20500         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20501         replacement for for non-const BSD signature.
20502         * modules/pty (Makefile.am): Substitute witnesses.
20503         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20504         * tests/test-forkpty.c: Update signature check.
20505         * tests/test-openpty.c: Likewise.
20506         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20507         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20508
20509         forkpty, openpty: split functions into new modules
20510         * modules/pty (Makefile.am): Substitute new witnesses.
20511         (Libraries): Move library detection...
20512         * modules/forkpty: ...into new module.
20513         * modules/openpty: Another new module.
20514         * modules/pty-tests: Rename and split...
20515         * modules/forkpty-tests: ...to this...
20516         * modules/openpty-tests: ...and this.
20517         * tests/test-pty.c: Rename and split...
20518         * tests/test-forkpty.c: ...to this...
20519         * tests/test-openpty.c: ...and this.
20520         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20521         (gl_PTY): Split library searching...
20522         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20523         (gl_FORKPTY, gl_OPENPTY): New macros.
20524         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20525         * NEWS: Mention the split.
20526         * MODULES.html.sh (Misc): Document the modules.
20527         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20528         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20529
20530         pty: improve replacement header
20531         * lib/pty.in.h: New file.
20532         * modules/pty (Files): Ship it.
20533         (Makefile.am): Always build replacement.
20534         * m4/pty.m4: Rename...
20535         * m4/pty_h.m4: ...to this.
20536         (gl_PTY): Modernize setting of witness macros; update check of
20537         forkpty to take proper advantage of cache.
20538         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20539
20540         getopt: avoid compiler warning
20541         * lib/getopt.c (attribute_hidden): Remove unused macro.
20542
20543 2010-03-18  Bruno Haible  <bruno@clisp.org>
20544
20545         Fix link errors on Solaris 8.
20546         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20547         * modules/search-tests (test_search_c___LDADD): Likewise.
20548         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20549         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20550         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20551         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20552         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20553         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20554         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20555
20556 2010-03-18  Bruno Haible  <bruno@clisp.org>
20557
20558         Fix bug introduced on 2010-03-14.
20559         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20560         (gl_SPAWN_H): Require it.
20561         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20562         Reported by Simon Josefsson.
20563
20564 2010-03-18  Bruno Haible  <bruno@clisp.org>
20565
20566         Fix typo introduced on 2009-12-31.
20567         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20568         posix_spawn_file_actions_adddup2.
20569
20570 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20571         and Eric Blake  <eblake@redhat.com>
20572
20573         test-vc-list-files-git: make more robust
20574         * tests/test-vc-list-files-git.sh: Unset problematic environment
20575         variables.  Chain commands together.
20576
20577 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20578
20579         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20580         `AC_CHECK_DECL' invocation.
20581
20582 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20583
20584         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20585         appears before executable statements. Suggested by Petr Sumbera
20586         <Petr.Sumbera@Sun.COM>.
20587
20588 2010-03-14  Bruno Haible  <bruno@clisp.org>
20589
20590         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20591         portability problems. Instead use a simpler test.
20592         (main): Check that invalid arguments are rejected only on Linux.
20593
20594 2010-03-14  Bruno Haible  <bruno@clisp.org>
20595
20596         Fix bug introduced on 2009-12-31.
20597         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20598         gl_PREREQ_SYS_H_WINSOCK2 always.
20599         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20600         SYS_SOCKET_H variable.
20601         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20602         Update comments.
20603         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20604         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20605         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20606         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20607         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20608
20609 2010-03-14  Bruno Haible  <bruno@clisp.org>
20610
20611         Fix values returned by sinl, cosl.
20612         * lib/trigl.h: Add specification comments.
20613         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20614         that combines the values from the precomputed table with the values of
20615         the Chebyshev polynomials.
20616
20617 2010-03-14  Bruno Haible  <bruno@clisp.org>
20618
20619         Fix compilation error when modules 'posix_spawn[p]' are not used.
20620         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20621         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20622
20623 2010-03-14  Bruno Haible  <bruno@clisp.org>
20624
20625         Fix compilation error on mingw when module 'time_r' is not used.
20626         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20627         is 1.
20628         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20629         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20630         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20631         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20632
20633 2010-03-14  Bruno Haible  <bruno@clisp.org>
20634
20635         Fix compilation error with Sun C.
20636         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20637         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20638         instead of GCC specific ULONG_LONG_MAX.
20639         * lib/xstrtoll.c: Likewise.
20640         * lib/xstrtoull.c: Likewise.
20641
20642 2010-03-13  Bruno Haible  <bruno@clisp.org>
20643
20644         Allow the user to disable C++ code and tests.
20645         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20646         (gl_PROG_ANSI_CXX): Require it.
20647
20648 2010-03-13  Bruno Haible  <bruno@clisp.org>
20649
20650         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20651         cases.
20652
20653 2010-03-13  Bruno Haible  <bruno@clisp.org>
20654
20655         Test that gnulib does not break the standard C++ headers.
20656         * tests/test-locale-c++2.cc: New file.
20657         * modules/locale-tests (Files): Add it.
20658         (Makefile.am): Compile it for test-locale-c++.
20659         * tests/test-math-c++2.cc: New file.
20660         * modules/math-tests (Files): Add it.
20661         (Makefile.am): Compile it for test-math-c++.
20662         * tests/test-signal-c++2.cc: New file.
20663         * modules/signal-tests (Files): Add it.
20664         (Makefile.am): Compile it for test-signal-c++.
20665         * tests/test-stdio-c++2.cc: New file.
20666         * modules/stdio-tests (Files): Add it.
20667         (Makefile.am): Compile it for test-stdio-c++.
20668         * tests/test-stdlib-c++2.cc: New file.
20669         * modules/stdlib-tests (Files): Add it.
20670         (Makefile.am): Compile it for test-stdlib-c++.
20671         * tests/test-string-c++2.cc: New file.
20672         * modules/string-tests (Files): Add it.
20673         (Makefile.am): Compile it for test-string-c++.
20674         * tests/test-time-c++2.cc: New file.
20675         * modules/time-tests (Files): Add it.
20676         (Makefile.am): Compile it for test-time-c++.
20677         Reported by John W. Eaton <jwe@gnu.org>.
20678
20679 2010-03-13  Bruno Haible  <bruno@clisp.org>
20680
20681         * gnulib-tool (func_usage): Clarify which options are available for
20682         --create-testdir and --create-megatestdir.
20683
20684 2010-03-13  Bruno Haible  <bruno@clisp.org>
20685
20686         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20687         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20688         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20689         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20690         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20691         when appropriate.
20692         Reported by Jim Meyering.
20693
20694 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20695
20696         * gnulib-tool (func_import): Explain origin of code.
20697
20698 2010-03-12  Bruno Haible  <bruno@clisp.org>
20699
20700         Fix problem with automake's definition of CXXLINK.
20701         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20702         Reported by Simon Josefsson and Ludovic Courtès.
20703
20704 2010-03-12  Bruno Haible  <bruno@clisp.org>
20705
20706         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20707         stable releases.
20708
20709 2010-03-11  Bruno Haible  <bruno@clisp.org>
20710
20711         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20712         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20713         whether the system provides one variant or multiple variants of the
20714         function.
20715         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20716         C++ compilers.
20717         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20718         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20719         Reported by Jim Meyering.
20720
20721 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20722
20723         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20724
20725 2010-03-08  Bruno Haible  <bruno@clisp.org>
20726
20727         gnulib-tool: Add support for --libtool in --create-testdir.
20728         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20729         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20730
20731 2010-03-08  Eric Blake  <eblake@redhat.com>
20732
20733         gnulib-tool.texi: mention possibility of git submodule
20734         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20735         submodules.
20736         * doc/.gitignore: Ignore another generated file.
20737
20738 2010-03-08  Karl Berry  <karl@gnu.org>
20739
20740         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20741         of committing gnulib files while skipping others.
20742
20743 2010-03-07  Bruno Haible  <bruno@clisp.org>
20744
20745         Tests of module 'wctype' in C++ mode.
20746         * tests/test-wctype-c++.cc: New file.
20747         * modules/wctype-tests (Files): Add it and tests/signature.h.
20748         (Depends-on): Add ansi-c++-opt.
20749         (Makefile.am): Arrange to compile and run test-wctype-c++.
20750
20751         Tests of module 'wchar' in C++ mode.
20752         * tests/test-wchar-c++.cc: New file.
20753         * modules/wchar-tests (Files): Add it and tests/signature.h.
20754         (Depends-on): Add ansi-c++-opt.
20755         (Makefile.am): Arrange to compile and run test-wchar-c++.
20756         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20757         gl_MODULE_INDICATOR.
20758
20759         Tests of module 'unistd' in C++ mode.
20760         * tests/test-unistd-c++.cc: New file.
20761         * modules/unistd-tests (Files): Add it and tests/signature.h.
20762         (Depends-on): Add ansi-c++-opt.
20763         (Makefile.am): Arrange to compile and run test-unistd-c++.
20764         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20765         gl_MODULE_INDICATOR.
20766
20767         Tests of module 'time' in C++ mode.
20768         * tests/test-time-c++.cc: New file.
20769         * modules/time-tests (Files): Add it and tests/signature.h.
20770         (Depends-on): Add ansi-c++-opt.
20771         (Makefile.am): Arrange to compile and run test-time-c++.
20772         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20773
20774         Tests of module 'sys_time' in C++ mode.
20775         * tests/test-sys_time-c++.cc: New file.
20776         * modules/sys_time-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_time-c++.
20779         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20780         gl_MODULE_INDICATOR.
20781
20782         Tests of module 'sys_stat' in C++ mode.
20783         * tests/test-sys_stat-c++.cc: New file.
20784         * modules/sys_stat-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_stat-c++.
20787         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20788         gl_MODULE_INDICATOR.
20789
20790         Tests of module 'sys_socket' in C++ mode.
20791         * tests/test-sys_socket-c++.cc: New file.
20792         * modules/sys_socket-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_socket-c++.
20795         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20796         gl_MODULE_INDICATOR.
20797
20798         Tests of module 'sys_select' in C++ mode.
20799         * tests/test-sys_select-c++.cc: New file.
20800         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20801         (Depends-on): Add ansi-c++-opt.
20802         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20803         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20804         gl_MODULE_INDICATOR.
20805
20806         Tests of module 'sys_ioctl' in C++ mode.
20807         * tests/test-sys_ioctl-c++.cc: New file.
20808         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20809         (Depends-on): Add ansi-c++-opt.
20810         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20811         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20812         gl_MODULE_INDICATOR.
20813
20814         Tests of module 'string' in C++ mode.
20815         * tests/test-string-c++.cc: New file.
20816         * modules/string-tests (Files): Add it and tests/signature.h.
20817         (Depends-on): Add ansi-c++-opt.
20818         (Makefile.am): Arrange to compile and run test-string-c++.
20819         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20820         gl_MODULE_INDICATOR.
20821
20822         Tests of module 'stdlib' in C++ mode.
20823         * tests/test-stdlib-c++.cc: New file.
20824         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20825         (Depends-on): Add ansi-c++-opt.
20826         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20827         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20828         gl_MODULE_INDICATOR.
20829
20830         Tests of module 'stdio' in C++ mode.
20831         * tests/test-stdio-c++.cc: New file.
20832         * modules/stdio-tests (Files): Add it and tests/signature.h.
20833         (Depends-on): Add ansi-c++-opt.
20834         (Makefile.am): Arrange to compile and run test-stdio-c++.
20835         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20836         gl_MODULE_INDICATOR.
20837
20838         Tests of module 'spawn' in C++ mode.
20839         * tests/test-spawn-c++.cc: New file.
20840         * modules/spawn-tests (Files): Add it and tests/signature.h.
20841         (Depends-on): Add ansi-c++-opt.
20842         (Makefile.am): Arrange to compile and run test-spawn-c++.
20843         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20844         gl_MODULE_INDICATOR.
20845
20846         Tests of module 'signal' in C++ mode.
20847         * tests/test-signal-c++.cc: New file.
20848         * modules/signal-tests (Files): Add it and tests/signature.h.
20849         (Depends-on): Add ansi-c++-opt.
20850         (Makefile.am): Arrange to compile and run test-signal-c++.
20851         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20852         gl_MODULE_INDICATOR.
20853
20854         Tests of module 'search' in C++ mode.
20855         * tests/test-search-c++.cc: New file.
20856         * modules/search-tests (Files): Add it and tests/signature.h.
20857         (Depends-on): Add ansi-c++-opt.
20858         (Makefile.am): Arrange to compile and run test-search-c++.
20859         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20860         gl_MODULE_INDICATOR.
20861
20862         Tests of module 'math' in C++ mode.
20863         * tests/test-math-c++.cc: New file.
20864         * modules/math-tests (Files): Add it and tests/signature.h.
20865         (Depends-on): Add ansi-c++-opt.
20866         (Makefile.am): Arrange to compile and run test-math-c++.
20867         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20868
20869         Tests of module 'locale' in C++ mode.
20870         * tests/test-locale-c++.cc: New file.
20871         * modules/locale-tests (Files): Add it and tests/signature.h.
20872         (Depends-on): Add ansi-c++-opt.
20873         (Makefile.am): Arrange to compile and run test-locale-c++.
20874         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
20875         gl_MODULE_INDICATOR.
20876
20877         Tests of module 'langinfo' in C++ mode.
20878         * tests/test-langinfo-c++.cc: New file.
20879         * modules/langinfo-tests (Files): Add it and tests/signature.h.
20880         (Depends-on): Add ansi-c++-opt.
20881         (Makefile.am): Arrange to compile and run test-langinfo-c++.
20882         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
20883         gl_MODULE_INDICATOR.
20884
20885         Tests of module 'iconv-h' in C++ mode.
20886         * tests/test-iconv-h-c++.cc: New file.
20887         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
20888         (Depends-on): Add ansi-c++-opt.
20889         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
20890
20891         Tests of module 'glob' in C++ mode.
20892         * tests/test-glob-c++.cc: New file.
20893         * modules/glob-tests (Files): Add it.
20894         (Depends-on): Add ansi-c++-opt.
20895         (Makefile.am): Arrange to compile and run test-glob-c++.
20896
20897         Tests of module 'fcntl-h' in C++ mode.
20898         * tests/test-fcntl-h-c++.cc: New file.
20899         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
20900         (Depends-on): Add ansi-c++-opt.
20901         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
20902         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
20903         gl_MODULE_INDICATOR.
20904
20905         Tests of module 'dirent' in C++ mode.
20906         * tests/test-dirent-c++.cc: New file.
20907         * modules/dirent-tests (Files): Add it and tests/signature.h.
20908         (Depends-on): Add ansi-c++-opt.
20909         (Makefile.am): Arrange to compile and run test-dirent-c++.
20910         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20911         gl_MODULE_INDICATOR.
20912
20913         New module 'ansi-c++-opt'.
20914         * modules/ansi-c++-opt: New file.
20915         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
20916
20917         Document C++ namespace mode.
20918         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
20919
20920         wctype: Avoid #define replacements in C++ mode.
20921         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
20922         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
20923         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
20924         In C++, define a namespaced alias symbol.
20925         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
20926         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
20927         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
20928         rule.
20929
20930         wchar: Avoid #define replacements in C++ mode.
20931         * lib/wchar.in.h: Include c++defs.h.
20932         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
20933         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
20934         symbol.
20935         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
20936         * modules/wchar (Depends-on): Add c++defs.
20937         (Makefile.am): Update wchar.h rule.
20938
20939         unistd: Avoid #define replacements in C++ mode.
20940         * lib/unistd.in.h: Include c++defs.h.
20941         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
20942         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
20943         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
20944         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
20945         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
20946         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
20947         symbol.
20948         (environ): Update.
20949         * modules/unistd (Depends-on): Add c++defs.
20950         (Makefile.am): Update unistd.h rule.
20951
20952         time: Avoid #define replacements in C++ mode.
20953         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
20954         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
20955         define a namespaced alias symbol.
20956         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
20957         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
20958         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
20959         * modules/time (Depends-on): Add c++defs, warn-on-use.
20960         (Makefile.am): Update time.h rule.
20961         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20962         * modules/nanosleep (configure.ac): Likewise.
20963         * modules/strptime (configure.ac): Likewise.
20964         * modules/timegm (configure.ac): Likewise.
20965
20966         sys_time: Avoid #define replacements in C++ mode.
20967         * lib/sys_time.in.h: Include c++defs.h.
20968         (gettimeofday): In C++, define a namespaced alias symbol.
20969         * modules/sys_time (Depends-on): Add c++defs.
20970         (Makefile.am): Update sys/time.h rule.
20971
20972         sys_stat: Avoid #define replacements in C++ mode.
20973         * lib/sys_stat.in.h: Include c++defs.h.
20974         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
20975         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
20976         namespaced alias symbol.
20977         In C++, define a namespaced alias symbol.
20978         * modules/sys_stat (Depends-on): Add c++defs.
20979         (Makefile.am): Update sys/stat.h rule.
20980
20981         sys_socket: Avoid #define replacements in C++ mode.
20982         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20983         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
20984         definitions also when the system has a <sys/socket.h>.
20985         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20986         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
20987         In C++, define a namespaced alias symbol.
20988         * modules/sys_socket (Depends-on): Add c++defs.
20989         (Makefile.am): Update sys/socket.h rule.
20990
20991         sys_select: Avoid #define replacements in C++ mode.
20992         * lib/sys_select.in.h: Include c++defs.h. Enable the function
20993         definitions also when the system has a <sys/select.h>.
20994         (select): In C++, define a namespaced alias symbol.
20995         * modules/sys_select (Depends-on): Add c++defs.
20996         (Makefile.am): Update sys/select.h rule.
20997
20998         sys_ioctl: Avoid #define replacements in C++ mode.
20999         * lib/sys_ioctl.in.h: Include c++defs.h.
21000         (ioctl): In C++, define a namespaced alias symbol.
21001         * modules/sys_ioctl (Depends-on): Add c++defs.
21002         (Makefile.am): Update sys/ioctl.h rule.
21003
21004         string: Avoid #define replacements in C++ mode.
21005         * lib/string.in.h: Include c++defs.h.
21006         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
21007         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21008         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21009         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
21010         strsignal, strverscmp): In C++, define a namespaced alias symbol.
21011         * modules/string (Depends-on): Add c++defs.
21012         (Makefile.am): Update string.h rule.
21013
21014         stdlib: Avoid #define replacements in C++ mode.
21015         * lib/stdlib.in.h: Include c++defs.h.
21016         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
21017         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
21018         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
21019         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
21020         symbol.
21021         * modules/stdlib (Depends-on): Add c++defs.
21022         (Makefile.am): Update stdlib.h rule.
21023
21024         stdio: Avoid #define replacements in C++ mode.
21025         * lib/stdio.in.h: Include c++defs.h.
21026         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
21027         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
21028         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
21029         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
21030         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
21031         namespaced alias symbol.
21032         * modules/stdio (Depends-on): Add c++defs.
21033         (Makefile.am): Update stdio.h rule.
21034
21035         spawn: Avoid #define replacements in C++ mode.
21036         * lib/spawn.in.h: Include c++defs.h.
21037         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21038         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21039         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21040         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21041         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21042         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21043         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21044         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21045         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21046         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21047         In C++, define a namespaced alias symbol.
21048         * modules/spawn (Depends-on): Add c++defs.
21049         (Makefile.am): Update spawn.h rule.
21050
21051         signal: Avoid #define replacements in C++ mode.
21052         * lib/signal.in.h: Include c++defs.h.
21053         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21054         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
21055         namespaced alias symbol.
21056         * modules/signal (Depends-on): Add c++defs.
21057         (Makefile.am): Update signal.h rule.
21058
21059         search: Avoid #define replacements in C++ mode.
21060         * lib/search.in.h: Include c++defs.h.
21061         (_gl_search_compar_fn, _gl_search_action_fn): New types.
21062         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
21063         symbol.
21064         * modules/search (Depends-on): Add c++defs.
21065         (Makefile.am): Update search.h rule.
21066
21067         math: Avoid #define replacements in C++ mode.
21068         * lib/math.in.h: Include c++defs.h.
21069         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
21070         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
21071         trunc, truncl): In C++, define a namespaced alias symbol.
21072         * modules/math (Depends-on): Add c++defs.
21073         (Makefile.am): Update math.h rule.
21074
21075         locale: Avoid #define replacements in C++ mode.
21076         * lib/locale.in.h: Include c++defs.h.
21077         (duplocale): In C++, define a namespaced alias symbol.
21078         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
21079         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
21080         * modules/locale (Depends-on): Add c++defs.
21081         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
21082
21083         langinfo: Avoid #define replacements in C++ mode.
21084         * lib/langinfo.in.h: Include c++defs.h.
21085         (nl_langinfo): In C++, define a namespaced alias symbol.
21086         * modules/langinfo (Depends-on): Add c++defs.
21087         (Makefile.am): Update langinfo.h rule.
21088
21089         iconv-h: Avoid #define replacements in C++ mode.
21090         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
21091         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
21092         symbol.
21093         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21094         whenever iconv is present.
21095         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
21096         (Makefile.am): Update iconv.h rule.
21097
21098         glob: Avoid #define replacements in C++ mode.
21099         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
21100         (_gl_glob_errfunc_fn): New type.
21101         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
21102         symbol.
21103         * modules/glob (Depends-on): Add c++defs, warn-on-use.
21104         (Makefile.am): Update glob.h rule.
21105
21106         fcntl-h: Avoid #define replacements in C++ mode.
21107         * lib/fcntl.in.h: Include c++defs.h.
21108         (fcntl, open, openat): In C++, define a namespaced alias symbol.
21109         * modules/fcntl-h (Depends-on): Add c++defs.
21110         (Makefile.am): Update fcntl.h rule.
21111
21112         dirent: Avoid #define replacements in C++ mode.
21113         * lib/dirent.in.h: Include c++defs.h.
21114         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21115         namespaced alias symbol.
21116         (dirfd): Update declaration.
21117         * modules/dirent (Depends-on): Add c++defs.
21118         (Makefile.am): Update dirent.h rule.
21119
21120         ctype: Make it usable in C++ code.
21121         * lib/ctype.in.h: Include c++defs.h.
21122         (isblank): Declare as extern "C".
21123         * modules/ctype (Depends-on): Add c++defs.
21124         (Makefile.am): Update ctype.h rule.
21125
21126         New module 'c++defs'.
21127         * modules/c++defs: New file.
21128         * build-aux/c++defs.h: New file.
21129         Reported by John W. Eaton <jwe@gnu.org>.
21130
21131 2010-03-07  Bruno Haible  <bruno@clisp.org>
21132
21133         logb: Provide missing declaration for Cygwin.
21134         * lib/math.in.h (logb): New declaration.
21135         * m4/logb.m4: New file.
21136         * modules/logb (Files): Add m4/logb.m4.
21137         (Depends-on): Add math.
21138         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
21139         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
21140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
21141         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
21142         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
21143
21144 2010-03-07  Bruno Haible  <bruno@clisp.org>
21145
21146         Fix test-cond link error.
21147         * tests/test-cond.c: Include <stdio.h>.
21148
21149 2010-03-07  Bruno Haible  <bruno@clisp.org>
21150
21151         Fix test-dirent-safer link error.
21152         * modules/dirent-safer-tests (Makefile.am): Define
21153         test_dirent_safer_LDADD.
21154
21155 2010-03-07  Bruno Haible  <bruno@clisp.org>
21156
21157         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
21158         among default module list.
21159
21160 2010-03-07  Bruno Haible  <bruno@clisp.org>
21161
21162         Fix link error on platforms with GNU libiconv.
21163         * modules/unistr/u8-strcoll-tests (Makefile): Define
21164         test_u8_strcoll_LDADD.
21165         * modules/unistr/u16-strcoll-tests (Makefile): Define
21166         test_u16_strcoll_LDADD.
21167         * modules/unistr/u32-strcoll-tests (Makefile): Define
21168         test_u32_strcoll_LDADD.
21169
21170 2010-03-07  Bruno Haible  <bruno@clisp.org>
21171
21172         Use POSIX declarations for socket functions.
21173         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
21174         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21175         rpl_sendto): Change declaration to match POSIX.
21176         * lib/connect.c (rpl_connect): Likewise.
21177         * lib/accept.c (rpl_accept): Likewise.
21178         * lib/bind.c (rpl_bind): Likewise.
21179         * lib/getpeername.c (rpl_getpeername): Likewise.
21180         * lib/getsockname.c (rpl_getsockname): Likewise.
21181         * lib/recv.c (rpl_recv): Likewise.
21182         * lib/send.c (rpl_send): Likewise.
21183         * lib/recvfrom.c (rpl_recvfrom): Likewise.
21184         * lib/sendto.c (rpl_sendto): Likewise.
21185
21186 2010-03-06  Bruno Haible  <bruno@clisp.org>
21187
21188         Clarify access, euidaccess, faccessat.
21189         * doc/posix-functions/faccessat.texi: Mention security problem under
21190         "Other problems", not "Portability problems".
21191         * doc/posix-functions/access.texi: Likewise. Mention a related security
21192         problem.
21193         * doc/glibc-functions/euidaccess.texi: Mention security problems.
21194         * lib/euidaccess.c: Add comments about platforms.
21195         * lib/unistd.in.h (access, euidaccess): Add warnings.
21196
21197 2010-03-07  Bruno Haible  <bruno@clisp.org>
21198
21199         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
21200         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
21201         (POSIX_SPAWN_SETSCHEDULER): Likewise.
21202         (POSIX_SPAWN_USEVFORK): Define in a way that works when
21203         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21204         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
21205         declare when POSIX_SPAWN_SETSCHEDULER is zero.
21206         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
21207         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
21208         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
21209         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
21210         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
21211         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
21212         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
21213         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
21214         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
21215         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
21216         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
21217         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
21218         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
21219         Likewise.
21220         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
21221         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
21222         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
21223         Likewise.
21224         * tests/test-spawn.c (main): Make it work when
21225         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21226
21227 2010-03-07  Bruno Haible  <bruno@clisp.org>
21228
21229         Fix incorrect Makefile.am generation in German locale.
21230         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21231         Execute sed command with character range in C locale.
21232
21233 2010-03-06  Bruno Haible  <bruno@clisp.org>
21234
21235         Tests for module 'iconv-h'.
21236         * modules/iconv-h-tests: New file.
21237         * tests/test-iconv-h.c: New file.
21238
21239         New module 'iconv-h'.
21240         * modules/iconv-h: New file.
21241         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
21242         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
21243         (configure.ac): Remove gl_ICONV_H.
21244         (Makefile.am): Remove rule for iconv.h.
21245
21246 2010-03-06  Bruno Haible  <bruno@clisp.org>
21247
21248         More consistent naming of *.m4 files.
21249         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
21250         * modules/wctype (Files): Update.
21251
21252         More consistent naming of *.m4 files.
21253         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
21254         * modules/wchar (Files): Update.
21255
21256 2010-03-06  Jim Meyering  <meyering@redhat.com>
21257
21258         euidaccess: relax license to LGPLv2+
21259         * modules/euidaccess (License): Relax to LGPLv2+.
21260
21261 2010-03-06  Bruno Haible  <bruno@clisp.org>
21262
21263         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
21264         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
21265         (Makefile.am): Augment lib_SOURCES instead.
21266
21267 2010-03-04  Jim Meyering  <meyering@redhat.com>
21268
21269         utime: remove obsolete module
21270         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
21271         unnecessary for years, and has been marked as obsolete for 10 months.
21272         * modules/utime: Remove file.
21273         * lib/utime.c: Remove file.
21274         * m4/utime.m4: Remove file.
21275         * m4/utimes-null.m4: Remove file.
21276         * doc/posix-functions/utime.texi (utime): Remove reference to
21277         the module.  Move the sole "fixed by gnulib" item into the
21278         "problems not fixed by Gnulib" list.
21279         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
21280
21281 2010-03-05  Simon Josefsson  <simon@josefsson.org>
21282
21283         * modules/exit (License): Relax license to LGPLv2+.
21284         (Status): Mark as obsolete.
21285         * NEWS: Mention deprecated 'exit' module.
21286         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
21287         of now obsolete 'exit'.
21288
21289 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21290
21291         fts-lgpl: remove unused module
21292         * modules/fts-lgpl: Remove.
21293         * MODULES.html.sh (func_all_modules): Adjust.
21294         * check-module (find_included_lib_files): Adjust.
21295         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21296
21297 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21298
21299         copy-acl: enhance Solaris ACL error handling
21300         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21301         * lib/set-mode-acl.c (qset_acl): Likewise.
21302
21303 2010-03-02  Bruno Haible  <bruno@clisp.org>
21304
21305         spawn: Don't override the system defined values on FreeBSD 8.
21306         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21307         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21308         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21309         if HAVE_POSIX_SPAWN is 1.
21310         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21311
21312 2010-03-01  Bruno Haible  <bruno@clisp.org>
21313
21314         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21315         regarding Automake.
21316
21317 2010-02-25  Bruno Haible  <bruno@clisp.org>
21318
21319         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21320         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21321         setting, not afterwards.
21322         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21323
21324 2010-02-24  Eric Blake  <eblake@redhat.com>
21325
21326         bootstrap, git-version-gen: use timestamp
21327         * build-aux/git-version-gen (scriptversion): Force UTC.
21328         * build-aux/bootstrap (scriptversion): New variable.
21329
21330         bootstrap: allow older git
21331         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21332         older than 1.6.4.  Requested by the libvirt project.
21333
21334 2010-02-23  Eric Blake  <eblake@redhat.com>
21335
21336         warn-on-use: work with old autoconf
21337         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21338         AS_VAR semantics of autoconf 2.60.
21339         Reported by Bruno Haible.
21340
21341         bootstrap: improve some comments
21342         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21343         clarification comments.
21344
21345         gettimeofday: provide correct function
21346         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21347         when replacement is declared, otherwise provide gettimeofday.
21348         Reported by Michael Goffioul.
21349
21350 2010-02-23  Jim Meyering  <meyering@redhat.com>
21351
21352         lib-ignore: relax license to "unlimited", not LGPLv2+
21353         * modules/lib-ignore (License): Relax to "unlimited".
21354
21355 2010-02-23  Jim Meyering  <meyering@redhat.com>
21356
21357         lib-ignore: relax license to LGPLv2+
21358         * modules/lib-ignore (License): Relax to LGPLv2+.
21359
21360 2010-02-22  Eric Blake  <eblake@redhat.com>
21361
21362         lseek: avoid bash 3.2 broken pipe bug
21363         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21364         warning from bash 3.2.
21365         Reported by Ben Pfaff, with analysis from Bruno Haible.
21366
21367         bootstrap: support non-FSF copyright holder
21368         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21369         bootstrap.conf override of COPYRIGHT_HOLDER.
21370         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21371
21372         bootstrap: interoperate with gettext 0.14.1
21373         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21374
21375         bootstrap: allow for alternate submodule location
21376         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21377         hardcoding submodule location.
21378         (gnulib_mk): Allow direct use of Makefile.am.
21379
21380         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21381         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21382         rather than reconfiguring where the submodule points.
21383
21384         gettimeofday: restore support for platforms that lack function
21385         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21386         replacement if function is missing.
21387         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21388         * modules/sys_time (Makefile.am): Substitute it.
21389         * lib/sys_time.in.h (gettimeofday): Check it.
21390         Reported by Michael Goffioul.
21391
21392 2010-02-21  Bruno Haible  <bruno@clisp.org>
21393
21394         * lib/stdio.in.h (obstack_printf): Fix typo.
21395
21396 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21397
21398         vc-list-files: use bzr ls's -R option
21399         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21400         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21401
21402 2010-02-21  Jim Meyering  <meyering@redhat.com>
21403
21404         init.sh: fix EXEEXT shims to work also for names like test-prog
21405         * tests/init.sh: Re-exec a better shell, when needed.
21406         If the current shell lacks support for posix $(...), an init.sh-using
21407         test will now try to find a shell that supports that.  If EXEEXT is
21408         nonempty, we also require support for hyphen-in-alias-name and shell
21409         substitutions like ${var#glob}.  Failure to find such a shell results
21410         in a skipped test.
21411
21412 2010-02-21  Bruno Haible  <bruno@clisp.org>
21413
21414         Really work around around "broken pipe" error message from bash 3.2.
21415         * gnulib-tool (func_reset_sigpipe): Remove function.
21416         (echo): In bash 3.2, define to a function that uses printf.
21417         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21418
21419 2010-02-20  Bruno Haible  <bruno@clisp.org>
21420
21421         Restore support for automake 1.9.6 with autoconf 2.61.
21422         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21423         Reported by James Youngman <jay@gnu.org>.
21424
21425 2010-02-20  Bruno Haible  <bruno@clisp.org>
21426
21427         Improve *printf warning condition.
21428         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21429         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21430         and the function is overridden due to SIGPIPE emulation.
21431
21432 2010-02-20  Bruno Haible  <bruno@clisp.org>
21433
21434         * lib/stdio.in.h: Tweak comments.
21435
21436 2010-02-19  Bruno Haible  <bruno@clisp.org>
21437
21438         Make it easier to find modules. New gnulib-tool option '--find'.
21439         * gnulib-tool: New option --find.
21440         (func_usage): Document it.
21441         (func_sanitize_modulelist): New function, extracted from
21442         func_all_modules.
21443         (func_all_modules): Invoke it.
21444         * doc/gnulib-tool.texi (Which modules?): New node.
21445
21446 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21447
21448         * lib/sys_select.in.h: Provide select replacement even if
21449         sys/select.h exists on a system, for Interix.
21450
21451 2010-02-18  Jim Meyering  <meyering@redhat.com>
21452
21453         init.sh: don't use $(...) just yet
21454         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21455         to accommodate e.g., Solaris' /bin/sh.
21456
21457 2010-02-17  Bruno Haible  <bruno@clisp.org>
21458
21459         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21460         Reported by Ludovic Courtès <ludo@gnu.org>.
21461
21462 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21463
21464         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21465         linking with -lintl.
21466
21467 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21468
21469         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21470         if not provided by the system's netdb.h.  Reported by
21471         ludo@gnu.org (Ludovic Courtès).
21472
21473 2010-02-15  Jim Meyering  <meyering@redhat.com>
21474
21475         init.sh: improve portability and efficiency
21476         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21477         "dummy" in a for loop.
21478         Use '!', not '^' to select the complement of a character set used
21479         in a "case" statement.
21480         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21481         Suggestions from Eric Blake.
21482
21483         init.sh: automatically accommodate programs with the .exe suffix
21484         Automatically arrange for an invocation of "prog" to execute the
21485         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21486         may use the simpler "prog", yet still work when built on a system
21487         that requires specifying the added suffix.
21488         Do this by constructing a function named "prog" that invokes
21489         "prog.exe" for each .exe file in selected directories.
21490         * tests/init.sh (find_exe_basenames_): New function.
21491         (create_exe_shim_functions_): New function.
21492         (path_prepend_): Use it.
21493
21494         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21495         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21496         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21497
21498 2010-02-14  Jim Meyering  <meyering@redhat.com>
21499
21500         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21501         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21502         (sc_prohibit_hash_pjw_without_use): New rule.
21503
21504         maint.mk: allow the default upload destination dir to be overridden
21505         * top/maint.mk (upload_dest_dir_): Define with a default that
21506         preserves the status quo.
21507         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21508         Reported by Peter Simons.
21509
21510         maint.mk: prohibit inclusion of "hash.h" without_use
21511         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21512
21513 2010-02-10  Jim Meyering  <meyering@redhat.com>
21514
21515         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21516         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21517
21518 2010-02-09  Eric Blake  <ebb9@byu.net>
21519         and Bruno Haible  <bruno@clisp.org>
21520
21521         obstack-printf-posix: ensure declaration
21522         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21523         extracted from gl_FUNC_OBSTACK_PRINTF.
21524         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21525         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21526         Likewise.
21527         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21528         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21529         0.
21530
21531 2010-02-08  Bruno Haible  <bruno@clisp.org>
21532
21533         gnulib-tool: Fix typo in 2010-02-07 commit.
21534         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21535         Reported by Eric Blake.
21536
21537 2010-02-07  Bruno Haible  <bruno@clisp.org>
21538
21539         gnulib-tool: Fix up caching patches.
21540         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21541         option --no-cache. Use associative arrays when supported by the shell.
21542         (sed_comments): New variable.
21543         (modcache): Renamed from do_cache.
21544         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21545         abbreviate unnecessarily.
21546         (have_associative): New variable.
21547         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21548         way also for ksh and zsh.
21549         (func_init_sed_convert_to_cache_statements): New function, extracted
21550         from func_cache_lookup_module. Add support for associative arrays.
21551         Don't set the c_MODULE_cached variable here. Ignore all lines before
21552         the first field header. Remove only the final newline, not all trailing
21553         newlines. Support empty fields correctly. Limit the use of 'eval' to
21554         assignments.
21555         (func_get_description, func_get_status, func_get_notice,
21556         func_get_applicability, func_get_filelist, func_get_dependencies,
21557         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21558         func_get_automake_snippet, func_get_include_directive,
21559         func_get_link_directive, func_get_license, func_get_maintainer):
21560         Update documentation. List the unoptimized code first. Add support for
21561         associative arrays. Limit the use of 'eval' to assignments.
21562         (func_get_applicability): Undo stylistic pessimisations.
21563         (func_get_automake_snippet, func_get_include_directive): Reduce code
21564         duplication.
21565         (func_modules_transitive_closure, func_modules_add_dummy,
21566         func_modules_notice, func_modules_to_filelist, func_add_file,
21567         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21568         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21569         func_create_testdir, func_create_megatestdir): Update documentation.
21570
21571 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21572
21573         * gnulib-tool (func_cache_lookup_module): Store the module name
21574         belonging to the cache variable; error out if two different
21575         module names map to the same cache variable name.
21576
21577 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21578
21579         gnulib-tool: Make caching optional.
21580         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21581         Update matching short versions of --no-changelog.
21582         (func_usage): Update.
21583         (sed_extract_cache_prog): Renamed from ...
21584         (sed_extract_prog): ... this; revert to old extraction script.
21585         (func_get_description, func_get_status)
21586         (func_get_notice, func_get_applicability, func_get_filelist)
21587         (func_get_dependencies, func_get_autoconf_early_snippet)
21588         (func_get_autoconf_snippet, func_get_automake_snippet)
21589         (func_get_include_directive, func_get_link_directive)
21590         (func_get_license, func_get_maintainer): If $do_cache is false,
21591         use old, non-caching extraction scripts.
21592         Suggestion by Bruno Haible.
21593
21594 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21595
21596         gnulib-tool: cache module metainformation.
21597         * gnulib-tool (sed_extract_prog): Match newline before each
21598         header, and rewrite header to a shell variable suffix.
21599         (func_cache_var, func_cache_lookup_module): New functions,
21600         to turn a module name into a cache variable prefix, and to
21601         look up and cache module metainformation.
21602         (func_get_description, func_get_status)
21603         (func_get_notice, func_get_applicability, func_get_filelist)
21604         (func_get_dependencies, func_get_autoconf_early_snippet)
21605         (func_get_autoconf_snippet, func_get_automake_snippet)
21606         (func_get_include_directive, func_get_link_directive)
21607         (func_get_license, func_get_maintainer): Use
21608         func_cache_lookup_module.
21609
21610 2010-02-07  Bruno Haible  <bruno@clisp.org>
21611
21612         fnctl: Fix missing dependency.
21613         * modules/fcntl (Depends-on): Add getdtablesize.
21614         Reported by John W. Eaton <jwe@gnu.org>.
21615
21616 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21617
21618         Argp: fix recognition of short alias options.
21619
21620         * lib/argp-parse.c (convert_options): Fix improper use of
21621         `|' between character values.
21622         * tests/test-argp.c (group1_option): New alias option
21623         --read (-r).
21624         (group1_parser): Special handling for 'r'.
21625         (test15): New test case.
21626         (test_fun): Add test15.
21627         * tests/test-argp-2.sh: Update expected --help and --usage
21628         outputs.
21629
21630 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21631
21632         * tests/test-argp.c: Fix indentation.
21633
21634 2010-02-04  Eric Blake  <ebb9@byu.net>
21635
21636         gettimeofday: expose type of second argument
21637         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21638         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21639         * tests/test-gettimeofday.c: Use it to silence warning.
21640         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21641         the issue.
21642
21643 2010-02-03  Jim Meyering  <meyering@redhat.com>
21644
21645         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21646         * lib/regcomp.c (TYPE_SIGNED): Define.
21647         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21648
21649         regcomp.c: avoid a new -Wshadow warning
21650         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21651
21652 2010-02-01  Jim Meyering  <meyering@redhat.com>
21653
21654         removing useless parentheses in cpp #define directives
21655         For motivation, see commit c0221df4, "define STREQ(a,b)
21656         consistently, removing useless parentheses"
21657         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21658         * lib/mountlist.c (MNT_IGNORE): Likewise.
21659         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21660
21661 2010-02-01  Eric Blake  <ebb9@byu.net>
21662
21663         sys_time: use link-warning
21664         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21665         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21666         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21667         * modules/sys_time (Depends-on): Add warn-on-use.
21668         (Makefile.am): Always build replacement.
21669         (configure.ac): Update substitutions.
21670         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21671         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21672         bother with SYS_TIME_H.
21673         * modules/gettimeofday (configure.ac): Declare indicator.
21674         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21675         in use.
21676
21677         closein-tests: silence compiler warning
21678         * tests/test-closein.c (main): Ignore fread result.
21679         * modules/closein-tests (Depends-on): Add ignore-value.
21680
21681         tests: silence warning about system return
21682         * tests/test-areadlink-with-size.c (main): Ignore system result.
21683         * tests/test-areadlink.c (main): Likewise.
21684         * tests/test-areadlinkat-with-size.c (main): Likewise.
21685         * tests/test-areadlinkat.c (main): Likewise.
21686         * tests/test-canonicalize-lgpl.c (main): Likewise.
21687         * tests/test-canonicalize.c (main): Likewise.
21688         * tests/test-chown.c (main): Likewise.
21689         * tests/test-fchownat.c (main): Likewise.
21690         * tests/test-fdutimensat.c (main): Likewise.
21691         * tests/test-fstatat.c (main): Likewise.
21692         * tests/test-futimens.c (main): Likewise.
21693         * tests/test-lchown.c (main): Likewise.
21694         * tests/test-link.c (main): Likewise.
21695         * tests/test-linkat.c (main): Likewise.
21696         * tests/test-lstat.c (main): Likewise.
21697         * tests/test-mkdir.c (main): Likewise.
21698         * tests/test-mkdirat.c (main): Likewise.
21699         * tests/test-mkfifo.c (main): Likewise.
21700         * tests/test-mkfifoat.c (main): Likewise.
21701         * tests/test-mknod.c (main): Likewise.
21702         * tests/test-readlink.c (main): Likewise.
21703         * tests/test-remove.c (main): Likewise.
21704         * tests/test-rename.c (main): Likewise.
21705         * tests/test-renameat.c (main): Likewise.
21706         * tests/test-rmdir.c (main): Likewise.
21707         * tests/test-symlink.c (main): Likewise.
21708         * tests/test-symlinkat.c (main): Likewise.
21709         * tests/test-unlink.c (main): Likewise.
21710         * tests/test-unlinkat.c (main): Likewise.
21711         * tests/test-utimens.c (main): Likewise.
21712         * tests/test-utimensat.c (main): Likewise.
21713         * modules/areadlink-tests (Depends-on): Add ignore-value.
21714         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21715         * modules/areadlinkat-tests (Depends-on): Likewise.
21716         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21717         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21718         * modules/canonicalize-tests (Depends-on): Likewise.
21719         * modules/chown-tests (Depends-on): Likewise.
21720         * modules/fdutimensat-tests (Depends-on): Likewise.
21721         * modules/futimens-tests (Depends-on): Likewise.
21722         * modules/lchown-tests (Depends-on): Likewise.
21723         * modules/link-tests (Depends-on): Likewise.
21724         * modules/linkat-tests (Depends-on): Likewise.
21725         * modules/lstat-tests (Depends-on): Likewise.
21726         * modules/mkdir-tests (Depends-on): Likewise.
21727         * modules/mkfifo-tests (Depends-on): Likewise.
21728         * modules/mkfifoat-tests (Depends-on): Likewise.
21729         * modules/mknod-tests (Depends-on): Likewise.
21730         * modules/openat-tests (Depends-on): Likewise.
21731         * modules/readlink-tests (Depends-on): Likewise.
21732         * modules/remove-tests (Depends-on): Likewise.
21733         * modules/rename-tests (Depends-on): Likewise.
21734         * modules/renameat-tests (Depends-on): Likewise.
21735         * modules/rmdir-tests (Depends-on): Likewise.
21736         * modules/symlink-tests (Depends-on): Likewise.
21737         * modules/symlinkat-tests (Depends-on): Likewise.
21738         * modules/unlink-tests (Depends-on): Likewise.
21739         * modules/utimens-tests (Depends-on): Likewise.
21740         * modules/utimensat-tests (Depends-on): Likewise.
21741
21742 2010-01-31  Bruno Haible  <bruno@clisp.org>
21743
21744         Perform the same test for many <math.h> functions.
21745         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21746         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21747         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21748         of gl_MATHFUNC.
21749         * modules/acos (configure.ac): Likewise.
21750         * modules/asin (configure.ac): Likewise.
21751         * modules/atan (configure.ac): Likewise.
21752         * modules/atan2 (configure.ac): Likewise.
21753         * modules/cbrt (configure.ac): Likewise.
21754         * modules/copysign (configure.ac): Likewise.
21755         * modules/cos (configure.ac): Likewise.
21756         * modules/cosh (configure.ac): Likewise.
21757         * modules/erf (configure.ac): Likewise.
21758         * modules/erfc (configure.ac): Likewise.
21759         * modules/exp (configure.ac): Likewise.
21760         * modules/fmod (configure.ac): Likewise.
21761         * modules/hypot (configure.ac): Likewise.
21762         * modules/j0 (configure.ac): Likewise.
21763         * modules/j1 (configure.ac): Likewise.
21764         * modules/jn (configure.ac): Likewise.
21765         * modules/lgamma (configure.ac): Likewise.
21766         * modules/log (configure.ac): Likewise.
21767         * modules/log10 (configure.ac): Likewise.
21768         * modules/log1p (configure.ac): Likewise.
21769         * modules/pow (configure.ac): Likewise.
21770         * modules/remainder (configure.ac): Likewise.
21771         * modules/sin (configure.ac): Likewise.
21772         * modules/sinh (configure.ac): Likewise.
21773         * modules/tan (configure.ac): Likewise.
21774         * modules/tanh (configure.ac): Likewise.
21775         * modules/y0 (configure.ac): Likewise.
21776         * modules/y1 (configure.ac): Likewise.
21777         * modules/yn (configure.ac): Likewise.
21778         Suggested by Paolo Bonzini.
21779
21780 2010-01-31  Bruno Haible  <bruno@clisp.org>
21781
21782         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21783
21784 2010-01-31  Bruno Haible  <bruno@clisp.org>
21785
21786         Work around getdelim() bug on FreeBSD 8.0.
21787         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21788         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21789         not work.
21790         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21791         is 1.
21792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21793         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21794         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21795         a non-zero size.
21796         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21797
21798 2010-01-31  Bruno Haible  <bruno@clisp.org>
21799
21800         Work around getline() bug on FreeBSD 8.0.
21801         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21802         and a non-zero size.
21803         * tests/test-getline.c (main): Likewise.
21804         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21805         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21806
21807 2010-01-28  Eric Blake  <ebb9@byu.net>
21808
21809         regex: fix build failure
21810         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21811         platforms.
21812
21813 2010-01-28  Jim Meyering  <meyering@redhat.com>
21814
21815         regex: do not ignore memory allocation failure
21816         * lib/regex_internal.c (create_cd_newstate): Detect
21817         re_node_set_init_copy failure.   Extracted from glibc commit
21818         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21819
21820         regex: sync more white-space changes from libc
21821         * lib/regex_internal.c: White-space only changes.
21822         * lib/regexec.c: Likewise.
21823
21824         regex: add many uses of __attribute_warn_unused_result__
21825         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21826         * lib/regexec.c: Likewise.
21827         Extracted from a messy glibc commit.
21828
21829         regcomp.c: spelling and merge-artifact from glibc
21830         * lib/regcomp.c: Merge remainder of glibc's
21831         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21832
21833         regcomp.c: sync white-space changes from glibc
21834         * lib/regcomp.c: Merge to accommodate white space
21835         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21836
21837         regcomp.c: do not ignore internal return values
21838         * lib/regcomp.c: Do not ignore internal return values.
21839         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21840         but without its white-space changes and spelling fixes.
21841
21842         regex_internal.h: define __attribute_warn_unused_result__
21843         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21844
21845         maint: add a syntax-check rule to check for vulnerable Makefile.in
21846         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21847
21848 2010-01-27  Jim Meyering  <meyering@redhat.com>
21849
21850         ncftpput-ftp: clean up spaces
21851         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21852         Remove trailing blanks.
21853
21854 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21855
21856         * build-aux/git-version-gen: Fix copyright statement.
21857         * build-aux/gnupload: Likewise.
21858         * tests/test-arcfour.c: Likewise.
21859         * tests/test-arctwo.c: Likewise.
21860         * tests/test-count-one-bits.c: Likewise.
21861         * tests/test-crc.c: Likewise.
21862         * tests/test-des.c: Likewise.
21863         * tests/test-gc-arcfour.c: Likewise.
21864         * tests/test-gc-arctwo.c: Likewise.
21865         * tests/test-gc-des.c: Likewise.
21866         * tests/test-gc-hmac-md5.c: Likewise.
21867         * tests/test-gc-hmac-sha1.c: Likewise.
21868         * tests/test-gc-md2.c: Likewise.
21869         * tests/test-gc-md4.c: Likewise.
21870         * tests/test-gc-md5.c: Likewise.
21871         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21872         * tests/test-gc-rijndael.c: Likewise.
21873         * tests/test-gc-sha1.c: Likewise.
21874         * tests/test-gc.c: Likewise.
21875         * tests/test-gethostname.c: Likewise.
21876         * tests/test-gettimeofday.c: Likewise.
21877         * tests/test-hash.c: Likewise.
21878         * tests/test-hmac-md5.c: Likewise.
21879         * tests/test-hmac-sha1.c: Likewise.
21880         * tests/test-md2.c: Likewise.
21881         * tests/test-md4.c: Likewise.
21882         * tests/test-md5.c: Likewise.
21883         * tests/test-memchr.c: Likewise.
21884         * tests/test-memchr2.c: Likewise.
21885         * tests/test-memcmp.c: Likewise.
21886         * tests/test-memmem.c: Likewise.
21887         * tests/test-memrchr.c: Likewise.
21888         * tests/test-rawmemchr.c: Likewise.
21889         * tests/test-read-file.c: Likewise.
21890         * tests/test-rijndael.c: Likewise.
21891         * tests/test-sockets.c: Likewise.
21892         * tests/test-strchrnul.c: Likewise.
21893         * tests/test-strstr.c: Likewise.
21894         * tests/test-strtod.c: Likewise.
21895         * build-aux/ncftpput-ftp: Likewise.
21896
21897 2010-01-26  Eric Blake  <ebb9@byu.net>
21898
21899         ignore-value: update recommended header name
21900         * modules/ignore-value (Include): Only use <> for headers that
21901         exist in glibc.
21902
21903 2010-01-26  Jim Meyering  <meyering@redhat.com>
21904
21905         test-userspec.c: avoid compiler warnings
21906         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
21907         and "initialization discards qualifiers..." warnings.
21908         Put the first "uid" in its own scope, and make char* members "const".
21909
21910 2010-01-25  Bruno Haible  <bruno@clisp.org>
21911
21912         gnulib-tool: Make warning diagnostics consistent.
21913         * gnulib-tool (func_warning): New function.
21914         Use it everywhere where gnulib-tool produces output to stderr and it is
21915         not a fatal error.
21916
21917 2010-01-25  Bruno Haible  <bruno@clisp.org>
21918
21919         Fix test dependencies.
21920         * modules/xstrtol-tests (Depends-on): Add inttypes.
21921         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
21922
21923 2010-01-25 Pádraig Brady <P@draigBrady.com>
21924
21925         syntax-check: detect incorrect boolean macro values in config.h
21926         * modules/maintainer-makefile (configure.ac): Parameterize the location
21927         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
21928         The logic is from Eric Blake and the location indicated by Jim Meyering.
21929         Note the more natural CONFIG_HEADER name is prohibited by automake
21930         for backwards compatibility reasons.
21931         * top/maint.mk (sc_Wundef_boolean): New rule.
21932
21933 2010-01-25  Jim Meyering  <meyering@redhat.com>
21934
21935         bootstrap: detect MacOS 10.6's shasum, too
21936         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
21937         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
21938
21939 2010-01-23  Jim Meyering  <meyering@redhat.com>
21940
21941         xstrtoll: new module
21942         * modules/xstrtoll: New file.
21943         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
21944         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
21945         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
21946         ./configure fails if you use this module and lack "long long".
21947         * modules/xstrtoll-tests: New module.
21948         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
21949         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
21950         new init.sh-based test framework.
21951
21952 2010-01-24  Bruno Haible  <bruno@clisp.org>
21953
21954         Tests for module 'yn'.
21955         * modules/yn-tests: New file.
21956         * tests/test-yn.c: New file.
21957
21958         Tests for module 'y1'.
21959         * modules/y1-tests: New file.
21960         * tests/test-y1.c: New file.
21961
21962         Tests for module 'y0'.
21963         * modules/y0-tests: New file.
21964         * tests/test-y0.c: New file.
21965
21966         Tests for module 'tanh'.
21967         * modules/tanh-tests: New file.
21968         * tests/test-tanh.c: New file.
21969
21970         Tests for module 'tan'.
21971         * modules/tan-tests: New file.
21972         * tests/test-tan.c: New file.
21973
21974         Tests for module 'sqrt'.
21975         * modules/sqrt-tests: New file.
21976         * tests/test-sqrt.c: New file.
21977
21978         Tests for module 'sinh'.
21979         * modules/sinh-tests: New file.
21980         * tests/test-sinh.c: New file.
21981
21982         Tests for module 'sin'.
21983         * modules/sin-tests: New file.
21984         * tests/test-sin.c: New file.
21985
21986         Tests for module 'rint'.
21987         * modules/rint-tests: New file.
21988         * tests/test-rint.c: New file.
21989
21990         Tests for module 'remainder'.
21991         * modules/remainder-tests: New file.
21992         * tests/test-remainder.c: New file.
21993
21994         Tests for module 'pow'.
21995         * modules/pow-tests: New file.
21996         * tests/test-pow.c: New file.
21997
21998         Tests for module 'nextafter'.
21999         * modules/nextafter-tests: New file.
22000         * tests/test-nextafter.c: New file.
22001
22002         Tests for module 'modf'.
22003         * modules/modf-tests: New file.
22004         * tests/test-modf.c: New file.
22005
22006         Tests for module 'logb'.
22007         * modules/logb-tests: New file.
22008         * tests/test-logb.c: New file.
22009
22010         Tests for module 'log1p'.
22011         * modules/log1p-tests: New file.
22012         * tests/test-log1p.c: New file.
22013
22014         Tests for module 'log10'.
22015         * modules/log10-tests: New file.
22016         * tests/test-log10.c: New file.
22017
22018         Tests for module 'log'.
22019         * modules/log-tests: New file.
22020         * tests/test-log.c: New file.
22021
22022         Tests for module 'lgamma'.
22023         * modules/lgamma-tests: New file.
22024         * tests/test-lgamma.c: New file.
22025
22026         Tests for module 'ldexp'.
22027         * modules/ldexp-tests: New file.
22028         * tests/test-ldexp.c: New file.
22029
22030         Tests for module 'jn'.
22031         * modules/jn-tests: New file.
22032         * tests/test-jn.c: New file.
22033
22034         Tests for module 'j1'.
22035         * modules/j1-tests: New file.
22036         * tests/test-j1.c: New file.
22037
22038         Tests for module 'j0'.
22039         * modules/j0-tests: New file.
22040         * tests/test-j0.c: New file.
22041
22042         Tests for module 'hypot'.
22043         * modules/hypot-tests: New file.
22044         * tests/test-hypot.c: New file.
22045
22046         Tests for module 'fmod'.
22047         * modules/fmod-tests: New file.
22048         * tests/test-fmod.c: New file.
22049
22050         Tests for module 'fabs'.
22051         * modules/fabs-tests: New file.
22052         * tests/test-fabs.c: New file.
22053
22054         Tests for module 'exp'.
22055         * modules/exp-tests: New file.
22056         * tests/test-exp.c: New file.
22057
22058         Tests for module 'erfc'.
22059         * modules/erfc-tests: New file.
22060         * tests/test-erfc.c: New file.
22061
22062         Tests for module 'erf'.
22063         * modules/erf-tests: New file.
22064         * tests/test-erf.c: New file.
22065
22066         Tests for module 'cosh'.
22067         * modules/cosh-tests: New file.
22068         * tests/test-cosh.c: New file.
22069
22070         Tests for module 'cos'.
22071         * modules/cos-tests: New file.
22072         * tests/test-cos.c: New file.
22073
22074         Tests for module 'copysign'.
22075         * modules/copysign-tests: New file.
22076         * tests/test-copysign.c: New file.
22077
22078         Tests for module 'cbrt'.
22079         * modules/cbrt-tests: New file.
22080         * tests/test-cbrt.c: New file.
22081
22082         Tests for module 'atan2'.
22083         * modules/atan2-tests: New file.
22084         * tests/test-atan2.c: New file.
22085
22086         Tests for module 'atan'.
22087         * modules/atan-tests: New file.
22088         * tests/test-atan.c: New file.
22089
22090         Tests for module 'asin'.
22091         * modules/asin-tests: New file.
22092         * tests/test-asin.c: New file.
22093
22094         Tests for module 'acos'.
22095         * modules/acos-tests: New file.
22096         * tests/test-acos.c: New file.
22097
22098 2010-01-24  Bruno Haible  <bruno@clisp.org>
22099
22100         Fix tests for common <math.h> functions.
22101         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
22102         code snippet that references the function pointer, rather than merely
22103         calling the function. Substitute the FUNC_LIBM variable.
22104         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
22105         * modules/acos (configure.ac): Likewise.
22106         * modules/asin (configure.ac): Likewise.
22107         * modules/atan (configure.ac): Likewise.
22108         * modules/atan2 (configure.ac): Likewise.
22109         * modules/cbrt (configure.ac): Likewise.
22110         * modules/copysign (configure.ac): Likewise.
22111         * modules/cos (configure.ac): Likewise.
22112         * modules/cosh (configure.ac): Likewise.
22113         * modules/erf (configure.ac): Likewise.
22114         * modules/erfc (configure.ac): Likewise.
22115         * modules/exp (configure.ac): Likewise.
22116         * modules/fabs (configure.ac): Likewise.
22117         * modules/fmod (configure.ac): Likewise.
22118         * modules/hypot (configure.ac): Likewise.
22119         * modules/j0 (configure.ac): Likewise.
22120         * modules/j1 (configure.ac): Likewise.
22121         * modules/jn (configure.ac): Likewise.
22122         * modules/ldexp (configure.ac): Likewise.
22123         * modules/lgamma (configure.ac): Likewise.
22124         * modules/log (configure.ac): Likewise.
22125         * modules/log10 (configure.ac): Likewise.
22126         * modules/log1p (configure.ac): Likewise.
22127         * modules/logb (configure.ac): Likewise.
22128         * modules/modf (configure.ac): Likewise.
22129         * modules/nextafter (configure.ac): Likewise.
22130         * modules/pow (configure.ac): Likewise.
22131         * modules/remainder (configure.ac): Likewise.
22132         * modules/rint (configure.ac): Likewise.
22133         * modules/sin (configure.ac): Likewise.
22134         * modules/sinh (configure.ac): Likewise.
22135         * modules/tan (configure.ac): Likewise.
22136         * modules/tanh (configure.ac): Likewise.
22137         * modules/y0 (configure.ac): Likewise.
22138         * modules/y1 (configure.ac): Likewise.
22139         * modules/yn (configure.ac): Likewise.
22140
22141 2010-01-24  Bruno Haible  <bruno@clisp.org>
22142
22143         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
22144         * tests/test-acosl.c (x): New variable.
22145         (main): Store argument in x and fetch it from x.
22146         * tests/test-asinl.c (x): New variable.
22147         (main): Store argument in x and fetch it from x.
22148         * tests/test-atanl.c (x): New variable.
22149         (main): Store argument in x and fetch it from x.
22150         * tests/test-cosl.c (x): New variable.
22151         (main): Store argument in x and fetch it from x.
22152         * tests/test-expl.c (x): New variable.
22153         (main): Store argument in x and fetch it from x.
22154         * tests/test-logl.c (x): New variable.
22155         (main): Store argument in x and fetch it from x.
22156         * tests/test-sinl.c (x): New variable.
22157         (main): Store argument in x and fetch it from x.
22158         * tests/test-sqrtl.c (x): New variable.
22159         (main): Store argument in x and fetch it from x.
22160         * tests/test-tanl.c (x): New variable.
22161         (main): Store argument in x and fetch it from x.
22162
22163 2010-01-24  Bruno Haible  <bruno@clisp.org>
22164
22165         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
22166         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
22167         assignments to the initial TESTS_ENVIRONMENT.
22168         * doc/gnulib.texi (Unit test modules): Document it.
22169         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
22170         TESTS_ENVIRONMENT.
22171         * modules/btowc-tests (Makefile.am): Likewise.
22172         * modules/c-stack-tests (Makefile.am): Likewise.
22173         * modules/c-strcase-tests (Makefile.am): Likewise.
22174         * modules/copy-file-tests (Makefile.am): Likewise.
22175         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
22176         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
22177         * modules/mbrtowc-tests (Makefile.am): Likewise.
22178         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22179         * modules/mbscasestr-tests (Makefile.am): Likewise.
22180         * modules/mbschr-tests (Makefile.am): Likewise.
22181         * modules/mbscspn-tests (Makefile.am): Likewise.
22182         * modules/mbsinit-tests (Makefile.am): Likewise.
22183         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22184         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
22185         * modules/mbspbrk-tests (Makefile.am): Likewise.
22186         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22187         * modules/mbsrchr-tests (Makefile.am): Likewise.
22188         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
22189         * modules/mbsspn-tests (Makefile.am): Likewise.
22190         * modules/mbsstr-tests (Makefile.am): Likewise.
22191         * modules/nl_langinfo-tests (Makefile.am): Likewise.
22192         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
22193         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22194         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22195         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22196         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22197         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
22198         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22199         * modules/wcrtomb-tests (Makefile.am): Likewise.
22200         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
22201         * modules/wcsrtombs-tests (Makefile.am): Likewise.
22202         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
22203         assignments from TESTS_ENVIRONMENT.
22204         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
22205         augmentation.
22206         * modules/argp-version-etc-tests (Makefile.am): Likewise.
22207         * modules/atexit-tests (Makefile.am): Likewise.
22208         * modules/binary-io-tests (Makefile.am): Likewise.
22209         * modules/closein-tests (Makefile.am): Likewise.
22210         * modules/dprintf-posix-tests (Makefile.am): Likewise.
22211         * modules/exclude-tests (Makefile.am): Likewise.
22212         * modules/fflush-tests (Makefile.am): Likewise.
22213         * modules/fpending-tests (Makefile.am): Likewise.
22214         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22215         * modules/freadahead-tests (Makefile.am): Likewise.
22216         * modules/freadptr-tests (Makefile.am): Likewise.
22217         * modules/freadseek-tests (Makefile.am): Likewise.
22218         * modules/fseek-tests (Makefile.am): Likewise.
22219         * modules/fseeko-tests (Makefile.am): Likewise.
22220         * modules/ftell-tests (Makefile.am): Likewise.
22221         * modules/ftello-tests (Makefile.am): Likewise.
22222         * modules/idpriv-drop-tests (Makefile.am): Likewise.
22223         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
22224         * modules/lseek-tests (Makefile.am): Likewise.
22225         * modules/parse-duration-tests (Makefile.am): Likewise.
22226         * modules/perror-tests (Makefile.am): Likewise.
22227         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
22228         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
22229         * modules/pipe-tests (Makefile.am): Likewise.
22230         * modules/pread-tests (Makefile.am): Likewise.
22231         * modules/printf-posix-tests (Makefile.am): Likewise.
22232         * modules/select-tests (Makefile.am): Likewise.
22233         * modules/sigpipe-tests (Makefile.am): Likewise.
22234         * modules/tsearch-tests (Makefile.am): Likewise.
22235         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
22236         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
22237         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22238         * modules/uniwidth/width-tests (Makefile.am): Likewise.
22239         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
22240         * modules/version-etc-tests (Makefile.am): Likewise.
22241         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22242         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22243         * modules/xalloc-die-tests (Makefile.am): Likewise.
22244         * modules/xprintf-posix-tests (Makefile.am): Likewise.
22245         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22246         * modules/xstrtol-tests (Makefile.am): Likewise.
22247         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22248         * modules/yesno-tests (Makefile.am): Likewise.
22249         Suggested by Jim Meyering.
22250
22251 2010-01-24  Bruno Haible  <bruno@clisp.org>
22252
22253         More documentation.
22254         * doc/gnulib.texi (Writing modules): New chapter.
22255         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
22256         the new chapter.
22257
22258 2010-01-24  Jim Meyering  <meyering@redhat.com>
22259
22260         maint.mk: do not prepend "./" after filtering
22261         * top/maint.mk (_prepend_srcdir_prefix): New variable
22262         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
22263         "./" when $(srcdir) is ".".
22264
22265         define STREQ(a,b) consistently, removing useless parentheses
22266         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
22267         since the only risk is that "a" or "b" contains an unparenthesized
22268         comma, but if either did that, STREQ would have 3 or more arguments.
22269         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
22270         * lib/fts.c (STREQ): Remove unnecessary parentheses.
22271         * lib/hash-triple.c (STREQ): Likewise.
22272         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
22273         * lib/getugroups.c (STREQ): Likewise.
22274
22275 2010-01-23  Jim Meyering  <meyering@redhat.com>
22276
22277         maint.mk: fix syntax-check in a non-srcdir build directory
22278         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
22279         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
22280
22281 2010-01-22  Jim Meyering  <meyering@redhat.com>
22282
22283         userspec: add unit tests
22284         * tests/test-userspec.c: New file.
22285         * modules/userspec-tests: Likewise.
22286
22287 2010-01-21  Jim Meyering  <meyering@redhat.com>
22288
22289         maint.mk: handle source file names containing "." robustly
22290         * top/maint.mk (_dot_escaped_srcdir): Define.
22291         (VC_LIST): Use it in LHS of sed substitution.
22292
22293 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
22294
22295         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22296         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22297         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22298         from a non-srcdir build.
22299
22300 2010-01-20  Eric Blake  <ebb9@byu.net>
22301
22302         warn-on-use: use instead of link-warning
22303         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22304         * modules/unistd (Depends-on, Makefile.am): Likewise.
22305         * modules/arpa_inet (Depends-on): Replace link-warning with
22306         warn-on-use.
22307         (Makefile.am): Update rules accordingly.
22308         * modules/ctype (Depends-on, Makefile.am): Likewise.
22309         * modules/dirent (Depends-on, Makefile.am): Likewise.
22310         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22311         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22312         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22313         * modules/locale (Depends-on, Makefile.am): Likewise.
22314         * modules/math (Depends-on, Makefile.am): Likewise.
22315         * modules/search (Depends-on, Makefile.am): Likewise.
22316         * modules/signal (Depends-on, Makefile.am): Likewise.
22317         * modules/spawn (Depends-on, Makefile.am): Likewise.
22318         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22319         * modules/string (Depends-on, Makefile.am): Likewise.
22320         * modules/strings (Depends-on, Makefile.am): Likewise.
22321         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22322         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22323         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22324         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22325         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22326         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22327         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22328         * modules/wchar (Depends-on, Makefile.am): Likewise.
22329         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22330         should be poisoned.
22331         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22332         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22333         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22334         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22335         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22336         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22337         * m4/math_h.m4 (gl_MATH_H): Likewise.
22338         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22339         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22340         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22341         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22342         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22343         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22344         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22345         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22346         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22347         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22348         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22349         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22350         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22351         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22352         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22353         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22354         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22355         GL_LINK_WARNING.
22356         * lib/ctype.in.h: Likewise.
22357         * lib/dirent.in.h: Likewise.
22358         * lib/fcntl.in.h: Likewise.
22359         * lib/inttypes.in.h: Likewise.
22360         * lib/langinfo.in.h: Likewise.
22361         * lib/locale.in.h: Likewise.
22362         * lib/math.in.h: Likewise.
22363         * lib/search.in.h: Likewise.
22364         * lib/signal.in.h: Likewise.
22365         * lib/spawn.in.h: Likewise.
22366         * lib/stdio.in.h: Likewise.
22367         * lib/stdlib.in.h: Likewise.
22368         * lib/string.in.h: Likewise.
22369         * lib/strings.in.h: Likewise.
22370         * lib/sys_file.in.h: Likewise.
22371         * lib/sys_ioctl.in.h: Likewise.
22372         * lib/sys_select.in.h: Likewise.
22373         * lib/sys_socket.in.h: Likewise.
22374         * lib/sys_stat.in.h: Likewise.
22375         * lib/sys_times.in.h: Likewise.
22376         * lib/sys_utsname.in.h: Likewise.
22377         * lib/unistd.in.h: Likewise.
22378         * lib/wchar.in.h: Likewise.
22379
22380 2010-01-20  Bruno Haible  <bruno@clisp.org>
22381
22382         Avoid duplicate -lm.
22383         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22384         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22385         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22386         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22387         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22388         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22389         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22390         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22391         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22392         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22393         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22394         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22395         Reported by Paolo Bonzini.
22396
22397 2010-01-19  Bruno Haible  <bruno@clisp.org>
22398
22399         langinfo, nl_langinfo: Relicense under LGPLv2+.
22400         * modules/langinfo (License): Change to LGPLv2+.
22401         * modules/nl_langinfo (License): Likewise.
22402         Patch by David Lutterkort <lutter@redhat.com>.
22403
22404 2010-01-19  Bruno Haible  <bruno@clisp.org>
22405
22406         Avoid compilation error with cc on OSF/1 5.1.
22407         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22408         statement, not before.
22409         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22410
22411 2010-01-18  Bruno Haible  <bruno@clisp.org>
22412
22413         Avoid a link error due to the __printf__ symbol.
22414         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22415         and 2.6.x.
22416         (__format__, __printf__): Remove definitions.
22417         * lib/argp-fmtstream.h: Likewise.
22418         * lib/argp.h: Likewise.
22419         * lib/error.h: Likewise.
22420         * lib/vasnprintf.h: Likewise.
22421         * lib/xprintf.h: Likewise.
22422         * lib/xvasprintf.h: Likewise.
22423         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22424
22425 2010-01-18  Bruno Haible  <bruno@clisp.org>
22426
22427         Tests for module 'tanl'.
22428         * modules/tanl-tests: New file.
22429         * tests/test-tanl.c: New file.
22430
22431         Tests for module 'sqrtl'.
22432         * modules/sqrtl-tests: New file.
22433         * tests/test-sqrtl.c: New file.
22434
22435         Tests for module 'sinl'.
22436         * modules/sinl-tests: New file.
22437         * tests/test-sinl.c: New file.
22438
22439         Tests for module 'logl'.
22440         * modules/logl-tests: New file.
22441         * tests/test-logl.c: New file.
22442
22443         Tests for module 'expl'.
22444         * modules/expl-tests: New file.
22445         * tests/test-expl.c: New file.
22446
22447         Tests for module 'cosl'.
22448         * modules/cosl-tests: New file.
22449         * tests/test-cosl.c: New file.
22450
22451         Tests for module 'atanl'.
22452         * modules/atanl-tests: New file.
22453         * tests/test-atanl.c: New file.
22454
22455         Tests for module 'asinl'.
22456         * modules/asinl-tests: New file.
22457         * tests/test-asinl.c: New file.
22458
22459         Tests for module 'acosl'.
22460         * modules/acosl-tests: New file.
22461         * tests/test-acosl.c: New file.
22462
22463         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22464         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22465         tanl): Use the standard gnulib idiom.
22466         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22467         * lib/sinl.c: Likewise.
22468         * lib/tanl.c: Don't include trigl.c.
22469         (kernel_tanl): Make static.
22470         * lib/sincosl.c: Include trigl.h first.
22471         * lib/trigl.c: Likewise.
22472         * m4/acosl.m4: New file.
22473         * m4/asinl.m4: New file.
22474         * m4/atanl.m4: New file.
22475         * m4/cosl.m4: New file.
22476         * m4/expl.m4: New file.
22477         * m4/logl.m4: New file.
22478         * m4/sinl.m4: New file.
22479         * m4/sqrtl.m4: New file.
22480         * m4/tanl.m4: New file.
22481         * m4/mathl.m4: Remove file.
22482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22483         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22484         Don't initialize GNULIB_MATHL.
22485         * modules/acosl: New file.
22486         * modules/asinl: New file.
22487         * modules/atanl: New file.
22488         * modules/cosl: New file.
22489         * modules/expl: New file.
22490         * modules/logl: New file.
22491         * modules/sinl: New file.
22492         * modules/sqrtl: New file.
22493         * modules/tanl: New file.
22494         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22495         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22496         substitute GNULIB_MATHL.
22497         * modules/mathl: Rewritten.
22498         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22499         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22500         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22501         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22502         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22503         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22504         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22505         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22506         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22507
22508 2010-01-18  Bruno Haible  <bruno@clisp.org>
22509
22510         sqrt: Make gl_FUNC_SQRT requirable.
22511         * m4/sqrt.m4: New file.
22512         * modules/sqrt (Files): Add it.
22513         (configure.ac): Invoke gl_FUNC_SQRT.
22514
22515 2010-01-18  Bruno Haible  <bruno@clisp.org>
22516
22517         New modules for common <math.h> functions.
22518         * m4/mathfunc.m4: New file.
22519         * modules/acos: New file.
22520         * modules/asin: New file.
22521         * modules/atan: New file.
22522         * modules/atan2: New file.
22523         * modules/cbrt: New file.
22524         * modules/copysign: New file.
22525         * modules/cos: New file.
22526         * modules/cosh: New file.
22527         * modules/erf: New file.
22528         * modules/erfc: New file.
22529         * modules/exp: New file.
22530         * modules/fabs: New file.
22531         * modules/fmod: New file.
22532         * modules/hypot: New file.
22533         * modules/j0: New file.
22534         * modules/j1: New file.
22535         * modules/jn: New file.
22536         * modules/ldexp: New file.
22537         * modules/lgamma: New file.
22538         * modules/log: New file.
22539         * modules/log10: New file.
22540         * modules/log1p: New file.
22541         * modules/logb: New file.
22542         * modules/modf: New file.
22543         * modules/nextafter: New file.
22544         * modules/pow: New file.
22545         * modules/remainder: New file.
22546         * modules/rint: New file.
22547         * modules/sin: New file.
22548         * modules/sinh: New file.
22549         * modules/sqrt: New file.
22550         * modules/tan: New file.
22551         * modules/tanh: New file.
22552         * modules/y0: New file.
22553         * modules/y1: New file.
22554         * modules/yn: New file.
22555         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22556         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22557         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22558         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22559         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22560         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22561         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22562         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22563         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22564         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22565         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22566         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22567         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22568         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22569         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22570         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22571         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22572         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22573         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22574         * doc/posix-functions/log.texi: Mention the 'log' module.
22575         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22576         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22577         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22578         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22579         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22580         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22581         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22582         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22583         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22584         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22585         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22586         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22587         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22588         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22589         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22590         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22591
22592 2010-01-18  Jim Meyering  <meyering@redhat.com>
22593
22594         ignore-value: relax license to LGPLv2+
22595         * modules/ignore-value (License): Relax to LGPLv2+.
22596
22597         getdate: don't leak when TZ contains two or more '"'s
22598         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22599         double quote in TZ after the first one.
22600
22601         readtokens: do not leak internal token_lengths buffer
22602         * lib/readtokens.c (readtokens): Free the local, lengths,
22603         when the supplied "token_lengths" parameter is NULL.
22604
22605 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22606
22607         Fix a couple of missing LIBTHREAD link failures on AIX.
22608         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22609         $(LIBTHREAD).
22610         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22611
22612         Link test-poll against INET_PTON_LIB.
22613         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22614         for inet_pton on Solaris 10.
22615
22616 2010-01-17  Bruno Haible  <bruno@clisp.org>
22617
22618         unistdio/*-sprintf: Fix typo in module description.
22619         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22620         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22621         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22622         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22623         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22624         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22625         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22626         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22627
22628 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22629
22630         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22631         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22632         variables in shell case patterns, for AIX and HP-UX ksh.
22633
22634         Split large sed scripts, for HP-UX sed.
22635         * modules/stdio: Split sed scripts around 50 sed commands,
22636         to avoid HP-UX limit of 99 commands, in the near future.
22637         * modules/string: Likewise.
22638         * modules/unistd: Likewise.
22639
22640         gnulib-tool: avoid writing in the current directory.
22641         * gnulib-tool (func_emit_lib_Makefile_am)
22642         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22643         not in the current directory, so concurrent gnulib-tool
22644         instances do not interfere.
22645
22646 2010-01-16  Jim Meyering  <meyering@redhat.com>
22647
22648         doc: update users.txt
22649         * users.txt: Add grep.
22650         (diffutils, gzip): Update URLs.
22651
22652 2010-01-12  Bruno Haible  <bruno@clisp.org>
22653
22654         posix_spawn: Avoid test failure on Cygwin.
22655         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22656         characters.
22657         Reported by Simon Josefsson.
22658
22659 2010-01-12  Bruno Haible  <bruno@clisp.org>
22660
22661         * tests/test-cond.c (main): When skipping the test, show the reason.
22662
22663 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22664
22665         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22666
22667 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22668
22669         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22670         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22671
22672 2010-01-12  Eric Blake  <ebb9@byu.net>
22673
22674         build: guarantee AS_VAR_IF
22675         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22676         (gl_AS_VAR_IF): Move...
22677         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22678         Reported by Simon Josefsson.
22679
22680 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22681
22682         * lib/stdio.in.h: Fix typo.
22683
22684 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22685
22686         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22687         libgpg-error.
22688
22689 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22690
22691         * tests/test-xalloc-die.sh: Use $EXEEXT.
22692
22693 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22694             Bruno Haible  <bruno@clisp.org>
22695
22696         getlogin, getlogin_r: Avoid test failure.
22697         * tests/test-getlogin.c: Include <stdio.h>.
22698         (main): Skip the test when the function fails because stdin is not a
22699         tty.
22700         * tests/test-getlogin_r.c: Include <stdio.h>.
22701         (main): Skip the test when the function fails because stdin is not a
22702         tty.
22703
22704 2010-01-11  Eric Blake  <ebb9@byu.net>
22705
22706         tests: avoid more large file warnings
22707         * tests/test-fflush.c: Avoid warning about ftell use.
22708         * tests/test-fseek.c: Avoid warning about fseek use.
22709
22710 2010-01-10  Bruno Haible  <bruno@clisp.org>
22711
22712         nproc: Work better on Linux when /proc and /sys are not mounted.
22713         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22714         as lower bound when, on glibc/Linux systems,
22715         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22716         Suggested by Pádraig Brady <P@draigbrady.com>.
22717         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22718
22719         nproc: Refactor.
22720         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22721         extracted from num_processors.
22722         (num_processors): Call it.
22723
22724 2010-01-11  Jim Meyering  <meyering@redhat.com>
22725
22726         utimecmp: avoid new warning from upcoming gcc-4.5.0
22727         * lib/utimecmp.c (BILLION): Define using #define rather than an
22728         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22729
22730 2010-01-11  Eric Blake  <ebb9@byu.net>
22731
22732         math: add portability warnings for classification macros
22733         * modules/math (Depends-on): Add warn-on-use.
22734         (Makefile.am): Provide new substitutions.
22735         * m4/math_h.m4 (gl_MATH_H): Require inline.
22736         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22737         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22738         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22739         implement warnings.
22740
22741         unistd: warn on use of environ without module
22742         * modules/unistd (Depends-on): Add warn-on-use.
22743         (Makefile.am): Provide new substitutions.
22744         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22745         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22746
22747         stdio: warn on suspicious uses
22748         * modules/stdio (Depends-on): Add warn-on-use.
22749         (Makefile.am): Provide new substitutions.
22750         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22751         fseeko.
22752         * lib/stdio.in.h (gets): Always warn on use.
22753         (fseek, ftell): Adjust when warnings are issued, and honor
22754         _GL_NO_LARGE_FILES as a way to silence the warning.
22755         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22756         any warning about large file offsets.
22757         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22758         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22759         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22760         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22761         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22762         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22763         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22764         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22765
22766         warn-on-use: new module
22767         * modules/warn-on-use: New file.
22768         * build-aux/warn-on-use.h: Likewise.
22769         * m4/warn-on-use.m4: Likewise.
22770         * MODULES.html.sh (Support for building): Mention it.
22771
22772 2010-01-10  Bruno Haible  <bruno@clisp.org>
22773
22774         Tests for module 'unistr/u32-strdup'.
22775         * modules/unistr/u32-strdup-tests: New file.
22776         * tests/unistr/test-u32-strdup.c: New file.
22777
22778         Tests for module 'unistr/u16-strdup'.
22779         * modules/unistr/u16-strdup-tests: New file.
22780         * tests/unistr/test-u16-strdup.c: New file.
22781
22782         Tests for module 'unistr/u8-strdup'.
22783         * modules/unistr/u8-strdup-tests: New file.
22784         * tests/unistr/test-u8-strdup.c: New file.
22785         * tests/unistr/test-strdup.h: New file.
22786
22787         Tests for module 'unistr/u32-strncmp'.
22788         * modules/unistr/u32-strncmp-tests: New file.
22789         * tests/unistr/test-u32-strncmp.c: New file.
22790
22791         Tests for module 'unistr/u16-strncmp'.
22792         * modules/unistr/u16-strncmp-tests: New file.
22793         * tests/unistr/test-u16-strncmp.c: New file.
22794
22795         Tests for module 'unistr/u8-strncmp'.
22796         * modules/unistr/u8-strncmp-tests: New file.
22797         * tests/unistr/test-u8-strncmp.c: New file.
22798         * tests/unistr/test-strncmp.h: New file.
22799
22800         Tests for module 'unistr/u32-strcoll'.
22801         * modules/unistr/u32-strcoll-tests: New file.
22802         * tests/unistr/test-u32-strcoll.c: New file.
22803
22804         Tests for module 'unistr/u16-strcoll'.
22805         * modules/unistr/u16-strcoll-tests: New file.
22806         * tests/unistr/test-u16-strcoll.c: New file.
22807
22808         Tests for module 'unistr/u8-strcoll'.
22809         * modules/unistr/u8-strcoll-tests: New file.
22810         * tests/unistr/test-u8-strcoll.c: New file.
22811
22812         Tests for module 'unistr/u32-strcmp'.
22813         * modules/unistr/u32-strcmp-tests: New file.
22814         * tests/unistr/test-u32-strcmp.c: New file.
22815         * tests/unistr/test-u32-strcmp.h: New file.
22816
22817         Tests for module 'unistr/u16-strcmp'.
22818         * modules/unistr/u16-strcmp-tests: New file.
22819         * tests/unistr/test-u16-strcmp.c: New file.
22820         * tests/unistr/test-u16-strcmp.h: New file.
22821
22822         Tests for module 'unistr/u8-strcmp'.
22823         * modules/unistr/u8-strcmp-tests: New file.
22824         * tests/unistr/test-u8-strcmp.c: New file.
22825         * tests/unistr/test-u8-strcmp.h: New file.
22826         * tests/unistr/test-strcmp.h: New file.
22827
22828         Tests for module 'unistr/u32-strncat'.
22829         * modules/unistr/u32-strncat-tests: New file.
22830         * tests/unistr/test-u32-strncat.c: New file.
22831
22832         Tests for module 'unistr/u16-strncat'.
22833         * modules/unistr/u16-strncat-tests: New file.
22834         * tests/unistr/test-u16-strncat.c: New file.
22835
22836         Tests for module 'unistr/u8-strncat'.
22837         * modules/unistr/u8-strncat-tests: New file.
22838         * tests/unistr/test-u8-strncat.c: New file.
22839         * tests/unistr/test-strncat.h: New file.
22840
22841         Tests for module 'unistr/u32-strcat'.
22842         * modules/unistr/u32-strcat-tests: New file.
22843         * tests/unistr/test-u32-strcat.c: New file.
22844
22845         Tests for module 'unistr/u16-strcat'.
22846         * modules/unistr/u16-strcat-tests: New file.
22847         * tests/unistr/test-u16-strcat.c: New file.
22848
22849         Tests for module 'unistr/u8-strcat'.
22850         * modules/unistr/u8-strcat-tests: New file.
22851         * tests/unistr/test-u8-strcat.c: New file.
22852         * tests/unistr/test-strcat.h: New file.
22853
22854         Tests for module 'unistr/u32-stpncpy'.
22855         * modules/unistr/u32-stpncpy-tests: New file.
22856         * tests/unistr/test-u32-stpncpy.c: New file.
22857
22858         Tests for module 'unistr/u16-stpncpy'.
22859         * modules/unistr/u16-stpncpy-tests: New file.
22860         * tests/unistr/test-u16-stpncpy.c: New file.
22861
22862         Tests for module 'unistr/u8-stpncpy'.
22863         * modules/unistr/u8-stpncpy-tests: New file.
22864         * tests/unistr/test-u8-stpncpy.c: New file.
22865         * tests/unistr/test-stpncpy.h: New file.
22866
22867         Tests for module 'unistr/u32-strncpy'.
22868         * modules/unistr/u32-strncpy-tests: New file.
22869         * tests/unistr/test-u32-strncpy.c: New file.
22870
22871         Tests for module 'unistr/u16-strncpy'.
22872         * modules/unistr/u16-strncpy-tests: New file.
22873         * tests/unistr/test-u16-strncpy.c: New file.
22874
22875         Tests for module 'unistr/u8-strncpy'.
22876         * modules/unistr/u8-strncpy-tests: New file.
22877         * tests/unistr/test-u8-strncpy.c: New file.
22878         * tests/unistr/test-strncpy.h: New file.
22879
22880         Tests for module 'unistr/u32-stpcpy'.
22881         * modules/unistr/u32-stpcpy-tests: New file.
22882         * tests/unistr/test-u32-stpcpy.c: New file.
22883
22884         Tests for module 'unistr/u16-stpcpy'.
22885         * modules/unistr/u16-stpcpy-tests: New file.
22886         * tests/unistr/test-u16-stpcpy.c: New file.
22887
22888         Tests for module 'unistr/u8-stpcpy'.
22889         * modules/unistr/u8-stpcpy-tests: New file.
22890         * tests/unistr/test-u8-stpcpy.c: New file.
22891         * tests/unistr/test-stpcpy.h: New file.
22892
22893         Tests for module 'unistr/u32-strcpy'.
22894         * modules/unistr/u32-strcpy-tests: New file.
22895         * tests/unistr/test-u32-strcpy.c: New file.
22896
22897         Tests for module 'unistr/u16-strcpy'.
22898         * modules/unistr/u16-strcpy-tests: New file.
22899         * tests/unistr/test-u16-strcpy.c: New file.
22900
22901         Tests for module 'unistr/u8-strcpy'.
22902         * modules/unistr/u8-strcpy-tests: New file.
22903         * tests/unistr/test-u8-strcpy.c: New file.
22904         * tests/unistr/test-strcpy.h: New file.
22905
22906         Tests for module 'unistr/u32-strnlen'.
22907         * modules/unistr/u32-strnlen-tests: New file.
22908         * tests/unistr/test-u32-strnlen.c: New file.
22909
22910         Tests for module 'unistr/u16-strnlen'.
22911         * modules/unistr/u16-strnlen-tests: New file.
22912         * tests/unistr/test-u16-strnlen.c: New file.
22913
22914         Tests for module 'unistr/u8-strnlen'.
22915         * modules/unistr/u8-strnlen-tests: New file.
22916         * tests/unistr/test-u8-strnlen.c: New file.
22917         * tests/unistr/test-strnlen.h: New file.
22918
22919         Tests for module 'unistr/u32-strlen'.
22920         * modules/unistr/u32-strlen-tests: New file.
22921         * tests/unistr/test-u32-strlen.c: New file.
22922
22923         Tests for module 'unistr/u16-strlen'.
22924         * modules/unistr/u16-strlen-tests: New file.
22925         * tests/unistr/test-u16-strlen.c: New file.
22926
22927         Tests for module 'unistr/u8-strlen'.
22928         * modules/unistr/u8-strlen-tests: New file.
22929         * tests/unistr/test-u8-strlen.c: New file.
22930
22931         Tests for module 'unistr/u32-prev'.
22932         * modules/unistr/u32-prev-tests: New file.
22933         * tests/unistr/test-u32-prev.c: New file.
22934
22935         Tests for module 'unistr/u16-prev'.
22936         * modules/unistr/u16-prev-tests: New file.
22937         * tests/unistr/test-u16-prev.c: New file.
22938
22939         Tests for module 'unistr/u8-prev'.
22940         * modules/unistr/u8-prev-tests: New file.
22941         * tests/unistr/test-u8-prev.c: New file.
22942
22943         Tests for module 'unistr/u32-next'.
22944         * modules/unistr/u32-next-tests: New file.
22945         * tests/unistr/test-u32-next.c: New file.
22946
22947         Tests for module 'unistr/u16-next'.
22948         * modules/unistr/u16-next-tests: New file.
22949         * tests/unistr/test-u16-next.c: New file.
22950
22951         Tests for module 'unistr/u8-next'.
22952         * modules/unistr/u8-next-tests: New file.
22953         * tests/unistr/test-u8-next.c: New file.
22954
22955         Tests for module 'unistr/u32-strmbtouc'.
22956         * modules/unistr/u32-strmbtouc-tests: New file.
22957         * tests/unistr/test-u32-strmbtouc.c: New file.
22958
22959         Tests for module 'unistr/u16-strmbtouc'.
22960         * modules/unistr/u16-strmbtouc-tests: New file.
22961         * tests/unistr/test-u16-strmbtouc.c: New file.
22962
22963         Tests for module 'unistr/u8-strmbtouc'.
22964         * modules/unistr/u8-strmbtouc-tests: New file.
22965         * tests/unistr/test-u8-strmbtouc.c: New file.
22966
22967         Tests for module 'unistr/u32-strmblen'.
22968         * modules/unistr/u32-strmblen-tests: New file.
22969         * tests/unistr/test-u32-strmblen.c: New file.
22970
22971         Tests for module 'unistr/u16-strmblen'.
22972         * modules/unistr/u16-strmblen-tests: New file.
22973         * tests/unistr/test-u16-strmblen.c: New file.
22974
22975         Tests for module 'unistr/u8-strmblen'.
22976         * modules/unistr/u8-strmblen-tests: New file.
22977         * tests/unistr/test-u8-strmblen.c: New file.
22978
22979         Tests for module 'unistr/u32-cpy-alloc'.
22980         * modules/unistr/u32-cpy-alloc-tests: New file.
22981         * tests/unistr/test-u32-cpy-alloc.c: New file.
22982
22983         Tests for module 'unistr/u16-cpy-alloc'.
22984         * modules/unistr/u16-cpy-alloc-tests: New file.
22985         * tests/unistr/test-u16-cpy-alloc.c: New file.
22986
22987         Tests for module 'unistr/u8-cpy-alloc'.
22988         * modules/unistr/u8-cpy-alloc-tests: New file.
22989         * tests/unistr/test-u8-cpy-alloc.c: New file.
22990         * tests/unistr/test-cpy-alloc.h: New file.
22991
22992         Tests for module 'unistr/u32-mbsnlen'.
22993         * modules/unistr/u32-mbsnlen-tests: New file.
22994         * tests/unistr/test-u32-mbsnlen.c: New file.
22995
22996         Tests for module 'unistr/u16-mbsnlen'.
22997         * modules/unistr/u16-mbsnlen-tests: New file.
22998         * tests/unistr/test-u16-mbsnlen.c: New file.
22999
23000         Tests for module 'unistr/u8-mbsnlen'.
23001         * modules/unistr/u8-mbsnlen-tests: New file.
23002         * tests/unistr/test-u8-mbsnlen.c: New file.
23003
23004         Tests for module 'unistr/u32-chr'.
23005         * modules/unistr/u32-chr-tests: New file.
23006         * tests/unistr/test-u32-chr.c: New file.
23007
23008         Tests for module 'unistr/u16-chr'.
23009         * modules/unistr/u16-chr-tests: New file.
23010         * tests/unistr/test-u16-chr.c: New file.
23011
23012         Tests for module 'unistr/u8-chr'.
23013         * modules/unistr/u8-chr-tests: New file.
23014         * tests/unistr/test-u8-chr.c: New file.
23015         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
23016
23017         Tests for module 'unistr/u32-cmp2'.
23018         * modules/unistr/u32-cmp2-tests: New file.
23019         * tests/unistr/test-u32-cmp2.c: New file.
23020
23021         Tests for module 'unistr/u16-cmp2'.
23022         * modules/unistr/u16-cmp2-tests: New file.
23023         * tests/unistr/test-u16-cmp2.c: New file.
23024
23025         Tests for module 'unistr/u8-cmp2'.
23026         * modules/unistr/u8-cmp2-tests: New file.
23027         * tests/unistr/test-u8-cmp2.c: New file.
23028         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
23029
23030         Tests for module 'unistr/u32-cmp'.
23031         * modules/unistr/u32-cmp-tests: New file.
23032         * tests/unistr/test-u32-cmp.c: New file.
23033
23034         Tests for module 'unistr/u16-cmp'.
23035         * modules/unistr/u16-cmp-tests: New file.
23036         * tests/unistr/test-u16-cmp.c: New file.
23037
23038         Tests for module 'unistr/u8-cmp'.
23039         * modules/unistr/u8-cmp-tests: New file.
23040         * tests/unistr/test-u8-cmp.c: New file.
23041         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
23042
23043         Tests for module 'unistr/u32-set'.
23044         * modules/unistr/u32-set-tests: New file.
23045         * tests/unistr/test-u32-set.c: New file.
23046
23047         Tests for module 'unistr/u16-set'.
23048         * modules/unistr/u16-set-tests: New file.
23049         * tests/unistr/test-u16-set.c: New file.
23050
23051         Tests for module 'unistr/u8-set'.
23052         * modules/unistr/u8-set-tests: New file.
23053         * tests/unistr/test-u8-set.c: New file.
23054         * tests/unistr/test-set.h: New file.
23055
23056         Tests for module 'unistr/u32-move'.
23057         * modules/unistr/u32-move-tests: New file.
23058         * tests/unistr/test-u32-move.c: New file.
23059
23060         Tests for module 'unistr/u16-move'.
23061         * modules/unistr/u16-move-tests: New file.
23062         * tests/unistr/test-u16-move.c: New file.
23063
23064         Tests for module 'unistr/u8-move'.
23065         * modules/unistr/u8-move-tests: New file.
23066         * tests/unistr/test-u8-move.c: New file.
23067         * tests/unistr/test-move.h: New file.
23068
23069         Tests for module 'unistr/u32-cpy'.
23070         * modules/unistr/u32-cpy-tests: New file.
23071         * tests/unistr/test-u32-cpy.c: New file.
23072
23073         Tests for module 'unistr/u16-cpy'.
23074         * modules/unistr/u16-cpy-tests: New file.
23075         * tests/unistr/test-u16-cpy.c: New file.
23076
23077         Tests for module 'unistr/u8-cpy'.
23078         * modules/unistr/u8-cpy-tests: New file.
23079         * tests/unistr/test-u8-cpy.c: New file.
23080         * tests/unistr/test-cpy.h: New file.
23081
23082 2010-01-09  Bruno Haible  <bruno@clisp.org>
23083
23084         Tests for module 'unistr/u32-uctomb'.
23085         * modules/unistr/u32-uctomb-tests: New file.
23086         * tests/unistr/test-u32-uctomb.c: New file.
23087
23088         Tests for module 'unistr/u16-uctomb'.
23089         * modules/unistr/u16-uctomb-tests: New file.
23090         * tests/unistr/test-u16-uctomb.c: New file.
23091
23092         Tests for module 'unistr/u8-uctomb'.
23093         * modules/unistr/u8-uctomb-tests: New file.
23094         * tests/unistr/test-u8-uctomb.c: New file.
23095
23096         Tests for module 'unistr/u32-mbtoucr'.
23097         * modules/unistr/u32-mbtoucr-tests: New file.
23098         * tests/unistr/test-u32-mbtoucr.c: New file.
23099
23100         Tests for module 'unistr/u16-mbtoucr'.
23101         * modules/unistr/u16-mbtoucr-tests: New file.
23102         * tests/unistr/test-u16-mbtoucr.c: New file.
23103
23104         Tests for module 'unistr/u8-mbtoucr'.
23105         * modules/unistr/u8-mbtoucr-tests: New file.
23106         * tests/unistr/test-u8-mbtoucr.c: New file.
23107
23108         Tests for module 'unistr/u32-mbtouc'.
23109         * modules/unistr/u32-mbtouc-tests: New file.
23110         * tests/unistr/test-u32-mbtouc.c: New file.
23111
23112         Tests for module 'unistr/u16-mbtouc'.
23113         * modules/unistr/u16-mbtouc-tests: New file.
23114         * tests/unistr/test-u16-mbtouc.c: New file.
23115
23116         Tests for module 'unistr/u8-mbtouc'.
23117         * modules/unistr/u8-mbtouc-tests: New file.
23118         * tests/unistr/test-u8-mbtouc.c: New file.
23119
23120         Tests for module 'unistr/u32-mbtouc-unsafe'.
23121         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
23122         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
23123         * tests/unistr/test-u32-mbtouc.h: New file.
23124
23125         Tests for module 'unistr/u16-mbtouc-unsafe'.
23126         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
23127         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
23128         * tests/unistr/test-u16-mbtouc.h: New file.
23129
23130         Tests for module 'unistr/u8-mbtouc-unsafe'.
23131         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
23132         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
23133         * tests/unistr/test-u8-mbtouc.h: New file.
23134
23135         Tests for module 'unistr/u32-mblen'.
23136         * modules/unistr/u32-mblen-tests: New file.
23137         * tests/unistr/test-u32-mblen.c: New file.
23138
23139         Tests for module 'unistr/u16-mblen'.
23140         * modules/unistr/u16-mblen-tests: New file.
23141         * tests/unistr/test-u16-mblen.c: New file.
23142
23143         Tests for module 'unistr/u8-mblen'.
23144         * modules/unistr/u8-mblen-tests: New file.
23145         * tests/unistr/test-u8-mblen.c: New file.
23146
23147         Tests for module 'unistr/u32-to-u16'.
23148         * modules/unistr/u32-to-u16-tests: New file.
23149         * tests/unistr/test-u32-to-u16.c: New file.
23150
23151         Tests for module 'unistr/u32-to-u8'.
23152         * modules/unistr/u32-to-u8-tests: New file.
23153         * tests/unistr/test-u32-to-u8.c: New file.
23154
23155         Tests for module 'unistr/u16-to-u32'.
23156         * modules/unistr/u16-to-u32-tests: New file.
23157         * tests/unistr/test-u16-to-u32.c: New file.
23158
23159         Tests for module 'unistr/u16-to-u8'.
23160         * modules/unistr/u16-to-u8-tests: New file.
23161         * tests/unistr/test-u16-to-u8.c: New file.
23162
23163         Tests for module 'unistr/u8-to-u32'.
23164         * modules/unistr/u8-to-u32-tests: New file.
23165         * tests/unistr/test-u8-to-u32.c: New file.
23166
23167         Tests for module 'unistr/u8-to-u16'.
23168         * modules/unistr/u8-to-u16-tests: New file.
23169         * tests/unistr/test-u8-to-u16.c: New file.
23170
23171         Tests for module 'unistr/u32-check'.
23172         * modules/unistr/u32-check-tests: New file.
23173         * tests/unistr/test-u32-check.c: New file.
23174
23175         Tests for module 'unistr/u16-check'.
23176         * modules/unistr/u16-check-tests: New file.
23177         * tests/unistr/test-u16-check.c: New file.
23178
23179         Tests for module 'unistr/u8-check'.
23180         * modules/unistr/u8-check-tests: New file.
23181         * tests/unistr/test-u8-check.c: New file.
23182
23183         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
23184         (category_equals): New function.
23185         (main): Add more tests.
23186         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
23187
23188         * tests/unictype/test-bidi_byname.c (main): Add more tests.
23189
23190 2010-01-10  Bruno Haible  <bruno@clisp.org>
23191
23192         unistr/u*-strcoll: Try harder to distinguish different strings.
23193         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
23194         compare s1 and s2 to see if they are different.
23195
23196 2010-01-10  Bruno Haible  <bruno@clisp.org>
23197
23198         unistr/u*-stpncpy: Fix the return value.
23199         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
23200         description of the return value consistent with stpncpy in glibc.
23201         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
23202         written non-NUL unit.
23203
23204 2010-01-10  Bruno Haible  <bruno@clisp.org>
23205
23206         unistr/u*-next: Add missing dependencies.
23207         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
23208         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
23209         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
23210
23211 2010-01-10  Bruno Haible  <bruno@clisp.org>
23212
23213         unistr/u8-mbsnlen: Fix return value for incomplete character.
23214         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
23215         u8_mblen.
23216         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
23217         Remove unistr/u8-mblen.
23218         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
23219         u16_mblen.
23220         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
23221         Remove unistr/u16-mblen.
23222
23223 2010-01-10  Bruno Haible  <bruno@clisp.org>
23224
23225         wchar: Fix compilation error when <wchar.h> is used from coreutils.
23226         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
23227         Reported by Brian Gough <bjg@gnu.org> and
23228         Chris Clayton <chris2553@googlemail.com> via
23229         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
23230
23231 2010-01-09  Bruno Haible  <bruno@clisp.org>
23232
23233         unistr/u16-to-u32: Reject invalid input.
23234         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
23235         u16_mbtouc.
23236         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
23237         Remove unistr/u16-mbtouc.
23238
23239         unistr/u16-to-u8: Reject invalid input.
23240         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
23241         u16_mbtouc.
23242         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
23243         Remove unistr/u16-mbtouc.
23244
23245         unistr/u8-to-u32: Reject invalid input.
23246         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
23247         u8_mbtouc.
23248         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
23249         Remove unistr/u8-mbtouc.
23250
23251         unistr/u8-to-u16: Reject invalid input.
23252         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
23253         u8_mbtouc.
23254         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
23255         Remove unistr/u8-mbtouc.
23256
23257 2010-01-09  Bruno Haible  <bruno@clisp.org>
23258
23259         Tests for module 'getlogin'.
23260         * modules/getlogin-tests: New file.
23261         * tests/test-getlogin.c: New file.
23262
23263         New module 'getlogin'.
23264         * lib/unistd.in.h (getlogin): New declaration.
23265         * lib/getlogin.c: New file.
23266         * m4/getlogin.m4: New file.
23267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
23268         HAVE_GETLOGIN.
23269         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
23270         HAVE_GETLOGIN.
23271         * modules/getlogin: New file.
23272         * doc/posix-functions/getlogin.texi: Mention the new module.
23273         Reported by John W. Eaton <jwe@gnu.org>.
23274
23275 2010-01-09  Bruno Haible  <bruno@clisp.org>
23276
23277         getlogin_r: Support for native Windows.
23278         * lib/getlogin_r.c: Include <windows.h>
23279         (getlogin_r): Implement for native Windows.
23280         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
23281         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
23282         via John W. Eaton <jwe@gnu.org>.
23283
23284 2010-01-09  Bruno Haible  <bruno@clisp.org>
23285
23286         getlogin_r: Small fixes.
23287         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
23288         succeeds.
23289         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
23290         before testing whether getlogin_r is declared. No need to set
23291         HAVE_DECL_GETLOGIN_R to 1.
23292         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
23293
23294 2010-01-09  Bruno Haible  <bruno@clisp.org>
23295
23296         * lib/unistd.in.h (getlogin_r): Add comment.
23297
23298 2010-01-09  Bruno Haible  <bruno@clisp.org>
23299
23300         Tests for module 'getlogin_r'.
23301         * modules/getlogin_r-tests: New file.
23302         * tests/test-getlogin_r.c: New file.
23303
23304 2010-01-09  Jim Meyering  <meyering@redhat.com>
23305
23306         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23307         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23308         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23309
23310 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23311
23312         * lib/dup2.c (rpl_dup2): Improve comment.
23313
23314 2010-01-08  Eric Blake  <ebb9@byu.net>
23315
23316         maint.mk: allow packages to add makefile @@ exceptions
23317         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23318         (sc_makefile_check): Rename...
23319         (sc_makefile_at_at_check): ...to this, and use hook.
23320
23321         dup2: work around mingw bug
23322         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23323         Reported by Simon Josefsson.
23324
23325 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23326
23327         glob: Fix C++ compilation.
23328         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23329         C++.
23330
23331 2010-01-07  Bruno Haible  <bruno@clisp.org>
23332
23333         Fix indentation of wctype.in.h, broken since 2007-01-06.
23334         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23335
23336 2010-01-07  Bruno Haible  <bruno@clisp.org>
23337
23338         mbslen: Avoid collision with system function.
23339         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23340         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23341         * m4/mbslen.m4: New file.
23342         * modules/mbslen (Files): Add it.
23343         (configure.ac): Invoke gl_MBSLEN.
23344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23345         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23346         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23347         via Ian Beckwith <ianb@erislabs.net>.
23348
23349 2010-01-07  Bruno Haible  <bruno@clisp.org>
23350
23351         dirent: Document the last fix.
23352         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23353
23354 2010-01-07  Bruno Haible  <bruno@clisp.org>
23355
23356         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23357         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23358         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23359         va_list are defined.
23360         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23361         Reported by Eric Blake.
23362
23363 2010-01-07  Bruno Haible  <bruno@clisp.org>
23364
23365         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23366         * modules/xlist (Depends-on): Add 'list',
23367         * modules/xoset (Depends-on): Add 'oset'.
23368         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23369
23370 2010-01-07  Bruno Haible  <bruno@clisp.org>
23371
23372         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23373         * doc/posix-functions/strncasecmp.texi: Likewise.
23374
23375 2010-01-07  Bruno Haible  <bruno@clisp.org>
23376
23377         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23378
23379 2010-01-07  John W. Eaton  <jwe@octave.org>
23380
23381         wctype: allow C++ use
23382         * lib/wctype.in.h: Add extern "C" block for C++.
23383
23384 2010-01-06  Eric Blake  <ebb9@byu.net>
23385
23386         maint.mk: detect incorrect GFDL usage
23387         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23388
23389 2010-01-06  Jim Meyering  <meyering@redhat.com>
23390         and Eric Blake  <ebb9@byu.net>
23391
23392         maint.mk: ignore multi-line copyright in NEWS
23393         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23394
23395 2010-01-06  Eric Blake  <ebb9@byu.net>
23396
23397         select: add missing dependency
23398         * modules/select-tests (Depends-on): Move sockets dependency...
23399         * modules/select (Depends-on): ...here.
23400         Reported by Ian Beckwith.
23401
23402         doc: regenerate INSTALL
23403         * doc/INSTALL: Reflect recent autoconf update.
23404         * doc/INSTALL.ISO: Likewise.
23405         * doc/INSTALL.UTF-8: Likewise.
23406
23407         pread: fix compilation on glibc
23408         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23409         Reported by Ralf Wildenhues.
23410
23411         dirent: fix test failure
23412         * lib/dirent.in.h (includes): Guarantee ino_t.
23413         Reported by Ralf Wildenhues.
23414
23415 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23416
23417         linkat, renameat: avoid bad free
23418         * lib/at-func2.c (at_func2): Fix typo.
23419         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23420
23421 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23422
23423         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23424         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23425         to avoid failure of symlink test later.
23426
23427 2010-01-06  Eric Blake  <ebb9@byu.net>
23428
23429         stdio, unistd: guarantee ssize_t
23430         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23431         2008 are exposed when needed.
23432         * lib/stdio.in.h (includes): Likewise.
23433         Reported by Ralf Wildenhues.
23434
23435 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23436
23437         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23438         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23439         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23440
23441 2010-01-06  Jim Meyering  <meyering@redhat.com>
23442
23443         readtokens: this module *does* require xalloc.h
23444         It uses only functions that were omitted by the old syntax-check rule.
23445         * lib/readtokens.c: Include "xalloc.h" once again.
23446         * modules/readtokens (Depends-on): Add xalloc.
23447         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23448
23449 2010-01-05  Eric Blake  <ebb9@byu.net>
23450
23451         maint: support 'make announcement' from a VPATH build
23452         * top/maint.mk (announcement): Look for correct NEWS file.
23453
23454 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23455
23456         utimens (fdutimens): ignore a negative FD, per contract
23457         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23458         when we have a valid file descriptor.  Otherwise, using a brand
23459         new glibc (with just-patched futimens that now fails with EBADF)
23460         would cause this function to fail with ENOSYS.
23461         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23462         See also http://bugzilla.redhat.com/552320.
23463
23464 2010-01-05  Eric Blake  <ebb9@byu.net>
23465
23466         strcase: document what it provides
23467         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23468         gnulib module.
23469         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23470         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23471
23472 2010-01-05  Jim Meyering  <meyering@redhat.com>
23473
23474         maint: remove useless inclusions of "xalloc.h"
23475         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23476         * lib/readtokens.c: Likewise.
23477         * lib/same.c: Likewise.
23478         * modules/getloadavg (Depends-on): Remove xalloc.
23479         * modules/readtokens: Likewise.
23480         * modules/same: Likewise.
23481
23482         maint.mk: include 4 more function names in alloca.h-checking regexp
23483         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23484         regexp.  Before, we would give a false-positive (saying alloca.h
23485         is included unnecessarily) when the only uses involved omitted symbols.
23486
23487         xalloc.h: use consistent formatting
23488         * lib/xalloc.h: Move declarations to start in the first column.
23489
23490 2010-01-05  Eric Blake  <ebb9@byu.net>
23491
23492         mkdir: avoid xalloc
23493         * lib/mkdir.c (includes): Drop unused header.
23494         Reported by John W. Eaton.
23495
23496 2010-01-04  Jim Meyering  <meyering@redhat.com>
23497
23498         nl_langinfo: avoid configure-time syntax error
23499         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23500         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23501         the empty string.  Don't let that provoke a shell syntax error.
23502
23503         regcomp, regexec, fnmatch: avoid array bounds read error
23504         * lib/regcomp.c (build_equiv_class): From glibc:
23505         Use only the low 24 bits of a findidx return value as an index
23506         into the weights array.  Patch by Ulrich Drepper:
23507         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23508         * lib/regexec.c (check_node_accept_bytes): Likewise.
23509         * lib/fnmatch_loop.c (FCT): Likewise.
23510
23511         regcomp: skip collseq lookup when there are no rules
23512         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23513         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23514
23515         regcomp: recognize ill-formed { } expressions
23516         * lib/regcomp.c (parse_dup_op): From glibc:
23517         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23518
23519         regcomp: fix typo in comment
23520         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23521         s/satisfy/satisfies/.
23522
23523         regcomp: sync from glibc: remove dead store
23524         * lib/regcomp.c (duplicate_node_closure): Remove useless
23525         search_duplicated_node call and dead store.
23526
23527         regcomp: sync from glibc; always use nl_langinfo
23528         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23529         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23530         * modules/regex (Depends-on): Add nl_langinfo.
23531
23532 2010-01-04  Eric Blake  <ebb9@byu.net>
23533
23534         fdopendir: fix configure test
23535         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23536
23537 2010-01-01  Bruno Haible  <bruno@clisp.org>
23538
23539         wchar: Remove unused configure check.
23540         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23541
23542 2010-01-01  Eric Blake  <ebb9@byu.net>
23543
23544         headers: make check of system header explicit
23545         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23546         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23547         ourselves.
23548         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23549         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23550         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23551         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23552         internals.
23553         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23554         missing.
23555         Suggested by Bruno Haible.
23556
23557 2010-01-01  Jim Meyering  <meyering@redhat.com>
23558
23559         ChangeLog: tweak to eliminate unnecessary copyright line
23560         * ChangeLog: Remove a copyright line that was mistakenly updated
23561         by today's update-copyright run.  Reported by Eric Blake.
23562
23563         test-update-copyright: don't let envvar setting cause test failure
23564         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23565
23566 2010-01-01  Bruno Haible  <bruno@clisp.org>
23567
23568         localename: Avoid gcc warning.
23569         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23570         function if it is not used.
23571
23572 2010-01-01  Jim Meyering  <meyering@redhat.com>
23573
23574         update nearly all FSF copyright year lists to include 2010
23575         Use the same procedure as for 2009, outlined in
23576         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23577
23578         version-etc: set COPYRIGHT_YEAR to 2010
23579         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23580
23581 2009-12-31  Eric Blake  <ebb9@byu.net>
23582
23583         doc: correct availability of cygwin 1.5.x getopt
23584         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23585         variables.
23586         * doc/posix-functions/opterr.texi (opterr): Likewise.
23587         * doc/posix-functions/optind.texi (optind): Likewise.
23588         * doc/posix-functions/optopt.texi (optopt): Likewise.
23589         * doc/posix-functions/tzname.texi (tzname): Likewise.
23590
23591         openat: update maintainer
23592         * modules/openat (Maintainer): Add myself.
23593
23594         utimens: avoid shadowing warning
23595         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23596         buffers into one, to avoid shadowing, as well as avoiding a
23597         redundant stat.
23598         Reported by Jim Meyering.
23599
23600         test-dup2: avoid compiler warning
23601         * tests/test-dup2.c (is_inheritable): Only define if used.
23602
23603 2010-01-01  Bruno Haible  <bruno@clisp.org>
23604
23605         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23606         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23607         defined, use wctomb instead of wcrtomb.
23608
23609 2010-01-01  Bruno Haible  <bruno@clisp.org>
23610
23611         iconv: Reject native Solaris iconv.
23612         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23613         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23614
23615 2009-12-31  Bruno Haible  <bruno@clisp.org>
23616
23617         * tests/test-signal.c (main): Remove test of 'SIG'.
23618
23619 2009-12-31  Bruno Haible  <bruno@clisp.org>
23620
23621         spawn: Fix incomplete fix.
23622         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23623         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23624         warnings for GNULIB_POSIXCHECK again.
23625         Reported by Eric Blake.
23626
23627 2009-12-31  Bruno Haible  <bruno@clisp.org>
23628
23629         Avoid namespace pollution on glibc systems.
23630         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23631         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23632         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23633         glibc systems.
23634
23635 2009-12-31  Bruno Haible  <bruno@clisp.org>
23636
23637         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23638         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23639         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23640         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23641         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23642         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23643         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23644
23645 2009-12-31  Bruno Haible  <bruno@clisp.org>
23646
23647         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23648         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23649         afterwards.
23650
23651 2009-12-31  Bruno Haible  <bruno@clisp.org>
23652
23653         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23654         SYS_UTSNAME_H.
23655
23656 2009-12-31  Bruno Haible  <bruno@clisp.org>
23657
23658         spawn: Fix misapplied patch.
23659         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23660         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23661         warnings for GNULIB_POSIXCHECK.
23662
23663 2009-12-31  Bruno Haible  <bruno@clisp.org>
23664
23665         times: Update after sys_times changed.
23666         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23667         * modules/times (Files): Add it.
23668         (configure.ac): Invoke gl_FUNC_TIMES.
23669
23670 2009-12-31  Bruno Haible  <bruno@clisp.org>
23671
23672         Use AC_C_INLINE where necessary.
23673         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23674         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23675         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23676         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23677         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23678         * m4/mbiter.m4 (gl_MBITER): Likewise.
23679         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23680         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23681         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23682         * modules/u64 (configure.ac): Likewise.
23683
23684 2009-12-31  Bruno Haible  <bruno@clisp.org>
23685
23686         Use AC_C_INLINE instead of module 'inline' where possible.
23687         * modules/inline (Description): Clarify purpose.
23688         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23689         * modules/count-one-bits (Depends-on): Remove inline.
23690         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23691         * modules/openat (Depends-on): Remove inline.
23692         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23693         instead of depending on module 'inline'.
23694         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23695         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23696         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23697         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23698         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23699         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23700         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23701         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23702         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23703         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23704         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23705         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23706         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23707         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23708         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23709         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23710         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23711         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23712         Likewise.
23713         * modules/unictype/property-ascii-hex-digit (Depends-on,
23714         configure.ac): Likewise.
23715         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23716         configure.ac): Likewise.
23717         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23718         configure.ac): Likewise.
23719         * modules/unictype/property-bidi-block-separator (Depends-on,
23720         configure.ac): Likewise.
23721         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23722         configure.ac): Likewise.
23723         * modules/unictype/property-bidi-common-separator (Depends-on,
23724         configure.ac): Likewise.
23725         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23726         Likewise.
23727         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23728         configure.ac): Likewise.
23729         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23730         configure.ac): Likewise.
23731         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23732         configure.ac): Likewise.
23733         * modules/unictype/property-bidi-european-digit (Depends-on,
23734         configure.ac): Likewise.
23735         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23736         configure.ac): Likewise.
23737         * modules/unictype/property-bidi-left-to-right (Depends-on,
23738         configure.ac): Likewise.
23739         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23740         configure.ac): Likewise.
23741         * modules/unictype/property-bidi-other-neutral (Depends-on,
23742         configure.ac): Likewise.
23743         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23744         Likewise.
23745         * modules/unictype/property-bidi-segment-separator (Depends-on,
23746         configure.ac): Likewise.
23747         * modules/unictype/property-bidi-whitespace (Depends-on,
23748         configure.ac): Likewise.
23749         * modules/unictype/property-combining (Depends-on, configure.ac):
23750         Likewise.
23751         * modules/unictype/property-composite (Depends-on, configure.ac):
23752         Likewise.
23753         * modules/unictype/property-currency-symbol (Depends-on,
23754         configure.ac): Likewise.
23755         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23756         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23757         Likewise.
23758         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23759         configure.ac): Likewise.
23760         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23761         Likewise.
23762         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23763         Likewise.
23764         * modules/unictype/property-extender (Depends-on, configure.ac):
23765         Likewise.
23766         * modules/unictype/property-format-control (Depends-on, configure.ac):
23767         Likewise.
23768         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23769         Likewise.
23770         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23771         Likewise.
23772         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23773         Likewise.
23774         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23775         Likewise.
23776         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23777         Likewise.
23778         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23779         Likewise.
23780         * modules/unictype/property-id-start (Depends-on, configure.ac):
23781         Likewise.
23782         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23783         Likewise.
23784         * modules/unictype/property-ids-binary-operator (Depends-on,
23785         configure.ac): Likewise.
23786         * modules/unictype/property-ids-trinary-operator (Depends-on,
23787         configure.ac): Likewise.
23788         * modules/unictype/property-ignorable-control (Depends-on,
23789         configure.ac): Likewise.
23790         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23791         Likewise.
23792         * modules/unictype/property-join-control (Depends-on, configure.ac):
23793         Likewise.
23794         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23795         Likewise.
23796         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23797         Likewise.
23798         * modules/unictype/property-logical-order-exception (Depends-on,
23799         configure.ac): Likewise.
23800         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23801         Likewise.
23802         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23803         * modules/unictype/property-non-break (Depends-on, configure.ac):
23804         Likewise.
23805         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23806         Likewise.
23807         * modules/unictype/property-numeric (Depends-on, configure.ac):
23808         Likewise.
23809         * modules/unictype/property-other-alphabetic (Depends-on,
23810         configure.ac): Likewise.
23811         * modules/unictype/property-other-default-ignorable-code-point
23812         (Depends-on, configure.ac): Likewise.
23813         * modules/unictype/property-other-grapheme-extend (Depends-on,
23814         configure.ac): Likewise.
23815         * modules/unictype/property-other-id-continue (Depends-on,
23816         configure.ac): Likewise.
23817         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23818         Likewise.
23819         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23820         Likewise.
23821         * modules/unictype/property-other-math (Depends-on, configure.ac):
23822         Likewise.
23823         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23824         Likewise.
23825         * modules/unictype/property-paired-punctuation (Depends-on,
23826         configure.ac): Likewise.
23827         * modules/unictype/property-paragraph-separator (Depends-on,
23828         configure.ac): Likewise.
23829         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23830         Likewise.
23831         * modules/unictype/property-pattern-white-space (Depends-on,
23832         configure.ac): Likewise.
23833         * modules/unictype/property-private-use (Depends-on, configure.ac):
23834         Likewise.
23835         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23836         Likewise.
23837         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23838         Likewise.
23839         * modules/unictype/property-radical (Depends-on, configure.ac):
23840         Likewise.
23841         * modules/unictype/property-sentence-terminal (Depends-on,
23842         configure.ac): Likewise.
23843         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23844         Likewise.
23845         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23846         * modules/unictype/property-terminal-punctuation (Depends-on,
23847         configure.ac): Likewise.
23848         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23849         Likewise.
23850         * modules/unictype/property-unassigned-code-value (Depends-on,
23851         configure.ac): Likewise.
23852         * modules/unictype/property-unified-ideograph (Depends-on,
23853         configure.ac): Likewise.
23854         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23855         Likewise.
23856         * modules/unictype/property-variation-selector (Depends-on,
23857         configure.ac): Likewise.
23858         * modules/unictype/property-white-space (Depends-on, configure.ac):
23859         Likewise.
23860         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23861         Likewise.
23862         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23863         Likewise.
23864         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23865         Likewise.
23866         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23867         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23868         Likewise.
23869
23870 2009-12-31  Bruno Haible  <bruno@clisp.org>
23871
23872         Remove unnecessary AC_C_INLINE invocation.
23873         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
23874         since 2009-08-21.
23875
23876 2009-12-31  Jim Meyering  <meyering@redhat.com>
23877
23878         maint.mk: don't require explicit gpg_key_ID in cfg.mk
23879         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
23880         With this change, we can all remove the gpg_key_ID = ... definition
23881         from our respective cfg.mk files.
23882
23883         maint.mk: create announcement template in ~/, not in /tmp
23884         * top/maint.mk (emit_upload_commands): Adjust.
23885         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
23886         Remove temporary file, .ci-msg.
23887
23888 2009-12-31  Eric Blake  <ebb9@byu.net>
23889
23890         link-warning: always build headers with link warnings
23891         * modules/arpa_inet (Makefile.am): Always build replacement
23892         header.
23893         * modules/ctype (Makefile.am): Likewise.
23894         * modules/dirent (Makefile.am): Likewise.
23895         * modules/inttypes (Makefile.am): Likewise.
23896         * modules/langinfo (Makefile.am): Likewise.
23897         * modules/locale (Makefile.am): Likewise.
23898         * modules/spawn (Makefile.am): Likewise.
23899         * modules/sys_file (Makefile.am): Likewise.
23900         * modules/sys_ioctl (Makefile.am): Likewise.
23901         * modules/sys_select (Makefile.am): Likewise.
23902         * modules/sys_socket (Makefile.am): Likewise.
23903         * modules/sys_times (Makefile.am): Likewise.
23904         * modules/sys_utsname (Makefile.am): Likewise.
23905         * modules/sys_wait (Makefile.am): Likewise.
23906         * modules/wchar (Makefile.am): Likewise.
23907         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
23908         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
23909         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
23910         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
23911         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
23912         Likewise.
23913         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23914         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23915         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
23916         Likewise.
23917         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
23918         Likewise.
23919         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23920         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
23921         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
23922         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23923         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23924         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23925         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23926         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
23927         (gl_WCHAR_H_DEFAULTS): Likewise.
23928
23929 2009-12-31  Eric Blake  <ebb9@byu.net>
23930
23931         signal, spawn: use link warnings
23932         * lib/signal.in.h (sigset_t): Make unconditional.
23933         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
23934         (sigpending, sigprocmask, sigaction): Add link warnings.
23935         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
23936         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
23937         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
23938         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
23939         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
23940         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
23941         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
23942         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
23943         (posix_spawn_file_actions_destroy)
23944         (posix_spawn_file_actions_addopen)
23945         (posix_spawn_file_actions_addclose)
23946         (posix_spawn_file_actions_adddup2): Likewise.
23947         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
23948         * tests/test-signal.c (main): Enhance test.
23949
23950         spawn: improve wrapper support
23951         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
23952         (gl_SPAWN_H_DEFAULTS): New defaults.
23953         * modules/spawn (Makefile.am): Substitute them.
23954         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
23955         Only declare if missing or broken.
23956
23957         sys_times, sys_utsname: use include_next
23958         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
23959         header.
23960         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
23961         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23962         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23963         * modules/sys_times (Depends-on): Add include_next.
23964         (Makefile.am): Substitute additional values.
23965         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23966         * lib/sys_times.in.h (includes): Include native header, if
23967         available.
23968         * lib/sys_utsname.in.h (includes): Likewise.
23969         * tests/test-sys_times.c (main): Enhance test.
23970
23971         fdutimensat: revert prior patch
23972         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
23973         utimens.h.
23974         Reported by Bruno Haible.
23975
23976 2009-12-30  Eric Blake  <ebb9@byu.net>
23977
23978         sys_wait: drop link-warning dependency
23979         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
23980         link-warning efforts.
23981         * lib/sys_wait.in.h: Likewise.
23982
23983         fdutimensat: remove bogus dependency
23984         * modules/fdutimensat (Depends-on): Drop inline.
23985
23986         unistd: fix typo
23987         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
23988
23989 2009-12-30  Bruno Haible  <bruno@clisp.org>
23990
23991         Fix compilation error with Solaris cc.
23992         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
23993         * lib/unicase/u16-is-invariant.c: Likewise.
23994         * lib/unicase/u32-is-invariant.c: Likewise.
23995         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23996
23997 2009-12-30  Bruno Haible  <bruno@clisp.org>
23998
23999         Fix test crash.
24000         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
24001         locales.
24002         Reported by Simon Josefsson <simon@josefsson.org>.
24003
24004 2009-12-30  Bruno Haible  <bruno@clisp.org>
24005
24006         Fix compilation error on most platforms.
24007         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
24008         Reported by Simon Josefsson <simon@josefsson.org>
24009         and Nelson H. F. Beebe <beebe@math.utah.edu>.
24010
24011 2009-12-30  Eric Blake  <ebb9@byu.net>
24012
24013         futimens, utimensat: work around ntfs-3g bug
24014         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
24015         a ctime bug is present, and expand workaround to cover ntfs-3g.
24016         * lib/utimens.c (fdutimens, lutimens): Likewise.
24017         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
24018         (validate_timespec): Adjust return value.
24019         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
24020         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24021         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
24022
24023 2009-12-29  Eric Blake  <ebb9@byu.net>
24024
24025         link-warning: make usage consistent
24026         * modules/ctype (Depends-on): Add link-warning.
24027         (Makefile.am): Update rules accordingly.
24028         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24029         * modules/locale (Depends-on, Makefile.am): Likewise.
24030         * modules/sys_file (Makefile.am): Likewise.
24031         * modules/getopt-posix (Makefile.am): Delete unused link warning
24032         efforts.
24033         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
24034         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
24035         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
24036         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
24037
24038         stdio: remove unused variables
24039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
24040         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
24041         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24042
24043         tests: test more substitute headers
24044         * modules/ctype-tests: New file.
24045         * modules/dirent-tests: Likewise.
24046         * modules/spawn-tests: Likewise.
24047         * modules/sys_file-tests: Likewise.
24048         * modules/sys_ioctl-tests: Likewise.
24049         * modules/sys_wait-tests: Likewise.
24050         * tests/test-ctype.c: Likewise.
24051         * tests/test-dirent.c: Likewise.
24052         * tests/test-spawn.c: Likewise.
24053         * tests/test-sys_file.c: Likewise.
24054         * tests/test-sys_ioctl.c: Likewise.
24055         * tests/test-sys_wait.c: Likewise.
24056         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
24057         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
24058         whether or not flock is in use.
24059
24060         tests: remove License section from module
24061         * modules/arpa_inet-tests: Remove unneeded section.
24062         * modules/byteswap-tests: Likewise.
24063         * modules/ceilf-tests: Likewise.
24064         * modules/ceill-tests: Likewise.
24065         * modules/crypto/des-tests: Likewise.
24066         * modules/crypto/gc-arcfour-tests: Likewise.
24067         * modules/crypto/gc-arctwo-tests: Likewise.
24068         * modules/crypto/gc-des-tests: Likewise.
24069         * modules/crypto/gc-hmac-md5-tests: Likewise.
24070         * modules/crypto/gc-hmac-sha1-tests: Likewise.
24071         * modules/crypto/gc-md2-tests: Likewise.
24072         * modules/crypto/gc-md4-tests: Likewise.
24073         * modules/crypto/gc-md5-tests: Likewise.
24074         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
24075         * modules/crypto/gc-rijndael-tests: Likewise.
24076         * modules/crypto/gc-sha1-tests: Likewise.
24077         * modules/crypto/gc-tests: Likewise.
24078         * modules/crypto/md2-tests: Likewise.
24079         * modules/crypto/md4-tests: Likewise.
24080         * modules/fcntl-h-tests: Likewise.
24081         * modules/floorf-tests: Likewise.
24082         * modules/floorl-tests: Likewise.
24083         * modules/frexp-nolibm-tests: Likewise.
24084         * modules/frexp-tests: Likewise.
24085         * modules/frexpl-nolibm-tests: Likewise.
24086         * modules/frexpl-tests: Likewise.
24087         * modules/getaddrinfo-tests: Likewise.
24088         * modules/inttypes-tests: Likewise.
24089         * modules/isfinite-tests: Likewise.
24090         * modules/isinf-tests: Likewise.
24091         * modules/ldexpl-tests: Likewise.
24092         * modules/locale-tests: Likewise.
24093         * modules/math-tests: Likewise.
24094         * modules/netdb-tests: Likewise.
24095         * modules/netinet_in-tests: Likewise.
24096         * modules/printf-frexp-tests: Likewise.
24097         * modules/printf-frexpl-tests: Likewise.
24098         * modules/priv-set-tests: Likewise.
24099         * modules/random_r-tests: Likewise.
24100         * modules/round-tests: Likewise.
24101         * modules/roundf-tests: Likewise.
24102         * modules/roundl-tests: Likewise.
24103         * modules/search-tests: Likewise.
24104         * modules/select-tests: Likewise.
24105         * modules/signal-tests: Likewise.
24106         * modules/stdbool-tests: Likewise.
24107         * modules/stddef-tests: Likewise.
24108         * modules/stdint-tests: Likewise.
24109         * modules/stdio-tests: Likewise.
24110         * modules/stdlib-tests: Likewise.
24111         * modules/string-tests: Likewise.
24112         * modules/strings-tests: Likewise.
24113         * modules/sys_select-tests: Likewise.
24114         * modules/sys_socket-tests: Likewise.
24115         * modules/sys_stat-tests: Likewise.
24116         * modules/sys_time-tests: Likewise.
24117         * modules/sys_utsname-tests: Likewise.
24118         * modules/sysexits-tests: Likewise.
24119         * modules/time-tests: Likewise.
24120         * modules/trunc-tests: Likewise.
24121         * modules/truncf-tests: Likewise.
24122         * modules/truncl-tests: Likewise.
24123         * modules/tsearch-tests: Likewise.
24124         * modules/unistd-tests: Likewise.
24125         * modules/wchar-tests: Likewise.
24126         * modules/wctype-tests: Likewise.
24127
24128         tests: fix license on several tests
24129         * tests/test-des.c: Update to GPLv3+.
24130         * tests/test-flock.c: Likewise.
24131         * tests/test-fsync.c: Likewise.
24132         * tests/test-futimens.h: Likewise.
24133         * tests/test-gc-arcfour.c: Likewise.
24134         * tests/test-gc-arctwo.c: Likewise.
24135         * tests/test-gc-des.c: Likewise.
24136         * tests/test-gc-hmac-md5.c: Likewise.
24137         * tests/test-gc-hmac-sha1.c: Likewise.
24138         * tests/test-gc-md2.c: Likewise.
24139         * tests/test-gc-md4.c: Likewise.
24140         * tests/test-gc-md5.c: Likewise.
24141         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24142         * tests/test-gc-rijndael.c: Likewise.
24143         * tests/test-gc-sha1.c: Likewise.
24144         * tests/test-gc.c: Likewise.
24145         * tests/test-getcwd.c: Likewise.
24146         * tests/test-link.c: Likewise.
24147         * tests/test-link.h: Likewise.
24148         * tests/test-lutimens.h: Likewise.
24149         * tests/test-md2.c: Likewise.
24150         * tests/test-md4.c: Likewise.
24151         * tests/test-mkdir.h: Likewise.
24152         * tests/test-rename.c: Likewise.
24153         * tests/test-rename.h: Likewise.
24154         * tests/test-safe-alloc.c: Likewise.
24155         * tests/test-utimens-common.h: Likewise.
24156         * tests/test-utimens.h: Likewise.
24157
24158         maint: sync license texts
24159         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
24160         * doc/gpl-3.0.texi: Revert copyright year update.
24161         * doc/lgpl-3.0.texi: Likewise.
24162
24163 2009-12-29  Jim Meyering  <meyering@redhat.com>
24164
24165         update nearly all FSF copyright year lists to include 2009
24166         The files named by the following are exempted:
24167             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
24168               test -f "$dst" && { echo "$dst"; continue; }
24169               test -d "$dst" || continue
24170               echo "$dst"/$(basename "$src")
24171             done > exempt
24172             git ls-files tests/unictype >> exempt
24173         In the remaining files, convert to all-interval notation if
24174         - there is already at least one year interval like 2000-2003
24175         - the file is maintained by me
24176         - the file is in lib/uni*/, where that style already prevails
24177         Otherwise, use update-copyright's default.
24178
24179 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24180         and Eric Blake  <ebb9@byu.net>
24181
24182         tests: don't require debug system() to pass
24183         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
24184         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24185         * tests/test-unlink.h (test_unlink_func): Likewise.
24186         * tests/test-fstatat.c (main): ...into callers.
24187         * tests/test-lstat.c (main): Likewise.
24188         * tests/test-rmdir.c (main): Likewise.
24189         * tests/test-unlink.c (main): Likewise.
24190         * tests/test-unlinkat.c (main): Likewise.
24191         * tests/test-areadlink-with-size.c (main): Don't require a
24192         debug-only system call to pass, aiding cross-testing to mingw.
24193         * tests/test-areadlink.c (main): Likewise.
24194         * tests/test-areadlinkat-with-size.c (main): Likewise.
24195         * tests/test-areadlinkat.c (main): Likewise.
24196         * tests/test-canonicalize-lgpl.c (main): Likewise.
24197         * tests/test-canonicalize.c (main): Likewise.
24198         * tests/test-chown.c (main): Likewise.
24199         * tests/test-fchownat.c (main): Likewise.
24200         * tests/test-lchown.c (main): Likewise.
24201         * tests/test-fdutimensat.c (main): Likewise.
24202         * tests/test-futimens.c (main): Likewise.
24203         * tests/test-link.c (main): Likewise.
24204         * tests/test-linkat.c (main): Likewise.
24205         * tests/test-mkdir.c (main): Likewise.
24206         * tests/test-mkdirat.c (main): Likewise.
24207         * tests/test-mkfifo.c (main): Likewise.
24208         * tests/test-mkfifoat.c (main): Likewise.
24209         * tests/test-mknod.c (main): Likewise.
24210         * tests/test-readlink.c (main): Likewise.
24211         * tests/test-remove.c (main): Likewise.
24212         * tests/test-rename.c (main): Likewise.
24213         * tests/test-renameat.c (main): Likewise.
24214         * tests/test-symlink.c (main): Likewise.
24215         * tests/test-symlinkat.c (main): Likewise.
24216         * tests/test-utimens.c (main): Likewise.
24217         * tests/test-utimensat.c (main): Likewise.
24218
24219 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24220
24221         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
24222         on $(UNUSED_PARAMETER_H) to avoid build failure.
24223
24224 2009-12-28  Jim Meyering  <meyering@redhat.com>
24225
24226         update-copyright: you may specify a max. line length other than 72
24227         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24228
24229         maint: use consistent FSF copyright line syntax
24230         * lib/posixtm.c: Add missing comma in FSF copyright line.
24231         * lib/posixtm.h: Likewise.
24232         * lib/getugroups.c: Add missing ", Inc.".
24233
24234         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
24235         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
24236         FSF copyright line.  Remove trailing blanks.
24237
24238 2009-12-28  Eric Blake  <ebb9@byu.net>
24239
24240         test-dup2: reduce dependencies
24241         * modules/cloexec (Configure.ac): Set witness.
24242         * modules/dup2-tests (Depends-on): Drop cloexec.
24243         * tests/test-dup2.c (main): Skip portion of test if cloexec module
24244         not present.
24245         Suggested by Bruno Haible.
24246
24247 2009-12-26  Bruno Haible  <bruno@clisp.org>
24248
24249         Remove an unneeded dependency.
24250         * modules/fseterr (Depends-on): Remove dup2.
24251
24252 2009-12-26  Eric Blake  <ebb9@byu.net>
24253
24254         tests: use macros.h in more places
24255         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
24256         (ASSERT_STREAM): Provide default of stderr.
24257         * tests/test-dirent-safer.c: Include macros.h, using alternate
24258         stream for assertions.
24259         * tests/test-dup-safer.c: Likewise.
24260         * tests/test-freopen-safer.c: Likewise.
24261         * tests/test-getopt.c: Likewise.
24262         * tests/test-openat-safer.c: Likewise.
24263         * tests/test-pipe.c: Likewise.
24264         * tests/test-popen-safer.c: Likewise.
24265         * modules/dirent-safer-tests (Files): Include macros.h.
24266         * modules/unistd-safer-tests (Files): Likewise.
24267         * modules/freopen-safer-tests (Files): Likewise.
24268         * modules/getopt-posix-tests (Files): Likewise.
24269         * modules/openat-safer-tests (Files): Likewise.
24270         * modules/pipe-tests (Files): Likewise.
24271
24272 2009-12-26  Bruno Haible  <bruno@clisp.org>
24273
24274         javacomp: Portability fix.
24275         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
24276         that it also works on Solaris.
24277
24278 2009-12-26  Bruno Haible  <bruno@clisp.org>
24279
24280         localename: Fix storage allocation of gl_locale_name_thread's result.
24281         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
24282         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
24283         all platforms that have 'uselocale'.
24284         (gl_locale_name_thread_unsafe): New function, extracted from
24285         gl_locale_name_thread.
24286         (gl_locale_name_thread): Call struniq on all platforms that have
24287         'uselocale'.
24288         * tests/test-localename.c (test_locale_name_thread): Check that the
24289         resulting strings are permanently allocated.
24290         * modules/localename-tests (Depends-on): Add strdup.
24291
24292 2009-12-26  Bruno Haible  <bruno@clisp.org>
24293
24294         * tests/test-localename.c (categories): Fill in the strings.
24295
24296 2009-12-26  Jim Meyering  <meyering@redhat.com>
24297
24298         isdir: complete the removal of m4/isdir.m4
24299         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24300
24301         isdir: clean up, since at least grep still uses it
24302         * lib/isdir.c: Include "isdir.h".
24303         (S_ISDIR): Remove now-unneeded definition.
24304         * modules/isdir (Files): Add lib/isdir.h.
24305         * lib/isdir.h: New file, with declaration.
24306         * m4/isdir.m4: Remove file -- unneeded.
24307
24308 2009-12-25  Bruno Haible  <bruno@clisp.org>
24309
24310         selinux-h: Make generated .h files standalone.
24311         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24312         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24313         * lib/se-selinux.in.h: Likewise.
24314         * modules/selinux-h (Depends-on): Add unused-parameter.
24315         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24316         selinux/selinux.h and selinux/context.h.
24317         Suggested by Eric Blake.
24318
24319 2009-12-25  Bruno Haible  <bruno@clisp.org>
24320
24321         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24322         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24323         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24324         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24325         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24326
24327 2009-12-24  Bruno Haible  <bruno@clisp.org>
24328
24329         openat: Fix warning.
24330         * lib/openat-proc.c: Include <unistd.h>.
24331
24332 2009-12-24  Bruno Haible  <bruno@clisp.org>
24333
24334         New module 'unused-parameter'.
24335         * build-aux/unused-parameter.h: New file, extracted from earlier
24336         gnulib-common.m4.
24337         * modules/unused-parameter: New file.
24338         * lib/unistr.h: Include unused-parameter.h.
24339         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24340         _GL_UNUSED.
24341         * modules/unistr/base (Depends-on): Add unused-parameter.
24342
24343 2009-12-24  Bruno Haible  <bruno@clisp.org>
24344
24345         Add missing dependencies to 'extensions' module.
24346         * m4/extensions.m4: Add comment.
24347         * modules/accept4 (Depends-on): Add extensions.
24348         * modules/dup3 (Depends-on): Likewise.
24349         * modules/fcntl (Depends-on): Likewise.
24350         * modules/futimens (Depends-on): Likewise.
24351         * modules/mknod (Depends-on): Likewise.
24352         * modules/pipe2 (Depends-on): Likewise.
24353         * modules/stat-time (Depends-on): Likewise.
24354         * modules/strcasestr-simple (Depends-on): Likewise.
24355         * modules/strsignal (Depends-on): Likewise.
24356         * modules/utimensat (Depends-on): Likewise.
24357         * modules/localcharset (Depends-on): Likewise. Needed because of
24358         gl_FCNTL_O_FLAGS.
24359         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24360         AC_TYPE_MBSTATE_T.
24361         * modules/wcsnrtombs (Depends-on): Likewise.
24362         * modules/wcsrtombs (Depends-on): Likewise.
24363
24364 2009-12-24  Bruno Haible  <bruno@clisp.org>
24365
24366         binary-io: Avoid gcc warning due to SET_BINARY.
24367         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24368         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24369
24370 2009-12-24  Bruno Haible  <bruno@clisp.org>
24371
24372         Avoid future namespace pollution on glibc systems.
24373         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24374         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24375         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24376         glibc systems.
24377
24378 2009-12-24  Bruno Haible  <bruno@clisp.org>
24379
24380         Refactor common macros used in tests.
24381         * tests/macros.h: New file.
24382         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24383         and/or <stdlib.h>, if appropriate.
24384         (ASSERT, SIZEOF): Remove macros.
24385         * tests/test-areadlink-with-size.c: Likewise.
24386         * tests/test-areadlinkat.c: Likewise.
24387         * tests/test-areadlinkat-with-size.c: Likewise.
24388         * tests/test-argmatch.c: Likewise.
24389         * tests/test-argv-iter.c: Likewise.
24390         * tests/test-array-mergesort.c: Likewise.
24391         * tests/test-array_list.c: Likewise.
24392         * tests/test-array_oset.c: Likewise.
24393         * tests/test-avltree_list.c: Likewise.
24394         * tests/test-avltree_oset.c: Likewise.
24395         * tests/test-avltreehash_list.c: Likewise.
24396         * tests/test-base64.c: Likewise.
24397         * tests/test-binary-io.c: Likewise.
24398         * tests/test-bitrotate.c: Likewise.
24399         * tests/test-btowc.c: Likewise.
24400         * tests/test-byteswap.c: Likewise.
24401         * tests/test-c-ctype.c: Likewise.
24402         * tests/test-c-stack.c: Likewise.
24403         * tests/test-c-strcasecmp.c: Likewise.
24404         * tests/test-c-strcasestr.c: Likewise.
24405         * tests/test-c-strncasecmp.c: Likewise.
24406         * tests/test-c-strstr.c: Likewise.
24407         * tests/test-canonicalize-lgpl.c: Likewise.
24408         * tests/test-canonicalize.c: Likewise.
24409         * tests/test-carray_list.c: Likewise.
24410         * tests/test-ceilf1.c: Likewise.
24411         * tests/test-ceilf2.c: Likewise.
24412         * tests/test-ceill.c: Likewise.
24413         * tests/test-chown.c: Likewise.
24414         * tests/test-cloexec.c: Likewise.
24415         * tests/test-copy-acl.c: Likewise.
24416         * tests/test-copy-file.c: Likewise.
24417         * tests/test-count-one-bits.c: Likewise.
24418         * tests/test-dprintf-posix.c: Likewise.
24419         * tests/test-dup2.c: Likewise.
24420         * tests/test-dup3.c: Likewise.
24421         * tests/test-duplocale.c: Likewise.
24422         * tests/test-fbufmode.c: Likewise.
24423         * tests/test-fchdir.c: Likewise.
24424         * tests/test-fchownat.c: Likewise.
24425         * tests/test-fcntl-safer.c: Likewise.
24426         * tests/test-fcntl.c: Likewise.
24427         * tests/test-fdopendir.c: Likewise.
24428         * tests/test-fdutimensat.c: Likewise.
24429         * tests/test-fflush2.c: Likewise.
24430         * tests/test-file-has-acl.c: Likewise.
24431         * tests/test-filevercmp.c: Likewise.
24432         * tests/test-flock.c: Likewise.
24433         * tests/test-floorf1.c: Likewise.
24434         * tests/test-floorf2.c: Likewise.
24435         * tests/test-floorl.c: Likewise.
24436         * tests/test-fnmatch.c: Likewise.
24437         * tests/test-fopen.h: Likewise.
24438         * tests/test-fpending.c: Likewise.
24439         * tests/test-fprintf-posix.c: Likewise.
24440         * tests/test-fpurge.c: Likewise.
24441         * tests/test-freadable.c: Likewise.
24442         * tests/test-freadahead.c: Likewise.
24443         * tests/test-freading.c: Likewise.
24444         * tests/test-freadptr.c: Likewise.
24445         * tests/test-freadptr2.c: Likewise.
24446         * tests/test-freadseek.c: Likewise.
24447         * tests/test-freopen.c: Likewise.
24448         * tests/test-frexp.c: Likewise.
24449         * tests/test-frexpl.c: Likewise.
24450         * tests/test-fseek.c: Likewise.
24451         * tests/test-fseeko.c: Likewise.
24452         * tests/test-fstatat.c: Likewise.
24453         * tests/test-fstrcmp.c: Likewise.
24454         * tests/test-fsync.c: Likewise.
24455         * tests/test-ftell.c: Likewise.
24456         * tests/test-ftello.c: Likewise.
24457         * tests/test-func.c: Likewise.
24458         * tests/test-futimens.c: Likewise.
24459         * tests/test-fwritable.c: Likewise.
24460         * tests/test-fwriting.c: Likewise.
24461         * tests/test-getcwd.c: Likewise.
24462         * tests/test-getdate.c: Likewise.
24463         * tests/test-getdelim.c: Likewise.
24464         * tests/test-getdtablesize.c: Likewise.
24465         * tests/test-getgroups.c: Likewise.
24466         * tests/test-getline.c: Likewise.
24467         * tests/test-getndelim2.c: Likewise.
24468         * tests/test-glob.c: Likewise.
24469         * tests/test-hash.c: Likewise.
24470         * tests/test-i-ring.c: Likewise.
24471         * tests/test-iconv-utf.c: Likewise.
24472         * tests/test-iconv.c: Likewise.
24473         * tests/test-idpriv-drop.c: Likewise.
24474         * tests/test-idpriv-droptemp.c: Likewise.
24475         * tests/test-inet_ntop.c: Likewise.
24476         * tests/test-inet_pton.c: Likewise.
24477         * tests/test-isblank.c: Likewise.
24478         * tests/test-isfinite.c: Likewise.
24479         * tests/test-isinf.c: Likewise.
24480         * tests/test-isnan.c: Likewise.
24481         * tests/test-isnand.h: Likewise.
24482         * tests/test-isnanf.h: Likewise.
24483         * tests/test-isnanl.h: Likewise.
24484         * tests/test-lchown.c: Likewise.
24485         * tests/test-ldexpl.c: Likewise.
24486         * tests/test-link.c: Likewise.
24487         * tests/test-linkat.c: Likewise.
24488         * tests/test-linked_list.c: Likewise.
24489         * tests/test-linkedhash_list.c: Likewise.
24490         * tests/test-localename.c: Likewise.
24491         * tests/test-lseek.c: Likewise.
24492         * tests/test-lstat.c: Likewise.
24493         * tests/test-mbmemcasecmp.c: Likewise.
24494         * tests/test-mbmemcasecoll.c: Likewise.
24495         * tests/test-mbrtowc.c: Likewise.
24496         * tests/test-mbscasecmp.c: Likewise.
24497         * tests/test-mbscasestr1.c: Likewise.
24498         * tests/test-mbscasestr2.c: Likewise.
24499         * tests/test-mbscasestr3.c: Likewise.
24500         * tests/test-mbscasestr4.c: Likewise.
24501         * tests/test-mbschr.c: Likewise.
24502         * tests/test-mbscspn.c: Likewise.
24503         * tests/test-mbsinit.c: Likewise.
24504         * tests/test-mbsncasecmp.c: Likewise.
24505         * tests/test-mbsnrtowcs.c: Likewise.
24506         * tests/test-mbspbrk.c: Likewise.
24507         * tests/test-mbspcasecmp.c: Likewise.
24508         * tests/test-mbsrchr.c: Likewise.
24509         * tests/test-mbsrtowcs.c: Likewise.
24510         * tests/test-mbsspn.c: Likewise.
24511         * tests/test-mbsstr1.c: Likewise.
24512         * tests/test-mbsstr2.c: Likewise.
24513         * tests/test-mbsstr3.c: Likewise.
24514         * tests/test-memchr.c: Likewise.
24515         * tests/test-memchr2.c: Likewise.
24516         * tests/test-memcmp.c: Likewise.
24517         * tests/test-memmem.c: Likewise.
24518         * tests/test-memrchr.c: Likewise.
24519         * tests/test-mkdir.c: Likewise.
24520         * tests/test-mkdirat.c: Likewise.
24521         * tests/test-mkfifo.c: Likewise.
24522         * tests/test-mkfifoat.c: Likewise.
24523         * tests/test-mknod.c: Likewise.
24524         * tests/test-nanosleep.c: Likewise.
24525         * tests/test-nl_langinfo.c: Likewise.
24526         * tests/test-obstack-printf.c: Likewise.
24527         * tests/test-open.c: Likewise.
24528         * tests/test-openat.c: Likewise.
24529         * tests/test-pipe-filter-gi1.c: Likewise.
24530         * tests/test-pipe-filter-gi2-main.c: Likewise.
24531         * tests/test-pipe-filter-ii1.c: Likewise.
24532         * tests/test-pipe-filter-ii2-main.c: Likewise.
24533         * tests/test-pipe2.c: Likewise.
24534         * tests/test-popen.h: Likewise.
24535         * tests/test-posixtm.c: Likewise.
24536         * tests/test-pread.c: Likewise.
24537         * tests/test-printf-frexp.c: Likewise.
24538         * tests/test-printf-frexpl.c: Likewise.
24539         * tests/test-printf-posix.c: Likewise.
24540         * tests/test-priv-set.c: Likewise.
24541         * tests/test-quotearg.c: Likewise.
24542         * tests/test-random_r.c: Likewise.
24543         * tests/test-rawmemchr.c: Likewise.
24544         * tests/test-rbtree_list.c: Likewise.
24545         * tests/test-rbtree_oset.c: Likewise.
24546         * tests/test-rbtreehash_list.c: Likewise.
24547         * tests/test-readlink.c: Likewise.
24548         * tests/test-remove.c: Likewise.
24549         * tests/test-rename.c: Likewise.
24550         * tests/test-renameat.c: Likewise.
24551         * tests/test-rmdir.c: Likewise.
24552         * tests/test-round1.c: Likewise.
24553         * tests/test-roundf1.c: Likewise.
24554         * tests/test-roundl.c: Likewise.
24555         * tests/test-safe-alloc.c: Likewise.
24556         * tests/test-sameacls.c: Likewise.
24557         * tests/test-set-mode-acl.c: Likewise.
24558         * tests/test-setenv.c: Likewise.
24559         * tests/test-sigaction.c: Likewise.
24560         * tests/test-signbit.c: Likewise.
24561         * tests/test-sleep.c: Likewise.
24562         * tests/test-snprintf-posix.c: Likewise.
24563         * tests/test-snprintf.c: Likewise.
24564         * tests/test-sprintf-posix.c: Likewise.
24565         * tests/test-stat-time.c: Likewise.
24566         * tests/test-stat.c: Likewise.
24567         * tests/test-strcasestr.c: Likewise.
24568         * tests/test-strchrnul.c: Likewise.
24569         * tests/test-strerror.c: Likewise.
24570         * tests/test-striconv.c: Likewise.
24571         * tests/test-striconveh.c: Likewise.
24572         * tests/test-striconveha.c: Likewise.
24573         * tests/test-strsignal.c: Likewise.
24574         * tests/test-strstr.c: Likewise.
24575         * tests/test-strtod.c: Likewise.
24576         * tests/test-strverscmp.c: Likewise.
24577         * tests/test-symlink.c: Likewise.
24578         * tests/test-symlinkat.c: Likewise.
24579         * tests/test-trunc1.c: Likewise.
24580         * tests/test-trunc2.c: Likewise.
24581         * tests/test-truncf1.c: Likewise.
24582         * tests/test-truncf2.c: Likewise.
24583         * tests/test-truncl.c: Likewise.
24584         * tests/test-uname.c: Likewise.
24585         * tests/test-unlink.c: Likewise.
24586         * tests/test-unlinkat.c: Likewise.
24587         * tests/test-unsetenv.c: Likewise.
24588         * tests/test-usleep.c: Likewise.
24589         * tests/test-utimens.c: Likewise.
24590         * tests/test-utimensat.c: Likewise.
24591         * tests/test-vasnprintf-posix.c: Likewise.
24592         * tests/test-vasnprintf-posix2.c: Likewise.
24593         * tests/test-vasnprintf.c: Likewise.
24594         * tests/test-vasprintf-posix.c: Likewise.
24595         * tests/test-vasprintf.c: Likewise.
24596         * tests/test-vdprintf-posix.c: Likewise.
24597         * tests/test-vfprintf-posix.c: Likewise.
24598         * tests/test-vprintf-posix.c: Likewise.
24599         * tests/test-vsnprintf-posix.c: Likewise.
24600         * tests/test-vsnprintf.c: Likewise.
24601         * tests/test-vsprintf-posix.c: Likewise.
24602         * tests/test-wcrtomb.c: Likewise.
24603         * tests/test-wcsnrtombs.c: Likewise.
24604         * tests/test-wcsrtombs.c: Likewise.
24605         * tests/test-wctype.c: Likewise.
24606         * tests/test-wcwidth.c: Likewise.
24607         * tests/test-xfprintf-posix.c: Likewise.
24608         * tests/test-xmemdup0.c: Likewise.
24609         * tests/test-xprintf-posix.c: Likewise.
24610         * tests/test-xvasprintf.c: Likewise.
24611         * tests/unicase/test-locale-language.c: Likewise.
24612         * tests/unicase/test-mapping-part1.h: Likewise.
24613         * tests/unicase/test-predicate-part1.h: Likewise.
24614         * tests/unicase/test-u8-casecmp.c: Likewise.
24615         * tests/unicase/test-u8-casecoll.c: Likewise.
24616         * tests/unicase/test-u8-casefold.c: Likewise.
24617         * tests/unicase/test-u8-is-cased.c: Likewise.
24618         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24619         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24620         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24621         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24622         * tests/unicase/test-u8-tolower.c: Likewise.
24623         * tests/unicase/test-u8-totitle.c: Likewise.
24624         * tests/unicase/test-u8-toupper.c: Likewise.
24625         * tests/unicase/test-u16-casecmp.c: Likewise.
24626         * tests/unicase/test-u16-casecoll.c: Likewise.
24627         * tests/unicase/test-u16-casefold.c: Likewise.
24628         * tests/unicase/test-u16-is-cased.c: Likewise.
24629         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24630         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24631         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24632         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24633         * tests/unicase/test-u16-tolower.c: Likewise.
24634         * tests/unicase/test-u16-totitle.c: Likewise.
24635         * tests/unicase/test-u16-toupper.c: Likewise.
24636         * tests/unicase/test-u32-casecmp.c: Likewise.
24637         * tests/unicase/test-u32-casecoll.c: Likewise.
24638         * tests/unicase/test-u32-casefold.c: Likewise.
24639         * tests/unicase/test-u32-is-cased.c: Likewise.
24640         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24641         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24642         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24643         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24644         * tests/unicase/test-u32-tolower.c: Likewise.
24645         * tests/unicase/test-u32-totitle.c: Likewise.
24646         * tests/unicase/test-u32-toupper.c: Likewise.
24647         * tests/unicase/test-ulc-casecmp.c: Likewise.
24648         * tests/unicase/test-ulc-casecoll.c: Likewise.
24649         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24650         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24651         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24652         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24653         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24654         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24655         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24656         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24657         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24658         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24659         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24660         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24661         * tests/unictype/test-bidi_byname.c: Likewise.
24662         * tests/unictype/test-bidi_name.c: Likewise.
24663         * tests/unictype/test-bidi_of.c: Likewise.
24664         * tests/unictype/test-bidi_test.c: Likewise.
24665         * tests/unictype/test-block_list.c: Likewise.
24666         * tests/unictype/test-block_of.c: Likewise.
24667         * tests/unictype/test-block_test.c: Likewise.
24668         * tests/unictype/test-categ_and.c: Likewise.
24669         * tests/unictype/test-categ_and_not.c: Likewise.
24670         * tests/unictype/test-categ_byname.c: Likewise.
24671         * tests/unictype/test-categ_name.c: Likewise.
24672         * tests/unictype/test-categ_none.c: Likewise.
24673         * tests/unictype/test-categ_of.c: Likewise.
24674         * tests/unictype/test-categ_or.c: Likewise.
24675         * tests/unictype/test-categ_test_withtable.c: Likewise.
24676         * tests/unictype/test-combining.c: Likewise.
24677         * tests/unictype/test-decdigit.c: Likewise.
24678         * tests/unictype/test-digit.c: Likewise.
24679         * tests/unictype/test-mirror.c: Likewise.
24680         * tests/unictype/test-numeric.c: Likewise.
24681         * tests/unictype/test-pr_byname.c: Likewise.
24682         * tests/unictype/test-pr_test.c: Likewise.
24683         * tests/unictype/test-predicate-part1.h: Likewise.
24684         * tests/unictype/test-scripts.c: Likewise.
24685         * tests/unictype/test-sy_c_ident.c: Likewise.
24686         * tests/unictype/test-sy_java_ident.c: Likewise.
24687         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24688         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24689         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24690         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24691         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24692         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24693         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24694         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24695         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24696         * tests/uninorm/test-compat-decomposition.c: Likewise.
24697         * tests/uninorm/test-composition.c: Likewise.
24698         * tests/uninorm/test-decomposing-form.c: Likewise.
24699         * tests/uninorm/test-decomposition.c: Likewise.
24700         * tests/uninorm/test-u8-nfc.c: Likewise.
24701         * tests/uninorm/test-u8-nfd.c: Likewise.
24702         * tests/uninorm/test-u8-nfkc.c: Likewise.
24703         * tests/uninorm/test-u8-nfkd.c: Likewise.
24704         * tests/uninorm/test-u8-normcmp.c: Likewise.
24705         * tests/uninorm/test-u8-normcoll.c: Likewise.
24706         * tests/uninorm/test-u16-nfc.c: Likewise.
24707         * tests/uninorm/test-u16-nfd.c: Likewise.
24708         * tests/uninorm/test-u16-nfkc.c: Likewise.
24709         * tests/uninorm/test-u16-nfkd.c: Likewise.
24710         * tests/uninorm/test-u16-normcmp.c: Likewise.
24711         * tests/uninorm/test-u16-normcoll.c: Likewise.
24712         * tests/uninorm/test-u32-nfc.c: Likewise.
24713         * tests/uninorm/test-u32-nfd.c: Likewise.
24714         * tests/uninorm/test-u32-nfkc.c: Likewise.
24715         * tests/uninorm/test-u32-nfkd.c: Likewise.
24716         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24717         * tests/uninorm/test-u32-normcmp.c: Likewise.
24718         * tests/uninorm/test-u32-normcoll.c: Likewise.
24719         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24720         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24721         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24722         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24723         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24724         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24725         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24726         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24727         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24728         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24729         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24730         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24731         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24732         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24733         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24734         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24735         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24736         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24737         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24738         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24739         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24740         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24741         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24742         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24743         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24744         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24745         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24746         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24747         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24748         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24749         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24750         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24751         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24752         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24753         * tests/uniwidth/test-u8-width.c: Likewise.
24754         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24755         * tests/uniwidth/test-u16-width.c: Likewise.
24756         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24757         * tests/uniwidth/test-u32-width.c: Likewise.
24758         * tests/uniwidth/test-uc_width.c: Likewise.
24759         * tests/uniwidth/test-uc_width2.c: Likewise.
24760         * modules/acl-tests (Files): Add tests/macros.h.
24761         * modules/areadlink-tests (Files): Likewise.
24762         * modules/areadlink-with-size-tests (Files): Likewise.
24763         * modules/areadlinkat-tests (Files): Likewise.
24764         * modules/areadlinkat-with-size-tests (Files): Likewise.
24765         * modules/argmatch-tests (Files): Likewise.
24766         * modules/argv-iter-tests (Files): Likewise.
24767         * modules/array-list-tests (Files): Likewise.
24768         * modules/array-mergesort-tests (Files): Likewise.
24769         * modules/array-oset-tests (Files): Likewise.
24770         * modules/avltree-list-tests (Files): Likewise.
24771         * modules/avltree-oset-tests (Files): Likewise.
24772         * modules/avltreehash-list-tests (Files): Likewise.
24773         * modules/base64-tests (Files): Likewise.
24774         * modules/binary-io-tests (Files): Likewise.
24775         * modules/bitrotate-tests (Files): Likewise.
24776         * modules/btowc-tests (Files): Likewise.
24777         * modules/byteswap-tests (Files): Likewise.
24778         * modules/c-ctype-tests (Files): Likewise.
24779         * modules/c-stack-tests (Files): Likewise.
24780         * modules/c-strcase-tests (Files): Likewise.
24781         * modules/c-strcasestr-tests (Files): Likewise.
24782         * modules/c-strstr-tests (Files): Likewise.
24783         * modules/canonicalize-lgpl-tests (Files): Likewise.
24784         * modules/canonicalize-tests (Files): Likewise.
24785         * modules/carray-list-tests (Files): Likewise.
24786         * modules/ceilf-tests (Files): Likewise.
24787         * modules/ceill-tests (Files): Likewise.
24788         * modules/chown-tests (Files): Likewise.
24789         * modules/cloexec-tests (Files): Likewise.
24790         * modules/copy-file-tests (Files): Likewise.
24791         * modules/count-one-bits-tests (Files): Likewise.
24792         * modules/dprintf-posix-tests (Files): Likewise.
24793         * modules/dup2-tests (Files): Likewise.
24794         * modules/dup3-tests (Files): Likewise.
24795         * modules/duplocale-tests (Files): Likewise.
24796         * modules/fbufmode-tests (Files): Likewise.
24797         * modules/fchdir-tests (Files): Likewise.
24798         * modules/fcntl-safer-tests (Files): Likewise.
24799         * modules/fcntl-tests (Files): Likewise.
24800         * modules/fdopendir-tests (Files): Likewise.
24801         * modules/fdutimensat-tests (Files): Likewise.
24802         * modules/fflush-tests (Files): Likewise.
24803         * modules/filevercmp-tests (Files): Likewise.
24804         * modules/flock-tests (Files): Likewise.
24805         * modules/floorf-tests (Files): Likewise.
24806         * modules/floorl-tests (Files): Likewise.
24807         * modules/fnmatch-tests (Files): Likewise.
24808         * modules/fopen-safer-tests (Files): Likewise.
24809         * modules/fopen-tests (Files): Likewise.
24810         * modules/fpending-tests (Files): Likewise.
24811         * modules/fprintf-posix-tests (Files): Likewise.
24812         * modules/fpurge-tests (Files): Likewise.
24813         * modules/freadable-tests (Files): Likewise.
24814         * modules/freadahead-tests (Files): Likewise.
24815         * modules/freading-tests (Files): Likewise.
24816         * modules/freadptr-tests (Files): Likewise.
24817         * modules/freadseek-tests (Files): Likewise.
24818         * modules/freopen-tests (Files): Likewise.
24819         * modules/frexp-nolibm-tests (Files): Likewise.
24820         * modules/frexp-tests (Files): Likewise.
24821         * modules/frexpl-nolibm-tests (Files): Likewise.
24822         * modules/frexpl-tests (Files): Likewise.
24823         * modules/fseek-tests (Files): Likewise.
24824         * modules/fseeko-tests (Files): Likewise.
24825         * modules/fstrcmp-tests (Files): Likewise.
24826         * modules/fsync-tests (Files): Likewise.
24827         * modules/ftell-tests (Files): Likewise.
24828         * modules/ftello-tests (Files): Likewise.
24829         * modules/func-tests (Files): Likewise.
24830         * modules/futimens-tests (Files): Likewise.
24831         * modules/fwritable-tests (Files): Likewise.
24832         * modules/fwriting-tests (Files): Likewise.
24833         * modules/getcwd-tests (Files): Likewise.
24834         * modules/getdate-tests (Files): Likewise.
24835         * modules/getdelim-tests (Files): Likewise.
24836         * modules/getdtablesize-tests (Files): Likewise.
24837         * modules/getgroups-tests (Files): Likewise.
24838         * modules/getline-tests (Files): Likewise.
24839         * modules/getndelim2-tests (Files): Likewise.
24840         * modules/glob-tests (Files): Likewise.
24841         * modules/hash-tests (Files): Likewise.
24842         * modules/i-ring-tests (Files): Likewise.
24843         * modules/iconv-tests (Files): Likewise.
24844         * modules/iconv_open-utf-tests (Files): Likewise.
24845         * modules/idpriv-drop-tests (Files): Likewise.
24846         * modules/idpriv-droptemp-tests (Files): Likewise.
24847         * modules/inet_ntop-tests (Files): Likewise.
24848         * modules/inet_pton-tests (Files): Likewise.
24849         * modules/isblank-tests (Files): Likewise.
24850         * modules/isfinite-tests (Files): Likewise.
24851         * modules/isinf-tests (Files): Likewise.
24852         * modules/isnan-tests (Files): Likewise.
24853         * modules/isnand-nolibm-tests (Files): Likewise.
24854         * modules/isnand-tests (Files): Likewise.
24855         * modules/isnanf-nolibm-tests (Files): Likewise.
24856         * modules/isnanf-tests (Files): Likewise.
24857         * modules/isnanl-nolibm-tests (Files): Likewise.
24858         * modules/isnanl-tests (Files): Likewise.
24859         * modules/lchown-tests (Files): Likewise.
24860         * modules/ldexpl-tests (Files): Likewise.
24861         * modules/link-tests (Files): Likewise.
24862         * modules/linkat-tests (Files): Likewise.
24863         * modules/linked-list-tests (Files): Likewise.
24864         * modules/linkedhash-list-tests (Files): Likewise.
24865         * modules/localename-tests (Files): Likewise.
24866         * modules/lseek-tests (Files): Likewise.
24867         * modules/lstat-tests (Files): Likewise.
24868         * modules/mbmemcasecmp-tests (Files): Likewise.
24869         * modules/mbmemcasecoll-tests (Files): Likewise.
24870         * modules/mbrtowc-tests (Files): Likewise.
24871         * modules/mbscasecmp-tests (Files): Likewise.
24872         * modules/mbscasestr-tests (Files): Likewise.
24873         * modules/mbschr-tests (Files): Likewise.
24874         * modules/mbscspn-tests (Files): Likewise.
24875         * modules/mbsinit-tests (Files): Likewise.
24876         * modules/mbsncasecmp-tests (Files): Likewise.
24877         * modules/mbsnrtowcs-tests (Files): Likewise.
24878         * modules/mbspbrk-tests (Files): Likewise.
24879         * modules/mbspcasecmp-tests (Files): Likewise.
24880         * modules/mbsrchr-tests (Files): Likewise.
24881         * modules/mbsrtowcs-tests (Files): Likewise.
24882         * modules/mbsspn-tests (Files): Likewise.
24883         * modules/mbsstr-tests (Files): Likewise.
24884         * modules/memchr-tests (Files): Likewise.
24885         * modules/memchr2-tests (Files): Likewise.
24886         * modules/memcmp-tests (Files): Likewise.
24887         * modules/memmem-tests (Files): Likewise.
24888         * modules/memrchr-tests (Files): Likewise.
24889         * modules/mkdir-tests (Files): Likewise.
24890         * modules/mkfifo-tests (Files): Likewise.
24891         * modules/mkfifoat-tests (Files): Likewise.
24892         * modules/mknod-tests (Files): Likewise.
24893         * modules/nanosleep-tests (Files): Likewise.
24894         * modules/nl_langinfo-tests (Files): Likewise.
24895         * modules/obstack-printf-tests (Files): Likewise.
24896         * modules/open-tests (Files): Likewise.
24897         * modules/openat-tests (Files): Likewise.
24898         * modules/pipe-filter-gi-tests (Files): Likewise.
24899         * modules/pipe-filter-ii-tests (Files): Likewise.
24900         * modules/pipe2-tests (Files): Likewise.
24901         * modules/popen-safer-tests (Files): Likewise.
24902         * modules/popen-tests (Files): Likewise.
24903         * modules/posixtm-tests (Files): Likewise.
24904         * modules/pread-tests (Files): Likewise.
24905         * modules/printf-frexp-tests (Files): Likewise.
24906         * modules/printf-frexpl-tests (Files): Likewise.
24907         * modules/printf-posix-tests (Files): Likewise.
24908         * modules/priv-set-tests (Files): Likewise.
24909         * modules/quotearg-tests (Files): Likewise.
24910         * modules/random_r-tests (Files): Likewise.
24911         * modules/rawmemchr-tests (Files): Likewise.
24912         * modules/rbtree-list-tests (Files): Likewise.
24913         * modules/rbtree-oset-tests (Files): Likewise.
24914         * modules/rbtreehash-list-tests (Files): Likewise.
24915         * modules/readlink-tests (Files): Likewise.
24916         * modules/remove-tests (Files): Likewise.
24917         * modules/rename-tests (Files): Likewise.
24918         * modules/renameat-tests (Files): Likewise.
24919         * modules/rmdir-tests (Files): Likewise.
24920         * modules/round-tests (Files): Likewise.
24921         * modules/roundf-tests (Files): Likewise.
24922         * modules/roundl-tests (Files): Likewise.
24923         * modules/safe-alloc-tests (Files): Likewise.
24924         * modules/setenv-tests (Files): Likewise.
24925         * modules/sigaction-tests (Files): Likewise.
24926         * modules/signbit-tests (Files): Likewise.
24927         * modules/sleep-tests (Files): Likewise.
24928         * modules/snprintf-posix-tests (Files): Likewise.
24929         * modules/snprintf-tests (Files): Likewise.
24930         * modules/sprintf-posix-tests (Files): Likewise.
24931         * modules/stat-tests (Files): Likewise.
24932         * modules/stat-time-tests (Files): Likewise.
24933         * modules/strcasestr-tests (Files): Likewise.
24934         * modules/strchrnul-tests (Files): Likewise.
24935         * modules/strerror-tests (Files): Likewise.
24936         * modules/striconv-tests (Files): Likewise.
24937         * modules/striconveh-tests (Files): Likewise.
24938         * modules/striconveha-tests (Files): Likewise.
24939         * modules/strsignal-tests (Files): Likewise.
24940         * modules/strstr-tests (Files): Likewise.
24941         * modules/strtod-tests (Files): Likewise.
24942         * modules/strverscmp-tests (Files): Likewise.
24943         * modules/symlink-tests (Files): Likewise.
24944         * modules/symlinkat-tests (Files): Likewise.
24945         * modules/trunc-tests (Files): Likewise.
24946         * modules/truncf-tests (Files): Likewise.
24947         * modules/truncl-tests (Files): Likewise.
24948         * modules/uname-tests (Files): Likewise.
24949         * modules/unicase/cased-tests (Files): Likewise.
24950         * modules/unicase/ignorable-tests (Files): Likewise.
24951         * modules/unicase/locale-language-tests (Files): Likewise.
24952         * modules/unicase/tolower-tests (Files): Likewise.
24953         * modules/unicase/totitle-tests (Files): Likewise.
24954         * modules/unicase/toupper-tests (Files): Likewise.
24955         * modules/unicase/u8-casecmp-tests (Files): Likewise.
24956         * modules/unicase/u8-casecoll-tests (Files): Likewise.
24957         * modules/unicase/u8-casefold-tests (Files): Likewise.
24958         * modules/unicase/u8-is-cased-tests (Files): Likewise.
24959         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
24960         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
24961         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
24962         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
24963         * modules/unicase/u8-tolower-tests (Files): Likewise.
24964         * modules/unicase/u8-totitle-tests (Files): Likewise.
24965         * modules/unicase/u8-toupper-tests (Files): Likewise.
24966         * modules/unicase/u16-casecmp-tests (Files): Likewise.
24967         * modules/unicase/u16-casecoll-tests (Files): Likewise.
24968         * modules/unicase/u16-casefold-tests (Files): Likewise.
24969         * modules/unicase/u16-is-cased-tests (Files): Likewise.
24970         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
24971         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
24972         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
24973         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
24974         * modules/unicase/u16-tolower-tests (Files): Likewise.
24975         * modules/unicase/u16-totitle-tests (Files): Likewise.
24976         * modules/unicase/u16-toupper-tests (Files): Likewise.
24977         * modules/unicase/u32-casecmp-tests (Files): Likewise.
24978         * modules/unicase/u32-casecoll-tests (Files): Likewise.
24979         * modules/unicase/u32-casefold-tests (Files): Likewise.
24980         * modules/unicase/u32-is-cased-tests (Files): Likewise.
24981         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
24982         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
24983         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
24984         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
24985         * modules/unicase/u32-tolower-tests (Files): Likewise.
24986         * modules/unicase/u32-totitle-tests (Files): Likewise.
24987         * modules/unicase/u32-toupper-tests (Files): Likewise.
24988         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
24989         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
24990         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
24991         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
24992         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
24993         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
24994         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
24995         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
24996         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
24997         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
24998         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
24999         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
25000         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
25001         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
25002         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
25003         * modules/unictype/bidicategory-name-tests (Files): Likewise.
25004         * modules/unictype/bidicategory-of-tests (Files): Likewise.
25005         * modules/unictype/bidicategory-test-tests (Files): Likewise.
25006         * modules/unictype/block-list-tests (Files): Likewise.
25007         * modules/unictype/block-of-tests (Files): Likewise.
25008         * modules/unictype/block-test-tests (Files): Likewise.
25009         * modules/unictype/category-C-tests (Files): Likewise.
25010         * modules/unictype/category-Cc-tests (Files): Likewise.
25011         * modules/unictype/category-Cf-tests (Files): Likewise.
25012         * modules/unictype/category-Cn-tests (Files): Likewise.
25013         * modules/unictype/category-Co-tests (Files): Likewise.
25014         * modules/unictype/category-Cs-tests (Files): Likewise.
25015         * modules/unictype/category-L-tests (Files): Likewise.
25016         * modules/unictype/category-Ll-tests (Files): Likewise.
25017         * modules/unictype/category-Lm-tests (Files): Likewise.
25018         * modules/unictype/category-Lo-tests (Files): Likewise.
25019         * modules/unictype/category-Lt-tests (Files): Likewise.
25020         * modules/unictype/category-Lu-tests (Files): Likewise.
25021         * modules/unictype/category-M-tests (Files): Likewise.
25022         * modules/unictype/category-Mc-tests (Files): Likewise.
25023         * modules/unictype/category-Me-tests (Files): Likewise.
25024         * modules/unictype/category-Mn-tests (Files): Likewise.
25025         * modules/unictype/category-N-tests (Files): Likewise.
25026         * modules/unictype/category-Nd-tests (Files): Likewise.
25027         * modules/unictype/category-Nl-tests (Files): Likewise.
25028         * modules/unictype/category-No-tests (Files): Likewise.
25029         * modules/unictype/category-P-tests (Files): Likewise.
25030         * modules/unictype/category-Pc-tests (Files): Likewise.
25031         * modules/unictype/category-Pd-tests (Files): Likewise.
25032         * modules/unictype/category-Pe-tests (Files): Likewise.
25033         * modules/unictype/category-Pf-tests (Files): Likewise.
25034         * modules/unictype/category-Pi-tests (Files): Likewise.
25035         * modules/unictype/category-Po-tests (Files): Likewise.
25036         * modules/unictype/category-Ps-tests (Files): Likewise.
25037         * modules/unictype/category-S-tests (Files): Likewise.
25038         * modules/unictype/category-Sc-tests (Files): Likewise.
25039         * modules/unictype/category-Sk-tests (Files): Likewise.
25040         * modules/unictype/category-Sm-tests (Files): Likewise.
25041         * modules/unictype/category-So-tests (Files): Likewise.
25042         * modules/unictype/category-Z-tests (Files): Likewise.
25043         * modules/unictype/category-Zl-tests (Files): Likewise.
25044         * modules/unictype/category-Zp-tests (Files): Likewise.
25045         * modules/unictype/category-Zs-tests (Files): Likewise.
25046         * modules/unictype/category-and-not-tests (Files): Likewise.
25047         * modules/unictype/category-and-tests (Files): Likewise.
25048         * modules/unictype/category-byname-tests (Files): Likewise.
25049         * modules/unictype/category-name-tests (Files): Likewise.
25050         * modules/unictype/category-none-tests (Files): Likewise.
25051         * modules/unictype/category-of-tests (Files): Likewise.
25052         * modules/unictype/category-or-tests (Files): Likewise.
25053         * modules/unictype/category-test-withtable-tests (Files): Likewise.
25054         * modules/unictype/combining-class-tests (Files): Likewise.
25055         * modules/unictype/ctype-alnum-tests (Files): Likewise.
25056         * modules/unictype/ctype-alpha-tests (Files): Likewise.
25057         * modules/unictype/ctype-blank-tests (Files): Likewise.
25058         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
25059         * modules/unictype/ctype-digit-tests (Files): Likewise.
25060         * modules/unictype/ctype-graph-tests (Files): Likewise.
25061         * modules/unictype/ctype-lower-tests (Files): Likewise.
25062         * modules/unictype/ctype-print-tests (Files): Likewise.
25063         * modules/unictype/ctype-punct-tests (Files): Likewise.
25064         * modules/unictype/ctype-space-tests (Files): Likewise.
25065         * modules/unictype/ctype-upper-tests (Files): Likewise.
25066         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
25067         * modules/unictype/decimal-digit-tests (Files): Likewise.
25068         * modules/unictype/digit-tests (Files): Likewise.
25069         * modules/unictype/mirror-tests (Files): Likewise.
25070         * modules/unictype/numeric-tests (Files): Likewise.
25071         * modules/unictype/property-alphabetic-tests (Files): Likewise.
25072         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
25073         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
25074         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
25075         Likewise.
25076         * modules/unictype/property-bidi-block-separator-tests (Files):
25077         Likewise.
25078         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
25079         Likewise.
25080         * modules/unictype/property-bidi-common-separator-tests (Files):
25081         Likewise.
25082         * modules/unictype/property-bidi-control-tests (Files): Likewise.
25083         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
25084         Likewise.
25085         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
25086         Likewise.
25087         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
25088         Likewise.
25089         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
25090         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
25091         Likewise.
25092         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
25093         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
25094         Likewise.
25095         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
25096         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
25097         * modules/unictype/property-bidi-segment-separator-tests (Files):
25098         Likewise.
25099         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
25100         * modules/unictype/property-byname-tests (Files): Likewise.
25101         * modules/unictype/property-combining-tests (Files): Likewise.
25102         * modules/unictype/property-composite-tests (Files): Likewise.
25103         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
25104         * modules/unictype/property-dash-tests (Files): Likewise.
25105         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
25106         * modules/unictype/property-default-ignorable-code-point-tests (Files):
25107         Likewise.
25108         * modules/unictype/property-deprecated-tests (Files): Likewise.
25109         * modules/unictype/property-diacritic-tests (Files): Likewise.
25110         * modules/unictype/property-extender-tests (Files): Likewise.
25111         * modules/unictype/property-format-control-tests (Files): Likewise.
25112         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25113         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25114         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25115         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25116         * modules/unictype/property-hyphen-tests (Files): Likewise.
25117         * modules/unictype/property-id-continue-tests (Files): Likewise.
25118         * modules/unictype/property-id-start-tests (Files): Likewise.
25119         * modules/unictype/property-ideographic-tests (Files): Likewise.
25120         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
25121         * modules/unictype/property-ids-trinary-operator-tests (Files):
25122         Likewise.
25123         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
25124         * modules/unictype/property-iso-control-tests (Files): Likewise.
25125         * modules/unictype/property-join-control-tests (Files): Likewise.
25126         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
25127         * modules/unictype/property-line-separator-tests (Files): Likewise.
25128         * modules/unictype/property-logical-order-exception-tests (Files):
25129         Likewise.
25130         * modules/unictype/property-lowercase-tests (Files): Likewise.
25131         * modules/unictype/property-math-tests (Files): Likewise.
25132         * modules/unictype/property-non-break-tests (Files): Likewise.
25133         * modules/unictype/property-not-a-character-tests (Files): Likewise.
25134         * modules/unictype/property-numeric-tests (Files): Likewise.
25135         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
25136         * modules/unictype/property-other-default-ignorable-code-point-tests
25137         (Files): Likewise.
25138         * modules/unictype/property-other-grapheme-extend-tests (Files):
25139         Likewise.
25140         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
25141         * modules/unictype/property-other-id-start-tests (Files): Likewise.
25142         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
25143         * modules/unictype/property-other-math-tests (Files): Likewise.
25144         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
25145         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
25146         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
25147         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
25148         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
25149         * modules/unictype/property-private-use-tests (Files): Likewise.
25150         * modules/unictype/property-punctuation-tests (Files): Likewise.
25151         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
25152         * modules/unictype/property-radical-tests (Files): Likewise.
25153         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
25154         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
25155         * modules/unictype/property-space-tests (Files): Likewise.
25156         * modules/unictype/property-terminal-punctuation-tests (Files):
25157         Likewise.
25158         * modules/unictype/property-test-tests (Files): Likewise.
25159         * modules/unictype/property-titlecase-tests (Files): Likewise.
25160         * modules/unictype/property-unassigned-code-value-tests (Files):
25161         Likewise.
25162         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
25163         * modules/unictype/property-uppercase-tests (Files): Likewise.
25164         * modules/unictype/property-variation-selector-tests (Files): Likewise.
25165         * modules/unictype/property-white-space-tests (Files): Likewise.
25166         * modules/unictype/property-xid-continue-tests (Files): Likewise.
25167         * modules/unictype/property-xid-start-tests (Files): Likewise.
25168         * modules/unictype/property-zero-width-tests (Files): Likewise.
25169         * modules/unictype/scripts-tests (Files): Likewise.
25170         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
25171         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
25172         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
25173         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
25174         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
25175         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
25176         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
25177         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
25178         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
25179         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
25180         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
25181         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
25182         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
25183         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
25184         * modules/uninorm/composition-tests (Files): Likewise.
25185         * modules/uninorm/decomposing-form-tests (Files): Likewise.
25186         * modules/uninorm/decomposition-tests (Files): Likewise.
25187         * modules/uninorm/filter-tests (Files): Likewise.
25188         * modules/uninorm/nfc-tests (Files): Likewise.
25189         * modules/uninorm/nfd-tests (Files): Likewise.
25190         * modules/uninorm/nfkc-tests (Files): Likewise.
25191         * modules/uninorm/nfkd-tests (Files): Likewise.
25192         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
25193         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
25194         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
25195         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
25196         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
25197         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
25198         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
25199         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25200         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
25201         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
25202         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
25203         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
25204         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25205         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
25206         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
25207         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
25208         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
25209         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25210         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
25211         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
25212         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
25213         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
25214         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25215         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
25216         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
25217         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
25218         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
25219         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
25220         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
25221         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
25222         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
25223         * modules/uniwidth/u8-width-tests (Files): Likewise.
25224         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
25225         * modules/uniwidth/u16-width-tests (Files): Likewise.
25226         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
25227         * modules/uniwidth/u32-width-tests (Files): Likewise.
25228         * modules/uniwidth/width-tests (Files): Likewise.
25229         * modules/unlink-tests (Files): Likewise.
25230         * modules/unsetenv-tests (Files): Likewise.
25231         * modules/usleep-tests (Files): Likewise.
25232         * modules/utimens-tests (Files): Likewise.
25233         * modules/utimensat-tests (Files): Likewise.
25234         * modules/vasnprintf-posix-tests (Files): Likewise.
25235         * modules/vasnprintf-tests (Files): Likewise.
25236         * modules/vasprintf-posix-tests (Files): Likewise.
25237         * modules/vasprintf-tests (Files): Likewise.
25238         * modules/vdprintf-posix-tests (Files): Likewise.
25239         * modules/vfprintf-posix-tests (Files): Likewise.
25240         * modules/vprintf-posix-tests (Files): Likewise.
25241         * modules/vsnprintf-posix-tests (Files): Likewise.
25242         * modules/vsnprintf-tests (Files): Likewise.
25243         * modules/vsprintf-posix-tests (Files): Likewise.
25244         * modules/wcrtomb-tests (Files): Likewise.
25245         * modules/wcsnrtombs-tests (Files): Likewise.
25246         * modules/wcsrtombs-tests (Files): Likewise.
25247         * modules/wctype-tests (Files): Likewise.
25248         * modules/wcwidth-tests (Files): Likewise.
25249         * modules/xmemdup0-tests (Files): Likewise.
25250         * modules/xprintf-posix-tests (Files): Likewise.
25251         * modules/xvasprintf-tests (Files): Likewise.
25252
25253 2009-12-24  Eric Blake  <ebb9@byu.net>
25254
25255         test-nanosleep: fix typo
25256         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
25257         patch.
25258         Reported by Bruno Haible.
25259
25260 2009-12-24  Bruno Haible  <bruno@clisp.org>
25261
25262         Reduce namespace pollution on glibc systems.
25263         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
25264         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
25265         systems.
25266         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
25267         <getopt.h> on glibc systems.
25268         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
25269         systems.
25270         * lib/fcntl.c: Include <unistd.h> here instead.
25271
25272 2009-12-24  Bruno Haible  <bruno@clisp.org>
25273
25274         * lib/stdlib.in.h (includes): Fix typo in today's commit.
25275
25276 2009-12-24  Eric Blake  <ebb9@byu.net>
25277
25278         tests: add signature checks
25279         * tests/signature.h (SIGNATURE_CHECK): New file.
25280         * modules/atexit-tests (Files): Use it.
25281         * modules/btowc-tests (Files): Likewise.
25282         * modules/canonicalize-lgpl-tests (Files): Likewise.
25283         * modules/ceilf-tests (Files): Likewise.
25284         * modules/ceill-tests (Files): Likewise.
25285         * modules/chown-tests (Files): Likewise.
25286         * modules/dprintf-posix-tests (Files): Likewise.
25287         * modules/dup2-tests (Files): Likewise.
25288         * modules/dup3-tests (Files): Likewise.
25289         * modules/duplocale-tests (Files): Likewise.
25290         * modules/fchdir-tests (Files): Likewise.
25291         * modules/fcntl-tests (Files): Likewise.
25292         * modules/fdopendir-tests (Files): Likewise.
25293         * modules/fflush-tests (Files): Likewise.
25294         * modules/flock-tests (Files): Likewise.
25295         * modules/floorf-tests (Files): Likewise.
25296         * modules/floorl-tests (Files): Likewise.
25297         * modules/fnmatch-tests (Files): Likewise.
25298         * modules/fopen-tests (Files): Likewise.
25299         * modules/fprintf-posix-tests (Files): Likewise.
25300         * modules/freopen-tests (Files): Likewise.
25301         * modules/frexp-nolibm-tests (Files): Likewise.
25302         * modules/frexp-tests (Files): Likewise.
25303         * modules/frexpl-nolibm-tests (Files): Likewise.
25304         * modules/frexpl-tests (Files): Likewise.
25305         * modules/fseek-tests (Files): Likewise.
25306         * modules/fseeko-tests (Files): Likewise.
25307         * modules/fsync-tests (Files): Likewise.
25308         * modules/ftell-tests (Files): Likewise.
25309         * modules/ftello-tests (Files): Likewise.
25310         * modules/futimens-tests (Files): Likewise.
25311         * modules/getaddrinfo-tests (Files): Likewise.
25312         * modules/getcwd-tests (Files): Likewise.
25313         * modules/getdelim-tests (Files): Likewise.
25314         * modules/getdtablesize-tests (Files): Likewise.
25315         * modules/getgroups-tests (Files): Likewise.
25316         * modules/gethostname-tests (Files): Likewise.
25317         * modules/getline-tests (Files): Likewise.
25318         * modules/getopt-posix-tests (Files): Likewise.
25319         * modules/gettimeofday-tests (Files): Likewise.
25320         * modules/glob-tests (Files): Likewise.
25321         * modules/iconv-tests (Files): Likewise.
25322         * modules/inet_ntop-tests (Files): Likewise.
25323         * modules/inet_pton-tests (Files): Likewise.
25324         * modules/isblank-tests (Files): Likewise.
25325         * modules/lchown-tests (Files): Likewise.
25326         * modules/ldexpl-tests (Files): Likewise.
25327         * modules/link-tests (Files): Likewise.
25328         * modules/linkat-tests (Files): Likewise.
25329         * modules/lseek-tests (Files): Likewise.
25330         * modules/lstat-tests (Files): Likewise.
25331         * modules/mbrtowc-tests (Files): Likewise.
25332         * modules/mbsinit-tests (Files): Likewise.
25333         * modules/mbsnrtowcs-tests (Files): Likewise.
25334         * modules/mbsrtowcs-tests (Files): Likewise.
25335         * modules/memchr-tests (Files): Likewise.
25336         * modules/memcmp-tests (Files): Likewise.
25337         * modules/memmem-tests (Files): Likewise.
25338         * modules/memrchr-tests (Files): Likewise.
25339         * modules/mkdir-tests (Files): Likewise.
25340         * modules/mkfifo-tests (Files): Likewise.
25341         * modules/mkfifoat-tests (Files): Likewise.
25342         * modules/mknod-tests (Files): Likewise.
25343         * modules/nanosleep-tests (Files): Likewise.
25344         * modules/nl_langinfo-tests (Files): Likewise.
25345         * modules/obstack-printf-tests (Files): Likewise.
25346         * modules/open-tests (Files): Likewise.
25347         * modules/openat-tests (Files): Likewise.
25348         * modules/perror-tests (Files): Likewise.
25349         * modules/pipe2-tests (Files): Likewise.
25350         * modules/poll-tests (Files): Likewise.
25351         * modules/popen-tests (Files): Likewise.
25352         * modules/posix_spawn-tests (Files): Likewise.
25353         * modules/posix_spawnp-tests (Files): Likewise.
25354         * modules/pread-tests (Files): Likewise.
25355         * modules/printf-posix-tests (Files): Likewise.
25356         * modules/pty-tests (Files): Likewise.
25357         * modules/random_r-tests (Files): Likewise.
25358         * modules/rawmemchr-tests (Files): Likewise.
25359         * modules/readlink-tests (Files): Likewise.
25360         * modules/remove-tests (Files): Likewise.
25361         * modules/rename-tests (Files): Likewise.
25362         * modules/renameat-tests (Files): Likewise.
25363         * modules/rmdir-tests (Files): Likewise.
25364         * modules/round-tests (Files): Likewise.
25365         * modules/roundf-tests (Files): Likewise.
25366         * modules/roundl-tests (Files): Likewise.
25367         * modules/select-tests (Files): Likewise.
25368         * modules/setenv-tests (Files): Likewise.
25369         * modules/sigaction-tests (Files): Likewise.
25370         * modules/sleep-tests (Files): Likewise.
25371         * modules/snprintf-posix-tests (Files): Likewise.
25372         * modules/snprintf-tests (Files): Likewise.
25373         * modules/sprintf-posix-tests (Files): Likewise.
25374         * modules/stat-tests (Files): Likewise.
25375         * modules/strcasestr-tests (Files): Likewise.
25376         * modules/strchrnul-tests (Files): Likewise.
25377         * modules/strerror-tests (Files): Likewise.
25378         * modules/strsignal-tests (Files): Likewise.
25379         * modules/strstr-tests (Files): Likewise.
25380         * modules/strtod-tests (Files): Likewise.
25381         * modules/strverscmp-tests (Files): Likewise.
25382         * modules/symlink-tests (Files): Likewise.
25383         * modules/symlinkat-tests (Files): Likewise.
25384         * modules/times-tests (Files): Likewise.
25385         * modules/trunc-tests (Files): Likewise.
25386         * modules/truncf-tests (Files): Likewise.
25387         * modules/truncl-tests (Files): Likewise.
25388         * modules/tsearch-tests (Files): Likewise.
25389         * modules/uname-tests (Files): Likewise.
25390         * modules/unlink-tests (Files): Likewise.
25391         * modules/unsetenv-tests (Files): Likewise.
25392         * modules/usleep-tests (Files): Likewise.
25393         * modules/utimensat-tests (Files): Likewise.
25394         * modules/vasprintf-tests (Files): Likewise.
25395         * modules/vdprintf-posix-tests (Files): Likewise.
25396         * modules/vfprintf-posix-tests (Files): Likewise.
25397         * modules/vprintf-posix-tests (Files): Likewise.
25398         * modules/vsnprintf-posix-tests (Files): Likewise.
25399         * modules/vsnprintf-tests (Files): Likewise.
25400         * modules/vsprintf-posix-tests (Files): Likewise.
25401         * modules/wcrtomb-tests (Files): Likewise.
25402         * modules/wcsnrtombs-tests (Files): Likewise.
25403         * modules/wcsrtombs-tests (Files): Likewise.
25404         * modules/wcwidth-tests (Files): Likewise.
25405         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25406         * tests/test-isinf.c (isinf): Likewise.
25407         * tests/test-isnan.c (isnan): Likewise.
25408         * tests/test-signbit.c (signbit): Likewise.
25409         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25410         declaration, either as macro or with correct signature.
25411         (select): Ensure function under test is declared with correct
25412         signature in correct header.
25413         * tests/test-atexit.c (atexit): Likewise.
25414         * tests/test-btowc.c (btowc): Likewise.
25415         * tests/test-canonicalize-lgpl.c (realpath)
25416         (canonicalize_file_name): Likewise.
25417         * tests/test-ceilf1.c (ceilf): Likewise.
25418         * tests/test-ceill.c (ceill): Likewise.
25419         * tests/test-chown.c (chown): Likewise.
25420         * tests/test-dprintf-posix.c (dprintf): Likewise.
25421         * tests/test-dup2.c (dup2): Likewise.
25422         * tests/test-dup3.c (dup3): Likewise.
25423         * tests/test-duplocale.c (duplocale): Likewise.
25424         * tests/test-fchdir.c (fchdir): Likewise.
25425         * tests/test-fchownat.c (fchownat): Likewise.
25426         * tests/test-fcntl.c (fcntl): Likewise.
25427         * tests/test-fdopendir.c (fdopendir): Likewise.
25428         * tests/test-fflush.c (fflush): Likewise.
25429         * tests/test-flock.c (flock): Likewise.
25430         * tests/test-floorf1.c (floorf): Likewise.
25431         * tests/test-floorl.c (floorl): Likewise.
25432         * tests/test-fnmatch.c (fnmatch): Likewise.
25433         * tests/test-fopen.c (fopen): Likewise.
25434         * tests/test-fprintf-posix.c (fprintf): Likewise.
25435         * tests/test-freopen.c (freopen): Likewise.
25436         * tests/test-frexp.c (frexp): Likewise.
25437         * tests/test-frexpl.c (frexpl): Likewise.
25438         * tests/test-fseek.c (fseek): Likewise.
25439         * tests/test-fseeko.c (fseeko): Likewise.
25440         * tests/test-fstatat.c (fstatat): Likewise.
25441         * tests/test-fsync.c (fsync): Likewise.
25442         * tests/test-ftell.c (ftell): Likewise.
25443         * tests/test-ftello.c (ftello): Likewise.
25444         * tests/test-futimens.c (futimens): Likewise.
25445         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25446         (gai_strerror): Likewise.
25447         * tests/test-getcwd.c (getcwd): Likewise.
25448         * tests/test-getdelim.c (getdelim): Likewise.
25449         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25450         * tests/test-getgroups.c (getgroups): Likewise.
25451         * tests/test-gethostname.c (gethostname): Likewise.
25452         * tests/test-getline.c (getline): Likewise.
25453         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25454         Likewise.
25455         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25456         * tests/test-glob.c (glob, globfree): Likewise.
25457         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25458         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25459         * tests/test-inet_pton.c (inet_pton): Likewise.
25460         * tests/test-isblank.c (isblank): Likewise.
25461         * tests/test-lchown.c (lchown): Likewise.
25462         * tests/test-ldexpl.c (ldexpl): Likewise.
25463         * tests/test-link.c (link): Likewise.
25464         * tests/test-linkat.c (linkat): Likewise.
25465         * tests/test-lseek.c (lseek): Likewise.
25466         * tests/test-lstat.c (lstat): Likewise.
25467         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25468         * tests/test-mbsinit.c (mbsinit): Likewise.
25469         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25470         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25471         * tests/test-memchr.c (memchr): Likewise.
25472         * tests/test-memcmp.c (memcmp): Likewise.
25473         * tests/test-memmem.c (memmem): Likewise.
25474         * tests/test-memrchr.c (memrchr): Likewise.
25475         * tests/test-mkdir.c (mkdir): Likewise.
25476         * tests/test-mkdirat.c (mkdirat): Likewise.
25477         * tests/test-mkfifo.c (mkfifo): Likewise.
25478         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25479         * tests/test-mknod.c (mknod): Likewise.
25480         * tests/test-nanosleep.c (nanosleep): Likewise.
25481         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25482         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25483         Likewise.
25484         * tests/test-open.c (open): Likewise.
25485         * tests/test-openat.c (openat): Likewise.
25486         * tests/test-perror.c (perror): Likewise.
25487         * tests/test-pipe2.c (pipe2): Likewise.
25488         * tests/test-poll.c (poll): Likewise.
25489         * tests/test-popen.c (popen, pclose): Likewise.
25490         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25491         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25492         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25493         (posix_spawn_file_actions_destroy)
25494         (posix_spawn_file_actions_addclose)
25495         (posix_spawn_file_actions_addopen)
25496         (posix_spawn_file_actions_adddup2): Likewise.
25497         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25498         * tests/test-pread.c (pread): Likewise.
25499         * tests/test-printf-posix.c (printf): Likewise.
25500         * tests/test-pty.c (openpty, forkpty): Likewise.
25501         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25502         (random_r): Likewise.
25503         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25504         * tests/test-readlink.c (readlink): Likewise.
25505         * tests/test-remove.c (remove): Likewise.
25506         * tests/test-rename.c (rename): Likewise.
25507         * tests/test-renameat.c (renameat): Likewise.
25508         * tests/test-rmdir.c (rmdir): Likewise.
25509         * tests/test-round1.c (round): Likewise.
25510         * tests/test-roundf1.c (roundf): Likewise.
25511         * tests/test-roundl.c (roundl): Likewise.
25512         * tests/test-setenv.c (setenv): Likewise.
25513         * tests/test-sigaction.c (sigaction): Likewise.
25514         * tests/test-sleep.c (sleep): Likewise.
25515         * tests/test-snprintf.c (snprintf): Likewise.
25516         * tests/test-sprintf-posix.c (sprintf): Likewise.
25517         * tests/test-stat.c (stat): Likewise.
25518         * tests/test-stpncpy.c (stpncpy): Likewise.
25519         * tests/test-strcasestr.c (strcasestr): Likewise.
25520         * tests/test-strchrnul.c (strchrnul): Likewise.
25521         * tests/test-strerror.c (strerror): Likewise.
25522         * tests/test-strsignal.c (strsignal): Likewise.
25523         * tests/test-strstr.c (strstr): Likewise.
25524         * tests/test-strtod.c (strtod): Likewise.
25525         * tests/test-strverscmp.c (strverscmp): Likewise.
25526         * tests/test-symlink.c (symlink): Likewise.
25527         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25528         * tests/test-times.c (times): Likewise.
25529         * tests/test-trunc1.c (trunc): Likewise.
25530         * tests/test-truncf1.c (truncf): Likewise.
25531         * tests/test-truncl.c (truncl): Likewise.
25532         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25533         Likewise.
25534         * tests/test-uname.c (uname): Likewise.
25535         * tests/test-unlink.c (unlink): Likewise.
25536         * tests/test-unlinkat.c (unlinkat): Likewise.
25537         * tests/test-unsetenv.c (unsetenv): Likewise.
25538         * tests/test-usleep.c (usleep): Likewise.
25539         * tests/test-utimensat.c (utimensat): Likewise.
25540         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25541         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25542         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25543         * tests/test-vprintf-posix.c (vprintf): Likewise.
25544         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25545         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25546         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25547         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25548         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25549         * tests/test-wcwidth.c (wcwidth): Likewise.
25550
25551         build: pull in conditional headers during GNULIB_POSIXCHECK
25552         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25553         definitions from any conditionally-included headers.
25554         * lib/stdlib.in.h (includes): Likewise.
25555         * lib/unistd.in.h (includes): Likewise.
25556
25557 2009-12-24  Bruno Haible  <bruno@clisp.org>
25558
25559         * tests/test-argv-iter.c: Include header file being tested immediately
25560         after config.h.
25561         * tests/test-base64.c: Likewise.
25562         * tests/test-flock.c: Likewise.
25563         * tests/test-fsync.c: Likewise.
25564         * tests/test-getdate.c: Likewise.
25565         * tests/test-getndelim2.c: Likewise.
25566         * tests/test-isfinite.c: Likewise.
25567         * tests/test-isinf.c: Likewise.
25568         * tests/test-strerror.c: Likewise.
25569         * tests/test-strsignal.c: Likewise.
25570
25571 2009-12-23  Eric Blake  <ebb9@byu.net>
25572
25573         unistd: work around cygwin bug
25574         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25575         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25576         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25577
25578 2009-12-23  Bruno Haible  <bruno@clisp.org>
25579
25580         localename: More tests.
25581         * tests/test-localename.c (SIZEOF): New macro.
25582         (categories): New variable.
25583         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25584         test_locale_name_default): Add test w.r.t. thread locale.
25585         (test_locale_name_thread): New function.
25586         (main): Invoke it.
25587
25588         localename: Make aware of thread locale.
25589         * lib/localename.h (gl_locale_name_thread): New declaration.
25590         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25591         behaviour with respect to thread locale.
25592         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25593         <langinfo.h>, glthread/lock.h.
25594         (SIZE_BITS): New macro.
25595         (string_hash): New function.
25596         (struct hash_node): New type.
25597         (HASH_TABLE_SIZE): New macro.
25598         (struniq_hash_table, struniq_lock): New variables.
25599         (struniq): New function.
25600         (gl_locale_name_thread): New function.
25601         (gl_locale_name): Invoke it.
25602         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25603         * modules/localename (Depends-on): Add lock.
25604         Reported by Mike Gran <spk121@yahoo.com>.
25605
25606 2009-12-23  Eric Blake  <ebb9@byu.net>
25607
25608         va-args: new module
25609         * modules/va-args: New file.
25610         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25611         * MODULES.html.sh (Core language properties): Mention it.
25612
25613         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25614         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25615         named alias for __attribute__((__unused__)).
25616         * lib/chown.c: Update client.
25617         * lib/fchmodat.c: Likewise.
25618         * lib/fts.c: Likewise.
25619         * lib/getdate.y: Likewise.
25620         * lib/getgroups.c: Likewise.
25621         * lib/getopt.c: Likewise.
25622         * lib/getugroups.c: Likewise.
25623         * lib/mkdir.c: Likewise.
25624         * lib/mkfifo.c: Likewise.
25625         * lib/mkfifoat.c: Likewise.
25626         * lib/mknod.c: Likewise.
25627         * lib/mknodat.c: Likewise.
25628         * lib/readlink.c: Likewise.
25629         * lib/se-context.in.h: Likewise.
25630         * lib/se-selinux.in.h: Likewise.
25631         * lib/sockets.c: Likewise.
25632         * lib/symlink.c: Likewise.
25633         * lib/symlinkat.c: Likewise.
25634         * lib/unicodeio.c: Likewise.
25635         * lib/unistr.h: Likewise.
25636         * tests/test-areadlink.c: Likewise.
25637         * tests/test-areadlinkat.c: Likewise.
25638         * tests/test-filenamecat.c: Likewise.
25639         * tests/test-fseeko.c: Likewise.
25640         * tests/test-ftello.c: Likewise.
25641         * tests/test-getdate.c: Likewise.
25642         * tests/test-getgroups.c: Likewise.
25643         * tests/test-gethostname.c: Likewise.
25644         * tests/test-quotearg.c: Likewise.
25645         * tests/test-version-etc.c: Likewise.
25646         * tests/test-xalloc-die.c: Likewise.
25647         * tests/test-xfprintf-posix.c: Likewise.
25648         * tests/test-xprintf-posix.c: Likewise.
25649         * tests/test-xvasprintf.c: Likewise.
25650
25651         tests: avoid compiler warnings
25652         * tests/test-fcntl.c (main): Delete unused parameters.
25653         * tests/test-freopen-safer.c (main): Likewise.
25654         * tests/test-xalloc-die.c (main): Mark unused parameters.
25655         * tests/test-fseeko.c (main): Likewise.
25656         * tests/test-ftello.c (main): Likewise.
25657         * tests/test-nanosleep.c (main): Avoid declaration warning.
25658         * tests/test-sleep.c (main): Likewise.
25659         * tests/test-unsetenv.c (main): Silence warning about string
25660         literal.
25661         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25662
25663 2009-12-23  Bruno Haible  <bruno@clisp.org>
25664
25665         * tests/test-localename.c (test_locale_name): New function, extracted
25666         from main. Also test mixed situations.
25667         (test_locale_name_posix, test_locale_name_environ,
25668         test_locale_name_default): New functions.
25669         (main): Invoke them all.
25670         * modules/localename-tests (configure.ac): Test for newlocale.
25671
25672 2009-12-23  Bruno Haible  <bruno@clisp.org>
25673
25674         unistd: Ensure getcwd gets declared before being overridden.
25675         * lib/unistd.in.h: Conditionally include <io.h>.
25676
25677 2009-12-22  Bruno Haible  <bruno@clisp.org>
25678
25679         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25680         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25681         (gl_WCHAR_H): Invoke it.
25682         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25683         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25684         Reported by Karl Berry <karl@freefriends.org>.
25685
25686 2009-12-22  Eric Blake  <ebb9@byu.net>
25687
25688         math, unistd: avoid redundant includes
25689         * lib/math.in.h (isnan): No need to re-include <math.h>.
25690         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25691
25692         getsubopt: work around cygwin bug
25693         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25694         avoid conflicting with system getsubopt.
25695         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25696         bug.
25697
25698         getopt: synchronize from glibc
25699         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25700         parameter order.  Adjust all callers.
25701         (_getopt_internal_r, main): Adjust quoting in error messages.
25702         Drop considerations for outdated POSIX 1003.2 error message.
25703         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25704         callers.
25705         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25706
25707         test-getopt: test stderr behavior
25708         * modules/getopt-posix-tests (Depends-on): Add dup2.
25709         * tests/test-getopt.c (ASSERT): Avoid stderr.
25710         (main): Move stderr to a temporary file.
25711         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25712         Instead, add parameter to inform caller if output occurred.
25713         (test_getopt): Adjust all existing tests to expect silence, and
25714         add new tests of leading ":".
25715         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25716         glibc shortcomings with leading "-:" or "+:" in optstring.
25717         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25718         Likewise.
25719         * doc/posix-functions/getopt.texi (getopt): Likewise.
25720
25721         test-getopt: enhance test
25722         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25723         supports optind=0.
25724         * tests/test-getopt.c (OPTIND_MIN): Move...
25725         * tests/test-getopt.h (OPTIND_MIN): ...here.
25726         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25727         Require that optind=0 works, since modern BSD supports it in
25728         addition to optreset, and since coreutils expects it.
25729         (test_getopt_long_only): New test.
25730         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25731         glibc shortcomings with 'W;', and enforcement of optind=0.
25732         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25733         Likewise.
25734
25735 2009-12-21  Bruno Haible  <bruno@clisp.org>
25736
25737         localename: Improvements for MacOS X and Cygwin.
25738         * lib/localename.h (gl_locale_name_environ): New declaration.
25739         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25740         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25741         (gl_locale_name_posix): Invoke it.
25742         (gl_locale_name_default): Add comments. Use Windows native API also on
25743         Cygwin.
25744
25745 2009-12-21  Bruno Haible  <bruno@clisp.org>
25746
25747         Update list of Win32 locale ids.
25748         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25749         (LANG_SAMI): Renamed from LANG_SAAMI.
25750         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25751         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25752         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25753         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25754         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25755         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25756         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25757         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25758         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25759         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25760         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25761         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25762         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25763         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25764         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25765         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25766         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25767         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25768         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25769         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25770         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25771         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25772         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25773         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25774         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25775         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25776         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25777         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25778         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25779         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25780         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25781         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25782         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25783         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25784         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25785         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25786         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25787         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25788         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25789         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25790         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25791         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25792         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25793         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25794         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25795         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25796         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25797         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25798         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25799         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25800         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25801         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25802         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25803         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25804         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25805         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25806         Add more languages and countries for Sami, Sorbian. Add more countries
25807         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25808         for Pashto. Change country for Syriac, Tswana.
25809
25810 2009-12-21  Eric Blake  <ebb9@byu.net>
25811
25812         test-utimens: avoid spurious failure
25813         * tests/test-chown.h (nap): Factor...
25814         * tests/nap.h: ...into new file.
25815         * tests/test-lchown.h (nap): Avoid duplication.
25816         * tests/test-utimens-common.h (nap): Use shared implementation,
25817         necessary on file systems with 1-second resolution.
25818         * modules/chown-tests (Files): Include new file.
25819         * modules/fdutimensat-tests (Files): Likewise.
25820         * modules/futimens-tests (Files): Likewise.
25821         * modules/lchown-tests (Files): Likewise.
25822         * modules/openat-tests (Files): Likewise.
25823         * modules/utimens-tests (Files): Likewise.
25824         * modules/utimensat-tests (Files): Likewise.
25825
25826 2009-12-19  Eric Blake  <ebb9@byu.net>
25827
25828         futimens, utimensat: work around Linux bug
25829         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25830         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25831         * lib/utimensat.c (rpl_utimensat): Work around it.
25832         * lib/futimens.c (rpl_futimens): Adjust comment.
25833
25834         utimens: work around Linux ctime bug
25835         * lib/utimens.c (detect_ctime_bug): New helper function.
25836         (update_timespec): Differentiate between workaround needed for
25837         this bug vs. what is needed for systems that lack utimensat.
25838         (fdutimens, lutimens): Work around bug.
25839
25840         utimens: check for ctime update
25841         * tests/test-utimens-common.h (check_ctime): Define.
25842         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25843         * tests/test-futimens.h (test_futimens): Likewise.
25844         * tests/test-lutimens.h (test_lutimens): Likewise.
25845         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25846         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25847
25848 2009-12-19  Bruno Haible  <bruno@clisp.org>
25849
25850         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25851         * tests/test-dprintf-posix2.sh: New file.
25852         * tests/test-dprintf-posix2.c: New file.
25853         * modules/dprintf-posix-tests (Files): Add them.
25854         (configure.ac): Check for getrlimit and setrlimit.
25855         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25856
25857 2009-12-19  Bruno Haible  <bruno@clisp.org>
25858
25859         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25860         * tests/test-fprintf-posix3.sh: New file.
25861         * tests/test-fprintf-posix3.c: New file.
25862         * modules/fprintf-posix-tests (Files): Add them.
25863         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25864
25865 2009-12-19  Eric Blake  <ebb9@byu.net>
25866
25867         dirfd: fix prototype
25868         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
25869         * lib/dirfd.c (dirfd): Likewise.
25870
25871         canonicalize: reduce memory usage
25872         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
25873         allocation to size.
25874         Reported by Solar Designer <solar@openwall.com>.
25875
25876 2009-12-19  Bruno Haible  <bruno@clisp.org>
25877
25878         New module attribute 'Applicability'.
25879         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
25880         * gnulib-tool: New option --extract-applicability.
25881         (func_usage): Document it.
25882         (sed_extract_prog): Recognize it.
25883         (func_get_applicability): New function.
25884         (func_import): Generalize handling of 'link-warning' module.
25885         * modules/link-warning (Applicability): New section.
25886         * modules/arg-nonnull (Applicability): New section.
25887         Repoted by Simon Josefsson <simon@josefsson.org>.
25888
25889 2009-12-19  Bruno Haible  <bruno@clisp.org>
25890
25891         fflush: tweak
25892         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
25893         * lib/fseeko.c (rpl_fseeko): Likewise.
25894
25895 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
25896
25897         * lib/gl_list.h: Fix typo in comment.
25898
25899 2009-12-16  Eric Blake  <ebb9@byu.net>
25900
25901         fcntl: use to simplify other modules
25902         * modules/cloexec (Depends-on): Add fcntl.
25903         * modules/fchdir (Depends-on): Likewise.
25904         * modules/fd-safer-flag (Depends-on): Likewise.
25905         * modules/unistd-safer (Depends-on): Likewise.
25906         * modules/dup3 (configure.ac): Set module indicator.
25907         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
25908         missing.
25909         * lib/fchdir.c (_gl_register_dup): Fix comment.
25910         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
25911         * lib/dup-safer.c (dup_safer): Likewise.
25912         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
25913         * lib/dup3.c (dup3): Likewise.
25914         * tests/test-fchdir.c (main): Enhance test.
25915         Fixes a dup_cloexec bug reported by Ondřej Vašík.
25916
25917         fcntl: port portions of fcntl to mingw
25918         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
25919         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
25920         replacement for mingw.
25921         * modules/fcntl (Description): Update.
25922         (Depends-on): Add dup2.
25923         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
25924         * modules/fcntl-h (Makefile.am): Substitute it.
25925         * lib/fcntl.in.h (fcntl): Update declaration.
25926         (F_DUPFD, F_GETFD): New macros, when needed.
25927         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25928         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
25929         * tests/test-fcntl.c (check_flags, main): Enhance test for items
25930         we now guarantee.
25931
25932         fcntl: work around cygwin bug in F_DUPFD
25933         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
25934         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
25935         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
25936         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
25937         * doc/posix-functions/fcntl.texi (fcntl): Document it.
25938
25939         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
25940         * modules/fcntl (Files): List new files.
25941         (configure.ac): Run a test.
25942         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
25943         * lib/fcntl.c (rpl_fcntl): Likewise.
25944         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
25945         (gl_FCNTL_H): Always replace fcntl.h.
25946         * modules/fcntl-h (Makefile.am): Substitute witnesses.
25947         * lib/fcntl.in.h (fcntl): Declare replacement.
25948         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
25949         needed, plus a witness.
25950         * doc/posix-functions/fcntl.texi (fcntl): Document this.
25951         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25952         * tests/test-fcntl.c: New file.
25953         * modules/fcntl-tests: Likewise.
25954
25955         binary-io: avoid potential compilation warning
25956         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
25957         directives.
25958
25959         fflush: avoid compilation error on NetBSD
25960         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
25961         between off_t and fpos_t, since the latter is sometimes a struct.
25962         * lib/fseeko.c (rpl_fseeko): Likewise.
25963         Reported by Alexander Nasonov <alnsn@yandex.ru>.
25964
25965 2009-12-15  Eric Blake  <ebb9@byu.net>
25966
25967         fcntl-h, stdio, sys_ioctl: fix declarations
25968         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
25969         function must not take arguments.
25970         * lib/sys_ioctl.in.h (ioctl): Likewise.
25971         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
25972         (open): Add a link warning.
25973
25974 2009-12-15  Jim Meyering  <meyering@redhat.com>
25975
25976         areadlink, areadlink-with-size: relax license to LGPLv2+
25977         * modules/areadlink (License): Relax to LGPLv2+.
25978         * modules/areadlink-with-size (License): Likewise.
25979
25980 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
25981             Bruno Haible  <bruno@clisp.org>
25982
25983         *printf: Fix memory leak.
25984         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
25985         * lib/vfprintf.c (vfprintf): Likewise.
25986         * lib/dprintf.c (dprintf): Likewise.
25987         * lib/vdprintf.c (vdprintf): Likewise.
25988
25989 2009-12-14  Eric Blake  <ebb9@byu.net>
25990
25991         accept4: adjust module dependencies
25992         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
25993
25994         utimens: one more try at avoiding compiler warning
25995         * lib/utimens.c (lutimens): Lower scope of result.
25996
25997 2009-12-13  Bruno Haible  <bruno@clisp.org>
25998
25999         Move the malloc checking from module 'list' to new module 'xlist'.
26000         * modules/xlist: New file.
26001         * lib/gl_xlist.h: New file.
26002         * lib/gl_xlist.c: New file.
26003         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
26004         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
26005         gl_list_add_last, gl_list_add_before, gl_list_add_after,
26006         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
26007         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
26008         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
26009         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
26010         gl_sortedlist_nx_add): New declarations.
26011         (struct gl_list_implementation): Rename and change methods accordingly.
26012         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
26013         (gl_list_nx_create): Renamed from gl_list_create.
26014         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26015         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26016         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26017         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26018         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26019         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26020         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26021         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26022         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
26023         gl_list_create_empty.
26024         (gl_list_nx_create): Renamed from gl_list_create.
26025         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26026         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26027         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26028         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26029         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26030         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26031         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26032         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26033         * lib/gl_array_list.c: Don't include xalloc.h.
26034         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
26035         NULL upon out-of-memory.
26036         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
26037         out-of-memory.
26038         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
26039         Change return type to 'int'.
26040         (gl_array_nx_set_at): Renamed from gl_array_set_at.
26041         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26042         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
26043         upon out-of-memory.
26044         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
26045         upon out-of-memory.
26046         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
26047         upon out-of-memory.
26048         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
26049         upon out-of-memory.
26050         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
26051         out-of-memory.
26052         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
26053         Update.
26054         (gl_array_list_implementation): Update.
26055         * lib/gl_carray_list.c: Don't include xalloc.h.
26056         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
26057         Return NULL upon out-of-memory.
26058         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
26059         out-of-memory.
26060         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
26061         Change return type to 'int'.
26062         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
26063         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26064         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
26065         upon out-of-memory.
26066         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
26067         upon out-of-memory.
26068         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
26069         out-of-memory.
26070         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
26071         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
26072         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
26073         Update.
26074         (gl_carray_list_implementation): Update.
26075         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
26076         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
26077         gl_linked_create_empty. Return NULL upon out-of-memory.
26078         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
26079         out-of-memory.
26080         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
26081         Change return type to 'int'. Return -1 upon out-of-memory.
26082         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
26083         out-of-memory.
26084         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
26085         upon out-of-memory.
26086         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
26087         upon out-of-memory.
26088         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
26089         NULL upon out-of-memory.
26090         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
26091         upon out-of-memory.
26092         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
26093         out-of-memory.
26094         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
26095         Update.
26096         * lib/gl_linked_list.c: Don't include xalloc.h.
26097         (gl_linked_list_implementation): Update.
26098         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
26099         (add_to_bucket): Change return type to 'int'.
26100         (gl_linkedhash_list_implementation): Update.
26101         * lib/gl_anytree_list1.h (free_subtree): New function.
26102         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
26103         gl_tree_create_empty. Return NULL upon out-of-memory.
26104         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
26105         Change return type to 'int'. Return -1 upon out-of-memory.
26106         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
26107         out-of-memory.
26108         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
26109         (gl_tree_remove_node): New function, moved here from
26110         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
26111         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
26112         Update.
26113         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26114         malloc, not xmalloc. Return NULL upon out-of-memory.
26115         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26116         out-of-memory.
26117         (gl_tree_remove_node_from_tree): New function, extracted from
26118         gl_tree_remove_node.
26119         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26120         upon out-of-memory.
26121         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26122         out-of-memory.
26123         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26124         upon out-of-memory.
26125         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26126         upon out-of-memory.
26127         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26128         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
26129         not xmalloc. Return NULL upon out-of-memory.
26130         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26131         out-of-memory.
26132         (gl_tree_remove_node_from_tree): New function, extracted from
26133         gl_tree_remove_node.
26134         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26135         upon out-of-memory.
26136         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26137         out-of-memory.
26138         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26139         upon out-of-memory.
26140         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26141         upon out-of-memory.
26142         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26143         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
26144         gl_anytree_list1.h before gl_anyavltree_list2.h.
26145         (gl_avltree_list_implementation): Update.
26146         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
26147         gl_anytree_list1.h before gl_anyavltree_list2.h.
26148         (gl_rbtree_list_implementation): Update.
26149         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
26150         Change return type to 'int'. Return -1 upon out-of-memory. Use
26151         __builtin_expect.
26152         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
26153         (gl_avltreehash_list_implementation): Update.
26154         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
26155         (gl_rbtreehash_list_implementation): Update.
26156         * modules/array-list (Depends-on): Remove xalloc.
26157         * modules/carray-list (Depends-on): Likewise.
26158         * modules/linked-list (Depends-on): Likewise.
26159         * modules/linkedhash-list (Depends-on): Likewise.
26160         * modules/avltree-list (Depends-on): Likewise.
26161         * modules/rbtree-list (Depends-on): Likewise.
26162         * modules/avltreehash-list (Depends-on): Likewise.
26163         * modules/rbtreehash-list (Depends-on): Likewise.
26164
26165         * modules/xsublist: New file.
26166         * lib/gl_xsublist.h: New file.
26167         * lib/gl_xsublist.c: New file.
26168         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
26169         (gl_sublist_nx_create): New declaration.
26170         * lib/gl_sublist.c: Don't include xalloc.h.
26171         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
26172         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
26173         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
26174         Change return type to 'int'. Return -1 upon out-of-memory.
26175         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
26176         upon out-of-memory.
26177         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
26178         NULL upon out-of-memory.
26179         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
26180         upon out-of-memory.
26181         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
26182         NULL upon out-of-memory.
26183         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
26184         NULL upon out-of-memory.
26185         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
26186         upon out-of-memory.
26187         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
26188         (gl_sublist_list_implementation): Update.
26189         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
26190         upon out-of-memory.
26191         * modules/sublist (Depends-on): Remove xalloc.
26192
26193         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
26194         * tests/test-carray_list.c: Likewise.
26195         * tests/test-linked_list.c: Likewise.
26196         * tests/test-linkedhash_list.c: Likewise.
26197         * tests/test-avltree_list.c: Likewise.
26198         * tests/test-rbtree_list.c: Likewise.
26199         * tests/test-avltreehash_list.c: Likewise.
26200         * tests/test-rbtreehash_list.c: Likewise.
26201         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
26202         * modules/carray-list-tests (Makefile.am): Likewise.
26203         * modules/linked-list-tests (Makefile.am): Likewise.
26204         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26205         * modules/avltree-list-tests (Makefile.am): Likewise.
26206         * modules/rbtree-list-tests (Makefile.am): Likewise.
26207         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26208         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26209
26210         * NEWS: Mention the changes.
26211
26212         * lib/clean-temp.c: Include gl_xlist.h.
26213         * modules/clean-temp (Depends-on): Add xlist.
26214
26215         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
26216         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
26217
26218         * tests/test-array_oset.c: Include gl_xlist.h.
26219         * modules/array-oset-tests (Depends-on): Add xlist.
26220
26221         Reported by José E. Marchesi <jemarch@gnu.org>.
26222
26223 2009-12-13  Bruno Haible  <bruno@clisp.org>
26224
26225         Move the malloc checking from module 'oset' to new module 'xoset'.
26226         * modules/xoset: New file.
26227         * lib/gl_xoset.h: New file.
26228         * lib/gl_xoset.c: New file.
26229         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
26230         declarations.
26231         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
26232         (struct gl_oset_implementation): Rename and change methods accordingly.
26233         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
26234         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26235         'int'. Mark as __warn_unused_result__.
26236         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
26237         gl_oset_create_empty.
26238         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26239         'int'.
26240         * lib/gl_array_oset.c: Don't include xalloc.h.
26241         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
26242         malloc, not xmalloc.
26243         (grow): Change return type to 'int'. Don't call xalloc_die.
26244         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
26245         to 'int'.
26246         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
26247         'int'.
26248         (gl_array_oset_implementation): Update.
26249         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
26250         gl_tree_create_empty.
26251         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
26252         'int'.
26253         * lib/gl_avltree_oset.c: Don't include xalloc.h.
26254         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26255         xmalloc.
26256         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26257         not xmalloc.
26258         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26259         xmalloc.
26260         (gl_avltree_oset_implementation): Update.
26261         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
26262         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26263         xmalloc.
26264         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26265         not xmalloc.
26266         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26267         xmalloc.
26268         (gl_rbtree_oset_implementation): Update.
26269         * modules/array-oset (Depends-on): Remove xalloc.
26270         * modules/avltree-oset (Depends-on): Likewise.
26271         * modules/rbtree-oset (Depends-on): Likewise.
26272         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
26273         * tests/test-avltree_oset.c: Likewise.
26274         * tests/test-rbtree_oset.c: Likewise.
26275         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26276         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
26277         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26278         * NEWS: Mention the change.
26279
26280 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
26281
26282         maint.mk: allow a project to override release-prep commands
26283         * top/maint.mk (alpha, beta, stable): Move release-preparatory
26284         commands into a new rule.
26285         (release-prep): New rule.
26286         (release-prep-hook): New overridable variable.
26287
26288 2009-12-13  Bruno Haible  <bruno@clisp.org>
26289
26290         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
26291
26292 2009-12-13  Jim Meyering  <meyering@redhat.com>
26293
26294         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
26295         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26296
26297 2009-12-12  Bruno Haible  <bruno@clisp.org>
26298
26299         duplocale: Tweak.
26300         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26301
26302 2009-12-12  Karl Berry  <karl@gnu.org>
26303
26304         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26305
26306 2009-12-12  Bruno Haible  <bruno@clisp.org>
26307
26308         * m4/po.m4: Undo incorrect untabification.
26309
26310 2009-12-12  Bruno Haible  <bruno@clisp.org>
26311
26312         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26313         * modules/c-strtod (Depends-on): Add locale.
26314         * modules/c-strtold (Depends-on): Likewise.
26315
26316 2009-12-12  Bruno Haible  <bruno@clisp.org>
26317
26318         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26319
26320 2009-12-11  Eric Blake  <ebb9@byu.net>
26321
26322         setenv: relax requirement in light of POSIX ruling
26323         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26324         not NULL.
26325         * tests/test-setenv.c (main): Relax test.
26326         * tests/test-unsetenv.c (main): Likewise.
26327         * doc/posix-functions/setenv.texi (setenv): Document this.
26328         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26329
26330 2009-12-11  Bruno Haible  <bruno@clisp.org>
26331
26332         New module 'fd-safer-flag'.
26333         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26334         * lib/dup-safer.c (dup_safer_flag): Remove function.
26335         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26336         * lib/fd-safer.c (fd_safer_flag): Remove function.
26337         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26338         * modules/cloexec (configure.ac): Drop indicator macro.
26339         * modules/fd-safer-flag: New file.
26340         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26341         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26342         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26343
26344 2009-12-11  Bruno Haible  <bruno@clisp.org>
26345
26346         Tests for module 'nl_langinfo'.
26347         * modules/nl_langinfo-tests: New file.
26348         * tests/test-nl_langinfo.sh: New file.
26349         * tests/test-nl_langinfo.c: New file.
26350
26351         New module 'nl_langinfo'.
26352         * lib/nl_langinfo.c: New file.
26353         * m4/nl_langinfo.m4: New file.
26354         * modules/nl_langinfo: New file.
26355         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26356
26357 2009-12-11  Bruno Haible  <bruno@clisp.org>
26358
26359         Tests for module 'langinfo'.
26360         * modules/langinfo-tests: New file.
26361         * tests/test-langinfo.c: New file.
26362
26363         New module 'langinfo'.
26364         * lib/langinfo.in.h: New file.
26365         * m4/langinfo_h.m4: New file.
26366         * modules/langinfo: New file.
26367         * doc/posix-headers/langinfo.texi: Mention the new module.
26368
26369 2009-12-11  Bruno Haible  <bruno@clisp.org>
26370
26371         * lib/config.charset: Untabify.
26372
26373 2009-12-11  Bruno Haible  <bruno@clisp.org>
26374
26375         * modules/unistd-safer (configure.ac): Drop indicator macro.
26376
26377 2009-12-11  Bruno Haible  <bruno@clisp.org>
26378
26379         Move pipe2-safer code to its own file.
26380         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26381         * lib/pipe-safer.c (pipe2_safer): Remove function.
26382         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26383         (Makefile.am): Add it to lib_SOURCES.
26384
26385 2009-12-10  Bruno Haible  <bruno@clisp.org>
26386
26387         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26388
26389 2009-12-10  Bruno Haible  <bruno@clisp.org>
26390
26391         Declare which arguments expect non-NULL values, for GCC and clang.
26392         * build-aux/arg-nonnull.h: New file.
26393         * modules/arg-nonnull: New file.
26394         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26395         (inet_ntop, inet_pton): Use it.
26396         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26397         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26398         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26399         (open, openat): Use it.
26400         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26401         (fnmatch): Use it.
26402         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26403         (getopt, getopt_long, getopt_long_only): Use it.
26404         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26405         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26406         Use it.
26407         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26408         (iconv_open): Use it.
26409         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26410         (strtoimax, strtoumax): Use it.
26411         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26412         (duplocale): Use it.
26413         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26414         (frexp, frexpl): Use it.
26415         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26416         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26417         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26418         (tsearch, tfind, tdelete, twalk): Use it.
26419         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26420         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26421         sigpending): Use it.
26422         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26423         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26424         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26425         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26426         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26427         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26428         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26429         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26430         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26431         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26432         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26433         Use it.
26434         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26435         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26436         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26437         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26438         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26439         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26440         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26441         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26442         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26443         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26444         strtoull, unsetenv): Use it.
26445         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26446         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26447         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26448         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26449         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26450         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26451         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26452         (strcasecmp, strncasecmp): Use it.
26453         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26454         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26455         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26456         rpl_setsockopt): Use it.
26457         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26458         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26459         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26460         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26461         (gettimeofday): Use it.
26462         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26463         (times): Use it.
26464         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26465         (uname): Use it.
26466         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26467         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26468         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26469         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26470         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26471         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26472         unlinkat, write): Use it.
26473         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26474         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26475         * lib/argv-iter.h: Include arg-nonnull.h.
26476         (_ATTRIBUTE_NONNULL_): Remove macro.
26477         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26478         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26479         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26480         optimization.
26481         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26482         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26483         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26484         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26485         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26486         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26487         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26488         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26489         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26490         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26491         * modules/dirent (Depends-on): Add arg-nonnull.
26492         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26493         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26494         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26495         * modules/fnmatch (Depends-on): Add arg-nonnull.
26496         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26497         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26498         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26499         * modules/glob (Depends-on): Add arg-nonnull.
26500         (Makefile.am): Insert arg-nonnull.h into glob.h.
26501         * modules/iconv_open (Depends-on): Add arg-nonnull.
26502         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26503         * modules/inttypes (Depends-on): Add arg-nonnull.
26504         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26505         * modules/locale (Depends-on): Add arg-nonnull.
26506         (Makefile.am): Insert arg-nonnull.h into locale.h.
26507         * modules/math (Depends-on): Add arg-nonnull.
26508         (Makefile.am): Insert arg-nonnull.h into math.h.
26509         * modules/netdb (Depends-on): Add arg-nonnull.
26510         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26511         * modules/search (Depends-on): Add arg-nonnull.
26512         (Makefile.am): Insert arg-nonnull.h into search.h.
26513         * modules/signal (Depends-on): Add arg-nonnull.
26514         (Makefile.am): Insert arg-nonnull.h into signal.h.
26515         * modules/spawn (Depends-on): Add arg-nonnull.
26516         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26517         * modules/stdio (Depends-on): Add arg-nonnull.
26518         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26519         * modules/stdlib (Depends-on): Add arg-nonnull.
26520         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26521         * modules/string (Depends-on): Add arg-nonnull.
26522         (Makefile.am): Insert arg-nonnull.h into string.h.
26523         * modules/strings (Depends-on): Add arg-nonnull.
26524         (Makefile.am): Insert arg-nonnull.h into strings.h.
26525         * modules/sys_socket (Depends-on): Add arg-nonnull.
26526         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26527         * modules/sys_stat (Depends-on): Add arg-nonnull.
26528         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26529         * modules/sys_time (Depends-on): Add arg-nonnull.
26530         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26531         * modules/sys_times (Depends-on): Add arg-nonnull.
26532         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26533         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26534         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26535         * modules/time (Depends-on): Add arg-nonnull.
26536         (Makefile.am): Insert arg-nonnull.h into time.h.
26537         * modules/unistd (Depends-on): Add arg-nonnull.
26538         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26539         * modules/wchar (Depends-on): Add arg-nonnull.
26540         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26541         * modules/argv-iter (Depends-on): Add arg-nonnull.
26542         * tests/test-canonicalize.c (null_ptr): New function.
26543         (main): Use it.
26544         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26545         (main): Use it.
26546         * tests/test-memmem.c (null_ptr): New function.
26547         (main): Use it.
26548         Reported by Jim Meyering.
26549
26550 2009-12-10  Bruno Haible  <bruno@clisp.org>
26551
26552         Use spaces for indentation, not tabs.
26553         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26554         * m4/*.m4: Untabify.
26555         * build-aux/*.h: Untabify.
26556         * tests/**/*.[hc]: Untabify.
26557         * README: New section "Indent with spaces, not TABs", based on
26558         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26559         * NEWS: Mention the change.
26560
26561 2009-12-10  Bruno Haible  <bruno@clisp.org>
26562
26563         pty test: Fix link error.
26564         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26565         test_pty_LDADD.
26566
26567 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26568
26569         * modules/pty: New file.
26570         * modules/pty-tests: New file.
26571         * m4/pty.m4: New file.
26572         * tests/test-pty.c: New file.
26573         * doc/glibc-headers/pty.texi: Modified.
26574         * doc/glibc-functions/forkpty.texi: Modified.
26575         * doc/glibc-functions/openpty.texi: Modified.
26576
26577 2009-12-10  Bruno Haible  <bruno@clisp.org>
26578
26579         Avoid syntax error in C++ mode.
26580         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26581
26582 2009-12-10  Bruno Haible  <bruno@clisp.org>
26583
26584         Use sed with option -e.
26585         * gnulib-tool (func_version, func_emit_copyright_notice,
26586         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26587         option -e to sed.
26588         * modules/link-warning (Makefile.am): Likewise.
26589
26590 2009-12-10  Jim Meyering  <meyering@redhat.com>
26591
26592         mgetgroups: do not write bytes beyond end of malloc'd buffer
26593         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26594         username, we call getgroups with a one-element-shorter buffer,
26595         but still told it the length was original, max_n_groups.
26596
26597 2009-12-09  Eric Blake  <ebb9@byu.net>
26598
26599         cloexec: relax license
26600         * modules/cloexec (Maintainer): Add myself.
26601         (License): Use LGPL, not GPL.
26602
26603         link-warning: optimize generation
26604         * modules/link-warning (Makefile.am): Reduce process usage.
26605
26606 2009-12-09  Bruno Haible  <bruno@clisp.org>
26607
26608         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26609         workaround was added on 2009-11-17.
26610
26611 2009-12-09  Jim Meyering  <meyering@redhat.com>
26612             Bruno Haible  <bruno@clisp.org>
26613
26614         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26615         * modules/link-warning (Makefile.am): Make the comment-removing sed
26616         command more robust in the face of bootstrap-prepended comment lines.
26617
26618 2009-12-09  Bruno Haible  <bruno@clisp.org>
26619
26620         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26621         most one group.
26622
26623 2009-12-09  Simon Josefsson <simon@josefsson.org>
26624             Bruno Haible  <bruno@clisp.org>
26625
26626         * build-aux/link-warning.h: Add copyright notice.
26627         * modules/link-warning (Makefile.am): Generate link-warning.h from
26628         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26629         * NEWS: Mention change in link-warning module.
26630         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26631         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26632         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26633         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26634         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26635         * modules/math (Makefile.am): Add dependency to math.h.
26636         * modules/search (Makefile.am): Add dependency to search.h.
26637         * modules/signal (Makefile.am): Add dependency to signal.h.
26638         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26639         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26640         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26641         * modules/string (Makefile.am): Add dependency to string.h.
26642         * modules/strings (Makefile.am): Add dependency to strings.h.
26643         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26644         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26645         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26646         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26647         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26648         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26649         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26650         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26651         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26652
26653 2009-12-09  Bruno Haible  <bruno@clisp.org>
26654
26655         fchdir: Optimize away rpl_fstat when possible.
26656         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26657         REPLACE_OPEN_DIRECTORY.
26658         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26659
26660 2009-12-09  Bruno Haible  <bruno@clisp.org>
26661
26662         * lib/fchdir.c: Update comment.
26663
26664 2009-12-09  Bruno Haible  <bruno@clisp.org>
26665
26666         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26667
26668 2009-12-08  Eric Blake  <ebb9@byu.net>
26669
26670         fchdir: avoid memory leak on re-registration.
26671         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26672
26673 2009-12-08  Jim Meyering  <meyering@redhat.com>
26674
26675         init.sh: avoid Solaris 10 /bin/sh portability problem
26676         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26677         sourced script:
26678           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26679           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26680           bar
26681         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26682         and two tests used that idiom.
26683         * tests/init.sh: Update suggested usage comments.
26684         (path_prepend_): New function, to be used in place
26685         of the --src-path=DIR option.
26686         (setup_): Move PATH-prepending code into path_prepend_.
26687         * tests/test-pread.sh: Adapt to new usage.
26688         * tests/test-xalloc-die.sh: Likewise.
26689
26690 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26691
26692         * doc/gnulib.texi (Glibc pty.h): Add.
26693         * doc/glibc-functions/forkpty.texi: Add.
26694         * doc/glibc-functions/openpty.texi: Add.
26695         Suggested by Bruno Haible.
26696
26697 2009-12-08  Eric Blake  <ebb9@byu.net>
26698
26699         fchdir: fix logic bugs
26700         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26701         * tests/test-fchdir.c (main): Enhance test.
26702         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26703         is in use.
26704
26705         dup2: fix logic bugs
26706         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26707         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26708         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26709         exists.
26710         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26711
26712 2009-12-07  Eric Blake  <ebb9@byu.net>
26713
26714         unlink: fix m4 detection
26715         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26716
26717         unistd-safer: add unit test
26718         * modules/unistd-safer-tests: New file.
26719         * tests/test-dup-safer.c: Likewise.
26720         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26721         * tests/test-dup2.c (setmode): Likewise.
26722         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26723
26724         cloexec: preserve text vs. binary across dup_cloexec
26725         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26726         mode.
26727         * modules/dup2-tests (Depends-on): Add binary-io.
26728         * modules/cloexec-tests (Depends-on): Likewise.
26729         * tests/test-dup2.c (setmode, is_mode): New helpers.
26730         (main): Add tests that translation mode is preserved.
26731         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26732         Reported by Bruno Haible.
26733
26734         mgetgroups: reduce duplicate listings
26735         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26736         resulting array.
26737         * tests/test-chown.h (test_chown): Simplify client.
26738         * tests/test-lchown.h (test_lchown): Likewise.
26739
26740 2009-12-06  Bruno Haible  <bruno@clisp.org>
26741
26742         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26743         value.
26744
26745 2009-12-06  Bruno Haible  <bruno@clisp.org>
26746
26747         * lib/progname.c: Include stdio.h, stdlib.h.
26748         (set_program_name): Reject a NULL argument.
26749
26750 2009-12-05  Eric Blake  <ebb9@byu.net>
26751
26752         pipe2-safer: new module
26753         * modules/pipe2-safer: New file.
26754         * lib/unistd-safer.h (pipe2_safer): New prototype.
26755         * lib/unistd--.h (pipe2): New wrapper.
26756         * lib/pipe-safer.c (pipe2_safer): New function.
26757         * modules/pipe (Depends-on): Add pipe2-safer.
26758         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26759
26760         stdlib-safer: preserve cloexec flag for mkostemp[s]
26761         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26762         fd_safer_flag.
26763
26764         unistd-safer: allow preservation of cloexec status via flag
26765         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26766         prototypes.
26767         * lib/dup-safer.c (dup_safer_flag): New function.
26768         * lib/fd-safer.c (fd_safer_flag): Likewise.
26769         * modules/cloexec (configure.ac): Set witness.
26770
26771         test-dup2: enhance test
26772         * modules/dup2-tests (Depends-on): Add cloexec.
26773         * tests/test-dup2.c (main): Enhance test.
26774
26775         cloexec: add dup_cloexec
26776         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26777         header and comments.
26778         * lib/cloexec.c (set_cloexec_flag): Add comments.
26779         (dup_cloexec): New function, with mingw implementation borrowed
26780         from...
26781         * lib/w32spawn.h (dup_noinherit): ...here.
26782         * modules/execute (Depends-on): Add cloexec.
26783         * modules/pipe (Depends-on): Likewise.
26784         * modules/cloexec (Depends-on): Add dup2.
26785         * modules/cloexec-tests (Files): New file.
26786         * tests/test-cloexec.c: Likewise.
26787
26788         test-xalloc-die: fix test for mingw
26789         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26790         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26791         directory and .exe suffix off argv[0] output.
26792
26793         test-fseeko: fix test for mingw
26794         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26795         than undefining fseek, so test will pass on mingw.
26796
26797 2009-12-05  Bruno Haible  <bruno@clisp.org>
26798
26799         * lib/progname.h (set_program_name): Clarify specification.
26800         * lib/progname.c (set_program_name): Likewise.
26801         Reported by Jim Meyering.
26802
26803 2009-12-05  Jim Meyering  <meyering@redhat.com>
26804
26805         maint.mk: backslash-escape parens in default regexp
26806         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26807         backslash-escape the literal parentheses.
26808
26809         maint.mk: news-date-check: use grep -E
26810         * top/maint.mk (today): Define a Make variable, not a...
26811         (news-date-check): ...shell variable.
26812         (news-date-regexp): Use the Make variable.
26813         Use grep's -E option.  Change the failing diagnostic to mention
26814         the variable, $(news-date-regexp).
26815
26816 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26817
26818         maintainer-makefile: allow customization of NEWS entry format
26819         * top/maint.mk (news-date-regexp): New overridable variable.
26820         (news-date-check): Use it.
26821
26822 2009-12-04  Eric Blake  <ebb9@byu.net>
26823
26824         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26825         * lib/mgetgroups.h (xgetgroups): New prototype.
26826         * lib/mgetgroups.c (xgetgroups): New wrapper.
26827         (mgetgroups): Handle ENOSYS.
26828         * modules/mgetgroups (Depends-on): Add realloc.
26829         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26830
26831         mgetgroups: avoid argument promotion issues with -1
26832         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26833         for invalid gid_t.
26834         * tests/test-chown.h (getegid, test_chown): Likewise.
26835         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26836
26837 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26838
26839         exclude: Fix header file problems.
26840         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26841
26842 2009-12-01  Jim Meyering  <meyering@redhat.com>
26843
26844         fts: fts_open: do not let an empty string cause immediate failure
26845         This is required in support of GNU rm, for which the command
26846         "rm A '' B" must process and remove both A and B, in spite of
26847         the empty string argument.
26848         * lib/fts.c (fts_open): Do not let the presence of an empty string
26849         cause fts_open to fail immediately.  Most fts-using tools must be
26850         able to process all arguments, in order, and can be expected to
26851         diagnose such arguments themselves.
26852
26853 2009-11-30  Eric Blake  <ebb9@byu.net>
26854
26855         utimens: fix compilation error
26856         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26857         Declare variable at right scope.
26858
26859 2009-11-29  Jim Meyering  <meyering@redhat.com>
26860
26861         bootstrap: handle perl-5.11's changed --version output
26862         * build-aux/bootstrap (get_version): Handle perl separately,
26863         since perl-5.11's --version output is different.
26864
26865 2009-11-28  Jim Meyering  <meyering@redhat.com>
26866
26867         userspec: depend on the inttostr module, too
26868         * modules/userspec (Depends-on): Add inttostr.
26869
26870         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
26871         * lib/userspec.c (parse_with_separator): Do not accept a user ID
26872         number of MAXUID when it evaluates to (uid_t) -1.
26873         Likewise for group ID.  Reported by Matt McCutchen in
26874         <http://savannah.gnu.org/bugs/?28113>
26875
26876         userspec: reformat to use spaces, not TABs
26877         * lib/userspec.c: Expand TABs to spaces.
26878         Add Emacs' "indent-tabs-mode: nil" hint.
26879
26880 2009-11-27  Eric Blake  <ebb9@byu.net>
26881
26882         getopt-gnu: flush out another BSD bug
26883         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
26884         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
26885         flush out BSD bug.
26886         * tests/test-getopt.h (test_getopt): End lists with NULL.
26887         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26888         (test_getopt_long_posix): Enhance test.
26889         * modules/getopt-posix-tests (Depends-on): Add stdbool.
26890         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
26891         getopt-gnu.
26892         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26893         Likewise.
26894
26895 2009-11-27  Simon Josefsson  <simon@josefsson.org>
26896
26897         * modules/idpriv-droptemp-tests (Notice): Fix text.
26898
26899 2009-11-27  Jim Meyering  <meyering@redhat.com>
26900
26901         test-xalloc-die: avoid spurious failure due to libtool argv difference
26902         In a libtool-enabled project, this test would fail due to a difference
26903         in the emitted program name, e.g.,
26904         -test-xalloc-die: memory exhausted
26905         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
26906         Use program to avoid that.
26907         * modules/xalloc-die-tests (Depends-on): Add progname.
26908         * tests/test-xalloc-die.c: Include progname.h".
26909         (program_name): Remove decl.
26910         (main): Call set_program_name.
26911         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
26912
26913 2009-11-26  Richard Jones  <rjones@redhat.com>
26914
26915         w32sock: leave win32 error in place.
26916         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
26917
26918 2009-11-26  Eric Blake  <ebb9@byu.net>
26919
26920         init.sh: suggest to use skip_ and fail_ functions in comments
26921         * tests/init.sh: Add a sentence.
26922
26923 2009-11-25  Bruno Haible  <bruno@clisp.org>
26924
26925         init.sh: add documentation in comments
26926         * tests/init.sh: Add some developer and user documentation.
26927
26928 2009-11-26  Jim Meyering  <meyering@redhat.com>
26929
26930         init.sh: accommodate even those who specify bogus srcdir manually
26931         * tests/init.sh: Normally, srcdir is guaranteed by automake and
26932         configure-time tests to be sanitized, so that there is no need to
26933         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
26934         (with no double quotes) suffices.  However, since tests may be
26935         invoked manually, and since you may explicitly set srcdir to the
26936         name of a directory containing spaces, do quote its uses here.
26937         * tests/test-pread.sh: Likewise.
26938         Suggested by Bruno Haible.
26939
26940         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
26941         * tests/test-pread.sh: Write no data into the pipe, because
26942         test-pread actually reads none.  This avoids a diagnostic,
26943         "bash: echo: write error: Broken pipe", that arises in the unusual
26944         event something is ignoring SIGPIPE, and might be interpreted
26945         as some sort of failure.  Reported by Bruno Haible.
26946
26947 2009-11-25  Jim Meyering  <meyering@redhat.com>
26948
26949         test-pread: cover failure with ESPIPE and EINVAL
26950         * tests/test-pread.c (main): Test for failure, too.
26951         * tests/test-pread.sh: Invoke with stdin on a pipe.
26952         Suggested by Eric Blake.
26953
26954         pread: improvement and fix
26955         * modules/pread (Depends-on): Depend on lseek, for portability to
26956         e.g., mingw.  Suggested by Eric Blake.
26957         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
26958
26959         unistd.in.h: correct declaration of pread
26960         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
26961         Reported by Richard W.M. Jones.
26962
26963         test-pread.sh: distribute the test script
26964         * modules/pread-tests (Files): Include test-pread.sh.
26965
26966         test-pread.sh: clean up
26967         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
26968         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
26969         That is unnecessary, since it's always ".".
26970         Suggestion from Eric Blake.
26971
26972         test-pread.sh: make executable
26973         * tests/test-pread.sh: Set executable bit.
26974         Reported by Eric Blake.
26975
26976         correct typo in test-pread.sh
26977         * tests/test-pread.sh: Add #! line.
26978
26979         test pread
26980         * tests/test-pread.c: New file.
26981         * tests/test-pread.sh: Likewise.
26982         * modules/pread-tests: Likewise.
26983
26984         pread: new module
26985         * modules/pread: New file.
26986         * lib/unistd.in.h (pread): Define/declare.
26987         * lib/pread.c (pread): New file.
26988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
26989         * modules/unistd (Makefile.am): Substitute witnesses.
26990         * doc/posix-functions/pread.texi (pread): Update.
26991         * MODULES.html.sh: Add pread.
26992
26993 2009-11-25  Jim Meyering  <meyering@redhat.com>
26994
26995         tests/init.sh: new file to be used via most *.sh tests
26996         * tests/init.sh: New file.
26997
26998 2009-11-25  Eric Blake  <ebb9@byu.net>
26999
27000         utimens: work around older Linux failure with symlinks
27001         * lib/utimens.c (lutimensat_works_really): New variable.
27002         (fdutimens, lutimens): Use it to manage kernels that support
27003         nanosecond times on files, but not on symlinks.
27004         Reported by Ondřej Vašík.
27005
27006         utimes: fix configure grammar
27007         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
27008
27009 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
27010
27011         regex: Fix fastmap for multibyte character ranges.
27012         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
27013         characters when a multibyte character range is included.
27014
27015 2009-11-22  Andy Wingo  <wingo@pobox.com>
27016
27017         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
27018         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
27019
27020 2009-11-24  Bruno Haible  <bruno@clisp.org>
27021
27022         doc: Most *_l functions exist in MacOS X 10.5.
27023         * doc/posix-functions/duplocale.texi: Update platforms list.
27024         * doc/posix-functions/freelocale.texi: Likewise.
27025         * doc/posix-functions/newlocale.texi: Likewise.
27026         * doc/posix-functions/uselocale.texi: Likewise.
27027         * doc/posix-functions/isalnum_l.texi: Likewise.
27028         * doc/posix-functions/isalpha_l.texi: Likewise.
27029         * doc/posix-functions/isblank_l.texi: Likewise.
27030         * doc/posix-functions/iscntrl_l.texi: Likewise.
27031         * doc/posix-functions/isdigit_l.texi: Likewise.
27032         * doc/posix-functions/isgraph_l.texi: Likewise.
27033         * doc/posix-functions/islower_l.texi: Likewise.
27034         * doc/posix-functions/isprint_l.texi: Likewise.
27035         * doc/posix-functions/ispunct_l.texi: Likewise.
27036         * doc/posix-functions/isspace_l.texi: Likewise.
27037         * doc/posix-functions/isupper_l.texi: Likewise.
27038         * doc/posix-functions/iswalnum_l.texi: Likewise.
27039         * doc/posix-functions/iswalpha_l.texi: Likewise.
27040         * doc/posix-functions/iswblank_l.texi: Likewise.
27041         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27042         * doc/posix-functions/iswctype_l.texi: Likewise.
27043         * doc/posix-functions/iswdigit_l.texi: Likewise.
27044         * doc/posix-functions/iswgraph_l.texi: Likewise.
27045         * doc/posix-functions/iswlower_l.texi: Likewise.
27046         * doc/posix-functions/iswprint_l.texi: Likewise.
27047         * doc/posix-functions/iswpunct_l.texi: Likewise.
27048         * doc/posix-functions/iswspace_l.texi: Likewise.
27049         * doc/posix-functions/iswupper_l.texi: Likewise.
27050         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27051         * doc/posix-functions/isxdigit_l.texi: Likewise.
27052         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
27053         * doc/posix-functions/strcasecmp_l.texi: Likewise.
27054         * doc/posix-functions/strcoll_l.texi: Likewise.
27055         * doc/posix-functions/strfmon_l.texi: Likewise.
27056         * doc/posix-functions/strftime_l.texi: Likewise.
27057         * doc/posix-functions/strncasecmp_l.texi: Likewise.
27058         * doc/posix-functions/strxfrm_l.texi: Likewise.
27059         * doc/posix-functions/tolower_l.texi: Likewise.
27060         * doc/posix-functions/toupper_l.texi: Likewise.
27061         * doc/posix-functions/towctrans_l.texi: Likewise.
27062         * doc/posix-functions/towlower_l.texi: Likewise.
27063         * doc/posix-functions/towupper_l.texi: Likewise.
27064         * doc/posix-functions/wcscoll_l.texi: Likewise.
27065         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27066         * doc/posix-functions/wctrans_l.texi: Likewise.
27067         * doc/posix-functions/wctype_l.texi: Likewise.
27068         * doc/glibc-functions/strptime_l.texi: Likewise.
27069         * doc/glibc-functions/strtod_l.texi: Likewise.
27070         * doc/glibc-functions/strtof_l.texi: Likewise.
27071         * doc/glibc-functions/strtol_l.texi: Likewise.
27072         * doc/glibc-functions/strtold_l.texi: Likewise.
27073         * doc/glibc-functions/strtoll_l.texi: Likewise.
27074         * doc/glibc-functions/strtoul_l.texi: Likewise.
27075         * doc/glibc-functions/strtoull_l.texi: Likewise.
27076         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27077         * doc/glibc-functions/wcstod_l.texi: Likewise.
27078         * doc/glibc-functions/wcstof_l.texi: Likewise.
27079         * doc/glibc-functions/wcstol_l.texi: Likewise.
27080         * doc/glibc-functions/wcstold_l.texi: Likewise.
27081         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27082         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27083         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27084
27085 2009-11-24  Bruno Haible  <bruno@clisp.org>
27086
27087         duplocale: Fix logic bug.
27088         * lib/duplocale.c: Don't include <langinfo.h>.
27089         (_NL_LOCALE_NAME): Remove macro.
27090         (rpl_duplocale): Use setlocale instead of nl_langinfo.
27091         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
27092
27093 2009-11-23  Jim Meyering  <meyering@redhat.com>
27094
27095         test-update-copyright: don't hard-code /usr/bin/perl
27096         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
27097         perl to print the current year.  Gilles Espinasse reported that
27098         the replaced use of perl was hard-coded as /usr/bin/perl.
27099
27100 2009-11-23  Bruno Haible  <bruno@clisp.org>
27101
27102         duplocale: Add support for glibc 2.3.x.
27103         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
27104
27105 2009-11-22  Bruno Haible  <bruno@clisp.org>
27106
27107         vasnprintf: Tiny optimization.
27108         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
27109         MacOS X.
27110
27111 2009-11-22  Bruno Haible  <bruno@clisp.org>
27112
27113         Tests for module 'duplocale'.
27114         * modules/duplocale-tests: New file.
27115         * tests/test-duplocale.c: New file.
27116
27117         New module 'duplocale'.
27118         * m4/duplocale.m4: New file.
27119         * lib/locale.in.h (duplocale): New declaration.
27120         * lib/duplocale.c: New file.
27121         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
27122         gl_LOCALE_H_DEFAULTS): New macros.
27123         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
27124         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
27125         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
27126         REPLACE_DUPLOCALE.
27127         * modules/duplocale: New file.
27128         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
27129
27130 2009-11-22  Bruno Haible  <bruno@clisp.org>
27131
27132         * modules/locale-tests (configure.ac): Test for newlocale function.
27133         * tests/test-locale.c: When the system has extended locale functions,
27134         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
27135
27136         locale: Make locale_t available when possible.
27137         * lib/locale.in.h: Include <xlocale.h> when it exists.
27138         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
27139         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
27140         * modules/locale (Depends-on): Add extensions.
27141         (Makefile.am): Also substitute HAVE_XLOCALE_H.
27142         * doc/posix-headers/locale.texi: Document the problem with locale_t.
27143
27144 2009-11-22  Bruno Haible  <bruno@clisp.org>
27145
27146         Add comments.
27147         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
27148         invocation.
27149         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27150         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27151         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27152
27153 2009-11-22  Bruno Haible  <bruno@clisp.org>
27154
27155         error: account for the possibility of freopen (stdout).
27156         * lib/error.c: Include <unistd.h>.
27157         (flush_stdout): New function, extracted from error and error_at_line.
27158         Determine stdout's fd dynamically.
27159         (error, error_at_line): Invoke flush_stdout.
27160         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
27161         * modules/error (Depends-on): Add unistd.
27162
27163 2009-11-22  Bruno Haible  <bruno@clisp.org>
27164
27165         diffseq: Add comment.
27166         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
27167
27168 2009-11-22  Jim Meyering  <meyering@redhat.com>
27169
27170         c-stack: avoid defining an unused static function
27171         * lib/c-stack.c (find_stack_direction): Do not define this function
27172         when it will not be used.
27173
27174         diffseq: avoid spurious gcc warnings
27175         * lib/diffseq.h (IF_LINT2): Define.
27176         (compareseq): Use it to initialize two members of "part".
27177         This avoids two used-uninitialized warnings.
27178
27179 2009-11-21  Jim Meyering  <meyering@redhat.com>
27180
27181         c-stack: avoid "ignoring return value of `write'" warning
27182         * lib/c-stack.c: Include "ignore-value.h".
27183         (die): Explicitly ignore each write return value.
27184         * modules/c-stack (Depends-on): Add ignore-value.
27185
27186 2009-11-21  Bruno Haible  <bruno@clisp.org>
27187
27188         diffseq: reduce scope of variable 'best'.
27189         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
27190         variable, earlier used for two different purposes.
27191
27192 2009-11-21  Jim Meyering  <meyering@redhat.com>
27193
27194         diffseq: remove useless assignment to "best"
27195         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
27196         assignment.  At that point "best" is already guaranteed to be zero.
27197
27198 2009-11-20  Eric Blake  <ebb9@byu.net>
27199
27200         build: mention ftp redirector in release announcements
27201         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
27202         values that used to come from cfg.mk; mention FTP redirect URL.
27203         * build-aux/announce-gen: Mention the mirror list.
27204         Suggested by Karl Berry.
27205
27206         nanosleep: improve port to mingw
27207         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
27208         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
27209         LIB_NANOSLEEP, but only when needed.
27210         * modules/select (Link): Document LIBSOCKET.
27211         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
27212         enough.
27213
27214         nanosleep: work around cygwin bug
27215         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
27216         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
27217         bug.
27218         (getnow): Delete, not needed.
27219         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
27220         LIB_CLOCK_GETTIME.
27221         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
27222         clock-time, gettime.
27223         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
27224         bug.
27225         * modules/nanosleep-tests: New test.
27226         * tests/test-nanosleep.c: New file.
27227
27228         sleep: work around cygwin bug
27229         * lib/sleep.c (rpl_sleep): Work around the bug.
27230         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
27231         (gl_PREREQ_SLEEP): Delete unused macro.
27232         * modules/sleep (Depends-on): Add verify.
27233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27234         * modules/unistd (Makefile.am): Substitute witness.
27235         * lib/unistd.in.h (sleep): Update prototype.
27236         * doc/posix-functions/sleep.texi (sleep): Document the bug.
27237         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
27238         * modules/sleep-tests (Depends-on): Check for alarm.
27239
27240 2009-11-20  Jim Meyering  <meyering@redhat.com>
27241
27242         maint.mk: improve sc_prohibit_magic_number_exit
27243         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
27244         so it does not match uses like System.exit(1).
27245         Add comments showing how to correct all offenders.
27246
27247 2009-11-19  Eric Blake  <ebb9@byu.net>
27248
27249         xalloc-die-tests: add missing library
27250         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
27251
27252         test-xvasprintf: silence compiler warnings
27253         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
27254         empty string from gcc.
27255
27256 2009-11-19  Jim Meyering  <meyering@redhat.com>
27257
27258         xfreopen: new module, from coreutils
27259         * modules/xfreopen: New module.
27260         * lib/xfreopen.c: New file.
27261         * lib/xfreopen.h: New file.
27262         * MODULES.html.sh (File stream based Input/Output"): Add it.
27263
27264 2009-11-19  Eric Blake  <ebb9@byu.net>
27265
27266         manywarnings: depend on warnings
27267         * modules/manywarnings (Depends-on): Add warnings.
27268
27269         build: avoid compiler warnings
27270         * lib/select.c (rpl_select): Delete unused variable.
27271         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
27272
27273 2009-11-18  Eric Blake  <ebb9@byu.net>
27274
27275         tests: avoid false negative with --with-packager
27276         * tests/test-version-etc.sh: Discard packager information.
27277         * tests/test-argp-version-etc-1.sh: Likewise.
27278         Reported by Mike Frysinger.
27279
27280         utimens: fix regression on Solaris
27281         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
27282         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
27283         can only change fd timestamps via futimesat.  Instead, use an
27284         additional witness macro to avoid BSD bug.
27285         Reported by Jim Meyering.
27286
27287 2009-11-17  Eric Blake  <ebb9@byu.net>
27288
27289         usleep: use it to simplify tests
27290         * modules/stat-time-tests (Depends-on): Add usleep.
27291         (configure.ac): Drop usleep check.
27292         * modules/chown-tests (Depends-on, configure.ac): Likewise.
27293         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
27294         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
27295         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27296         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27297         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27298         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27299         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27300         Likewise.
27301         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27302         * tests/test-lchown.h (nap): Likewise.
27303         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27304         * tests/test-stat-time.c (nap): Likewise.
27305         * tests/test-utimens-common.h (nap): Update comments.
27306
27307         usleep: new module
27308         * modules/usleep: New file.
27309         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27310         * lib/usleep.c (usleep): Likewise.
27311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27312         * modules/unistd (Makefile.am): Substitute witnesses.
27313         * lib/unistd.in.h (usleep): Add declaration.
27314         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27315         * MODULES.html.sh (Date and time): Likewise.
27316         * modules/usleep-tests (Depends-on): New test.
27317         * tests/test-usleep.c: New file.
27318
27319         chown: work around OpenBSD bug
27320         * lib/chown.c (rpl_chown): Work around the bug.
27321         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27322         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27323         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27324         * modules/chown (Depends-on): Add stdbool.
27325         * modules/lchown (Depends-on): Likewise.
27326         * doc/posix-functions/chown.texi (chown): Document the bug.
27327         * doc/posix-functions/lchown.texi (lchown): Likewise.
27328         * tests/test-lchown.h (test_chown): Relax test.
27329
27330         mkstemp: avoid conflict with C++ keyword template
27331         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27332         * lib/mkostemp.c (mkostemp): Likewise.
27333         * lib/mkostemps.c (mkostemps): Likewise.
27334         * lib/mkstemp.c (mkstemp): Likewise.
27335         * lib/mkstemps.c (mkstemps): Likewise.
27336
27337         xalloc-die-tests: optimize
27338         * tests/test-xalloc-die.sh: Reduce number of processes.
27339
27340 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27341
27342         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27343         patch from ludo@gnu.org (Ludovic Courtès).
27344
27345 2009-11-17  Jim Meyering  <meyering@redhat.com>
27346
27347         version-etc: use proper license string
27348         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27349         * modules/version-etc-fsf: Likewise.
27350
27351 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27352
27353         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27354         printed to stdout.  Deal with EOL differences.
27355
27356 2009-11-17  Eric Blake  <ebb9@byu.net>
27357
27358         unsetenv: work around Solaris bug
27359         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27360         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27361         Reported by Jim Meyering.
27362
27363         vasnprintf: avoid compiler warnings
27364         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27365         variables.
27366         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27367
27368 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27369
27370         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27371         settings since xalloc-die is no longer the self test,
27372         xalloc-die.sh is.
27373
27374 2009-11-17  Jim Meyering  <meyering@redhat.com>
27375
27376         test-xalloc-die.sh: make the code agree with the commit log
27377         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27378         at the end, just in case you happen to have a test-xalloc-die
27379         program in some other PATH directory.
27380
27381         test-xalloc-die.sh: fix a portability bug
27382         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27383         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27384         Otherwise, argv[0] (as often seen in diagnostics) would be too
27385         system-dependent, sometimes with, and sometimes without the leading "./".
27386
27387         version-etc-fsf: relax license to LGPLv3+
27388         * modules/version-etc-fsf (License): Relax license.
27389
27390 2009-11-16  Eric Blake  <ebb9@byu.net>
27391
27392         xalloc-die-tests: avoid printing null pointer
27393         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27394         shell script.
27395         * tests/test-xalloc-die.c (program_name): Declare.
27396         * tests/test-xalloc-die.sh (tmpfiles): New file.
27397
27398         setenv, unsetenv: work around various bugs
27399         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27400         (setenv) [HAVE_SETENV]: Work around bugs.
27401         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27402         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27403         for bugs.
27404         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27405         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27407         * modules/stdlib (Makefile.am): Update substitutions.
27408         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27409         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27410         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27411         * modules/setenv-tests: New test.
27412         * modules/unsetenv-tests: Likewise.
27413         * tests/test-setenv.c: New file.
27414         * tests/test-unsetenv.c: Likewise.
27415
27416 2009-11-16  Jim Meyering  <meyering@redhat.com>
27417
27418         version-etc: relax license to LGPLv3+
27419         * modules/version-etc (License): Relax license.
27420
27421         better AC_REQUIRE expanded-before-required-warning avoidance
27422         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27423         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27424         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27425         which is no longer needed.
27426
27427 2009-11-16  Eric Blake  <ebb9@byu.net>
27428
27429         test-freading: clean up temporary file
27430         * tests/test-freading.c (main): Remove file on success, and use
27431         ASSERT more liberally.
27432         Reported by Jim Meyering.
27433
27434 2009-11-16  Jim Meyering  <meyering@redhat.com>
27435
27436         avoid new AC_REQUIRE expanded-before-required warnings
27437         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27438         merely using it.
27439         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27440         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27441
27442 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27443
27444         * tests/test-xalloc-die.c: New file.
27445         * modules/xalloc-die-tests: New file.
27446         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27447         XFAIL_TESTS so it can be appended by modules.
27448
27449 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27450
27451         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27452         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27453
27454 2009-11-14  Eric Blake  <ebb9@byu.net>
27455
27456         fnmatch: avoid compiler warning
27457         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27458         to silence compiler warning about mismatch signedness in ?:.
27459         Reported by Robert Millan.
27460
27461         intprops: add double-inclusion guard
27462         * lib/intprops.h: Allow idempotent includes.
27463         Suggested by Bruce Korb.
27464
27465         openat: detect Solaris fchownat bug
27466         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27467         penalizing glibc chownat when only lchownat is broken.
27468         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27469         trailing slash bugs.
27470         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27471         * modules/openat-tests (Files): Include more files.
27472         (Depends-on): Add mgetgroups, sleep, stat-time.
27473         (configure.ac): Add additional checks.
27474         (Makefile.am): Build new test.
27475         * tests/test-fchownat.c: New file.
27476
27477         lchown: detect Solaris and FreeBSD bug
27478         * lib/lchown.c (rpl_lchown): Work around bug.
27479         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27481         * modules/unistd (Makefile.am): Populate it.
27482         * lib/unistd.in.h (lchown): Update declaration.
27483         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27484         * modules/lchown-tests: New file.
27485         * tests/test-lchown.h (test_lchown): Likewise.
27486         * tests/test-lchown.c (main): Likewise.
27487
27488         chown: detect Solaris and FreeBSD bug
27489         * lib/chown.c (rpl_chown): Work around bug.
27490         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27491         (gl_PREREQ_CHOWN): Delete.
27492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27493         * modules/unistd (Makefile.am): Populate it.
27494         * lib/unistd.in.h (chown): Update declaration.
27495         * lib/lchown.c (chown): Update client.
27496         * modules/lchown (Depends-on): Add lstat.
27497         * doc/posix-functions/chown.texi (chown): Document the bug.
27498         * doc/posix-functions/getgroups.texi (getgroups): Document
27499         getgroups pitfall.
27500         * modules/chown-tests: New file.
27501         * tests/test-chown.h (test_chown): Likewise.
27502         * tests/test-chown.c (main): Likewise.
27503
27504 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27505
27506         gnulib-tool: correctly detect absence of m4 directories
27507         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27508
27509 2009-11-14  Jim Meyering  <meyering@redhat.com>
27510
27511         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27512         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27513
27514 2009-11-14  John W. Eaton  <jwe@gnu.org>
27515
27516         strftime.h: wrap funtion declaration in extern "C" block
27517         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27518
27519 2009-11-13  Eric Blake  <ebb9@byu.net>
27520
27521         getgroups: avoid compiler warning
27522         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27523
27524         getgroups: work around FreeBSD bug
27525         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27526         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27527         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27528         * tests/test-getgroups.c (main): Fix buffer overrun.
27529
27530         getgroups: avoid compilation failure
27531         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27532         * modules/getgroups (Depends-on): Add stdint.
27533
27534 2009-11-13  Jim Meyering  <meyering@redhat.com>
27535
27536         test-getgroups: avoid compilation failure
27537         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27538
27539 2009-11-13  Eric Blake  <ebb9@byu.net>
27540
27541         mgetgroups: new module, taken from coreutils
27542         * modules/mgetgroups: New file.
27543         * lib/mgetgroups.h: Likewise.
27544         * lib/mgetgroups.c (mgetgroups): Likewise.
27545         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27546         * MODULES.html.sh (Users and groups): Mention it.
27547
27548         getgroups: don't expose GETGROUPS_T to user
27549         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27550         an element at a time if GETGROUPS_T is wrong size.
27551         * lib/getugroups.h (getugroups): Change signature.
27552         * lib/unistd.in.h (getgroups): Likewise.
27553         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27554         signature needs fixing.
27555         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27556         AC_TYPE_GETGROUPS.
27557         * modules/group-member (Depends-on): Add getgroups.
27558         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27559         (group_member): Rely on getgroups replacement.
27560         * lib/getugroups.c (getugroups): Use gid_t.
27561         * tests/test-getgroups.c (main): Likewise.
27562         * NEWS: Mention the signature change.
27563         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27564         problem with signature.
27565         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27566         GETGROUPS_T is still useful for setgroups.
27567
27568         getgroups, getugroups: provide stubs for mingw
27569         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27570         * lib/getugroups.c (getugroups): Likewise.
27571         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27572         function.  Modernize replacement scheme.
27573         (gl_PREREQ_GETGROUPS): Delete.
27574         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27575         * modules/getgroups (configure.ac): Declare witness.
27576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27577         * modules/unistd (Depends-on): Substitute witness.
27578         * lib/unistd.in.h (getgroups): Declare replacement.
27579
27580         getgroups: avoid calling exit
27581         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27582         drop xalloc.
27583         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27584         dependencies.
27585         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27586         exiting, in the rare case of malloc failure.
27587
27588         getgroups: fix logic error
27589         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27590         has more than 20 groups.
27591         * modules/getgroups-tests: New test.
27592         * tests/test-getgroups.c: New file.
27593
27594 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27595
27596         * tests/test-base64.c: Improve.
27597
27598 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27599
27600         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27601         Blake <ebb9@byu.net>.
27602
27603 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27604
27605         * tests/test-xvasprintf.c: Add %s%s related checks.
27606
27607 2009-11-12  Eric Blake  <ebb9@byu.net>
27608
27609         version-etc: match standards.texi style
27610         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27611         and use <> only for URLs.
27612
27613 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27614
27615         fts: do not fail on a submount during traversal
27616         * lib/fts.c (fts_build): Read the stat info again after opening
27617         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27618         Original report at http://bugzilla.redhat.com/501848.
27619
27620 2009-11-12  Jim Meyering  <meyering@redhat.com>
27621
27622         bootstrap: sync from coreutils
27623         * build-aux/bootstrap (bootstrap_epilogue): New function.
27624         Use git_modules_config in one more place.  This make bootstrap's
27625         --gnulib-srcdir option more useful for testing.
27626
27627         bootstrap: generalize autoheader check
27628         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27629         AC_CONFIG_HEADERS.
27630
27631 2009-11-11  Eric Blake  <ebb9@byu.net>
27632
27633         mkfifoat: use new modules for Solaris and BSD bugs
27634         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27635         * lib/mkfifoat.c (mknodat): Split...
27636         * lib/mknodat.c (mknodat): ...into new file.
27637         * modules/mkfifoat (Files): Ship new file.
27638         (Depends-on): Add mkfifo, mknod.
27639         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27640         (Depends-on): Add symlink.
27641         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27642         redundant with test_mkfifo.h.
27643         (do_mkfifoat, do_mknodat): New helpers.
27644
27645         mknod: new module
27646         * modules/mknod: New file.
27647         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27648         * lib/mknod.c (mknod): Likewise.
27649         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27650         defaults.
27651         * modules/sys_stat (Makefile.am): Substitute them.
27652         * lib/sys_stat.in.h (mknod): Declare replacement.
27653         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27654         Document it.
27655         * doc/posix-functions/mknod.texi (mknod): Likewise.
27656         * modules/mknod-tests: New test.
27657         * tests/test-mknod.c: Likewise.
27658
27659         mkfifo: new module
27660         * modules/mkfifo: New file.
27661         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27662         * lib/mkfifo.c (mkfifo): Likewise.
27663         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27664         defaults.
27665         * modules/sys_stat (Makefile.am): Substitute them.
27666         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27667         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27668         Document it.
27669         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27670         * modules/mkfifo-tests: New test.
27671         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27672         from test-mkfifoat.c.
27673         * tests/test-mkfifo.c: New file.
27674
27675         readlink: detect FreeBSD bug
27676         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27677         slash on symlink.
27678         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27679         * tests/test-readlink.h (test_readlink): Enhance test.
27680
27681         symlink: detect FreeBSD bug
27682         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27683         slash on symlink.
27684         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27685         * tests/test-symlink.h (test_symlink): Enhance test.
27686
27687 2009-11-10  Eric Blake  <ebb9@byu.net>
27688
27689         link: detect FreeBSD bug
27690         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27691         symlink.
27692         * doc/posix-functions/link.texi (link): Document the bug.
27693         * tests/test-link.h (test_link): Enhance test.
27694         * tests/test-linkat.c (main): Update caller.
27695
27696         unlink, remove: detect FreeBSD bug
27697         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27698         slash on symlink.
27699         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27700         * doc/posix-functions/remove.texi (remove): Likewise.
27701         * tests/test-unlink.h (test_unlink): Enhance test.
27702         * tests/test-remove.c (main): Likewise.
27703
27704 2009-11-09  Eric Blake  <ebb9@byu.net>
27705
27706         rename: detect FreeBSD bug
27707         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27708         slash on symlink.
27709         * modules/renameat-tests (Depends-on): Add filenamecat.
27710         * tests/test-rename.h (test_rename): Allow one more errno.
27711         * tests/test-renameat.c (main): Likewise.
27712         * doc/posix-functions/rename.texi (rename): Document the bug.
27713
27714         open: detect FreeBSD bug
27715         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27716         symlink.
27717         * doc/posix-functions/open.texi (open): Document the bug.
27718         * doc/posix-functions/utimes.texi (utimes): Likewise.
27719         * tests/test-open.h (test_open): Add parameters, and test symlink
27720         handling.
27721         * tests/test-open.c (main): Adjust caller.
27722         * tests/test-fcntl-safer.c (main): Likewise.
27723         * modules/open-tests (Depends-on): Add stdbool, symlink.
27724         * modules/fcntl-safer-tests (Depends-on): Likewise.
27725         * tests/test-openat.c (main): Add test-open tests.
27726
27727         stat: detect FreeBSD bug
27728         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27729         symlink.
27730         * doc/posix-functions/stat.texi (stat): Document the bug.
27731         * tests/test-stat.h (test_stat_func): Add argument.
27732         * tests/test-stat.c (main): Adjust caller.
27733         * tests/test-fstatat.c (main): Likewise.
27734         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27735         Reported by Jim Meyering.
27736
27737 2009-11-09  James Youngman  <jay@gnu.org>
27738
27739         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27740         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27741
27742 2009-11-08  Jim Meyering  <meyering@redhat.com>
27743
27744         utimens: remove invalid futimesat call
27745         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27746         It used the file descriptor of the target file as the DIR_FD
27747         parameter and NULL as the file name.  That caused failure with
27748         errno == EFAULT on FreeBSD-8.0-rc2
27749
27750 2009-11-07  Eric Blake  <ebb9@byu.net>
27751
27752         fflush, freadseek: use fseeko, not fseek
27753         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27754         (clear_ungetc_buffer): Avoid potential problems on large files.
27755         * lib/freadseek.c (freadseek): Likewise.
27756         * modules/freadseek (Depends-on): Add fseeko.
27757         * modules/fseek (configure.ac): Set a witness.
27758         * tests/test-fflush.c (main): Use fseeko.
27759         * tests/test-fpurge.c (fseek): Disable link warning.
27760         * tests/test-freadable.c (fseek): Likewise.
27761         * tests/test-freading.c (fseek): Likewise.
27762         * tests/test-fseeko.c (fseek): Likewise.
27763         * tests/test-ftell.c (fseek): Likewise.
27764         * tests/test-ftello.c (fseek): Likewise.
27765         * tests/test-fwritable.c (fseek): Likewise.
27766         * tests/test-fwriting.c (fseek): Likewise.
27767
27768 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27769
27770         * modules/memchr (Depends-on): Drop getpagesize dependency.
27771
27772 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27773
27774         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27775         Reported by Ludovic Courtès.
27776         * build-aux/pmccabe2html: Improve example usage.
27777         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27778
27779 2009-11-06  Jim Meyering  <meyering@redhat.com>
27780
27781         do-release-commit-and-tag: New module.
27782         Automate the release-commit and tag process.
27783         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27784         * modules/do-release-commit-and-tag: New file.
27785         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27786
27787 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27788
27789         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27790         because test-select.c uses inet_pton.
27791
27792 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27793
27794         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27795         GETADDRINFO_LIB.  Bump serial number.
27796         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27797         Suggested by Eric Blake <ebb9@byu.net>.
27798
27799 2009-11-05  Eric Blake  <ebb9@byu.net>
27800
27801         strtod: detect darwin bug
27802         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27803         Reported by Leo Davis.
27804
27805         freopen-safer: new module
27806         * modules/freopen-safer: New module.
27807         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27808         * lib/freopen-safer.c (freopen_safer): New file.
27809         * lib/stdio-safer.h (freopen_safer): New declaration.
27810         * lib/stdio--.h (freopen): New override.
27811         * MODULES.html.sh (File stream based Input/Output): Mention it.
27812         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27813         freopen-safer module.
27814         * doc/posix-functions/stderr.texi (stderr): Likewise.
27815         * doc/posix-functions/stdin.texi (stdin): Likewise.
27816         * doc/posix-functions/stdout.texi (stdout): Likewise.
27817         * modules/freopen-safer-tests: New test.
27818         * tests/test-reopen-safer.c: New file.
27819
27820 2009-11-05  Jim Meyering  <meyering@redhat.com>
27821
27822         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27823         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27824
27825 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27826
27827         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27828
27829 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27830
27831         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27832
27833 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27834
27835         Fix link error.
27836         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27837         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27838
27839 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27840
27841         * tests/test-func.c: Also test value of __func__.
27842
27843 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27844
27845         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27846         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27847
27848 2009-11-05  Bruno Haible  <bruno@clisp.org>
27849
27850         Fix link error.
27851         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27852         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27853         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27854
27855 2009-11-05  Bruno Haible  <bruno@clisp.org>
27856
27857         Tests for module 'inet_pton'.
27858         * modules/inet_pton-tests: New file.
27859         * tests/test-inet_pton.c: New file.
27860
27861 2009-11-05  Bruno Haible  <bruno@clisp.org>
27862
27863         Tests for module 'inet_ntop'.
27864         * modules/inet_ntop-tests: New file.
27865         * tests/test-inet_ntop.c: New file.
27866
27867 2009-11-04  Eric Blake  <ebb9@byu.net>
27868
27869         stdlib-safer: wrap all mkstemp variants
27870         * modules/mkostemp (configure.ac): Set witness.
27871         * modules/mkostemps (configure.ac): Likewise.
27872         * modules/mkstemps (configure.ac): Likewise.
27873         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
27874         (mkstemps_safer): Wrap more functions.
27875         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
27876         wrapping.
27877         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
27878         (mkstemps_safer): Implement the wrappers.
27879
27880         mkstemps, mkostemps: new modules
27881         * modules/mkostemps: New module.
27882         * modules/mkstemps: Likewise.
27883         * lib/mkostemps.c (mkostemps): New file.
27884         * lib/mkstemps.c (mkstemps): Likewise.
27885         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
27886         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
27887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
27888         * modules/stdlib (Makefile.am): Substitute them.
27889         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
27890         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
27891         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27892         * doc/gnulib.texi (Glibc stdlib.h): Include them.
27893         * MODULES.html.sh (File system functions): Mention them.
27894
27895         tempname: resync from glibc
27896         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
27897         same values for __GT_FILE as glibc.  Abort even when assertions
27898         are disabled.
27899         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
27900         match its value otherwise.  Allow idempotent inclusion.
27901         * lib/mkdtemp.c (mkdtemp): Adjust caller.
27902         * lib/mkostemp.c (mkostemp): Likewise.
27903         * lib/mkstemp.c (mkstemp): Likewise.
27904         * lib/tmpfile.c (tmpfile): Likewise.
27905         * NEWS: Document this.
27906
27907         utimens: fix use of futimens on older Linux
27908         * lib/utimens.c (fdutimens): Use updated, rather than original,
27909         timespec to avoid bug in older Linux kernel.
27910         Reported by Simon Josefsson.
27911
27912 2009-11-04  Bruno Haible  <bruno@clisp.org>
27913
27914         Make num_processors more flexible and consistent.
27915         * lib/nproc.h (enum nproc_query): New type.
27916         (num_processors): Add a 'query' argument.
27917         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
27918         (num_processors): Add a 'query' argument. Test the value of the
27919         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
27920         mingw, count the number of CPUs available for the current process.
27921         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
27922         Check for sched_getaffinity and sched_getaffinity_np.
27923         * modules/nproc (Depends-on): Add c-ctype, extensions.
27924         * NEWS: Mention the change.
27925
27926 2009-11-03  Bruno Haible  <bruno@clisp.org>
27927
27928         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
27929
27930 2009-11-03  Jim Meyering  <meyering@redhat.com>
27931
27932         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
27933         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
27934         if it is defined.
27935
27936 2009-11-02  Eric Blake  <ebb9@byu.net>
27937
27938         mktime, timegm: share common declaration
27939         * lib/mktime-internal.h: New file.
27940         * lib/mktime.c: Use it rather than open-coding a declaration.
27941         * lib/timegm.c: Likewise.
27942         * modules/mktime (Files): Ship it.
27943         * modules/timegm (Files): Likewise.
27944         Suggested by Bruno Haible.
27945
27946         test-update-copyright: update test to match script changes
27947         * tests/test-update-copyright.sh: Avoid hard-coding perl
27948         location.  Don't update *.bak created by earlier runs.
27949
27950 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27951             Simon Josefsson  <simon@josefsson.org>
27952             Bruno Haible  <bruno@clisp.org>
27953
27954         Fix link error on Solaris 8.
27955         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
27956         also in libnsl. Define also INET_PTON_LIB.
27957         * modules/inet_pton (Link): New section.
27958
27959 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27960             Bruno Haible  <bruno@clisp.org>
27961
27962         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
27963         * modules/inet_ntop (Link): New section.
27964         Reported by Boyan Kasarov <bkasarov@gmail.com>.
27965
27966 2009-11-02  Eric Blake  <ebb9@byu.net>
27967
27968         maint: avoid compiler warnings in m4 macros
27969         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
27970         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
27971
27972 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27973
27974         * m4/pmccabe2html.m4: Remove file.
27975         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
27976         function.  Change maintainer.
27977         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
27978         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
27979         Courtès).
27980
27981 2009-10-31  Eric Blake  <ebb9@byu.net>
27982
27983         fseeko: fix m4 regression
27984         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
27985         regression from 2009-10-27.
27986         Reported by Ralf Wildenhues.
27987
27988 2009-10-31  Jim Meyering  <meyering@redhat.com>
27989
27990         inttostr: aesthetics and improved (compile-time) safety
27991         Define inttype_is_signed rather than inttype_is_unsigned,
27992         since the sole use is via "#if inttype_is_signed".
27993         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
27994         inttype_is_unsigned.
27995         * lib/offtostr.c (inttype_is_signed): Likewise.
27996         * lib/uinttostr.c (inttype_is_signed): Likewise.
27997         * lib/umaxtostr.c (inttype_is_signed): Likewise.
27998         * lib/inttostr.c (inttostr): Use verify to cross-check the
27999         inttype_is_signed value and the signedness of the actual type.
28000         * modules/inttostr (Depends-on): Add verify.
28001
28002 2009-10-30  Eric Blake  <ebb9@byu.net>
28003
28004         build: avoid compiler warnings
28005         * lib/fchmodat.c (lchmod): Mark unused variables.
28006         * lib/getopt.c (_getopt_initialize): Likewise.
28007         * lib/mktime.c (__mktime_internal): Provide prototype.
28008         * lib/inttostr.c (inttostr): Avoid compiler warning even with
28009         older gcc that do not understand #pragma GCC diagnostic.
28010         * lib/uinttostr.c (inttype_is_unsigned): Define.
28011         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
28012
28013 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28014
28015         stat: fix compilation on AIX
28016         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
28017         only see struct stat64.
28018
28019 2009-10-30  Eric Blake  <ebb9@byu.net>
28020
28021         exclude: make more robust
28022         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
28023         rather than masking a coding bug.
28024         Suggested by Bruno Haible.
28025
28026 2009-10-30  Jim Meyering  <meyering@redhat.com>
28027
28028         perl scripts: remove #!/usr/bin/perl in favor of more portable...
28029         Rather than putting #!/usr/bin/perl on the first line,
28030         start with a variant of what's recommended by "man perlrun" that
28031         invokes the first "perl" program from your shell's search path.
28032         * build-aux/gitlog-to-changelog: Replace #!... as above.
28033         Add a "Local Variables" perl mode setting.
28034         Prompted by a patch from Ludovic Courtès.
28035         Improved by Eric Blake.
28036         * build-aux/useless-if-before-free: Likewise.
28037         * build-aux/announce-gen: Likewise.
28038         * build-aux/update-copyright: Likewise.
28039
28040 2009-10-29  Eric Blake  <ebb9@byu.net>
28041
28042         filenamecat-lgpl: adjust clients
28043         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
28044         filenamecat.
28045         * modules/renameat (Depends-on): Likewise.
28046
28047         filenamecat: split into filenamecat-lgpl
28048         * modules/filenamecat-lgpl: New module.
28049         * modules/filenamecat (Files): Move library-safe files into
28050         filenamecat-lgpl.
28051         (Depends-on): Add filenamecat-lgpl.
28052         (configure.ac): Declare witness.
28053         * lib/filenamecat.h (file_name_concat): Only declare when using
28054         GPL module.
28055         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
28056         Move...
28057         * lib/filenamecat-lgpl.c: ...into new file.
28058         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
28059         (gl_FILE_NAME_CONCAT): Use it.
28060         * MODULES.html.sh (File system functions): Mention new module.
28061
28062         argp: avoid memory leak
28063         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
28064         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
28065         base_name, since the latter malloc()s and can call exit().
28066         Leak introduced 2006-07-03.
28067
28068         dirname-lgpl: adjust clients that don't need full dirname
28069         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
28070         * modules/filenamecat (Depends-on): Likewise.
28071         * modules/linkat (Depends-on): Likewise.
28072         * modules/mkancesdirs (Depends-on): Likewise.
28073         * modules/mkdir (Depends-on): Likewise.
28074         * modules/openat (Depends-on): Likewise.
28075         * modules/savewd (Depends-on): Likewise.
28076         * modules/rename (Depends-on): Likewise.
28077         (License): Relax license.
28078         * modules/mkdir-tests (Depends-on): Drop progname.
28079         (Makefile.am): Delete unneeded LDADD.
28080         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
28081
28082         dirname: split into dirname-lgpl
28083         * modules/dirname-lgpl: New module.
28084         * modules/dirname (Files): Move library-safe files into
28085         dirname-lgpl.
28086         (Depends-on): Add dirname-lgpl.
28087         (configure.ac): Declare witness.
28088         * modules/double-slash-root (License): Relax license.
28089         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
28090         module.
28091         * lib/dirname.c (dir_len, mdir_name): Move...
28092         * lib/dirname-lgpl.c: ...into new file.
28093         * lib/basename.c (last_component, base_len): Move...
28094         * lib/basename-lgpl.c: ...into new file.
28095         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
28096         (gl_DIRNAME): Use it.
28097         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
28098         Mention new module.
28099         * modules/dirname-tests (Depends-on): Add progname.
28100         * tests/test-dirname.c (program_name): Delete.
28101
28102         mkdir: make safe for libraries
28103         * modules/mkdir (Depends-on): Drop xalloc.
28104         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
28105         exit.
28106
28107         tests: avoid some compiler warnings
28108         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
28109         literals.
28110         * tests/test-memchr.c (main): Avoid type mismatch.
28111         * tests/test-arpa_inet.c (main): Avoid unused parameters.
28112         * tests/test-base64.c (main): Likewise.
28113         * tests/test-getdelim.c (main): Likewise.
28114         * tests/test-gethostname.c (main): Likewise.
28115         * tests/test-getline.c (main): Likewise.
28116         * tests/test-netinet_in.c (main): Likewise.
28117         * tests/test-select.c (open_server_socket, main): Likewise.
28118         * tests/test-select-stdin.c (main): Likewise.
28119         * tests/test-sockets.c (main): Likewise.
28120         * tests/test-strsignal.c (main): Likewise.
28121         * tests/test-sys_select.c (main): Likewise.
28122         * tests/test-sys_socket.c (main): Likewise.
28123         * tests/test-u64.c (main): Likewise.
28124         * tests/test-xfprintf-posix.c (main): Likewise.
28125         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
28126
28127         sockets: avoid compiler warning
28128         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
28129
28130         maint: detect usage(1) and other suspicious exits
28131         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
28132
28133 2009-10-29  Jim Meyering  <meyering@redhat.com>
28134
28135         timespec: long-to-int truncation could make timespec_cmp malfunction
28136         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
28137         a multiple of 2^32 nanoseconds as no difference.
28138
28139 2009-10-28  Jim Meyering  <meyering@redhat.com>
28140
28141         fprintftime: wrap macro code argument in "do {...} while(0)"
28142         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
28143         cpy macro must be a statement that can be followed by a semicolon.
28144         Now that the else clause contains a comment and is hence longer
28145         than one line, I require curly braces.  That in turn requires
28146         that we wrap this code block in the standard do...while(0).
28147
28148         fprintftime: remove stray semicolon from previous change
28149         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
28150
28151         fprintftime: avoid a warning about ignored fwrite return value
28152         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
28153         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
28154         that is unsafe.
28155         * modules/fprintftime (Depends-on): Add ignore-value.
28156
28157         exclude: avoid an unwarranted warning
28158         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
28159
28160 2009-10-27  Eric Blake  <ebb9@byu.net>
28161
28162         fseek: avoid compilation failure when fflush is replaced
28163         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
28164         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
28165         module is in use.
28166         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
28167         module is not in use; since REPLACE_FSEEK worked otherwise.
28168         (GNULIB_FTELLO): Likewise for ftell.
28169         Reported by Ian Beckwith and others.
28170
28171 2009-10-27  Bruno Haible  <bruno@clisp.org>
28172
28173         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
28174         Reported by Jim Meyering.
28175
28176 2009-10-27  Jim Meyering  <jim@meyering.net>
28177             Bruno Haible  <bruno@clisp.org>
28178
28179         Avoid warning despite dropping the return value of fwrite.
28180         * lib/unicodeio.c: Include ignore-value.h.
28181         (fwrite_success_callback): Explicitly ignore fwrite's return value.
28182         * modules/unicodeio (Depends-on): Add ignore-value.
28183
28184 2009-10-26  Eric Blake  <ebb9@byu.net>
28185
28186         areadlinkat: fix fallback path
28187         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
28188         pointer and zero.
28189
28190 2009-10-22  Pádraig Brady  <P@draigBrady.com>
28191
28192         Use a better IO block size for modern systems
28193         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
28194         * lib/md2.c: Likewise.
28195         * lib/md4.c: Likewise.
28196         * lib/md5.c: Likewise.
28197         * lib/sha1.c: Likewise.
28198         * lib/sha256.c: Likewise.
28199         * lib/sha512.c: Likewise.
28200
28201 2009-10-22  Eric Blake  <ebb9@byu.net>
28202
28203         tests: avoid several compiler warnings
28204         * tests/test-getcwd.c (main): Avoid buffer underflow.
28205         * tests/test-getdate.c (main): String literals are not safe with
28206         putenv, so use setenv.  Declare unused argument.
28207         * modules/getdate-tests (Depends-on): Add setenv.
28208         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
28209         problems with string literals in char *.
28210         * tests/test-hash.c (main): Avoid shadowing declaration.
28211         (insert_new): Treat string literals as char const *.
28212         * tests/test-getopt.h (test_getopt): Likewise.
28213         (getopt_loop): Alter types to minimize casting elsewhere.
28214         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
28215         (test_getopt_long_posix): Likewise.
28216         (do_getopt_long): Add wrapper to minimize casting.
28217         * tests/test-atexit.c (clear_temp_file): Use void.
28218         * tests/test-areadlink-with-size.c (main): Declare unused
28219         arguments.
28220         * tests/test-areadlink.c (main): Likewise.
28221         * tests/test-areadlinkat-with-size.c (main): Likewise.
28222         * tests/test-areadlinkat.c (main): Likewise.
28223         * tests/test-canonicalize-lgpl.c (main): Likewise.
28224         * tests/test-canonicalize.c (main): Likewise.
28225         * tests/test-dirent-safer.c (main): Likewise.
28226         * tests/test-dirname.c (main): Likewise.
28227         * tests/test-dup2.c (main): Likewise.
28228         * tests/test-fchdir.c (main): Likewise.
28229         * tests/test-fcntl-h.c (main): Likewise.
28230         * tests/test-fcntl-safer.c (main): Likewise.
28231         * tests/test-fdopendir.c (main): Likewise.
28232         * tests/test-fdutimensat.c (main): Likewise.
28233         * tests/test-fflush.c (main): Likewise.
28234         * tests/test-filenamecat.c (main): Likewise.
28235         * tests/test-filevercmp.c (main): Likewise.
28236         * tests/test-fopen-safer.c (main): Likewise.
28237         * tests/test-fopen.c (main): Likewise.
28238         * tests/test-fpending.c (main): Likewise.
28239         * tests/test-fpurge.c (main): Likewise.
28240         * tests/test-freading.c (main): Likewise.
28241         * tests/test-fstatat.c (main): Likewise.
28242         * tests/test-fsync.c (main): Likewise.
28243         * tests/test-futimens.c (main): Likewise.
28244         * tests/test-getndelim2.c (main): Likewise.
28245         * tests/test-gettimeofday.c (main): Likewise.
28246         * tests/test-getopt.c (main): Likewise.
28247         * tests/test-i-ring.c (main): Likewise.
28248         * tests/test-inttypes.c (main): Likewise.
28249         * tests/test-link.c (main): Likewise.
28250         * tests/test-lstat.c (main): Likewise.
28251         * tests/test-math.c (main): Likewise.
28252         * tests/test-md5.c (main): Likewise.
28253         * tests/test-memchr2.c (main): Likewise.
28254         * tests/test-memrchr.c (main): Likewise.
28255         * tests/test-mkdir.c (main): Likewise.
28256         * tests/test-mkdirat.c (main): Likewise.
28257         * tests/test-mkfifoat.c (main): Likewise.
28258         * tests/test-open.c (main): Likewise.
28259         * tests/test-openat-safer.c (main): Likewise.
28260         * tests/test-openat.c (main): Likewise.
28261         * tests/test-quotearg.c (main): Likewise.
28262         * tests/test-rawmemchr.c (main): Likewise.
28263         * tests/test-readlink.c (main): Likewise.
28264         * tests/test-remove.c (main): Likewise.
28265         * tests/test-rename.c (main): Likewise.
28266         * tests/test-renameat.c (main): Likewise.
28267         * tests/test-rmdir.c (main): Likewise.
28268         * tests/test-sha1.c (main): Likewise.
28269         * tests/test-signal.c (main): Likewise.
28270         * tests/test-sigaction.c (main): Likewise.
28271         * tests/test-stat.c (main): Likewise.
28272         * tests/test-stat-time.c (main): Likewise.
28273         * tests/test-stddef.c (main): Likewise.
28274         * tests/test-stdint.c (main): Likewise.
28275         * tests/test-stdio.c (main): Likewise.
28276         * tests/test-stdlib.c (main): Likewise.
28277         * tests/test-strchrnul.c (main): Likewise.
28278         * tests/test-strerror.c (main): Likewise.
28279         * tests/test-string.c (main): Likewise.
28280         * tests/test-strtod.c (main): Likewise.
28281         * tests/test-strverscmp.c (main): Likewise.
28282         * tests/test-symlink.c (main): Likewise.
28283         * tests/test-symlinkat.c (main): Likewise.
28284         * tests/test-sys_stat.c (main): Likewise.
28285         * tests/test-sys_time.c (main): Likewise.
28286         * tests/test-time.c (main): Likewise.
28287         * tests/test-unistd.c (main): Likewise.
28288         * tests/test-unlink.c (main): Likewise.
28289         * tests/test-unlinkat.c (main): Likewise.
28290         * tests/test-utimens.c (main): Likewise.
28291         * tests/test-utimensat.c (main): Likewise.
28292         * tests/test-version-etc.c (main): Likewise.
28293         * tests/test-wchar.c (main): Likewise.
28294         * tests/test-wctype.c (main): Likewise.
28295         * tests/test-xprintf-posix.c (main): Likewise.
28296         * tests/test-posixtm.c (main): Likewise.
28297         (STREQ): Delete unused macro.
28298         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28299         shadowed variables.
28300         * tests/test-memchr.c (main): Likewise.
28301
28302 2009-10-21  Eric Blake  <ebb9@byu.net>
28303
28304         areadlinkat: avoid failure on older glibc
28305         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28306         rather than mis-comparing 0 against FUNC_RESULT of char*.
28307
28308 2009-10-21  Bruno Haible  <bruno@clisp.org>
28309
28310         * modules/stpncpy (License): Relicense under LGPLv2+.
28311         Reported by David Lutterkort <lutter@redhat.com>.
28312
28313 2009-10-20  Eric Blake  <ebb9@byu.net>
28314
28315         utimensat: work around Solaris 9 bug
28316         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28317         has trailing slash bugs.
28318         * tests/test-lutimens.h (test_lutimens): Enhance test.
28319         * tests/test-utimens.h (test_utimens): Likewise.
28320         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28321         * doc/posix-functions/utimes.texi (utimes): Likewise.
28322         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28323         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28324         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28325         * doc/posix-functions/futimens.texi (futimens): Likewise.
28326
28327         fdutimensat: new module
28328         * modules/fdutimensat: New file.
28329         * lib/fdutimensat.c (fdutimensat): Likewise.
28330         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28331         * MODULES.html.sh (File system functions): Mention module.
28332         * modules/fdutimensat-tests: New test.
28333         * tests/test-fdutimensat.c: Likewise.
28334
28335         doc: regenerate INSTALL
28336         * doc/INSTALL: Reflect recent autoconf update.
28337         * doc/INSTALL.ISO: Likewise.
28338         * doc/INSTALL.UTF-8: Likewise.
28339
28340 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28341
28342         acl: warn if ACL support is not detected
28343         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28344
28345 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28346
28347         * lib/nproc.h: Add extern "C" block for C++.
28348
28349 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28350             Bruno Haible  <bruno@clisp.org>
28351
28352         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28353         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28354         * doc/posix-functions/isalpha.texi: Likewise.
28355         * doc/posix-functions/isblank.texi: Likewise.
28356         * doc/posix-functions/iscntrl.texi: Likewise.
28357         * doc/posix-functions/isdigit.texi: Likewise.
28358         * doc/posix-functions/isgraph.texi: Likewise.
28359         * doc/posix-functions/islower.texi: Likewise.
28360         * doc/posix-functions/isprint.texi: Likewise.
28361         * doc/posix-functions/ispunct.texi: Likewise.
28362         * doc/posix-functions/isspace.texi: Likewise.
28363         * doc/posix-functions/isupper.texi: Likewise.
28364         * doc/posix-functions/isxdigit.texi: Likewise.
28365
28366 2009-10-18  Bruno Haible  <bruno@clisp.org>
28367
28368         Tests for module 'isblank'.
28369         * modules/isblank-tests: New file.
28370         * tests/test-isblank.c: New file.
28371
28372         New module 'isblank'.
28373         * lib/isblank.c: New file.
28374         * m4/isblank.m4: New file.
28375         * modules/isblank: New file.
28376         * doc/posix-functions/isblank.texi: Mention the new module.
28377
28378 2009-10-18  Bruno Haible  <bruno@clisp.org>
28379
28380         New module 'ctype'.
28381         * lib/ctype.in.h: New file.
28382         * m4/ctype.m4: New file.
28383         * modules/ctype: New file.
28384         * doc/posix-headers/ctype.texi: Mention the new module.
28385
28386 2009-10-18  Jim Meyering  <meyering@redhat.com>
28387
28388         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28389         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28390         right after its initialization, rather than farther down.
28391         Keeping these in close proximity makes it easier to ensure
28392         that each such variable is initialized.  E.g.,
28393
28394             LIB_CLOCK_GETTIME=
28395             AC_SUBST([LIB_CLOCK_GETTIME])
28396
28397         This change also increments these serial numbers.
28398         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28399         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28400         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28401
28402 2009-10-18  Bruno Haible  <bruno@clisp.org>
28403
28404         Don't let environment variables perturb build.
28405         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28406         (gl_PREREQ_GETHRXTIME): ... not here.
28407
28408 2009-10-18  Bruno Haible  <bruno@clisp.org>
28409
28410         Avoid symlink attack in localcharset module.
28411         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28412         (O_NOFOLLOW): Define fallback.
28413         (get_charset_aliases): Don't open the file if it is a symbolic link.
28414         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28415         gl_FCNTL_H.
28416         (gl_FCNTL_H): Require it.
28417         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28418         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28419         Reported by Fergal Glynn <fglynn@veracode.com>.
28420
28421 2009-10-18  Bruno Haible  <bruno@clisp.org>
28422
28423         Implement nproc for mingw.
28424         * lib/nproc.c: Include <windows.h>
28425         (num_processors): On native Windows platforms, try GetSystemInfo.
28426
28427 2009-10-18  Bruno Haible  <bruno@clisp.org>
28428
28429         Implement nproc for IRIX.
28430         * lib/nproc.c: Include <sys/sysmp.h>.
28431         (num_processors): On IRIX systems, try sysmp.
28432         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28433
28434 2009-10-18  Bruno Haible  <bruno@clisp.org>
28435
28436         Implement nproc for HP-UX.
28437         * lib/nproc.c: Include <sys/pstat.h>
28438         (num_processors): On HP-UX systems, try pstat_getdynamic.
28439         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28440         pstat_getdynamic.
28441
28442 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28443             Bruno Haible  <bruno@clisp.org>
28444
28445         Implement nproc for NetBSD, OpenBSD.
28446         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28447         (ARRAY_SIZE): New macro.
28448         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28449         * m4/nproc.m4: New file.
28450         * modules/nproc (Files): Add m4/nproc.m4.
28451         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28452         (Makefile.am): Instead, augment lib_SOURCES.
28453
28454 2009-10-18  Bruno Haible  <bruno@clisp.org>
28455
28456         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28457         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28458         sys/param.h.
28459
28460 2009-10-16  Eric Blake  <ebb9@byu.net>
28461
28462         utimensat: new module
28463         * modules/utimensat: New file.
28464         * lib/utimensat.c (utimensat): Likewise.
28465         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28466         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28467         so we can work around Linux bugs.
28468         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28469         * modules/sys_stat (Makefile.am): Substitute them.
28470         * lib/sys_stat.in.h (utimensat): Declare it.
28471         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28472         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28473         * modules/utimensat-tests: New test.
28474         * tests/test-utimensat.c: Likewise.
28475
28476         utimens: let lutimens work on non-symlinks
28477         * lib/utimens.c (lutimens): Fall back to utimens rather than
28478         failing with ENOSYS, when file is not a symlink.
28479         (utimens): Reduce redirection.
28480         * tests/test-lutimens.h (test_lutimens): Update test to cover
28481         non-symlinks.
28482         * tests/test-utimens.h (test_utimens): Update test to cover
28483         symlinks.
28484         * tests/test-utimens.c (main): Update caller.
28485
28486         utimens: cache whether utimensat syscall works
28487         * lib/utimens.c (utimensat_works_really): New cache variable.
28488         (fdutimens, lutimens): Use it to avoid failing syscall.
28489
28490         test-stat-time, test-utimens: improve portability
28491         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28492         ext4 on alpha, and for cygwin.
28493         * tests/test-utimens-common.h: New file.
28494         (nap): Factor delays into single function.
28495         * tests/test-lutimens.h (test_lutimens): Use new header.
28496         * tests/test-futimens.h (test_futimens): Likewise.
28497         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28498         timestamps to occur from same machine, as was done previously for
28499         test_utimens.
28500         * modules/utimens-tests (Files): Ship new file.
28501         * modules/futimens-tests (Files): Likewise.
28502         Reported in part by Jim Meyering.
28503
28504         sys_stat: sort replacement declarations
28505         * lib/sys_stat.in.h: Sort declarations.
28506         * lib/futimens.c (futimens): Fix typo.
28507
28508 2009-10-15  Jim Meyering  <meyering@redhat.com>
28509
28510         don't let environment settings perturb build
28511         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28512         could cause a configure-time and/or build-time malfunction.
28513         Typically, a configure-time function-in-library test is performed
28514         via code like this:
28515
28516           LIB_VAR=
28517           AC_SUBST([LIB_VAR])
28518           prefix_saved_LIBS=$LIBS
28519             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28520                        [test "$ac_cv_search_FUNC" = "none required" ||
28521                         LIB_VAR=$ac_cv_search_FUNC])
28522           LIBS=$prefix_saved_LIBS
28523
28524         However, in each of the files affected by this change, the LIB_VAR=
28525         initialization was omitted.  Thus, when set in the environment, its
28526         value would propagate into generated Makefiles when FUNC is not found
28527         in LIB_NAME.
28528         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28529         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28530         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28531
28532 2009-10-14  Eric Blake  <ebb9@byu.net>
28533
28534         fchdir: avoid infinite recursion in mingw
28535         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28536         recursing.
28537
28538         test-stat-time: port to mingw
28539         * tests/test-stat-time.c (force_unlink): Return a value.
28540         (test_ctime) [W32]: Fix compilation error.
28541         (nap): Don't call usleep with too large an argument.  Use
28542         force_unlink.
28543         * doc/pastposix-functions/usleep.texi (usleep): Document the
28544         portability issue.
28545
28546 2009-10-13  Jim Meyering  <meyering@redhat.com>
28547
28548         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28549         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28550         * modules/pipe-filter-ii: Likewise.
28551         * modules/sys_socket-tests: Likewise.
28552         * modules/tsearch-tests: Likewise.
28553         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28554         (check): Depend on it.
28555
28556 2009-10-12  Eric Blake  <ebb9@byu.net>
28557
28558         utimens-tests: port to NFS file systems
28559         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28560         comparisons to avoid spurious failures from timestamp drift
28561         between NFS machines.
28562
28563 2009-10-12  Eric Blake  <ebb9@byu.net>
28564
28565         stat-time-tests: minor cleanups
28566         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28567         * tests/test-stat-time.c (nap): Separate assignment from call.
28568         Suggested by Paolo Bonzini and Bruno Haible.
28569
28570         sys_stat: guarantee struct timespec
28571         * lib/sys_stat.in.h (includes): Always include <time.h>
28572         * modules/sys_stat (Depends-on): Add time.
28573         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28574         mode_t permission values.
28575         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28576         get at subsecond timestamps.
28577
28578 2009-10-10  Eric Blake  <ebb9@byu.net>
28579
28580         futimens: new module
28581         * modules/futimens: New file.
28582         * lib/futimens.c (futimens): Likewise.
28583         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28584         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28585         we can work around Linux bugs.
28586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28587         * modules/sys_stat (Makefile.am): Substitute them.
28588         * lib/sys_stat.in.h (futimens): Declare it.
28589         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28590         * doc/posix-functions/futimens.texi (futimens): Likewise.
28591         * modules/futimens-tests: New test.
28592         * tests/test-futimens.c: Likewise.
28593
28594         utimens: introduce fdutimens
28595         * lib/utimens.h (fdutimens): New prototype.
28596         * lib/utimens.c (gl_futimens): Move guts...
28597         (fdutimens): ...to new interface.
28598         * tests/test-utimens.c (do_fdutimens): Use it.
28599
28600         utimens: add UTIME_NOW and UTIME_OMIT support
28601         * lib/utimens.c (validate_timespec, update_timespec): New helper
28602         functions.
28603         (gl_futimens, lutimens): Use them.
28604         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28605         stdbool, sys_stat.
28606         (Link): Mention resulting library dependency.
28607         * modules/utimecmp (Link): Likewise.
28608         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28609         (Makefile.am): Pick up library dependency.
28610         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28611         definition.
28612         * tests/test-sys_stat.c: Test the definitions.
28613         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28614         * NEWS: Document library dependency.
28615
28616         utimecmp: support symlink timestamps
28617         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28618         hashing when possible.  Use pathconf when available.
28619         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28620         * modules/utimecmp (Depends-on): Add lstat.
28621
28622         utimens: add lutimens interface
28623         * lib/utimens.c (lutimens): New function.
28624         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28625         * lib/utimens.h (lutimens): Declare new interface.
28626         * tests/test-utimens.c (main): Enhance test.
28627         * tests/test-lutimens.h (test_lutimens): New file.
28628         * modules/utimens-tests (Files): Distribute it.
28629         (Depends-on): Add symlink.
28630         (configure.ac): Check for usleep.
28631
28632         utimens: validate futimens usage
28633         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28634         fewer syscalls on failure later on.  Avoid compiler warning on
28635         mingw.
28636         * modules/utimens (Depends-on): Add dup2.
28637
28638         utimens: add test
28639         * modules/utimens-tests: New test.
28640         * tests/test-utimens.h: New file.
28641         * tests/test-futimens.h: Likewise.
28642         * tests/test-utimens.c: Likewise.
28643
28644         doc: mention timestamp portability issues
28645         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28646         instead.
28647         * doc/posix-functions/utime.texi (utime): Likewise.
28648         * doc/posix-functions/utimes.texi (utimes): Likewise.
28649         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28650         instead.
28651         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28652         module.
28653         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28654         Mention weakness with symlink timestamps.
28655         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28656         to utimensat/futimens instead.
28657         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28658
28659         test-dup2: enhance test
28660         * tests/test-dup2.c (main): Also check AT_FDCWD.
28661
28662         test-stat-time: avoid more spurious failures
28663         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28664         xfs; and avoid race if the two timestamps cross quantization edge.
28665
28666         relocatable: prefer 'file system' over 'filesystem'
28667         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28668         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28669         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28670         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28671         * lib/relocatable.c (compute_curr_prefix): Likewise.
28672
28673 2009-10-10  Jim Meyering  <meyering@redhat.com>
28674
28675         stat-time-tests: check for the usleep function
28676         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28677
28678 2009-10-10  Bruno Haible  <bruno@clisp.org>
28679
28680         * modules/xnanosleep: Put the Link section after the Include section.
28681
28682 2009-10-09  Eric Blake  <ebb9@byu.net>
28683
28684         dup2: work around FreeBSD 6.1 bug
28685         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28686         * doc/posix-functions/dup2.texi (dup2): Document it.
28687         Reported by Nelson H. F. Beebe and Jim Meyering.
28688
28689         test-stat-time: port to buggy NFS clients
28690         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28691         (test_ctime): Also skip test if mtime and ctime are skewed.
28692
28693         maint: prefer 'file system' over 'filesystem'
28694         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28695         * doc/posix-functions/lstat.texi (lstat): Likewise.
28696         * lib/file-has-acl.c (file_has_acl): Likewise.
28697         * lib/fwriteerror.c [TEST]: Likewise.
28698         * tests/test-areadlink.h (test_areadlink): Likewise.
28699         * tests/test-areadlinkat-with-size.c (main): Likewise.
28700         * tests/test-areadlinkat.c (main): Likewise.
28701         * tests/test-canonicalize-lgpl.c (main): Likewise.
28702         * tests/test-canonicalize.c (main): Likewise.
28703         * tests/test-fstatat.c (main): Likewise.
28704         * tests/test-linkat.c (main): Likewise.
28705         * tests/test-lstat.h (test_lstat_func): Likewise.
28706         * tests/test-mkdir.h (test_mkdir): Likewise.
28707         * tests/test-readlink.h (test_readlink): Likewise.
28708         * tests/test-remove.c (main): Likewise.
28709         * tests/test-rename.h (test_rename): Likewise.
28710         * tests/test-renameat.c (main): Likewise.
28711         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28712         * tests/test-symlink.h (test_symlink): Likewise.
28713         * tests/test-symlinkat.c (main): Likewise.
28714         * tests/test-unlink.h (test_unlink_func): Likewise.
28715         * tests/test-unlinkat.c (main): Likewise.
28716
28717         maint: make realtime library usage explicit
28718         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28719         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28720         * modules/settime (Link): Likewise.
28721         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28722
28723         test-stat-time: speed up execution
28724         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28725         warning on mingw.
28726         (nap): New helper function.
28727         (prepare_test): Use it to reduce sleep time.
28728         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28729         execution.
28730         * modules/stat-time-tests (configure.ac): Check for usleep.
28731
28732 2009-10-09  Jim Meyering  <meyering@redhat.com>
28733
28734         selinux-h: always use getfilecon wrappers
28735         * lib/getfilecon.c: New file.
28736         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28737         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28738         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28739         (fgetfilecon): Provide a stub.
28740         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28741         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28742         file unconditionally.
28743         When <selinux/selinux.h> is found, arrange to use wrappers.
28744         * modules/selinux-h (Files): Add getfilecon.c.
28745         (Makefile.am): Substitute include-next-related bits
28746         into the now-always-generated selinux/selinux.h file.
28747         * doc/glibc-functions/lgetfilecon.texi: New file.
28748         * doc/glibc-functions/fgetfilecon.texi: New file.
28749         * doc/glibc-functions/getfilecon.texi: New file.
28750         * doc/glibc-functions/getfilecon-desc.texi: New file.
28751         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28752         which to pull in the new files.
28753         * MODULES.html.sh (Misc): Add selinux-h.
28754
28755 2009-10-08  Jim Meyering  <meyering@redhat.com>
28756
28757         unistd: fix comment typo
28758         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28759
28760 2009-10-08  Eric Blake  <ebb9@byu.net>
28761
28762         areadlink: use SIZE_MAX consistently
28763         * modules/areadlink (Depends-on): Add stdint.
28764         * modules/areadlink-with-size (Depends-on): Likewise.
28765         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28766         gives NULL; drop sys/types, since unistd gives size_t; and add
28767         stdint for SIZE_MAX.
28768         (SIZE_MAX): Rely on headers.
28769         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28770         and add stdint.
28771         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28772         (SIZE_MAX): Likewise.
28773         (INITIAL_BUF_SIZE): Turn into enum.
28774         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28775
28776 2009-10-08  Jim Meyering  <meyering@redhat.com>
28777
28778         areadlinkat: avoid compilation failure
28779         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28780         Fix typo in comment.
28781
28782 2009-10-07  Eric Blake  <ebb9@byu.net>
28783
28784         areadlinkat-with-size: new module
28785         * modules/areadlinkat-with-size: New module.
28786         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28787         * lib/areadlink.h (areadlinkat): Declare it.
28788         * MODULES.html.sh (File system functions): Mention it.
28789         * modules/areadlinkat-with-size-tests: New test.
28790         * tests/test-areadlinkat-with-size.c: New file.
28791
28792         xreadlinkat: new module
28793         * modules/xreadlinkat: New module.
28794         * lib/xreadlinkat.c (xreadlinkat): New file.
28795         * lib/xreadlink.h (xreadlinkat): Declare it.
28796         * MODULES.html.sh (File system functions): Mention it.
28797
28798         areadlinkat: new module
28799         * lib/at-func.c (FUNC_FAIL): New define.
28800         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28801         * modules/areadlinkat: New module.
28802         * lib/linkat.c (areadlinkat): Move...
28803         * lib/areadlinkat.c (areadlinkat): ...to new file.
28804         * lib/areadlink.h (areadlinkat): Declare it.
28805         * modules/linkat (Depends-on): Add areadlinkat.
28806         * MODULES.html.sh (File system functions): Mention it.
28807         * modules/areadlinkat-tests: New test.
28808         * tests/test-areadlinkat.c: New file.
28809
28810         areadlink, areadlink-with-size: add tests
28811         * modules/areadlink-tests: New test.
28812         * modules/areadlink-with-size-tests: Likewise.
28813         * tests/test-areadlink.h: New file.
28814         * tests/test-areadlink.c: Likewise.
28815         * tests/test-areadlink-with-size.c: Likewise.
28816
28817         maint: minor cleanups
28818         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28819         _UNUSED_PARAMETER_ instead.
28820         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28821         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28822         * modules/linkat-tests (Files): Distribute test-link.h.
28823
28824         openat, utimens: whitespace cleanup
28825         * lib/openat.c: Prefer space throughout, rather than mix of 8
28826         spaces vs. tabs.
28827         * lib/at-func.c: Likewise.
28828         * lib/utimens.c: Likewise.
28829
28830         openat: avoid using wrong fd
28831         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28832         working directory chooses same fd.
28833         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28834
28835         mkdir, mkdirat: fix cygwin 1.5.x bug
28836         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28837         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28838         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28839         bug.
28840         (gl_PREREQ_MKDIR): Delete unused macro.
28841         * modules/mkdir (Files): Track file rename.
28842         (configure.ac): Update macro name.
28843         * modules/openat (Depends-on): Add mkdir.
28844         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28845
28846         mkdir, mkdirat: add tests
28847         * modules/mkdir-tests: New test.
28848         * tests/test-mkdir.h: New file.
28849         * tests/test-mkdir.c: Likewise.
28850         * tests/test-mkdirat.c: Likewise.
28851         * modules/openat-tests (Files): Add new files.
28852         (Makefile.am): Run new test.
28853
28854 2009-10-06  Eric Blake  <ebb9@byu.net>
28855
28856         doc: tweak *at function documentation
28857         * doc/posix-functions/faccessat.texi (faccessat): Mention
28858         known issue with replacement.
28859         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28860         * doc/posix-functions/linkat.texi (linkat): Likewise.
28861         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28862         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28863         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28864         * doc/posix-functions/renameat.texi (renameat): Likewise.
28865         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28866
28867         openat: fix GNU/Hurd bug in unlinkat
28868         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
28869         broken.
28870         * doc/posix-functions/unlink.texi (unlink): Document this.
28871         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
28872
28873         fdopendir: fix GNU/Hurd bug
28874         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
28875         allowing non-directory fds.
28876         * lib/fdopendir.c (rpl_fdopendir): Work around it.
28877         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28878         * modules/dirent (Makefile.am): Substitute it.
28879         * lib/dirent.in.h (fdopendir): Declare replacement.
28880         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
28881         * tests/test-fdopendir.c (main): Test something other than
28882         /dev/null, since on Hurd that behaves like a directory.
28883
28884         test-symlink: port to GNU/Hurd
28885         * tests/test-symlink.h (test_symlink): Relax expected errno.
28886
28887         doc: tweak more cygwin information
28888         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
28889         now compatible with glibc.
28890         * doc/posix-functions/getopt.texi (getopt): Likewise.
28891
28892         getopt-gnu: add another test
28893         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
28894         guarantee behavior relied on by m4.
28895         * tests/test-getopt.c (main): Use it.
28896         * modules/getopt-posix-tests (Depends-on): Add setenv.
28897         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
28898
28899         getopt: fix compilation on darwin
28900         * lib/getopt.in.h (includes): Leave breadcrumbs during system
28901         include.
28902         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
28903         Reported by Ludovic Courtès.
28904
28905 2009-10-06  Bruno Haible  <bruno@clisp.org>
28906
28907         * modules/size_max (Description): Discourage its use.
28908         Reported by Simon Josefsson.
28909
28910 2009-10-06  Jim Meyering  <meyering@redhat.com>
28911
28912         linkat: avoid compilation failure
28913         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
28914
28915 2009-10-05  Eric Blake  <ebb9@byu.net>
28916
28917         linkat: support Linux 2.6.17
28918         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
28919         linkat on Linux, but allow cache variable override.
28920         * lib/linkat.c (rpl_linkat): Define override.
28921         * modules/linkat (Depends-on): Add symlinkat.
28922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
28923         * modules/unistd (Makefile.am): Substitute it.
28924         * lib/unistd.in.h (linkat): Declare replacement.
28925         Reported by Pádraig Brady.
28926
28927         quotearg: port test to systems with C.UTF-8 locale
28928         * tests/test-quotearg.c (struct result_strings): Add another
28929         member, differentiating between C.ASCII and C.UTF-8 handling.
28930         (compare_strings): Add parameter.
28931         (main): Adjust all callers.
28932
28933         getopt: avoid clash with FreeBSD _getopt_internal
28934         * lib/getopt.in.h (_getopt_internal): Override the name.
28935         * lib/getopt_int.h (includes): Pick up any overrides.
28936         Reported by Reuben Thomas.
28937
28938         hash: allow C89 compilation
28939         * lib/hash.c (check_tuning): Move declaration before statement.
28940         Reported by Reuben Thomas.
28941
28942 2009-10-05  Karl Berry  <karl@gnu.org>
28943
28944         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
28945
28946 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
28947             Bruno Haible  <bruno@clisp.org>
28948
28949         * lib/uname.c (uname): Use a table-driven algorithm to compute
28950         Windows NT versions.
28951
28952 2009-10-04  Bruno Haible  <bruno@clisp.org>
28953
28954         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
28955         program_invocation_short_name.
28956         * modules/progname (configure.ac): Test for presence of
28957         program_invocation_short_name.
28958         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28959
28960 2009-10-04  Bruno Haible  <bruno@clisp.org>
28961
28962         * lib/progname.c (set_program_name): Fix comment.
28963         Reported by Jim Meyering.
28964
28965 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28966             Bruno Haible  <bruno@clisp.org>
28967
28968         * lib/uname.c: Include <string.h>.
28969         (uname): Do only one call to GetVersionEx in the common case.
28970
28971 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28972             Bruno Haible  <bruno@clisp.org>
28973
28974         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
28975         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
28976         (uname): Add support for Windows CE and various non-x86 CPU types.
28977
28978 2009-10-03  Bruno Haible  <bruno@clisp.org>
28979
28980         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
28981         invocation to tests/configure.ac.
28982         Reported by Ian Beckwith <ianb@erislabs.net>.
28983
28984 2009-10-02  Eric Blake  <ebb9@byu.net>
28985
28986         fchdir: avoid compiler warning
28987         * lib/fchdir.c (canonicalize_file_name)
28988         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
28989
28990         test-open: support mingw errno values
28991         * tests/test-open.h (test_open): Relax test.
28992         * tests/test-fopen.h (test_fopen): Likewise.
28993         * tests/test-openat-safer.c (main): Likewise.
28994
28995         open: fix opening directory on mingw
28996         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
28997
28998         test-open: on GNU/Hurd, /dev/null is a directory
28999         * tests/test-fopen.h (main): Rename...
29000         (test_fopen): ...to this.  Use a guaranteed non-directory when
29001         confirming open behavior on trailing slash.
29002         * tests/test-openat-safer.c (main): Likewise.
29003         * tests/test-open.h (main): Likewise....
29004         (test_open): ...to this.
29005         * tests/test-fopen.c (main): Adjust caller.
29006         * tests/test-fopen-safer.c (main): Likewise.
29007         * tests/test-open.c (main): Likewise.
29008         * tests/test-fcntl-safer.c (main): Likewise.
29009         Reported by Samuel Thibault.
29010
29011         rename, fchdir: don't ignore chdir failure
29012         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
29013         * lib/rename.c (rpl_rename) [W32]: Likewise.
29014         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
29015         an empty destination directory if source cannot be renamed,
29016         although there is still possibility for failure.
29017         * doc/posix-functions/rename.texi (rename): Document the race.
29018         Reported by Jim Meyering.
29019
29020         maint: cleanup whitespace in recent commits
29021         * lib/rename.c (rpl_rename): Remove tabs.
29022         * tests/test-link.h (test_link): Likewise.
29023         * lib/fchdir.c (get_name): Likewise.
29024         Reported by Jim Meyering.
29025
29026 2009-10-02  Ben Pfaff  <blp@gnu.org>
29027
29028         relocatable-prog-wrapper: Add missing dependency on
29029         double-slash-root.
29030         * modules/relocatable-prog-wrapper: Add dependency.
29031         Reported by Ian Beckwith <ianb@erislabs.net>.
29032
29033 2009-10-02  Eric Blake  <ebb9@byu.net>
29034
29035         renameat: fix Solaris bugs
29036         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
29037         needed fixing.
29038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
29039         * modules/stdio (Makefile.am): Substitute it.
29040         * lib/stdio.in.h (renameat): Declare replacement.
29041         * lib/renameat.c (rpl_renameat): Implement fix.
29042
29043         renameat: new module
29044         * modules/renameat: New file.
29045         * lib/renameat.c (renameat): Likewise.
29046         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
29047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29048         * modules/stdio (Makefile.am): Substitute them.
29049         * lib/stdio.in.h (renameat): Declare it.
29050         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29051         * doc/posix-functions/renameat.texi (renameat): Likewise.
29052         * modules/renameat-tests: New test.
29053         * tests/test-renameat.c: Likewise.
29054
29055         rename: fix mingw bugs
29056         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
29057         directory overwrite bugs.
29058
29059         rename: fix another cygwin 1.5 bug
29060         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
29061         checks.
29062         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
29063         unnecessary cygwin workarounds.  Also work around bug with moving
29064         full directory onto an empty one.
29065         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
29066
29067         rename-dest-slash: merge into rename module
29068         * modules/rename-dest-slash (Status): Mark obsolete.
29069         (Depends-on): Add rename.
29070         (Files): Let rename do it all.
29071         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
29072         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
29073         * m4/rename-dest-slash.m4: ...so this file can be deleted.
29074         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
29075         * lib/rename.c (rpl_rename): Update comments.
29076
29077         rename: fix cygwin 1.5.x bugs
29078         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
29079         * lib/rename.c (rpl_rename): Work around them.
29080         * modules/rename (Depends-on): Add same-inode.
29081
29082         rename: fix Solaris 10 bug
29083         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29084         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
29085         was the only bug.
29086
29087         rename: fix Solaris 9 bug
29088         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
29089         on non-directory.  Avoid calling exit.
29090         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
29091         strdup.
29092         * modules/rename-tests (Depends-on): Drop lstat.
29093         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29094         (gl_PREREQ_RENAME): Delete unused macro.
29095
29096         rename-dest-slash: fix NetBSD bug
29097         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
29098         links.
29099         * modules/rename-dest-slash (Depends-on): Add same-inode.
29100
29101         rename-tests: new test, exposes several platform bugs
29102         * modules/rename-tests: New file.
29103         * tests/test-rename.h: Likewise.
29104         * tests/test-rename.c: Likewise.
29105         * doc/posix-functions/rename.texi (rename): Improve documentation,
29106         including bugs that will eventually be fixed in gnulib.
29107
29108 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
29109
29110         * lib/uname.c: Include <stdlib.h>
29111         (uname): Assume version info is available.
29112
29113 2009-10-02  Jim Meyering  <meyering@redhat.com>
29114
29115         gnu-web-doc-update: correct --help output
29116         * build-aux/gnu-web-doc-update: Make --help output relevant.
29117
29118         gnu-web-doc-update: add standard options
29119         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
29120
29121         gnu-web-doc-update: New module.
29122         Use this script to automatically update the on-line web documentation
29123         for your GNU project at http://www.gnu.org/software/$pkg/manual/
29124         * modules/gnu-web-doc-update: New file, from coreutils.
29125         * build-aux/gnu-web-doc-update: New script.
29126
29127 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
29128
29129         link: LoadLibrary is not needed.
29130         * lib/link.c: Use GetModuleHandle.
29131
29132 2009-10-01  Eric Blake  <ebb9@byu.net>
29133
29134         getopt: bump serial number
29135         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
29136         change.
29137
29138         tests: tighten link, rmdir, and remove tests
29139         * tests/test-link.h (includes): No need to use <config.h> here.
29140         Clean up if directory hard link was created, otherwise test for
29141         trailing '.'.
29142         * tests/test-linkat.c (main): Simplify.
29143         * tests/test-remove.c (main): Enhance test for trailing '.'.
29144         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29145
29146 2009-10-01  Jim Meyering  <meyering@redhat.com>
29147
29148         maint.mk: requiring "make major" was annoying, for a "minor" release.
29149         What is intended is "stable", to contrast with alpha and beta,
29150         so require "make stable", not "make major".
29151         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
29152         (get_tool_versions): Likewise.
29153         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
29154
29155 2009-09-30  Ben Pfaff  <blp@gnu.org>
29156
29157         Fix broken build of replacement for Windows tmpfile().
29158         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
29159         flags argument added along with the 'mkostemp' module.
29160
29161 2009-09-28  Bruno Haible  <bruno@clisp.org>
29162
29163         Avoid identifier clash with POSIX function 'remove' defined as a macro.
29164         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
29165         to 'remove_elt'.
29166         (gl_list_remove): Update.
29167         * lib/gl_list.c (gl_list_remove): Update.
29168         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
29169         to 'remove_elt'.
29170         (gl_oset_remove): Update.
29171         * lib/gl_list.c (gl_oset_remove): Update.
29172         Reported by Eric Blake.
29173
29174 2009-09-28  Eric Blake  <ebb9@byu.net>
29175
29176         doc: mention yet more cygwin 1.7 status
29177         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
29178         cygwin.
29179         * doc/glibc-functions/execvpe.texi (execvpe): New file.
29180         * doc/gnulib.texi (Glibc unistd.h): Mention it.
29181
29182         argp: fix test failure
29183         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
29184         that are not upper-case.  Pass correct range to tolower.
29185
29186 2009-09-27  Jim Meyering  <meyering@redhat.com>
29187
29188         test-yesno: work around sparc-dash here-document infelicity
29189         Without this change, the literal \177 byte in a here document
29190         would make dash 0.5.5.1-3 access uninitialized memory.
29191         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
29192         Instead, use a marker, "@", and filter through tr to create the desired
29193         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
29194
29195 2009-09-27  Bruno Haible  <bruno@clisp.org>
29196
29197         Disable untested support for new flavours of ACLs on AIX.
29198         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
29199         progress.
29200         * lib/set-mode-acl.c (qset_acl): Likewise.
29201
29202 2008-12-07  Bruno Haible  <bruno@clisp.org>
29203
29204         Add support for new flavours of ACLs on AIX. (Untested.)
29205         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
29206         (file_has_acl): Add support for newer AIX.
29207         * lib/set-mode-acl.c (qset_acl): Likewise.
29208         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
29209         Rainer Tammer <tammer@tammer.net>.
29210
29211 2009-09-26  Eric Blake  <ebb9@byu.net>
29212
29213         argp: fix compilation of getopt
29214         * lib/getopt.in.h (includes): Use different guard than glibc.
29215         Reported by Sergey Poznyakoff.
29216
29217         doc: mention more cygwin 1.7 status
29218         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
29219         bug.
29220         * doc/posix-functions/execl.texi (execl): Likewise.
29221         * doc/posix-functions/execle.texi (execle): Likewise.
29222         * doc/posix-functions/execlp.texi (execlp): Likewise.
29223         * doc/posix-functions/execv.texi (execv): Likewise.
29224         * doc/posix-functions/execve.texi (execve): Likewise.
29225         * doc/posix-functions/execvp.texi (execvp): Likewise.
29226         * doc/glibc-functions/canonicalize_file_name.texi
29227         (canonicalize_file_name): Cygwin 1.7 now provides this.
29228         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
29229         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
29230         on AT_SYMLINK_NOFOLLOW.
29231
29232 2009-09-24  Eric Blake  <ebb9@byu.net>
29233
29234         test-linkat: make test more robust
29235         * tests/test-linkat.c (main): Avoid collision with EEXIST.
29236
29237         getopt: fix inclusion guards for cygwin
29238         * modules/getopt-posix (Depends-on): Add include-next.
29239         (Makefile.am): Substitute more items in replacement header.
29240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
29241         <getopt.h>.
29242         * lib/getopt.in.h (includes): Use split inclusion guard, and
29243         prefer <getopt.h> over include <unistd.h> when one is present.
29244         (option): Also override name of 'struct option'.
29245
29246         same-inode: revert prior change; it is not yet ready
29247         * NEWS: Undo mention of this change.
29248         * lib/same-inode.h (same-inode.h): Undo tri-state change.
29249         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29250         * lib/cycle-check.c (cycle_check): Likewise.
29251         * lib/same.c (same_name): Likewise.
29252         * lib/at-func2.c (at_func2): Likewise.
29253
29254 2009-09-23  Eric Blake  <ebb9@byu.net>
29255
29256         linkat: new module
29257         * modules/linkat: New file.
29258         * lib/at-func2.c (at_func2): Likewise.
29259         * lib/linkat.c (linkat): Likewise.
29260         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29261         * lib/openat-priv.h (at_func2): Add declaration.
29262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29263         * modules/unistd (Makefile.am): Substitute them.
29264         * lib/unistd.in.h (linkat): Declare it.
29265         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29266         * doc/posix-functions/linkat.texi (linkat): Likewise.
29267         * doc/posix-functions/link.texi (link): Tweak wording.
29268         * tests/test-link.c (main): Move guts...
29269         * tests/test-link.h (test_link): ...into new file.
29270         * modules/linkat-tests: New test.
29271         * tests/test-linkat.c: Likewise.
29272         * modules/link-tests (Files): Ship new file.
29273         (Depends-on): Add stdbool.
29274
29275         dirname: add library-safe mdir_name
29276         * lib/dirname.h (mdir_name): New prototype.
29277         * lib/dirname.c (dir_name): Move guts...
29278         (mdir_name): ...to new function that avoids xalloc_die.
29279
29280         fchdir: another mingw fix
29281         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
29282         * lib/fchdir.c (get_name): New helper method; skips canonicalize
29283         on mingw (where it has not yet been ported), and make it optional
29284         elsewhere.
29285         (_gl_register_fd): Use it.
29286
29287         same-inode: make SAME_INODE tri-state, to port to mingw
29288         * NEWS: Mention this change.
29289         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
29290         st_ino always being 0.
29291         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29292         * lib/cycle-check.c (cycle_check): Likewise.
29293         * lib/same.c (same_name): Likewise.
29294
29295         lstat: avoid mingw compilation error
29296         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29297         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29298         lstat ourselves.
29299         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29300         was adequate.
29301         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29302         the checks for lstat.
29303         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29304
29305         link: fix test failure on Solaris 9
29306         * lib/link.c (rpl_link): Don't assume link will catch bogus
29307         trailing slash on source.
29308
29309         test-symlinkat: enhance test
29310         * tests/test-readlink.c (main): Move guts...
29311         * tests/test-readlink.h (test_readlink): ...into new file.
29312         * tests/test-symlink.c (main): Move guts...
29313         * tests/test-symlink.h (test_symlink): ...into new file.
29314         * tests/test-symlinkat.c (main): Use new files for further
29315         coverage.
29316         (do_symlink, do_readlink): New helper functions.
29317         * modules/symlink-tests (Files): Ship new file.
29318         (Depends-on): Add stdbool.
29319         * modules/readlink-tests (Files): Ship new file.
29320         (Depends-on): Add stdbool.
29321         * modules/symlinkat-tests (Files): Use new files.
29322
29323 2009-09-23  Eric Blake  <ebb9@byu.net>
29324
29325         readlink: document portability issue with symlink length
29326         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29327         systems have bogus st_size on symlinks, and mention the
29328         areadlink-with-size module.
29329         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29330         * doc/posix-functions/readlink.texi (readlink): Mention the
29331         areadlink module, and ERANGE failure.
29332         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29333         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29334
29335         readlink: fix Solaris 9 bug with trailing slash
29336         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29337         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29338         * doc/posix-functions/readlink.texi (readlink): Document this.
29339         * modules/readlink-tests: New test.
29340         * tests/test-readlink.c: Likewise.
29341
29342         readlink: fix cygwin 1.5.x bug with return type
29343         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29344         * lib/unistd.in.h (readlink): Use ssize_t.
29345         * lib/readlink.c (readlink): Likewise.
29346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29347         * modules/unistd (Makefile.am): Substitute it.
29348         * lib/unistd.in.h (readlink): Declare replacement.
29349         * doc/posix-functions/readlink.texi (readlink): Document this.
29350
29351         symlink: use throughout gnulib
29352         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29353         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29354         symlink is not used.
29355         * modules/symlinkat (Depends-on): Add symlink.
29356         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29357         * modules/canonicalize-tests (Depends-on): Likewise.
29358         * modules/lstat-tests (Depends-on): Likewise.
29359         * modules/openat-tests (Depends-on): Likewise.
29360         * modules/remove-tests (Depends-on): Likewise.
29361         * modules/rmdir-tests (Depends-on): Likewise.
29362         * modules/unlink-tests (Depends-on): Likewise.
29363         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29364         * tests/test-canonicalize.c (symlink): Likewise.
29365         * tests/test-fstatat.c (symlink): Likewise.
29366         * tests/test-lstat.c (symlink): Likewise.
29367         * tests/test-remove.c (symlink): Likewise.
29368         * tests/test-rmdir.c (symlink): Likewise.
29369         * tests/test-unlink.c (symlink): Likewise.
29370         * tests/test-unlinkat.c (symlink): Likewise.
29371
29372         symlink: new module, for Solaris 9 bug
29373         * modules/symlink: New file.
29374         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29375         * lib/symlink.c: Likewise.
29376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29377         * modules/unistd (Makefile.am): Substitute them.
29378         * lib/unistd.in.h (symlink): Declare replacement.
29379         * MODULES.html.sh (File system functions): Mention it.
29380         * doc/posix-functions/symlink.texi (symlink): Likewise.
29381         * modules/symlink-tests: New test.
29382         * tests/test-symlink.c: Likewise.
29383
29384 2009-09-23  Bruno Haible  <bruno@clisp.org>
29385
29386         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29387         when needed.
29388         Test case: gnulib-tool --import --with-tests atexit inttypes.
29389         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29390
29391 2009-09-23  Bruno Haible  <bruno@clisp.org>
29392
29393         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29394         subcommand, not in a subshell.
29395
29396 2009-09-22  Eric Blake  <ebb9@byu.net>
29397
29398         unistd: sort replacement declarations
29399         * lib/unistd.in.h: Sort declarations.
29400
29401         open, openat: minor optimization
29402         * lib/open.c (open): If open succeeded, len is non-zero.
29403         * lib/openat.c (rpl_openat): Likewise.
29404
29405         link-follow: ensure correct result
29406         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29407         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29408         distinguish between possible failures.
29409
29410 2009-09-21  Eric Blake  <ebb9@byu.net>
29411
29412         fts: avoid compiler warning
29413         * lib/fts.c (dirent_inode_sort_may_be_useful)
29414         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29415
29416 2009-09-19  Bruno Haible  <bruno@clisp.org>
29417
29418         * lib/progreloc.c (canonicalize_file_name): New declaration.
29419
29420 2009-09-19  Eric Blake  <ebb9@byu.net>
29421
29422         link: fix quoting
29423         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29424
29425         openat: fix openat bugs on Solaris 9
29426         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29427         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29428         * modules/openat (Depends-on): Add open.
29429         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29430         * modules/fcntl-h (Makefile.am): Substitute it.
29431         * lib/fcntl.in.h (openat): Declare replacement.
29432         * doc/posix-functions/openat.texi (openat): Document this.
29433
29434         openat: move fstatat and unlinkat into correct files
29435         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29436         compiled.
29437         * lib/openat.c (fstatat, unlinkat): Move...
29438         * lib/fstatat.c (fstatat): ...into correct files.
29439         * lib/unlinkat.c (unlinkat): Likewise.
29440
29441         openat: fix unlinkat bugs on Solaris 9
29442         * lib/unlinkat.c (unlinkat): New file.
29443         * modules/openat (Depends-on): Add unlink.
29444         (Files): Distribute it.
29445         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29446         trailing slash behavior is broken.
29447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29448         * modules/unistd (Makefile.am): Substitute it.
29449         * lib/unistd.in.h (unlinkat): Declare replacement.
29450         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29451
29452         openat: fix fstatat bugs on Solaris 9
29453         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29454         stat.
29455         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29456
29457         test-unlinkat: enhance test, to expose Solaris 9 bug
29458         * tests/test-unlink.c (main): Factor guts...
29459         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29460         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29461         * tests/test-rmdir.c (main): Adjust caller.
29462         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29463         (unlinker): New helper function.
29464         (rmdirat): Enhance check.
29465         * modules/rmdir-tests (Depends-on): Add stdbool.
29466         * modules/unlink-tests (Depends-on): Likewise.
29467         (Files): Add test-unlink.h.
29468         * modules/openat-tests (Files): Likewise.
29469         (Depends-on): Add unlinkdir.
29470
29471         test-fstatat: new test, to expose Solaris 9 bugs
29472         * tests/test-stat.c (main): Factor guts...
29473         * tests/test-stat.h (test_stat_func): ...into new file.
29474         * tests/test-lstat.c (main): Factor guts...
29475         * tests/test-lstat.h (test_lstat_func): ...into new file.
29476         * tests/test-fstatat.c: New file.
29477         * modules/stat-tests (Files): Add test-stat.h.
29478         * modules/lstat-tests (Files): Add test-lstat.h.
29479         (Depends-on): Add stdbool.
29480         * modules/openat-tests (Depends-on): Add pathmax.
29481         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29482         (Makefile.am): Run new test.
29483
29484         remove: new module, for mingw and Solaris 9 bugs
29485         * modules/remove: New file.
29486         * lib/remove.c: Likewise.
29487         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29489         * modules/stdio (Makefile.am): Use them.
29490         * lib/stdio.in.h (remove): Declare replacement.
29491         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29492         * doc/posix-functions/remove.texi (remove): Likewise.
29493         * modules/remove-tests: New test.
29494         * tests/test-remove.c: Likewise.
29495
29496         unlink: new module, for Solaris 9 bug
29497         * modules/unlink: New file.
29498         * lib/unlink.c: Likewise.
29499         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29501         * modules/unistd (Makefile.am): Use them.
29502         * lib/unistd.in.h (stat): Declare replacement.
29503         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29504         * doc/posix-functions/unlink.texi (unlink): Likewise.
29505         * modules/unlink-tests: New test.
29506         * tests/test-unlink.c: Likewise.
29507
29508         lstat: fix Solaris 9 bug
29509         * lib/lstat.c (lstat): Also check for trailing slash on
29510         non-symlink, non-directories.  Use stat module to simplify logic.
29511         * doc/posix-functions/lstat.texi (lstat): Document it.
29512         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29513         (configure.ac): Check for symlink.
29514         * tests/test-lstat.c (main): Add more tests.
29515
29516         stat: add as dependency to other modules
29517         * modules/chown (Depends-on): Add stat.
29518         * modules/euidaccess (Depends-on): Likewise.
29519         * modules/fchdir (Depends-on): Likewise.
29520         * modules/isdir (Depends-on): Likewise.
29521         * modules/link (Depends-on): Likewise.
29522         * modules/lstat (Depends-on): Likewise.
29523         * modules/mkdir-p (Depends-on): Likewise.
29524         * modules/modechange (Depends-on): Likewise.
29525         * modules/open (Depends-on): Likewise.
29526         * modules/readlink (Depends-on): Likewise.
29527         * modules/same (Depends-on): Likewise.
29528
29529         stat: fix Solaris 9 bug
29530         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29531         slash.
29532         * lib/stat.c (rpl_stat): Work around it.
29533         * doc/posix-functions/stat.texi (stat): Update documentation.
29534
29535         stat: new module, for mingw bug
29536         * modules/stat: New file.
29537         * lib/stat.c: Likewise.
29538         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29539         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29540         * modules/sys_stat (Makefile.am): Use them.
29541         * lib/sys_stat.in.h (stat): Declare replacement.
29542         * lib/openat.c (fstatat): Deal with lstat and stat being function
29543         macros.
29544         * modules/openat (Depends-on): Add inline.
29545         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29546         * doc/posix-functions/stat.texi (stat): Likewise.
29547         * modules/stat-tests: New test.
29548         * tests/test-stat.c: Likewise.
29549
29550 2009-09-19  Jim Meyering  <meyering@redhat.com>
29551
29552         syntax-check: detect unnecessary inclusion of canonicalize.h
29553         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29554
29555 2009-09-19  Eric Blake  <ebb9@byu.net>
29556
29557         canonicalize-lgpl: adjust clients to use correct header
29558         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29559         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29560         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29561         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29562         * lib/progreloc.c (includes): Likewise.
29563
29564 2009-09-19  Jim Meyering  <meyering@redhat.com>
29565
29566         test-posixtm.c: correct a comment
29567         * tests/test-posixtm.c: Correct first-line comment.
29568         Spotted by Eric Blake.
29569
29570 2009-09-16  Jim Meyering  <meyering@redhat.com>
29571
29572         posixtm-tests: make T const-correct; add a test case
29573         * tests/test-posixtm.c (T): Declare const.
29574         Add a test for -(2^31+1).
29575         Remove useless can-succeed-only-in-2002 test.
29576
29577         posixtm-tests: adjust the sole failing test
29578         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29579         expected output matches what mktime now produces.  Cross-checked via
29580         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29581
29582         posixtm: move #ifdef'd tests into a new module
29583         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29584         * tests/test-posixtm.c: ... this new file.
29585         * modules/posixtm-tests: New module.
29586
29587 2009-09-19  Eric Blake  <ebb9@byu.net>
29588
29589         openat: simplify use of at-func.c
29590         * lib/at-func.c (includes): Include prerequisites here, to
29591         simplify requirements on client files.
29592         * lib/openat-priv.h: Add double-inclusion guard.
29593         * lib/faccessat.c (includes): Simplify.
29594         * lib/fchmodat.c (includes): Likewise.
29595         * lib/fchownat.c (includes): Likewise.
29596         * lib/mkdirat.c (includes): Likewise.
29597         * lib/mkfifoat.c (includes): Likewise.
29598         * lib/symlinkat.c (includes): Likewise.
29599
29600         openat: allow return of fd 0
29601         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29602         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29603         unistd-safer.
29604         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29605         <fcntl.h>; this module does not leak fds.
29606         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29607         must be allowed to return 0, leaving openat_safer to add the
29608         safety.
29609         (openat_permissive): Avoid writing to just-opened fd 2 if
29610         restoring the current directory fails.
29611         * lib/openat-die.c (openat_restore_fail): Add comment.
29612         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29613         (save_cwd): Guarantee safe fd, but without use of open_safer.
29614         * tests/test-openat.c: New test.
29615         * modules/openat-tests (Files, Makefile.am): Distribute and build
29616         new file.
29617
29618         relocatable-prog-wrapper: fix build
29619         * modules/relocatable-prog-wrapper (Files): Update name of
29620         canonicalize m4 file, broken on 2009-09-17.
29621         Reported by emad hajjar <aleppos@hotmail.com>.
29622
29623 2009-09-19  Bruno Haible  <bruno@clisp.org>
29624
29625         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29626         * lib/safe-alloc.c: Likewise.
29627         Reported by Ian Beckwith <ianb@erislabs.net>.
29628
29629 2009-09-18  Bruno Haible  <bruno@clisp.org>
29630
29631         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29632         Reported by <erobles@sensacd.com.mx>.
29633
29634 2009-09-17  Eric Blake  <ebb9@byu.net>
29635
29636         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29637         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29638         slashes when checking if last component is missing.
29639         * tests/test-canonicalize.c (main): Test this.
29640
29641         canonicalize, canonicalize-lgpl: honor // if distinct from /
29642         * modules/canonicalize (Files): Add double-slash-root.m4.
29643         * modules/canonicalize-lgpl (Files): Likewise.
29644         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29645         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29646         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29647         fallback definition.
29648         (canonicalize_filename_mode): Use it to protect //.
29649         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29650         (__realpath): Likewise.
29651         * tests/test-canonicalize.c (main): Test this.
29652         * tests/test-canonicalize-lgpl.c (main): Likewise.
29653         * modules/canonicalize-tests (Depends-on): Add same-inode.
29654         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29655
29656         canonicalize-lgpl: fix glibc bug with trailing slash
29657         * m4/canonicalize-lgpl.m4: Move contents...
29658         * m4/canonicalize.m4: ...here.
29659         (gl_CANONICALIZE_LGPL): Factor realpath check...
29660         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29661         glibc 2.3.5 bug, fixed 2005-04-27.
29662         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29663         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29664         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29665         * modules/canonicalize-lgpl (Files): Manage file rename.
29666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29667         * modules/stdlib (Makefile.am): Substitute witness.
29668         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29669         is needed.
29670         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29671         replacement is required.
29672         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29673         * doc/glibc-functions/canonicalize_file_name.texi
29674         (canonicalize_file_name): Document this.
29675         * doc/posix-functions/realpath.texi (realpath): Likewise.
29676
29677         canonicalize-lgpl: reject non-directory with trailing slash
29678         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29679         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29680         catches failures in glibc 2.3.5.
29681         * tests/test-canonicalize.c (main): Likewise.
29682
29683         canonicalize-lgpl: use native realpath if it works
29684         * lib/canonicalize-lgpl.c (realpath): Guard with
29685         FUNC_REALPATH_WORKS.
29686         * lib/stdlib.in.h (realpath): Make declaration optional based on
29687         HAVE_REALPATH.
29688         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29689         native realpath works.
29690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29691         * modules/stdlib (Makefile.am): Substitute witness.
29692
29693         canonicalize, canonicalize-lgpl: use <stdlib.h>
29694         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29695         (Include): Mention <stdlib.h>.
29696         (configure.ac): Mention functions we provide.
29697         * modules/canonicalize (configure.ac): Likewise.
29698         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29699         realpath if canonicalize_file_name is missing.
29700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29701         * modules/stdlib (Makefile.am): Substitute witnesses.
29702         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29703         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29704         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29705         * NEWS: Document this.
29706         * doc/glibc-functions/canonicalize_file_name.texi
29707         (canonicalize_file_name): Likewise.
29708         * doc/posix-functions/realpath.texi (realpath): Likewise.
29709         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29710
29711         test-canonicalize: consolidate into single C program
29712         * tests/test-canonicalize.sh: Delete; move setup into...
29713         * tests/test-canonicalize.c (main): ...the program, making it
29714         easier to run in debugger.  Add some tests.
29715         * modules/canonicalize-tests (Files): Remove unused file.
29716         (Depends-on): Add progname.
29717         (configure.ac, Makefile.am): Simplify.
29718
29719         test-canonicalize-lgpl: consolidate into single C program
29720         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29721         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29722         easier to run in debugger.  Add some tests.
29723         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29724         (configure.ac, Makefile.am): Simplify.
29725
29726         canonicalize: avoid resolvepath
29727         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29728         unnecessary checks.
29729         * lib/canonicalize.c (includes): Simplify.
29730         (canonicalize_file_name): Drop resolvepath implementation.
29731         * modules/canonicalize (Depends-on): Drop filenamecat.
29732
29733         canonicalize: don't lose errno
29734         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29735         over calls to free.
29736
29737         canonicalize: simplify errno handling
29738         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29739         assignment.
29740
29741         canonicalize, canonicalize-lgpl: update module dependencies
29742         * modules/canonicalize (Depends-on): Add extensions, lstat,
29743         pathmax, stdlib.
29744         (Files): Drop pathmax.h.
29745         (configure.ac): Adjust macro name.
29746         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29747         lstat, stdlib, sys_stat.
29748         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29749         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29750         extensions.
29751         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29752         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29753         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29754         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29755         declaration, if available.
29756         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29757         we can rely on the readlink module.
29758         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29759         (includes): Use <unistd.h> unconditionally.
29760
29761 2009-09-17  Eric Blake  <ebb9@byu.net>
29762
29763         maint: make Include sections of modules consistent
29764         * modules/alloca: Use only header name; no need to list #include.
29765         * modules/alloca-opt: Likewise.
29766         * modules/arpa_inet: Likewise.
29767         * modules/canon-host: Likewise.
29768         * modules/configmake: Likewise.
29769         * modules/dirent: Likewise.
29770         * modules/eealloc: Likewise.
29771         * modules/environ: Likewise.
29772         * modules/fchdir: Likewise.
29773         * modules/fcntl: Likewise.
29774         * modules/fcntl-h: Likewise.
29775         * modules/gethrxtime: Likewise.
29776         * modules/gettime: Likewise.
29777         * modules/ignore-value: Likewise.
29778         * modules/inet_ntop: Likewise.
29779         * modules/inet_pton: Likewise.
29780         * modules/inttypes: Likewise.
29781         * modules/isnand-nolibm: Likewise.
29782         * modules/isnanf-nolibm: Likewise.
29783         * modules/mbchar: Likewise.
29784         * modules/mbfile: Likewise.
29785         * modules/mbiter: Likewise.
29786         * modules/mbuiter: Likewise.
29787         * modules/netdb: Likewise.
29788         * modules/netinet_in: Likewise.
29789         * modules/nproc: Likewise.
29790         * modules/pagealign_alloc: Likewise.
29791         * modules/poll: Likewise.
29792         * modules/printf-frexp: Likewise.
29793         * modules/pthread: Likewise.
29794         * modules/putenv: Likewise.
29795         * modules/random_r: Likewise.
29796         * modules/relocatable-prog: Likewise.
29797         * modules/search: Likewise.
29798         * modules/select: Likewise.
29799         * modules/selinux-h: Likewise.
29800         * modules/settime: Likewise.
29801         * modules/signal: Likewise.
29802         * modules/size_max: Likewise.
29803         * modules/socklen: Likewise.
29804         * modules/ssize_t: Likewise.
29805         * modules/stdarg: Likewise.
29806         * modules/stdbool: Likewise.
29807         * modules/stddef: Likewise.
29808         * modules/stdint: Likewise.
29809         * modules/stdio: Likewise.
29810         * modules/stdlib: Likewise.
29811         * modules/string: Likewise.
29812         * modules/strings: Likewise.
29813         * modules/sys_file: Likewise.
29814         * modules/sys_ioctl: Likewise.
29815         * modules/sys_select: Likewise.
29816         * modules/sys_socket: Likewise.
29817         * modules/sys_stat: Likewise.
29818         * modules/sys_time: Likewise.
29819         * modules/sys_times: Likewise.
29820         * modules/sys_utsname: Likewise.
29821         * modules/sys_wait: Likewise.
29822         * modules/sysexits: Likewise.
29823         * modules/time: Likewise.
29824         * modules/times: Likewise.
29825         * modules/tmpfile: Likewise.
29826         * modules/trim: Likewise.
29827         * modules/unistd: Likewise.
29828         * modules/wchar: Likewise.
29829         * modules/wctype: Likewise.
29830
29831 2009-09-17  Bruno Haible  <bruno@clisp.org>
29832
29833         Make getdate.y compile on QNX and NetBSD 5 / i386.
29834         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29835         TIME_T_FITS_IN_LONG_INT.
29836         * lib/getdate.y (long_time_t): New type.
29837         (relative_time): Change type of 'seconds' field to long_time_t.
29838         (get_date): Update types of local variables. Check against overflow
29839         during conversion from long_time_t to time_t.
29840         Reported by Matt Kraai <kraai@ftbfs.org>
29841         and Hasso Tepper <hasso@netbsd.org>.
29842
29843 2009-09-17  Bruno Haible  <bruno@clisp.org>
29844
29845         * modules/COPYING: Update copyright years.
29846         * modules/README: Likeiwse.
29847         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29848         Reported by Ian Beckwith <ianb@erislabs.net>.
29849
29850 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29851
29852         * users.txt: Update references for gnuit package.
29853
29854 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29855
29856         * m4/getdelim.m4: Fix typo in copyright line.
29857
29858 2009-09-17  Bruno Haible  <bruno@clisp.org>
29859
29860         * lib/atoll.c: Use the standard header with GPL copyright.
29861         * lib/argz.in.h: Likewise.
29862         * lib/glob.c: Likewise.
29863         * lib/glob-libc.h: Likewise.
29864         * lib/random_r.c: Likewise.
29865         * lib/siglist.h: Likewise.
29866         * lib/strsignal.c: Likewise.
29867         Reported by Ian Beckwith <ianb@erislabs.net>.
29868
29869 2009-09-17  Eric Blake  <ebb9@byu.net>
29870
29871         rmdir: ensure correct dependency order
29872         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
29873
29874 2009-09-17  Bruno Haible  <bruno@clisp.org>
29875
29876         Disable assertion that fails on NetBSD 5 / i386.
29877         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
29878         Reported by Sam Steingold <sds@gnu.org>
29879         and Hasso Tepper <hasso@netbsd.org>.
29880
29881 2009-09-16  Eric Blake  <ebb9@byu.net>
29882
29883         unlinkdir: port to mingw
29884         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
29885         on which no one can unlink a directory.
29886
29887         stdlib: sort witness names
29888         * modules/stdlib (Makefile.am): Sort replacements.
29889         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29890         * lib/stdlib.in.h: Likewise.
29891
29892         parse-duration-tests: avoid link failure
29893         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
29894         LIBINTL.
29895         Reported by Tom G. Christensen.
29896
29897         openat-tests: ensure unlinkat behaves like rmdir
29898         * tests/test-rmdir.c (main): Factor guts...
29899         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
29900         * modules/rmdir-tests (Files): Ship new file.
29901         * modules/openat-tests: New test.
29902         * tests/test-unlinkat.c: Likewise.
29903
29904         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
29905         * modules/rmdir-errno (Status, Notice): Now obsolete.
29906
29907         rmdir: work around cygwin 1.5.x and mingw bugs
29908         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
29909         * lib/rmdir.c (rmdir): Work around it.
29910         * modules/rmdir (Status, Notice): No longer obsolete.
29911         (Files): Add dos.m4.
29912         (Depends-on): Add unistd.
29913         (configure.ac): Set witnesses.
29914         (License): Relax to LGPLv2+.
29915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
29916         * modules/unistd (Makefile.am): Substitute witnesses.
29917         * lib/unistd.in.h (rmdir): Declare replacement.
29918         * doc/posix-functions/rmdir.texi (rmdir): Document this.
29919         * modules/rmdir-tests: New tests.
29920         * tests/test-rmdir.c: Likewise.
29921
29922 2009-09-15  Eric Blake  <ebb9@byu.net>
29923
29924         fchdir: improve use of replacement functions
29925         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
29926         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
29927         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
29928         REPLACE_CLOSEDIR.
29929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
29930         * modules/sys_stat (Makefile.am): Substitute correct witness.
29931         * modules/dirent (Makefile.am): Likewise.
29932         * modules/unistd (Makefile.am): Likewise.
29933         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
29934         * lib/unistd.in.h (dup): Likewise.
29935         * lib/sys_stat.in.h (fstat): Likewise.
29936
29937         maint: ignore gnulib-tool temp files
29938         * .gitignore: Ignore files created during gnulib-tool --test.
29939
29940 2009-09-13  Jim Meyering  <meyering@redhat.com>
29941
29942         posixtm: don't reject a time that specify "60" as the number of seconds
29943         * lib/posixtm.c (posixtime): The code to reject invalid dates
29944         would also reject a time specified with the .60 suffix.
29945         But POSIX allows that, in order to accommodate leap seconds.
29946         So don't reject it.
29947         (main): Adjust tests accordingly.
29948         * modules/posixtm (Depends-on): Add stpcpy.
29949
29950 2009-09-11  Jim Meyering  <meyering@redhat.com>
29951
29952         announce-gen: include [$release_type] in emitted Subject:
29953         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
29954         e.g., [stable] in the emitted Subject: line.
29955
29956 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29957
29958         Remove obsolete macros from several modules.
29959         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
29960         obsolete Autoconf macros with their modern counterparts.
29961         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
29962         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
29963         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
29964         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29965         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
29966         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29967         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29968         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29969         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29970         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
29971         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29972         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29973         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
29974         * m4/sockets.m4 (gl_SOCKETS): Likewise.
29975         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
29976         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
29977         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29978         * m4/time_r.m4 (gl_TIME_R): Likewise.
29979         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29980         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
29981         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29982
29983         Fix copyright header in build-aux scripts.
29984         * build-aux/git-version-gen: Fix copyright header to match GPLv3
29985         recommendation.
29986         * build-aux/ncftpput-ftp: Likewise.
29987         * build-aux/update-copyright: Likewise.
29988
29989 2009-09-09  Eric Blake  <ebb9@byu.net>
29990
29991         test-link: allow Linux choice of errno
29992         * tests/test-link.c (main): Relax test for alternate error.
29993
29994         strndup: fix improper m4 caching
29995         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
29996         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
29997         (gl_PREREQ_STRNDUP): Delete.
29998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
29999         * modules/string (Makefile.am): Substitute it.
30000         * lib/string.in.h (strndup): Modernize prototype.
30001
30002         getcwd: port to mingw
30003         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
30004         different from the POSIX assumptions made throughout the getcwd
30005         module; fortunately, the mingw getcwd does not need replacement.
30006         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
30007         * modules/getcwd-tests: New test.
30008         * tests/test-getcwd.c: Likewise.
30009
30010         link: fix platform bugs
30011         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
30012         * lib/link.c (link): Work around them.  Fix related mingw bug.
30013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
30014         * modules/unistd (Makefile.am): Substitute it.
30015         * lib/unistd.in.h (link): Declare replacement.
30016         * doc/posix-functions/link.texi (link): Document this.
30017         * modules/link (Depends-on): Add strdup-posix, sys_stat.
30018
30019         test-link: consolidate into single C program, test more cases
30020         * tests/test-link.sh: Delete.
30021         * tests/test-link.c: Test more error conditions.  Exposes bugs on
30022         at least Cygwin and Solaris.
30023         * modules/link-tests (Files): Remove unused file.
30024         (Depends-on): Add errno, sys_stat.
30025         (Makefile.am): Simplify.
30026
30027 2009-09-08  Bruno Haible  <bruno@clisp.org>
30028
30029         Work around towlower, towupper bug on mingw.
30030         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
30031         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
30032         * doc/posix-functions/towlower.texi: Mention the mingw bug.
30033         * doc/posix-functions/towupper.texi: Likewise.
30034         Reported by Eric Blake.
30035
30036 2009-09-08  Jim Meyering  <meyering@redhat.com>
30037
30038         build: don't try to run autoheader if we don't use it
30039         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
30040         is not used in configure.ac.
30041
30042 2009-09-08  Eric Blake  <ebb9@byu.net>
30043
30044         euidaccess: fix compilation error
30045         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
30046
30047         rawmemchr: relax license
30048         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
30049         okay.
30050         Reported by Jim Meyering.
30051
30052         mkfifoat: new module
30053         * modules/mkfifoat: New file.
30054         * lib/mkfifoat.c: Likewise.
30055         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
30056         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30057         * modules/sys_stat (Makefile.am): Use them.
30058         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
30059         * MODULES.html.sh (File system functions): Mention module.
30060         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30061         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30062         * modules/mkfifoat-tests: New test.
30063         * tests/test-mkfifoat.c: Likewise.
30064
30065         strchrnul: relax license
30066         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
30067         okay.
30068         Reported by Jim Meyering.
30069
30070 2009-09-08  Eric Blake  <ebb9@byu.net>
30071
30072         fstatat: fix compilation on Solaris
30073         * lib/fstatat.c (includes): Add fcntl.h.
30074         Reported by Pádraig Brady.
30075
30076 2009-09-07  Eric Blake  <ebb9@byu.net>
30077
30078         rename: modernize replacement
30079         * modules/rename (Depends-on): Add stdio.
30080         (configure.ac): Declare witness.
30081         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
30082         stdio take care of replacement.
30083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30084         * modules/stdio (Makefile.am): Substitute them.
30085         * lib/stdio.in.h (rename): Declare replacement.
30086         * lib/rename.c (includes): Allow cross-compilation to non-windows
30087         machines.
30088         * doc/posix-functions/rename.texi (rename): Improve
30089         documentation.
30090
30091         stdio: sort witness names
30092         * modules/stdio (Makefile.am): Sort replacements.
30093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30094         * lib/stdio.in.h: Likewise.
30095
30096         getcwd: minor cleanups
30097         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
30098         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
30099
30100         openat: provide more convenience names
30101         * modules/faccessat (configure.ac): Add C witness.
30102         * lib/unistd.in.h (readlinkat): Fix typo.
30103         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
30104         convenience wrappers.
30105         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
30106         wrappers in syntax checks.
30107
30108 2009-09-06  Eric Blake  <ebb9@byu.net>
30109
30110         doc: fix comments in recent patches
30111         * lib/faccessat.c: Mention correct function.
30112         * lib/fchmodat.c: Likewise.
30113         * lib/fchownat.c: Likewise.
30114         * lib/symlinkat.c: Likewise.
30115         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30116         constants.
30117
30118         faccessat, symlinkat: continue cleanup of previous patch
30119         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
30120         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30121         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
30122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
30123         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
30124         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
30125         set.
30126
30127 2009-09-06  Bruno Haible  <bruno@clisp.org>
30128
30129         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
30130         (fstatat): Declare if GNULIB_FSTATAT is set.
30131         (mkdirat): Declare if GNULIB_MKDIRAT is set.
30132         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
30133         (unlinkat): Declare if GNULIB_UNLINKAT is set.
30134         * modules/fcntl-h (Files): Remove m4/openat.m4.
30135         * modules/sys_stat (Files): Remove m4/openat.m4.
30136         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
30137         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
30138         * modules/unistd (Files): Remove m4/openat.m4.
30139         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
30140         GNULIB_OPENAT.
30141         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
30142         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
30143         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
30144         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
30145         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
30146         gl_OPENAT_DEFAULTS.
30147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
30148         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
30149         Don't require gl_OPENAT_DEFAULTS.
30150         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
30151         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
30152         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
30153         (gl_OPENAT_DEFAULTS): Remove macro.
30154
30155 2009-09-06  Bruno Haible  <bruno@clisp.org>
30156
30157         * modules/openat (configure.ac): Remove unneeded witness.
30158
30159 2009-09-06  Bruno Haible  <bruno@clisp.org>
30160
30161         Set errno to ENOSYS when a function is entirely unsupported.
30162         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
30163         EOPNOTSUPP.
30164         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30165         * modules/chown (Depends-on): Remove errno.
30166
30167 2009-09-06  Bruno Haible  <bruno@clisp.org>
30168
30169         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
30170
30171 2009-09-06  Bruno Haible  <bruno@clisp.org>
30172
30173         * lib/sys_stat.in.h: Fix preprocessor command indentation.
30174
30175 2009-09-06  Ben Pfaff  <blp@gnu.org>
30176             Bruno Haible  <bruno@clisp.org>
30177
30178         Work around a glibc bug in strtok_r.
30179         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
30180         Undefine if UNDEFINE_STRTOK_R is set.
30181         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
30182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30183         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
30184         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
30185         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
30186         UNDEFINE_STRTOK_R.
30187         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
30188
30189 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30190
30191         exclude: minor fix
30192         * lib/exclude.c: Include wctype.h
30193
30194 2009-09-06  Akim Demaille  <demaille@gostai.com>
30195
30196         bootstrap: improve error message
30197         * build-aux/bootstrap (find_tool): Upon failure, report the list
30198         of candidates.
30199         Honor the initial value of the envvar.
30200
30201 2009-09-05  Eric Blake  <ebb9@byu.net>
30202
30203         symlinkat: new module
30204         * modules/symlinkat: New file.
30205         * lib/symlinkat.c: Likewise.
30206         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
30207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30208         * modules/unistd (Makefile.am): Use them.
30209         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
30210         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
30211         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
30212         * MODULES.html.sh (File system functions): Mention module.
30213         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30214         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30215         * modules/symlinkat-tests: New test.
30216         * tests/test-symlinkat.c: Likewise.
30217
30218         test-openat-safer: add more checks
30219         * tests/test-openat-safer.c (main): Check more code paths.
30220
30221 2009-09-05  Jim Meyering  <meyering@redhat.com>
30222
30223         syntax-check: detect unnecessary inclusion of openat.h
30224         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
30225
30226 2009-09-05  Bruno Haible  <bruno@clisp.org>
30227
30228         Support towlower, towupper.
30229         * doc/posix-functions/towlower.texi: Mention module wctype.
30230         * doc/posix-functions/towupper.texi: Likewise.
30231         * lib/wctype.in.h (towlower, towupper): New functions.
30232         * tests/test-wctype.c: Include stdio.h, stdlib.h.
30233         (ASSERT): New macro.
30234         (e): New variable.
30235         (main): Test also towlower, towupper. Test WEOF argument.
30236         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30237
30238 2009-09-05  Bruno Haible  <bruno@clisp.org>
30239
30240         Fix conversion behaviour when the input is invalid.
30241         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
30242         mark occurring in first pass of indirect conversion.
30243         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
30244         input.
30245         Found by clang's static analyzer.
30246
30247 2009-09-05  Bruno Haible  <bruno@clisp.org>
30248
30249         * tests/test-striconveh.c (main): Test indirect conversion on platforms
30250         where direct conversion is possible.
30251
30252 2009-09-04  Eric Blake  <ebb9@byu.net>
30253
30254         openat: fail with ENOENT on empty name
30255         * lib/openat-proc.c (openat_proc_name): Special-case the empty
30256         buffer.
30257
30258         link-follow: fix logic bug in prior patch
30259         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
30260         reversed sense of yes and no in prior patch.  Avoid confusing
30261         compilation failure with desired semantics.
30262
30263         link-follow: accomodate mingw and cross-compilation
30264         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
30265         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
30266         cross-compilation results to -1, to make linkat easier to
30267         implement when cross-compiling.  Trivially support mingw.
30268         * modules/link-follow (configure.ac): Call new name.
30269         * NEWS: Mention this.
30270
30271 2009-09-03  Eric Blake  <ebb9@byu.net>
30272
30273         faccessat: compile replacement
30274         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
30275         needed.
30276
30277         fts: fix compilation error
30278         * lib/fts.c (includes): Re-add "openat.h", for
30279         openat_needs_fchdir.
30280
30281         faccessat: new module
30282         * modules/faccessat: New file.
30283         * lib/faccessat.c: Likewise.
30284         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30286         * modules/unistd (Makefile.am): Use it.
30287         * lib/unistd.in.h (faccessat): Declare it.
30288         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
30289         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
30290         * MODULES.html.sh (File system functions): Mention it.
30291         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
30292         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30293
30294         euidaccess: prefer POSIX over non-standard implementation
30295         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30296         * lib/euidaccess.c (euidaccess): Use it if available.
30297
30298         openat: make template easier to use
30299         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30300         AT_FUNC_F2 to be undefined.
30301         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30302         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30303         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30304         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30305         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30306         Likewise.
30307         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30308         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30309         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30310         Likewise.
30311
30312         openat: declare in POSIX headers
30313         * NEWS: Mention this.
30314         * modules/openat (configure.ac): Declare witnesses.
30315         (Depends-on): Add fcntl-h, sys_stat, unistd.
30316         (Include): Mention correct headers.
30317         * modules/fcntl-h (Depends-on): Add link-warning.
30318         (Files): Add openat.m4.
30319         (Makefile.am): Substitute witnesses.
30320         * modules/sys_stat (Files, Makefile.am): Likewise.
30321         * modules/unistd (Files, Makefile.am): Likewise.
30322         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30323         (gl_OPENAT_DEFAULTS): New macro.
30324         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30326         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30327         (SYS_STAT_H): Remove unused variable.
30328         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30329         * lib/fcntl--.h (includes): Remove unneeded header.
30330         * lib/openat-safer.c (includes): Likewise.
30331         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30332         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30333         appropriate headers.
30334         (__OPENAT_PREFIX): Delete.
30335         * lib/fcntl.in.h (openat): Provide declaration.
30336         (AT_FDCWD): Fix Solaris bug.
30337         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30338         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30339         * lib/fchmodat.c (includes):  Adjust to find declaration.
30340         * lib/fchownat.c (includes): Likewise.
30341         * lib/mkdirat.c (includes): Likewise.
30342         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30343         still visible.
30344
30345 2009-09-02  Eric Blake  <ebb9@byu.net>
30346
30347         errno: use consistently
30348         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30349         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30350         * lib/canonicalize.c (ELOOP): Likewise.
30351         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30352         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30353         * lib/lchown.c (EOPNOTSUPP): Likewise.
30354         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30355         * lib/savewd.c (ESTALE): Likewise.
30356         * lib/settime.c (ENOSYS): Likewise.
30357         * lib/utimens.c (ENOSYS): Likewise.
30358         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30359         * lib/chdir-safer.c (ELOOP): Likewise.
30360         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30361         * modules/c-stack (Depends-on): Add errno.
30362         * modules/canonicalize (Depends-on): Likewise.
30363         * modules/chdir-safer (Depends-on): Likewise.
30364         * modules/fdopendir (Depends-on): Likewise.
30365         * modules/inet_ntop (Depends-on): Likewise.
30366         * modules/inet_pton (Depends-on): Likewise.
30367         * modules/lchown (Depends-on): Likewise.
30368         * modules/openat (Depends-on): Likewise.
30369         * modules/savewd (Depends-on): Likewise.
30370         * modules/settime (Depends-on): Likewise.
30371         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30372
30373         fts: avoid leaking fds
30374         * modules/fts (Depends-on): Add cloexec.
30375         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30376         flag.
30377
30378         fts: make directory fds more robust
30379         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30380         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30381
30382         backupfile, chdir-long, fts, savedir: make safer
30383         * lib/backupfile.c (includes): Use "dirent--.h", since
30384         numbered_backup can write to stderr during readdir.
30385         * lib/savedir.c (includes): Likewise.
30386         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30387         emulation can write to stderr on failure.
30388         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30389         * lib/getcwd.c: Document why opendir_safer is unused.
30390         * lib/glob.c: Likewise.
30391         * lib/scandir.c: Likewise.
30392         * lib/openat-proc.c: Likewise, for open_safer.
30393         * modules/backupfile (Depends-on): Add dirent-safer.
30394         * modules/savedir (Depends-on): Likewise.
30395         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30396         * modules/chdir-long (Depends-on): Add openat-safer.
30397
30398         openat-safer: new module
30399         * modules/openat-safer: New file.
30400         * lib/openat-safer.c: Likewise.
30401         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30402         * lib/fcntl-safer.h (openat_safer): Declare.
30403         * lib/fcntl--.h (openat): Override.
30404         * MODULES.html.sh (File descriptor based I/O): Mention it.
30405         * lib/openat.h: Add double-inclusion guards.
30406         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30407         "fcntl--.h", so we can implement openat.
30408         * modules/openat-safer-tests: New test.
30409         * tests/test-openat-safer.c: New file.
30410
30411         dirent-safer: new module
30412         * modules/dirent-safer: New file.
30413         * lib/dirent--.h: Likewise.
30414         * lib/dirent-safer.h: Likewise.
30415         * lib/opendir-safer.c: Likewise.
30416         * m4/dirent-safer.m4: Likewise.
30417         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30418         * modules/dirent-safer-tests: New test.
30419         * tests/test-dirent-safer.c: New file.
30420         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30421
30422         fdopendir: optimize on mingw
30423         * lib/unistd.in.h (_gl_directory_name): New prototype.
30424         * lib/fchdir.c (_gl_directory_name): Implement it.
30425         (fchdir): Use it to simplify implementation.
30426         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30427         fchdir, when available, to avoid calling [f]chdir().
30428
30429         fdopendir: split into its own module
30430         * lib/openat.c (fdopendir): Move...
30431         * lib/fdopendir.c: ...into new file.
30432         * modules/fdopendir: New module.
30433         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30434         * modules/openat (Depends-on): Add fdopendir.
30435         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30436         fdopendir here.
30437         * modules/savedir (Depends-on): Only need fdopendir, not full
30438         openat.
30439         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30440         * lib/openat.h (fdopendir): Drop prototype.
30441         * lib/dirent.in.h (fdopendir): Provide prototype.
30442         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30443         * modules/dirent (Makefile.am): Substitute them.
30444         * MODULES.html.sh (File system functions): Mention it.
30445         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30446         * modules/fdopendir-tests: New file.
30447         * tests/test-fdopendir.c: Likewise.
30448
30449         fchdir: use more consistent macro convention
30450         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30451         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30452         REPLACE_FCHDIR, rather than relying on config.h macros.
30453         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30454         inside a single make-time REPLACE_FCHDIR block, rather than using
30455         the config.h FCHDIR_REPLACEMENT.
30456         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30457         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30458         Manage fstat replacement.
30459         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30460         REPLACE_FCHDIR.
30461         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30462         (Makefile.am): Substitute REPLACE_FCHDIR.
30463         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30464         FCHDIR_REPLACEMENT.
30465         * lib/dup-safer.c (dup_safer): Likewise.
30466         * lib/dup2.c (rpl_dup2): Likewise.
30467         * lib/dup3.c (rpl_dup3): Likewise.
30468         * lib/open.c (rpl_open): Likewise.
30469
30470         fchdir: simplify error handling, and support dup3
30471         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30472         stdbool, malloc-posix, realloc-posix.
30473         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30474         (ensure_dirs_slot): Return false on allocation failure.
30475         (rpl_dup2): Delete.
30476         (_gl_register_dup): New function.
30477         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30478         (_gl_register_fd): Close fd on allocation failure.
30479         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30480         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30481         prototype.
30482         (rpl_dup2_fchdir): Delete prototype.
30483         * lib/open.c (open): Update caller.
30484         * lib/dup2.c (dup2): Track fchdir metadata.
30485         * lib/dup3.c (dup3): Likewise.
30486         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30487         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30488
30489 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30490
30491         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30492         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30493         don't pass arguments to AC_OUTPUT.
30494
30495 2009-09-02  Bruno Haible  <bruno@clisp.org>
30496
30497         * modules/mkdtemp (License): Relicense under LGPLv2+.
30498         Reported by Paolo Bonzini.
30499
30500 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30501
30502         Replace uses of obsolete autoconf macros in Jim's modules.
30503         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30504         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30505         can evoke a warning from autoconf when run with -Wobsolete
30506         enabled.  They were declared obsolete for good reasons (see
30507         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30508         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30509         should not continue using the deprecated macros.
30510         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30511         obsolete Autoconf macros with modern counterparts.
30512         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30513         * m4/dos.m4 (gl_AC_DOS): Likewise.
30514         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30515         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30516         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30517         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30518         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30519         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30520         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30521         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30522         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30523         Likewise.
30524         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30525         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30526         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30527         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30528         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30529         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30530
30531 2009-09-01  Eric Blake  <ebb9@byu.net>
30532
30533         fchdir: fix off-by-one bug in previous patch
30534         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30535         (_gl_unregister_fd): Delete useless if.
30536
30537 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30538
30539         maint.mk: sort the list of syntax-check rules
30540         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30541         easier to get a sense of progress when the rules are run sequentially
30542         and take a long time.
30543
30544 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30545
30546         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30547         * modules/netinet_in: Likewise.
30548         * modules/sys_file: Likewise.
30549         * modules/sys_ioctl: Likewise.
30550         * modules/sys_select: Likewise.
30551         * modules/sys_socket: Likewise.
30552         * modules/sys_stat: Likewise.
30553         * modules/sys_time: Likewise.
30554         * modules/sys_times: Likewise.
30555         * modules/sys_utsname: Likewise.
30556         * modules/sys_wait: Likewise.
30557
30558 2009-09-01  Jim Meyering  <meyering@redhat.com>
30559
30560         fts: help ensure that return values are not ignored
30561         * lib/fts_.h (__GNUC_PREREQ): Define.
30562         (__attribute_warn_unused_result__): Define.
30563         (fts_children, fts_close, fts_open, fts_read): Declare with
30564         __attribute_warn_unused_result__.
30565
30566         fts: fts_close now fails also when closing a dir file descriptor fails
30567         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30568         and propagate to caller, along with errno.
30569
30570         announce-gen: correct formatting in --help output
30571         * build-aux/announce-gen (usage): Move the one-line description in
30572         --help output "up", to where it belongs, just after Usage:.
30573
30574 2009-08-31  Eric Blake  <ebb9@byu.net>
30575
30576         fchdir: port to mingw
30577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30578         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30579         opened, then use a substitute.
30580         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30581         replacement.
30582         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30583         (_gl_register_fd): No need to check stat if open already filters
30584         all directories.
30585         (fchdir): Fix error condition to match POSIX.
30586         * modules/fchdir (Depends-on): Add sys_stat.
30587         * doc/posix-functions/open.texi (open): Document the limitation.
30588         * modules/fchdir-tests: New file.
30589         * tests/test-fchdir.c: Likewise.
30590
30591         canonicalize: allow cross-testing from cygwin to mingw
30592         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30593         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30594         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30595         Likewise.
30596         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30597         target does not support symlinks.
30598         * tests/test-canonicalize-lgpl.sh: Likewise.
30599
30600         chown: avoid compilation warning on mingw
30601         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30602         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30603         mingw.
30604         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30605         * modules/chown (Depends-on): Add errno.
30606
30607 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30608
30609         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30610         command.
30611
30612 2009-08-31  Jim Meyering  <meyering@redhat.com>
30613
30614         canonicalize: remove useless initialization
30615         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30616         initialization of local, "end".
30617
30618 2009-08-30  Bruno Haible  <bruno@clisp.org>
30619
30620         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30621         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30622         ENOSYS.
30623
30624 2009-08-30  Bruno Haible  <bruno@clisp.org>
30625
30626         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30627         /usr/xpg4/bin/tr when it exists.
30628         * tests/test-pipe-filter-gi1.sh: Likewise.
30629
30630 2009-08-30  Bruno Haible  <bruno@clisp.org>
30631
30632         Work around deficient /usr/bin/id program on Solaris.
30633         * tests/test-file-has-acl.sh (ID): New variable.
30634         * tests/test-set-mode-acl.sh (ID): Likewise.
30635         * tests/test-copy-acl.sh (ID): Likewise.
30636         * tests/test-copy-file.sh (ID): Likewise.
30637
30638 2009-08-30  Bruno Haible  <bruno@clisp.org>
30639
30640         New module 'xstriconveh'.
30641         * lib/xstriconveh.h: New file.
30642         * lib/xstriconveh.c: New file.
30643         * modules/xstriconveh: New file.
30644
30645 2009-08-30  Bruno Haible  <bruno@clisp.org>
30646
30647         Make it easier to use mem_cd_iconveh.
30648         * lib/striconveh.h (iconveh_t): New type.
30649         (iconveh_open, iconveh_close): New declarations.
30650         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30651         with a single 'const iconveh_t *' argument.
30652         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30653         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30654         with a single 'const iconveh_t *' argument.
30655         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30656         * tests/test-striconveh.c (main): Update.
30657         * NEWS: Mention the change.
30658
30659 2009-08-30  Bruno Haible  <bruno@clisp.org>
30660
30661         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30662         problem.
30663
30664 2009-08-30  Bruno Haible  <bruno@clisp.org>
30665
30666         Work around iconv_open problem on Solaris.
30667         * lib/iconv_open-solaris.gperf: New file.
30668         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30669         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30670         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30671         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30672         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30673         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30674
30675 2009-08-29  Jim Meyering  <meyering@redhat.com>
30676
30677         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30678         * top/maint.mk (cvs-check): Remove target; it was just an alias
30679         to the better-named vc-diff-check.
30680         (maintainer-distcheck): Remove rule.  It was used only from
30681         the (alpha/beta/major) target, and all of its commands but one
30682         were coreutils-specific.
30683         (vc-dist): Remove rule.
30684         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30685         Run vc-diff-check, not vc-dist.
30686         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30687
30688 2009-08-27  Bruno Haible  <bruno@clisp.org>
30689
30690         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30691         of 0.
30692
30693 2009-08-27  Bruno Haible  <bruno@clisp.org>
30694
30695         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30696         compilers.
30697         * doc/func.texi: Document the SunPRO C bug.
30698
30699 2009-08-27  Bruno Haible  <bruno@clisp.org>
30700
30701         Fix link error on Solaris.
30702         * tests/test-parse-duration.c (xstrdup): Remove function.
30703
30704 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30705
30706         ignore-value: handle pointer types, too
30707         * lib/ignore-value.h (__attribute__): Remove definition.
30708         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30709         of a more concise and more-often effective "(void) i" statement.
30710         (ignore_ptr): New function to suppress warnings from functions that
30711         return pointers, and to make it explicit that one function doesn't
30712         handle all cases.
30713
30714 2009-08-25  Bruno Haible  <bruno@clisp.org>
30715
30716         dup2: work around a Linux bug.
30717         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30718         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30719         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30720         Reported by Simon Josefsson.
30721
30722 2009-08-25  Jim Meyering  <meyering@redhat.com>
30723
30724         libguestfs uses gnulib
30725         * users.txt: Add libguestfs.
30726
30727 2009-08-24  Eric Blake  <ebb9@byu.net>
30728
30729         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30730         * lib/pipe2.c (includes): Add binary-io.h.
30731         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30732
30733 2009-08-24  Bruno Haible  <bruno@clisp.org>
30734
30735         Tolerate declared but missing accept4 syscall.
30736         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30737         available.
30738         * lib/sys_socket.in.h (accept4): If the function is already present,
30739         override it.
30740         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30741         * modules/accept4 (Makefile.am): Compile accept4.c always.
30742         Reported by Paolo Bonzini and Eric Blake.
30743
30744 2009-08-23  Bruno Haible  <bruno@clisp.org>
30745
30746         New module 'accept4'.
30747         * lib/sys_socket.in.h (accept4): New declaration.
30748         * lib/accept4.c: New file.
30749         * m4/accept4.m4: New file.
30750         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30751         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30752         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30753         HAVE_ACCEPT4.
30754         * modules/accept4: New file.
30755         * doc/glibc-functions/accept4.texi: Mention the new module.
30756
30757 2009-08-24  Jim Meyering  <meyering@redhat.com>
30758
30759         progname: also set global program_invocation_name, when possible
30760         Before this change, a libtool-enabled program that calls glibc's
30761         error function would report the program name as
30762         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30763         * modules/progname (configure.ac): Check for a declaration of
30764         program_invocation_name.
30765         * lib/progname.c:  Include <errno.h>.
30766         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30767         Set program_invocation_name.
30768
30769 2009-08-23  Bruno Haible  <bruno@clisp.org>
30770
30771         * lib/dup3.c: Include <string.h>.
30772
30773 2009-08-23  Bruno Haible  <bruno@clisp.org>
30774
30775         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30776         * lib/pipe2.c (pipe2): Likewise.
30777         Suggested by Eric Blake.
30778
30779 2009-08-23  Bruno Haible  <bruno@clisp.org>
30780
30781         Tolerate declared but missing dup3 syscall.
30782         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30783         * lib/unistd.in.h (dup3): If the function is already present,
30784         override it.
30785         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30786         * modules/dup3 (Makefile.am): Compile dup3.c always.
30787         Reported by Paolo Bonzini.
30788
30789 2009-08-23  Bruno Haible  <bruno@clisp.org>
30790
30791         Tolerate declared but missing pipe2 syscall.
30792         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30793         available.
30794         * lib/unistd.in.h (pipe2): If the function is already present,
30795         override it.
30796         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30797         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30798         Reported by Paolo Bonzini.
30799
30800 2009-08-23  Bruno Haible  <bruno@clisp.org>
30801
30802         * lib/pipe2.c (pipe2): Move #ifs inside function.
30803
30804 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30805
30806         quotearg: document limitations of quote_these_too
30807         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30808         those limitations are created.
30809         * lib/quotearg.h (set_char_quoting): Document that digits and
30810         letters that are special after backslash are not permitted.
30811         (quotearg_char): Cross-reference set_char_quoting documentation.
30812
30813 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30814
30815         quotearg: implement custom_quoting_style
30816         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30817         right_quote fields.
30818         (set_custom_quoting): New public function.
30819         (quotearg_buffer_restyled): Add left_quote and right_quote
30820         arguments, handle them very much like locale quoting, and update
30821         all uses.
30822         (quotearg_n_custom): New public function.
30823         (quotearg_n_custom_mem): New public function.
30824         (quotearg_custom): New public function.
30825         (quotearg_custom_mem): New public function.
30826         * lib/quotearg.h: Prototype and document new public functions.
30827         (enum quoting_style): For escape_quoting_style and
30828         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30829         ignored even though they're otherwise like c_quoting_style.
30830         Add custom_quoting_style member and document with comparison to
30831         clocale_quoting_style.
30832         * tests/test-quotearg.c (custom_quotes): New array.
30833         (custom_results): New array.
30834         (main): Extend to test custom quoting.
30835
30836 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30837
30838         quotearg: fix right quote escaping when it's in quote_these_too
30839         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30840         quote, be sure to prepend only one backslash.
30841         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30842         (main): Test it.
30843
30844 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30845
30846         quotearg-tests: test escaping of embedded locale quotes
30847         * tests/test-quotearg.c (struct result_strings): Add member for
30848         new input.
30849         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30850         (inputs): Add new input.
30851         (results_g): Add expected results.
30852         (flag_results): Likewise.
30853         (locale_results): Likewise.
30854         (compare_strings): Check those.
30855
30856 2009-08-23  Bruno Haible  <bruno@clisp.org>
30857
30858         Tests for module 'dup3'.
30859         * modules/dup3-tests: New file.
30860         * tests/test-dup3.c: New file.
30861
30862         New module 'dup3'.
30863         * lib/unistd.in.h (dup3): New declaration.
30864         * lib/dup3.c: New file.
30865         * m4/dup3.m4: New file.
30866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30867         HAVE_DUP3.
30868         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
30869         * modules/dup3: New file.
30870         * doc/glibc-functions/dup3.texi: Mention the new module.
30871
30872 2009-08-23  Bruno Haible  <bruno@clisp.org>
30873
30874         Tweak the dup2 test.
30875         * tests/test-dup2.c (main): Create the test file empty. Verify that an
30876         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
30877         the test file is still empty. Fix argument order of lseek.
30878
30879 2009-08-23  Bruno Haible  <bruno@clisp.org>
30880
30881         Avoid test link errors when the modules getopt-gnu, gettext are used.
30882         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
30883         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30884
30885 2009-08-23  Bruno Haible  <bruno@clisp.org>
30886
30887         Fix getdtablesize() on mingw.
30888         * lib/getdtablesize.c (getdtablesize): Implement differently.
30889         * lib/unistd.in.h (getdtablesize): Improve comment.
30890
30891 2009-08-23  Bruno Haible  <bruno@clisp.org>
30892
30893         New module 'mkostemp'.
30894         Based on Ulrich Drepper's 2007-08-10 change in glibc.
30895         * lib/stdlib.in.h (mksotemp): New declaration.
30896         * lib/mkostemp.c: New file, from glibc with modifications.
30897         * lib/tempname.h (GT_FILE): Remove outdated comment.
30898         (gen_tempname): Add flags argument.
30899         * lib/tempname.c (__GT_BIGFILE): Remove macro.
30900         (__GT_FILE): Map to 1.
30901         (small_open, large_open): Remove macros.
30902         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
30903         * lib/mkstemp.c (mkstemp): Update.
30904         * lib/mkdtemp.c (mkdtemp): Likewise.
30905         * m4/mkostemp.m4: New file.
30906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
30907         HAVE_MKOSTEMP.
30908         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
30909         HAVE_MKOSTEMP.
30910         * modules/mkostemp: New file, based on modules/mkstemp.
30911         * doc/glibc-functions/mkostemp.texi: Mention the new module.
30912         * NEWS: Mention the change.
30913
30914 2009-08-23  Bruno Haible  <bruno@clisp.org>
30915
30916         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
30917         Reported by Eric Blake.
30918
30919 2009-08-23  Bruno Haible  <bruno@clisp.org>
30920
30921         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
30922         Reported by Eric Blake.
30923
30924 2009-08-23  Bruno Haible  <bruno@clisp.org>
30925
30926         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
30927         * modules/pipe2 (Depends-on): Likewise.
30928
30929 2009-08-23  Eric Blake  <ebb9@byu.net>
30930
30931         fcntl-h: add O_TTY_INIT support
30932         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
30933         * tests/test-fcntl-h.c (o): Test it.
30934         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30935
30936         fcntl-h: rename from fcntl, in preparation for fcntl(2)
30937         * modules/fcntl: Move <fcntl.h> header replacement...
30938         * modules/fcntl-h: ...to new name, so as not to collide with
30939         like-named function.
30940         * tests/test-fcntl.c: Rename...
30941         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
30942         * modules/fcntl-tests: Rename...
30943         * modules/fcntl-h-tests: ...to this.  Update test file name.
30944         * modules/chdir-long (Depends-on): Update clients.
30945         * modules/chdir-safer (Depends-on): Likewise.
30946         * modules/fcntl-safer (Depends-on): Likewise.
30947         * modules/fts (Depends-on): Likewise.
30948         * modules/mkancesdirs (Depends-on): Likewise.
30949         * modules/mkdir-p (Depends-on): Likewise.
30950         * modules/open (Depends-on): Likewise.
30951         * modules/savewd (Depends-on): Likewise.
30952         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
30953         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30954
30955 2009-08-22  Bruno Haible  <bruno@clisp.org>
30956
30957         * modules/binary-io (License): Relicense under LGPL.
30958         * modules/pipe2 (License): Likewise.
30959
30960 2009-08-22  Bruno Haible  <bruno@clisp.org>
30961
30962         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
30963         return value.
30964         * lib/pipe-filter-gi.c (filter_init): Likewise.
30965         Reported by Eric Blake.
30966
30967 2009-08-22  Bruno Haible  <bruno@clisp.org>
30968
30969         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
30970         * modules/pipe (Depends-on): Add pipe2.
30971
30972 2009-08-22  Bruno Haible  <bruno@clisp.org>
30973
30974         Tests for module 'pipe2'.
30975         * modules/pipe2-tests: New file.
30976         * tests/test-pipe2.c: New file.
30977
30978         New module 'pipe2'.
30979         * lib/unistd.in.h (pipe2): New declaration.
30980         * lib/pipe2.c: New file.
30981         * m4/pipe2.m4: New file.
30982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
30983         HAVE_PIPE2.
30984         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
30985         * modules/pipe2: New file.
30986         * doc/glibc-functions/pipe2.texi: Mention the new module.
30987
30988 2009-08-22  Bruno Haible  <bruno@clisp.org>
30989
30990         Reference some new glibc functions.
30991         * doc/glibc-functions/accept4.texi: New file.
30992         * doc/glibc-functions/dup3.texi: New file.
30993         * doc/glibc-functions/mkostemp.texi: New file.
30994         * doc/glibc-functions/pipe2.texi: New file.
30995         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
30996         (Glibc sys/socket.h): Refer to accept4.
30997         (Glibc unistd.h): Refer to dup3, pipe2.
30998         Reported by Eric Blake.
30999
31000 2009-08-22  Jim Meyering  <meyering@redhat.com>
31001             Bruno Haible  <bruno@clisp.org>
31002
31003         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
31004         This makes it so packages using automake-1.11's silent-rules option
31005         can print e.g., a single "GEN    configmake.h" line, rather than
31006         the 30+ statements that perform the job.  If you want to see the
31007         actual commands, you can still run "make V=1".
31008         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
31009         so that make output is abbreviated when those variables are defined
31010         appropriately.
31011         * modules/argz: Likewise.
31012         * modules/arpa_inet: Likewise.
31013         * modules/byteswap: Likewise.
31014         * modules/configmake: Likewise.
31015         * modules/dirent: Likewise.
31016         * modules/errno: Likewise.
31017         * modules/fcntl: Likewise.
31018         * modules/float: Likewise.
31019         * modules/fnmatch: Likewise.
31020         * modules/getopt-posix: Likewise.
31021         * modules/glob: Likewise.
31022         * modules/iconv_open: Likewise.
31023         * modules/inttypes: Likewise.
31024         * modules/localcharset: Likewise.
31025         * modules/locale: Likewise.
31026         * modules/math: Likewise.
31027         * modules/netdb: Likewise.
31028         * modules/netinet_in: Likewise.
31029         * modules/poll: Likewise.
31030         * modules/posix_spawnp-tests: Likewise.
31031         * modules/sched: Likewise.
31032         * modules/search: Likewise.
31033         * modules/selinux-h: Likewise.
31034         * modules/signal: Likewise.
31035         * modules/spawn: Likewise.
31036         * modules/stdarg: Likewise.
31037         * modules/stdbool: Likewise.
31038         * modules/stddef: Likewise.
31039         * modules/stdint: Likewise.
31040         * modules/stdio: Likewise.
31041         * modules/stdlib: Likewise.
31042         * modules/string: Likewise.
31043         * modules/strings: Likewise.
31044         * modules/sys_file: Likewise.
31045         * modules/sys_ioctl: Likewise.
31046         * modules/sys_select: Likewise.
31047         * modules/sys_socket: Likewise.
31048         * modules/sys_stat: Likewise.
31049         * modules/sys_time: Likewise.
31050         * modules/sys_times: Likewise.
31051         * modules/sys_utsname: Likewise.
31052         * modules/sys_wait: Likewise.
31053         * modules/sysexits: Likewise.
31054         * modules/time: Likewise.
31055         * modules/unistd: Likewise.
31056         * modules/wchar: Likewise.
31057         * modules/wctype: Likewise.
31058
31059 2009-08-22  Jim Meyering  <meyering@redhat.com>
31060
31061         announce-gen: detect write failure
31062         * build-aux/announce-gen: Add Coda at end.
31063         Remove equivalent-but-more-verbose block at top.
31064
31065 2009-08-19  Akim Demaille  <demaille@gostai.com>
31066
31067         bootstrap: --help to stdout.
31068         * bootstrap (usage): Don't send --help to stderr.
31069         Use a here doc instead of a long string.
31070
31071 2009-08-21  Eric Blake  <ebb9@byu.net>
31072
31073         test-popen-safer: split from test-popen
31074         * tests/test-popen.c (main): Move...
31075         * tests/test-popen.h: ...into new file.
31076         * tests/test-popen-safer2.c: New file.
31077         * modules/popen-tests (Files): Add test-popen.h.
31078         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
31079         Suggested by Bruno Haible.
31080
31081         test-fcntl-safer: split from test-open
31082         * tests/test-open.c (main): Move...
31083         * tests/test-open.h: ...into new file.
31084         * tests/test-fcntl-safer.c: New file.
31085         * modules/open-tests (Files): Add test-open.h.
31086         * modules/fcntl-safer-tests: New file.
31087         Suggested by Bruno Haible.
31088
31089         test-fopen-safer: split from test-fopen
31090         * tests/test-fopen.c (main): Move...
31091         * tests/test-fopen.h: ...into new file.
31092         * tests/test-fopen-safer.c: New file.
31093         * modules/fopen-tests (Files): Add test-fopen.h.
31094         * modules/fopen-safer-tests: New file.
31095         Suggested by Bruno Haible.
31096
31097 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31098
31099         popen-safer: test O_CLOEXEC at run-time.
31100         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
31101
31102 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31103
31104         fcntl: move more flags to the header
31105         * lib/cloexec.c: Do not define FD_CLOEXEC here.
31106         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
31107         * lib/fcntl.in.h: Do both things here.
31108
31109 2009-08-21  Jim Meyering  <meyering@redhat.com>
31110
31111         consistently remove $@-t before redirecting to it
31112         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31113         * modules/alloca-opt: Likewise.
31114         * modules/byteswap: Likewise.
31115         * modules/fnmatch: Likewise.
31116         * modules/getopt-posix: Likewise.
31117         * modules/glob: Likewise.
31118         * modules/poll: Likewise.
31119         * modules/posix_spawnp-tests: Likewise.
31120         * modules/sys_socket: Likewise.
31121         * modules/sysexits: Likewise.
31122
31123 2009-08-21  Eric Blake  <ebb9@byu.net>
31124
31125         popen: simplify access to original popen
31126         * lib/popen.c (rpl_popen): No need to worry about popen being a
31127         macro.
31128         Reported by Bruno Haible.
31129
31130 2009-08-20  Eric Blake  <ebb9@byu.net>
31131
31132         build: avoid some compiler warnings
31133         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
31134         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
31135         type.
31136         (new_exclude_segment, excluded_file_pattern_p)
31137         (excluded_file_name_p): Reduce scope.
31138         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
31139         old-style declaration.
31140
31141 2009-08-20  Simon Josefsson  <simon@josefsson.org>
31142
31143         * tests/test-exclude1.sh: Handle Windows EOL.
31144         * tests/test-exclude2.sh: Likewise.
31145         * tests/test-exclude3.sh: Likewise.
31146         * tests/test-exclude4.sh: Likewise.
31147         * tests/test-exclude5.sh: Likewise.
31148         * tests/test-exclude6.sh: Likewise.
31149         * tests/test-exclude7.sh: Likewise.
31150
31151 2009-08-19  Akim Demaille  <demaille@gostai.com>
31152
31153         bootstrap: find sha1sum when named gsha1sum.
31154         * bootstrap (find_tool): New.
31155         ($SHA1SUM): New.
31156         Use it.
31157
31158 2009-08-20  Jim Meyering  <meyering@redhat.com>
31159
31160         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
31161         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
31162         expression that converts "." in a file name to "\." in the resulting
31163         regexp.  Start with a dummy statement, so that prior shell variable
31164         definitions are expanded portably.  Reported by Simon Josefsson.
31165
31166 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
31167
31168         Fix polling for writeability of a screen buffer.
31169         * lib/poll.c: Distinguish input and screen buffers for the
31170         Win32 implementation.
31171         * lib/select.c: Likewise.
31172
31173 2009-08-19  Eric Blake  <ebb9@byu.net>
31174
31175         popen-safer: prevent popen from clobbering std descriptors
31176         * modules/popen-safer: New file.
31177         * lib/popen-safer.c: Likewise.
31178         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
31179         * lib/stdio--.h (popen): Provide override.
31180         * lib/stdio-safer.h (popen_safer): Provide declaration.
31181         * tests/test-popen.c (includes): Partially test this.
31182         * modules/popen-safer-tests: New file, for more tests.
31183         * tests/test-popen-safer.c: Likewise.
31184         * MODULES.html.sh (file stream based Input/Output): Mention it.
31185
31186         tests: test some of the *-safer modules
31187         * modules/fopen-safer (Depends-on): Add fopen.
31188         * modules/fcntl-safer (Depends-on): Add fcntl.
31189         * modules/stdlib-safer (Depends-on): Add stdlib.
31190         (configure.ac): Set indicator.
31191         * modules/unistd-safer (configure.ac): Likewise.
31192         * modules/tmpfile-safer (configure.ac): Likewise.
31193         (Depends-on): Add tmpfile.
31194         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
31195         active.
31196         * tests/test-fopen.c (includes): Test safer versions when they are
31197         in use.
31198         * tests/test-open.c (includes): Likewise.
31199
31200         popen: fix cygwin 1.5 bug when stdin closed
31201         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
31202         * modules/popen: New file.
31203         * modules/popen-tests: Likewise.
31204         * tests/test-popen.c: Likewise.
31205         * m4/popen.m4: Likewise.
31206         * lib/popen.c: Likewise.
31207         * lib/stdio.in.h (popen): New declaration.
31208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
31209         * modules/stdio (Makefile.am): Likewise.
31210         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
31211
31212 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
31213
31214         maint.mk: give full control over update-copyright exclusions
31215         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
31216         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
31217         (update-copyright): Don't force inclusion of top-level
31218         ChangeLog.  Don't force exclusion of all COPYING files, but make
31219         them the default exclusion instead.
31220
31221 2009-08-16  Bruno Haible  <bruno@clisp.org>
31222
31223         Fix test failures on Solaris 10.
31224         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
31225         tests when Solaris iconv() is used.
31226         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31227         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31228         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31229         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31230         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31231
31232 2009-08-16  Bruno Haible  <bruno@clisp.org>
31233
31234         Fix test failures on Solaris 10.
31235         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
31236         'tr' program and pass it as first argument.
31237         * tests/test-pipe-filter-gi1.sh: Likewise.
31238         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
31239         program as first argument.
31240         * tests/test-pipe-filter-gi1.c (main): Likewise.
31241
31242 2009-08-16  Eric Blake  <ebb9@byu.net>
31243
31244         fpurge: fix previous commits
31245         * modules/fpurge (Makefile.am): Make replacement conditional,
31246         partially reverting 2007-04-29 change; missed in previous
31247         attempt.
31248         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
31249         is missing.
31250
31251 2009-08-16  Bruno Haible  <bruno@clisp.org>
31252
31253         Clarify fpurge's effect on the file position.
31254         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
31255         * tests/test-fpurge.c (main): Make a second pass for checking the file
31256         position.
31257
31258 2009-08-16  Bruno Haible  <bruno@clisp.org>
31259
31260         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
31261         declaration of fpurge is missing.
31262         * tests/test-fpurge.c (main): Check that the file has not more contents
31263         than expected. Close the file before removing it.
31264
31265 2009-08-15  Eric Blake  <ebb9@byu.net>
31266
31267         fpurge: don't wrap working cygwin implementation
31268         * lib/fpurge.c (fpurge): Fix comment typo.
31269         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
31270         1.7 to avoid replacement.
31271         * tests/test-fpurge.c (main): Enhance test.
31272
31273 2009-08-15  Eric Blake  <ebb9@byu.net>
31274         and Jim Meyering  <meyering@redhat.com>
31275
31276         test-update-copyright: skip if perl is insufficient
31277         * tests/test-update-copyright.sh: Failure to run maintainer tool
31278         should not cause testsuite failure on cygwin 1.5.
31279
31280 2009-08-14  Eric Blake  <ebb9@byu.net>
31281
31282         doc: mention more functions added in cygwin 1.7.0
31283         * doc/posix-headers/limits.texi (limits.h): Update for recent
31284         cygwin additions.
31285         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
31286         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31287         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
31288         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
31289         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
31290
31291 2009-08-14  Eric Blake  <ebb9@byu.net>
31292
31293         maint.mk: simplify update-copyright rule
31294         * top/maint.mk (update-copyright-local): Delete, and document how
31295         to do it in cfg.mk instead.
31296         (update-copyright-exclude-regexp): Delete, and document how to do
31297         it in .x-update-copyright instead.
31298         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31299         exclude ChangeLog.
31300
31301 2009-08-14  Bruno Haible  <bruno@clisp.org>
31302
31303         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31304
31305 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31306
31307         maint.mk: support update-copyright-env
31308         * top/maint.mk (update-copyright-env): Define place-holder.
31309         (update-copyright): Expand $(update-copyright-env) before
31310         invoking update-copyright.
31311
31312 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31313
31314         update-copyright: implement forced reformatting
31315         * build-aux/update-copyright: Implement and document
31316         UPDATE_COPYRIGHT_FORCE.
31317         * tests/test-update-copyright.sh: Test it.
31318
31319 2009-08-14  Eric Blake  <ebb9@byu.net>
31320         and Bruno Haible  <bruno@clisp.org>
31321
31322         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31323         * tests/test-locale.c: Revert previous patch related to NULL.
31324         * tests/test-stdio.c: Likewise.
31325         * tests/test-stdlib.c: Likewise.
31326         * tests/test-string.c: Likewise.
31327         * tests/test-unistd.c: Likewise.
31328         * modules/time-tests (Depends-on): Add verify.
31329         * modules/wchar-tests (Depends-on): Likewise.
31330         * tests/test-time.c: Test for NULL compliance.
31331         * tests/test-wchar.c: Likewise.
31332         * modules/locale (Depends-on): Add stddef.
31333         * modules/stdio (Depends-on): Likewise.
31334         * modules/stdlib (Depends-on): Likewise.
31335         * modules/string (Depends-on): Likewise.
31336         * modules/time (Depends-on): Likewise.
31337         * modules/unistd (Depends-on): Likewise.
31338         * modules/wchar (Depends-on): Likewise.
31339         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31340         * lib/stdlib.in.h (includes): Likewise.
31341         * lib/string.in.h (includes): Likewise.
31342         * lib/time.in.h (includes): Likewise.
31343         * lib/unistd.in.h (includes): Likewise.
31344         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31345         replaced.
31346         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31347         * m4/stddef_h.m4: New file.
31348         * modules/stddef: Likewise.
31349         * lib/stddef.in.h: Likewise.
31350         * modules/stddef-tests: Likewise.
31351         * tests/test-stddef.c: Likewise.
31352         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31353         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31354         * doc/posix-headers/locale.texi (locale.h): Likewise.
31355         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31356         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31357         * doc/posix-headers/string.texi (string.h): Likewise.
31358         * doc/posix-headers/time.texi (time.h): Likewise.
31359         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31360         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31361
31362 2009-08-14  Eric Blake  <ebb9@byu.net>
31363
31364         doc: improve git diff of texinfo files
31365         * .gitattributes: Add rule for *.texi files, with hint on how to
31366         use it.
31367         Copied from m4, and based on a report by Bruno Haible.
31368
31369 2009-08-14  Bruno Haible  <bruno@clisp.org>
31370
31371         Disable multithread support by default on Cygwin 1.5.x for real.
31372         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31373
31374 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31375
31376         update-copyright: much ado about intervals
31377         * build-aux/update-copyright: Implement and document
31378         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31379         of copyright year intervals.
31380         Also, document UPDATE_COPYRIGHT_YEAR.
31381         * tests/test-update-copyright.sh: Test it.
31382
31383         update-copyright: convert 2-digit to 4-digit years
31384         * build-aux/update-copyright: Implement and document.
31385         * tests/test-update-copyright.sh: Update.
31386
31387 2009-08-14  Jim Meyering  <meyering@redhat.com>
31388
31389         test-exclude: avoid coreutils "make check" failure
31390         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31391         just as in test-argmatch.c.
31392
31393 2009-08-13  Eric Blake  <ebb9@byu.net>
31394
31395         test-dup2: fix bad assumption
31396         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31397         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31398
31399         test-version-etc: fix CRLF portability issue
31400         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31401         recognize \r.
31402         * tests/test-argp-version-etc-1.sh: Likewise.
31403
31404         getopt: update client modules
31405         * modules/argp (Depends-on): Use getopt-gnu.
31406         * modules/git-merge-changelog (Depends-on): Likewise.
31407         * modules/long-options (Depends-on): Likewise.
31408         * modules/xstrtol (Depends-on): Likewise.
31409
31410 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31411
31412         * tests/test-version-etc.sh: Don't fail on different
31413         project/version.  Don't fail on CRLF differences.  Rewrite to use
31414         multiple -e instead of multiple sed forks, suggested by Eric Blake
31415         <ebb9@byu.net>.
31416         * tests/test-argp-version-etc-1.sh: Likewise.
31417
31418 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31419
31420         * tests/test-version-etc.sh: Don't fail on different
31421         project/version.
31422
31423 2009-08-12  Bruno Haible  <bruno@clisp.org>
31424
31425         Tests for modules 'getopt-posix', 'getopt-gnu'.
31426         * modules/getopt-posix-tests: New file.
31427         * tests/test-getopt.c: New file.
31428         * tests/test-getopt.h: New file.
31429         * tests/test-getopt_long.h: New file.
31430
31431         New modules 'getopt-posix', 'getopt-gnu'.
31432         * modules/getopt-gnu: New file, renamed from modules/getopt.
31433         * modules/getopt-posix: New file.
31434         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31435         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31436         (gl_GETOPT): Remove macro.
31437         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31438         Disable the test against BSD systems that declare optreset. Test
31439         against mingw bug. Test against lack of support of optional arguments
31440         on many platforms.
31441         * doc/glibc-headers/getopt.texi: Update module name and list of
31442         relevant platforms.
31443         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31444         'getopt-gnu' and more portability problems.
31445         * NEWS: Mention the changes.
31446
31447 2009-08-12  Bruno Haible  <bruno@clisp.org>
31448
31449         Ensure that optarg etc. get declared by <unistd.h>.
31450         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31451         AC_USE_SYSTEM_EXTENSIONS.
31452         * modules/getopt (Depends-on): Add 'extensions'.
31453
31454 2009-08-12  Bruno Haible  <bruno@clisp.org>
31455
31456         Avoid test link errors.
31457         * modules/pipe-filter-ii-tests (Makefile.am): Define
31458         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31459         * modules/pipe-filter-gi-tests (Makefile.am): Define
31460         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31461         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31462
31463 2009-08-12  Bruno Haible  <bruno@clisp.org>
31464
31465         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31466         gl_GETOPT_SUBSTITUTE before.
31467         (gl_GETOPT): Use it.
31468         * m4/argp.m4 (gl_ARGP): Update.
31469         Reported by Sergey Poznyakoff.
31470
31471         * m4/getopt.m4: Reorder macros.
31472         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31473         (gl_GETOPT_SUBSTITUTE): Remove macro.
31474
31475 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31476
31477         Minor improvement in gitlog-to-changelog
31478
31479         * build-aux/gitlog-to-changelog: New option `--format' makes
31480         output format string configurable.
31481
31482 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31483
31484         Optimize exclude: use hash tables for non-wildcard patterns.
31485
31486         * lib/exclude.c: Include hash.h and mbuiter.h
31487         (struct exclude_pattern, exclude_segment): New data types.
31488         (struct exclude): Rewrite.
31489         (fnmatch_pattern_has_wildcards): New function.
31490         (new_exclude_segment, free_exclude_segment): New functions.
31491         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31492         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31493         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31494         * modules/exclude: Depend on hash and mbuiter.
31495
31496         * modules/exclude-tests: New file.
31497         * tests/test-exclude.c: New file.
31498         * tests/test-exclude1.sh: New file.
31499         * tests/test-exclude2.sh: New file.
31500         * tests/test-exclude3.sh: New file.
31501         * tests/test-exclude4.sh: New file.
31502         * tests/test-exclude5.sh: New file.
31503         * tests/test-exclude6.sh: New file.
31504         * tests/test-exclude7.sh: New file.
31505
31506 2009-08-12  Bruno Haible  <bruno@clisp.org>
31507
31508         Ensure that getopt() gets declared by <unistd.h>.
31509         * lib/unistd.in.h: Conditionally include getopt.h.
31510         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31511         Set GNULIB_UNISTD_H_GETOPT.
31512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31513         GNULIB_UNISTD_H_GETOPT.
31514         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31515
31516 2009-08-12  Bruno Haible  <bruno@clisp.org>
31517
31518         Clarify logic.
31519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31520         gl_replace_getopt instead of GETOPT_H.
31521
31522 2009-08-12  Bruno Haible  <bruno@clisp.org>
31523
31524         * m4/getopt.m4: Add comments.
31525
31526 2009-08-12  Bruno Haible  <bruno@clisp.org>
31527
31528         Disable multithread support by default on Cygwin 1.5.x.
31529         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31530         set gl_use_threads=no if not specified otherwise.
31531
31532 2009-08-11  Bruno Haible  <bruno@clisp.org>
31533
31534         Avoid compilation error on NetBSD 5.0.
31535         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31536         * tests/test-stdio.c: Likewise.
31537         * tests/test-stdlib.c: Likewise.
31538         * tests/test-string.c: Likewise.
31539         * tests/test-unistd.c: Likewise.
31540         Reported by Greg Troxel <gdt@ir.bbn.com>
31541         at <https://savannah.gnu.org/support/?106973>.
31542
31543 2009-08-11  Bruno Haible  <bruno@clisp.org>
31544
31545         * modules/dup2-tests (Depends-on): Remove close.
31546
31547         Undo 2009-07-19 commit.
31548         * modules/acl-tests (Depends-on): Remove close.
31549         * modules/binary-io-tests (Depends-on): Likewise.
31550         * modules/closein-tests (Depends-on): Likewise.
31551         * modules/flock-tests (Depends-on): Likewise.
31552         * modules/fsync-tests (Depends-on): Likewise.
31553         * modules/lseek-tests (Depends-on): Likewise.
31554         * modules/pipe-tests (Depends-on): Likewise.
31555         * modules/posix_spawn-tests (Depends-on): Likewise.
31556         * modules/posix_spawnp-tests (Depends-on): Likewise.
31557         * modules/stat-time-tests (Depends-on): Likewise.
31558         * modules/yesno-tests (Depends-on): Likewise.
31559
31560 2009-08-10  Bruno Haible  <bruno@clisp.org>
31561
31562         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31563
31564 2009-08-10  Bruno Haible  <bruno@clisp.org>
31565
31566         Fix a gcc warning.
31567         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31568
31569 2009-08-10  Bruno Haible  <bruno@clisp.org>
31570
31571         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31572         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31573         not only the first time.
31574         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31575         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31576         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31577         is 1, not only the the first time.
31578
31579 2009-08-10  Bruno Haible  <bruno@clisp.org>
31580
31581         Make it possible to use module 'gethostname' without module 'close'.
31582         * lib/unistd.in.h (close): Evoke a link error only if
31583         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31585         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31586         * modules/unistd (Makefile.am): Substitute
31587         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31588         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31589         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31590         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31591         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31592         * modules/sys_ioctl (Makefile.am): Substitute
31593         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31594         * modules/socket (configure.ac): On native Windows, set
31595         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31596         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31597         Reported by Sam Steingold <sds@gnu.org>.
31598
31599 2009-08-10  Bruno Haible  <bruno@clisp.org>
31600
31601         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31602         * modules/ioctl (configure.ac): Likewise.
31603
31604 2009-08-10  Bruno Haible  <bruno@clisp.org>
31605
31606         Avoid collision between gnulib wrapper and libintl wrapper.
31607         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31608         already defined in intl/printf.c.
31609         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31610         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31611
31612 2009-08-09  Bruno Haible  <bruno@clisp.org>
31613
31614         Make <sys/select.h> really self-contained, also on Solaris 10.
31615         * lib/sys_select.in.h: Include <string.h>.
31616         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31617         Solaris 10 problem.
31618         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31619         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31620         Reported by Jim Meyering.
31621
31622 2009-08-09  Bruno Haible  <bruno@clisp.org>
31623
31624         Avoid warnings from 'aclocal' that are due to a use of macro name
31625         AM_XGETTEXT_OPTION that is not defined in automake.
31626         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31627         automake.
31628         * modules/error (configure.ac): Likewise.
31629         * modules/propername (configure.ac): Likewise.
31630         * modules/vasprintf (configure.ac): Likewise.
31631         * modules/verror (configure.ac): Likewise.
31632         * modules/xprintf (configure.ac): Likewise.
31633         * modules/xvasprintf (configure.ac): Likewise.
31634
31635 2009-08-08  Bruno Haible  <bruno@clisp.org>
31636
31637         Avoid compilation error in C++ mode.
31638         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31639         Reported by Sam Steingold <sds@gnu.org>.
31640
31641 2009-08-08  Bruno Haible  <bruno@clisp.org>
31642
31643         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31644         for the various Unix platforms.
31645         * doc/posix-headers/limits.texi: Update platforms list regarding
31646         HOST_NAME_MAX.
31647         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31648
31649 2009-08-07  Jim Meyering  <meyering@redhat.com>
31650
31651         selinux-at: fix typo in a comment
31652         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31653         Spotted by Paolo Bonzini.
31654
31655         selinux-at: remove redundant m4 code, add documentation
31656         * modules/selinux-at (configure.ac): Remove redundant code.
31657         LIB_SELINUX is already set via the dependent module, selinux-h.
31658         (Include): Add quotes around selinux-at.h.
31659         * lib/selinux-at.h: Add documentation.
31660         Reported by Bruno Haible in
31661         http://marc.info/?l=gnulib-bug&m=124958988300749
31662
31663 2009-08-07  Bruno Haible  <bruno@clisp.org>
31664
31665         Avoid link error on MacOS X 10.3 and 10.4.
31666         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31667         on non-ELF systems.
31668         * lib/argp-pv.c (argp_program_version): Likewise.
31669         Reported by Simon Josefsson.
31670
31671 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31672
31673         * tests/test-version-etc.sh: Use $EXEEXT.
31674
31675 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31676
31677         update-copyright: update documentation to point to maint.mk
31678         * build-aux/update-copyright: Here.
31679
31680 2009-08-06  Jim Meyering  <meyering@redhat.com>
31681
31682         maint.mk: support update-copyright-local
31683         * top/maint.mk (update-copyright-local): Define place-holder.
31684         (update-copyright): Depend on $(update-copyright-local).
31685
31686 2009-08-06  Jim Meyering  <meyering@redhat.com>
31687
31688         selinux-at: new module
31689         Initially written for coreutils, this module will soon be
31690         used by findutils, too.
31691         * MODULES.html.sh [Misc]: Add selinux-at.
31692         * lib/selinux-at.h: New file, from coreutils.
31693         * lib/selinux-at.c: Likewise.
31694         * modules/selinux-at: Likewise.
31695         (License): Change from LGPL to GPL, since it depends
31696         on the GPL'd openat module.
31697
31698         doc: update README
31699         * README: Remove references to cogito.
31700         Remove cvs-repo-updating instructions from 2007.
31701         Don't imply that CVS is better if you have limited disk space.
31702
31703 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31704
31705         update-copyright: support C-style comments
31706         * build-aux/update-copyright: Implement and document.
31707         * tests/test-update-copyright.sh: Test.
31708
31709 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31710
31711         update-copyright: support omitted "(C)"
31712         * build-aux/update-copyright: Implement and document.  Also,
31713         allow variable whitespace before "(C)".
31714         * tests/test-update-copyright.sh: Test.
31715
31716 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31717
31718         update-copyright: don't trip on non-FSF copyright statements
31719         * build-aux/update-copyright: Fix so that the first correctly
31720         formatted FSF copyright statement is recognized no matter what
31721         appears before it.  Update documentation.
31722         * tests/test-update-copyright.sh: Test that.
31723
31724 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31725
31726         update-copyright: clean up code a little
31727         * build-aux/update-copyright: Append "_re" to the name of any
31728         variable holding a regular expression.
31729         Replace "old" and "new" with "stmt" in variable names.
31730         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31731         handled correctly.
31732         Format code more consistently.
31733
31734 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31735
31736         update-copyright-tests: improve portability
31737         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31738         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31739
31740 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31741
31742         update-copyright: support @copyright{} and &copy;
31743         * build-aux/update-copyright: Implement and document.
31744         * tests/test-update-copyright.sh: Test.
31745
31746 2009-08-04  Jim Meyering  <meyering@redhat.com>
31747
31748         update-copyright-tests: correctly test EOL=\r\n handling
31749         * tests/test-update-copyright.sh: Put \r at the end of some lines
31750         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31751
31752         maint.mk: make update-copyright exclusion list more configurable
31753         * top/maint.mk (update-copyright): Default to excluding COPYING,
31754         but allow an override, in case someone does want to update that file.
31755
31756         maint.mk: don't update copyright date in COPYING
31757         * top/maint.mk (update-copyright): Exclude COPYING.
31758
31759         maint.mk: add a copyright-updating rule
31760         * top/maint.mk (update-copyright): New rule.
31761         Derived from coreutils/Makefile.am.
31762
31763         update-copyright: rename some variables
31764         * build-aux/update-copyright: Rename a few variables for clarity.
31765         Tweak syntax.  List Joel E. Denny as coauthor.
31766
31767 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31768
31769         update-copyright: fix bug for 2-digit last year and add tests
31770         * build-aux/update-copyright: Fix bug.
31771         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31772         specified.
31773         * modules/update-copyright-tests: New
31774         * tests/test-update-copyright.sh: New.
31775
31776 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31777
31778         update-copyright: handle leading tabs in line prefix
31779         * build-aux/update-copyright: Count leading tabs as 8 spaces
31780         when computing margin.  This helps with the formatting of
31781         ChangeLogs, for example.
31782         Fix documentation a little.
31783
31784 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31785
31786         update-copyright: support EOL=\r\n
31787         * build-aux/update-copyright: Implement that.
31788
31789 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31790
31791         update-copyright: automatically format copyright statements
31792         * build-aux/update-copyright: Implement that.
31793         Also, be a little more predictable and safer by always failing
31794         when the full copyright format is not perfectly recognized as an
31795         unbroken whole.  Discussed at
31796         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31797         Rewrite documentation.
31798
31799 2009-08-03  Bruno Haible  <bruno@clisp.org>
31800
31801         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31802
31803 2009-08-02  Bruno Haible  <bruno@clisp.org>
31804
31805         Tests for module 'uname'.
31806         * modules/uname-tests: New file.
31807         * tests/test-uname.c: New file.
31808
31809         New module 'uname'.
31810         * lib/uname.c: New file.
31811         * m4/uname.m4: New file.
31812         * modules/uname: New file.
31813         * doc/posix-functions/uname.texi: Mention the new module.
31814
31815 2009-08-02  Bruno Haible  <bruno@clisp.org>
31816
31817         Tests for module 'sys_utsname'.
31818         * modules/sys_utsname-tests: New file.
31819         * tests/test-sys_utsname.c: New file.
31820
31821         New module 'sys_utsname'.
31822         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31823         * m4/sys_utsname_h.m4: New file.
31824         * modules/sys_utsname: New file.
31825         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31826
31827 2009-08-02  Bruno Haible  <bruno@clisp.org>
31828
31829         Implicitly initialize the sockets library.
31830         * lib/gethostname.c: Include sockets.h.
31831         (rpl_gethostname): Invoke gl_sockets_startup.
31832         * lib/socket.c: Include sockets.h.
31833         (rpl_socket): Invoke gl_sockets_startup.
31834         * modules/gethostname (Depends-on): Add sockets.
31835         * modules/socket (Depends-on): Likewise.
31836         * tests/test-poll.c: Don't include sockets.h.
31837         (main): Don't invoke gl_sockets_startup.
31838         * tests/test-select.c: Don't include sockets.h.
31839         (main): Don't invoke gl_sockets_startup.
31840
31841 2009-08-02  Bruno Haible  <bruno@clisp.org>
31842
31843         Allow multiple calls to gl_sockets_startup.
31844         * lib/sockets.c (initialized_sockets_version): New variable.
31845         (gl_sockets_startup): Do nothing if already called for this or a higher
31846         version.
31847         (gl_sockets_cleanup): Reset initialized_sockets_version.
31848
31849 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31850
31851         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31852         different project/version.
31853
31854 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31855             Bruno Haible  <bruno@clisp.org>
31856
31857         Tests for module 'pipe-filter-gi'.
31858         * modules/pipe-filter-gi-tests: New file.
31859         * tests/test-pipe-filter-gi1.sh: New file.
31860         * tests/test-pipe-filter-gi1.c: New file.
31861         * tests/test-pipe-filter-gi2.sh: New file.
31862         * tests/test-pipe-filter-gi2-main.c: New file.
31863         * tests/test-pipe-filter-gi2-child.c: New file.
31864
31865         New module 'pipe-filter-gi'.
31866         * lib/pipe-filter-gi.c: New file.
31867         * modules/pipe-filter-gi: New file.
31868
31869 2009-08-02  Bruno Haible  <bruno@clisp.org>
31870             Paolo Bonzini  <bonzini@gnu.org>
31871
31872         Tests for module 'pipe-filter-ii'.
31873         * modules/pipe-filter-ii-tests: New file.
31874         * tests/test-pipe-filter-ii1.sh: New file.
31875         * tests/test-pipe-filter-ii1.c: New file.
31876         * tests/test-pipe-filter-ii2.sh: New file.
31877         * tests/test-pipe-filter-ii2-main.c: New file.
31878         * tests/test-pipe-filter-ii2-child.c: New file.
31879
31880         New module 'pipe-filter-ii'.
31881         * lib/pipe-filter.h: New file.
31882         * lib/pipe-filter-ii.c: New file.
31883         * lib/pipe-filter-aux.h: New file.
31884         * modules/pipe-filter-ii: New file.
31885
31886 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31887
31888         * lib/gc-libgcrypt.c: Change copyright to FSF.
31889         * lib/gc-gnulib.c: Likewise.
31890
31891 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
31892
31893         * lib/gethostname.c: Include limits.h.
31894
31895 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31896             Bruno Haible  <bruno@clisp.org>
31897
31898         Ensure HOST_NAME_MAX as part of the gethostname module.
31899         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
31900         define also HOST_NAME_MAX.
31901         * tests/test-gethostname.c: Include <limits.h>.
31902         (main): Check also HOST_NAME_MAX.
31903         * doc/posix-headers/limits.texi: Document the mingw problem.
31904
31905 2009-08-02  Bruno Haible  <bruno@clisp.org>
31906
31907         * lib/gethostname.c (gethostname): Fix handling of large len argument.
31908         Add comments.
31909
31910 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31911
31912         * lib/gethostname.c: Add Windows wrapper.
31913         * m4/gethostname.m4: Look for gethostname in -lws2_32.
31914         * modules/gethostname: Depend on sys_socket & errno, for also
31915         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
31916         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
31917
31918 2009-07-31  Jim Meyering  <meyering@redhat.com>
31919
31920         getloadavg: fix symbol name in comment
31921         * lib/getloadavg.c: Correct a typo I introduced when adding
31922         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
31923         Matt Kraai spotted the problem.
31924
31925 2009-07-29  Matt Kraai  <mkraai@beckman.com>
31926
31927         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
31928         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
31929         code also if ! defined N_NAME_POINTER.
31930         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
31931         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
31932         but the n_name member is a 12-byte array.
31933
31934 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
31935
31936         update-copyright: generalize comment handling
31937         * build-aux/update-copyright: Handle copyright statements
31938         within more comment styles.
31939         Document usage.
31940         Report any file with an external copyright holder or parse failure.
31941
31942 2009-07-29  Jim Meyering  <meyering@redhat.com>
31943
31944         mktime: correct setting of REPLACE_MKTIME
31945         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
31946
31947         update-copyright: new module
31948         * modules/update-copyright: New file.
31949         * build-aux/update-copyright: New file.
31950         * MODULES.html.sh (maint+release support): Add update-copyright.
31951
31952 2009-07-27  Bruno Haible  <bruno@clisp.org>
31953
31954         Fix compilation error when <ctime> is used and mktime is replaced.
31955         * lib/time.in.h (mktime): New declaration.
31956         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
31957         REPLACE_MKTIME instead of defining mktime in config.h.
31958         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
31959         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
31960         Reported by Ross McFarland <rwmcfa1@neces.com>.
31961
31962 2009-07-27  Bruno Haible  <bruno@clisp.org>
31963
31964         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
31965         Reported by Matt Kraai <mkraai@beckman.com>.
31966
31967 2009-07-25  Jim Meyering  <meyering@redhat.com>
31968
31969         maint.mk: avoid warnings about missing files
31970         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
31971         diagnostic when .prev-version does not exist.
31972         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
31973         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
31974         nonexistent cfg.mk.
31975         Suggestions from Simon Josefsson.
31976
31977 2009-07-25  Bruno Haible  <bruno@clisp.org>
31978
31979         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
31980         defined as macros. Needed on QNX 6.4.1.
31981         Reported by Matt Kraai <mkraai@beckman.com>.
31982
31983 2009-07-23  Jim Meyering  <meyering@redhat.com>
31984
31985         maint.mk: invoke "make dist" with a working value of XZ_OPT
31986         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
31987
31988 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
31989
31990         Make fseeko.c compile on QNX.
31991         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
31992
31993 2009-07-22  Peter Simons  <simons@cryp.to>
31994
31995         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
31996         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
31997         * lib/md4.h: Likewise.
31998         * lib/md5.h: Likewise.
31999         * lib/sha1.h: Likewise.
32000         * lib/sha256.h: Likewise.
32001         * lib/sha512.h: Likewise.
32002
32003         tests-sha1: don't assign literal string to 'char *' variable
32004         * tests/test-sha1.c (main): Declare locals with "const" to match
32005         attributes of the right hand side.
32006
32007 2009-07-21  Eric Blake  <ebb9@byu.net>
32008
32009         dup2: fix more mingw problems
32010         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
32011         fd to itself.
32012         * doc/posix-functions/dup2.texi (dup2): Document the bug.
32013         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
32014         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
32015         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
32016         care of mingw bugs.
32017
32018 2009-07-21  Jim Meyering  <meyering@redhat.com>
32019
32020         vc-list-files: avoid failure when /bin/sh is dash
32021         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
32022         On some Debian based systems, /bin/sh is a symlink to dash, and running
32023         this command would omit the "/" following each 'tests' prefix:
32024           dash -x build-aux/vc-list-files -C . tests
32025         That is because bash and dash work differently:
32026           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
32027           bash ok
32028           dash odd
32029
32030 2009-07-21  Eric Blake  <ebb9@byu.net>
32031
32032         dup2-tests: test previous patch
32033         * modules/dup2-tests: New file.
32034         * tests/test-dup2.c: Likewise.
32035         * tests/test-open.c (main): Avoid unspecified behavior.
32036         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
32037         test.
32038
32039         dup2: work around mingw and cygwin 1.5 bug
32040         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
32041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32042         * modules/unistd (Makefile.am): Substitute it.
32043         * lib/unistd.in.h (dup2): Declare the replacement.
32044         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
32045         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
32046         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
32047         * modules/execute (Depends-on): Add dup2.
32048         * modules/fseterr (Depends-on): Likewise.
32049         * modules/pipe (Depends-on): Likewise.
32050         * modules/posix_spawn-internal (Depends-on): Likewise.
32051
32052 2009-07-21  Bruno Haible  <bruno@clisp.org>
32053
32054         * modules/.gitattributes: New file.
32055
32056 2009-07-20  Bruno Haible  <bruno@clisp.org>
32057
32058         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
32059         (main): Use it.
32060
32061 2009-07-20  Eric Blake  <ebb9@byu.net>
32062
32063         test-pipe: make a bit more robust.
32064         * tests/test-pipe.c (myerr): Allow error messages regardless of
32065         what we do to stderr.
32066         (test_pipe): Rearrange to avoid deadlock.
32067         (child_main): Try a larger read, to ensure we avoided deadlock.
32068         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
32069         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
32070         if misused.
32071
32072 2009-07-19  Jim Meyering  <meyering@redhat.com>
32073
32074         fts: avoid false-positive cycle-detection
32075         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
32076         for each new command line argument.
32077
32078 2009-07-19  Bruno Haible  <bruno@clisp.org>
32079
32080         Fix build error on mingw with the modules sys_select and unistd.
32081         * modules/acl-tests (Depends-on): Add close.
32082         * modules/binary-io-tests (Depends-on): Likewise.
32083         * modules/closein-tests (Depends-on): Likewise.
32084         * modules/flock-tests (Depends-on): Likewise.
32085         * modules/fsync-tests (Depends-on): Likewise.
32086         * modules/lseek-tests (Depends-on): Likewise.
32087         * modules/pipe-tests (Depends-on): Likewise.
32088         * modules/posix_spawn-tests (Depends-on): Likewise.
32089         * modules/posix_spawnp-tests (Depends-on): Likewise.
32090         * modules/stat-time-tests (Depends-on): Likewise.
32091         * modules/yesno-tests (Depends-on): Likewise.
32092
32093 2009-07-19  Bruno Haible  <bruno@clisp.org>
32094
32095         Unify conditionals.
32096         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
32097         macros, not at the compiler macros.
32098         * lib/pipe.c: Likewise.
32099         * lib/execute.c: Likewise.
32100         * lib/spawni.c: Likewise.
32101
32102 2009-07-19  Bruno Haible  <bruno@clisp.org>
32103
32104         Fix handling of closed stdin/stdout/stderr on mingw.
32105         * lib/w32spawn.h: Include unistd.h.
32106         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
32107         file descriptor with O_NOINHERIT flag.
32108         (fd_safer_noinherit): New function, based on fd-safer.c.
32109         (dup_safer_noinherit): New function, based on dup-safer.c.
32110         (undup_safer_noinherit): New function.
32111         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
32112         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32113         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32114         instead of fd_safer.
32115         * tests/test-pipe.c: Include <windows.h>.
32116         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32117         result.
32118
32119         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
32120         from main.
32121         (test_pipe): Pass an extra argument for disambiguation.
32122         (main): Invoke parent_main or child_main.
32123
32124         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
32125         consistently.
32126
32127 2009-07-18  Eric Blake  <ebb9@byu.net>
32128
32129         test-pipe: fix mingw build
32130         * tests/test-pipe.c (main): Avoid fcntl on mingw.
32131
32132 2009-07-18  Bruno Haible  <bruno@clisp.org>
32133
32134         * modules/pipe-tests (Makefile.am): Fix typo.
32135
32136 2009-07-18  Eric Blake  <ebb9@byu.net>
32137
32138         error: fix mingw build
32139         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
32140         Reported by Bruno Haible.
32141
32142         error: avoid undefined use of stdout
32143         * lib/error.c (error, error_at_line): Check that fd 1 is open
32144         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
32145         is handling faults and the close_stdout module wants to report the
32146         detection of closed stdout as an error.
32147
32148 2009-07-17  Eric Blake  <ebb9@byu.net>
32149
32150         pipe: be robust in face of closed fds
32151         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
32152         should cause child to misbehave.
32153         * modules/pipe-tests: New module.
32154         * tests/test-pipe.c: New file.
32155         * tests/test-pipe.sh: New file.
32156         Reported by Akim Demaille.
32157
32158 2009-07-14  Bruno Haible  <bruno@clisp.org>
32159
32160         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
32161         Reported by anonymous kc.
32162
32163 2009-07-07  Jim Meyering  <meyering@redhat.com>
32164
32165         maint.mk: don't look for translatable strings in *.m4 or *.mk
32166         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
32167         when searching for translatable strings.
32168
32169 2009-07-05  Jim Meyering  <meyering@redhat.com>
32170
32171         remove superfluous parentheses in STREQ definition
32172         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
32173         * lib/getugroups.c (STREQ): Likewise.
32174         * lib/fnmatch.c (STREQ): Likewise.
32175         Spotted by Bruno Haible.
32176
32177 2009-07-04  Jim Meyering  <meyering@redhat.com>
32178
32179         argv-iter: new module
32180         * MODULES.html.sh: Add argv-iter.
32181         * lib/argv-iter.c, lib/argv-iter.h: New files.
32182         * modules/argv-iter: New file.
32183         * modules/argv-iter-tests: New file.
32184         * tests/test-argv-iter.c: Test it.
32185
32186 2009-07-04  Bruno Haible  <bruno@clisp.org>
32187
32188         Fix assertion.
32189         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
32190         contains more exact copies of a given entry than file2, leave the extra
32191         copies unpaired rather than aborting.
32192         Reported by Eric Blake.
32193
32194 2009-07-02  Bruno Haible  <bruno@clisp.org>
32195
32196         Speedup git-merge-changelog for git cherry-pick.
32197         * lib/git-merge-changelog.c (struct entries_mapping): New type.
32198         (entries_mapping_get): New function, extracted from compute_mapping.
32199         (entries_mapping_reverse_get): New function.
32200         (compute_mapping): Add a 'full' argument. Return the result in a
32201         'struct entries_mapping'.
32202         (main): Update. Access the mappings through entries_mapping_get.
32203         Reported by Eric Blake.
32204
32205 2009-07-02  Bruno Haible  <bruno@clisp.org>
32206
32207         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
32208         best_i.
32209
32210 2009-07-02  Bruno Haible  <bruno@clisp.org>
32211
32212         Speed up approximate search for matching ChangeLog entries.
32213         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
32214         argument. Call fstrcmp_bounded instead of fstrcmp.
32215         (compute_mapping, try_split_merged_entry, main): Update callers.
32216
32217 2009-07-02  Bruno Haible  <bruno@clisp.org>
32218
32219         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
32220
32221 2009-06-30  Bruno Haible  <bruno@clisp.org>
32222
32223         Reduce the number of uc_is_cased calls.
32224         * lib/unicase.h (casing_suffix_context_t): Add
32225         'first_char_except_ignorable' field.
32226         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
32227         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
32228         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
32229         Update initializer.
32230         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
32231         case-ignorable characters.
32232         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
32233         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
32234         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
32235         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
32236         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
32237
32238 2009-06-30  Bruno Haible  <bruno@clisp.org>
32239
32240         Tests for module 'unicase/ignorable'.
32241         * modules/unicase/ignorable-tests: New file.
32242         * tests/unicase/test-ignorable.c: New file, generated by
32243         gen-uni-tables.
32244
32245         Tests for module 'unicase/cased'.
32246         * modules/unicase/cased-tests: New file.
32247         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
32248         * tests/unicase/test-predicate-part1.h: New file, derived from
32249         tests/unictype/test-predicate-part1.h.
32250         * tests/unicase/test-predicate-part2.h: New file, same as
32251         tests/unictype/test-predicate-part2.h.
32252
32253         Fix evaluation of "Before C" condition of FINAL_SIGMA.
32254         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
32255         (output_casing_properties): New function.
32256         (main): Call it.
32257         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
32258         * lib/unicase/cased.c: Include unictype/bitmap.h.
32259         (uc_is_cased): Define through a bitmap lookup.
32260         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
32261         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
32262         (uc_is_case_ignorable): Define through a bitmap lookup.
32263         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
32264         lib/unictype/bitmap.h.
32265         (Depends-on): Add inline. Clean up.
32266         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
32267         lib/unictype/bitmap.h.
32268         (Depends-on): Add inline. Clean up.
32269         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
32270         recognition.
32271         * tests/unicase/test-u16-tolower.c (main): Likewise.
32272         * tests/unicase/test-u32-tolower.c (main): Likewise.
32273
32274 2009-06-30  Bruno Haible  <bruno@clisp.org>
32275
32276         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
32277         * lib/unicase/u16-casemap.c: Likewise.
32278         * lib/unicase/u32-casemap.c: Likewise.
32279
32280 2009-06-29  Bruno Haible  <bruno@clisp.org>
32281
32282         Define u32_casefold as a wrapper around u32_ct_casefold.
32283         * lib/unicase/u32-casefold.c: Update.
32284         * modules/unicase/u32-casefold (Depends-on): Add
32285         unicase/u32-ct-casefold, unicase/empty-prefix-context,
32286         unicase/empty-suffix-context. Clean up.
32287
32288         Define u16_casefold as a wrapper around u16_ct_casefold.
32289         * lib/unicase/u16-casefold.c: Update.
32290         * modules/unicase/u16-casefold (Depends-on): Add
32291         unicase/u16-ct-casefold, unicase/empty-prefix-context,
32292         unicase/empty-suffix-context. Clean up.
32293
32294         Define u8_casefold as a wrapper around u8_ct_casefold.
32295         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32296         * lib/unicase/u8-casefold.c: Update.
32297         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32298         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32299
32300         Define u32_totitle as a wrapper around u32_ct_totitle.
32301         * lib/unicase/u32-totitle.c: Update.
32302         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32303         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32304
32305         Define u16_totitle as a wrapper around u16_ct_totitle.
32306         * lib/unicase/u16-totitle.c: Update.
32307         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32308         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32309
32310         Define u8_totitle as a wrapper around u8_ct_totitle.
32311         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32312         functions.
32313         (FUNC): Delegate to U_CT_TOTITLE.
32314         * lib/unicase/u8-totitle.c: Update.
32315         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32316         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32317
32318         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32319         invocation.
32320         * modules/unicase/u32-tolower (Depends-on): Add
32321         unicase/empty-prefix-context, unicase/empty-suffix-context.
32322
32323         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32324         invocation.
32325         * modules/unicase/u16-tolower (Depends-on): Add
32326         unicase/empty-prefix-context, unicase/empty-suffix-context.
32327
32328         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32329         * modules/unicase/u8-tolower (Depends-on): Add
32330         unicase/empty-prefix-context, unicase/empty-suffix-context.
32331
32332         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32333         invocation.
32334         * modules/unicase/u32-toupper (Depends-on): Add
32335         unicase/empty-prefix-context, unicase/empty-suffix-context.
32336
32337         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32338         invocation.
32339         * modules/unicase/u16-toupper (Depends-on): Add
32340         unicase/empty-prefix-context, unicase/empty-suffix-context.
32341
32342         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32343         * modules/unicase/u8-toupper (Depends-on): Add
32344         unicase/empty-prefix-context, unicase/empty-suffix-context.
32345
32346         New module 'unicase/u32-ct-casefold'.
32347         * lib/unicase/u32-ct-casefold.c: New file.
32348         * modules/unicase/u32-ct-casefold: New file.
32349
32350         New module 'unicase/u16-ct-casefold'.
32351         * lib/unicase/u16-ct-casefold.c: New file.
32352         * modules/unicase/u16-ct-casefold: New file.
32353
32354         New module 'unicase/u8-ct-casefold'.
32355         * lib/unicase/u8-ct-casefold.c: New file.
32356         * lib/unicase/u-ct-casefold.h: New file, derived from
32357         lib/unicase/u-casefold.h.
32358         * modules/unicase/u8-ct-casefold: New file.
32359
32360         New module 'unicase/u32-ct-totitle'.
32361         * lib/unicase/u32-ct-totitle.c: New file.
32362         * modules/unicase/u32-ct-totitle: New file.
32363
32364         New module 'unicase/u16-ct-totitle'.
32365         * lib/unicase/u16-ct-totitle.c: New file.
32366         * modules/unicase/u16-ct-totitle: New file.
32367
32368         New module 'unicase/u8-ct-totitle'.
32369         * lib/unicase/u8-ct-totitle.c: New file.
32370         * lib/unicase/u-ct-totitle.h: New file, derived from
32371         lib/unicase/u-totitle.h.
32372         * modules/unicase/u8-ct-totitle: New file.
32373
32374         New module 'unicase/u32-ct-tolower'.
32375         * lib/unicase/u32-ct-tolower.c: New file.
32376         * modules/unicase/u32-ct-tolower: New file.
32377
32378         New module 'unicase/u16-ct-tolower'.
32379         * lib/unicase/u16-ct-tolower.c: New file.
32380         * modules/unicase/u16-ct-tolower: New file.
32381
32382         New module 'unicase/u8-ct-tolower'.
32383         * lib/unicase/u8-ct-tolower.c: New file.
32384         * modules/unicase/u8-ct-tolower: New file.
32385
32386         New module 'unicase/u32-ct-toupper'.
32387         * lib/unicase/u32-ct-toupper.c: New file.
32388         * modules/unicase/u32-ct-toupper: New file.
32389
32390         New module 'unicase/u16-ct-toupper'.
32391         * lib/unicase/u16-ct-toupper.c: New file.
32392         * modules/unicase/u16-ct-toupper: New file.
32393
32394         New module 'unicase/u8-ct-toupper'.
32395         * lib/unicase/u8-ct-toupper.c: New file.
32396         * modules/unicase/u8-ct-toupper: New file.
32397
32398         Add context arguments to u*_casemap functions.
32399         * lib/unicase/unicasemap.h: Include unicase.h.
32400         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32401         suffix_context arguments.
32402         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32403         functions.
32404         (FUNC): Add prefix_context and suffix_context arguments. Use
32405         uc_is_cased and uc_is_case_ignorable.
32406         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32407         * lib/unicase/u16-casemap.c: Likewise.
32408         * lib/unicase/u32-casemap.c: Likewise.
32409         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32410         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32411         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32412         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32413         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32414         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32415
32416         New module 'unicase/u32-suffix-context'.
32417         * lib/unicase/u32-suffix-context.c: New file.
32418         * modules/unicase/u32-suffix-context: New file.
32419
32420         New module 'unicase/u16-suffix-context'.
32421         * lib/unicase/u16-suffix-context.c: New file.
32422         * modules/unicase/u16-suffix-context: New file.
32423
32424         New module 'unicase/u8-suffix-context'.
32425         * lib/unicase/u8-suffix-context.c: New file.
32426         * lib/unicase/u-suffix-context.h: New file.
32427         * modules/unicase/u8-suffix-context: New file.
32428
32429         New module 'unicase/empty-suffix-context'.
32430         * lib/unicase/empty-suffix-context.c: New file.
32431         * modules/unicase/empty-suffix-context: New file.
32432
32433         New module 'unicase/u32-prefix-context'.
32434         * lib/unicase/u32-prefix-context.c: New file.
32435         * modules/unicase/u32-prefix-context: New file.
32436
32437         New module 'unicase/u16-prefix-context'.
32438         * lib/unicase/u16-prefix-context.c: New file.
32439         * modules/unicase/u16-prefix-context: New file.
32440
32441         New module 'unicase/u8-prefix-context'.
32442         * lib/unicase/u8-prefix-context.c: New file.
32443         * lib/unicase/u-prefix-context.h: New file.
32444         * lib/unicase/context.h: New file.
32445         * modules/unicase/u8-prefix-context: New file.
32446
32447         New module 'unicase/empty-prefix-context'.
32448         * lib/unicase/empty-prefix-context.c: New file.
32449         * modules/unicase/empty-prefix-context: New file.
32450
32451         New module 'unicase/ignorable'.
32452         * lib/unicase/ignorable.c: New file.
32453         * modules/unicase/ignorable: New file.
32454
32455         New module 'unicase/cased'.
32456         * lib/unicase/caseprop.h: New file.
32457         * lib/unicase/cased.c: New file.
32458         * modules/unicase/cased: New file.
32459
32460         New functions for case mapping of substrings.
32461         * lib/unicase.h (casing_prefix_context_t): New type.
32462         (unicase_empty_prefix_context): New variable.
32463         (u8_casing_prefix_context, u16_casing_prefix_context,
32464         u32_casing_prefix_context, u8_casing_prefixes_context,
32465         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32466         declarations.
32467         (casing_suffix_context_t): New type.
32468         (unicase_empty_suffix_context): New variable.
32469         (u8_casing_suffix_context, u16_casing_suffix_context,
32470         u32_casing_suffix_context, u8_casing_suffixes_context,
32471         u16_casing_suffixes_context, u32_casing_suffixes_context,
32472         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32473         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32474         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32475         declarations.
32476
32477 2009-06-28  Jim Meyering  <meyering@redhat.com>
32478
32479         boostrap: indent only with spaces
32480         * build-aux/bootstrap: Indent only with spaces, never TABs.
32481
32482         bootstrap: split long lines
32483         * build-aux/bootstrap: Keep line length < 80.
32484
32485         bootstrap: sync from coreutils
32486         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32487         just as autoreconf does.  Verify a list of prerequisite
32488         package-name,version-number pairs if defined in bootstrap.conf.
32489         Refer to README-prereq, if prerequisites are not satisfied.
32490
32491 2009-06-27  Eric Blake  <ebb9@byu.net>
32492
32493         tests: add test for bogus NULL definition
32494         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32495         * tests/test-stdlib.c: Likewise.
32496         * tests/test-string.c: Likewise.
32497         * tests/test-locale.c: Likewise.
32498         * tests/test-unistd.c: Likewise.
32499         * modules/stdio-tests (Depends-on): Add verify.
32500         * modules/stdlib-tests (Depends-on): Likewise.
32501         * modules/string-tests (Depends-on): Likewise.
32502         * modules/locale-tests (Depends-on): Likewise.
32503         * modules/unistd-tests (Depends-on): Likewise.
32504
32505 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32506
32507         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32508         self-explaining comment.
32509         * m4/selinux-selinux-h: Update serial.
32510         (gl_LIBSELINUX): New macro, adding a warning for missing development
32511         packages to code extracted from...
32512         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32513         Add warning for missing development packages here, too.
32514
32515 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32516
32517         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32518
32519 2009-06-25  Eric Blake  <ebb9@byu.net>
32520
32521         version-etc: fix regression
32522         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32523         gcc.
32524         (version_etc): Use it, to catch bugs with trailing NULL.
32525         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32526         (version_etc_va): Fix logic bug.
32527         * modules/version-etc-tests: Add test.
32528         * tests/test-version-etc.c: New file.
32529         * tests/test-version-etc.sh: Likewise.
32530
32531 2009-06-25  Sam Steingold  <sds@gnu.org>
32532
32533         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32534         mbtowc declaration.
32535
32536 2009-06-25  Eric Blake  <ebb9@byu.net>
32537
32538         fpurge: migrate into <stdio.h>
32539         * lib/fpurge.h: Delete...
32540         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32541         * lib/fpurge.c (fpurge): Change declaring header.
32542         * modules/fpurge (Files): Drop deleted file.
32543         (Depends-on): Add stdio.
32544         (configure.ac): Set witness.
32545         * modules/stdio (Makefile.am): Support fpurge macros.
32546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32547         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32548         * lib/fflush.c: Update client.
32549         * tests/test-fpurge.c: Likewise.
32550         * NEWS: Mention the change.
32551
32552 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32553
32554         * lib/argp-version-etc.c (program_authors): Add const
32555         qualifier.
32556         * lib/version-etc.c: Fix typos in the comments.
32557         * modules/argp-version-etc: Depends on version-etc.
32558
32559 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32560
32561         argp-version-etc: new module.
32562
32563         * lib/argp-version-etc.c: New file.
32564         * lib/argp-version-etc.h: New file.
32565         * modules/argp-version-etc: New file.
32566         * modules/argp-version-etc-tests: New file.
32567         * tests/test-argp-version-etc.c: New test.
32568         * tests/test-argp-version-etc-1.sh: New test.
32569
32570 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32571
32572         Provide additional interfaces and documentation for version-etc
32573         module.
32574
32575         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32576         interfaces.
32577         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32578         prototypes.
32579
32580 2009-06-24  Bruno Haible  <bruno@clisp.org>
32581
32582         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32583         HAVE_LIB${NAME} macro.
32584         Reported by Sam Steingold <sds@gnu.org>.
32585
32586 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32587
32588         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32589         needed.
32590
32591 2009-06-21  Bruno Haible  <bruno@clisp.org>
32592
32593         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32594         work.
32595         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32596         together with LIB${NAME}, LTLIB${NAME}.
32597         Reported by Sam Steingold <sds@gnu.org>.
32598
32599 2009-06-20  Jim Meyering  <meyering@redhat.com>
32600
32601         tests: make sc_require_test_exit_idiom more generic
32602         * top/maint.mk (Exit_witness_file): New overridable variable.
32603         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32604         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32605
32606 2009-06-19  Jim Meyering  <meyering@redhat.com>
32607
32608         hash: reverse order of src/dst parameters in an internal interface
32609         * lib/hash.c (transfer_entries): Reverse order of parameters to
32610         put DST before SRC.  Adjust callers.
32611
32612         tests: test-hash: avoid wholesale duplication
32613         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32614         Instead, use a loop and add a single conditional.
32615
32616         tests: test-hash: allow seed selection via a command line argument
32617         * tests/test-hash.c (get_seed): New function.
32618         (main): Use it.
32619
32620 2009-06-19  Eric Blake  <ebb9@byu.net>
32621
32622         hash: avoid memory leak on allocation failure
32623         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32624         failure.  Factor repeated algorithm...
32625         (transfer_entries): ...into new helper routine.
32626         (hash_delete): React to hash_rehash return value.
32627
32628         hash: reduce memory pressure in hash_rehash no-op case
32629         * lib/hash.c (next_prime): Avoid overflow.
32630         (hash_initialize): Factor bucket size computation...
32631         (compute_bucket_size): ...into new helper function.
32632         (hash_rehash): Use new function and open coding to reduce memory
32633         pressure, and avoid a memory leak in USE_OBSTACK code.
32634         Reported by Jim Meyering.
32635
32636 2009-06-18  Eric Blake  <ebb9@byu.net>
32637
32638         hash: make rotation more obvious
32639         * modules/hash (Depends-on): Add bitrotate and stdint.
32640         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32641         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32642         (SIZE_MAX): Rely on headers for definition.
32643         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32644         (raw_hasher): Use rotr_sz.
32645         Suggested by Jim Meyering.
32646
32647         hash: fix memory leak in last patch
32648         * lib/hash.c (hash_rehash): Avoid memory leak.
32649
32650         hash: avoid no-op rehashing
32651         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32652
32653         hash: provide default callback functions
32654         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32655         (hash_initialize): Use them as defaults.
32656         * tests/test-hash.c (main): Test this.
32657
32658         hash: minor optimization
32659         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32660         when possible.
32661         (hash_initialize): Document this promise.
32662         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32663         * tests/test-hash.c (hash_compare_strings): Test this.
32664
32665 2009-06-18  Bruno Haible  <bruno@clisp.org>
32666
32667         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32668         going to be replaced anyway.
32669
32670 2009-06-18  Bruno Haible  <bruno@clisp.org>
32671
32672         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32673         in one place.
32674         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32675         be replaced anyway.
32676
32677 2009-06-18  Eric Blake  <ebb9@byu.net>
32678
32679         hash: check for resize before insertion
32680         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32681         threshold before insertion, so that a pathological hash_rehash
32682         that fills every bucket can still trigger another rehash.
32683
32684 2009-06-18  Jim Meyering  <meyering@redhat.com>
32685
32686         hash-tests: add a loop around the small tests
32687         * tests/test-hash.c (main): Repeat small tests with selected
32688         small initial table sizes.
32689
32690 2009-06-17  Eric Blake  <ebb9@byu.net>
32691
32692         hash: minor cleanups
32693         * lib/hash.h (hash_entry): Make opaque, by moving...
32694         * lib/hash.c (hash_entry): ...here.
32695         (hash_insert): Clarify restrictions on what can be inserted.
32696         (hash_get_next): Clarify when it is safe to remove an element
32697         during traversal.
32698         (check_tuning): Skip verification when tuning is known safe.
32699         (hash_initialize): Clarify restrictions on tuning.
32700
32701 2009-06-17  Jim Meyering  <jim@meyering.net>
32702         and Eric Blake  <ebb9@byu.net>
32703
32704         hash-tests: new module
32705         * modules/hash-tests: New file.
32706         * tests/test-hash.c: New file.
32707
32708 2009-06-17  Eric Blake  <ebb9@byu.net>
32709
32710         strstr-simple: document new module
32711         * MODULES.html.sh: Document new module.
32712
32713         strstr, strcasestr: replace on platforms with broken memchr
32714         * modules/strstr: Split into...
32715         * modules/strstr-simple: ...new module that does not care about
32716         performance, but does care about glibc bug.
32717         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32718         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32719         if platform memchr is broken, per Debian bug 521737.
32720         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32721         memchr.
32722         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32723         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32724         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32725         * modules/mountlist (Depends-on): Add strstr-simple.
32726         * modules/gen-uni-tables (Depends-on): Likewise.
32727         * modules/argz (Depends-on): Add strstr.
32728
32729 2009-06-17  Bruno Haible  <bruno@clisp.org>
32730
32731         * modules/posix_spawn-internal (Depends-on): Add errno.
32732
32733 2009-06-17  Bruno Haible  <bruno@clisp.org>
32734
32735         Define missing ESTALE on Interix 3.5.
32736         * lib/errno.in.h (ESTALE): Assign a value if missing.
32737         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32738         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32739         missing.
32740         * doc/posix-headers/errno.texi: Mention the Interix bug.
32741         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32742
32743 2009-06-15  Eric Blake  <ebb9@byu.net>
32744
32745         memchr, memchr2: add valgrind exception
32746         * lib/memchr.valgrind: New file.
32747         * lib/memchr2.valgrind: New file.
32748         * modules/memchr (Files): Distribute valgrind file.
32749         * modules/memchr2 (Files): Likewise.
32750
32751         docs: memchr is no longer obsolete
32752         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32753         * lib/string.in.h (memchr): Simplify logic.
32754
32755 2009-06-14  Jim Meyering  <meyering@redhat.com>
32756
32757         link-follow: fix the "checking..." message to not mention trailing slash
32758         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32759         never considered trailing slashes.
32760
32761 2009-06-14  Bruno Haible  <bruno@clisp.org>
32762
32763         * m4/memchr.m4: Mention also the bug on IA-64.
32764         * doc/posix-functions/memchr.texi: Likewise.
32765
32766 2009-06-12  Eric Blake  <ebb9@byu.net>
32767
32768         memchr: detect broken x86_64 and alpha implementations
32769         * modules/memchr-tests (Depends-on): Move mmap detection...
32770         * modules/memchr (Depends-on): ...here.
32771         (configure.ac): Set indicator.
32772         * lib/string.in.h (memchr): Declare replacement.
32773         * modules/string (Makefile.am): Trigger replacement.
32774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32775         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32776         bugs.
32777         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32778         * modules/getpagesize (License): Relax license.
32779
32780 2009-06-11  Bruno Haible  <bruno@clisp.org>
32781
32782         * lib/idpriv.h: Add more references.
32783
32784 2009-06-08  Bruno Haible  <bruno@clisp.org>
32785
32786         Tests for module 'idpriv-droptemp'.
32787         * modules/idpriv-droptemp-tests: New file.
32788         * tests/test-idpriv-droptemp.sh: New file.
32789         * tests/test-idpriv-droptemp.su.sh: New file.
32790         * tests/test-idpriv-droptemp.c: New file.
32791
32792         New module 'idpriv-droptemp'.
32793         * lib/idpriv-droptemp.c: New file.
32794         * modules/idpriv-droptemp: New file.
32795
32796 2009-06-08  Bruno Haible  <bruno@clisp.org>
32797
32798         Tests for module 'idpriv-drop'.
32799         * modules/idpriv-drop-tests: New file.
32800         * tests/test-idpriv-drop.sh: New file.
32801         * tests/test-idpriv-drop.su.sh: New file.
32802         * tests/test-idpriv-drop.c: New file.
32803
32804         New module 'idpriv-drop'.
32805         * lib/idpriv.h: New file.
32806         * lib-idpriv-drop.c: New file.
32807         * m4/idpriv.m4: New file.
32808         * modules/idpriv-drop: New file.
32809
32810 2009-06-08  Bruno Haible  <bruno@clisp.org>
32811
32812         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32813         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32814         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32815         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32816         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32817         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32818         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32819
32820 2009-06-08  Eric Blake  <ebb9@byu.net>
32821
32822         test-strstr: use memory fence, when possible
32823         * tests/test-strstr.c (main): Use memory fence, in order to be
32824         more likely to trigger Debian bug 521737.
32825         * modules/strstr-tests (Files): Pull in additional files.
32826
32827         memchr: no longer obsolete, for wider field testing
32828         * modules/memchr (Status, Notice): Delete, this module is no
32829         longer obsolete.
32830         * modules/vasnprintf (Depends-on): Add memchr.
32831
32832 2009-06-07  Jim Meyering  <meyering@redhat.com>
32833
32834         hash: declare some functions with the warn_unused_result attribute
32835         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32836
32837 2009-06-07  Bruno Haible  <bruno@clisp.org>
32838
32839         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32840         Reported by Eric Blake.
32841
32842 2009-06-06  Eric Blake  <ebb9@byu.net>
32843
32844         test-alignof: fix typo with long double
32845         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32846         compiler error.
32847
32848 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32849
32850         Escape non-texinfo { and }s.
32851         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32852         markup error.
32853
32854 2009-06-04  Jim Meyering  <meyering@redhat.com>
32855
32856         gitlog-to-changelog: don't infloop on an empty commit log
32857         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32858         Reported by Boris Petersen <transacid@centerim.org>.
32859
32860 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32861
32862         version-etc: extend for packagers
32863         Add three new configure options, intended for packagers:
32864           --with-packager="packager name"
32865           --with-packager-version="packager-specific version"
32866           --with-packager-bug-reports="packager bug reporting"
32867         An example with coreutils:
32868           $ ./configure \
32869             --with-packager=Gentoo \
32870             --with-packager-bug-report=http://bugs.gentoo.org/ \
32871             --with-packager-version="patchset 1.6"
32872           $ ./src/ls --version | head -n2
32873           ls (GNU coreutils) 7.1-dirty
32874           Packaged by Gentoo (patchset 1.6)
32875         Note that the bug reporting info via --help doesn't show up because
32876         coreutils uses its own custom emit_bug_reporting_address() implementation
32877         in src/system.h.  If it didn't, it'd look like:
32878           $ ./src/ls --help | tail -n4
32879           Report bugs to <bug-coreutils@gnu.org>.
32880           Report Gentoo bugs to <http://bugs.gentoo.org/>.
32881           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
32882           General help using GNU software: <http://www.gnu.org/gethelp/>.
32883         * lib/version-etc.c: Print new information, if provided.
32884         * m4/version-etc.m4: New file.
32885         * modules/version-etc (Files): Add m4/version-etc.m4.
32886         (configure.ac): Add gl_VERSION_ETC.
32887
32888 2009-05-31  Bruno Haible  <bruno@clisp.org>
32889
32890         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
32891         and 'int64_t'.
32892         * modules/alignof-tests (Dependencies): Add stdint.
32893         Reported by Eric Blake.
32894
32895 2009-05-31  Bruno Haible  <bruno@clisp.org>
32896
32897         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
32898         restriction due to compiler bugs.
32899         Reported by Eric Blake.
32900
32901 2009-05-31  Simon Josefsson  <simon@josefsson.org>
32902             Bruno Haible  <bruno@clisp.org>
32903
32904         Fix test-alignof failure.
32905         * lib/alignof.h (alignof_slot): New macro.
32906         (alignof_type): New macro, with the same semantics as the previous
32907         'alignof'.
32908         (alignof): Alias to alignof_slot.
32909         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
32910         check that the results are usable as constant expressions.
32911
32912 2009-05-31  Bruno Haible  <bruno@clisp.org>
32913
32914         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
32915         * tests/test-memchr.c (main): Check that memchr does not read past the
32916         first occurrence of the byte.
32917         * tests/test-strstr.c (main): Update comment.
32918         Suggested by Eric Blake.
32919
32920 2009-05-30  Bruno Haible  <bruno@clisp.org>
32921
32922         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
32923         detail how to use dumpbin.
32924         Reported by David Byron <dbyron@dbyron.com>.
32925
32926 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32927
32928         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
32929
32930 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32931
32932         * m4/manywarnings.m4: Add GCC 4.4 warnings.
32933
32934 2009-05-28  Bruno Haible  <bruno@clisp.org>
32935
32936         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
32937         build-aux/ files.
32938
32939 2009-05-28  Simon Josefsson  <simon@josefsson.org>
32940
32941         * gnulib-tool (func_import): Transform license on build-aux/ files too.
32942
32943 2009-05-27  Simon Josefsson  <simon@josefsson.org>
32944
32945         * gnulib-tool (sed_transform_main_lib_file)
32946         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
32947         regexps.
32948
32949 2009-05-26  Simon Josefsson  <simon@josefsson.org>
32950
32951         * tests/test-strstr.c: Add another self-test.
32952         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
32953         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
32954
32955 2009-05-23  Bruno Haible  <bruno@clisp.org>
32956
32957         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
32958         change.
32959
32960 2009-05-21  Bruno Haible  <bruno@clisp.org>
32961
32962         Simplify use of mode_t varargs.
32963         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
32964         uses 'mode_t' or 'int'.
32965         * lib/openat.c (openat): Likewise.
32966         * lib/open-safer.c (open_safer): Likewise.
32967         * m4/mode_t.m4: New file.
32968         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
32969         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
32970         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
32971         * modules/open (Files): Add m4/mode_t.m4.
32972         * modules/openat (Files): Likewise.
32973         * modules/fcntl-safer (Files): Likewise.
32974         Suggested by Eric Blake.
32975
32976 2009-05-21  Pádraig Brady  <P@draigbrady.com>
32977
32978         * doc/glibc-functions/fallocate.texi: New file.
32979         * doc/gnulib.texi: Include it.
32980
32981 2009-05-21  Eric Blake  <ebb9@byu.net>
32982             Bruno Haible  <bruno@clisp.org>
32983
32984         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
32985         invocations.
32986         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32987
32988 2009-05-21  Eric Blake  <ebb9@byu.net>
32989             Bruno Haible  <bruno@clisp.org>
32990
32991         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
32992         include_next. Fix of 2008-11-20 commit.
32993         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
32994         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
32995         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
32996         NEXT_MATH_H.
32997         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
32998         instead of NEXT_MATH_H.
32999
33000 2009-05-21  Bruno Haible  <bruno@clisp.org>
33001
33002         Avoid redefinition warnings for SIZE_MAX.
33003         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
33004         Reported by Simon Josefsson.
33005
33006 2009-05-21  Bruno Haible  <bruno@clisp.org>
33007
33008         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
33009         AC_CACHE_VAL.
33010
33011 2009-05-20  Bruno Haible  <bruno@clisp.org>
33012
33013         Make zeroptr.h work on mingw.
33014         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
33015         mprotect.
33016         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
33017         * modules/memchr2-tests (configure.ac): Likewise.
33018         * modules/memcmp-tests (configure.ac): Likewise.
33019         * modules/memmem-tests (configure.ac): Likewise.
33020         * modules/memrchr-tests (configure.ac): Likewise.
33021         Reported by Simon Josefsson.
33022
33023 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33024
33025         * tests/test-glob.c: Include string.h for strcmp prototype.
33026
33027 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33028
33029         * modules/getdelim (Depends-on): Add explicit stdint, although it
33030         was implicitly already pulled in via realloc-posix.
33031         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
33032
33033 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33034
33035         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
33036         G. Christensen" <tgc@jupiterrise.com>.
33037         * m4/sys_socket_h.m4: Check for sa_family_t.
33038         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
33039         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
33040         * tests/test-sys_socket.c: Check that sa_family_t works.
33041
33042 2009-05-18  Eric Blake  <ebb9@byu.net>
33043
33044         maint.mk: allow gnulib_dir in VPATH build
33045         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
33046
33047 2009-05-15  Jim Meyering  <meyering@redhat.com>
33048
33049         maint.mk: Give gnulib_dir a default definition.
33050         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
33051         Thus, most packages no longer need to specify this variable in cfg.mk
33052
33053 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
33054
33055         rename.m4: fix typos that would make non-mingw cross-configure fail
33056         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
33057
33058 2009-05-13  Eric Blake  <ebb9@byu.net>
33059
33060         mmap-anon: avoid out-of-order autoconf expansion
33061         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
33062         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
33063         * modules/memchr-tests (Depends-on): Add extensions.
33064         * modules/memchr2-tests (Depends-on): Add extensions.
33065         * modules/memcmp-tests (Depends-on): Add extensions.
33066         * modules/memmem-tests (Depends-on): Add extensions.
33067         * modules/memrchr-tests (Depends-on): Add extensions.
33068
33069 2009-05-13  Bruno Haible  <bruno@clisp.org>
33070
33071         Make some tests ISO C 99 compliant.
33072         * tests/zerosize-ptr.h: New file.
33073         * tests/test-memchr.c: Include zerosize-ptr.h.
33074         (main): Use a zero-size object pointer instead of NULL.
33075         * tests/test-memchr2.c: Include zerosize-ptr.h.
33076         (main): Use a zero-size object pointer instead of NULL.
33077         * tests/test-memcmp.c: Include zerosize-ptr.h.
33078         (main): Use a zero-size object pointer instead of NULL.
33079         * tests/test-memmem.c: Include zerosize-ptr.h.
33080         (main): Use a zero-size object pointer instead of NULL.
33081         * tests/test-memrchr.c: Include zerosize-ptr.h.
33082         (main): Use a zero-size object pointer instead of NULL.
33083         * modules/memchr-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         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
33088         m4/mmap-anon.m4.
33089         (Depends-on): Add getpagesize.
33090         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33091         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
33092         m4/mmap-anon.m4.
33093         (Depends-on): Add getpagesize.
33094         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33095         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
33096         m4/mmap-anon.m4.
33097         (Depends-on): Add getpagesize.
33098         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33099         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
33100         m4/mmap-anon.m4.
33101         (Depends-on): Add getpagesize.
33102         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33103
33104 2009-05-12  Bruno Haible  <bruno@clisp.org>
33105
33106         Tests for module 'alignof'.
33107         * modules/alignof-tests: New file.
33108         * tests/test-alignof.c: New file.
33109
33110 2009-05-12  Bruno Haible  <bruno@clisp.org>
33111
33112         Fix alignof macro.
33113         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33114         vendor compilers that are always correct.
33115
33116 2009-05-12  Bruno Haible  <bruno@clisp.org>
33117
33118         Make the MAP_ANONYMOUS detection work on HP-UX 11.
33119         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
33120         not whether its fully works.
33121
33122 2009-05-12  Bruno Haible  <bruno@clisp.org>
33123
33124         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
33125
33126 2009-05-12  Jim Meyering  <meyering@redhat.com>
33127
33128         * top/maint.mk: Adjust backslash alignment.
33129
33130 2009-05-11  Simon Josefsson  <simon@josefsson.org>
33131
33132         * top/maint.mk: Make $(srcdir)/build-aux configurable.
33133
33134 2009-05-11  Eric Blake  <ebb9@byu.net>
33135
33136         argp: avoid undefined behavior
33137         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
33138         macros.
33139
33140 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33141
33142         * tests/test-vc-list-files-git.sh: Do git config of user.email and
33143         user.name to prevent git commit from complaining.
33144
33145 2009-05-10  Bruno Haible  <bruno@clisp.org>
33146
33147         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
33148         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
33149         it rewrites every file name only once.
33150         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
33151
33152 2009-05-08  Bruno Haible  <bruno@clisp.org>
33153
33154         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
33155         instead of 'max'.
33156
33157 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33158
33159         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
33160         sockaddr_storage test.
33161
33162 2009-05-07  Simon Josefsson  <simon@josefsson.org>
33163
33164         * modules/sys_socket (Makefile.am): Substitute
33165         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
33166         * m4/sys_socket_h.m4: Check for sockaddr_storage.
33167         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
33168         * tests/test-sys_socket.c: Check sockaddr_storage.
33169
33170 2009-05-08  Bruno Haible  <bruno@clisp.org>
33171
33172         New module 'alignof'.
33173         * lib/alignof.h: New file.
33174         * modules/alignof: New file.
33175
33176 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33177             Bruno Haible  <bruno@clisp.org>
33178
33179         Fix test-file-has-acl on FreeBSD.
33180         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
33181         mask is implicitly added.
33182         * tests/test-file-has-acl.c: Include <signal.h>.
33183         (main): Terminate the test after 5 seconds.
33184         * modules/acl-tests (configure.ac): Check for alarm function.
33185
33186 2009-05-04  Bruno Haible  <bruno@clisp.org>
33187
33188         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
33189         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
33190         * modules/errno (configure.ac): Drop AC_REQUIRE.
33191         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
33192         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
33193
33194 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33195
33196         * modules/glob-tests: New module.
33197         * tests/test-glob.c: Add.
33198
33199 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33200
33201         * modules/fnmatch-tests: New module.
33202         * tests/test-fnmatch.c: Add.
33203
33204 2009-05-04  Eric Blake  <ebb9@byu.net>
33205
33206         maint: make the new no-submodule-changes rule VPATH-safe
33207         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
33208
33209 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33210             Bruno Haible  <bruno@clisp.org>
33211
33212         acl: Fix infinite loop on FreeBSD.
33213         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
33214         of return value from acl_get_entry.
33215         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
33216         Likewise.
33217
33218 2009-05-03  Bruno Haible  <bruno@clisp.org>
33219
33220         * lib/acl-internal.h (acl_entries): Clarify return value.
33221         * lib/acl_entries.c (acl_entries): Likewise.
33222
33223 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33224
33225         Bug fix in acl module.
33226         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
33227
33228 2009-05-03  Bruno Haible  <bruno@clisp.org>
33229
33230         Create gperf-generated file in the source dir, not in the build dir.
33231         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
33232         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
33233         * modules/unicase/locale-language (unicase/locale-languages.h):
33234         Likewise.
33235         * modules/unicase/special-casing (unicase/special-casing-table.h):
33236         Likewise.
33237         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
33238         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
33239         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
33240         Reported by Ralf Wildenhues.
33241
33242 2009-05-03  Bruno Haible  <bruno@clisp.org>
33243
33244         * modules/fnmatch (Description, configure.ac): Taken from
33245         fnmatch-posix.
33246         * modules/fnmatch-posix: Turn into a symbolic reference to the
33247         'fnmatch' module, and deprecate.
33248         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
33249
33250 2009-05-03  Bruno Haible  <bruno@clisp.org>
33251
33252         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
33253         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
33254         Reported by Ralf Wildenhues.
33255
33256 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33257
33258         * m4/fnmatch.m4: Fix fnmatch re-define.
33259
33260 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33261
33262         priv-set: new module and tests; adapt write-any-file
33263         * lib/priv-set.c: New file.
33264         * lib/priv-set.h: New file.
33265         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
33266         * lib/write-any-file.c: Simplify by using priv-set module.
33267         * m4/priv-set.m4: New file.
33268         * modules/priv-set: New file.
33269         * modules/unlinkdir: Add dependency on priv-set module.
33270         * modules/write-any-file: Likewise.
33271
33272         Tests for module 'priv-set'.
33273         * modules/priv-set-tests: New file.
33274         * tests/test-priv-set.c: New file.
33275
33276 2009-05-03  Jim Meyering  <meyering@redhat.com>
33277             Bruno Haible  <bruno@clisp.org>
33278
33279         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
33280         use the converted UTF-8 variant of the name instead.
33281
33282 2009-05-03  Jim Meyering  <meyering@redhat.com>
33283
33284         tests: tighten some getdate tests
33285         * tests/test-getdate.c (main): Tighten tests: require equality,
33286         not just greater than.  Set TZ envvar to UTC0.
33287
33288 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33289
33290         getdate: correctly interpret "next monday" when run on a Monday
33291         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
33292         that e.g., "next tues" (when run on a tuesday) results in a date
33293         that is one week in the future, and not today's date.
33294         I.e., add a week when the wday is the same as the current one.
33295         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33296         and earlier by Martin Bernreuther and Jan Minář.
33297         * tests/test-getdate.c (main): Check that "next DAY" is always in
33298         the future and that "last DAY" is always in the past.
33299
33300 2009-05-02  Jim Meyering  <meyering@redhat.com>
33301
33302         build: ensure that a release build fails when a submodule is unclean
33303         * top/maint.mk (no-submodule-changes): New rule.
33304         (alpha beta major): Depend on it.
33305
33306 2009-05-02  Bruno Haible  <bruno@clisp.org>
33307
33308         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33309         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33310         shell variable gl_fnmatch_required to detect which variant is
33311         requested.
33312         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33313         gl_FUNC_FNMATCH_POSIX.
33314         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33315         exclude fnmatch-posix.
33316
33317 2009-05-02  Bruno Haible  <bruno@clisp.org>
33318
33319         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33320         * modules/mbsrtowcs (License): Change to LGPLv2+.
33321         * modules/strnlen1 (License): Likewise.
33322         Reported by Simon Josefsson.
33323
33324 2009-05-02  Bruno Haible  <bruno@clisp.org>
33325
33326         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33327         "cross".
33328         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33329         gnulib-tool was called with option --source-base=lib.
33330
33331 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33332
33333         Use automake *-local hooks without commands, for extensibility.
33334         * modules/localcharset (Makefile.am): Rename install-exec-local
33335         rule to install-exec-localcharset, and make it a prerequisite of
33336         install-exec-local.  Likewise, rename the uninstall-local rule to
33337         uninstall-localcharset, and make it a prerequisite of the former.
33338
33339 2009-05-01  Bruno Haible  <bruno@clisp.org>
33340
33341         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33342         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33343         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33344         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33345         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33346         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33347         m4/locale-zh.m4, m4/codeset.m4.
33348
33349         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33350         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33351         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33352         m4/locale-zh.m4.
33353
33354         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33355         REPLACE_WCRTOMB if mbstate_t must be replaced.
33356         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33357         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33358
33359 2009-05-01  Bruno Haible  <bruno@clisp.org>
33360
33361         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33362         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33363         dngettext, dcngettext, textdomain, bindtextdomain,
33364         bind_textdomain_codeset): Undefine before redefining.
33365
33366 2009-04-30  Bruno Haible  <bruno@clisp.org>
33367
33368         Fix bug introduced on 2009-04-25.
33369         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33370         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33371         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33372         is defined.
33373         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33374         is defined.
33375         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33376         is defined.
33377         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33378
33379 2009-04-28  Bruno Haible  <bruno@clisp.org>
33380
33381         Comment tweaks.
33382         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33383         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33384         * lib/unicase.h (u*_casexfrm): Likewise.
33385         Reported by Paolo Bonzini.
33386
33387 2009-04-28  Bruno Haible  <bruno@clisp.org>
33388
33389         Fix a compilation error.
33390         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33391         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33392         Reported by Jim Meyering.
33393
33394 2009-04-27  Bruno Haible  <bruno@clisp.org>
33395
33396         New module 'libunistring'.
33397         * modules/libunistring: New file.
33398         * m4/libunistring.m4: New file.
33399         * MODULES.html.sh (Unicode string functions): Add it.
33400
33401 2009-04-27  Eric Blake  <ebb9@byu.net>
33402
33403         maint.mk: allow package-specific header to provide <config.h>
33404         * top/maint.mk (sc_require_config_h): New variable.
33405         (sc_require_config_h, sc_require_config_h_first): Use it.
33406
33407 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33408
33409         * top/maint.mk (sc_avoid_if_before_free): Except
33410         useless-if-before-free script.
33411
33412 2009-04-27  Eric Blake  <ebb9@byu.net>
33413
33414         maintainer-makefile: depend on all required helper scripts
33415         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33416         useless-if-before-free.
33417         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33418         version, rather than assuming gnulib checkout is available.
33419         Reported by Simen Josefsson.
33420
33421 2009-04-26  Bruno Haible  <bruno@clisp.org>
33422
33423         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33424         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33425         "../" or "..".
33426
33427 2009-04-26  Bruno Haible  <bruno@clisp.org>
33428
33429         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33430         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33431         AC_LIB_HAVE_LINKFLAGS.
33432
33433 2009-04-26  Bruno Haible  <bruno@clisp.org>
33434
33435         Simplify calling convention of u*_conv_from_encoding.
33436         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33437         u32_conv_from_encoding): Expect a resultbuf argument and return the
33438         result directly as a pointer.
33439         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33440         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33441         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33442         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33443         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33444         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33445         Update.
33446         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33447         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33448         * lib/vasnprintf.c (VASNPRINTF): Update.
33449         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33450         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33451         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33452         * NEWS: Mention the change.
33453
33454 2009-04-26  Bruno Haible  <bruno@clisp.org>
33455
33456         Simplify calling convention of u*_conv_to_encoding.
33457         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33458         u32_conv_to_encoding): Expect a resultbuf argument and return the
33459         result directly as a pointer.
33460         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33461         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33462         freeing scaled_offsets if mem_iconveha failed.
33463         * lib/unicase/u-casexfrm.h (FUNC): Update.
33464         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33465         * lib/vasnprintf.c (VASNPRINTF): Update.
33466         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33467         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33468         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33469         * NEWS: Mention the change.
33470
33471 2009-04-26  Bruno Haible  <bruno@clisp.org>
33472
33473         Avoid test failures on AIX and OSF/1.
33474         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33475         malloc(0).
33476         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33477         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33478         Likewise.
33479         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33480         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33481         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33482         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33483         * doc/posix-functions/malloc.texi: Document the portability problem
33484         related to malloc(0).
33485
33486 2009-04-26  Bruno Haible  <bruno@clisp.org>
33487
33488         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33489         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33490         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33491
33492 2009-04-25  Bruno Haible  <bruno@clisp.org>
33493
33494         Avoid link error when creating a namespace clean library.
33495         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33496         as macro with arguments if already defined as an alias.
33497         * lib/signbitf.c (gl_signbitf): Don't undefine.
33498         * lib/signbitd.c (gl_signbitd): Don't undefine.
33499         * lib/signbitl.c (gl_signbitl): Don't undefine.
33500
33501 2009-04-25  Jim Meyering  <meyering@redhat.com>
33502
33503         vc-list-files: fix another quoting bug
33504         * build-aux/vc-list-files: Avoid sed backslash expansion
33505         of pathological directory names.
33506
33507 2009-04-25  Eric Blake  <ebb9@byu.net>
33508
33509         vc-list-files: fix shell quoting error
33510         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33511         timestamp.
33512
33513 2009-04-25  Jim Meyering  <meyering@redhat.com>
33514
33515         vc-list-files: restore lost functionality with subdir argument
33516         * build-aux/vc-list-files: When given a non-"." sub-directory
33517         argument, substitute the $dir/ prefix back onto each resulting name.
33518         Otherwise, coreutils' root_tests check would fail.
33519
33520 2009-04-24  Eric Blake  <ebb9@byu.net>
33521
33522         vc-list-files: ignore git symlinks
33523         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33524         than ls-files, to ignore git symlinks.
33525
33526         maint.mk: import improvements from m4
33527         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33528         (move_if_change): Delete unused macro.
33529         (news-date-check, vc-diff-check): Support VPATH builds.
33530         (announcement): Likewise.  Split --bootstrap-tools list...
33531         (boostrap-tools): ...into separate list, which can be overridden
33532         in cfg.mk.
33533         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33534         requiring dependency on useless-if-before-free module.
33535         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33536         Support VPATH builds.
33537
33538 2009-04-24  Jim Meyering  <meyering@redhat.com>
33539
33540         maint.mk: remove coreutils-specific rules and variables
33541         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33542         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33543         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33544
33545         maint.mk: remove obsolete rule
33546         * top/maint.mk (rel-check): Remove rule.
33547         (WGET, WGETFLAGS): Remove now-unused variables.
33548
33549 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33550
33551         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33552         consistency.
33553
33554         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33555         '$(PATH_SEPARATOR)' instead of ':'.
33556
33557 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33558
33559         * lib/getopt1.c (main): Use 'const' for static array.
33560
33561 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33562
33563         * top/maint.mk: Sync with coreutils.
33564         * NEWS: Explain incompatibilities.
33565
33566 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33567             Bruno Haible  <bruno@clisp.org>
33568
33569         Fix cross-compilation results.
33570         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33571         statement, as third argument of AC_TRY_RUN.
33572         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33573         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33574         Likewise.
33575         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33576         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33577         Likewise.
33578         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33579         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33580         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33581
33582 2009-04-20  Bruno Haible  <bruno@clisp.org>
33583
33584         Avoid test failure on mingw.
33585         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33586
33587 2009-04-20  Bruno Haible  <bruno@clisp.org>
33588
33589         Avoid compilation error on mingw.
33590         * modules/localename-tests (Depends-on): Add locale.
33591
33592 2009-04-19  Bruno Haible  <bruno@clisp.org>
33593
33594         Support for building a shared library on Windows platforms.
33595         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33596         (main): Test the presence of UNINORM_NFC here.
33597         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33598         (main): Test the presence of UNINORM_NFD here.
33599         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33600         (main): Test the presence of UNINORM_NFKC here.
33601         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33602         (main): Test the presence of UNINORM_NFKD here.
33603
33604 2009-04-19  Bruno Haible  <bruno@clisp.org>
33605
33606         Avoid a compiler warning.
33607         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33608         Change type of variable 'sequence'.
33609
33610 2009-04-19  Bruno Haible  <bruno@clisp.org>
33611
33612         * modules/configmake (Makefile.am): When the contents of configmake.h
33613         does not change, arrange to preserve its modification time.
33614
33615 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33616
33617         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33618         gettext domain.
33619
33620 2009-04-16  Jim Meyering  <meyering@redhat.com>
33621
33622         useless-if-before-free: improve conversion code
33623         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33624         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33625
33626 2009-04-14  Bruno Haible  <bruno@clisp.org>
33627
33628         * modules/fcntl (Depends-on): Add extensions.
33629         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33630
33631 2009-04-12  Ben Pfaff  <blp@gnu.org>
33632
33633         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33634         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33635
33636 2009-03-20  Ben Pfaff  <blp@gnu.org>
33637
33638         Make rename replace existing destinations on Windows.
33639         * m4/rename.m4: Add test for Mingw.
33640         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33641         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33642         * doc/posix-functions/rename.texi: Document.
33643
33644 2009-04-10  Bruno Haible  <bruno@clisp.org>
33645
33646         New include file "iconveh.h".
33647         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33648         * lib/striconveh.h: Include it.
33649         (enum iconv_ilseq_handler): Remove definition.
33650         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33651         striconveh.h.
33652         * lib/striconveha.c: Include striconveh.h.
33653         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33654         * modules/striconveh (Files): Add lib/iconveh.h.
33655         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33656         lib/striconveh.h.
33657
33658 2009-04-10  Bruno Haible  <bruno@clisp.org>
33659
33660         * lib/uniconv.h: Update comment.
33661
33662 2009-04-10  Bruno Haible  <bruno@clisp.org>
33663
33664         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33665         always.
33666         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33667         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33668         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33669         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33670         "unistring-notinline.h", so that the function gets defined always.
33671         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33672         * lib/unistr/u8-uctomb.c: Likewise.
33673         * lib/unistr/u16-mbtouc.c: Likewise.
33674         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33675         * lib/unistr/u16-uctomb.c: Likewise.
33676         * lib/unistr/u32-mbtouc.c: Likewise.
33677         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33678         * lib/unistr/u32-uctomb.c: Likewise.
33679
33680 2009-04-10  Bruno Haible  <bruno@clisp.org>
33681
33682         Mark 'utime' obsolete.
33683         * modules/utime (Status, Notice): New sections.
33684         Suggested by Jim Meyering.
33685
33686         Fix cross-compile guess for utime test.
33687         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33688         autoconf.
33689         * doc/posix-functions/utime.texi: Give more precisions.
33690         Reported by Jan <ipif@ymail.com>.
33691
33692 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33693
33694         filevercmp: correct today's change
33695         * lib/filevercmp.c: Also handle coreutils' test inputs.
33696         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33697
33698         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33699         for reporting it.
33700         * lib/filevercmp.c: Special handle for "", "." and "..".
33701         * tests/test-filevercmp.c: Enlarge the set suite.
33702
33703 2009-04-07  Jim Meyering  <meyering@redhat.com>
33704
33705         useless-if-before-free: show how to remove braced useless free, too
33706         * build-aux/useless-if-before-free: still only in a comment, though.
33707
33708 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33709
33710         maint.mk: import changes to syntax-check macros from coreutils
33711         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33712         Use them in the relevant macros.
33713
33714 2009-04-06  Bruno Haible  <bruno@clisp.org>
33715
33716         Fix unportable use of bit-fields.
33717         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33718         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33719         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33720
33721 2009-04-06  Bruno Haible  <bruno@clisp.org>
33722
33723         Avoid test failures on AIX and OSF/1.
33724         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33725         that malloc(0) = NULL.
33726         * tests/unicase/test-u8-tolower.c (check): Likewise.
33727         * tests/unicase/test-u8-totitle.c (check): Likewise.
33728         * tests/unicase/test-u8-toupper.c (check): Likewise.
33729         * tests/unicase/test-u16-casefold.c (check): Likewise.
33730         * tests/unicase/test-u16-tolower.c (check): Likewise.
33731         * tests/unicase/test-u16-totitle.c (check): Likewise.
33732         * tests/unicase/test-u16-toupper.c (check): Likewise.
33733         * tests/unicase/test-u32-casefold.c (check): Likewise.
33734         * tests/unicase/test-u32-tolower.c (check): Likewise.
33735         * tests/unicase/test-u32-totitle.c (check): Likewise.
33736         * tests/unicase/test-u32-toupper.c (check): Likewise.
33737         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33738         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33739         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33740         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33741         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33742         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33743         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33744         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33745         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33746         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33747         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33748         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33749
33750 2009-04-05  Bruno Haible  <bruno@clisp.org>
33751
33752         Work around an autoconf limitation.
33753         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33754         comment line if it would be longer than 3 KB.
33755
33756 2009-04-05  Bruno Haible  <bruno@clisp.org>
33757
33758         Avoid test failure with libiconv-1.13.
33759         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33760         of the expected test results.
33761
33762 2009-04-05  Bruno Haible  <bruno@clisp.org>
33763
33764         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33765         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33766         that it should be installed.
33767
33768 2009-04-05  Bruno Haible  <bruno@clisp.org>
33769
33770         * gnulib-tool: New option --copy-file.
33771         (func_usage): Document it.
33772         (func_dest_tmpfilename): Moved out of func_import.
33773         (func_add_file, func_update_file): New functions, extracted from
33774         func_import.
33775         (func_import): Update.
33776
33777 2009-04-05  Karl Berry  <karl@gnu.org>
33778
33779         * README: prominently mention gnulib-tool.
33780         Rearrange sections so getting the code is near the top.
33781
33782 2009-04-05  Bruno Haible  <bruno@clisp.org>
33783
33784         * lib/unicase.h: Mention u*_cmp2.
33785         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33786         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33787         * lib/unicase/ulc-casecmp.c: Likewise.
33788         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33789         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33790         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33791         unistr/u8-cmp.
33792         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33793         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33794         unistr/u16-cmp.
33795         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33796         unistr/u32-cmp.
33797
33798         * lib/uninorm.h: Mention u*_cmp2.
33799         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33800         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33801         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33802         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33803         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33804         unistr/u8-cmp.
33805         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33806         unistr/u16-cmp.
33807         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33808         unistr/u32-cmp.
33809
33810         New module 'unistr/u32-cmp2'.
33811         * lib/unistr/u32-cmp2.c: New file.
33812         * modules/unistr/u32-cmp2: New file.
33813
33814         New module 'unistr/u16-cmp2'.
33815         * lib/unistr/u16-cmp2.c: New file.
33816         * modules/unistr/u16-cmp2: New file.
33817
33818         New module 'unistr/u8-cmp2'.
33819         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33820         * lib/unistr/u8-cmp2.c: New file.
33821         * lib/unistr/u-cmp2.h: New file.
33822         * modules/unistr/u8-cmp2: New file.
33823
33824 2009-04-05  Bruno Haible  <bruno@clisp.org>
33825
33826         * lib/unictype.h (uc_property_is_valid): New macro.
33827         * tests/unictype/test-pr_byname.c (main): Use it.
33828
33829         * lib/unistr.h: Doc fixes.
33830         * lib/uniconv.h: Doc fixes.
33831         * lib/unictype.h: Doc fixes.
33832
33833 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33834
33835         Port coreutils 7.2 to Solaris 8.
33836
33837         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33838         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33839         for Solaris 8.  This is a bit of a hack, as it means it's the
33840         caller's responsibility to add -lnsl if needed, but most likely it
33841         won't be needed since only getaddrinfo uses this and getaddrinfo
33842         isn't needed on Solaris 8.
33843
33844         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33845         problem to Solaris 8 encountered with coreutils 7.2, which
33846         resulted in a message "fnmatch.c:292: warning: passing argument 4
33847         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33848         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33849
33850 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33851
33852         * m4/ld-version-script.m4: Add FIXME comment.
33853
33854 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33855
33856         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33857         SOVERSION variable.
33858
33859 2009-04-02  Bruno Haible  <bruno@clisp.org>
33860
33861         * Makefile (info, html, dvi, pdf): Combine the rules.
33862         Suggested by Jim Meyering.
33863
33864 2009-04-01  Bruno Haible  <bruno@clisp.org>
33865
33866         * Makefile (info, html, dvi, pdf): New targets.
33867         Reported by Reuben Thomas <rrt@sc3d.org>.
33868
33869 2009-04-01  Bruno Haible  <bruno@clisp.org>
33870
33871         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
33872         can be put into PATH.
33873         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
33874
33875 2009-04-01  Bruno Haible  <bruno@clisp.org>
33876
33877         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
33878
33879 2009-04-01  Bruno Haible  <bruno@clisp.org>
33880
33881         Rename module 'visibility'.
33882         * modules/lib-symbol-visibility: Renamed from modules/visibility.
33883         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
33884         * doc/gnulib.texi: Update.
33885         * MODULES.html.sh (Misc): Update.
33886         * NEWS: Mention the change.
33887
33888 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33889
33890         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
33891         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
33892         Eric Blake <ebb9@byu.net> for review.
33893         * MODULES.html.sh: Add lib-msvc-compat.
33894         * doc/gnulib.texi: Link to new section.
33895         * m4/ld-output-def.m4: New file.
33896         * doc/ld-output-def.texi: New file.
33897
33898 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33899
33900         Rename ld-version-script to lib-symbol-versions.  Suggested by
33901         Bruno Haible <bruno@clisp.org>.
33902         * modules/ld-version-script: Renamed to lib-symbol-versions.
33903         * doc/ld-version-script.texi: Fix module name.
33904         * MODULES.html.sh: Add lib-symbol-versions.
33905
33906 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33907
33908         * modules/u64-tests: New file.
33909         * tests/test-u64.c: New file.
33910
33911 2009-03-04  Simon Josefsson  <simon@josefsson.org>
33912
33913         * MODULES.html.sh: Mention u64.
33914         * modules/u64: New module.
33915         * modules/crypto/sha512: Depend on u64 module instead of providing
33916         u64.h.
33917
33918 2009-03-27  Eric Blake  <ebb9@byu.net>
33919
33920         test-strerror: make debugging EAI_SYSTEM easier
33921         * modules/getaddrinfo-tests (Depends-on): Add strerror.
33922         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
33923         failure was EAI_SYSTEM.
33924
33925 2009-03-25  Bruno Haible  <bruno@clisp.org>
33926
33927         Fix a problem with --enable-relocatable on Solaris 7.
33928         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
33929         since 2008-02-24.
33930
33931 2009-03-25  Eric Blake  <ebb9@byu.net>
33932
33933         test-sockets: avoid gcc warning
33934         * tests/test-sockets.c (main): Silence compiler warning.
33935
33936 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33937
33938         New modules nproc, pthread, contributed by Glen Lenker.
33939
33940         * MODULES.html.sh: Add pthread, nproc.
33941         * lib/nproc.c: New file.
33942         * lib/nproc.h: New file.
33943         * lib/pthread.in.h: New file.
33944         * m4/pthread.m4: New file.
33945         * modules/nproc: New file.
33946         * modules/pthread: New file.
33947
33948 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33949
33950         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
33951         New variable.
33952
33953 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
33954
33955         filevercmp: handle simple~ and numbered.~3~ backup suffixes
33956         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
33957         * tests/test-filevercmp.c: Add tests for backup suffixes.
33958
33959 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33960
33961         * modules/stdlib (Depends-on): Add stdint, needed when defining
33962         struct random_data on, for example, HP-UX 10.20.  Reported by
33963         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33964
33965 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33966
33967         * lib/readline.c (readline): Call fflush on stdout after printing
33968         prompt.
33969
33970 2009-03-20  Bruno Haible  <bruno@clisp.org>
33971
33972         Remove dependency from 'close' module to -lws2_32 on native Windows.
33973         * lib/close-hook.h: New file.
33974         * lib/close-hook.c: New file.
33975         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
33976         w32sock.h.
33977         (_gl_close_fd_maybe_socket): Remove function.
33978         (rpl_close): Invoke execute_all_close_hooks instead of
33979         _gl_close_fd_maybe_socket.
33980         * lib/sockets.c: Include close-hook.h, w32sock.h.
33981         (close_fd_maybe_socket): New function, essentially from lib/close.c.
33982         (close_sockets_hook): New variable.
33983         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
33984         (gl_sockets_cleanup): Unregister it.
33985         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
33986         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
33987         * modules/close-hook: New file.
33988         * modules/close (Files): Remove lib/w32sock.h.
33989         (Depends-on): Add close-hook.
33990         (Link): Remove section.
33991         * modules/sockets (Files): Add lib/w32sock.h.
33992         (Depends-on): Add close-hook.
33993         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
33994         invocation.
33995         * NEWS: Mention that LIB_CLOSE is gone.
33996
33997 2009-03-23  Eric Blake  <ebb9@byu.net>
33998
33999         signal-tests: test previous patch
34000         * tests/test-signal.c: New file.
34001         * modules/signal-tests: Likewise.
34002
34003         signal.h: always support 'volatile sig_atomic_t'
34004         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
34005         (gl_SIGNAL_H_DEFAULTS): Add a default.
34006         * modules/signal (Makefile.am): Substitute if needed.
34007         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
34008         users can blindly add volatile.
34009         * doc/posix-headers/signal.texi (signal.h): Document it.
34010         Reported by Matthew Woehlke.
34011
34012 2009-03-23  Jim Meyering  <meyering@redhat.com>
34013
34014         pathmax: PATH_MAX: use pathconf only when available
34015         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
34016         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
34017         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
34018         This avoids a link failure in a PSP cross-compilation environment
34019         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
34020
34021         * lib/vasnprintf.c (divide): Fix typo in comment.
34022
34023 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34024
34025         * gnulib-tool (func_filter_filelist): Fix comment.
34026
34027 2009-03-20  Bruno Haible  <bruno@clisp.org>
34028
34029         Make sockets.h self-contained.
34030         * lib/sockets.c: Include sockets.h first.
34031         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
34032
34033 2009-03-19  Eric Blake  <ebb9@byu.net>
34034
34035         doc: mention more functions added in cygwin 1.7.0
34036         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
34037         addition.
34038         * doc/posix-functions/log2f.texi: Likewise.
34039
34040 2009-03-19  Jim Meyering  <meyering@redhat.com>
34041
34042         fsusage: avoid syntax error due to statement-before-declaration
34043         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
34044         after all declarations.  Reported by Matthew Woehlke in
34045         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
34046
34047 2009-03-18  Eric Blake  <ebb9@byu.net>
34048
34049         build-aux/compile: sync from automake
34050         * build-aux/compile: New file, from automake.
34051         * config/srclist.txt: Mention build-aux/compile.
34052
34053 2009-03-17  Bruno Haible  <bruno@clisp.org>
34054
34055         * lib/git-merge-changelog.c: Fix typo in comment.
34056         Reported by Reuben Thomas <rrt@sc3d.org>.
34057
34058 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
34059
34060         * m4/regex.m4: update and improve help for
34061         --without-included-regex.
34062
34063 2009-03-17  Simon Josefsson  <simon@josefsson.org>
34064
34065         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
34066         failure on missing include files.
34067
34068 2009-03-17  Eric Blake  <ebb9@byu.net>
34069
34070         doc: mention more functions added in cygwin 1.7.0
34071         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
34072         addition.
34073         * doc/posix-functions/fwscanf.texi: Likewise.
34074         * doc/posix-functions/swprintf.texi: Likewise.
34075         * doc/posix-functions/swscanf.texi: Likewise.
34076         * doc/posix-functions/vfwprintf.texi: Likewise.
34077         * doc/posix-functions/vfwscanf.texi: Likewise.
34078         * doc/posix-functions/vswprintf.texi: Likewise.
34079         * doc/posix-functions/vswscanf.texi: Likewise.
34080         * doc/posix-functions/vwprintf.texi: Likewise.
34081         * doc/posix-functions/vwscanf.texi: Likewise.
34082         * doc/posix-functions/wcscasecmp.texi: Likewise.
34083         * doc/posix-functions/wcsdup.texi: Likewise.
34084         * doc/posix-functions/wcsftime.texi: Likewise.
34085         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34086         * doc/posix-functions/wprintf.texi: Likewise.
34087         * doc/posix-functions/wscanf.texi: Likewise.
34088         * doc/glibc-functions/gethostbyname2.texi: Likewise.
34089
34090 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34091
34092         maint.mk: really add $(AM_MAKEFLAGS)
34093         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
34094         was inadvertently omitted in the last commit.
34095         Spotted by Bruno Haible.
34096
34097         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
34098         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
34099         $(AM_MAKEFLAGS)' rather than plain `make'.
34100
34101         gnulib-tool: execute $MAKE not make
34102         * gnulib-tool: Default $MAKE to 'make'.
34103         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
34104         than make.  Initialize $MAKE in the do-autobuild script.
34105
34106         gnulib-tool: use $MAKE not make in generated files
34107         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
34108         make, in generated files.  Initialize $MAKE in the do-autobuild
34109         script.
34110
34111         * top/GNUmakefile (_have-git-version-gen): Fix typo.
34112
34113         GNUmakefile: disable parallelism only for multiple, recursive targets
34114         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34115         additions in the Makefile.
34116         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34117         by Automake.
34118         (.NOTPARALLEL): Only disable parallel builds if multiple targets
34119         are listed on the command line and at least one of them is
34120         listed in $(ALL_RECURSIVE_TARGETS).
34121
34122 2009-03-14  Bruno Haible  <bruno@clisp.org>
34123
34124         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
34125         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
34126         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
34127         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
34128         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
34129         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
34130         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
34131         unistr/u8-uctomb.
34132         * modules/unistr/u8-strchr (Depends-on): Likewise.
34133         * modules/unistr/u8-strrchr (Depends-on): Likewise.
34134         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
34135         unistr/u16-uctomb.
34136         * modules/unistr/u16-strchr (Depends-on): Likewise.
34137         * modules/unistr/u16-strrchr (Depends-on): Likewise.
34138
34139 2009-03-12  Bruno Haible  <bruno@clisp.org>
34140
34141         Work around select() bug on Interix 3.5.
34142         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
34143         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
34144         * m4/select.m4: New file.
34145         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
34146         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
34147         * modules/select (Files): Add m4/select.m4.
34148         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
34149         * modules/nanosleep (Depends-on): Add select.
34150         * modules/poll (Depends-on): Likewise.
34151         * doc/posix-functions/select.texi: Mention the Interix bug.
34152         Reported by Markus Duft <mduft@gentoo.org>.
34153
34154         * lib/select.c: Renamed from lib/winsock-select.c.
34155         * modules/select (Files): Add lib/select.c, remove
34156         lib/winsock-select.c.
34157         (configure.ac): Update.
34158
34159 2009-03-12  Jim Meyering  <meyering@redhat.com>
34160
34161         avoid gcc warnings about unused macro definitions
34162         * lib/readtokens.c (STREQ): Remove unused definition.
34163         * lib/xmalloc.c (SIZE_MAX): Likewise.
34164         * lib/openat-die.c (N_): Likewise.
34165         * lib/mountlist.c (SIZE_MAX): Remove definition.
34166         Instead, include <stdint.h>.
34167         * lib/readutmp.c: Likewise.
34168         * modules/readutmp (Depends-on): Add stdint.
34169         * modules/mountlist (Depends-on): Add stdint.
34170         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
34171
34172 2009-03-10  Bruno Haible  <bruno@clisp.org>
34173
34174         Tests for module 'mbmemcasecoll'.
34175         * modules/mbmemcasecoll-tests: New file.
34176         * tests/test-mbmemcasecoll1.sh: New file.
34177         * tests/test-mbmemcasecoll2.sh: New file.
34178         * tests/test-mbmemcasecoll3.sh: New file.
34179         * tests/test-mbmemcasecoll.c: New file.
34180
34181         New module 'mbmemcasecoll'.
34182         * lib/mbmemcasecoll.h: New file.
34183         * lib/mbmemcasecoll.c: New file.
34184         * modules/mbmemcasecoll: New file.
34185
34186         * tests/test-mbmemcasecmp.h: New file, extracted from
34187         tests/test-mbmemcasecmp.c.
34188         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
34189         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
34190         (main): Update.
34191         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34192
34193 2009-03-09  Bruno Haible  <bruno@clisp.org>
34194
34195         Tests for module 'mbmemcasecmp'.
34196         * modules/mbmemcasecmp-tests: New file.
34197         * tests/test-mbmemcasecmp1.sh: New file.
34198         * tests/test-mbmemcasecmp2.sh: New file.
34199         * tests/test-mbmemcasecmp3.sh: New file.
34200         * tests/test-mbmemcasecmp.c: New file.
34201
34202         New module 'mbmemcasecmp'.
34203         * lib/mbmemcasecmp.h: New file.
34204         * lib/mbmemcasecmp.c: New file.
34205         * modules/mbmemcasecmp: New file.
34206
34207 2009-03-09  Bruno Haible  <bruno@clisp.org>
34208
34209         Tests for module 'unicase/ulc-casecoll'.
34210         * modules/unicase/ulc-casecoll-tests: New file.
34211         * tests/unicase/test-ulc-casecoll1.sh: New file.
34212         * tests/unicase/test-ulc-casecoll2.sh: New file.
34213         * tests/unicase/test-ulc-casecoll.c: New file.
34214
34215         New module 'unicase/ulc-casecoll'.
34216         * lib/unicase.h (ulc_casecoll): New declaration.
34217         * lib/unicase/ulc-casecoll.c: New file.
34218         * modules/unicase/ulc-casecoll: New file.
34219
34220         New module 'unicase/ulc-casexfrm'.
34221         * lib/unicase.h (ulc_casexfrm): New declaration.
34222         * lib/unicase/ulc-casexfrm.c: New file.
34223         * modules/unicase/ulc-casexfrm: New file.
34224
34225 2009-03-09  Bruno Haible  <bruno@clisp.org>
34226
34227         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
34228         invocations.
34229
34230         * m4/mbscasecmp.m4: Remove file.
34231         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
34232         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
34233
34234         * m4/mbscasestr.m4: Remove file.
34235         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
34236         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
34237
34238         * m4/mbschr.m4: Remove file.
34239         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
34240         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
34241
34242         * m4/mbscspn.m4: Remove file.
34243         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
34244         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
34245
34246         * m4/mbslen.m4: Remove file.
34247         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
34248         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
34249
34250         * m4/mbsncasecmp.m4: Remove file.
34251         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
34252         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
34253
34254         * m4/mbsnlen.m4: Remove file.
34255         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
34256         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
34257
34258         * m4/mbspbrk.m4: Remove file.
34259         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
34260         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
34261
34262         * m4/mbspcasecmp.m4: Remove file.
34263         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
34264         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
34265
34266         * m4/mbsrchr.m4: Remove file.
34267         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
34268         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
34269
34270         * m4/mbssep.m4: Remove file.
34271         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
34272         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
34273
34274         * m4/mbsspn.m4: Remove file.
34275         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
34276         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
34277
34278         * m4/mbsstr.m4: Remove file.
34279         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
34280         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
34281
34282         * m4/mbstok_r.m4: Remove file.
34283         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
34284         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
34285
34286         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
34287
34288         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
34289         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
34290
34291         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
34292
34293 2009-03-08  Bruno Haible  <bruno@clisp.org>
34294
34295         Tests for module 'unicase/ulc-casecmp'.
34296         * modules/unicase/ulc-casecmp-tests: New file.
34297         * tests/unicase/test-ulc-casecmp1.sh: New file.
34298         * tests/unicase/test-ulc-casecmp2.sh: New file.
34299         * tests/unicase/test-ulc-casecmp.c: New file.
34300
34301         New module 'unicase/ulc-casecmp'.
34302         * lib/unicase.h (ulc_casecmp): New declaration.
34303         * lib/unicase/ulc-casecmp.c: New file.
34304         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34305         'const SRC_UNIT *'.
34306         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34307         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34308         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34309         * modules/unicase/ulc-casecmp: New file.
34310
34311         Tests for module 'unicase/u32-is-cased'.
34312         * modules/unicase/u32-is-cased-tests: New file.
34313         * tests/unicase/test-u32-is-cased.c: New file.
34314
34315         Tests for module 'unicase/u16-is-cased'.
34316         * modules/unicase/u16-is-cased-tests: New file.
34317         * tests/unicase/test-u16-is-cased.c: New file.
34318
34319         Tests for module 'unicase/u8-is-cased'.
34320         * modules/unicase/u8-is-cased-tests: New file.
34321         * tests/unicase/test-u8-is-cased.c: New file.
34322         * tests/unicase/test-is-cased.h: New file.
34323
34324         New module 'unicase/u32-is-cased'.
34325         * lib/unicase/u32-is-cased.c: New file.
34326         * modules/unicase/u32-is-cased: New file.
34327
34328         New module 'unicase/u16-is-cased'.
34329         * lib/unicase/u16-is-cased.c: New file.
34330         * modules/unicase/u16-is-cased: New file.
34331
34332         New module 'unicase/u8-is-cased'.
34333         * lib/unicase/u8-is-cased.c: New file.
34334         * lib/unicase/u-is-cased.h: New file.
34335         * modules/unicase/u8-is-cased: New file.
34336
34337         Tests for module 'unicase/u32-is-casefolded'.
34338         * modules/unicase/u32-is-casefolded-tests: New file.
34339         * tests/unicase/test-u32-is-casefolded.c: New file.
34340
34341         Tests for module 'unicase/u16-is-casefolded'.
34342         * modules/unicase/u16-is-casefolded-tests: New file.
34343         * tests/unicase/test-u16-is-casefolded.c: New file.
34344
34345         Tests for module 'unicase/u8-is-casefolded'.
34346         * modules/unicase/u8-is-casefolded-tests: New file.
34347         * tests/unicase/test-u8-is-casefolded.c: New file.
34348         * tests/unicase/test-is-casefolded.h: New file.
34349
34350         New module 'unicase/u32-is-casefolded'.
34351         * lib/unicase/u32-is-casefolded.c: New file.
34352         * modules/unicase/u32-is-casefolded: New file.
34353
34354         New module 'unicase/u16-is-casefolded'.
34355         * lib/unicase/u16-is-casefolded.c: New file.
34356         * modules/unicase/u16-is-casefolded: New file.
34357
34358         New module 'unicase/u8-is-casefolded'.
34359         * lib/unicase/u8-is-casefolded.c: New file.
34360         * modules/unicase/u8-is-casefolded: New file.
34361
34362         Tests for module 'unicase/u32-is-titlecase'.
34363         * modules/unicase/u32-is-titlecase-tests: New file.
34364         * tests/unicase/test-u32-is-titlecase.c: New file.
34365
34366         Tests for module 'unicase/u16-is-titlecase'.
34367         * modules/unicase/u16-is-titlecase-tests: New file.
34368         * tests/unicase/test-u16-is-titlecase.c: New file.
34369
34370         Tests for module 'unicase/u8-is-titlecase'.
34371         * modules/unicase/u8-is-titlecase-tests: New file.
34372         * tests/unicase/test-u8-is-titlecase.c: New file.
34373         * tests/unicase/test-is-titlecase.h: New file.
34374
34375         New module 'unicase/u32-is-titlecase'.
34376         * lib/unicase/u32-is-titlecase.c: New file.
34377         * modules/unicase/u32-is-titlecase: New file.
34378
34379         New module 'unicase/u16-is-titlecase'.
34380         * lib/unicase/u16-is-titlecase.c: New file.
34381         * modules/unicase/u16-is-titlecase: New file.
34382
34383         New module 'unicase/u8-is-titlecase'.
34384         * lib/unicase/u8-is-titlecase.c: New file.
34385         * modules/unicase/u8-is-titlecase: New file.
34386
34387         Tests for module 'unicase/u32-is-lowercase'.
34388         * modules/unicase/u32-is-lowercase-tests: New file.
34389         * tests/unicase/test-u32-is-lowercase.c: New file.
34390
34391         Tests for module 'unicase/u16-is-lowercase'.
34392         * modules/unicase/u16-is-lowercase-tests: New file.
34393         * tests/unicase/test-u16-is-lowercase.c: New file.
34394
34395         Tests for module 'unicase/u8-is-lowercase'.
34396         * modules/unicase/u8-is-lowercase-tests: New file.
34397         * tests/unicase/test-u8-is-lowercase.c: New file.
34398         * tests/unicase/test-is-lowercase.h: New file.
34399
34400         New module 'unicase/u32-is-lowercase'.
34401         * lib/unicase/u32-is-lowercase.c: New file.
34402         * modules/unicase/u32-is-lowercase: New file.
34403
34404         New module 'unicase/u16-is-lowercase'.
34405         * lib/unicase/u16-is-lowercase.c: New file.
34406         * modules/unicase/u16-is-lowercase: New file.
34407
34408         New module 'unicase/u8-is-lowercase'.
34409         * lib/unicase/u8-is-lowercase.c: New file.
34410         * modules/unicase/u8-is-lowercase: New file.
34411
34412         Tests for module 'unicase/u32-is-uppercase'.
34413         * modules/unicase/u32-is-uppercase-tests: New file.
34414         * tests/unicase/test-u32-is-uppercase.c: New file.
34415
34416         Tests for module 'unicase/u16-is-uppercase'.
34417         * modules/unicase/u16-is-uppercase-tests: New file.
34418         * tests/unicase/test-u16-is-uppercase.c: New file.
34419
34420         Tests for module 'unicase/u8-is-uppercase'.
34421         * modules/unicase/u8-is-uppercase-tests: New file.
34422         * tests/unicase/test-u8-is-uppercase.c: New file.
34423         * tests/unicase/test-is-uppercase.h: New file.
34424
34425         New module 'unicase/u32-is-uppercase'.
34426         * lib/unicase/u32-is-uppercase.c: New file.
34427         * modules/unicase/u32-is-uppercase: New file.
34428
34429         New module 'unicase/u16-is-uppercase'.
34430         * lib/unicase/u16-is-uppercase.c: New file.
34431         * modules/unicase/u16-is-uppercase: New file.
34432
34433         New module 'unicase/u8-is-uppercase'.
34434         * lib/unicase/u8-is-uppercase.c: New file.
34435         * modules/unicase/u8-is-uppercase: New file.
34436
34437         New module 'unicase/u32-is-invariant'.
34438         * lib/unicase/u32-is-invariant.c: New file.
34439         * modules/unicase/u32-is-invariant: New file.
34440
34441         New module 'unicase/u16-is-invariant'.
34442         * lib/unicase/u16-is-invariant.c: New file.
34443         * modules/unicase/u16-is-invariant: New file.
34444
34445         New module 'unicase/u8-is-invariant'.
34446         * lib/unicase/u8-is-invariant.c: New file.
34447         * lib/unicase/invariant.h: New file.
34448         * lib/unicase/u-is-invariant.h: New file.
34449         * modules/unicase/u8-is-invariant: New file.
34450
34451         Tests for module 'unicase/u32-casecoll'.
34452         * modules/unicase/u32-casecoll-tests: New file.
34453         * tests/unicase/test-u32-casecoll.c: New file.
34454
34455         Tests for module 'unicase/u16-casecoll'.
34456         * modules/unicase/u16-casecoll-tests: New file.
34457         * tests/unicase/test-u16-casecoll.c: New file.
34458
34459         Tests for module 'unicase/u8-casecoll'.
34460         * modules/unicase/u8-casecoll-tests: New file.
34461         * tests/unicase/test-u8-casecoll.c: New file.
34462
34463         New module 'unicase/u32-casecoll'.
34464         * lib/unicase/u32-casecoll.c: New file.
34465         * modules/unicase/u32-casecoll: New file.
34466
34467         New module 'unicase/u16-casecoll'.
34468         * lib/unicase/u16-casecoll.c: New file.
34469         * modules/unicase/u16-casecoll: New file.
34470
34471         New module 'unicase/u8-casecoll'.
34472         * lib/unicase/u8-casecoll.c: New file.
34473         * lib/unicase/u-casecoll.h: New file.
34474         * modules/unicase/u8-casecoll: New file.
34475
34476         New module 'unicase/u32-casexfrm'.
34477         * lib/unicase/u32-casexfrm.c: New file.
34478         * modules/unicase/u32-casexfrm: New file.
34479
34480         New module 'unicase/u16-casexfrm'.
34481         * lib/unicase/u16-casexfrm.c: New file.
34482         * modules/unicase/u16-casexfrm: New file.
34483
34484         New module 'unicase/u8-casexfrm'.
34485         * lib/unicase/u8-casexfrm.c: New file.
34486         * lib/unicase/u-casexfrm.h: New file.
34487         * modules/unicase/u8-casexfrm: New file.
34488
34489         Tests for module 'unicase/u32-casecmp'.
34490         * modules/unicase/u32-casecmp-tests: New file.
34491         * tests/unicase/test-u32-casecmp.c: New file.
34492
34493         Tests for module 'unicase/u16-casecmp'.
34494         * modules/unicase/u16-casecmp-tests: New file.
34495         * tests/unicase/test-u16-casecmp.c: New file.
34496
34497         Tests for module 'unicase/u8-casecmp'.
34498         * modules/unicase/u8-casecmp-tests: New file.
34499         * tests/unicase/test-u8-casecmp.c: New file.
34500         * tests/unicase/test-casecmp.h: New file.
34501
34502         New module 'unicase/u32-casecmp'.
34503         * lib/unicase/u32-casecmp.c: New file.
34504         * modules/unicase/u32-casecmp: New file.
34505
34506         New module 'unicase/u16-casecmp'.
34507         * lib/unicase/u16-casecmp.c: New file.
34508         * modules/unicase/u16-casecmp: New file.
34509
34510         New module 'unicase/u8-casecmp'.
34511         * lib/unicase/u8-casecmp.c: New file.
34512         * lib/unicase/u-casecmp.h: New file.
34513         * modules/unicase/u8-casecmp: New file.
34514
34515         Tests for module 'unicase/u32-casefold'.
34516         * modules/unicase/u32-casefold-tests: New file.
34517         * tests/unicase/test-u32-casefold.c: New file.
34518
34519         Tests for module 'unicase/u16-casefold'.
34520         * modules/unicase/u16-casefold-tests: New file.
34521         * tests/unicase/test-u16-casefold.c: New file.
34522
34523         Tests for module 'unicase/u8-casefold'.
34524         * modules/unicase/u8-casefold-tests: New file.
34525         * tests/unicase/test-u8-casefold.c: New file.
34526
34527         New module 'unicase/u32-casefold'.
34528         * lib/unicase/u32-casefold.c: New file.
34529         * modules/unicase/u32-casefold: New file.
34530
34531         New module 'unicase/u16-casefold'.
34532         * lib/unicase/u16-casefold.c: New file.
34533         * modules/unicase/u16-casefold: New file.
34534
34535         New module 'unicase/u8-casefold'.
34536         * lib/unicase/u8-casefold.c: New file.
34537         * lib/unicase/u-casefold.h: New file.
34538         * modules/unicase/u8-casefold: New file.
34539
34540         New module 'unicase/tocasefold'.
34541         * lib/unicase/casefold.h: New file.
34542         * lib/unicase/tocasefold.c: New file.
34543         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34544         * modules/unicase/tocasefold: New file.
34545
34546         Tests for module 'unicase/u32-totitle'.
34547         * modules/unicase/u32-totitle-tests: New file.
34548         * tests/unicase/test-u32-totitle.c: New file.
34549
34550         Tests for module 'unicase/u16-totitle'.
34551         * modules/unicase/u16-totitle-tests: New file.
34552         * tests/unicase/test-u16-totitle.c: New file.
34553
34554         Tests for module 'unicase/u8-totitle'.
34555         * modules/unicase/u8-totitle-tests: New file.
34556         * tests/unicase/test-u8-totitle.c: New file.
34557
34558         New module 'unicase/u32-totitle'.
34559         * lib/unicase/u32-totitle.c: New file.
34560         * modules/unicase/u32-totitle: New file.
34561
34562         New module 'unicase/u16-totitle'.
34563         * lib/unicase/u16-totitle.c: New file.
34564         * modules/unicase/u16-totitle: New file.
34565
34566         New module 'unicase/u8-totitle'.
34567         * lib/unicase/u8-totitle.c: New file.
34568         * lib/unicase/u-totitle.h: New file.
34569         * modules/unicase/u8-totitle: New file.
34570
34571         Tests for module 'unicase/u32-tolower'.
34572         * modules/unicase/u32-tolower-tests: New file.
34573         * tests/unicase/test-u32-tolower.c: New file.
34574
34575         Tests for module 'unicase/u16-tolower'.
34576         * modules/unicase/u16-tolower-tests: New file.
34577         * tests/unicase/test-u16-tolower.c: New file.
34578
34579         Tests for module 'unicase/u8-tolower'.
34580         * modules/unicase/u8-tolower-tests: New file.
34581         * tests/unicase/test-u8-tolower.c: New file.
34582
34583         New module 'unicase/u32-tolower'.
34584         * lib/unicase/u32-tolower.c: New file.
34585         * modules/unicase/u32-tolower: New file.
34586
34587         New module 'unicase/u16-tolower'.
34588         * lib/unicase/u16-tolower.c: New file.
34589         * modules/unicase/u16-tolower: New file.
34590
34591         New module 'unicase/u8-tolower'.
34592         * lib/unicase/u8-tolower.c: New file.
34593         * modules/unicase/u8-tolower: New file.
34594
34595         Tests for module 'unicase/u32-toupper'.
34596         * modules/unicase/u32-toupper-tests: New file.
34597         * tests/unicase/test-u32-toupper.c: New file.
34598
34599         Tests for module 'unicase/u16-toupper'.
34600         * modules/unicase/u16-toupper-tests: New file.
34601         * tests/unicase/test-u16-toupper.c: New file.
34602
34603         Tests for module 'unicase/u8-toupper'.
34604         * modules/unicase/u8-toupper-tests: New file.
34605         * tests/unicase/test-u8-toupper.c: New file.
34606
34607         New module 'unicase/u32-toupper'.
34608         * lib/unicase/u32-toupper.c: New file.
34609         * modules/unicase/u32-toupper: New file.
34610
34611         New module 'unicase/u16-toupper'.
34612         * lib/unicase/u16-toupper.c: New file.
34613         * modules/unicase/u16-toupper: New file.
34614
34615         New module 'unicase/u8-toupper'.
34616         * lib/unicase/u8-toupper.c: New file.
34617         * modules/unicase/u8-toupper: New file.
34618
34619         New module 'unicase/u32-casemap'.
34620         * lib/unicase/u32-casemap.c: New file.
34621         * modules/unicase/u32-casemap: New file.
34622
34623         New module 'unicase/u16-casemap'.
34624         * lib/unicase/u16-casemap.c: New file.
34625         * modules/unicase/u16-casemap: New file.
34626
34627         New module 'unicase/u8-casemap'.
34628         * lib/unicase/unicasemap.h: New file.
34629         * lib/unicase/u8-casemap.c: New file.
34630         * lib/unicase/u-casemap.h: New file.
34631         * modules/unicase/u8-casemap: New file.
34632
34633         New module 'unicase/special-casing'.
34634         * lib/unicase/special-casing.h: New file.
34635         * lib/unicase/special-casing.c: New file.
34636         * lib/unicase/special-casing-table.gperf: New file, generated by
34637         gen-uni-tables.c.
34638         * modules/unicase/special-casing: New file.
34639
34640         Tests for module 'unicase/locale-language'.
34641         * modules/unicase/locale-language-tests: New file.
34642         * tests/unicase/test-locale-language.sh: New file.
34643         * tests/unicase/test-locale-language.c: New file.
34644
34645         New module 'unicase/locale-language'.
34646         * lib/unicase/locale-language.c: New file.
34647         * lib/unicase/locale-languages.gperf: New file.
34648         * modules/unicase/locale-language: New file.
34649
34650         Generate more tables for case conversion and case folding.
34651         * lib/gen-uni-tables.c (SCC_*): New enum items.
34652         (struct special_casing_rule): New type.
34653         (casing_rules, num_casing_rules, allocated_casing_rules): New
34654         variables.
34655         (add_casing_rule, fill_casing_rules): New functions.
34656         (struct casefold_rule): New type.
34657         (casefolding_rules, num_casefolding_rules,
34658         allocated_casefolding_rules): New variables.
34659         (fill_casefolding_rules): New function.
34660         (unicode_casefold): New variable.
34661         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34662         sort_casing_rules, output_casing_rules): New functions.
34663         (main): Accept to more arguments: SpecialCasing.txt and
34664         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34665         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34666         Output mapping for casefolding.
34667
34668         * lib/unicase.h: Include stdbool.h, uninorm.h.
34669         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34670         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34671         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34672         arguments.
34673         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34674         resultp arguments.
34675         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34676         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34677         resultp arguments.
34678         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34679         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34680         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34681         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34682         declarations.
34683         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34684
34685 2009-03-08  Bruno Haible  <bruno@clisp.org>
34686
34687         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34688         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34689         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34690         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34691
34692 2009-03-07  Bruno Haible  <bruno@clisp.org>
34693
34694         Adjust u*_normcmp, u*_normcoll API.
34695         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34696         u16_normcoll, u32_normcoll): Change failure conventions.
34697         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34698         errno and return -1.
34699         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34700
34701 2009-03-07  Bruno Haible  <bruno@clisp.org>
34702
34703         Tests for module 'uninorm/u32-normcoll'.
34704         * modules/uninorm/u32-normcoll-tests: New file.
34705         * tests/uninorm/test-u32-normcoll.c: New file.
34706
34707         Tests for module 'uninorm/u16-normcoll'.
34708         * modules/uninorm/u16-normcoll-tests: New file.
34709         * tests/uninorm/test-u16-normcoll.c: New file.
34710
34711         Tests for module 'uninorm/u8-normcoll'.
34712         * modules/uninorm/u8-normcoll-tests: New file.
34713         * tests/uninorm/test-u8-normcoll.c: New file.
34714
34715 2009-03-07  Bruno Haible  <bruno@clisp.org>
34716
34717         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34718         tests/uninorm/test-u32-normcmp.c.
34719         * tests/uninorm/test-u32-normcmp.c: Include it.
34720         (test_nonascii): New function, extracted from main. Add some more
34721         tests.
34722         (main): Invoke test_ascii and test_nonascii.
34723         * modules/uninorm/u32-normcmp-tests (Files): Add
34724         tests/uninorm/test-u32-normcmp.h.
34725         (Depends-on): Remove uninorm/u32-normcmp.
34726
34727         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34728         tests/uninorm/test-u16-normcmp.c.
34729         * tests/uninorm/test-u16-normcmp.c: Include it.
34730         (test_nonascii): New function, extracted from main. Add some more
34731         tests.
34732         (main): Invoke test_ascii and test_nonascii.
34733         * modules/uninorm/u16-normcmp-tests (Files): Add
34734         tests/uninorm/test-u16-normcmp.h.
34735         (Depends-on): Remove uninorm/u16-normcmp.
34736
34737         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34738         tests/uninorm/test-u8-normcmp.c.
34739         * tests/uninorm/test-u8-normcmp.c: Include it.
34740         (test_nonascii): New function, extracted from main. Add some more
34741         tests.
34742         (main): Invoke test_ascii and test_nonascii.
34743         * modules/uninorm/u8-normcmp-tests (Files): Add
34744         tests/uninorm/test-u8-normcmp.h.
34745         (Depends-on): Remove uninorm/u8-normcmp.
34746
34747 2009-03-07  Bruno Haible  <bruno@clisp.org>
34748
34749         New module 'uninorm/u32-normcoll'.
34750         * lib/uninorm/u32-normcoll.c: New file.
34751         * modules/uninorm/u32-normcoll: New file.
34752
34753         New module 'uninorm/u16-normcoll'.
34754         * lib/uninorm/u16-normcoll.c: New file.
34755         * modules/uninorm/u16-normcoll: New file.
34756
34757         New module 'uninorm/u8-normcoll'.
34758         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34759         declarations.
34760         * lib/uninorm/u8-normcoll.c: New file.
34761         * lib/uninorm/u-normcoll.h: New file.
34762         * modules/uninorm/u8-normcoll: New file.
34763
34764         New module 'uninorm/u32-normxfrm'.
34765         * lib/uninorm/u32-normxfrm.c: New file.
34766         * modules/uninorm/u32-normxfrm: New file.
34767
34768         New module 'uninorm/u16-normxfrm'.
34769         * lib/uninorm/u16-normxfrm.c: New file.
34770         * modules/uninorm/u16-normxfrm: New file.
34771
34772         New module 'uninorm/u8-normxfrm'.
34773         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34774         declarations.
34775         * lib/uninorm/u8-normxfrm.c: New file.
34776         * lib/uninorm/u-normxfrm.h: New file.
34777         * modules/uninorm/u8-normxfrm: New file.
34778
34779 2009-03-07  Bruno Haible  <bruno@clisp.org>
34780
34781         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34782         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34783         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34784
34785 2009-03-07  Bruno Haible  <bruno@clisp.org>
34786
34787         New module 'memxfrm'.
34788         * lib/memxfrm.h: New file.
34789         * lib/memxfrm.c: New file.
34790         * modules/memxfrm: New file.
34791
34792 2009-03-07  Bruno Haible  <bruno@clisp.org>
34793
34794         New module 'memcmp2'.
34795         * lib/memcmp2.h: New file.
34796         * lib/memcmp2.c: New file.
34797         * modules/memcmp2: New file.
34798
34799 2009-03-07  Bruno Haible  <bruno@clisp.org>
34800
34801         Tests for module 'uninorm/decomposing-form'.
34802         * modules/uninorm/decomposing-form-tests: New file.
34803         * tests/uninorm/test-decomposing-form.c: New file.
34804
34805         New module 'uninorm/decomposing-form'.
34806         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34807         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34808         Add 'decomposing_variant' field.
34809         * lib/uninorm/decomposing-form.c: New file.
34810         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34811         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34812         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34813         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34814         * modules/uninorm/decomposing-form: New file.
34815         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34816         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34817
34818 2009-03-07  Bruno Haible  <bruno@clisp.org>
34819
34820         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34821         strings.
34822
34823 2009-03-06  Bruno Haible  <bruno@clisp.org>
34824
34825         Tests for module 'uninorm/u32-normcmp'.
34826         * tests/uninorm/test-u32-normcmp.c: New file.
34827         * modules/uninorm/u32-normcmp-tests: New file.
34828
34829         Tests for module 'uninorm/u16-normcmp'.
34830         * tests/uninorm/test-u16-normcmp.c: New file.
34831         * modules/uninorm/u16-normcmp-tests: New file.
34832
34833         Tests for module 'uninorm/u8-normcmp'.
34834         * tests/uninorm/test-u8-normcmp.c: New file.
34835         * modules/uninorm/u8-normcmp-tests: New file.
34836
34837         New module 'uninorm/u32-normcmp'.
34838         * lib/uninorm/u32-normcmp.c: New file.
34839         * modules/uninorm/u32-normcmp: New file.
34840
34841         New module 'uninorm/u16-normcmp'.
34842         * lib/uninorm/u16-normcmp.c: New file.
34843         * modules/uninorm/u16-normcmp: New file.
34844
34845         New module 'uninorm/u8-normcmp'.
34846         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34847         declarations.
34848         * lib/uninorm/u8-normcmp.c: New file.
34849         * lib/uninorm/u-normcmp.h: New file.
34850         * modules/uninorm/u8-normcmp: New file.
34851
34852 2009-03-06  Bruno Haible  <bruno@clisp.org>
34853
34854         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34855         Reported by Eric Blake.
34856
34857 2009-03-06  Eric Blake  <ebb9@byu.net>
34858             Bruno Haible  <bruno@clisp.org>
34859
34860         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34861         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34862         condition.
34863         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34864         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34865         condition.
34866         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34867
34868 2009-03-06  Eric Blake  <ebb9@byu.net>
34869
34870         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
34871         to avoid compiler warnings.
34872         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
34873
34874 2009-03-05  Bruno Haible  <bruno@clisp.org>
34875
34876         * tests/test-ftell.c (main): Disable test beyond end of file on
34877         FreeMiNT.
34878         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34879
34880 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
34881
34882         * lib/filevercmp.c: Move hidden files up in ordering.
34883         * tests/test-filevercmp.c: Add tests for hidden files.
34884
34885 2009-03-04  Bruno Haible  <bruno@clisp.org>
34886
34887         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
34888         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
34889         AM_CFLAGS.
34890         Reported by Simon Josefsson.
34891
34892 2009-03-03  Bruno Haible  <bruno@clisp.org>
34893
34894         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
34895         Reported by Simon Josefsson.
34896
34897         * doc/ld-version-script.texi: Update node reference.
34898
34899 2009-03-03  Bruno Haible  <bruno@clisp.org>
34900
34901         * modules/visibility (License): Change to 'unlimited'.
34902         Suggested by Simon Josefsson.
34903
34904 2009-03-03  Jim Meyering  <meyering@redhat.com>
34905
34906         unlinkdir: cannot_unlink_dir may modify process state
34907         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
34908         it's neither thread-safe nor appropriate for use in a library.
34909
34910 2009-03-03  Eric Blake  <ebb9@byu.net>
34911
34912         test-closein: silence test under Darwin
34913         * tests/test-closein.sh: Ignore stderr from cat, since we don't
34914         care if it dies from EPIPE or EBADF.
34915
34916 2009-03-03  Bruno Haible  <bruno@clisp.org>
34917
34918         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
34919         earlier.
34920         * doc/visibility.texi: Fix @node and @section.
34921
34922 2009-03-03  Simon Josefsson  <simon@josefsson.org>
34923
34924         * doc/gnulib.texi: Link to sections for ld version script and
34925         visibility.
34926         * doc/visibility.texi: Add @node and @section.
34927         * modules/ld-version-script: New module.
34928         * m4/ld-version-script.m4: New file.
34929         * doc/ld-version-script.texi: New file.
34930
34931 2009-03-02  David Lutterkort  <lutter@redhat.com>
34932
34933         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
34934         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34935
34936 2009-03-02  Bruno Haible  <bruno@clisp.org>
34937
34938         * doc/visibility.texi: Mention libtool's -export-symbols option.
34939
34940 2009-03-02  Jim Meyering  <meyering@redhat.com>
34941
34942         announce-gen: new option: --no-print-checksums
34943         * build-aux/announce-gen (usage): Describe it.
34944         (print_checksums): Print a newline here, not in the [*] footnote.
34945         (main): Honor it.
34946
34947 2009-03-01  Bruno Haible  <bruno@clisp.org>
34948
34949         Use socklen_t in the native Windows replacements prototypes.
34950         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
34951         instead of 'int'.
34952         * lib/getsockopt.c (rpl_getsockopt): Likewise.
34953         * lib/setsockopt.c (rpl_setsockopt): Likewise.
34954         * modules/getsockopt (Depends-on): Add socklen.
34955         * modules/setsockopt (Depends-on): Add socklen.
34956
34957 2009-03-01  Bruno Haible  <bruno@clisp.org>
34958
34959         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
34960         least 4.2.
34961
34962 2009-03-01  Eric Blake  <ebb9@byu.net>
34963             Bruno Haible  <bruno@clisp.org>
34964
34965         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
34966         error messages.
34967         * lib/wait-process.c (wait_subprocess): Omit error message about
34968         deadly signal sent to the child of termsigp != NULL.
34969
34970 2009-03-01  Eric Blake  <ebb9@byu.net>
34971
34972         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
34973
34974 2009-03-01  Bruno Haible  <bruno@clisp.org>
34975
34976         Avoid a gcc warning.
34977         * tests/test-sched.c (b): Make global.
34978         Reported by Eric Blake.
34979
34980 2009-01-19  Martin Lambers  <marlam@marlam.de>
34981
34982         Provide POSIX semantics for socket timeout options on W32.
34983         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
34984         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
34985         * modules/setsockopt: Depend on sys_time module for struct timeval.
34986         * modules/getsockopt: Depend on sys_time module for struct timeval.
34987
34988 2009-03-01  Simon Josefsson  <simon@josefsson.org>
34989
34990         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
34991         __USE_GNU, for consistency with netdb.in.h.
34992         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34993
34994 2009-03-01  Bruno Haible  <bruno@clisp.org>
34995
34996         More support for FreeMiNT.
34997         * lib/fseeko.c (rpl_fseeko): Complete last commit.
34998         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34999
35000 2009-03-01  Bruno Haible  <bruno@clisp.org>
35001
35002         More support for FreeMiNT.
35003         * lib/fpurge.c (fpurge): Correct last commit.
35004         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35005
35006 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35007
35008         Fix unportable awk script in vc-list-files.
35009         * build-aux/vc-list-files: In the replacement awk script, use
35010         substr with a second argument of 1, not zero.
35011         Report by Simon Josefsson.
35012
35013 2009-02-28  Bruno Haible  <bruno@clisp.org>
35014
35015         More support for FreeMiNT.
35016         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
35017         to FreeMiNT today.
35018         * lib/fwriting.c (fwriting): Likewise.
35019         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
35020
35021 2009-02-28  Bruno Haible  <bruno@clisp.org>
35022
35023         * tests/test-freadseek.c (main): Disable test beyond end of file on
35024         FreeMiNT.
35025         * tests/test-ftello.c (main): Likewise.
35026         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35027
35028 2009-02-28  Bruno Haible  <bruno@clisp.org>
35029
35030         Add tentative support for FreeMiNT.
35031         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
35032         * lib/fpurge.c (fpurge): Likewise.
35033         * lib/freadable.c (freadable): Likewise.
35034         * lib/freading.c (freading): Likewise.
35035         * lib/freadptr.c (freadptr): Likewise.
35036         * lib/freadseek.c (freadptrinc): Likewise.
35037         * lib/fseeko.c (rpl_fseeko): Likewise.
35038         * lib/fseterr.c (fseterr): Likewise.
35039         * lib/fwritable.c (fwritable): Likewise.
35040         * lib/fwriting.c (fwriting): Likewise.
35041         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
35042         Hourihane.
35043         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35044
35045 2009-02-28  Bruno Haible  <bruno@clisp.org>
35046
35047         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
35048         SIGCHLD.
35049         Reported by Jim Meyering.
35050
35051 2009-02-28  Bruno Haible  <bruno@clisp.org>
35052
35053         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
35054         Mention the results of these tests on various platforms.
35055         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
35056         order.
35057         * doc/posix-functions/printf.texi: Likewise.
35058         * doc/posix-functions/snprintf.texi: Likewise.
35059         * doc/posix-functions/sprintf.texi: Likewise.
35060         * doc/posix-functions/vfprintf.texi: Likewise.
35061         * doc/posix-functions/vprintf.texi: Likewise.
35062         * doc/posix-functions/vsnprintf.texi: Likewise.
35063         * doc/posix-functions/vsprintf.texi: Likewise.
35064         * doc/glibc-functions/obstack_printf.texi: Likewise.
35065         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
35066
35067 2009-02-28  Bruno Haible  <bruno@clisp.org>
35068
35069         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
35070         Reported by Loïc Minier <lool@dooz.org>.
35071
35072 2009-02-27  Bruno Haible  <bruno@clisp.org>
35073
35074         * gnulib-tool (func_import): Make the sed expression used to create the
35075         sed script for updating the .gitignore file POSIX compliant.
35076         Reported by Eric Blake.
35077
35078 2009-02-27  Bruno Haible  <bruno@clisp.org>
35079
35080         * gnulib-tool (sed): Don't alias as "sed --posix".
35081         Reported by Eric Blake.
35082
35083 2009-02-27  Bruno Haible  <bruno@clisp.org>
35084
35085         Avoid test link errors.
35086         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
35087         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
35088         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
35089         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
35090         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35091
35092 2009-02-27  Bruno Haible  <bruno@clisp.org>
35093
35094         Avoid spurious "(cached)" in configure output.
35095         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
35096         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
35097         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35098         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35099         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35100         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
35101         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35102         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
35103         Reported by Eric Blake.
35104
35105 2009-02-27  Eric Blake  <ebb9@byu.net>
35106
35107         printf: fix regression in previous patch
35108         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
35109
35110 2009-02-27  Bruno Haible  <bruno@clisp.org>
35111
35112         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35113         value.
35114         * lib/stdint.in.h: Likewise.
35115         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35116
35117 2009-02-27  Eric Blake  <ebb9@byu.net>
35118
35119         doc: mention more functions added in cygwin 1.7.0
35120         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
35121         addition.
35122         * doc/posix-functions/open_wmemstream.texi: Likewise.
35123         * doc/posix-functions/wcsnlen.texi: Likewise.
35124         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35125         * doc/posix-functions/wcstod.texi: Likewise.
35126         * doc/posix-functions/wcstof.texi: Likewise.
35127         * doc/posix-functions/wcstoimax.texi: Likewise.
35128         * doc/posix-functions/wcstok.texi: Likewise.
35129         * doc/posix-functions/wcstoumax.texi: Likewise.
35130
35131         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
35132         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
35133         * doc/posix-functions/fprintf.texi: Update.
35134         * doc/posix-functions/printf.texi: Update.
35135         * doc/posix-functions/snprintf.texi: Update.
35136         * doc/posix-functions/sprintf.texi: Update.
35137         * doc/posix-functions/vfprintf.texi: Update.
35138         * doc/posix-functions/vprintf.texi: Update.
35139         * doc/posix-functions/vsnprintf.texi: Update.
35140         * doc/posix-functions/vsprintf.texi: Update.
35141         * doc/glibc-functions/obstack_printf.texi: Update.
35142         * doc/glibc-functions/obstack_vprintf.texi: Update.
35143
35144 2009-02-26  Eric Blake  <ebb9@byu.net>
35145
35146         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
35147         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
35148         compilation bug by using runtime conversion.
35149         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35150         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
35151         * modules/ceill-tests (Files): Use nan.h.
35152         * modules/floorl-tests (Files): Likewise.
35153         * modules/frexpl-tests (Files): Likewise.
35154         * modules/isnanl-tests (Files): Likewise.
35155         * modules/ldexpl-tests (Files): Likewise.
35156         * modules/roundl-tests (Files): Likewise.
35157         * modules/truncl-tests (Files): Likewise.
35158         * tests/test-ceill.c (main): Use a working NaN.
35159         * tests/test-floorl.c (main): Likewise.
35160         * tests/test-frexpl.c (main): Likewise.
35161         * tests/test-isnan.c (test_long_double): Likewise.
35162         * tests/test-isnanl.h (main): Likewise.
35163         * tests/test-ldexpl.h (main): Likewise.
35164         * tests/test-roundl.h (main): Likewise.
35165         * tests/test-truncl.h (main): Likewise.
35166         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
35167
35168 2009-02-26  Eric Blake  <ebb9@byu.net>
35169             Bruno Haible  <bruno@clisp.org>
35170
35171         Work around a *printf bug with %ls on Solaris.
35172         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
35173         precision is specified, sprintf stops converting the wide string
35174         argument when the number of bytes that have been produced by this
35175         conversion equals or exceeds the precision.
35176         * doc/posix-functions/fprintf.texi: Update.
35177         * doc/posix-functions/printf.texi: Update.
35178         * doc/posix-functions/snprintf.texi: Update.
35179         * doc/posix-functions/sprintf.texi: Update.
35180         * doc/posix-functions/vfprintf.texi: Update.
35181         * doc/posix-functions/vprintf.texi: Update.
35182         * doc/posix-functions/vsnprintf.texi: Update.
35183         * doc/posix-functions/vsprintf.texi: Update.
35184         * doc/glibc-functions/obstack_printf.texi: Update.
35185         * doc/glibc-functions/obstack_vprintf.texi: Update.
35186
35187 2009-02-26  Eric Blake  <ebb9@byu.net>
35188
35189         stdlib: favor compiler check of random.h
35190         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
35191         to avoid an ObjC random.h installed by Swarm.
35192
35193 2009-02-26  Bruno Haible  <bruno@clisp.org>
35194
35195         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
35196         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
35197         Reported by Gary V. Vaughan <gary@gnu.org>.
35198
35199 2009-02-26  Bruno Haible  <bruno@clisp.org>
35200
35201         Fix *printf behaviour regarding the %ls directive.
35202         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
35203         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
35204         NEED_PRINTF_DIRECTIVE_LS.
35205         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
35206         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35207         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35208         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
35209         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
35210         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
35211         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35213         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35214         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35216         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
35217         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35219         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35220         * doc/posix-functions/fprintf.texi: Update.
35221         * doc/posix-functions/printf.texi: Update.
35222         * doc/posix-functions/snprintf.texi: Update.
35223         * doc/posix-functions/sprintf.texi: Update.
35224         * doc/posix-functions/vfprintf.texi: Update.
35225         * doc/posix-functions/vprintf.texi: Update.
35226         * doc/posix-functions/vsnprintf.texi: Update.
35227         * doc/posix-functions/vsprintf.texi: Update.
35228         * doc/glibc-functions/obstack_printf.texi: Update.
35229         * doc/glibc-functions/obstack_vprintf.texi: Update.
35230         Reported by Eric Blake.
35231
35232 2009-02-25  Bruno Haible  <bruno@clisp.org>
35233
35234         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
35235         with known value.
35236         Reported by Gary V. Vaughan <gary@gnu.org>.
35237
35238 2009-02-25  Bruno Haible  <bruno@clisp.org>
35239
35240         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
35241         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
35242         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
35243         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
35244         Reported by Gary V. Vaughan <gary@gnu.org>.
35245
35246 2009-02-25  Bruno Haible  <bruno@clisp.org>
35247
35248         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
35249         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
35250         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
35251         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
35252         Reported by Gary V. Vaughan <gary@gnu.org>.
35253
35254 2009-02-25  Eric Blake  <ebb9@byu.net>
35255
35256         tests: skip fseek/ftell tests if ungetc is broken
35257         * m4/ungetc.m4: New file.
35258         * modules/fseek-tests: Split test, so ungetc dependency is
35259         separate from rest of test.
35260         * modules/fseeko-tests: Likewise.
35261         * modules/ftell-tests: Likewise.
35262         * modules/ftello-tests: Likewise.
35263         * tests/test-fseek.c (main): Isolate ungetc dependency.
35264         * tests/test-fseeko.c (main): Likewise.
35265         * tests/test-ftell.c (main): Likewise.
35266         * tests/test-ftello.c (main): Likewise.
35267         * tests/test-fseek2.sh: New file.
35268         * tests/test-fseeko2.sh: Likewise.
35269         * tests/test-ftell2.sh: Likewise.
35270         * tests/test-ftello2.sh: Likewise.
35271
35272 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
35273
35274         test-getaddrinfo: fix usage of skip return code 77
35275         * tests/test-gettaddrinfo.c: Return skip code 77 only
35276         for first occurance of skip (4x77 is not 77)
35277
35278 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
35279
35280         strtod: avoid C99 decl-after-statement
35281         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
35282
35283 2009-02-24  Eric Blake  <ebb9@byu.net>
35284
35285         strtod: detect HP-UX 11.31 bug
35286         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
35287         Reported by Gary V. Vaughan.
35288
35289 2009-02-23  Bruno Haible  <bruno@clisp.org>
35290
35291         Fix invalid read past end of memory block.
35292         * lib/vasnprintf.c (DCHAR_SET): Define.
35293         (local_wcslen): Define only when needed.
35294         (local_strnlen, local_wcsnlen): New functions.
35295         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35296         directives that involve a conversion ourselves.
35297         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35298         wcsnlen, mbrtowc, wcrtomb.
35299         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35300         * tests/test-vasprintf-posix.c (test_function): Likewise.
35301         * tests/test-snprintf-posix.h (test_function): Likewise.
35302         * tests/test-sprintf-posix.h (test_function): Likewise.
35303         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35304
35305 2009-02-22  Bruno Haible  <bruno@clisp.org>
35306
35307         Implement new clarified decomposition of Hangul syllables.
35308         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35309         of type LTV, return only a pairwise decomposition.
35310         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35311         Likewise.
35312         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35313         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35314         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35315
35316 2009-02-22  Bruno Haible  <bruno@clisp.org>
35317
35318         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35319         zero-length results and shrink excess allocated memory.
35320         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35321         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35322         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35323         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35324         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35325         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35326         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35327         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35328         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35329         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35330         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35331         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35332
35333 2009-02-21  Bruno Haible  <bruno@clisp.org>
35334
35335         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35336         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35337         spaces after a period. Put a space between a macro name and its
35338         argument list. Trivial rewordings.
35339         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35340         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35341         (main): Return 0 explicitly.
35342
35343 2009-02-21  Bruno Haible  <bruno@clisp.org>
35344
35345         Tests for module 'uninorm/filter'.
35346         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35347         * modules/uninorm/filter-tests: New file.
35348
35349         New module 'uninorm/filter'.
35350         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35351         uninorm_filter_flush, uninorm_filter_free): New declarations.
35352         * lib/uninorm/uninorm-filter.c: New file.
35353         * modules/uninorm/filter: New file.
35354
35355 2009-02-21  Bruno Haible  <bruno@clisp.org>
35356
35357         Tests for module 'uninorm/nfkc'.
35358         * tests/uninorm/test-nfkc.c: New file.
35359         * tests/uninorm/test-u8-nfkc.c: New file.
35360         * tests/uninorm/test-u16-nfkc.c: New file.
35361         * tests/uninorm/test-u32-nfkc.c: New file.
35362         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35363         * tests/uninorm/test-u32-nfkc-big.c: New file.
35364         * modules/uninorm/nfkc-tests: New file.
35365
35366         New module 'uninorm/nfkc'.
35367         * lib/uninorm/nfkc.c: New file.
35368         * modules/uninorm/nfkc: New file.
35369
35370         Tests for module 'uninorm/nfkd'.
35371         * tests/uninorm/test-nfkd.c: New file.
35372         * tests/uninorm/test-u8-nfkd.c: New file.
35373         * tests/uninorm/test-u16-nfkd.c: New file.
35374         * tests/uninorm/test-u32-nfkd.c: New file.
35375         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35376         * tests/uninorm/test-u32-nfkd-big.c: New file.
35377         * modules/uninorm/nfkd-tests: New file.
35378
35379         New module 'uninorm/nfkd'.
35380         * lib/uninorm/nfkd.c: New file.
35381         * modules/uninorm/nfkd: New file.
35382
35383         Tests for module 'uninorm/nfc'.
35384         * tests/uninorm/test-nfc.c: New file.
35385         * tests/uninorm/test-u8-nfc.c: New file.
35386         * tests/uninorm/test-u16-nfc.c: New file.
35387         * tests/uninorm/test-u32-nfc.c: New file.
35388         * tests/uninorm/test-u32-nfc-big.sh: New file.
35389         * tests/uninorm/test-u32-nfc-big.c: New file.
35390         * modules/uninorm/nfc-tests: New file.
35391
35392         New module 'uninorm/nfc'.
35393         * lib/uninorm/nfc.c: New file.
35394         * modules/uninorm/nfc: New file.
35395
35396         Tests for module 'uninorm/nfd'.
35397         * tests/uninorm/test-nfd.c: New file.
35398         * tests/uninorm/test-u8-nfd.c: New file.
35399         * tests/uninorm/test-u16-nfd.c: New file.
35400         * tests/uninorm/test-u32-nfd.c: New file.
35401         * tests/uninorm/test-u32-nfd-big.sh: New file.
35402         * tests/uninorm/test-u32-nfd-big.c: New file.
35403         * tests/uninorm/test-u32-normalize-big.h: New file.
35404         * tests/uninorm/test-u32-normalize-big.c: New file.
35405         * tests/uninorm/NormalizationTest.txt: New file, created from
35406         Unicode 5.1.0 NormalizationTest.txt.
35407         * modules/uninorm/nfd-tests: New file.
35408
35409         New module 'uninorm/nfd'.
35410         * lib/uninorm/nfd.c: New file.
35411         * modules/uninorm/nfd: New file.
35412
35413         New module 'uninorm/u32-normalize'.
35414         * lib/uninorm/u32-normalize.c: New file.
35415         * modules/uninorm/u32-normalize: New file.
35416
35417         New module 'uninorm/u16-normalize'.
35418         * lib/uninorm/u16-normalize.c: New file.
35419         * modules/uninorm/u16-normalize: New file.
35420
35421         New module 'uninorm/u8-normalize'.
35422         * lib/uninorm/u8-normalize.c: New file.
35423         * lib/uninorm/normalize-internal.h: New file.
35424         * lib/uninorm/u-normalize-internal.h: New file.
35425         * modules/uninorm/u8-normalize: New file.
35426
35427         New module 'uninorm/decompose-internal'.
35428         * lib/uninorm/decompose-internal.c: New file.
35429         * modules/uninorm/decompose-internal: New file.
35430
35431         Tests for module 'uninorm/composition'.
35432         * tests/uninorm/test-composition.c: New file.
35433         * modules/uninorm/composition-tests: New file.
35434
35435         New module 'uninorm/composition'.
35436         * lib/uninorm/composition.c: New file.
35437         * lib/uninorm/composition-table.gperf: New file, generated by
35438         gen-uni-tables.
35439         * modules/uninorm/composition: New file.
35440
35441         Tests for module 'uninorm/compat-decomposition'.
35442         * tests/uninorm/test-compat-decomposition.c: New file.
35443         * modules/uninorm/compat-decomposition-tests: New file.
35444
35445         New module 'uninorm/compat-decomposition'.
35446         * lib/uninorm/decompose-internal.h: New file.
35447         * lib/uninorm/compat-decomposition.c: New file.
35448         * modules/uninorm/compat-decomposition: New file.
35449
35450         Tests for module 'uninorm/canonical-decomposition'.
35451         * tests/uninorm/test-canonical-decomposition.c: New file.
35452         * modules/uninorm/canonical-decomposition-tests: New file.
35453
35454         New module 'uninorm/canonical-decomposition'.
35455         * lib/uninorm/canonical-decomposition.c: New file.
35456         * modules/uninorm/canonical-decomposition: New file.
35457
35458         Tests for module 'uninorm/decomposition'.
35459         * tests/uninorm/test-decomposition.c: New file.
35460         * modules/uninorm/decomposition-tests: New file.
35461
35462         New module 'uninorm/decomposition'.
35463         * lib/uninorm/decomposition.c: New file.
35464         * modules/uninorm/decomposition: New file.
35465
35466         New module 'uninorm/decomposition-table'.
35467         * lib/uninorm/decomposition-table.h: New file.
35468         * lib/uninorm/decomposition-table.c: New file.
35469         * lib/uninorm/decomposition-table1.h: New file, generated by
35470         gen-uni-tables.
35471         * lib/uninorm/decomposition-table2.h: New file, generated by
35472         gen-uni-tables.
35473         * modules/uninorm/decomposition-table: New file.
35474
35475         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35476         (UC_DECOMP_*): New enumeration items.
35477         (get_decomposition): New function.
35478         (struct decomp_table): New type.
35479         (output_decomposition, output_decomposition_tables): New functions.
35480         (unicode_composition_exclusions): New variable.
35481         (fill_composition_exclusions, debug_output_composition_tables): New
35482         functions.
35483         (main): Accept one more argument. Invoke fill_composition_exclusions.
35484         Output decomposition and composition tables.
35485
35486         New module 'uninorm/base'.
35487         * lib/uninorm.h: New file.
35488         * lib/unictype.h: Update comment.
35489         * modules/uninorm/base: New file.
35490
35491 2009-02-21  David Lutterkort  <lutter@redhat.com>
35492
35493         Tests for module 'safe-alloc'.
35494         * tests/test-safe-alloc.c: New file.
35495         * modules/safe-alloc-tests: New file.
35496
35497         New module 'safe-alloc'.
35498         * lib/safe-alloc.h: New file.
35499         * lib/safe-alloc.c: New file.
35500         * m4/safe-alloc.m4: New file.
35501         * modules/safe-alloc: New file.
35502         * doc/safe-alloc.texi: New file.
35503         * doc/gnulib.texi: Include it.
35504         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35505         safe-alloc.
35506
35507 2009-02-18  Bruno Haible  <bruno@clisp.org>
35508
35509         Fix link error on non-glibc systems.
35510         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35511         variable.
35512         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35513
35514 2009-02-18  Jim Meyering  <meyering@redhat.com>
35515
35516         fts: avoid used-uninitialized error due to recent change
35517         * lib/fts.c (fts_read): Guard uses of the new member,
35518         parent->fts_n_dirs_remaining, since it's not relevant for
35519         the parent of a directory specified on the command-line.
35520
35521 2009-02-17  James Youngman  <jay@gnu.org>
35522             Bruno Haible  <bruno@clisp.org>
35523
35524         * m4/include_next.m4: Reformulate comment.
35525
35526 2009-02-16  Jim Meyering  <meyering@redhat.com>
35527
35528         fts: add #if guards so that the fts_lgpl module still builds
35529         * lib/fts.c: Guard just-added hash-table-using parts with
35530         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35531         Reported by Simon Josefsson.
35532
35533 2009-02-15  Bruno Haible  <bruno@clisp.org>
35534
35535         * modules/array-mergesort-tests: New file.
35536         * tests/test-array-mergesort.c: New file.
35537
35538         New module 'array-mergesort'.
35539         * modules/array-mergesort: New file.
35540         * lib/array-mergesort.h: New file.
35541
35542 2009-02-15  Bruno Haible  <bruno@clisp.org>
35543
35544         Fix 2009-02-07 commit.
35545         * lib/gen-uni-tables.c (output_predicate, output_category,
35546         output_combclass, output_bidi_category, output_decimal_digit,
35547         output_digit, output_numeric, output_mirror, output_scripts,
35548         output_ident_category, output_simple_mapping): Fix format directives.
35549         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35550
35551 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35552
35553         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35554         fixes are available from IBM.
35555
35556 2009-02-13  Jim Meyering  <meyering@redhat.com>
35557
35558         fts: arrange not to stat non-directories in more cases
35559         This makes GNU find (when it doesn't need to stat each file)
35560         *much* more efficient at traversing reiserfs file systems.
35561         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35562         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35563         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35564         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35565         (leaf_optimization_applies): New function.
35566         (LCO_hash, LCO_compare): New helper functions.
35567         (link_count_optimize_ok): New function.
35568         (fts_stat): Initialize new member (if dir).
35569         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35570         we've just stat'ed a directory.  Skip the stat call when possible.
35571         ---
35572         Note this AFS-related exchange:
35573         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35574         and note find's pioctl call in find/fstype.c.
35575         But that is necessary only if you want to enable the
35576         optimization for AFS, and for now, I don't.
35577
35578         fts: move a function definition "up" (no semantic change)
35579         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35580         "up" to precede upcoming use of a related function.
35581
35582 2009-02-11  Jim Meyering  <meyering@redhat.com>
35583
35584         fts: correct internal computation of nlinks (optimization-related)
35585         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35586         whether the current entry is a directory, so don't test it.
35587
35588 2009-02-10  Bruno Haible  <bruno@clisp.org>
35589
35590         Tests for module 'uniwbrk/ulc-wordbreaks'.
35591         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35592         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35593         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35594
35595         Tests for module 'uniwbrk/u32-wordbreaks'.
35596         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35597         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35598
35599         Tests for module 'uniwbrk/u16-wordbreaks'.
35600         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35601         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35602
35603         Tests for module 'uniwbrk/u8-wordbreaks'.
35604         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35605         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35606
35607 2009-02-10  Bruno Haible  <bruno@clisp.org>
35608
35609         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35610         property.
35611         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35612         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35613         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35614
35615 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35616
35617         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35618         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35619
35620 2009-02-10  Bruno Haible  <bruno@clisp.org>
35621
35622         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35623         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35624         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35625         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35626         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35627         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35628
35629 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35630
35631         * lib/sockets.h (gl_fd_to_handle): New function.
35632
35633         * tests/test-sockets.c: Call gl_fd_to_handle.
35634
35635 2009-02-09  Bruno Haible  <bruno@clisp.org>
35636
35637         * doc/havelib.texi: Document the conventions on bi-arch systems.
35638
35639 2009-02-08  Bruno Haible  <bruno@clisp.org>
35640
35641         Document the AC_LIB_LINKFLAGS macro.
35642         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35643         * doc/gnulib.texi: Include it.
35644
35645 2009-02-08  Bruno Haible  <bruno@clisp.org>
35646
35647         Fix wrong order of sections, compared to TOC.
35648         * doc/gnulib.texi: Include relocatable-maint.texi after the
35649         "Regular expressions" node, not before.
35650
35651 2009-02-08  Bruno Haible  <bruno@clisp.org>
35652
35653         Tests for module 'unicase/totitle'.
35654         * modules/unicase/totitle-tests: New file.
35655
35656         Tests for module 'unicase/tolower'.
35657         * modules/unicase/tolower-tests: New file.
35658
35659         Tests for module 'unicase/toupper'.
35660         * modules/unicase/toupper-tests: New file.
35661         * tests/unicase/test-mapping-part1.h: New file.
35662         * tests/unicase/test-mapping-part2.h: New file.
35663
35664         New module 'unicase/totitle'.
35665         * modules/unicase/totitle: New file.
35666         * lib/unicase/totitle.c: New file.
35667
35668         New module 'unicase/tolower'.
35669         * modules/unicase/tolower: New file.
35670         * lib/unicase/tolower.c: New file.
35671
35672         New module 'unicase/toupper'.
35673         * modules/unicase/toupper: New file.
35674         * lib/unicase/toupper.c: New file.
35675         * lib/unicase/simple-mapping.h: New file.
35676
35677         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35678         (mapping_table): New structure.
35679         (output_simple_mapping): New function.
35680         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35681         * modules/gen-uni-tables (Description): Update.
35682         * lib/unicase/toupper.h: New file, automatically generated by
35683         gen-uni-tables.
35684         * lib/unicase/tolower.h: New file, automatically generated by
35685         gen-uni-tables.
35686         * lib/unicase/totitle.h: New file, automatically generated by
35687         gen-uni-tables.
35688         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35689         gen-uni-tables.
35690         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35691         gen-uni-tables.
35692         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35693         gen-uni-tables.
35694
35695         New module 'unicase/base'.
35696         * modules/unicase/base: New file.
35697         * lib/unicase.h: New file.
35698
35699 2009-02-08  Bruno Haible  <bruno@clisp.org>
35700
35701         New module 'uniwbrk/ulc-wordbreaks'.
35702         * modules/uniwbrk/ulc-wordbreaks: New file.
35703         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35704
35705         New module 'uniwbrk/u32-wordbreaks'.
35706         * modules/uniwbrk/u32-wordbreaks: New file.
35707         * lib/uniwbrk/u32-wordbreaks.c: New file.
35708
35709         New module 'uniwbrk/u16-wordbreaks'.
35710         * modules/uniwbrk/u16-wordbreaks: New file.
35711         * lib/uniwbrk/u16-wordbreaks.c: New file.
35712
35713         New module 'uniwbrk/u8-wordbreaks'.
35714         * modules/uniwbrk/u8-wordbreaks: New file.
35715         * lib/uniwbrk/u8-wordbreaks.c: New file.
35716         * lib/uniwbrk/u-wordbreaks.h: New file.
35717
35718         New module 'uniwbrk/table'.
35719         * modules/uniwbrk/table: New file.
35720         * lib/uniwbrk/wbrktable.h: New file.
35721         * lib/uniwbrk/wbrktable.c: New file.
35722
35723         New module 'uniwbrk/wordbreak-property'.
35724         * modules/uniwbrk/wordbreak-property: New file.
35725         * lib/uniwbrk/wordbreak-property.c: New file.
35726
35727         * lib/gen-uni-tables.c (WBP_*): New enum items.
35728         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35729         (unicode_org_wbp): New variable.
35730         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35731         New functions.
35732         (wbp_table): New structure.
35733         (output_wbp, output_wbrk_tables): New functions.
35734         (main): Accept additional argument. Invoke fill_org_wbp,
35735         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35736         output_wbrk_tables.
35737         * modules/gen-uni-tables (Description): Update.
35738         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35739         gen-uni-tables.
35740
35741         New module 'uniwbrk/base'.
35742         * modules/uniwbrk/base: New file.
35743         * lib/uniwbrk.h: New file.
35744
35745 2009-02-08  Bruno Haible  <bruno@clisp.org>
35746
35747         Update to Unicode 5.1.0.
35748         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35749         U+2185..U+2188.
35750         (is_property_default_ignorable_code_point): Don't include characters
35751         of category Cc or Cs and not-a-characters.
35752         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35753         U+0D79, U+109E, U+109F, U+A60C.
35754         * lib/unictype/bidi_of.h: Regenerated.
35755         * lib/unictype/blocks.h: Regenerated.
35756         * lib/unictype/categ_C.h: Regenerated.
35757         * lib/unictype/categ_Cf.h: Regenerated.
35758         * lib/unictype/categ_Cn.h: Regenerated.
35759         * lib/unictype/categ_L.h: Regenerated.
35760         * lib/unictype/categ_Ll.h: Regenerated.
35761         * lib/unictype/categ_Lm.h: Regenerated.
35762         * lib/unictype/categ_Lo.h: Regenerated.
35763         * lib/unictype/categ_Lu.h: Regenerated.
35764         * lib/unictype/categ_M.h: Regenerated.
35765         * lib/unictype/categ_Mc.h: Regenerated.
35766         * lib/unictype/categ_Me.h: Regenerated.
35767         * lib/unictype/categ_Mn.h: Regenerated.
35768         * lib/unictype/categ_N.h: Regenerated.
35769         * lib/unictype/categ_Nd.h: Regenerated.
35770         * lib/unictype/categ_Nl.h: Regenerated.
35771         * lib/unictype/categ_No.h: Regenerated.
35772         * lib/unictype/categ_P.h: Regenerated.
35773         * lib/unictype/categ_Pd.h: Regenerated.
35774         * lib/unictype/categ_Pe.h: Regenerated.
35775         * lib/unictype/categ_Pf.h: Regenerated.
35776         * lib/unictype/categ_Pi.h: Regenerated.
35777         * lib/unictype/categ_Po.h: Regenerated.
35778         * lib/unictype/categ_Ps.h: Regenerated.
35779         * lib/unictype/categ_S.h: Regenerated.
35780         * lib/unictype/categ_Sk.h: Regenerated.
35781         * lib/unictype/categ_Sm.h: Regenerated.
35782         * lib/unictype/categ_So.h: Regenerated.
35783         * lib/unictype/categ_of.h: Regenerated.
35784         * lib/unictype/combining.h: Regenerated.
35785         * lib/unictype/ctype_alnum.h: Regenerated.
35786         * lib/unictype/ctype_alpha.h: Regenerated.
35787         * lib/unictype/ctype_graph.h: Regenerated.
35788         * lib/unictype/ctype_lower.h: Regenerated.
35789         * lib/unictype/ctype_print.h: Regenerated.
35790         * lib/unictype/ctype_punct.h: Regenerated.
35791         * lib/unictype/ctype_upper.h: Regenerated.
35792         * lib/unictype/decdigit.h: Regenerated.
35793         * lib/unictype/digit.h: Regenerated.
35794         * lib/unictype/mirror.h: Regenerated.
35795         * lib/unictype/numeric.h: Regenerated.
35796         * lib/unictype/pr_alphabetic.h: Regenerated.
35797         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35798         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35799         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35800         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35801         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35802         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35803         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35804         * lib/unictype/pr_combining.h: Regenerated.
35805         * lib/unictype/pr_dash.h: Regenerated.
35806         * lib/unictype/pr_decimal_digit.h: Regenerated.
35807         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35808         * lib/unictype/pr_deprecated.h: Regenerated.
35809         * lib/unictype/pr_diacritic.h: Regenerated.
35810         * lib/unictype/pr_extender.h: Regenerated.
35811         * lib/unictype/pr_format_control.h: Regenerated.
35812         * lib/unictype/pr_grapheme_base.h: Regenerated.
35813         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35814         * lib/unictype/pr_grapheme_link.h: Regenerated.
35815         * lib/unictype/pr_id_continue.h: Regenerated.
35816         * lib/unictype/pr_id_start.h: Regenerated.
35817         * lib/unictype/pr_ideographic.h: Regenerated.
35818         * lib/unictype/pr_ignorable_control.h: Regenerated.
35819         * lib/unictype/pr_lowercase.h: Regenerated.
35820         * lib/unictype/pr_math.h: Regenerated.
35821         * lib/unictype/pr_numeric.h: Regenerated.
35822         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35823         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35824         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35825         * lib/unictype/pr_other_id_continue.h: Regenerated.
35826         * lib/unictype/pr_other_lowercase.h: Regenerated.
35827         * lib/unictype/pr_other_math.h: Regenerated.
35828         * lib/unictype/pr_punctuation.h: Regenerated.
35829         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35830         * lib/unictype/pr_soft_dotted.h: Regenerated.
35831         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35832         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35833         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35834         * lib/unictype/pr_uppercase.h: Regenerated.
35835         * lib/unictype/pr_xid_continue.h: Regenerated.
35836         * lib/unictype/pr_xid_start.h: Regenerated.
35837         * lib/unictype/pr_zero_width.h: Regenerated.
35838         * lib/unictype/scripts.h: Regenerated.
35839         * lib/unictype/scripts_byname.gperf: Regenerated.
35840         * lib/unictype/sy_java_ident.h: Regenerated.
35841         * lib/unilbrk/lbrkprop1.h: Regenerated.
35842         * lib/unilbrk/lbrkprop2.h: Regenerated.
35843         * tests/unictype/test-categ_C.c: Regenerated.
35844         * tests/unictype/test-categ_Cf.c: Regenerated.
35845         * tests/unictype/test-categ_Cn.c: Regenerated.
35846         * tests/unictype/test-categ_L.c: Regenerated.
35847         * tests/unictype/test-categ_Ll.c: Regenerated.
35848         * tests/unictype/test-categ_Lm.c: Regenerated.
35849         * tests/unictype/test-categ_Lo.c: Regenerated.
35850         * tests/unictype/test-categ_Lu.c: Regenerated.
35851         * tests/unictype/test-categ_M.c: Regenerated.
35852         * tests/unictype/test-categ_Mc.c: Regenerated.
35853         * tests/unictype/test-categ_Me.c: Regenerated.
35854         * tests/unictype/test-categ_Mn.c: Regenerated.
35855         * tests/unictype/test-categ_N.c: Regenerated.
35856         * tests/unictype/test-categ_Nd.c: Regenerated.
35857         * tests/unictype/test-categ_Nl.c: Regenerated.
35858         * tests/unictype/test-categ_No.c: Regenerated.
35859         * tests/unictype/test-categ_P.c: Regenerated.
35860         * tests/unictype/test-categ_Pd.c: Regenerated.
35861         * tests/unictype/test-categ_Pe.c: Regenerated.
35862         * tests/unictype/test-categ_Pf.c: Regenerated.
35863         * tests/unictype/test-categ_Pi.c: Regenerated.
35864         * tests/unictype/test-categ_Po.c: Regenerated.
35865         * tests/unictype/test-categ_Ps.c: Regenerated.
35866         * tests/unictype/test-categ_S.c: Regenerated.
35867         * tests/unictype/test-categ_Sk.c: Regenerated.
35868         * tests/unictype/test-categ_Sm.c: Regenerated.
35869         * tests/unictype/test-categ_So.c: Regenerated.
35870         * tests/unictype/test-ctype_alnum.c: Regenerated.
35871         * tests/unictype/test-ctype_alpha.c: Regenerated.
35872         * tests/unictype/test-ctype_graph.c: Regenerated.
35873         * tests/unictype/test-ctype_lower.c: Regenerated.
35874         * tests/unictype/test-ctype_print.c: Regenerated.
35875         * tests/unictype/test-ctype_punct.c: Regenerated.
35876         * tests/unictype/test-ctype_upper.c: Regenerated.
35877         * tests/unictype/test-decdigit.h: Regenerated.
35878         * tests/unictype/test-digit.h: Regenerated.
35879         * tests/unictype/test-numeric.h: Regenerated.
35880         * tests/unictype/test-pr_alphabetic.c: Regenerated.
35881         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
35882         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
35883         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
35884         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
35885         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
35886         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
35887         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
35888         * tests/unictype/test-pr_combining.c: Regenerated.
35889         * tests/unictype/test-pr_dash.c: Regenerated.
35890         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
35891         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
35892         * tests/unictype/test-pr_deprecated.c: Regenerated.
35893         * tests/unictype/test-pr_diacritic.c: Regenerated.
35894         * tests/unictype/test-pr_extender.c: Regenerated.
35895         * tests/unictype/test-pr_format_control.c: Regenerated.
35896         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
35897         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
35898         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
35899         * tests/unictype/test-pr_id_continue.c: Regenerated.
35900         * tests/unictype/test-pr_id_start.c: Regenerated.
35901         * tests/unictype/test-pr_ideographic.c: Regenerated.
35902         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
35903         * tests/unictype/test-pr_lowercase.c: Regenerated.
35904         * tests/unictype/test-pr_math.c: Regenerated.
35905         * tests/unictype/test-pr_numeric.c: Regenerated.
35906         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
35907         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
35908         Regenerated.
35909         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
35910         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
35911         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
35912         * tests/unictype/test-pr_other_math.c: Regenerated.
35913         * tests/unictype/test-pr_punctuation.c: Regenerated.
35914         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
35915         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
35916         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
35917         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
35918         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
35919         * tests/unictype/test-pr_uppercase.c: Regenerated.
35920         * tests/unictype/test-pr_xid_continue.c: Regenerated.
35921         * tests/unictype/test-pr_xid_start.c: Regenerated.
35922         * tests/unictype/test-pr_zero_width.c: Regenerated.
35923
35924         Update to Unicode 5.1.0.
35925         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
35926         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
35927         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
35928         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
35929         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
35930         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
35931         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
35932         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
35933         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
35934         (nonspacing_table_ind): Update.
35935         * tests/uniwidth/test-uc_width2.sh: Update expected result.
35936
35937         Update to Unicode 5.1.0.
35938         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
35939         code transform.
35940         * lib/uniname/uniname.c (unicode_character_name,
35941         unicode_name_character): Add the range 0x1Fxxx to the code transform.
35942         * lib/uniname/uninames.h: Regenerated.
35943         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
35944
35945 2009-02-07  Bruno Haible  <bruno@clisp.org>
35946
35947         Merge gen-ctype and gen-lbrk into a single program.
35948         * lib/gen-uni-tables.c: New file, incorporating
35949         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
35950         Add directory prefixes to the names of the generated files.
35951         * lib/unictype/gen-ctype.c: Remove file.
35952         * lib/unilbrk/gen-lbrk.c: Remove file.
35953         * modules/gen-uni-tables: New file.
35954         * modules/unictype/gen-ctype: Remove file.
35955         * modules/unilbrk/gen-lbrk: Remove file.
35956
35957 2009-02-07  Bruno Haible  <bruno@clisp.org>
35958
35959         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
35960
35961         New module 'unistr/u32-strcoll'.
35962         * modules/unistr/u32-strcoll: New file.
35963         * lib/unistr/u32-strcoll.c: New file.
35964
35965         New module 'unistr/u16-strcoll'.
35966         * modules/unistr/u16-strcoll: New file.
35967         * lib/unistr/u16-strcoll.c: New file.
35968
35969         New module 'unistr/u8-strcoll'.
35970         * modules/unistr/u8-strcoll: New file.
35971         * lib/unistr/u8-strcoll.c: New file.
35972         * lib/unistr/u-strcoll.h: New file.
35973
35974 2009-02-07  Bruno Haible  <bruno@clisp.org>
35975
35976         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
35977         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35978         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35979         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
35980         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
35981         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
35982
35983 2009-02-07  Bruno Haible  <bruno@clisp.org>
35984
35985         Make 64-bit clean.
35986         * lib/unictype/gen-ctype.c (output_predicate, output_category,
35987         output_combclass, output_bidi_category, output_decimal_digit,
35988         output_digit, output_numeric, output_mirror, output_scripts,
35989         output_ident_category): Use proper width specifier in format strings.
35990
35991 2009-02-07  Bruno Haible  <bruno@clisp.org>
35992
35993         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
35994         failure behaviour.
35995
35996 2009-02-07  Jim Meyering  <meyering@redhat.com>
35997
35998         regex: avoid compilation failure with upcoming gcc-4.4
35999         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
36000         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
36001         "... error: integer overflow in preprocessor expression".
36002
36003 2009-02-05  Ben Pfaff  <blp@gnu.org>
36004
36005         Fix link errors on Windows when close module is used.
36006         * modules/close: Add $(LIB_CLOSE) to Link section.
36007         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
36008         $(LIB_CLOSE) on Windows.
36009
36010 2009-02-05  Jim Meyering  <meyering@redhat.com>
36011
36012         still avoid unused-parameter warnings, but do it cleanly
36013         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
36014         (get_fs_usage): Cast to void instead.
36015         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
36016         (dev_from_mount_options, read_file_system_list): Cast to void.
36017         Prompted by Bruno Haible.
36018
36019 2009-02-04  Jim Meyering  <meyering@redhat.com>
36020
36021         fsusage.c: correct copyright year
36022         * lib/fsusage.c: Reflect year in which the change is pushed into
36023
36024         avoid misc. warnings
36025         * lib/fsusage.c (UNUSED_PARAM): Define.
36026         (get_fs_usage): Mark parameter "disk" as unused.
36027         * lib/getugroups.c (getgrent): Use "void" in prototype.
36028         * lib/mountlist.c: Mark unused parameters.
36029         (read_file_system_list): Declare a local with "const".
36030         * lib/nanosleep.c (getnow): Declare static.
36031         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
36032
36033         dirfd: set errno upon failure
36034         * lib/dirfd.c: Include <errno.h>.
36035         Set errno to ENOTSUP when returning -1.
36036         * modules/dirfd (Depends-on): Add errno.
36037         Suggested by John Kodis <kodis@comcast.net>.
36038
36039 2009-02-01  Bruno Haible  <bruno@clisp.org>
36040
36041         Don't assume sizeof (long) >= sizeof (void *).
36042         * lib/memcmp.c: Include stdint.h.
36043         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
36044         srcp2 to 'const byte *'.
36045         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
36046         types to uintptr_t.
36047         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
36048         * modules/memcmp (Depends-on): Add stdint.
36049         Reported by Ozkan Sezer <sezeroz@gmail.com>.
36050
36051 2009-01-30  Eric Blake  <ebb9@byu.net>
36052
36053         fix more require-before-expand issues
36054         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
36055         expand, AC_PROG_AWK.
36056         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
36057
36058 2009-01-28  Eric Blake  <ebb9@byu.net>
36059
36060         version-etc: use consistent URL formatting
36061         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
36062         Improve formatting.  Use fputs for string without %.
36063
36064 2009-01-28  Jim Meyering  <meyering@redhat.com>
36065
36066         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
36067         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
36068         "underquoted definition of NAME" from autoconf-2.59.
36069
36070 2009-01-28  Bruno Haible  <bruno@clisp.org>
36071
36072         * doc/gnulib.texi: Add "Obsolete modules" to index.
36073
36074 2009-01-28  Jim Meyering  <meyering@redhat.com>
36075
36076         useless-if-before-free: recognize more variants
36077         * build-aux/useless-if-before-free: Also recognize e.g.,
36078         if (NULL != p) free (p);
36079
36080 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
36081
36082         test-getaddrinfo: skip (don't fail) this test when there's no network
36083         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
36084         on the presumption that it means you lack network access.
36085
36086 2009-01-26  Jim Meyering  <meyering@redhat.com>
36087
36088         fflush: avoid warnings on modern systems
36089         * lib/fflush.c (rpl_fflush): Move declarations of locals,
36090         pos and result, into scopes where they're used.
36091
36092 2009-01-26  Eric Blake  <ebb9@byu.net>
36093
36094         Silence warning reintroduced by recent extensions patch.
36095         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
36096         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
36097         autoconf.
36098
36099         Backport improved autoconf semantics of AC_DEFUN_ONCE.
36100         * m4/00gnulib.m4: New file.
36101         * gnulib-tool (func_get_filelist): Always use it.
36102         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
36103         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
36104
36105 2009-01-25  Bruno Haible  <bruno@clisp.org>
36106
36107         Make test-quotearg work on MacOS X and AIX.
36108         * tests/test-quotearg.sh: New file.
36109         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
36110         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
36111         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
36112         include <libintl.h>.
36113         (fake_locale): Remove variable.
36114         (gettext, dgettext, dcgettext): Remove functions.
36115         (main): Instead of setting a fake locale, set a real locale. Call
36116         textdomain and bindtextdomain.
36117         * modules/quotearg-tests (Files): Add the new files.
36118         (Depends-on): Add gettext, setenv, unsetenv.
36119         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36120         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
36121         Augment TESTS_ENVIRONMENT.
36122
36123 2009-01-25  Bruno Haible  <bruno@clisp.org>
36124
36125         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
36126         fr_FR.ISO8859-1 locale on MacOS X.
36127         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
36128         ja_JP.eucJP locale on MacOS X.
36129         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
36130         zh_CN.GB18030 locale on MacOS X.
36131
36132 2009-01-25  Bruno Haible  <bruno@clisp.org>
36133
36134         Avoid link errors on MacOS X 10.3.
36135         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
36136         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36137
36138 2009-01-25  Bruno Haible  <bruno@clisp.org>
36139
36140         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36141         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
36142         * modules/pipe (Files): Remove m4/posix_spawn.m4.
36143         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36144         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
36145         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36146         posix_spawnattr_init, posix_spawnattr_setsigmask,
36147         posix_spawnattr_setflags, posix_spawnattr_destroy.
36148
36149         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36150         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
36151         * modules/execute (Files): Remove m4/posix_spawn.m4.
36152         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36153         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36154         posix_spawnattr_init, posix_spawnattr_setsigmask,
36155         posix_spawnattr_setflags, posix_spawnattr_destroy.
36156
36157 2009-01-25  Bruno Haible  <bruno@clisp.org>
36158
36159         * lib/glthread/threadlib.c: Include <stdlib.h>.
36160
36161 2009-01-25  Bruno Haible  <bruno@clisp.org>
36162
36163         * lib/glthread/threadlib.c (dummy): New declaration.
36164
36165 2009-01-25  Bruno Haible  <bruno@clisp.org>
36166
36167         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
36168         multibyte characters also for the GB18030 encoding. Don't crash when
36169         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
36170
36171 2009-01-25  Bruno Haible  <bruno@clisp.org>
36172
36173         Avoid redefining 'struct random_data' on OSF/1 5.1.
36174         * lib/stdlib.in.h: Include <random.h> if it exists.
36175         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
36176         HAVE_RANDOM_H. Include <random.h> when testing whether
36177         'struct random_data' exists.
36178         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
36179
36180 2009-01-25  Bruno Haible  <bruno@clisp.org>
36181
36182         Don't install charset.alias on MacOS X >= 10.3.
36183         * lib/localcharset.c (DARWIN7): New macro.
36184         (get_charset_aliases): Hardcode the result for Darwin7.
36185         * modules/localcharset (install-exec-local): Don't install
36186         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
36187
36188 2009-01-25  Bruno Haible  <bruno@clisp.org>
36189
36190         Don't install charset.alias on mingw and Cygwin.
36191         * modules/localcharset (install-exec-local): Don't install
36192         charset.alias on mingw and Cygwin, if the file does not yet exist.
36193         The result for these platforms is hardcoded in localcharset.c.
36194
36195 2009-01-25  Bruno Haible  <bruno@clisp.org>
36196
36197         Make it possible again to use AC_GNU_SOURCE together with gnulib.
36198         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
36199         before requiring AC_USE_SYSTEM_EXTENSIONS.
36200
36201 2009-01-25  Jim Meyering  <meyering@redhat.com>
36202
36203         c-strtod: avoid warnings
36204         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
36205         "assignment discards qualifiers from pointer target type" warnings.
36206
36207 2009-01-24  Bruno Haible  <bruno@clisp.org>
36208
36209         Add support for non-UTF-8 locales on MacOS X.
36210         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
36211         canonical encodings. For Darwin 7 and newer, don't map traditional
36212         encodings to UTF-8.
36213         Reported by Vincent Lefevre <vincent@vinc17.org>
36214         at <http://savannah.gnu.org/bugs/?25235>.
36215
36216 2009-01-24  Bruno Haible  <bruno@clisp.org>
36217
36218         * doc/gnulib.texi (Obsolete modules): New section.
36219         Reported by Mike Frysinger <vapier@gentoo.org>.
36220
36221 2009-01-24  Bruno Haible  <bruno@clisp.org>
36222
36223         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
36224         (%.dvi): New rule.
36225
36226 2009-01-24  Bruno Haible  <bruno@clisp.org>
36227
36228         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
36229         Reported by Eric Blake.
36230
36231 2009-01-24  Bruno Haible  <bruno@clisp.org>
36232
36233         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
36234         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
36235         Reported by Gary V. Vaughan <gary@gnu.org>.
36236
36237 2009-01-24  Bruno Haible  <bruno@clisp.org>
36238
36239         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
36240
36241 2009-01-23  Bruno Haible  <bruno@clisp.org>
36242
36243         Make c-strtod, c-strtold usable in libraries.
36244         * lib/c-strtod.c: Include string.h instead of xalloc.h.
36245         (C_STRTOD): Call strdup instead of xstrdup.
36246         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
36247         * modules/c-strtold (Depends-on): Likewise.
36248         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
36249         * NEWS: Mention the change.
36250         Reported by Michael Gold <mgold@ncf.ca>.
36251
36252 2009-01-23  Jim Meyering  <meyering@redhat.com>
36253
36254         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
36255         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
36256         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
36257
36258 2009-01-23  Simon Josefsson  <simon@josefsson.org>
36259
36260         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
36261         GNU CoreUtils.
36262         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
36263         * modules/version-etc (Description): Update.
36264
36265 2009-01-22  Bruno Haible  <bruno@clisp.org>
36266
36267         Cache the C locale object.
36268         * lib/c-strtod.c (c_locale_cache): New variable.
36269         (c_locale): New function.
36270         (C_STRTOD): Use it, and don't call freelocale.
36271         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
36272         Suggested by Paolo Bonzini.
36273
36274 2009-01-21  Bruno Haible  <bruno@clisp.org>
36275
36276         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
36277         conditions other than overflow.
36278
36279 2009-01-21  Bruno Haible  <bruno@clisp.org>
36280
36281         * lib/c-strtod.c: Include errno.h.
36282         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
36283         value from STRTOD_L and STRTOD.
36284
36285 2009-01-21  Bruno Haible  <bruno@clisp.org>
36286         and Jim Meyering  <meyering@redhat.com>
36287
36288         nanosleep: skip configure test (fail it) for apple universal builds
36289         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
36290         universal builds, assume that nanosleep does not work.
36291         * modules/nanosleep (Depends-on): Add multiarch.
36292
36293         mktime: skip configure test (fail it) for apple universal builds
36294         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
36295         universal builds, assume that mktime does not work.
36296         * modules/mktime (Depends-on): Add multiarch.
36297
36298 2009-01-21  Eric Blake  <ebb9@byu.net>
36299
36300         multiarch: avoid expand-before-require warning
36301         * modules/multiarch (configure.ac): Require, rather than expand,
36302         gl_MULTIARCH.
36303         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36304         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36305         enforce that all clients require it.  Partial reversion of
36306         2008-12-29 patch.
36307
36308         error: avoid expand-before-require warning
36309         * modules/errno (configure.ac): Require, rather than expand,
36310         gl_HEADER_ERRNO_H.
36311         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36312         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36313         enforce that all clients require it.
36314
36315         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36316         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36317         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36318         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36319
36320 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36321
36322         Revert:
36323         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36324
36325         regex: do not depend on obsolete modules.
36326         * modules/regex: Remove memcmp and memmove.
36327
36328 2009-01-20  Bruno Haible  <bruno@clisp.org>
36329
36330         Make the 'link' module link on Windows NT 4.
36331         * lib/link.c (_WIN32_WINNT): Don't define.
36332         (CreateHardLinkFuncType): New type.
36333         (CreateHardLinkFunc, initialized): New variables.
36334         (initialize): New function.
36335         (link): Invoke CreateHardLink indirectly through the function pointer.
36336
36337 2009-01-20  Bruno Haible  <bruno@clisp.org>
36338
36339         Fix compilation failure on mingw.
36340         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36341
36342 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36343
36344         * doc/c-strtod.texi: Mention a couple of restrictions.
36345
36346 2009-01-20  Jim Meyering  <meyering@redhat.com>
36347
36348         gettimeofday: move more declarations out of functions
36349         * lib/gettimeofday.c: Move extern declarations of tzset and
36350         gmtime out of containing functions.  Prompted by Bruno Haible.
36351
36352 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36353
36354         regex: do not depend on obsolete modules.
36355         * modules/regex: Remove memcmp and memmove.
36356
36357 2009-01-19  Bruno Haible  <bruno@clisp.org>
36358
36359         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36360         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36361         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36362         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36363         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36364
36365 2009-01-19  Bruno Haible  <bruno@clisp.org>
36366
36367         * tests/test-link.c: Include <errno.h>.
36368         (main): Exit with code 77 when a hard link cannot be created due to
36369         the file system.
36370         * tests/test-link.sh: Skip test when a hard link cannot be created due
36371         to the file system.
36372         Suggested by Eric Blake.
36373
36374 2009-01-19  Martin Lambers  <marlam@marlam.de>
36375
36376         * modules/link-tests: New file.
36377         * tests/test-link.sh: New file.
36378         * tests/test-link.c: New file.
36379
36380 2009-01-19  Eric Blake  <ebb9@byu.net>
36381
36382         doc: mention another function added in cygwin 1.7.0
36383         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36384         Another new function in cygwin 1.7.
36385
36386 2009-01-19  Bruno Haible  <bruno@clisp.org>
36387
36388         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36389         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36390         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36391         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36392         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36393         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36394         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36395         * m4/md4.m4 (gl_MD4): Likewise.
36396         * m4/md5.m4 (gl_MD5): Likewise.
36397         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36398         * m4/sha1.m4 (gl_SHA1): Likewise.
36399         * m4/sha256.m4 (gl_SHA256): Likewise.
36400         * m4/sha512.m4 (gl_SHA512): Likewise.
36401
36402 2009-01-19  Bruno Haible  <bruno@clisp.org>
36403
36404         * modules/uniname/uniname-tests (Depends-on): Add progname.
36405         * tests/uniname/test-uninames.c: Include progname.h.
36406         (main): Call set_program_name.
36407
36408         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36409         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36410         (main): Call set_program_name.
36411
36412         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36413         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36414         (main): Call set_program_name.
36415
36416         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36417         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36418         (main): Call set_program_name.
36419
36420         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36421         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36422         (main): Call set_program_name.
36423
36424         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36425         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36426         (main): Call set_program_name.
36427
36428         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36429         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36430         (main): Call set_program_name.
36431
36432         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36433         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36434         (main): Call set_program_name.
36435
36436         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36437         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36438         (main): Call set_program_name.
36439
36440 2009-01-19  Eric Blake  <ebb9@byu.net>
36441
36442         test-unistd: test previous patch
36443         * tests/test-unistd.c: Test *_FILENO macros.
36444
36445         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36446         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36447         Guarantee a definition.
36448         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36449         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36450         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36451         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36452         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36453         Likewise.
36454         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36455         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36456         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36457         Likewise.
36458         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36459         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36460         (STDERR_FILENO): Likewise.
36461         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36462         (STDERR_FILENO): Likewise.
36463         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36464         (STDERR_FILENO): Likewise.
36465         Reported by Elbert Pol.
36466
36467 2009-01-19  Eric Blake  <ebb9@byu.net>
36468
36469         doc: mention more functions added in cygwin 1.7.0
36470         * doc/posix-functions/abort.texi (abort): Update wording related
36471         to cygwin.
36472         * doc/posix-functions/daylight.texi (daylight): Likewise.
36473         * doc/posix-functions/optarg.texi (optarg): Likewise.
36474         * doc/posix-functions/optarg.texi (opterr): Likewise.
36475         * doc/posix-functions/optarg.texi (optind): Likewise.
36476         * doc/posix-functions/optarg.texi (optopt): Likewise.
36477         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36478         worked in 1.5.x, and was withdrawn in 1.7.
36479         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36480         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36481         cygwin versions.
36482         * doc/posix-functions/perror.texi (perror): Likewise.
36483         * doc/posix-functions/printf.texi (printf): Likewise.
36484         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36485         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36486         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36487         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36488         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36489         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36490         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36491         Likewise.
36492         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36493         Likewise.
36494         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36495         this function.
36496         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36497         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36498         Likewise.
36499         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36500         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36501         * doc/posix-functions/confstr.texi (confstr): Likewise.
36502         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36503         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36504         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36505         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36506         * doc/posix-functions/fputws.texi (fputws): Likewise.
36507         * doc/posix-functions/fwide.texi (fwide): Likewise.
36508         * doc/posix-functions/getwc.texi (getwc): Likewise.
36509         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36510         * doc/posix-functions/putwc.texi (putwc): Likewise.
36511         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36512         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36513         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36514         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36515         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36516         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36517         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36518         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36519         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36520         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36521         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36522
36523 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36524
36525         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36526         * lib/ioctl.c: Include <sys/ioctl.h>.
36527
36528 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36529
36530         * modules/getdate-tests (Depends-on): Add progname.
36531         * tests/test-getdate.c: Use progname module, to avoid link errors
36532         on non-glibc systems.
36533
36534 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36535
36536         * modules/filenamecat-tests (Depends-on): Add progname.
36537         * modules/fstrcmp-tests (Depends-on): Likewise.
36538
36539         * tests/test-filenamecat.c: Use progname module, to avoid link
36540         errors on non-glibc systems.
36541         * tests/test-fstrcmp.c: Likewise.
36542
36543 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36544
36545         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36546         * lib/gettimeofday.c: Move extern declaration out of function.
36547
36548 2009-01-18  Bruno Haible  <bruno@clisp.org>
36549
36550         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36551         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36552         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36553
36554 2009-01-18  Bruno Haible  <bruno@clisp.org>
36555
36556         * lib/strftime.c (MEMPCPY): Remove unused macro.
36557         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36558
36559 2009-01-18  Martin Lambers  <marlam@marlam.de>
36560
36561         New module 'link'.
36562         * lib/unistd.in.h (link): New declaration.
36563         * lib/link.c: New file.
36564         * m4/link.m4: New file.
36565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36566         HAVE_LINK.
36567         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36568         * modules/link: New file.
36569         * doc/posix-functions/link.texi: Mention the new module.
36570
36571 2009-01-18  Bruno Haible  <bruno@clisp.org>
36572
36573         * tests/test-avltree_list.c (main): Call set_program_name.
36574         * tests/test-avltree_oset.c (main): Likewise.
36575         * tests/test-obstack-printf.c: Include progname.h.
36576         (main): Call set_program_name.
36577         * tests/test-quotearg.c: Include progname.h.
36578         (main): Call set_program_name.
36579         * tests/test-xmemdup0.c: Include progname.h.
36580         (main): Call set_program_name.
36581
36582 2009-01-18  Bruno Haible  <bruno@clisp.org>
36583
36584         New module 'alphasort'.
36585         * lib/dirent.in.h (alphasort): New declaration.
36586         * lib/alphasort.c: New file, from glibc with modifications.
36587         * m4/alphasort.m4: New file.
36588         * modules/alphasort: New file.
36589         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36590         HAVE_ALPHASORT.
36591         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36592         HAVE_ALPHASORT.
36593         * doc/posix-functions/alphasort.texi: Mention the new module and the
36594         portability problems.
36595
36596 2009-01-18  Bruno Haible  <bruno@clisp.org>
36597
36598         New module 'scandir'.
36599         * lib/dirent.in.h (scandir): New declaration.
36600         * lib/scandir.c: New file, from glibc with modifications.
36601         * m4/scandir.m4: New file.
36602         * modules/scandir: New file.
36603         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36604         HAVE_SCANDIR.
36605         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36606         HAVE_SCANDIR.
36607         * doc/posix-functions/scandir.texi: Mention the new module and the
36608         portability problems.
36609
36610 2009-01-17  Bruno Haible  <bruno@clisp.org>
36611
36612         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36613         Update documentation.
36614         (func_remove_suffix): Escape all dots in the suffix. Update
36615         documentation.
36616         (func_filter_filelist): Update documentation.
36617         Reported by Ralf Wildenhues.
36618
36619 2009-01-17  Bruno Haible  <bruno@clisp.org>
36620
36621         * modules/dprintf-posix-tests: New file.
36622         * tests/test-dprintf-posix.sh: New file.
36623         * tests/test-dprintf-posix.c: New file.
36624
36625         New modules 'dprintf', 'dprintf-posix'.
36626         * lib/stdio.in.h (dprintf): New declaration.
36627         * lib/dprintf.c: New file.
36628         * m4/dprintf.m4: New file.
36629         * m4/dprintf-posix.m4: New file.
36630         * modules/dprintf: New file.
36631         * modules/dprintf-posix: New file.
36632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36633         HAVE_DPRINTF, REPLACE_DPRINTF.
36634         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36635         HAVE_DPRINTF, REPLACE_DPRINTF.
36636         * doc/posix-functions/dprintf.texi: Mention the new modules.
36637
36638 2009-01-17  Bruno Haible  <bruno@clisp.org>
36639
36640         * modules/vdprintf-posix-tests: New file.
36641         * tests/test-vdprintf-posix.sh: New file.
36642         * tests/test-vdprintf-posix.c: New file.
36643
36644         New modules 'vdprintf', 'vdprintf-posix'.
36645         * lib/stdio.in.h (vdprintf): New declaration.
36646         * lib/vdprintf.c: New file.
36647         * m4/vdprintf.m4: New file.
36648         * m4/vdprintf-posix.m4: New file.
36649         * modules/vdprintf: New file.
36650         * modules/vdprintf-posix: New file.
36651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36652         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36653         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36654         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36655         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36656
36657 2009-01-17  Bruno Haible  <bruno@clisp.org>
36658
36659         Fix replacement of fopen on mingw.
36660         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36661         mingw.
36662
36663 2009-01-17  Bruno Haible  <bruno@clisp.org>
36664
36665         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36666         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36667
36668 2009-01-17  Bruno Haible  <bruno@clisp.org>
36669
36670         Avoid test-fflush2.sh failure on mingw.
36671         * tests/test-fflush2.c: Include binary-io.h.
36672         (main): Put standard input into binary mode.
36673         * modules/fflush-tests (Depends-on): Add binary-io.
36674
36675 2009-01-17  Bruno Haible  <bruno@clisp.org>
36676
36677         * lib/wchar.in.h: In another particular situation, include only the
36678         system's <wchar.h> file.
36679         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36680         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36681         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36682
36683 2009-01-17  Bruno Haible  <bruno@clisp.org>
36684
36685         Support for stripping executables in --enable-relocatable.
36686         * build-aux/install-reloc: Expect one more argument, or an environment
36687         variable RELOC_STRIP_PROG. If set, strip the destination program and
36688         its wrapper.
36689         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36690         RELOC_STRIP_PROG.
36691         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36692         to set RELOCATABLE_STRIP.
36693         * NEWS: Mention the new Makefile requirement.
36694
36695 2009-01-17  Bruno Haible  <bruno@clisp.org>
36696
36697         * build-aux/install-reloc: Remove debugging information left over by
36698         C compiler on MacOS X.
36699
36700 2009-01-17  Bruno Haible  <bruno@clisp.org>
36701
36702         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36703         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36704         _NSGetExecutablePath.
36705
36706 2009-01-16  Jim Meyering  <meyering@redhat.com>
36707
36708         strerror: avoid warnings about discarding "const"
36709         * lib/strerror.c (rpl_strerror): Instead of returning a const
36710         string from each and every "case", use a variable, and add a single
36711         cast after the switch.
36712
36713 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36714
36715         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36716
36717 2009-01-16  Bruno Haible  <bruno@clisp.org>
36718
36719         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36720         array initializer syntax that also works in C++ mode.
36721         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36722
36723 2009-01-16  Jim Meyering  <meyering@redhat.com>
36724
36725         poll: suppress a warning
36726         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36727         to ignore "...unsigned expression < 0 is always false" warnings.
36728
36729 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36730
36731         poll: remove declarations of unused variables
36732         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36733         sockbuf and optlen.
36734
36735 2009-01-15  Bruno Haible  <bruno@clisp.org>
36736
36737         Make fflush-after-ungetc POSIX compliant on BSD systems.
36738         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36739         (clear_ungetc_buffer): Implement also for other systems.
36740         (rpl_fflush): On glibc systems, invoke
36741         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36742         clear_ungetc_buffer after fetching the stream's position, not before.
36743
36744 2009-01-15  Bruno Haible  <bruno@clisp.org>
36745
36746         Make fflush-after-ungetc POSIX compliant on glibc systems.
36747         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36748         after ungetc.
36749         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36750         (rpl_fflush): On glibc systems, simply call the system's fflush
36751         function after clearing the ungetc buffer.
36752         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36753         Instead, lseek only to the end of file, then use the system's fseeko
36754         for the rest. On glibc systems, reset the EOF indicator bit.
36755
36756 2009-01-15  Jim Meyering  <meyering@redhat.com>
36757
36758         openmp.m4: revert quote-adding change, for portability to older autoconf
36759         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36760         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36761         Simon Josefsson noticed the problem when using autoconf-2.61.
36762
36763 2009-01-15  Bruno Haible  <bruno@clisp.org>
36764
36765         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36766         * tests/test-fflush2.c (ASSERT): Always fail.
36767         (main): Add two tests for fflush() after ungetc(), taking into account
36768         the Austin Group's clarification.
36769         Suggested by Eric Blake.
36770
36771 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36772
36773         mktime.m4: remove K&R-style function prototypes
36774         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36775         for the Sun C++ compiler.
36776
36777 2009-01-14  Bruno Haible  <bruno@clisp.org>
36778
36779         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36780         while including <wchar.h>.
36781         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36782         the system's <wchar.h> file.
36783         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36784
36785 2009-01-14  Bruno Haible  <bruno@clisp.org>
36786
36787         * m4/csharp.m4: Don't mention gettext on the serial number line.
36788         * m4/csharpexec.m4: Likewise.
36789         * m4/eaccess.m4: Likewise.
36790         * m4/javaexec.m4: Likewise.
36791         * m4/sig_atomic_t.m4: Likewise.
36792         * m4/tmpdir.m4: Likewise.
36793         * m4/intldir.m4: Bump gettext version.
36794         * m4/lib-ld.m4: Likewise.
36795
36796 2009-01-14  Bruno Haible  <bruno@clisp.org>
36797
36798         * lib/progname.c (set_program_name): Add more comments.
36799         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36800
36801 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36802
36803         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36804         were sys/stat.h does not define it.
36805
36806 2009-01-14  Jim Meyering  <meyering@redhat.com>
36807
36808         many *.m4 files: improve m4 quoting
36809         99% of this change was performed by running the following commands:
36810         git ls-files | grep '\.m4$' | xargs perl -pi \
36811           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36812           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36813           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36814           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36815         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36816         The remainder were to add Copyright dates, increment serial numbers,
36817         undo some changes in comments, exclude m4/intl.m4, and add quotes
36818         around the "1" in ",1" where the unusual spacing prohibited the
36819         above regexps from doing the job.  For more details, see
36820         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36821         * m4/acl.m4: Modified.
36822         * m4/afs.m4: Likewise.
36823         * m4/alloca.m4: Likewise.
36824         * m4/argp.m4: Likewise.
36825         * m4/argz.m4: Likewise.
36826         * m4/atexit.m4: Likewise.
36827         * m4/bison-i18n.m4: Likewise.
36828         * m4/bison.m4: Likewise.
36829         * m4/byteswap.m4: Likewise.
36830         * m4/c-stack.m4: Likewise.
36831         * m4/c-strtod.m4: Likewise.
36832         * m4/calloc.m4: Likewise.
36833         * m4/canonicalize-lgpl.m4: Likewise.
36834         * m4/chown.m4: Likewise.
36835         * m4/clock_time.m4: Likewise.
36836         * m4/codeset.m4: Likewise.
36837         * m4/copy-file.m4: Likewise.
36838         * m4/csharp.m4: Likewise.
36839         * m4/csharpcomp.m4: Likewise.
36840         * m4/csharpexec.m4: Likewise.
36841         * m4/d-ino.m4: Likewise.
36842         * m4/d-type.m4: Likewise.
36843         * m4/dirfd.m4: Likewise.
36844         * m4/double-slash-root.m4: Likewise.
36845         * m4/eaccess.m4: Likewise.
36846         * m4/eealloc.m4: Likewise.
36847         * m4/environ.m4: Likewise.
36848         * m4/errno_h.m4: Likewise.
36849         * m4/euidaccess.m4: Likewise.
36850         * m4/execute.m4: Likewise.
36851         * m4/fatal-signal.m4: Likewise.
36852         * m4/fchdir.m4: Likewise.
36853         * m4/fcntl_h.m4: Likewise.
36854         * m4/fileblocks.m4: Likewise.
36855         * m4/filenamecat.m4: Likewise.
36856         * m4/findprog.m4: Likewise.
36857         * m4/flexmember.m4: Likewise.
36858         * m4/fnmatch.m4: Likewise.
36859         * m4/fopen.m4: Likewise.
36860         * m4/fpending.m4: Likewise.
36861         * m4/fprintf-posix.m4: Likewise.
36862         * m4/free.m4: Likewise.
36863         * m4/frexp.m4: Likewise.
36864         * m4/frexpl.m4: Likewise.
36865         * m4/fsusage.m4: Likewise.
36866         * m4/ftruncate.m4: Likewise.
36867         * m4/gc-camellia.m4: Likewise.
36868         * m4/gc-random.m4: Likewise.
36869         * m4/gc.m4: Likewise.
36870         * m4/getaddrinfo.m4: Likewise.
36871         * m4/getcwd-abort-bug.m4: Likewise.
36872         * m4/getcwd-path-max.m4: Likewise.
36873         * m4/getdate.m4: Likewise.
36874         * m4/getdomainname.m4: Likewise.
36875         * m4/getgroups.m4: Likewise.
36876         * m4/gethostname.m4: Likewise.
36877         * m4/gethrxtime.m4: Likewise.
36878         * m4/getline.m4: Likewise.
36879         * m4/getloadavg.m4: Likewise.
36880         * m4/getndelim2.m4: Likewise.
36881         * m4/getpass.m4: Likewise.
36882         * m4/gettext.m4: Likewise.
36883         * m4/gettime.m4: Likewise.
36884         * m4/gettimeofday.m4: Likewise.
36885         * m4/gnulib-common.m4: Likewise.
36886         * m4/group-member.m4: Likewise.
36887         * m4/host-os.m4: Likewise.
36888         * m4/iconv.m4: Likewise.
36889         * m4/iconv_open.m4: Likewise.
36890         * m4/inet_ntop.m4: Likewise.
36891         * m4/inet_pton.m4: Likewise.
36892         * m4/inline.m4: Likewise.
36893         * m4/intldir.m4: Likewise.
36894         * m4/intlmacosx.m4: Likewise.
36895         * m4/intmax.m4: Likewise.
36896         * m4/intmax_t.m4: Likewise.
36897         * m4/inttypes.m4: Likewise.
36898         * m4/inttypes_h.m4: Likewise.
36899         * m4/inttypes-pri.m4: Likewise.
36900         * m4/isapipe.m4: Likewise.
36901         * m4/isnand.m4: Likewise.
36902         * m4/isnanf.m4: Likewise.
36903         * m4/isnanl.m4: Likewise.
36904         * m4/javacomp.m4: Likewise.
36905         * m4/javaexec.m4: Likewise.
36906         * m4/jm-winsz1.m4: Likewise.
36907         * m4/jm-winsz2.m4: Likewise.
36908         * m4/lchown.m4: Likewise.
36909         * m4/lcmessage.m4: Likewise.
36910         * m4/ldexpl.m4: Likewise.
36911         * m4/lib-ld.m4: Likewise.
36912         * m4/lib-link.m4: Likewise.
36913         * m4/libsigsegv.m4: Likewise.
36914         * m4/link-follow.m4: Likewise.
36915         * m4/localcharset.m4: Likewise.
36916         * m4/locale-fr.m4: Likewise.
36917         * m4/locale-ja.m4: Likewise.
36918         * m4/locale-tr.m4: Likewise.
36919         * m4/locale-zh.m4: Likewise.
36920         * m4/lock.m4: Likewise.
36921         * m4/longlong.m4: Likewise.
36922         * m4/ls-mntd-fs.m4: Likewise.
36923         * m4/lstat.m4: Likewise.
36924         * m4/malloc.m4: Likewise.
36925         * m4/mathl.m4: Likewise.
36926         * m4/mbrtowc.m4: Likewise.
36927         * m4/mbstate_t.m4: Likewise.
36928         * m4/mbswidth.m4: Likewise.
36929         * m4/memchr.m4: Likewise.
36930         * m4/memcmp.m4: Likewise.
36931         * m4/memcpy.m4: Likewise.
36932         * m4/memmem.m4: Likewise.
36933         * m4/memmove.m4: Likewise.
36934         * m4/mempcpy.m4: Likewise.
36935         * m4/memrchr.m4: Likewise.
36936         * m4/memset.m4: Likewise.
36937         * m4/minmax.m4: Likewise.
36938         * m4/mkdir-slash.m4: Likewise.
36939         * m4/mkdtemp.m4: Likewise.
36940         * m4/mktime.m4: Likewise.
36941         * m4/mmap-anon.m4: Likewise.
36942         * m4/mountlist.m4: Likewise.
36943         * m4/nanosleep.m4: Likewise.
36944         * m4/nls.m4: Likewise.
36945         * m4/nocrash.m4: Likewise.
36946         * m4/open.m4: Likewise.
36947         * m4/openat.m4: Likewise.
36948         * m4/openmp.m4: Likewise.
36949         * m4/pathmax.m4: Likewise.
36950         * m4/perl.m4: Likewise.
36951         * m4/physmem.m4: Likewise.
36952         * m4/pipe.m4: Likewise.
36953         * m4/po.m4: Likewise.
36954         * m4/poll.m4: Likewise.
36955         * m4/posixtm.m4: Likewise.
36956         * m4/posixver.m4: Likewise.
36957         * m4/printf-frexp.m4: Likewise.
36958         * m4/printf-frexpl.m4: Likewise.
36959         * m4/printf-posix.m4: Likewise.
36960         * m4/printf-posix-rpl.m4: Likewise.
36961         * m4/printf.m4: Likewise.
36962         * m4/progtest.m4: Likewise.
36963         * m4/putenv.m4: Likewise.
36964         * m4/readline.m4: Likewise.
36965         * m4/readlink.m4: Likewise.
36966         * m4/readutmp.m4: Likewise.
36967         * m4/realloc.m4: Likewise.
36968         * m4/regex.m4: Likewise.
36969         * m4/relocatable.m4: Likewise.
36970         * m4/relocatable-lib.m4: Likewise.
36971         * m4/rename-dest-slash.m4: Likewise.
36972         * m4/rename.m4: Likewise.
36973         * m4/rmdir-errno.m4: Likewise.
36974         * m4/rmdir.m4: Likewise.
36975         * m4/roundf.m4: Likewise.
36976         * m4/roundl.m4: Likewise.
36977         * m4/rpmatch.m4: Likewise.
36978         * m4/save-cwd.m4: Likewise.
36979         * m4/selinux-selinux-h.m4: Likewise.
36980         * m4/setenv.m4: Likewise.
36981         * m4/settime.m4: Likewise.
36982         * m4/sig2str.m4: Likewise.
36983         * m4/sig_atomic_t.m4: Likewise.
36984         * m4/signalblocking.m4: Likewise.
36985         * m4/signbit.m4: Likewise.
36986         * m4/sigpipe.m4: Likewise.
36987         * m4/sockets.m4: Likewise.
36988         * m4/sockpfaf.m4: Likewise.
36989         * m4/st_dm_mode.m4: Likewise.
36990         * m4/stat-time.m4: Likewise.
36991         * m4/stdbool.m4: Likewise.
36992         * m4/stdint.m4: Likewise.
36993         * m4/stdint_h.m4: Likewise.
36994         * m4/stpcpy.m4: Likewise.
36995         * m4/stpncpy.m4: Likewise.
36996         * m4/strcase.m4: Likewise.
36997         * m4/strchrnul.m4: Likewise.
36998         * m4/strcspn.m4: Likewise.
36999         * m4/strdup.m4: Likewise.
37000         * m4/strftime.m4: Likewise.
37001         * m4/strndup.m4: Likewise.
37002         * m4/strnlen.m4: Likewise.
37003         * m4/strpbrk.m4: Likewise.
37004         * m4/strptime.m4: Likewise.
37005         * m4/strsep.m4: Likewise.
37006         * m4/strtod.m4: Likewise.
37007         * m4/strtoimax.m4: Likewise.
37008         * m4/strtok_r.m4: Likewise.
37009         * m4/strtol.m4: Likewise.
37010         * m4/strtoll.m4: Likewise.
37011         * m4/strtoul.m4: Likewise.
37012         * m4/strtoull.m4: Likewise.
37013         * m4/strtoumax.m4: Likewise.
37014         * m4/strverscmp.m4: Likewise.
37015         * m4/threadlib.m4: Likewise.
37016         * m4/timegm.m4: Likewise.
37017         * m4/tm_gmtoff.m4: Likewise.
37018         * m4/tmpdir.m4: Likewise.
37019         * m4/tmpfile.m4: Likewise.
37020         * m4/tzset.m4: Likewise.
37021         * m4/uintmax_t.m4: Likewise.
37022         * m4/unlinkdir.m4: Likewise.
37023         * m4/unlocked-io.m4: Likewise.
37024         * m4/uptime.m4: Likewise.
37025         * m4/userspec.m4: Likewise.
37026         * m4/utimbuf.m4: Likewise.
37027         * m4/utime.m4: Likewise.
37028         * m4/utimes-null.m4: Likewise.
37029         * m4/utimes.m4: Likewise.
37030         * m4/vararrays.m4: Likewise.
37031         * m4/vasnprintf.m4: Likewise.
37032         * m4/vfprintf-posix.m4: Likewise.
37033         * m4/vprintf-posix.m4: Likewise.
37034         * m4/wait-process.m4: Likewise.
37035         * m4/wchar_t.m4: Likewise.
37036         * m4/wint_t.m4: Likewise.
37037         * m4/write-any-file.m4: Likewise.
37038         * m4/yield.m4: Likewise.
37039
37040 2009-01-13  Bruno Haible  <bruno@clisp.org>
37041
37042         Avoid test-copy-file.sh failures when ACL support insufficient.
37043         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
37044         TESTS_ENVIRONMENT.
37045         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
37046         Reported by Jim Meyering.
37047
37048 2009-01-13  Bruno Haible  <bruno@clisp.org>
37049
37050         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
37051         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
37052         * modules/unistdio/u8-printf-parse (Files): Likewise.
37053         * modules/unistdio/u32-printf-parse (Files): Likewise.
37054         * modules/unistdio/ulc-printf-parse (Files): Likewise.
37055
37056 2009-01-13  Simon Josefsson  <simon@josefsson.org>
37057
37058         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
37059         and m4/inttypes_h.m4 too.
37060
37061 2009-01-12  Eric Blake  <ebb9@byu.net>
37062
37063         tests: IRIX 6.2 cc can't compile -0.0 into .data
37064         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
37065         rather than at compile-time.
37066         * tests/test-floorl.c (minus_zero): Likewise.
37067         * tests/test-frexpl.c (minus_zero): Likewise.
37068         * tests/test-isnan.c (minus_zerol): Likewise.
37069         * tests/test-isnanl.h (minus_zero): Likewise.
37070         * tests/test-ldexpl.c (minus_zero): Likewise.
37071         * tests/test-roundl.c (minus_zero): Likewise.
37072         * tests/test-signbit.c (minus_zerol): Likewise.
37073         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37074         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37075         * tests/test-truncl.c (minus_zero): Likewise.
37076         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37077         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37078         Reported by Tom G. Christensen and Nelson H. F. Beebe.
37079
37080 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37081
37082         regex: fix glibc bug 9697
37083         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
37084         handling.
37085
37086 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37087
37088         regex: fix glibc bug 697
37089         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
37090         being NULL also if there are no backreferences.
37091
37092 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37093
37094         regex: merge glibc changes
37095         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
37096         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
37097         re_string_skip_chars, re_string_reconstruct): Likewise.
37098         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
37099
37100 2009-01-07  Jim Meyering  <meyering@redhat.com>
37101
37102         poll: filter through cppi
37103         * lib/poll.c: Indent cpp directives to reflect nesting.
37104
37105 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
37106
37107         poll: don't return uninitialized
37108         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
37109
37110 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
37111
37112         avoid compile failure on AIX 6.1
37113         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37114         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37115
37116 2009-01-04  Jim Meyering  <meyering@redhat.com>
37117
37118         remove duplicate inclusion of <stdio.h>
37119         * tests/test-fprintf-posix.c: Likewise.
37120         * tests/test-printf-posix.c: Likewise.
37121         * tests/test-snprintf-posix.c: Likewise.
37122         * tests/test-sprintf-posix.c: Likewise.
37123         * tests/test-vasprintf-posix.c: Likewise.
37124         * tests/test-vfprintf-posix.c: Likewise.
37125         * tests/test-vprintf-posix.c: Likewise.
37126         * tests/test-vsnprintf-posix.c: Likewise.
37127         * tests/test-vsprintf-posix.c: Likewise.
37128
37129 2009-01-03  Jim Meyering  <meyering@redhat.com>
37130
37131         gnulib-tool: fix sed-based filtering
37132         * gnulib-tool (func_filter_filelist): Remove extra backslash
37133         in sed_fff_filter definition.
37134
37135 2009-01-02  Jim Meyering  <meyering@redhat.com>
37136
37137         strftime: avoid compilation failure on Solaris 2.6
37138         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
37139         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
37140         Don't #define mbrlen or mbsinit, since now they're guaranteed to
37141         be available.  Reported by Tom G. Christensen.  Details in
37142         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
37143
37144 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37145             Bruno Haible  <bruno@clisp.org>
37146
37147         Speed up gnulib-tool by doing more string processing through shell
37148         built-ins.
37149         * gnulib-tool (fast_func_append): New variable.
37150         (func_remove_prefix, func_remove_suffix): New functions.
37151         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
37152         (func_filter_filelist): New function.
37153         (func_get_dependencies): Use func_remove_suffix instead of sed.
37154         (func_get_automake_snippet): Use func_filter_filelist instead of a
37155         subshell and sed invocation.
37156
37157 2009-01-01  Bruno Haible  <bruno@clisp.org>
37158
37159         Fix a security bug.
37160         * gnulib-tool (func_import, import, update): Don't allow the characters
37161         '"', '$', '`', '\' in macro arguments that become part of commands that
37162         are evaluated.
37163
37164 2009-01-01  Bruno Haible  <bruno@clisp.org>
37165
37166         * gnulib-tool (func_reset_sigpipe): Add more comments.
37167
37168 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37169
37170         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
37171         func_emit_tests_Makefile_am, func_import): Abort loops early if we
37172         already know the answer.
37173
37174 2009-01-01  Jim Meyering  <meyering@redhat.com>
37175
37176         * lib/version-etc.c (version_etc_va): Update copyright year.
37177
37178 2008-12-30  Bruno Haible  <bruno@clisp.org>
37179
37180         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
37181         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
37182         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
37183
37184 2008-12-29  Eric Blake  <ebb9@byu.net>
37185
37186         multiarch: avoid autoconf AC_REQUIRE bug
37187         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
37188         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
37189         2.63 and older.
37190         Reported by Bruno Haible, and analyzed in
37191         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
37192
37193 2008-12-29  Bruno Haible  <bruno@clisp.org>
37194
37195         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
37196         files in subdirectories correctly.
37197         Reported by Ralf Wildenhues.
37198
37199 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37200
37201         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
37202         rather than 'join FILE -', for Solaris join.
37203
37204 2008-12-29  Bruno Haible  <bruno@clisp.org>
37205
37206         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
37207         quoting.
37208         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37209         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37210         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37211         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
37212         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37213         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
37214         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
37215         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
37216         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37217         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
37218         * m4/nls.m4 (AM_NLS): Likewise.
37219         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
37220         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
37221         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37222         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
37223         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
37224         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
37225         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
37226         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
37227         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
37228         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37229         * m4/xsize.m4 (gl_XSIZE): Likewise.
37230         Suggested by Jim Meyering.
37231
37232 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37233
37234         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
37235         * lib/parse-duration.c: use a switch instead of cascading if's.
37236
37237 2008-12-29  Eric Blake  <ebb9@byu.net>
37238
37239         wchar.h: supply WEOF on Irix 5.3
37240         * lib/wchar.in.h (wint_t): Also supply WEOF.
37241         * lib/wctype.in.h (wint_t): Likewise.
37242         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
37243         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
37244         Reported by Tom G. Christensen.
37245
37246 2008-12-26  Bruno Haible  <bruno@clisp.org>
37247
37248         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
37249         i486, i586, i686.
37250
37251 2008-12-26  Bruno Haible  <bruno@clisp.org>
37252
37253         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
37254
37255 2008-12-26  Bruno Haible  <bruno@clisp.org>
37256
37257         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
37258         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
37259         not __STDC_CONSTANT_MACROS.
37260         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37261
37262 2008-12-25  Bruno Haible  <bruno@clisp.org>
37263
37264         Add support for universal builds to vasnprintf.
37265         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
37266         universal builds, guess no.
37267         * modules/vasnprintf-posix (Depends-on): Add multiarch.
37268         * modules/vasprintf-posix (Depends-on): Likewise.
37269         * modules/fprintf-posix (Depends-on): Likewise.
37270         * modules/vfprintf-posix (Depends-on): Likewise.
37271         * modules/snprintf-posix (Depends-on): Likewise.
37272         * modules/vsnprintf-posix (Depends-on): Likewise.
37273         * modules/sprintf-posix (Depends-on): Likewise.
37274         * modules/vsprintf-posix (Depends-on): Likewise.
37275         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37276         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37277         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37278         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37279         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37280         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37281         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37282
37283         Add support for universal builds to <inttypes.h>.
37284         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
37285         _SCNu64_PREFIX): In Apple
37286         universal builds, define directly, using _LP64.
37287         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
37288         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
37289         * modules/inttypes (Depends-on): Add multiarch.
37290         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37291
37292         Add support for universal builds to <stdint.h>.
37293         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
37294         universal builds, define directly, using _LP64.
37295         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37296         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37297         and size_t.
37298         * modules/stdint (Depends-on): Add multiarch.
37299         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37300
37301         New module 'multiarch'.
37302         * modules/multiarch: New file.
37303         * m4/multiarch.m4: New file.
37304
37305 2008-12-25  Bruno Haible  <bruno@clisp.org>
37306
37307         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37308
37309 2008-12-25  Bruno Haible  <bruno@clisp.org>
37310
37311         * modules/btowc (License): Relicense under LGPLv2+.
37312         * modules/mbsinit (License): Likewise.
37313         * modules/mbrtowc (License): Likewise.
37314         * modules/wcrtomb (License): Likewise.
37315         * modules/streq (License): Likewise.
37316         Reported by David Lutterkort <lutter@redhat.com>.
37317
37318 2008-12-23  Bruno Haible  <bruno@clisp.org>
37319
37320         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37321
37322 2008-12-23  Bruno Haible  <bruno@clisp.org>
37323
37324         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37325         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37326         GETADDRINFO_LIB, not in LIBS.
37327         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37328         * modules/canon-host (Link): Likewise.
37329         * NEWS: Mention the change.
37330         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37331         GETADDRINFO_LIB.
37332
37333 2008-12-22  Bruno Haible  <bruno@clisp.org>
37334
37335         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37336         * doc/posix-functions/iswalpha_l.texi: Likewise.
37337         * doc/posix-functions/iswblank_l.texi: Likewise.
37338         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37339         * doc/posix-functions/iswctype_l.texi: Likewise.
37340         * doc/posix-functions/iswdigit_l.texi: Likewise.
37341         * doc/posix-functions/iswgraph_l.texi: Likewise.
37342         * doc/posix-functions/iswlower_l.texi: Likewise.
37343         * doc/posix-functions/iswprint_l.texi: Likewise.
37344         * doc/posix-functions/iswpunct_l.texi: Likewise.
37345         * doc/posix-functions/iswspace_l.texi: Likewise.
37346         * doc/posix-functions/iswupper_l.texi: Likewise.
37347         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37348         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37349         * doc/posix-functions/open_wmemstream.texi: Likewise.
37350         * doc/posix-functions/swscanf.texi: Likewise.
37351         * doc/posix-functions/towctrans_l.texi: Likewise.
37352         * doc/posix-functions/towlower.texi: Likewise.
37353         * doc/posix-functions/towlower_l.texi: Likewise.
37354         * doc/posix-functions/towupper.texi: Likewise.
37355         * doc/posix-functions/towupper_l.texi: Likewise.
37356         * doc/posix-functions/vfwprintf.texi: Likewise.
37357         * doc/posix-functions/vfwscanf.texi: Likewise.
37358         * doc/posix-functions/vswscanf.texi: Likewise.
37359         * doc/posix-functions/vwprintf.texi: Likewise.
37360         * doc/posix-functions/vwscanf.texi: Likewise.
37361         * doc/posix-functions/wcpcpy.texi: Likewise.
37362         * doc/posix-functions/wcpncpy.texi: Likewise.
37363         * doc/posix-functions/wcscasecmp.texi: Likewise.
37364         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37365         * doc/posix-functions/wcscoll_l.texi: Likewise.
37366         * doc/posix-functions/wcsdup.texi: Likewise.
37367         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37368         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37369         * doc/posix-functions/wcsnlen.texi: Likewise.
37370         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37371         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37372         * doc/posix-functions/wctrans_l.texi: Likewise.
37373         * doc/posix-functions/wctype_l.texi: Likewise.
37374         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37375         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37376         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37377         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37378         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37379         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37380         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37381         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37382         * doc/glibc-functions/wcschrnul.texi: Likewise.
37383         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37384         * doc/glibc-functions/wcstod_l.texi: Likewise.
37385         * doc/glibc-functions/wcstof_l.texi: Likewise.
37386         * doc/glibc-functions/wcstol_l.texi: Likewise.
37387         * doc/glibc-functions/wcstold_l.texi: Likewise.
37388         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37389         * doc/glibc-functions/wcstoq.texi: Likewise.
37390         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37391         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37392         * doc/glibc-functions/wcstouq.texi: Likewise.
37393         * doc/glibc-functions/wmempcpy.texi: Likewise.
37394
37395 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37396             Eric Blake  <ebb9@byu.net>
37397             Paolo Bonzini  <bonzini@gnu.org>
37398             Bruno Haible  <bruno@clisp.org>
37399
37400         Make c-stack work on Haiku.
37401         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37402         (c_stack_action): Use SA_ONSTACK flag.
37403
37404 2008-12-22  Bruno Haible  <bruno@clisp.org>
37405
37406         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37407
37408 2008-12-22  Bruno Haible  <bruno@clisp.org>
37409
37410         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37411         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37412         being overridden.
37413         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37414         New macros.
37415         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37416         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37417         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37418         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37419
37420 2008-12-22  Bruno Haible  <bruno@clisp.org>
37421
37422         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37423         from test code.
37424
37425 2008-12-22  Eric Blake  <ebb9@byu.net>
37426
37427         Avoid gcc warnings on cygwin.
37428         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37429         Avoid unused variable.
37430         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37431         Likewise.
37432
37433 2008-12-22  Bruno Haible  <bruno@clisp.org>
37434
37435         Remove HAVE_MBRTOWC conditionals.
37436         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37437         (mbscasecmp): Assume mbrtowc function.
37438         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37439         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37440         * lib/mbschr.c: Include mbuiter.h unconditionally.
37441         (mbschr): Assume mbrtowc function.
37442         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37443         (mbscspn): Assume mbrtowc function.
37444         * lib/mbslen.c: Include mbuiter.h unconditionally.
37445         (mbslen): Assume mbrtowc function.
37446         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37447         (mbsncasecmp): Assume mbrtowc function.
37448         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37449         (mbsnlen): Assume mbrtowc function.
37450         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37451         (mbspbrk): Assume mbrtowc function.
37452         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37453         (mbspcasecmp): Assume mbrtowc function.
37454         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37455         (mbsrchr): Assume mbrtowc function.
37456         * lib/mbssep.c: Include mbuiter.h unconditionally.
37457         (mbssep): Assume mbrtowc function.
37458         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37459         (mbsspn): Assume mbrtowc function.
37460         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37461         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37462         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37463         (mbstok_r): Assume mbrtowc function.
37464         * lib/propername.c: Include mbuiter.h unconditionally.
37465         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37466         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37467         (trim2): Assume mbrtowc function.
37468         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37469         (mbsnwidth): Assume mbrtowc function.
37470         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37471         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37472         fallback definitions.
37473         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37474
37475 2008-12-22  Bruno Haible  <bruno@clisp.org>
37476
37477         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37478
37479 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37480
37481         * modules/regex: Request emulations for the mb*/wc* functions we need.
37482         * m4/regex.m4: Don't look for those functions here.
37483         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37484
37485 2008-12-22  Bruno Haible  <bruno@clisp.org>
37486
37487         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37488
37489 2008-12-21  Bruno Haible  <bruno@clisp.org>
37490
37491         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37492         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37493         (Include): Remove conditionalization.
37494         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37495         (Include): Remove conditionalization.
37496         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37497         (Include): Remove conditionalization.
37498         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37499         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37500         * NEWS: Mention the change.
37501         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37502         via Sergey Poznyakoff <gray@gnu.org.ua>.
37503
37504 2008-12-21  Bruno Haible  <bruno@clisp.org>
37505
37506         * MODULES.html.sh (Extended multibyte and wide character utilities
37507         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37508         wcrtomb, wcsrtombs.
37509         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37510         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37511         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37512         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37513
37514 2008-12-21  Bruno Haible  <bruno@clisp.org>
37515
37516         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37517
37518 2008-12-21  Bruno Haible  <bruno@clisp.org>
37519
37520         * modules/wcsnrtombs-tests: New file.
37521         * tests/test-wcsnrtombs1.sh: New file.
37522         * tests/test-wcsnrtombs2.sh: New file.
37523         * tests/test-wcsnrtombs3.sh: New file.
37524         * tests/test-wcsnrtombs4.sh: New file.
37525         * tests/test-wcsnrtombs.c: New file.
37526
37527         New module 'wcsnrtombs'.
37528         * lib/wchar.in.h (wcsnrtombs): New declaration.
37529         * lib/wcsnrtombs.c: New file.
37530         * lib/wcsrtombs-state.c: New file.
37531         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37532         (internal_state): Remove variable.
37533         * m4/wcsnrtombs.m4: New file.
37534         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37535         compilation units.
37536         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37537         HAVE_WCSNRTOMBS.
37538         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37539         HAVE_WCSNRTOMBS.
37540         * modules/wcsnrtombs: New file.
37541         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37542         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37543
37544 2008-12-21  Bruno Haible  <bruno@clisp.org>
37545
37546         * modules/wcsrtombs-tests: New file.
37547         * tests/test-wcsrtombs1.sh: New file.
37548         * tests/test-wcsrtombs2.sh: New file.
37549         * tests/test-wcsrtombs3.sh: New file.
37550         * tests/test-wcsrtombs4.sh: New file.
37551         * tests/test-wcsrtombs.c: New file.
37552
37553         New module 'wcsrtombs'.
37554         * lib/wchar.in.h (wcsrtombs): New declaration.
37555         * lib/wcsrtombs.c: New file.
37556         * m4/wcsrtombs.m4: New file.
37557         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37558         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37559         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37560         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37561         * modules/wcsrtombs: New file.
37562         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37563         bugs.
37564
37565 2008-12-21  Bruno Haible  <bruno@clisp.org>
37566
37567         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37568         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37569         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37570         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37571         if not correct.
37572         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37573         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37574         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37575         m4/locale-zh.m4, m4/codeset.m4.
37576         * doc/posix-functions/wcrtomb.texi: Document the bug.
37577
37578 2008-12-21  Bruno Haible  <bruno@clisp.org>
37579
37580         Work around a btowc() bug on IRIX 6.5.
37581         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37582         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37583         REPLACE_WTOBC if not.
37584         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37585         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37586         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37587
37588 2008-12-21  Bruno Haible  <bruno@clisp.org>
37589
37590         * modules/wcrtomb-tests: New file.
37591         * tests/test-wcrtomb.sh: New file.
37592         * tests/test-wcrtomb.c: New file.
37593
37594         New module 'wcrtomb'.
37595         * lib/wchar.in.h (wcrtomb): New declaration.
37596         * lib/wcrtomb.c: New file.
37597         * m4/wcrtomb.m4: New file.
37598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37599         HAVE_WCRTOMB.
37600         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37601         HAVE_WCRTOMB.
37602         * modules/wcrtomb: New file.
37603         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37604
37605 2008-12-21  Bruno Haible  <bruno@clisp.org>
37606
37607         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37608         * modules/mbsrtowcs (Files): Likewise.
37609         * modules/wctob (Files): Likewise.
37610         * modules/c-strcase-tests (Files): Likewise.
37611         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37612         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37613         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37614         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37615         * modules/vasnprintf-posix-tests (Files): Likewise.
37616
37617 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37618
37619         gitlog-to-changelog: pass all command-line arguments to git-log
37620         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37621         it is sometimes convenient to filter the commits in various ways.
37622         gitlog-to-changelog only allows --since to specify a start date,
37623         but git-log itself supports many other filtering mechanisms.
37624         At the moment, I want to filter by branch name.  Rather than
37625         adding a --branch option to gitlog-to-changelog, it seems more
37626         flexible to simply pass all options directly to git-log and let
37627         git do the work.  Notice that this effectively makes --since a
37628         redundant option for gitlog-to-changelog, but removing it would
37629         require current usage to change since calls would then require
37630         an additional '--'.
37631
37632 2008-12-21  Bruno Haible  <bruno@clisp.org>
37633
37634         * modules/mbsnrtowcs-tests: New file.
37635         * tests/test-mbsnrtowcs1.sh: New file.
37636         * tests/test-mbsnrtowcs2.sh: New file.
37637         * tests/test-mbsnrtowcs3.sh: New file.
37638         * tests/test-mbsnrtowcs4.sh: New file.
37639         * tests/test-mbsnrtowcs.c: New file.
37640
37641         New module 'mbsnrtowcs'.
37642         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37643         * lib/mbsnrtowcs.c: New file.
37644         * lib/mbsrtowcs-state.c: New file.
37645         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37646         (internal_state): Remove variable.
37647         * m4/mbsnrtowcs.m4: New file.
37648         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37649         compilation units.
37650         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37651         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37652         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37653         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37654         * modules/mbsnrtowcs: New file.
37655         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37656         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37657         portability problem.
37658
37659 2008-12-21  Bruno Haible  <bruno@clisp.org>
37660
37661         Work around mbsrtowcs bug.
37662         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37663         (gl_FUNC_MBSRTOWCS): Invoke it.
37664         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37665         m4/locale-zh.m4.
37666         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37667
37668 2008-12-21  Bruno Haible  <bruno@clisp.org>
37669
37670         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37671
37672 2008-12-21  Bruno Haible  <bruno@clisp.org>
37673
37674         Update doc for AIX.
37675         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37676         16-bit wchar_t type.
37677         * doc/posix-functions/btowc.texi: Likewise.
37678         * doc/posix-functions/fgetwc.texi: Likewise.
37679         * doc/posix-functions/fgetws.texi: Likewise.
37680         * doc/posix-functions/fputwc.texi: Likewise.
37681         * doc/posix-functions/fputws.texi: Likewise.
37682         * doc/posix-functions/fwide.texi: Likewise.
37683         * doc/posix-functions/fwprintf.texi: Likewise.
37684         * doc/posix-functions/fwscanf.texi: Likewise.
37685         * doc/posix-functions/getwchar.texi: Likewise.
37686         * doc/posix-functions/getwc.texi: Likewise.
37687         * doc/posix-functions/iswalnum.texi: Likewise.
37688         * doc/posix-functions/iswalpha.texi: Likewise.
37689         * doc/posix-functions/iswblank.texi: Likewise.
37690         * doc/posix-functions/iswcntrl.texi: Likewise.
37691         * doc/posix-functions/iswctype.texi: Likewise.
37692         * doc/posix-functions/iswdigit.texi: Likewise.
37693         * doc/posix-functions/iswgraph.texi: Likewise.
37694         * doc/posix-functions/iswlower.texi: Likewise.
37695         * doc/posix-functions/iswprint.texi: Likewise.
37696         * doc/posix-functions/iswpunct.texi: Likewise.
37697         * doc/posix-functions/iswspace.texi: Likewise.
37698         * doc/posix-functions/iswupper.texi: Likewise.
37699         * doc/posix-functions/iswxdigit.texi: Likewise.
37700         * doc/posix-functions/mbrtowc.texi: Likewise.
37701         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37702         * doc/posix-functions/mbstowcs.texi: Likewise.
37703         * doc/posix-functions/mbtowc.texi: Likewise.
37704         * doc/posix-functions/putwchar.texi: Likewise.
37705         * doc/posix-functions/putwc.texi: Likewise.
37706         * doc/posix-functions/swprintf.texi: Likewise.
37707         * doc/posix-functions/tolower.texi: Likewise.
37708         * doc/posix-functions/toupper.texi: Likewise.
37709         * doc/posix-functions/towctrans.texi: Likewise.
37710         * doc/posix-functions/ungetwc.texi: Likewise.
37711         * doc/posix-functions/vswprintf.texi: Likewise.
37712         * doc/posix-functions/wcrtomb.texi: Likewise.
37713         * doc/posix-functions/wcscat.texi: Likewise.
37714         * doc/posix-functions/wcschr.texi: Likewise.
37715         * doc/posix-functions/wcscmp.texi: Likewise.
37716         * doc/posix-functions/wcscoll.texi: Likewise.
37717         * doc/posix-functions/wcscpy.texi: Likewise.
37718         * doc/posix-functions/wcscspn.texi: Likewise.
37719         * doc/posix-functions/wcsftime.texi: Likewise.
37720         * doc/posix-functions/wcslen.texi: Likewise.
37721         * doc/posix-functions/wcsncat.texi: Likewise.
37722         * doc/posix-functions/wcsncmp.texi: Likewise.
37723         * doc/posix-functions/wcsncpy.texi: Likewise.
37724         * doc/posix-functions/wcspbrk.texi: Likewise.
37725         * doc/posix-functions/wcsrchr.texi: Likewise.
37726         * doc/posix-functions/wcsrtombs.texi: Likewise.
37727         * doc/posix-functions/wcsspn.texi: Likewise.
37728         * doc/posix-functions/wcsstr.texi: Likewise.
37729         * doc/posix-functions/wcstod.texi: Likewise.
37730         * doc/posix-functions/wcstof.texi: Likewise.
37731         * doc/posix-functions/wcstoimax.texi: Likewise.
37732         * doc/posix-functions/wcstok.texi: Likewise.
37733         * doc/posix-functions/wcstold.texi: Likewise.
37734         * doc/posix-functions/wcstoll.texi: Likewise.
37735         * doc/posix-functions/wcstol.texi: Likewise.
37736         * doc/posix-functions/wcstombs.texi: Likewise.
37737         * doc/posix-functions/wcstoull.texi: Likewise.
37738         * doc/posix-functions/wcstoul.texi: Likewise.
37739         * doc/posix-functions/wcstoumax.texi: Likewise.
37740         * doc/posix-functions/wcswidth.texi: Likewise.
37741         * doc/posix-functions/wcsxfrm.texi: Likewise.
37742         * doc/posix-functions/wctob.texi: Likewise.
37743         * doc/posix-functions/wctomb.texi: Likewise.
37744         * doc/posix-functions/wctrans.texi: Likewise.
37745         * doc/posix-functions/wctype.texi: Likewise.
37746         * doc/posix-functions/wcwidth.texi: Likewise.
37747         * doc/posix-functions/wmemchr.texi: Likewise.
37748         * doc/posix-functions/wmemcmp.texi: Likewise.
37749         * doc/posix-functions/wmemcpy.texi: Likewise.
37750         * doc/posix-functions/wmemmove.texi: Likewise.
37751         * doc/posix-functions/wmemset.texi: Likewise.
37752         * doc/posix-functions/wprintf.texi: Likewise.
37753         * doc/posix-functions/wscanf.texi: Likewise.
37754
37755 2008-12-21  Bruno Haible  <bruno@clisp.org>
37756
37757         Update doc for HP-UX 11.11.
37758         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37759         in HP-UX version 11.00, not in all versions of HP-UX 11.
37760         * doc/posix-functions/fwide.texi: Likewise.
37761         * doc/posix-functions/fwprintf.texi: Likewise.
37762         * doc/posix-functions/fwscanf.texi: Likewise.
37763         * doc/posix-functions/inet_ntop.texi: Likewise.
37764         * doc/posix-functions/inet_pton.texi: Likewise.
37765         * doc/posix-functions/mbrlen.texi: Likewise.
37766         * doc/posix-functions/mbrtowc.texi: Likewise.
37767         * doc/posix-functions/mbsinit.texi: Likewise.
37768         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37769         * doc/posix-functions/swprintf.texi: Likewise.
37770         * doc/posix-functions/swscanf.texi: Likewise.
37771         * doc/posix-functions/towctrans.texi: Likewise.
37772         * doc/posix-functions/vfwprintf.texi: Likewise.
37773         * doc/posix-functions/vswprintf.texi: Likewise.
37774         * doc/posix-functions/vwprintf.texi: Likewise.
37775         * doc/posix-functions/wcrtomb.texi: Likewise.
37776         * doc/posix-functions/wcsrtombs.texi: Likewise.
37777         * doc/posix-functions/wcsstr.texi: Likewise.
37778         * doc/posix-functions/wctob.texi: Likewise.
37779         * doc/posix-functions/wctrans.texi: Likewise.
37780         * doc/posix-functions/wmemchr.texi: Likewise.
37781         * doc/posix-functions/wmemcmp.texi: Likewise.
37782         * doc/posix-functions/wmemcpy.texi: Likewise.
37783         * doc/posix-functions/wmemmove.texi: Likewise.
37784         * doc/posix-functions/wmemset.texi: Likewise.
37785         * doc/posix-functions/wprintf.texi: Likewise.
37786         * doc/posix-functions/wscanf.texi: Likewise.
37787
37788 2008-12-21  Bruno Haible  <bruno@clisp.org>
37789
37790         Work around a portability problem.
37791         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37792         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37793
37794 2008-12-20  Bruno Haible  <bruno@clisp.org>
37795
37796         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37797         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37798         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37799         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37800         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37801
37802         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37803         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37804         set.
37805         (GNULIB_defined_mbstate_t): New macro.
37806         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37807         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37808         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37809         reuses the system's mbrtowc function but works around the bugs.
37810         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37811         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37812         macros.
37813         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37814         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37815         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37816         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37817         REPLACE_MBSINIT if mbsinit needs to be overridden.
37818         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37819         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37820         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37821         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37822         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37823         m4/locale-zh.m4.
37824         (Depends): Add mbsinit.
37825         * modules/mbsinit (Depends): Add mbrtowc.
37826         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37827
37828 2008-12-20  Bruno Haible  <bruno@clisp.org>
37829
37830         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37831         so that there are no conversion errors on AIX.
37832         * tests/test-mbsrtowcs.c (main): LIkewise.
37833
37834 2008-12-20  Bruno Haible  <bruno@clisp.org>
37835
37836         Work around wctob bug on Solaris <= 9.
37837         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37838         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37839         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37840         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37841         * modules/wctob (Files): Add m4/locale-fr.m4.
37842         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37843
37844 2008-12-20  Bruno Haible  <bruno@clisp.org>
37845
37846         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37847         /dev/null.
37848         * tests/test-select-in.sh: Likewise.
37849         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37850
37851 2008-12-20  Bruno Haible  <bruno@clisp.org>
37852
37853         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37854         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37855         Cygwin 1.5.x.
37856
37857 2008-12-20  Bruno Haible  <bruno@clisp.org>
37858
37859         Ensure mbstate_t is defined on HP-UX 11.11.
37860         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37861         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37862         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37863         AC_USE_SYSTEM_EXTENSIONS.
37864         * modules/fnmatch (Depends-on): Add extensions.
37865         * modules/mbrlen (Depends-on): Likewise.
37866         * modules/mbrtowc (Depends-on): Likewise.
37867         * modules/mbsinit (Depends-on): Likewise.
37868         * modules/mbsrtowcs (Depends-on): Likewise.
37869         * modules/mbswidth (Depends-on): Likewise.
37870         * modules/quotearg (Depends-on): Likewise.
37871         * modules/strftime (Depends-on): Likewise.
37872
37873 2008-12-20  Bruno Haible  <bruno@clisp.org>
37874
37875         Ensure wctob is declared on IRIX 6.5.
37876         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
37877         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
37878         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
37879         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
37880         of HAVE_WCTOB.
37881         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
37882         HAVE_WCTOB.
37883         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
37884
37885 2008-12-19  Bruno Haible  <bruno@clisp.org>
37886
37887         * modules/mbsrtowcs-tests: New file.
37888         * tests/test-mbsrtowcs1.sh: New file.
37889         * tests/test-mbsrtowcs2.sh: New file.
37890         * tests/test-mbsrtowcs3.sh: New file.
37891         * tests/test-mbsrtowcs4.sh: New file.
37892         * tests/test-mbsrtowcs.c: New file.
37893
37894         New module 'mbsrtowcs'.
37895         * lib/wchar.in.h (mbsrtowcs): New declaration.
37896         * lib/mbsrtowcs.c: New file.
37897         * m4/mbsrtowcs.m4: New file.
37898         * modules/mbsrtowcs: New file.
37899         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
37900         HAVE_MBSRTOWCS.
37901         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
37902         HAVE_MBSRTOWCS.
37903         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
37904
37905 2008-12-19  Bruno Haible  <bruno@clisp.org>
37906
37907         New module 'mbrlen'.
37908         * lib/wchar.in.h (mbrlen): New declaration.
37909         * lib/mbrlen.c: New file.
37910         * m4/mbrlen.m4: New file.
37911         * modules/mbrlen: New file.
37912         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
37913         HAVE_MBRLEN.
37914         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
37915         HAVE_MBRLEN.
37916         * doc/posix-functions/mbrlen.texi: Document the new module.
37917
37918 2008-12-19  Bruno Haible  <bruno@clisp.org>
37919
37920         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
37921         * modules/mbrtowc (Depends-on): Add verify.
37922         Suggested by Paul Eggert.
37923
37924 2008-12-18  Bruno Haible  <bruno@clisp.org>
37925
37926         * modules/mbsinit-tests: New file.
37927         * tests/test-mbsinit.sh: New file.
37928         * tests/test-mbsinit.c: New file.
37929
37930 2008-12-18  Bruno Haible  <bruno@clisp.org>
37931
37932         * modules/mbrtowc-tests: New file.
37933         * tests/test-mbrtowc1.sh: New file.
37934         * tests/test-mbrtowc2.sh: New file.
37935         * tests/test-mbrtowc3.sh: New file.
37936         * tests/test-mbrtowc4.sh: New file.
37937         * tests/test-mbrtowc.c: New file.
37938
37939         New module 'mbrtowc'.
37940         * lib/wchar.in.h (mbstate_t): Override when the system does not have
37941         mbsinit and mbrtowc.
37942         (mbrtowc): New declaration.
37943         * lib/mbrtowc.c: New file.
37944         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
37945         * modules/mbrtowc: New file.
37946         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
37947         HAVE_MBRTOWC.
37948         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
37949         HAVE_MBRTOWC.
37950         * doc/posix-functions/mbrtowc.texi: Document the new module.
37951
37952 2008-12-18  Bruno Haible  <bruno@clisp.org>
37953
37954         New module 'wctob'.
37955         * lib/wchar.in.h (wctob): New declaration.
37956         * lib/wctob.c: New file.
37957         * m4/wctob.m4: New file.
37958         * modules/wctob: New file.
37959         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
37960         HAVE_WCTOB.
37961         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
37962         * doc/posix-functions/wctob.texi: Document the new module.
37963
37964 2008-12-18  Bruno Haible  <bruno@clisp.org>
37965
37966         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
37967         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
37968
37969 2008-12-18  Simon Josefsson  <simon@josefsson.org>
37970
37971         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
37972         G. Christensen" <tgc@jupiterrise.com>.
37973
37974         * lib/flock.c: Need to include errno.h.  Reported by "Tom
37975         G. Christensen" <tgc@jupiterrise.com>.
37976
37977         * lib/flock.c: Need to include string.h.  Reported by "Tom
37978         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
37979         <ebb9@byu.net>.
37980
37981 2008-12-18  Bruno Haible  <bruno@clisp.org>
37982
37983         * m4/locale-ja.m4: New file, from GNU gettext.
37984
37985 2008-12-17  Bruno Haible  <bruno@clisp.org>
37986
37987         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
37988         Suggested by Eric Blake.
37989
37990 2008-12-17  Bruno Haible  <bruno@clisp.org>
37991
37992         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
37993
37994 2008-12-17  Bruno Haible  <bruno@clisp.org>
37995
37996         * lib/mbsinit.c: Include verify.h. Verify an assumption.
37997         * modules/mbsinit (Depends-on): Add verify.
37998         Suggested by Paul Eggert.
37999
38000 2008-12-17  Bruno Haible  <bruno@clisp.org>
38001
38002         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
38003         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
38004         gl_FUNC_MBRTOWC.
38005         * m4/mbiter.m4 (gl_MBITER): LIkewise.
38006         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
38007         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
38008         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
38009         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
38010         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
38011         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
38012         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
38013         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
38014         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
38015         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
38016         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
38017         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
38018         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
38019         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
38020         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38021         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
38022         * modules/trim (configure.ac): Likewise.
38023
38024 2008-12-17  Bruno Haible  <bruno@clisp.org>
38025
38026         * modules/btowc-tests: New file.
38027         * tests/test-btowc1.sh: New file.
38028         * tests/test-btowc2.sh: New file.
38029         * tests/test-btowc.c: New file.
38030
38031         New module 'btowc'.
38032         * lib/wchar.in.h (btowc): New declaration.
38033         * lib/btowc.c: New file.
38034         * m4/btowc.m4: New file.
38035         * modules/btowc: New file.
38036         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
38037         HAVE_BTOWC.
38038         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
38039         * doc/posix-functions/btowc.texi: Document the new module.
38040
38041 2008-12-17  Bruno Haible  <bruno@clisp.org>
38042
38043         New module 'mbsinit'.
38044         * lib/wchar.in.h (mbsinit): New declaration.
38045         * lib/mbsinit.c: New file.
38046         * m4/mbsinit.m4: New file.
38047         * modules/mbsinit: New file.
38048         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
38049         HAVE_MBSINIT.
38050         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
38051         HAVE_MBSINIT.
38052         * doc/posix-functions/mbsinit.texi: Document the new module.
38053
38054 2008-12-16  Bruno Haible  <bruno@clisp.org>
38055
38056         * lib/unistd.in.h: Add comment.
38057         * tests/test-environ.c: Don't include <stdlib.h>.
38058
38059 2008-12-16  Bruno Haible  <bruno@clisp.org>
38060
38061         * lib/parse-duration.h (parse_duration): Document return value
38062         convention.
38063         * lib/parse-duration.c: Include specification header first. Add
38064         comments.
38065         (_): Remove macro.
38066         (parse_year_month_day, parse_hour_minute_second): Move side effects
38067         outside of strchr call.
38068         (parse_non_iso8601): Move side effects outside of isspace call.
38069         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
38070         call.
38071
38072 2008-12-16  Bruno Haible  <bruno@clisp.org>
38073
38074         * tests/test-parse-duration.sh: Produce no output when the test
38075         succeeds.
38076
38077 2008-12-16  Bruno Haible  <bruno@clisp.org>
38078
38079         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
38080         expressions.
38081
38082 2008-12-15  Bruno Haible  <bruno@clisp.org>
38083
38084         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
38085         * doc/glibc-functions/flistxattr.texi: Likewise.
38086         * doc/glibc-functions/fopencookie.texi: Likewise.
38087         * doc/glibc-functions/fremovexattr.texi: Likewise.
38088         * doc/glibc-functions/fsetxattr.texi: Likewise.
38089         * doc/glibc-functions/getxattr.texi: Likewise.
38090         * doc/glibc-functions/lgetxattr.texi: Likewise.
38091         * doc/glibc-functions/listxattr.texi: Likewise.
38092         * doc/glibc-functions/llistxattr.texi: Likewise.
38093         * doc/glibc-functions/lremovexattr.texi: Likewise.
38094         * doc/glibc-functions/lsetxattr.texi: Likewise.
38095         * doc/glibc-functions/removexattr.texi: Likewise.
38096         * doc/glibc-functions/setxattr.texi: Likewise.
38097         * doc/posix-functions/open_memstream.texi: Likewise.
38098
38099 2008-12-15  Eric Blake  <ebb9@byu.net>
38100
38101         Update doc for cygwin 1.7.
38102         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
38103         functions.
38104         * doc/posix-functions/fchmodat.texi: Likewise.
38105         * doc/posix-functions/fchownat.texi: Likewise.
38106         * doc/posix-functions/fdopendir.texi: Likewise.
38107         * doc/posix-functions/fmemopen.texi: Likewise.
38108         * doc/posix-functions/freeaddrinfo.texi: Likewise.
38109         * doc/posix-functions/fstatat.texi: Likewise.
38110         * doc/posix-functions/futimens.texi: Likewise.
38111         * doc/posix-functions/gai_strerror.texi: Likewise.
38112         * doc/posix-functions/getaddrinfo.texi: Likewise.
38113         * doc/posix-functions/getnameinfo.texi: Likewise.
38114         * doc/posix-functions/if_freenameindex.texi: Likewise.
38115         * doc/posix-functions/if_indextoname.texi: Likewise.
38116         * doc/posix-functions/if_nameindex.texi: Likewise.
38117         * doc/posix-functions/if_nametoindex.texi: Likewise.
38118         * doc/posix-functions/insque.texi: Likewise.
38119         * doc/posix-functions/linkat.texi: Likewise.
38120         * doc/posix-functions/llrint.texi: Likewise.
38121         * doc/posix-functions/llrintf.texi: Likewise.
38122         * doc/posix-functions/llrintl.texi: Likewise.
38123         * doc/posix-functions/lockf.texi: Likewise.
38124         * doc/posix-functions/lrintl.texi: Likewise.
38125         * doc/posix-functions/mkdirat.texi: Likewise.
38126         * doc/posix-functions/mkfifoat.texi: Likewise.
38127         * doc/posix-functions/mknodat.texi: Likewise.
38128         * doc/posix-functions/mq_close.texi: Likewise.
38129         * doc/posix-functions/mq_getattr.texi: Likewise.
38130         * doc/posix-functions/mq_notify.texi: Likewise.
38131         * doc/posix-functions/mq_open.texi: Likewise.
38132         * doc/posix-functions/mq_receive.texi: Likewise.
38133         * doc/posix-functions/mq_send.texi: Likewise.
38134         * doc/posix-functions/mq_setattr.texi: Likewise.
38135         * doc/posix-functions/mq_timedreceive.texi: Likewise.
38136         * doc/posix-functions/mq_timedsend.texi: Likewise.
38137         * doc/posix-functions/mq_unlink.texi: Likewise.
38138         * doc/posix-functions/open_memstream.texi: Likewise.
38139         * doc/posix-functions/openat.texi: Likewise.
38140         * doc/posix-functions/posix_fadvise.texi: Likewise.
38141         * doc/posix-functions/posix_fallocate.texi: Likewise.
38142         * doc/posix-functions/posix_madvise.texi: Likewise.
38143         * doc/posix-functions/posix_memalign.texi: Likewise.
38144         * doc/posix-functions/posix_openpt.texi: Likewise.
38145         * doc/posix-functions/readlinkat.texi: Likewise.
38146         * doc/posix-functions/remque.texi: Likewise.
38147         * doc/posix-functions/renameat.texi: Likewise.
38148         * doc/posix-functions/rintl.texi: Likewise.
38149         * doc/posix-functions/sem_unlink.texi: Likewise.
38150         * doc/posix-functions/shm_open.texi: Likewise.
38151         * doc/posix-functions/shm_unlink.texi: Likewise.
38152         * doc/posix-functions/signgam.texi: Likewise.
38153         * doc/posix-functions/sigset.texi: Likewise.
38154         * doc/posix-functions/stpcpy.texi: Likewise.
38155         * doc/posix-functions/stpncpy.texi: Likewise.
38156         * doc/posix-functions/strerror.texi: Likewise.
38157         * doc/posix-functions/strtod.texi: Likewise.
38158         * doc/posix-functions/symlinkat.texi: Likewise.
38159         * doc/posix-functions/unlinkat.texi: Likewise.
38160         * doc/posix-functions/utimensat.texi: Likewise.
38161         * doc/glibc-functions/bindresvport.texi: Likewise.
38162         * doc/glibc-functions/dn_expand.texi: Likewise.
38163         * doc/glibc-functions/exp10.texi: Likewise.
38164         * doc/glibc-functions/exp10f.texi: Likewise.
38165         * doc/glibc-functions/fgetxattr.texi: Likewise.
38166         * doc/glibc-functions/flistxattr.texi: Likewise.
38167         * doc/glibc-functions/fopencookie.texi: Likewise.
38168         * doc/glibc-functions/freeifaddrs.texi: Likewise.
38169         * doc/glibc-functions/fremovexattr.texi: Likewise.
38170         * doc/glibc-functions/fsetxattr.texi: Likewise.
38171         * doc/glibc-functions/getifaddrs.texi: Likewise.
38172         * doc/glibc-functions/getxattr.texi: Likewise.
38173         * doc/glibc-functions/lgetxattr.texi: Likewise.
38174         * doc/glibc-functions/listxattr.texi: Likewise.
38175         * doc/glibc-functions/llistxattr.texi: Likewise.
38176         * doc/glibc-functions/lremovexattr.texi: Likewise.
38177         * doc/glibc-functions/lsetxattr.texi: Likewise.
38178         * doc/glibc-functions/pow10.texi: Likewise.
38179         * doc/glibc-functions/pow10f.texi: Likewise.
38180         * doc/glibc-functions/rcmd_af.texi: Likewise.
38181         * doc/glibc-functions/removexattr.texi: Likewise.
38182         * doc/glibc-functions/res_init.texi: Likewise.
38183         * doc/glibc-functions/res_mkquery.texi: Likewise.
38184         * doc/glibc-functions/res_query.texi: Likewise.
38185         * doc/glibc-functions/res_querydomain.texi: Likewise.
38186         * doc/glibc-functions/res_send.texi: Likewise.
38187         * doc/glibc-functions/rresvport_af.texi: Likewise.
38188         * doc/glibc-functions/setxattr.texi: Likewise.
38189         * doc/glibc-functions/strcasestr.texi: Likewise.
38190
38191 2008-12-15  Bruno Haible  <bruno@clisp.org>
38192
38193         Fix compilation error on OSF/1 4.0.
38194         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
38195         <sys/time.h>, simply delegate to the system header.
38196         Reported by Daniel Richard G. <oss@teragram.com>.
38197
38198 2008-12-15  Bruno Haible  <bruno@clisp.org>
38199
38200         * doc/posix-functions/openat.texi: Mention the 'openat' module.
38201         * doc/posix-functions/fchmodat.texi: Likewise.
38202         * doc/posix-functions/fchownat.texi: Likewise.
38203         * doc/posix-functions/fdopendir.texi: Likewise.
38204         * doc/posix-functions/fstatat.texi: Likewise.
38205         * doc/posix-functions/mkdirat.texi: Likewise.
38206         * doc/posix-functions/unlinkat.texi: Likewise.
38207
38208 2008-12-14  Bruno Haible  <bruno@clisp.org>
38209
38210         Update doc for POSIX:2008.
38211         * doc/posix-functions/faccessat.texi: New file.
38212         * doc/posix-functions/fchmodat.texi: New file.
38213         * doc/posix-functions/fchownat.texi: New file.
38214         * doc/posix-functions/fdopendir.texi: New file.
38215         * doc/posix-functions/fstatat.texi: New file.
38216         * doc/posix-functions/futimens.texi: New file.
38217         * doc/posix-functions/linkat.texi: New file.
38218         * doc/posix-functions/mkdirat.texi: New file.
38219         * doc/posix-functions/mkfifoat.texi: New file.
38220         * doc/posix-functions/mknodat.texi: New file.
38221         * doc/posix-functions/open_wmemstream.texi: New file.
38222         * doc/posix-functions/openat.texi: New file.
38223         * doc/posix-functions/psiginfo.texi: New file.
38224         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
38225         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
38226         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
38227         * doc/posix-functions/readlinkat.texi: New file.
38228         * doc/posix-functions/renameat.texi: New file.
38229         * doc/posix-functions/strerror_l.texi: New file.
38230         * doc/posix-functions/symlinkat.texi: New file.
38231         * doc/posix-functions/unlinkat.texi: New file.
38232         * doc/posix-functions/utimensat.texi: New file.
38233         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38234
38235 2008-12-14  Bruno Haible  <bruno@clisp.org>
38236
38237         Update doc for POSIX:2008.
38238         * doc/posix-functions/alphasort.texi: Renamed from
38239         doc/glibc-functions/alphasort.texi.
38240         * doc/posix-functions/dirfd.texi: Renamed from
38241         doc/glibc-functions/dirfd.texi.
38242         * doc/posix-functions/dprintf.texi: Renamed from
38243         doc/glibc-functions/dprintf.texi.
38244         * doc/posix-functions/duplocale.texi: Renamed from
38245         doc/glibc-functions/duplocale.texi.
38246         * doc/posix-functions/fexecve.texi: Renamed from
38247         doc/glibc-functions/fexecve.texi.
38248         * doc/posix-functions/fmemopen.texi: Renamed from
38249         doc/glibc-functions/fmemopen.texi.
38250         * doc/posix-functions/freelocale.texi: Renamed from
38251         doc/glibc-functions/freelocale.texi.
38252         * doc/posix-functions/getdate_err.texi: Renamed from
38253         doc/glibc-functions/getdate_err.texi.
38254         * doc/posix-functions/isalnum_l.texi: Renamed from
38255         doc/glibc-functions/isalnum_l.texi.
38256         * doc/posix-functions/isalpha_l.texi: Renamed from
38257         doc/glibc-functions/isalpha_l.texi.
38258         * doc/posix-functions/isblank_l.texi: Renamed from
38259         doc/glibc-functions/isblank_l.texi.
38260         * doc/posix-functions/iscntrl_l.texi: Renamed from
38261         doc/glibc-functions/iscntrl_l.texi.
38262         * doc/posix-functions/isdigit_l.texi: Renamed from
38263         doc/glibc-functions/isdigit_l.texi.
38264         * doc/posix-functions/isgraph_l.texi: Renamed from
38265         doc/glibc-functions/isgraph_l.texi.
38266         * doc/posix-functions/islower_l.texi: Renamed from
38267         doc/glibc-functions/islower_l.texi.
38268         * doc/posix-functions/isprint_l.texi: Renamed from
38269         doc/glibc-functions/isprint_l.texi.
38270         * doc/posix-functions/ispunct_l.texi: Renamed from
38271         doc/glibc-functions/ispunct_l.texi.
38272         * doc/posix-functions/isspace_l.texi: Renamed from
38273         doc/glibc-functions/isspace_l.texi.
38274         * doc/posix-functions/isupper_l.texi: Renamed from
38275         doc/glibc-functions/isupper_l.texi.
38276         * doc/posix-functions/iswalnum_l.texi: Renamed from
38277         doc/glibc-functions/iswalnum_l.texi.
38278         * doc/posix-functions/iswalpha_l.texi: Renamed from
38279         doc/glibc-functions/iswalpha_l.texi.
38280         * doc/posix-functions/iswblank_l.texi: Renamed from
38281         doc/glibc-functions/iswblank_l.texi.
38282         * doc/posix-functions/iswcntrl_l.texi: Renamed from
38283         doc/glibc-functions/iswcntrl_l.texi.
38284         * doc/posix-functions/iswctype_l.texi: Renamed from
38285         doc/glibc-functions/iswctype_l.texi.
38286         * doc/posix-functions/iswdigit_l.texi: Renamed from
38287         doc/glibc-functions/iswdigit_l.texi.
38288         * doc/posix-functions/iswgraph_l.texi: Renamed from
38289         doc/glibc-functions/iswgraph_l.texi.
38290         * doc/posix-functions/iswlower_l.texi: Renamed from
38291         doc/glibc-functions/iswlower_l.texi.
38292         * doc/posix-functions/iswprint_l.texi: Renamed from
38293         doc/glibc-functions/iswprint_l.texi.
38294         * doc/posix-functions/iswpunct_l.texi: Renamed from
38295         doc/glibc-functions/iswpunct_l.texi.
38296         * doc/posix-functions/iswspace_l.texi: Renamed from
38297         doc/glibc-functions/iswspace_l.texi.
38298         * doc/posix-functions/iswupper_l.texi: Renamed from
38299         doc/glibc-functions/iswupper_l.texi.
38300         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38301         doc/glibc-functions/iswxdigit_l.texi.
38302         * doc/posix-functions/isxdigit_l.texi: Renamed from
38303         doc/glibc-functions/isxdigit_l.texi.
38304         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38305         doc/glibc-functions/mbsnrtowcs.texi.
38306         * doc/posix-functions/mkdtemp.texi: Renamed from
38307         doc/glibc-functions/mkdtemp.texi.
38308         * doc/posix-functions/newlocale.texi: Renamed from
38309         doc/glibc-functions/newlocale.texi.
38310         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38311         doc/glibc-functions/nl_langinfo_l.texi.
38312         * doc/posix-functions/open_memstream.texi: Renamed from
38313         doc/glibc-functions/open_memstream.texi.
38314         * doc/posix-functions/opterr.texi: Renamed from
38315         doc/glibc-functions/opterr.texi.
38316         * doc/posix-functions/optind.texi: Renamed from
38317         doc/glibc-functions/optind.texi.
38318         * doc/posix-functions/optopt.texi: Renamed from
38319         doc/glibc-functions/optopt.texi.
38320         * doc/posix-functions/psignal.texi: Renamed from
38321         doc/glibc-functions/psignal.texi.
38322         * doc/posix-functions/scandir.texi: Renamed from
38323         doc/glibc-functions/scandir.texi.
38324         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38325         doc/glibc-functions/sched_get_priority_min.texi.
38326         * doc/posix-functions/signgam.texi: Renamed from
38327         doc/glibc-functions/signgam.texi.
38328         * doc/posix-functions/stpcpy.texi: Renamed from
38329         doc/glibc-functions/stpcpy.texi.
38330         * doc/posix-functions/stpncpy.texi: Renamed from
38331         doc/glibc-functions/stpncpy.texi.
38332         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38333         doc/glibc-functions/strcasecmp_l.texi.
38334         * doc/posix-functions/strcoll_l.texi: Renamed from
38335         doc/glibc-functions/strcoll_l.texi.
38336         * doc/posix-functions/strfmon_l.texi: Renamed from
38337         doc/glibc-functions/strfmon_l.texi.
38338         * doc/posix-functions/strftime_l.texi: Renamed from
38339         doc/glibc-functions/strftime_l.texi.
38340         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38341         doc/glibc-functions/strncasecmp_l.texi.
38342         * doc/posix-functions/strndup.texi: Renamed from
38343         doc/glibc-functions/strndup.texi.
38344         * doc/posix-functions/strnlen.texi: Renamed from
38345         doc/glibc-functions/strnlen.texi.
38346         * doc/posix-functions/strsignal.texi: Renamed from
38347         doc/glibc-functions/strsignal.texi.
38348         * doc/posix-functions/strxfrm_l.texi: Renamed from
38349         doc/glibc-functions/strxfrm_l.texi.
38350         * doc/posix-functions/timer_gettime.texi: Renamed from
38351         doc/glibc-functions/timer_gettime.texi.
38352         * doc/posix-functions/tolower_l.texi: Renamed from
38353         doc/glibc-functions/tolower_l.texi.
38354         * doc/posix-functions/toupper_l.texi: Renamed from
38355         doc/glibc-functions/toupper_l.texi.
38356         * doc/posix-functions/towctrans_l.texi: Renamed from
38357         doc/glibc-functions/towctrans_l.texi.
38358         * doc/posix-functions/towlower_l.texi: Renamed from
38359         doc/glibc-functions/towlower_l.texi.
38360         * doc/posix-functions/towupper_l.texi: Renamed from
38361         doc/glibc-functions/towupper_l.texi.
38362         * doc/posix-functions/uselocale.texi: Renamed from
38363         doc/glibc-functions/uselocale.texi.
38364         * doc/posix-functions/vdprintf.texi: Renamed from
38365         doc/glibc-functions/vdprintf.texi.
38366         * doc/posix-functions/wcpcpy.texi:
38367         Renamed from doc/glibc-functions/wcpcpy.texi.
38368         * doc/posix-functions/wcpncpy.texi: Renamed from
38369         doc/glibc-functions/wcpncpy.texi.
38370         * doc/posix-functions/wcscasecmp.texi: Renamed from
38371         doc/glibc-functions/wcscasecmp.texi.
38372         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38373         doc/glibc-functions/wcscasecmp_l.texi.
38374         * doc/posix-functions/wcscoll_l.texi: Renamed from
38375         doc/glibc-functions/wcscoll_l.texi.
38376         * doc/posix-functions/wcsdup.texi: Renamed from
38377         doc/glibc-functions/wcsdup.texi.
38378         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38379         doc/glibc-functions/wcsncasecmp.texi.
38380         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38381         doc/glibc-functions/wcsncasecmp_l.texi.
38382         * doc/posix-functions/wcsnlen.texi: Renamed from
38383         doc/glibc-functions/wcsnlen.texi.
38384         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38385         doc/glibc-functions/wcsnrtombs.texi.
38386         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38387         doc/glibc-functions/wcsxfrm_l.texi.
38388         * doc/posix-functions/wctrans_l.texi: Renamed from
38389         doc/glibc-functions/wctrans_l.texi.
38390         * doc/posix-functions/wctype_l.texi: Renamed from
38391         doc/glibc-functions/wctype_l.texi.
38392         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38393         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38394         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38395         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38396         these subsections.
38397         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38398         Remove sections.
38399
38400 2008-12-14  Bruno Haible  <bruno@clisp.org>
38401
38402         Update doc for POSIX:2008.
38403         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38404
38405 2008-12-14  Bruno Haible  <bruno@clisp.org>
38406
38407         Update doc for POSIX:2008.
38408         * doc/pastposix-functions/bcmp.texi: Renamed from
38409         doc/posix-functions/bcmp.texi.
38410         * doc/pastposix-functions/bcopy.texi: Renamed from
38411         doc/posix-functions/bcopy.texi.
38412         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38413         doc/posix-functions/bsd_signal.texi.
38414         * doc/pastposix-functions/bzero.texi: Renamed from
38415         doc/posix-functions/bzero.texi.
38416         * doc/pastposix-functions/ecvt.texi: Renamed from
38417         doc/posix-functions/ecvt.texi.
38418         * doc/pastposix-functions/fcvt.texi: Renamed from
38419         doc/posix-functions/fcvt.texi.
38420         * doc/pastposix-functions/ftime.texi: Renamed from
38421         doc/posix-functions/ftime.texi.
38422         * doc/pastposix-functions/gcvt.texi: Renamed from
38423         doc/posix-functions/gcvt.texi.
38424         * doc/pastposix-functions/getcontext.texi: Renamed from
38425         doc/posix-functions/getcontext.texi.
38426         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38427         doc/posix-functions/gethostbyaddr.texi.
38428         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38429         doc/posix-functions/gethostbyname.texi.
38430         * doc/pastposix-functions/getwd.texi: Renamed from
38431         doc/posix-functions/getwd.texi.
38432         * doc/pastposix-functions/h_errno.texi: Renamed from
38433         doc/posix-functions/h_errno.texi.
38434         * doc/pastposix-functions/index.texi: Renamed from
38435         doc/posix-functions/index.texi.
38436         * doc/pastposix-functions/makecontext.texi: Renamed from
38437         doc/posix-functions/makecontext.texi.
38438         * doc/pastposix-functions/mktemp.texi: Renamed from
38439         doc/posix-functions/mktemp.texi.
38440         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38441         doc/posix-functions/pthread_attr_getstackaddr.texi.
38442         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38443         doc/posix-functions/pthread_attr_setstackaddr.texi.
38444         * doc/pastposix-functions/rindex.texi: Renamed from
38445         doc/posix-functions/rindex.texi.
38446         * doc/pastposix-functions/scalb.texi: Renamed from
38447         doc/posix-functions/scalb.texi.
38448         * doc/pastposix-functions/setcontext.texi: Renamed from
38449         doc/posix-functions/setcontext.texi.
38450         * doc/pastposix-functions/swapcontext.texi: Renamed from
38451         doc/posix-functions/swapcontext.texi.
38452         * doc/pastposix-functions/ualarm.texi: Renamed from
38453         doc/posix-functions/ualarm.texi.
38454         * doc/pastposix-functions/usleep.texi: Renamed from
38455         doc/posix-functions/usleep.texi.
38456         * doc/pastposix-functions/vfork.texi: Renamed from
38457         doc/posix-functions/vfork.texi.
38458         * doc/pastposix-functions/wcswcs.texi: Renamed from
38459         doc/posix-functions/wcswcs.texi.
38460         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38461         (Function Substitutes): Update.
38462
38463 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38464
38465         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38466         m4/strerror.m4.
38467
38468 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38469             Bruno Haible  <bruno@clisp.org>
38470
38471         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38472
38473 2008-12-13  Bruno Haible  <bruno@clisp.org>
38474
38475         * modules/strtoull (Depends-on): Remove unistd.
38476
38477 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38478
38479         * modules/strtoull (Depends-on): Add stdlib.
38480
38481 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38482
38483         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38484
38485 2008-12-10  Jim Meyering  <meyering@redhat.com>
38486
38487         gl_ASSERT: don't say assertions are disabled when they're not
38488         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38489         "checking whether to enable assertions... no", when they are in
38490         fact enabled.  This is solely a bug in the output of configure.
38491         In spite of saying "no", NDEBUG was not defined in that case.
38492         Also, as noted by Eric Blake, leave assertions enabled upon
38493         --enable-assert=INVALID.
38494
38495 2008-12-10  Bruno Haible  <bruno@clisp.org>
38496
38497         Change MODULES.html to refer to POSIX:2008 where possible.
38498         * MODULES.html.sh (POSIX2008_URL): New variable.
38499         (posix_headers): Remove sys/timeb, ucontext.
38500         (posix2001_headers): New variable.
38501         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38502         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38503         index, makecontext, mktemp, pthread_attr_getstackaddr,
38504         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38505         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38506         (posix2001_functions): New variable.
38507         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38508         otherwise.
38509
38510 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38511
38512         add missing include to parse-duration.c
38513         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38514         * modules/parse-duration (Depends-on): Add xalloc.
38515
38516         fix sed script reading maint.mk
38517         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38518         (syntax-check-rules): Use it.
38519
38520 2008-12-09  Bruno Haible  <bruno@clisp.org>
38521
38522         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38523         MacOS X 10.4/PowerPC.
38524         Reported by Simon Josefsson.
38525
38526 2008-12-08  Jim Meyering  <meyering@redhat.com>
38527
38528         work around mingw's lack of some S_IF definitions
38529         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38530         Reported by Simon Josefsson.
38531
38532 2008-12-08  Bruno Haible  <bruno@clisp.org>
38533
38534         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38535         applied to variables. Needed on MacOS X 10.4/PowerPC.
38536         Reported by Simon Josefsson.
38537
38538 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38539         and Eric Blake  <ebb9@byu.net>
38540
38541         assert: honor --enable-assert
38542         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38543         order to honor --enable-assert, rather than treating it as a
38544         synonym for --disable-assert.
38545
38546 2008-12-08  Jim Meyering  <meyering@redhat.com>
38547
38548         * lib/posixtm.c: Remove now-useless declaration of mktime.
38549
38550         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38551
38552 2008-12-07  Bruno Haible  <bruno@clisp.org>
38553
38554         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38555         test_once): Mark functions as static.
38556         * tests/test-tls.c (test_tls): Likewise.
38557
38558 2008-12-07  Bruno Haible  <bruno@clisp.org>
38559
38560         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38561         iconv_register_autodetect.
38562
38563 2008-12-07  Jim Meyering  <meyering@redhat.com>
38564
38565         posixtm.c: avoid a warning
38566         * lib/posixtm.c (posixtime): Don't initialize tm0.
38567         It's no longer needed to placate gcc4's -Wuninitialized,
38568         and the attempt to placate would elicit a new warning.
38569
38570         unicodeio.c: mark unused parameters
38571         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38572         (fallback_failure_callback): Likewise.
38573
38574 2008-12-07  Bruno Haible  <bruno@clisp.org>
38575
38576         * gnulib-tool (func_create_testdir): When building the tests
38577         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38578         Reported by Simon Josefsson.
38579
38580 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38581
38582         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38583
38584 2008-12-06  Bruno Haible  <bruno@clisp.org>
38585
38586         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38587         Suggested by Eric Blake.
38588
38589 2008-12-06  Bruno Haible  <bruno@clisp.org>
38590
38591         Fix a c-stack test failure on MacOS X.
38592         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38593         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38594         handler for SIGBUS as well.
38595         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38596         install a signal handler for SIGBUS as well.
38597         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38598
38599 2008-12-06  Bruno Haible  <bruno@clisp.org>
38600
38601         Advocacy documentation.
38602         * doc/gnulib-intro.texi (Benefits): New section.
38603         * doc/gnulib.texi: Update.
38604
38605 2008-12-06  Bruno Haible  <bruno@clisp.org>
38606
38607         Document the 'manywarnings' module.
38608         * doc/manywarnings.texi: New file.
38609         * doc/gnulib.texi: Include it.
38610
38611 2008-12-05  Eric Blake  <ebb9@byu.net>
38612
38613         tests: silence some gcc warnings
38614         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38615         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38616         type mismatches.
38617
38618 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38619             Bruno Haible  <bruno@clisp.org>
38620
38621         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38622
38623 2008-11-29  Jim Meyering  <meyering@redhat.com>
38624
38625         unicodeio.c: mark unused parameters
38626         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38627         (fallback_failure_callback): Likewise.
38628
38629         fts: fix a thinko
38630         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38631         (set_stat_type): Return S_IF*-valued "type" directly.
38632         Prompted by James Youngman's spotting a related bug.
38633         Confirmed by further testing through find.
38634
38635         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38636         * lib/fts.c (D_TYPE): Define.
38637         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38638         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38639         (s_ifmt_shift_bits): New function.
38640         (set_stat_type): New function.
38641         (fts_build): When not calling fts_stat, call set_stat_type
38642         to propagate dirent.d_type info to fts_read caller.
38643         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38644         fts_statp->st_mode type information may be valid.
38645
38646 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38647
38648         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38649         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38650         <sds@gnu.org>.
38651
38652 2008-11-20  Bruno Haible  <bruno@clisp.org>
38653
38654         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38655         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38656         INCLUDE_NEXT.
38657         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38658         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38659         * modules/math (Makefile.am): Substitute
38660         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38661         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38662
38663 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38664             Bruno Haible  <bruno@clisp.org>
38665
38666         * lib/stdint.in.h: Define all type macros so that their expansion is
38667         a single typedef'ed token. Fixes a compilation failure in Boost which
38668         does "using ::int8_t;".
38669
38670 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38671
38672         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38673         gl_MANYWARN_ALL_GCC.
38674         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38675         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38676         * modules/manywarnings: New file.
38677         * MODULES.html.sh: Mention manywarnings module.
38678
38679 2008-11-18  Bruno Haible  <bruno@clisp.org>
38680
38681         * doc/gnulib-tool.texi (Unit tests): New section.
38682
38683 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38684
38685         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38686         paths like 'lib/po/foo.po'.
38687
38688 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38689
38690         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38691         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38692
38693 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38694
38695         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38696         parameter works.
38697
38698 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38699
38700         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38701
38702 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38703
38704         * modules/parse-duration-tests: New file.
38705         * tests/test-parse-duration.sh: New file.
38706         * tests/test-parse-duration.c: New file.
38707
38708         New module 'parse-duration'.
38709         * lib/parse-duration.h: New file.
38710         * lib/parse-duration.c: New file.
38711         * modules/parse-duration: New file.
38712
38713 2008-11-17  Bruno Haible  <bruno@clisp.org>
38714
38715         * tests/test-select-out.sh: Comment out the first pipe test.
38716         Reported by Simon Josefsson.
38717
38718 2008-11-17  Bruno Haible  <bruno@clisp.org>
38719
38720         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38721         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38722         gl_HOSTENT.
38723
38724 2008-11-17  Bruno Haible  <bruno@clisp.org>
38725
38726         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38727         -lnetwork and -lnet. Needed for Haiku and BeOS.
38728
38729 2008-11-16  Bruno Haible  <bruno@clisp.org>
38730
38731         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38732
38733 2008-11-16  Bruno Haible  <bruno@clisp.org>
38734
38735         Avoid test failure on Haiku.
38736         * tests/test-fsync.c: Include <errno.h>.
38737         (main): Don't require that fsync (0) fails.
38738
38739 2008-11-15  Bruno Haible  <bruno@clisp.org>
38740
38741         New module 'hostent'.
38742         * modules/hostent: New file.
38743         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38744
38745 2008-11-15  Bruno Haible  <bruno@clisp.org>
38746
38747         New module 'servent'.
38748         * modules/servent: New file.
38749         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38750
38751 2008-11-15  Bruno Haible  <bruno@clisp.org>
38752
38753         Avoid generating same test program with two different rules.
38754         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38755         test-frexp to test-frexp-nolibm.
38756         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38757         test-frexpl to test-frexpl-nolibm.
38758
38759 2008-11-15  Bruno Haible  <bruno@clisp.org>
38760
38761         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38762         $(FREXPL_LIBM).
38763
38764 2008-11-15  Bruno Haible  <bruno@clisp.org>
38765
38766         * lib/netdb.in.h: Activate the definitions also when the system's
38767         <netdb.h> has 'struct addrinfo'.
38768         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38769         EAI_OVERFLOW or AI_NUMERICSERV.
38770         * doc/posix-headers/netdb.texi: Document the problem.
38771
38772 2008-11-15  Bruno Haible  <bruno@clisp.org>
38773
38774         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38775
38776         Make the 'sched' module work on platforms where <sched.h> exists but
38777         is incomplete (such as Haiku).
38778         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38779         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38780         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38781         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38782         HAVE_STRUCT_SCHED_PARAM.
38783         * modules/sched (Depends-on): Add include_next.
38784         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38785         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38786         * doc/posix-headers/sched.texi: Document the issue.
38787
38788 2008-11-13  Jim Meyering  <meyering@redhat.com>
38789
38790         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38791         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38792         test would fail due to the difference in the Report bugs to ...
38793         line.  The expected address is empty, "<>", while the actual
38794         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38795
38796 2008-11-12  Bruno Haible  <bruno@clisp.org>
38797
38798         lstat: don't compile lstat.c on systems lacking lstat
38799         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38800         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38801         Reported by Daniel P. Berrange via Jim Meyering.
38802
38803 2008-11-12  Jim Meyering  <meyering@redhat.com>
38804
38805         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38806
38807 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38808
38809         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38810         instead.
38811
38812 2008-11-12  Bruno Haible  <bruno@clisp.org>
38813
38814         * lib/unicodeio.c: Include unistr.h.
38815         (utf8_wctomb): Remove function.
38816         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38817
38818 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38819
38820         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38821         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38822         <bruno@clisp.org>.
38823         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38824
38825 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38826
38827         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38828         * doc/gnulib.texi: Add section for warnings.
38829
38830 2008-11-11  Bruno Haible  <bruno@clisp.org>
38831
38832         * lib/sockets.h: Add a comment.
38833
38834 2008-11-11  Karl Berry  <karl@gnu.org>
38835
38836         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38837
38838 2008-11-11  Eric Blake  <ebb9@byu.net>
38839
38840         fdl.texi: avoid git symlinks
38841         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38842
38843 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38844
38845         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38846
38847 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38848
38849         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38850         (gl_WARN_ADD): Substitute $2 if literal.
38851
38852 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38853
38854         * m4/warning.m4: Remove.
38855
38856 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38857
38858         * m4/warnings.m4: Almost complete rewrite. :-)
38859
38860 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38861
38862         * modules/warnings: New module.
38863         * m4/warnings.m4: New file.
38864         * MODULES.html.sh: Mention warnings module.
38865         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38866         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38867
38868 2008-11-10  Eric Blake  <ebb9@byu.net>
38869
38870         fdl.texi: make a symlink to the latest version
38871         * doc/standards.texi: Revert today's earlier change.
38872         * doc/fdl-1.2.texi: Rename from old fdl.texi...
38873         * doc/fdl.texi: ...and replace this with a symlink to the newer
38874         fdl-1.3.texi.
38875
38876 2008-11-10  Bruno Haible  <bruno@clisp.org>
38877
38878         * tests/test-select-fd.c (main): Accept the result file name as fourth
38879         argument.
38880         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
38881         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
38882
38883 2008-11-10  Bruno Haible  <bruno@clisp.org>
38884
38885         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
38886         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
38887         as autoconf-substituted macros.
38888         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
38889         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
38890         gl_NETDB_H_DEFAULTS. Set these variables.
38891         * modules/netdb (Makefile.am): Substitute these variables.
38892
38893 2008-11-10  Eric Blake  <ebb9@byu.net>
38894
38895         standards.texi: include correct file for FDL 1.3
38896         * doc/standards.texi (GNU Free Documentation License): Change
38897         include file to pull in FDL 1.3, not 1.2.
38898
38899         fdl.texi: revert accidental change to license
38900         * doc/fdl.texi: This is FDL 1.2, not 1.3.
38901
38902 2008-11-10  Bruno Haible  <bruno@clisp.org>
38903
38904         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
38905         cross-compiling guesses also when the native compile gives no result.
38906
38907 2008-11-10  Bruno Haible  <bruno@clisp.org>
38908
38909         * lib/spawni.c (__spawni): Force variable into the stack.
38910
38911 2008-11-10  Bruno Haible  <bruno@clisp.org>
38912
38913         Add support for Haiku.
38914         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
38915         glibc and BeOS, but also on Haiku.
38916         * lib/fpurge.c (fpurge): Likewise.
38917         * lib/freadable.c (freadable): Likewise.
38918         * lib/freadahead.c (freadahead): Likewise.
38919         * lib/freading.c (freading): Likewise.
38920         * lib/freadptr.c (freadptr): Likewise.
38921         * lib/freadseek.c (freadptrinc): Likewise.
38922         * lib/fseeko.c (rpl_fseeko): Likewise.
38923         * lib/fseterr.c (fseterr): Likewise.
38924         * lib/fwritable.c (fwritable): Likewise.
38925         * lib/fwriting.c (fwriting): Likewise.
38926         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
38927
38928 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38929
38930         * lib/config.charset: Treat Haiku like BeOS.
38931
38932 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38933
38934         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
38935         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
38936
38937 2008-11-08  Bruno Haible  <bruno@clisp.org>
38938
38939         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
38940         AC_CACHE_CHECK.
38941
38942 2008-11-08  Bruno Haible  <bruno@clisp.org>
38943
38944         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
38945
38946 2008-11-08  Bruno Haible  <bruno@clisp.org>
38947
38948         * tests/test-select-fd.c: New file.
38949         * tests/test-select-in.sh: New file.
38950         * tests/test-select-out.sh: New file.
38951         * tests/test-select-stdin.c: New file.
38952         * modules/select-tests (Files): Add the new files.
38953         (Depends-on): Add gettimeofday.
38954         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
38955         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
38956         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
38957
38958 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
38959             Bruno Haible  <bruno@clisp.org>
38960
38961         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
38962
38963 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
38964
38965         * build-aux/pmccabe2html: Added support for C++ source files.
38966
38967 2008-11-05  Ben Pfaff  <blp@gnu.org>
38968
38969         Fix lib/close.c build on Windows.
38970         * modules/close (Files): Add lib/w32sock.h.
38971
38972 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
38973
38974         Accept Bison's NEWS format.
38975         * build-aux/announce-gen (print_news_deltas): Tweak
38976         $re_prefix.
38977
38978 2008-11-04  Bruno Haible  <bruno@clisp.org>
38979
38980         * modules/random_r (Maintainer): Add glibc.
38981
38982 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38983
38984         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
38985         by karl@freefriends.org (Karl Berry).
38986         * doc/alloca.texi: Likewise.
38987         * doc/c-ctype.texi: Likewise.
38988         * doc/c-strcase.texi: Likewise.
38989         * doc/c-strcaseeq.texi: Likewise.
38990         * doc/c-strcasestr.texi: Likewise.
38991         * doc/c-strstr.texi: Likewise.
38992         * doc/c-strtod.texi: Likewise.
38993         * doc/c-strtold.texi: Likewise.
38994         * doc/ctime.texi: Likewise.
38995         * doc/error.texi: Likewise.
38996         * doc/fdl.texi: Likewise.
38997         * doc/gcd.texi: Likewise.
38998         * doc/getdate.texi: Likewise.
38999         * doc/gnulib-intro.texi: Likewise.
39000         * doc/gnulib-tool.texi: Likewise.
39001         * doc/gnulib.texi: Likewise.
39002         * doc/inet_ntoa.texi: Likewise.
39003         * doc/maintain.texi: Likewise.
39004         * doc/make-stds.texi: Likewise.
39005         * doc/quote.texi: Likewise.
39006         * doc/regexprops-generic.texi: Likewise.
39007         * doc/standards.texi: Likewise.
39008         * doc/verify.texi: Likewise.
39009         * doc/visibility.texi: Likewise.
39010         * doc/gnulib.texi (GNU Free Documentation License): Include
39011         fdl-1.3.texi instead of fdl.texi.
39012
39013 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39014
39015         * doc/fdl-1.3.texi: New file, from
39016         <http://www.gnu.org/licenses/fdl-1.3.texi>.
39017         * modules/fdl-1.3: Add.
39018         * MODULES.html.sh: Add fdl-1.3.
39019
39020 2008-11-03  Bruno Haible  <bruno@clisp.org>
39021
39022         Make determination of absolute name of header file work with AIX xlc.
39023         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
39024         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
39025         preprocessing.
39026         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39027         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39028
39029 2008-11-03  Simon Josefsson  <simon@josefsson.org>
39030
39031         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
39032         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
39033         <ludo@gnu.org>.
39034
39035 2008-11-02  Bruno Haible  <bruno@clisp.org>
39036
39037         Mark 'strpbrk' obsolete.
39038         * modules/strpbrk (Status, Notice): New sections.
39039         * modules/strtok_r (Depends-on): Add strpbrk.
39040
39041 2008-11-02  Bruno Haible  <bruno@clisp.org>
39042
39043         Mark 'strdup' obsolete.
39044         * modules/strdup (Status, Notice): New sections.
39045         * modules/findprog (Depends-on): Add strdup.
39046         * modules/getaddrinfo (Depends-on): Likewise.
39047         * modules/localename (Depends-on): Likewise.
39048         * modules/relocatable-lib (Depends-on): Likewise.
39049         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
39050         * modules/relocatable-prog (Depends-on): Likewise.
39051         * modules/trim (Depends-on): Likewise.
39052         * modules/unictype/gen-ctype (Depends-on): Likewise.
39053         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39054
39055 2008-11-02  Bruno Haible  <bruno@clisp.org>
39056
39057         Mark 'strcspn' obsolete.
39058         * modules/strcspn (Status, Notice): New sections.
39059
39060 2008-11-02  Bruno Haible  <bruno@clisp.org>
39061
39062         Mark 'rmdir' obsolete.
39063         * modules/rmdir (Status, Notice): New sections.
39064         * modules/clean-temp (Depends-on): Add rmdir.
39065         * modules/openat (Depends-on): Likewise.
39066
39067 2008-11-02  Bruno Haible  <bruno@clisp.org>
39068
39069         Mark 'raise' obsolete.
39070         * modules/raise (Status, Notice): New sections.
39071         (Include): Specify <signal.h>.
39072         * modules/stdio (Depends-on): Add raise.
39073         * modules/write (Depends-on): Likewise.
39074
39075 2008-11-02  Bruno Haible  <bruno@clisp.org>
39076
39077         Mark 'memset' obsolete.
39078         * modules/memset (Status, Notice): New sections.
39079
39080 2008-11-02  Bruno Haible  <bruno@clisp.org>
39081
39082         Mark 'memmove' obsolete.
39083         * modules/memmove (Status, Notice): New sections.
39084         * modules/argp (Depends-on): Add memmove.
39085         * modules/argz (Depends-on): Likewise.
39086         * modules/canonicalize (Depends-on): Likewise.
39087         * modules/canonicalize-lgpl (Depends-on): Likewise.
39088         * modules/fts (Depends-on): Likewise.
39089         * modules/getcwd (Depends-on): Likewise.
39090         * modules/human (Depends-on): Likewise.
39091         * modules/regex (Depends-on): Likewise.
39092         * modules/striconveh (Depends-on): Likewise.
39093         * modules/trim (Depends-on): Likewise.
39094         * modules/unistr/u8-move (Depends-on): Likewise.
39095         * modules/unistr/u16-move (Depends-on): Likewise.
39096         * modules/unistr/u32-move (Depends-on): Likewise.
39097
39098 2008-11-02  Bruno Haible  <bruno@clisp.org>
39099
39100         Mark 'memcpy' obsolete.
39101         * modules/memcpy (Status, Notice): New sections.
39102
39103 2008-11-02  Bruno Haible  <bruno@clisp.org>
39104
39105         Mark 'memcmp' obsolete.
39106         * modules/memcmp (Status, Notice): New sections.
39107         * modules/argmatch (Depends-on): Add memchr.
39108         * modules/backupfile (Depends-on): Likewise.
39109         * modules/c-strcasestr (Depends-on): Likewise.
39110         * modules/crypto/des (Depends-on): Likewise.
39111         * modules/csharpcomp (Depends-on): Likewise.
39112         * modules/fnmatch (Depends-on): Likewise.
39113         * modules/git-merge-changelog (Depends-on): Likewise.
39114         * modules/isnand (Depends-on): Likewise.
39115         * modules/isnand-nolibm (Depends-on): Likewise.
39116         * modules/isnanf (Depends-on): Likewise.
39117         * modules/isnanf-nolibm (Depends-on): Likewise.
39118         * modules/isnanl (Depends-on): Likewise.
39119         * modules/isnanl-nolibm (Depends-on): Likewise.
39120         * modules/mbchar (Depends-on): Likewise.
39121         * modules/memcoll (Depends-on): Likewise.
39122         * modules/quotearg (Depends-on): Likewise.
39123         * modules/regex (Depends-on): Likewise.
39124         * modules/relocatable-prog (Depends-on): Likewise.
39125         * modules/same (Depends-on): Likewise.
39126         * modules/signbit (Depends-on): Likewise.
39127         * modules/strcasestr-simple (Depends-on): Likewise.
39128         * modules/unictype/gen-ctype (Depends-on): Likewise.
39129         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39130         * modules/uniname/uniname (Depends-on): Likewise.
39131         * modules/unistr/u8-cmp (Depends-on): Likewise.
39132
39133 2008-11-02  Bruno Haible  <bruno@clisp.org>
39134
39135         Mark 'memchr' obsolete.
39136         * modules/memchr (Status, Notice): New sections.
39137         * modules/argp (Depends-on): Add memchr.
39138         * modules/base64 (Depends-on): Likewise.
39139         * modules/c-strcasestr (Depends-on): Likewise.
39140         * modules/chdir-long (Depends-on): Likewise.
39141         * modules/fnmatch (Depends-on): Likewise.
39142         * modules/getsubopt (Depends-on): Likewise.
39143         * modules/git-merge-changelog (Depends-on): Likewise.
39144         * modules/glob (Depends-on): Likewise.
39145         * modules/strcasestr-simple (Depends-on): Likewise.
39146         * modules/strnlen (Depends-on): Likewise.
39147
39148 2008-11-02  Bruno Haible  <bruno@clisp.org>
39149
39150         Mark 'atexit' obsolete.
39151         * modules/atexit (Status, Notice): New sections.
39152         * modules/chdir-long (Depends-on): Add atexit.
39153         * modules/wait-process (Depends-on): Likewise.
39154
39155 2008-11-02  Bruno Haible  <bruno@clisp.org>
39156
39157         * gnulib-tool: New option --with-obsolete.
39158         (func_usage): Document it.
39159         (func_modules_transitive_closure): Drop obsolete dependencies if
39160         incobsolete is not true.
39161         (func_import): Read and save the incobsolete variable to the cache.
39162
39163 2008-11-02  Bruno Haible  <bruno@clisp.org>
39164
39165         * modules/TEMPLATE-EXTENDED: New field 'Status'.
39166         * gnulib-tool: New option --extract-status.
39167         (func_usage): Document it.
39168         (sed_extract_prog): Recognize it.
39169         (func_get_status): New function.
39170
39171 2008-10-30  Simon Josefsson  <simon@josefsson.org>
39172
39173         * modules/sockets (License): Change from LGPL to LGPLv2+.
39174
39175 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39176
39177         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
39178
39179 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39180
39181         * MODULES.html.sh (Support for systems lacking POSIX:2001):
39182         Mention times and sys_times.
39183         * modules/sys_times, modules/sys_times-tests: New modules.
39184         * modules/times, modules/times-tests: Likewise
39185         * m4/sys_times_h.m4: New file.
39186         * lib/sys_times.in.h: Likewise
39187         * lib/times.c: Likewise.
39188         * tests/test-sys_times.c: Likewise.
39189         * tests/test-times.c: Likewise.
39190         * doc/posix-headers/sys_times.texi: Update.
39191         * doc/posix-functions/times.texi: Update.
39192
39193 2008-10-28  Jim Meyering  <meyering@redhat.com>
39194
39195         * modules/tempname (Depends-on): Add lstat.
39196
39197         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
39198
39199 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39200
39201         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
39202         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
39203         using idiom used elsewhere in gnulib.
39204
39205 2008-10-27  Jim Meyering  <meyering@redhat.com>
39206
39207         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
39208
39209 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39210
39211         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
39212         TESTS_ENVIRONMENT, for shell scripts that needs to call built
39213         programs.
39214         * tests/test-argp-2.sh: Use $EXEEXT when needed.
39215
39216 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39217
39218         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
39219
39220 2008-10-27  Bruno Haible  <bruno@clisp.org>
39221
39222         * tests/test-lstat.c: Include <stdio.h>.
39223
39224 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39225
39226         * modules/lstat-tests: New module.
39227         * tests/test-lstat.c: New file.
39228
39229 2008-10-26  Jim Meyering  <meyering@redhat.com>
39230
39231         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
39232
39233 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39234             Bruno Haible  <bruno@clisp.org>
39235
39236         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
39237         * modules/configmake (Include): Add a note that the include must come
39238         after all system headers.
39239         * lib/javaversion.c: Include configmake.h after all other includes.
39240
39241 2008-10-26  Bruno Haible  <bruno@clisp.org>
39242
39243         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
39244         HAVE_STRUCT_RANDOM_DATA to 1.
39245         (gl_STDLIB_H): Simplify.
39246
39247 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39248
39249         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
39250         substitute HAVE_STRUCT_RANDOM_DATA.
39251         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
39252         random_data.
39253         * modules/stdlib (Makefile.am): Substitute
39254         HAVE_STRUCT_RANDOM_DATA.
39255
39256 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39257
39258         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
39259         * doc/gnulib-intro.texi (Copyright): Likewise.
39260
39261 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39262
39263         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
39264         findings.
39265
39266 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
39267             Bruno Haible  <bruno@clisp.org>
39268
39269         * lib/unistd.in.h: Include <winsock2.h>.
39270         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
39271         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
39272         Provide dummy declarations.
39273         (gethostname): Override.
39274         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
39275         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
39276         gl_PREREQ_SYS_H_WINSOCK2.
39277         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
39278         * doc/posix-functions/gethostname.texi: More details.
39279
39280 2008-10-25  Bruno Haible  <bruno@clisp.org>
39281
39282         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39283         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
39284         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
39285
39286         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
39287         here ...
39288         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
39289         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
39290         gl_UNISTD_H_DEFAULTS.
39291
39292 2008-10-25  Eric Blake  <ebb9@byu.net>
39293
39294         signbit: avoid spurious compiler failure
39295         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39296         declarations inside function.
39297
39298 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39299             Bruno Haible  <bruno@clisp.org>
39300
39301         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39302         * modules/random_r (Depends-on): Add stdint.
39303
39304 2008-10-24  Bruno Haible  <bruno@clisp.org>
39305
39306         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39307         Eggert.
39308         * modules/strerror (License): Likewise.
39309
39310 2008-10-24  Jim Meyering  <meyering@redhat.com>
39311
39312         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39313         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39314
39315 2008-10-24  Eric Blake  <ebb9@byu.net>
39316
39317         getgroups: fix compilation when getgroups is available
39318         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39319         but with <config.h> override of getgroups disabled.
39320
39321 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39322
39323         * doc/gnulib.texi (Header files): Add note about C++ problems.
39324         Explained by Bruno Haible <bruno@clisp.org>.
39325
39326 2008-10-23  Bruno Haible  <bruno@clisp.org>
39327
39328         Define a dummy SA_NODEFER macro on Interix.
39329         * lib/signal.in.h (SA_NODEFER): Define fallback.
39330         Reported by Aleksey Cheusov <cheusov@tut.by> via
39331         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39332
39333 2008-10-23  Bruno Haible  <bruno@clisp.org>
39334
39335         * modules/freadahead (License): Change to LGPLv2+.
39336         Suggested by Simon Josefsson.
39337
39338 2008-10-23  Jim Meyering  <meyering@redhat.com>
39339
39340         random_r: new module
39341         * modules/random_r: New file.
39342         * m4/random_r.m4: New file.
39343         * lib/random_r.c: New file, from glibc.
39344         * modules/random_r-tests: New file.
39345         * tests/test-random_r.c: New file.
39346         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39347          Declare.
39348         (RAND_MAX): Define.
39349         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39350         * modules/stdlib: Substitute them, too.
39351         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39352         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39353         * doc/glibc-functions/random_r.texi: Likewise.
39354         * doc/glibc-functions/setstate_r.texi: Likewise.
39355         * doc/glibc-functions/srandom_r.texi: Likewise.
39356         * config/srclist.txt: Mention it.
39357
39358 2008-10-23  David Lutterkort  <lutter@redhat.com>
39359
39360         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39361         link requirement
39362
39363 2008-10-23  Jim Meyering  <meyering@redhat.com>
39364
39365         selinux-h: mark parameters of stub functions as intentionally unused
39366         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39367         * lib/se-context.in.h: Likewise.
39368
39369 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39370
39371         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39372
39373 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39374
39375         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39376
39377 2008-10-22  Eric Blake  <ebb9@byu.net>
39378
39379         glthread/thread: avoid compiler warning
39380         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39381         Add unreachable abort to silence compiler.
39382
39383 2008-10-22  Eric Blake  <ebb9@byu.net>
39384
39385         netdb: also supply struct addrinfo for cygwin 1.5.x
39386         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39387         older cygwin.
39388         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39389         cygwin.
39390         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39391
39392 2008-10-22  Bruno Haible  <bruno@clisp.org>
39393
39394         * users.txt: Update entry about pspp.
39395
39396 2008-10-21  Bruno Haible  <bruno@clisp.org>
39397
39398         Simplification.
39399         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39400         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39401
39402         Simplification.
39403         * lib/ioctl.c (ioctl): Don't undefine.
39404         * lib/socket.c (socket): Don't undefine.
39405
39406         Remove unused module indicator macros.
39407         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39408         GNULIB_$1 as a C macro.
39409
39410         * doc/posix-functions/close.texi: Undo last change.
39411         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39412         Windows platforms.
39413
39414 2008-10-21  Bruno Haible  <bruno@clisp.org>
39415
39416         Add gethostname() declaration to <unistd.h>.
39417         * lib/unistd.in.h (gethostname): New declaration.
39418         * lib/gethostname.c: Include <unistd.h>.
39419         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39420         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39422         and HAVE_GETHOSTNAME.
39423         * modules/gethostname (Depends-on): Add unistd.
39424         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39425         (Include): Specify <unistd.h>.
39426         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39427         HAVE_GETHOSTNAME.
39428         * tests/test-gethostname.c: Include <unistd.h> first.
39429
39430 2008-10-21  Bruno Haible  <bruno@clisp.org>
39431
39432         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39433         * modules/select-tests (Depends-on): Likewise.
39434         Reported by Simon Josefsson.
39435
39436 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39437
39438         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39439         * lib/accept.c: New file, based on winsock.c.
39440         * lib/bind.c: New file, based on winsock.c.
39441         * lib/connect.c: New file, based on winsock.c.
39442         * lib/getpeername.c: New file, based on winsock.c.
39443         * lib/getsockname.c: New file, based on winsock.c.
39444         * lib/getsockopt.c: New file, based on winsock.c.
39445         * lib/ioctl.c: New file, based on winsock.c.
39446         * lib/listen.c: New file, based on winsock.c.
39447         * lib/recv.c: New file, based on winsock.c.
39448         * lib/recvfrom.c: New file, based on winsock.c.
39449         * lib/send.c: New file, based on winsock.c.
39450         * lib/sendto.c: New file, based on winsock.c.
39451         * lib/setsockopt.c: New file, based on winsock.c.
39452         * lib/shutdown.c: New file, based on winsock.c.
39453         * lib/socket.c: New file, based on winsock.c.
39454         * lib/w32sock.h: New file, based on winsock.c.
39455         * lib/winsock.c: Remove file.
39456         * modules/accept: Likewise.
39457         * modules/bind: Likewise.
39458         * modules/connect: Likewise.
39459         * modules/getpeername: Likewise.
39460         * modules/getsockname: Likewise.
39461         * modules/getsockopt: Likewise.
39462         * modules/ioctl: Likewise.
39463         * modules/listen: Likewise.
39464         * modules/recv: Likewise.
39465         * modules/recvfrom: Likewise.
39466         * modules/send: Likewise.
39467         * modules/sendto: Likewise.
39468         * modules/setsockopt: Likewise.
39469         * modules/shutdown: Likewise.
39470         * modules/socket: Use socket.c instead of winsock.c.
39471         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39472         * doc/posix-functions/accept.texi: Doc fix.
39473         * doc/posix-functions/bind.texi: Doc fix.
39474         * doc/posix-functions/close.texi: Doc fix.
39475         * doc/posix-functions/connect.texi: Doc fix.
39476         * doc/posix-functions/getpeername.texi: Doc fix.
39477         * doc/posix-functions/getsockname.texi: Doc fix.
39478         * doc/posix-functions/getsockopt.texi: Doc fix.
39479         * doc/posix-functions/ioctl.texi: Doc fix.
39480         * doc/posix-functions/listen.texi: Doc fix.
39481         * doc/posix-functions/recv.texi: Doc fix.
39482         * doc/posix-functions/recvfrom.texi: Doc fix.
39483         * doc/posix-functions/send.texi: Doc fix.
39484         * doc/posix-functions/sendto.texi: Doc fix.
39485         * doc/posix-functions/setsockopt.texi: Doc fix.
39486         * doc/posix-functions/shutdown.texi: Doc fix.
39487         * doc/posix-functions/socket.texi: Doc fix.
39488
39489 2008-10-20  Bruno Haible  <bruno@clisp.org>
39490
39491         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39492         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39493         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39494         as an alias for SIGABRT.
39495         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39496         (sigaction): Map it to SIGABRT.
39497         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39498
39499 2008-10-20  Bruno Haible  <bruno@clisp.org>
39500
39501         * lib/fts.c: Don't include lstat.h.
39502         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39503
39504         Move the lstat() declaration to <sys/stat.h>.
39505         * lib/lstat.h: Remove file.
39506         * lib/sys_stat.in.h: Add special invocation convention.
39507         (lstat): New declaration.
39508         * lib/lstat.c (orig_lstat): New function.
39509         (rpl_lstat): Use orig_lstat instead of lstat.
39510         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39511         AC_C_INLINE. Set REPLACE_LSTAT.
39512         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39513         and REPLACE_LSTAT.
39514         * modules/lstat (Files): Remove lib/lstat.h.
39515         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39516         (Include): Specify <sys/stat.h> instead of lstat.h.
39517         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39518         REPLACE_LSTAT.
39519         * NEWS: Mention the change.
39520
39521 2008-10-20  Bruno Haible  <bruno@clisp.org>
39522
39523         * modules/posix_spawn-tests: New file.
39524         * tests/test-posix_spawn3.c: New file.
39525
39526 2008-10-20  Bruno Haible  <bruno@clisp.org>
39527
39528         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39529         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39530         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39531         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39532         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39533
39534 2008-10-20  Bruno Haible  <bruno@clisp.org>
39535
39536         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39537         of posix_spawn on AIX 5.3.
39538
39539 2008-10-20  Bruno Haible  <bruno@clisp.org>
39540
39541         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39542
39543 2008-10-20  Bruno Haible  <bruno@clisp.org>
39544
39545         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39546         of AC_LANG_PROGRAM.
39547
39548 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39549
39550         * lib/netdb.in.h: Don't define GNU specific constants until they
39551         are supported or needed.  Reported by Bruno Haible
39552         <bruno@clisp.org>.
39553
39554 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39555
39556         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39557
39558 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39559
39560         * lib/getaddrinfo.h: Remove file.
39561         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39562         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39563         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39564         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39565         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39566         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39567         * tests/test-getaddrinfo.c: Likewise.
39568         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39569         * NEWS: Mention change.
39570
39571 2008-10-19  Bruno Haible  <bruno@clisp.org>
39572
39573         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39574
39575 2008-10-19  Bruno Haible  <bruno@clisp.org>
39576
39577         * lib/wait-process.c: Include simply <sys/wait.h>.
39578         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39579         WIFSTOPPED): Remove fallback definitions.
39580         * modules/wait-process (Depends-on): Add sys_wait.
39581
39582         New module 'sys_wait'.
39583         * modules/sys_wait: New file.
39584         * lib/sys_wait.in.h: New file, partially copied from
39585         lib/wait-process.c.
39586         * m4/sys_wait_h.m4: New file.
39587         * doc/posix-headers/sys_wait.texi: Mention the new module.
39588
39589 2008-10-19  Bruno Haible  <bruno@clisp.org>
39590
39591         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39592
39593 2008-10-19  Bruno Haible  <bruno@clisp.org>
39594
39595         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39596         * lib/wait-process.c (WAIT_T): Remove type.
39597         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39598         (wait_subprocess): Update.
39599
39600 2008-10-19  Bruno Haible  <bruno@clisp.org>
39601
39602         New module 'atoll'.
39603         * modules/atoll: New file.
39604         * lib/stdlib.in.h (atoll): New declaration.
39605         * lib/atoll.c: New file, from glibc with modifications.
39606         * m4/atoll.m4: New file.
39607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39608         HAVE_ATOLL.
39609         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39610         * doc/posix-functions/atoll.texi: Mention the new module.
39611
39612 2008-10-19  Bruno Haible  <bruno@clisp.org>
39613
39614         Add strtoull() declaration to <stdlib.h>.
39615         * lib/stdlib.in.h (strtoull): New declaration.
39616         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39617         Set HAVE_STRTOULL.
39618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39619         HAVE_STRTOULL.
39620         * modules/strtoull (Depends-on): Add stdlib.
39621         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39622         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39623         HAVE_STRTOULL.
39624
39625 2008-10-19  Bruno Haible  <bruno@clisp.org>
39626
39627         Add strtoll() declaration to <stdlib.h>.
39628         * lib/stdlib.in.h (strtoll): New declaration.
39629         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39630         Set HAVE_STRTOLL.
39631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39632         HAVE_STRTOLL.
39633         * modules/strtoll (Depends-on): Add stdlib.
39634         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39635         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39636
39637 2008-10-19  Bruno Haible  <bruno@clisp.org>
39638
39639         * modules/bcopy (Depends-on): Add strings.
39640         (Include): Specify <strings.h>.
39641
39642 2008-10-19  Bruno Haible  <bruno@clisp.org>
39643
39644         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39645
39646 2008-10-19  Bruno Haible  <bruno@clisp.org>
39647
39648         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39649         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39650         mingw.
39651
39652 2008-10-19  Bruno Haible  <bruno@clisp.org>
39653
39654         * lib/atanl.c: Don't include isnanl.h.
39655         * lib/cosl.c: Likewise.
39656         * lib/ldexpl.c: Likewise.
39657         * lib/logl.c: Likewise.
39658         * lib/sinl.c: Likewise.
39659         * lib/sqrtl.c: Likewise.
39660         * lib/tanl.c: Likewise.
39661
39662         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39663         * lib/isnanf.h: Remove file.
39664         * lib/isnand.h: Remove file.
39665         * lib/isnanl.h: Remove file.
39666         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39667         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39668         macros.
39669         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39670         HAVE_ISNANF, don't define it as a C macro.
39671         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39672         HAVE_ISNAND, don't define it as a C macro.
39673         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39674         HAVE_ISNANL, don't define it as a C macro.
39675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39676         HAVE_ISNAN[FDL].
39677         * modules/isnanf (Files): Remove lib/isnanf.h.
39678         (Depends-on): Add math.
39679         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39680         (Include): Specify <math.h> instead of isnanf.h.
39681         * modules/isnand (Files): Remove lib/isnand.h.
39682         (Depends-on): Add math.
39683         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39684         (Include): Specify <math.h> instead of isnand.h.
39685         * modules/isnanl (Files): Remove lib/isnanl.h.
39686         (Depends-on): Add math.
39687         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39688         (Include): Specify <math.h> instead of isnanl.h.
39689         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39690         HAVE_ISNAN[FDL].
39691         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39692         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39693         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39694         * NEWS: Mention the change.
39695
39696 2008-10-18  Bruno Haible  <bruno@clisp.org>
39697
39698         Add getusershell(), setusershell(), endusershell() declarations to
39699         <unistd.h>.
39700         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39701         declarations.
39702         * lib/getusershell.c: Include unistd.h.
39703         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39704         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39705         HAVE_GETUSERSHELL.
39706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39707         and HAVE_GETUSERSHELL.
39708         * modules/getusershell (Depends-on): Add unistd, extensions.
39709         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39710         (Include): Specify <unistd.h>.
39711         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39712         HAVE_GETUSERSHELL.
39713
39714 2008-10-18  Bruno Haible  <bruno@clisp.org>
39715
39716         Add a getloadavg() declaration to <stdlib.h>.
39717         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39718         getloadavg declaration.
39719         (getloadavg): New declaration.
39720         * lib/getloadavg.c: Include <stdlib.h> first.
39721         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39722         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39723         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39725         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39726         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39727         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39728         (Include): Specify <stdlib.h>.
39729         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39730         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39731
39732 2008-10-18  Bruno Haible  <bruno@clisp.org>
39733
39734         * lib/dirchownmod.c: Don't include lchmod.h.
39735
39736         Move the lchmod() declaration to <sys/stat.h>.
39737         * lib/lchmod.h: Remove file.
39738         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39739         (lchmod): New declaration, moved here from lib/lchown.h.
39740         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39741         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39742         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39743         and HAVE_LCHMOD.
39744         * modules/lchmod (Files): Remove lib/lchmod.h.
39745         (Depends-on): Add sys_stat, extensions.
39746         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39747         (Include): Specify <sys/stat.h> instead of lchmod.h.
39748         * modules/sys_stat (Depends-on): Add link-warning.
39749         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39750         definition of GL_LINK_WARNING.
39751         * NEWS: Mention the change.
39752
39753 2008-10-18  Bruno Haible  <bruno@clisp.org>
39754
39755         * lib/fchdir.c: Don't include dirfd.h.
39756         * lib/fts.c: Likewise.
39757         * lib/getcwd.c: Likewise.
39758         * lib/glob.c: Likewise.
39759
39760         Move the dirfd() declaration to <dirent.h>.
39761         * lib/dirfd.h: Remove file.
39762         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39763         (dirfd): New declaration.
39764         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39765         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39766         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39767         HAVE_DECL_DIRFD.
39768         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39769         HAVE_DECL_DIRFD.
39770         * modules/dirfd (Files): Remove lib/dirfd.h.
39771         (Depends-on): Add dirent, extensions.
39772         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39773         (Include): Specify <dirent.h> instead of dirfd.h.
39774         * modules/dirent (Depends-on): Add link-warning.
39775         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39776         definition of GL_LINK_WARNING.
39777         * NEWS: Mention the change.
39778
39779 2008-10-18  Bruno Haible  <bruno@clisp.org>
39780
39781         Move the euidaccess() declaration to <unistd.h>.
39782         * lib/euidaccess.h: Remove file.
39783         * lib/unistd.in.h (euidaccess): New declaration.
39784         * lib/euidaccess.c: Don't include euidaccess.h.
39785         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39786         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39788         and HAVE_EUIDACCESS.
39789         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39790         (Depends-on): Add unistd.
39791         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39792         (Include): Specify <unistd.h> instead of euidaccess.h.
39793         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39794         HAVE_EUIDACCESS.
39795         * NEWS: Mention the change.
39796
39797 2008-10-18  Bruno Haible  <bruno@clisp.org>
39798
39799         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39800
39801         Move the getdomainname() declaration to <unistd.h>.
39802         * lib/getdomainname.h: Remove file.
39803         * lib/unistd.in.h (getdomainname): New declaration.
39804         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39805         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39806         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39807         HAVE_GETDOMAINNAME.
39808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39809         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39810         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39811         (Depends-on): Add unistd, extensions.
39812         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39813         (Includes): Specify <unistd.h> instead of getdomainname.h.
39814         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39815         HAVE_GETDOMAINNAME.
39816         * NEWS: Mention the change.
39817
39818 2008-10-18  Bruno Haible  <bruno@clisp.org>
39819
39820         * modules/dirent: New file.
39821         * m4/dirent_h.m4: New file.
39822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39823         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39824         * modules/fchdir (Files): Remove lib/dirent.in.h.
39825         (Depends-on): Add dirent.
39826         (Makefile.am): Move rules to modules/dirent.
39827         * doc/posix-headers/dirent.texi: Mention the new module.
39828
39829 2008-10-18  Bruno Haible  <bruno@clisp.org>
39830
39831         Avoid -Wunused-parameter warnings in public gnulib header files.
39832         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39833         macro.
39834         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39835
39836 2008-10-18  Bruno Haible  <bruno@clisp.org>
39837
39838         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39839         * doc/glibc-functions/error.texi: Mention the module 'error'.
39840         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39841         * doc/glibc-functions/getdomainname.texi: Mention the module
39842         'getdomainname'.
39843         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39844         * doc/glibc-functions/getpagesize.texi: Mention the module
39845         'getpagesize'.
39846         * doc/glibc-functions/getusershell.texi: Mention the module
39847         'getusershell'.
39848         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39849         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39850         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39851         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39852         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39853         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39854         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39855         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39856         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39857         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39858         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39859         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39860         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39861         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39862
39863 2008-10-17  Bruno Haible  <bruno@clisp.org>
39864
39865         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39866         HP-UX and IRIX, use -0.0L.
39867         * tests/test-ceill.c (minus_zero): Likewise.
39868         * tests/test-floorl.c (minus_zero): Likewise.
39869         * tests/test-frexpl.c (minus_zero): Likewise.
39870         * tests/test-isnan.c (minus_zerol): Likewise.
39871         * tests/test-isnanl.h (minus_zero): Likewise.
39872         * tests/test-ldexpl.c (minus_zero): Likewise.
39873         * tests/test-roundl.c (minus_zero): Likewise.
39874         * tests/test-signbit.c (minus_zerol): Likewise.
39875         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39876         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39877         * tests/test-truncl.c (minus_zero): Likewise.
39878         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39879         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39880         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
39881         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39882
39883 2008-10-17  Bruno Haible  <bruno@clisp.org>
39884
39885         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
39886         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
39887         that it gets activated only for gcc >= 3.0.
39888         * lib/dirent.in.h: Likewise.
39889         * lib/errno.in.h: Likewise.
39890         * lib/fcntl.in.h: Likewise.
39891         * lib/float.in.h: Likewise.
39892         * lib/iconv.in.h: Likewise.
39893         * lib/inttypes.in.h: Likewise.
39894         * lib/locale.in.h: Likewise.
39895         * lib/math.in.h: Likewise.
39896         * lib/netdb.in.h: Likewise.
39897         * lib/netinet_in.in.h: Likewise.
39898         * lib/search.in.h: Likewise.
39899         * lib/signal.in.h: Likewise.
39900         * lib/spawn.in.h: Likewise.
39901         * lib/stdarg.in.h: Likewise.
39902         * lib/stdint.in.h: Likewise.
39903         * lib/stdio.in.h: Likewise.
39904         * lib/stdlib.in.h: Likewise.
39905         * lib/string.in.h: Likewise.
39906         * lib/strings.in.h: Likewise.
39907         * lib/sys_file.in.h: Likewise.
39908         * lib/sys_ioctl.in.h: Likewise.
39909         * lib/sys_select.in.h: Likewise.
39910         * lib/sys_socket.in.h: Likewise.
39911         * lib/sys_stat.in.h: Likewise.
39912         * lib/sys_time.in.h: Likewise.
39913         * lib/sysexits.in.h: Likewise.
39914         * lib/time.in.h: Likewise.
39915         * lib/unistd.in.h: Likewise.
39916         * lib/wchar.in.h: Likewise.
39917         * lib/wctype.in.h: Likewise.
39918         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39919
39920 2008-10-17  Jim Meyering  <meyering@redhat.com>
39921
39922         ignore-value: don't depend on inline module
39923         * modules/ignore-value (Depends-on): Remove 'inline'.
39924         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
39925         Suggestion from Bruno Haible.
39926
39927 2008-10-17  Bruno Haible  <bruno@clisp.org>
39928
39929         New implementation of condition variables for Win32.
39930         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
39931         (gl_linked_waitqueue_t): New type.
39932         (gl_cond_t): Use it.
39933         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
39934         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
39935         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
39936         (glthread_cond_init_func, glthread_cond_wait_func,
39937         glthread_cond_timedwait_func, glthread_cond_signal_func,
39938         glthread_cond_broadcast_func, glthread_cond_destroy_func):
39939         Reimplemented on the basis of gl_linked_waitqueue_t.
39940         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
39941         gl_waitqueue_t.
39942         (gl_rwlock_t): Update.
39943         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
39944
39945 2008-10-17  Simon Josefsson  <simon@josefsson.org>
39946
39947         * modules/recvfrom (Depends-on): Add dependency on getpeername.
39948         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39949
39950 2008-10-17  Jim Meyering  <meyering@redhat.com>
39951
39952         ignore-value: new module
39953         * modules/ignore-value: New file.
39954         * lib/ignore-value.h: New file.
39955         * MODULES.html.sh (Compiler warning management): New section,
39956         just for this module.  More to come.
39957
39958 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39959
39960         open-safer.c: avoid 'signed and unsigned in conditional...' warning
39961         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
39962         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
39963
39964 2008-10-16  Jim Meyering  <meyering@redhat.com>
39965
39966         openat-die.c: avoid 'no previous prototype' warning
39967         * lib/openat-die.c: Include "openat.h".
39968         Reported by Reuben Thomas <rrt@sc3d.org>.
39969
39970 2008-10-16  Simon Josefsson  <simon@josefsson.org>
39971
39972         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
39973         * lib/netdb.in.h: Fix typo.
39974         Reported by Bruno Haible  <bruno@clisp.org>
39975
39976         * lib/netdb.in.h: Include sys/socket.h for platforms without
39977         netdb.h, to get structures like hostent on MinGW.
39978         * modules/netdb (Depends-on): Add sys_socket.
39979
39980 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39981
39982         * modules/netdb, modules/netdb-tests: New file.
39983         * m4/netdb_h.m4: New file.
39984         * lib/netdb.in.h: Add, currently just an empty file pending
39985         definitions.
39986         * tests/test-netdb.c: New file.
39987         * doc/posix-headers/netdb.texi: Mention that we replace it if
39988         needed.
39989         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39990         netdb.
39991
39992 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39993
39994         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
39995         with code.
39996
39997 2008-10-13  Bruno Haible  <bruno@clisp.org>
39998
39999         * lib/glthread/cond.c (glthread_cond_wait_func,
40000         glthread_cond_timedwait_func): Add a comment.
40001
40002 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40003
40004         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
40005         * tests/test-select.c: Likewise,
40006
40007 2008-10-13  Bruno Haible  <bruno@clisp.org>
40008
40009         * lib/glthread/cond.c (glthread_cond_wait_func,
40010         glthread_cond_timedwait_func): Fix variable name.
40011         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40012
40013 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
40014
40015         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
40016         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
40017         struct sockaddr.sa_len.
40018         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
40019
40020 2008-10-13  Simon Josefsson  <simon@josefsson.org>
40021
40022         * build-aux/pmccabe2html: Add css and css_url parameters.
40023
40024 2008-10-12  Bruno Haible  <bruno@clisp.org>
40025
40026         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
40027         calling aclx_get.
40028         Reported by Rainer Tammer <tammer@tammer.net>.
40029
40030 2008-10-12  Bruno Haible  <bruno@clisp.org>
40031
40032         Use msvcrt aware primitives for creation/termination of Win32 threads.
40033         * lib/glthread/thread.c: Include <process.h>.
40034         (glthread_create_func): Use _beginthreadex instead of CreateThread.
40035         (wrapper_func): Update signature.
40036         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
40037
40038 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40039             Bruno Haible  <bruno@clisp.org>
40040
40041         Provide a Win32 implementation of the 'cond' module.
40042         * lib/glthread/cond.h [USE_WIN32]: New implementation.
40043         * lib/glthread/cond.c (glthread_cond_init_func,
40044         glthread_cond_wait_func, glthread_cond_timedwait_func,
40045         glthread_cond_signal_func, glthread_cond_broadcast_func,
40046         glthread_cond_destroy_func) [USE_WIN32]: New functions.
40047         * modules/cond (Dependencies): Add gettimeofday.
40048
40049 2008-10-11  Bruno Haible  <bruno@clisp.org>
40050
40051         Make sleep work on older versions of mingw.
40052         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
40053         only whether it exists.
40054         * doc/posix-functions/sleep.texi: Mention the problem with older
40055         versions of mingw.
40056
40057 2008-10-11  Bruno Haible  <bruno@clisp.org>
40058
40059         New module 'shutdown'.
40060         * modules/shutdown: New file.
40061         * lib/sys_socket.in.h (shutdown): New declaration.
40062         * lib/winsock.c (shutdown): New function.
40063         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40064         GNULIB_SHUTDOWN.
40065         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
40066         * doc/posix-functions/shutdown.texi: Document the new module.
40067
40068 2008-10-11  Jim Meyering  <meyering@redhat.com>
40069
40070         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
40071
40072 2008-10-11  Bruno Haible  <bruno@clisp.org>
40073
40074         New module 'fclose'.
40075         * modules/fclose: New file.
40076         * lib/stdio.in.h (fclose): New declaration.
40077         * lib/fclose.c: New file.
40078         * m4/fclose.m4: New file.
40079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
40080         REPLACE_FCLOSE.
40081         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
40082         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
40083         REPLACE_FCLOSE.
40084         * modules/close (Depends-on): fclose.
40085         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
40086
40087 2008-10-11  Bruno Haible  <bruno@clisp.org>
40088
40089         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
40090         set errno and don't call _close.
40091
40092 2008-10-10  Bruno Haible  <bruno@clisp.org>
40093
40094         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
40095         ACL, not afterwards. Fixes test failure on Cygwin.
40096
40097 2008-10-09  Ben Pfaff  <blp@gnu.org>
40098
40099         * build-aux/announce-gen: Fix gnulib version related part of usage
40100         message.  Die with a useful error message if no tarballs are
40101         found.
40102
40103 2008-10-10  Jim Meyering  <meyering@redhat.com>
40104
40105         bootstrap: use git's --depth=N option only if it's supported
40106         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40107         recognize the --depth option.  Reported by Pádraig Brady.
40108
40109 2008-10-09  Bruno Haible  <bruno@clisp.org>
40110
40111         New module 'ioctl'.
40112         * modules/ioctl: New file.
40113         * lib/sys_socket.in.h (ioctl): Remove declaration.
40114         * lib/winsock.c: Include <sys/ioctl.h>.
40115         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40116         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40117         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40118         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
40119         * doc/posix-functions/ioctl.texi: Mention the new module.
40120
40121 2008-10-09  Bruno Haible  <bruno@clisp.org>
40122
40123         New module 'sys_ioctl'.
40124         * lib/sys_ioctl.in.h: New file.
40125         * m4/sys_ioctl_h.m4: New file.
40126         * modules/sys_ioctl: New file.
40127         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
40128
40129 2008-10-09  Bruno Haible  <bruno@clisp.org>
40130
40131         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
40132         * lib/winsock.c: Include <stdarg.h>.
40133         (rpl_ioctl): Change to second argument 'int' and then varargs.
40134
40135 2008-10-09  Bruno Haible  <bruno@clisp.org>
40136
40137         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
40138         when the sys_socket module is present and the system has <winsock2.h>.
40139
40140 2008-10-09  Bruno Haible  <bruno@clisp.org>
40141
40142         * doc/posix-functions/close.texi: Mention module 'close' instead of
40143         module 'sys_socket'.
40144
40145 2008-10-09  Bruno Haible  <bruno@clisp.org>
40146
40147         * doc/glibc-headers/sys_ioctl.texi: New file.
40148         * doc/gnulib.texi: Include it.
40149
40150 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40151             Bruno Haible  <bruno@clisp.org>
40152
40153         Combine the two replacements of 'close'.
40154         * lib/sys_socket.in.h (close): Define to a reminder to include
40155         <unistd.h>.
40156         (_gl_close_fd_maybe_socket): New declaration.
40157         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
40158         * lib/winsock.c (close): Remove undefinition.
40159         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
40160         needed for the gnulib module 'close'.
40161         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
40162         define to an error symbol or to a warning, if suitable.
40163         * lib/close.c: Include <sys/socket.h>.
40164         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
40165         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
40166         UNISTD_H_HAVE_WINSOCK2_H.
40167         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
40168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40169         UNISTD_H_HAVE_WINSOCK2_H.
40170         * modules/sys_socket (Files): Add m4/unistd_h.m4.
40171         (configure.ac): Set a module indicator.
40172         (Makefile.am): Substitute GNULIB_CLOSE.
40173         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
40174         * modules/poll-tests (Depends-on): Add close.
40175         * modules/select-tests (Depends-on): Likewise.
40176
40177 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40178             Bruno Haible  <bruno@clisp.org>
40179
40180         New module 'close'.
40181         * modules/close: New file.
40182         * lib/unistd.in.h (close): Move declaration out of the
40183         FCHDIR_REPLACEMENT scope.
40184         (_gl_unregister_fd): New declaration.
40185         * lib/close.c: New file.
40186         * lib/fchdir.c (rpl_close): Remove function.
40187         * m4/close.m4: New file.
40188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40189         close.
40190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
40191         REPLACE_CLOSE.
40192         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
40193         REPLACE_CLOSE.
40194         * modules/fchdir (Depends-on): Add close.
40195
40196 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40197             Bruno Haible  <bruno@clisp.org>
40198
40199         * lib/fcntl.in.h (open): Simplify conditionals.
40200         (_gl_register_fd): New declaration.
40201         * lib/fchdir.c (rpl_open): Remove function.
40202         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
40203         also.
40204         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
40205         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40206         open.
40207
40208 2008-10-09  Jim Meyering  <meyering@redhat.com>
40209
40210         GNUmakefile: use the more name-space-friendly "_version"
40211         * top/GNUmakefile (_dummy): Update.
40212         (_version): Rename from "version".
40213
40214 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40215             Bruno Haible  <bruno@clisp.org>
40216
40217         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
40218         rpl_close.
40219         (_gl_register_fd): New function, extracted from rpl_open.
40220         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
40221         (rpl_open, rpl_opendir): Use _gl_register_fd.
40222
40223 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40224
40225         Fix organization of 'open' replacement.
40226         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
40227         (gl_FUNC_OPEN): Use it.
40228         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
40229
40230 2008-10-08  Bruno Haible  <bruno@clisp.org>
40231
40232         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
40233
40234 2008-10-08  Simon Josefsson  <simon@josefsson.org>
40235
40236         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
40237         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
40238         listen).
40239
40240 2008-10-08  Eric Blake  <ebb9@byu.net>
40241
40242         GNUmakefile: add 'make version' target
40243         * top/GNUmakefile (_curr-ver): Split version update rules...
40244         (version): ...into a target.
40245
40246 2008-10-07  Bruno Haible  <bruno@clisp.org>
40247
40248         Use a more portable replacement expression for -0.0L.
40249         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
40250         instead of -0.0L. Fix m4 quotation.
40251
40252         * tests/test-signbit.c: Include <float.h>.
40253         (minus_zero): New variable.
40254         (test_signbitl): Use minus_zero instead of -zero.
40255         * modules/signbit-tests (Depends-on): Add float.
40256
40257         * tests/test-ceill.c: Include <float.h>.
40258         (zero): Remove variable.
40259         (minus_zero): New variable.
40260         (main): Use minus_zero instead of -zero.
40261         * modules/ceill-tests (Depends-on): Add float.
40262
40263         * tests/test-floorl.c: Include <float.h>.
40264         (zero): Remove variable.
40265         (minus_zero): New variable.
40266         (main): Use minus_zero instead of -zero.
40267         * modules/floorl-tests (Depends-on): Add float.
40268
40269         * tests/test-roundl.c: Include <float.h>.
40270         (zero): Remove variable.
40271         (minus_zero): New variable.
40272         (main): Use minus_zero instead of -zero.
40273         * modules/roundl-tests (Depends-on): Add float.
40274
40275         * tests/test-truncl.c: Include <float.h>.
40276         (zero): Remove variable.
40277         (minus_zero): New variable.
40278         (main): Use minus_zero instead of -zero.
40279         * modules/truncl-tests (Depends-on): Add float.
40280
40281         * tests/test-frexpl.c (zero): Remove variable.
40282         (minus_zero): New variable.
40283         (main): Use minus_zero instead of -zero.
40284         * modules/frexpl-tests (Depends-on): Add float.
40285
40286         * tests/test-isnan.c (zerol): Remove variable.
40287         (minus_zerol): New variable.
40288         (test_long_double): Use minus_zerol instead of -zerol.
40289         * modules/isnan-tests (Depends-on): Add float.
40290
40291         * tests/test-isnanl.h (zero): Remove variable.
40292         (minus_zero): New variable.
40293         (main): Use minus_zero instead of -zero.
40294         * modules/isnanl-nolibm-tests (Depends-on): Add float.
40295         * modules/isnanl-tests (Depends-on): Add float.
40296
40297         * tests/test-ldexpl.c (zero): Remove variable.
40298         (minus_zero): New variable.
40299         (main): Use minus_zero instead of -zero.
40300         * modules/ldexpl-tests (Depends-on): Add float.
40301
40302         * tests/test-snprintf-posix.h (zerol): Remove variable.
40303         (minus_zerol): New variable.
40304         (test_function): Use minus_zerol instead of -zerol.
40305         * modules/snprintf-posix-tests (Depends-on): Add float.
40306         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40307
40308         * tests/test-sprintf-posix.h (zerol): Remove variable.
40309         (minus_zerol): New variable.
40310         (test_function): Use minus_zerol instead of -zerol.
40311         * modules/sprintf-posix-tests (Depends-on): Add float.
40312         * modules/vsprintf-posix-tests (Depends-on): Add float.
40313
40314         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40315         (minus_zerol): New variable.
40316         (test_function): Use minus_zerol instead of -zerol.
40317         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40318
40319         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40320         (minus_zerol): New variable.
40321         (test_function): Use minus_zerol instead of -zerol.
40322         * modules/vasprintf-posix-tests (Depends-on): Add float.
40323
40324 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40325
40326         * MODULES.html.sh (Support for building documentation): Mention
40327         pmccabe2html.  Sort entries.
40328
40329         Add pmccabe2html module, from gnupdf.
40330         * build-aux/pmccabe.css: New file.
40331         * build-aux/pmccabe2html: New file.
40332         * m4/pmccabe2html.m4: New file.
40333         * modules/pmccabe2html: New file.
40334
40335 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40336
40337         flock: new module
40338         * MODULES.html.sh: Add to list of modules.
40339         * lib/flock.c: flock implementation for Windows and Unix systems
40340         which have fcntl.
40341         * doc/glibc-functions/flock.texi: Update documentation.
40342         * lib/sys_file.in.h: <sys/file.h> header file.
40343         * m4/flock.m4: M4 macros.
40344         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40345         * modules/flock: flock module.
40346         * modules/flock-tests: flock tests module.
40347         * modules/sys_file: sys/file.h module.
40348         * tests/test-flock.c: test suite for flock.
40349
40350 2008-10-06  Jim Meyering  <meyering@redhat.com>
40351
40352         bootstrap: check for LT_INIT more portably still ;-)
40353         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40354         Spotted by Bruno Haible.
40355
40356 2008-10-06  Eric Blake  <ebb9@byu.net>
40357
40358         test-signbit: avoid tripping Irix cc bug on -0.0L
40359         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40360         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40361         entire testsuite consistent and avoids an Irix 6.2 bug.
40362
40363 2008-10-05  Bruno Haible  <bruno@clisp.org>
40364             Jim Meyering  <jim@meyering.net>
40365
40366         Add an option for ignoring EPIPE during close_stdout.
40367         * lib/closeout.h: Include <stdbool.h>.
40368         (close_stdout_set_ignore_EPIPE): New declaration.
40369         * lib/closeout.c: Include <stdbool.h>.
40370         (ignore_EPIPE): New variable.
40371         (close_stdout_set_ignore_EPIPE): New function.
40372         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40373         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40374         failure.
40375         * modules/closeout (Depends-on): Add stdbool.
40376
40377 2008-10-05  Bruno Haible  <bruno@clisp.org>
40378
40379         * modules/accept: New file.
40380         * modules/bind: New file.
40381         * modules/connect: New file.
40382         * modules/getpeername: New file.
40383         * modules/getsockname: New file.
40384         * modules/getsockopt: New file.
40385         * modules/listen: New file.
40386         * modules/recv: New file.
40387         * modules/recvfrom: New file.
40388         * modules/send: New file.
40389         * modules/sendto: New file.
40390         * modules/setsockopt: New file.
40391         * modules/socket: New file.
40392         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40393         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40394         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40395         the particular module is requested. Add a link warning when the
40396         particular module is not requested.
40397         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40398         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40399         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40400         the particular module is requested.
40401         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40402         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40403         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40404         * modules/sys_socket (Depends-on): Add link-warning.
40405         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40406         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40407         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40408         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40409         GL_LINK_WARNING.
40410         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40411         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40412         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40413         * doc/posix-functions/getpeername.texi: Mention the new module
40414         'getpeername'.
40415         * doc/posix-functions/getsockname.texi: Mention the new module
40416         'getsockname'.
40417         * doc/posix-functions/getsockopt.texi: Mention the new module
40418         'getsockopt'.
40419         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40420         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40421         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40422         * doc/posix-functions/send.texi: Mention the new module 'send'.
40423         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40424         * doc/posix-functions/setsockopt.texi: Mention the new module
40425         'setsockopt'.
40426         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40427         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40428         listen, connect, accept.
40429         * modules/select-tests (Depends-on): Likewise.
40430
40431 2008-10-05  Bruno Haible  <bruno@clisp.org>
40432
40433         * lib/winsock.c (strerror): Remove unused #undef.
40434         (rpl_close): Remove unused local variable.
40435
40436         * modules/sys_socket (Depends-on); Add errno.
40437
40438 2008-10-05  Bruno Haible  <bruno@clisp.org>
40439
40440         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40441         (select): Add a link warning when the 'select' module is not used.
40442         * modules/sys_select (Depends-on): Add link-warning.
40443         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40444         Suggested by Paolo Bonzini.
40445
40446 2008-10-05  Jim Meyering  <meyering@redhat.com>
40447
40448         bootstrap: check for LT_INIT more portably
40449         * build-aux/bootstrap: Avoid using grep -E, since it's not
40450         portable enough.  Suggestion from Bruno Haible.
40451
40452 2008-10-05  Bruno Haible  <bruno@clisp.org>
40453
40454         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40455         as being fixed by gnulib.
40456
40457 2008-10-05  Bruno Haible  <bruno@clisp.org>
40458
40459         * modules/select-tests: New file, mostly copied from
40460         modules/sys_select-tests.
40461         * tests/test-select.c: New file, mostly copied from
40462         tests/test-sys_select.c.
40463         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40464         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40465         (Makefile.am): Remove test_sys_select_LDADD.
40466
40467         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40468         to an undefined symbol, for an error message.
40469         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40470         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40471         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40472         winsock-select.c here.
40473         * modules/sys_select (Files): Remove lib/winsock-select.c.
40474         (Depends-on): Remove alloca.
40475         (Makefile.am): Substitute GNULIB_SELECT.
40476         * modules/select: New file.
40477         * doc/posix-functions/select.texi: Update.
40478
40479 2008-10-05  Bruno Haible  <bruno@clisp.org>
40480
40481         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40482         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40483         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40484         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40485         getdtablesize.
40486         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40487         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40488
40489 2008-10-05  Bruno Haible  <bruno@clisp.org>
40490
40491         * modules/getdtablesize-tests: New file.
40492         * tests/test-getdtablesize.c: New file.
40493
40494         New module 'getdtablesize'.
40495         * lib/unistd.in.h (getdtablesize): New declaration.
40496         * lib/getdtablesize.c: New file.
40497         * m4/getdtablesize.m4: New file.
40498         * modules/getdtablesize: New file.
40499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40500         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40501         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40502         HAVE_GETDTABLESIZE.
40503         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40504
40505 2008-10-05  Bruno Haible  <bruno@clisp.org>
40506
40507         * modules/sched (Makefile.am): Fix typo.
40508         Reported by Simon Josefsson.
40509
40510 2008-10-05  Jim Meyering  <meyering@redhat.com>
40511
40512         bootstrap: check for LT_INIT, too
40513         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40514         are deprecated.  Suggestion from Ralf Wildenhues.
40515
40516 2008-10-05  Bruno Haible  <bruno@clisp.org>
40517
40518         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40519         overriding them by ours.
40520         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40521
40522 2008-10-05  Jim Meyering  <meyering@redhat.com>
40523
40524         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40525         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40526         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40527
40528 2008-10-04  Bruno Haible  <bruno@clisp.org>
40529
40530         * modules/dup2 (License): Change to LGPLv2+.
40531         * modules/sleep (License): Likewise.
40532         * modules/perror (License): Likewise.
40533         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40534         Blake.
40535         * modules/signal (License): Likewise.
40536         * modules/sigprocmask (License): Likewise.
40537         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40538         Meyering.
40539
40540 2008-10-04  Bruno Haible  <bruno@clisp.org>
40541
40542         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40543         Reported by Rainer Tammer <tammer@tammer.net>.
40544
40545 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40546             Bruno Haible  <bruno@clisp.org>
40547
40548         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40549         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40550         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40551
40552 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40553
40554         filevercmp: new module
40555         * lib/filevercmp.h: New function filevercmp comparing version strings.
40556         * lib/filevercmp.c: Implementation of filevercmp function.
40557         * modules/filevercmp: Module metadata.
40558         * tests/test-filevercmp.c: Unit test for new module.
40559         * modules/filevercmp-tests: Unit test metadata.
40560         * MODULES.html.sh: Add filevercmp module.
40561
40562 2008-10-03  Bruno Haible  <bruno@clisp.org>
40563
40564         * lib/c-ctype.h: Add comment.
40565         Reported by Jim Meyering.
40566
40567 2008-10-02  Bruno Haible  <bruno@clisp.org>
40568
40569         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40570
40571 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40572
40573         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40574         name of bootstrap.conf accordingly.
40575
40576 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40577
40578         * build-aux/bootstrap: Install git-merge-changelog configuration
40579         items into .gitconfig if needed.
40580
40581 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40582
40583         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40584         git repository, and initialize/update it accordingly.
40585
40586 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40587
40588         * modules/fsync-tests: New file.
40589         * tests/test-fsync.c: New file.
40590
40591         New module 'fsync'.
40592         * lib/fsync.c: New file.
40593         * m4/fsync.m4: New file.
40594         * modules/fsync: New file.
40595         * lib/unistd.in.h (fsync): New declaration.
40596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40597         GNULIB_FSYNC and HAVE_FSYNC.
40598         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40599         * MODULES.html.sh (posix_functions): Add fsync.
40600         * doc/posix-functions/fsync.texi: Mention the new module.
40601
40602 2008-10-02  Jim Meyering  <meyering@redhat.com>
40603
40604         fts.c: sync with similar code from coreutils' remove.c
40605         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40606         Guard also with "#if defined __linux__", since for now at least,
40607         this code is Linux-kernel-specific.
40608
40609 2008-10-02  Jim Meyering  <meyering@redhat.com>
40610
40611         fts: bug fixes
40612         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40613         Include <sys/vfs.h>, not <sys/statfs.h>.
40614
40615         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40616         Include <sys/vfs.h>, not <sys/statfs.h>.
40617
40618 2008-10-01  Bruno Haible  <bruno@clisp.org>
40619
40620         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40621         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40622         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40623         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40624         * doc/posix-functions/posix_spawnp.texi: Likewise.
40625         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40626         whether posix_spawn actually works.
40627         * m4/pipe.m4 (gl_PIPE): Likewise.
40628         * modules/execute (Files): Add m4/posix_spawn.m4.
40629         * modules/pipe (Files): Add m4/posix_spawn.m4.
40630         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40631
40632 2008-10-01  Jim Meyering  <meyering@redhat.com>
40633
40634         remove trailing spaces
40635         * NEWS: Likewise.
40636         * lib/poll.c (poll): Likewise.
40637         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40638         * lib/winsock.c (rpl_close): Likewise.
40639         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40640         * modules/yield: Likewise.
40641         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40642         * tests/test-sys_select.c (connect_to_socket): Likewise.
40643
40644         fts.c: adjust a new interface to be more generally useful
40645         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40646         (fts_build): Adjust caller.
40647
40648 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40649
40650         * modules/cond-tests: New file.
40651         * tests/test-cond.c: New file.
40652
40653 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40654             Bruno Haible  <bruno@clisp.org>
40655
40656         * modules/cond (Dependencies): Add errno, time.
40657         * lib/glthread/cond.h: Include <time.h>.
40658         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40659         across platforms.
40660
40661 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40662             Bruno Haible  <bruno@clisp.org>
40663
40664         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40665
40666 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40667             Bruno Haible  <bruno@clisp.org>
40668
40669         * modules/tls-tests (Depends-on): Add thread, yield.
40670         (configure.ac): Remove all checks.
40671         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40672         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40673         gl_thread_self): Remove definitions. Include glthread/thread.h and
40674         glthread/yield.h instead.
40675         (test_tls): Pass an additional NULL argument to gl_thread_join.
40676
40677 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40678             Bruno Haible  <bruno@clisp.org>
40679
40680         * modules/lock-tests (Depends-on): Add thread, yield.
40681         (configure.ac): Remove all checks.
40682         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40683         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40684         gl_thread_self): Remove definitions. Include glthread/thread.h and
40685         glthread/yield.h instead.
40686         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40687         additional NULL argument to gl_thread_join.
40688
40689 2008-09-30  Bruno Haible  <bruno@clisp.org>
40690
40691         Fix the Win32 implementation of the 'thread' module.
40692         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40693         pointer type.
40694         (gl_thread_self): Invoke gl_thread_self_func.
40695         (gl_thread_self_func): New declaration.
40696         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40697         (do_init_self_key, init_self_key): New functions.
40698         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40699         Remove some fields.
40700         (running_threads, running_lock): Remove variables.
40701         (get_current_thread_handle): New function.
40702         (gl_thread_self_func, wrapper_func, glthread_create_func,
40703         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40704         simplified.
40705
40706 2008-09-30  Bruno Haible  <bruno@clisp.org>
40707
40708         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40709         files.
40710
40711 2008-09-30  Jim Meyering  <meyering@redhat.com>
40712
40713         fts.m4: correct the test for statfs.f_type
40714         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40715         when checking for statfs.f_type.
40716
40717 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40718
40719         tests: avoid some compiler warnings
40720         * tests/test-memchr.c (main): Pass NULL indirectly.
40721         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40722
40723 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
40724
40725         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40726         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40727         exactly specified dayshifts.
40728         (dayshift): New rule.
40729         (rel): Add dayshift.
40730         (relative_time_table) [tomorrow, yesterday, today, now]:
40731         Use tDAY_SHIFT in place of tDAY_UNIT.
40732         * tests/test-getdate.c: Add tests for now-disallowed countable
40733         dayshifts, e.g., "4 yesterday ago".
40734
40735 2008-09-29  Bruno Haible  <bruno@clisp.org>
40736
40737         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40738         * tests/test-posix_spawn1.in.sh: Renamed from
40739         tests/test-posix_spawn.in.sh.
40740         * tests/test-posix_spawn2.c: New file.
40741         * tests/test-posix_spawn2.in.sh: New file.
40742         * modules/posix_spawnp-tests (Files): Update.
40743         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40744
40745 2008-09-29  Bruno Haible  <bruno@clisp.org>
40746
40747         Propagate effects of putenv/setenv/unsetenv to child processes.
40748         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40749         * lib/pipe.c (create_pipe): Likewise.
40750
40751 2008-09-29  Bruno Haible  <bruno@clisp.org>
40752
40753         Enable use of shell scripts as executables in mingw.
40754         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40755         run the program as a shell script.
40756         * lib/pipe.c (create_pipe): Likewise.
40757         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40758         resulting array.
40759
40760 2008-09-29  Eric Blake  <ebb9@byu.net>
40761
40762         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40763
40764 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40765
40766         * doc/posix-functions/accept.texi: Update mingw problems.
40767         * doc/posix-functions/bind.texi: Update mingw problems.
40768         * doc/posix-functions/close.texi: Update mingw problems.
40769         * doc/posix-functions/connect.texi: Update mingw problems.
40770         * doc/posix-functions/getpeername.texi: Update mingw problems.
40771         * doc/posix-functions/getsockname.texi: Update mingw problems.
40772         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40773         * doc/posix-functions/ioctl.texi: Update mingw problems.
40774         * doc/posix-functions/listen.texi: Update mingw problems.
40775         * doc/posix-functions/recv.texi: Update mingw problems.
40776         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40777         * doc/posix-functions/select.texi: Update mingw problems.
40778         * doc/posix-functions/send.texi: Update mingw problems.
40779         * doc/posix-functions/sendto.texi: Update mingw problems.
40780         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40781         * doc/posix-functions/socket.texi: Update mingw problems.
40782
40783 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40784             Bruno Haible  <bruno@clisp.org>
40785
40786         * lib/sys_select.in.h: Include sys/time.h.
40787         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40788         * modules/sys_select: Depend on sys_time.
40789         * tests/test-sys_select.c: Test that sys/select.h defines struct
40790         timeval fully.
40791
40792 2008-09-29  Bruno Haible  <bruno@clisp.org>
40793
40794         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40795         * lib/sys_select.in.h: Likewise.
40796
40797 2008-09-29  Bruno Haible  <bruno@clisp.org>
40798
40799         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40800
40801 2008-09-29  Bruno Haible  <bruno@clisp.org>
40802
40803         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40804         Set LIBSOCKET instead of augmenting LIBS.
40805         * modules/sockets (Link): New section.
40806         * modules/sockets-tests (test_sockets_LDADD): New variable.
40807         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40808         * modules/poll-tests (test_poll_LDADD): New variable.
40809         * NEWS: Document the change.
40810
40811 2008-09-29  Bruno Haible  <bruno@clisp.org>
40812
40813         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40814         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40815         ARPA_INET_H directly.
40816         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40817
40818 2008-09-28  Bruno Haible  <bruno@clisp.org>
40819
40820         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40821         from gl_HEADER_SYS_SOCKET.
40822         (gl_HEADER_SYS_SOCKET): Invoke it.
40823         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40824
40825 2008-09-28  Bruno Haible  <bruno@clisp.org>
40826
40827         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40828         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40829         Needed on OSF/1 4.0.
40830
40831 2008-09-28  Bruno Haible  <bruno@clisp.org>
40832
40833         Override open more carefully.
40834         * lib/open.c (orig_open): New function.
40835         (rpl_open): Use orig_open instead of open.
40836         * lib/fcntl.in.h: Add special invocation convention.
40837         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40838         (gl_FUNC_OPEN): Invoke it.
40839
40840         Override freopen more carefully.
40841         * lib/freopen.c (orig_freopen): New function.
40842         (rpl_freopen): Use orig_freopen instead of freopen.
40843         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40844         (gl_FUNC_FREOPEN): Invoke it.
40845
40846         Override fopen more carefully.
40847         * lib/fopen.c (orig_fopen): New function.
40848         (rpl_fopen): Use orig_fopen instead of fopen.
40849         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40850         (gl_FUNC_FOPEN): Invoke it.
40851         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40852
40853 2008-09-28  Bruno Haible  <bruno@clisp.org>
40854
40855         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40856         SIGPIPE.
40857
40858 2008-09-28  Bruno Haible  <bruno@clisp.org>
40859
40860         * tests/test-sigaction.c (handler, main): Disable the check whether
40861         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40862         glibc systems with LinuxThreads.
40863
40864 2008-09-28  Bruno Haible  <bruno@clisp.org>
40865
40866         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40867
40868         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
40869         with AIX xlc.
40870         * lib/fcntl.in.h (open): Likewise.
40871         Reported by Rainer Tammer <tammer@tammer.net>.
40872
40873 2008-09-28  Bruno Haible  <bruno@clisp.org>
40874
40875         * modules/posix_spawnp-tests: New file.
40876         * tests/test-posix_spawn.c: New file.
40877         * tests/test-posix_spawn.in.sh: New file.
40878
40879         New module 'posix_spawnp'.
40880         * modules/posix_spawnp: New file.
40881         * lib/spawnp.c: New file, from GNU libc with modifications.
40882         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
40883
40884         New module 'posix_spawn'.
40885         * modules/posix_spawn: New file.
40886         * lib/spawn.c: New file, from GNU libc with modifications.
40887         * doc/posix-functions/posix_spawn.texi: Mention the new module.
40888
40889         New module 'posix_spawnattr_destroy'.
40890         * modules/posix_spawnattr_destroy: New file.
40891         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
40892         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
40893         module.
40894
40895         New module 'posix_spawnattr_setsigmask'.
40896         * modules/posix_spawnattr_setsigmask: New file.
40897         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
40898         modifications.
40899         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
40900         new module.
40901
40902         New module 'posix_spawnattr_getsigmask'.
40903         * modules/posix_spawnattr_getsigmask: New file.
40904         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
40905         modifications.
40906         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
40907         new module.
40908
40909         New module 'posix_spawnattr_setsigdefault'.
40910         * modules/posix_spawnattr_setsigdefault: New file.
40911         * lib/spawnattr_setdefault.c: New file, from GNU libc with
40912         modifications.
40913         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
40914         new module.
40915
40916         New module 'posix_spawnattr_getsigdefault'.
40917         * modules/posix_spawnattr_getsigdefault: New file.
40918         * lib/spawnattr_getdefault.c: New file, from GNU libc with
40919         modifications.
40920         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
40921         new module.
40922
40923         New module 'posix_spawnattr_setschedpolicy'.
40924         * modules/posix_spawnattr_setschedpolicy: New file.
40925         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
40926         modifications.
40927         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
40928         new module.
40929
40930         New module 'posix_spawnattr_getschedpolicy'.
40931         * modules/posix_spawnattr_getschedpolicy: New file.
40932         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
40933         modifications.
40934         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
40935         new module.
40936
40937         New module 'posix_spawnattr_setschedparam'.
40938         * modules/posix_spawnattr_setschedparam: New file.
40939         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
40940         modifications.
40941         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
40942         new module.
40943
40944         New module 'posix_spawnattr_getschedparam'.
40945         * modules/posix_spawnattr_getschedparam: New file.
40946         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
40947         modifications.
40948         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
40949         new module.
40950
40951         New module 'posix_spawnattr_setpgroup'.
40952         * modules/posix_spawnattr_setpgroup: New file.
40953         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
40954         modifications.
40955         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
40956         module.
40957
40958         New module 'posix_spawnattr_getpgroup'.
40959         * modules/posix_spawnattr_getpgroup: New file.
40960         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
40961         modifications.
40962         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
40963         module.
40964
40965         New module 'posix_spawnattr_setflags'.
40966         * modules/posix_spawnattr_setflags: New file.
40967         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
40968         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
40969         module.
40970
40971         New module 'posix_spawnattr_getflags'.
40972         * modules/posix_spawnattr_getflags: New file.
40973         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40974         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
40975         module.
40976
40977         New module 'posix_spawnattr_init'.
40978         * modules/posix_spawnattr_init: New file.
40979         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
40980         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
40981         module.
40982
40983         New module 'posix_spawn_file_actions_destroy'.
40984         * modules/posix_spawn_file_actions_destroy: New file.
40985         * lib/spawn_faction_destroy.c: New file, from GNU libc with
40986         modifications.
40987         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
40988         the new module.
40989
40990         New module 'posix_spawn_file_actions_addopen'.
40991         * modules/posix_spawn_file_actions_addopen: New file.
40992         * lib/spawn_faction_addopen.c: New file, from GNU libc with
40993         modifications.
40994         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40995         the new module.
40996
40997         New module 'posix_spawn_file_actions_adddup2'.
40998         * modules/posix_spawn_file_actions_adddup2: New file.
40999         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
41000         modifications.
41001         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
41002         the new module.
41003
41004         New module 'posix_spawn_file_actions_addclose'.
41005         * modules/posix_spawn_file_actions_addclose: New file.
41006         * lib/spawn_faction_addclose.c: New file, from GNU libc with
41007         modifications.
41008         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
41009         the new module.
41010
41011         New module 'posix_spawn_file_actions_init'.
41012         * modules/posix_spawn_file_actions_init: New file.
41013         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
41014         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
41015         new module.
41016
41017         New module 'posix_spawn-internal'.
41018         * modules/posix_spawn-internal: New file.
41019         * lib/spawn_int.h: New file, from GNU libc with modifications.
41020         * lib/spawni.c: New file, from GNU libc with modifications.
41021         * m4/posix_spawn.m4: New file.
41022
41023         New module 'spawn'.
41024         * modules/spawn: New file.
41025         * lib/spawn.in.h: New file, from GNU libc with modifications.
41026         * m4/spawn_h.m4: New file.
41027         * doc/posix-headers/spawn.texi: Mention the new module.
41028
41029 2008-09-28  Bruno Haible  <bruno@clisp.org>
41030
41031         * modules/sched-tests: New file.
41032         * tests/test-sched.c: New file.
41033
41034         New module 'sched'.
41035         * modules/sched: New file.
41036         * lib/sched.in.h: New file.
41037         * m4/sched_h.m4: New file.
41038         * doc/posix-headers/sched.texi: Mention the new module.
41039
41040 2008-09-27  Eric Blake  <ebb9@byu.net>
41041
41042         Fix previous patch, and tweak references to $0.
41043         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
41044         (func_version, func_gnulib_dir): Don't call this program
41045         gnulib-tool.
41046         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
41047         with using $0 in function.
41048         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
41049         (func_fatal_error): Reuse the name the user invoked us with.
41050
41051 2008-09-27  Bruno Haible  <bruno@clisp.org>
41052
41053         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
41054         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
41055         (gl_ICONV_H): Not here.
41056         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
41057         instead of assigning ICONV_H directly.
41058
41059         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
41060         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
41061         WCHAR_H directly.
41062
41063 2008-09-27  Bruno Haible  <bruno@clisp.org>
41064
41065         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
41066         * modules/arpa_inet (Depends-on): Add link-warning.
41067         (Makefile.am): Insert the definition of GL_LINK-WARNING.
41068         * modules/unistd (Makefile.am): Likewise.
41069
41070 2008-09-26  Bruno Haible  <bruno@clisp.org>
41071
41072         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
41073         variables.
41074         (func_version): Essentially copied from gnulib-tool.
41075         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
41076         func_readlink): Copied from gnulib-tool.
41077
41078 2008-09-26  Bruno Haible  <bruno@clisp.org>
41079
41080         * gnulib-tool (func_version): Change directory to $gnulib_dir before
41081         invoking git-version-gen.
41082
41083 2008-09-26  Bruno Haible  <bruno@clisp.org>
41084
41085         * posix-modules: Update to directory names changed on 2008-01-19.
41086         Remove commas in output before splitting into words. No more need to
41087         avoid 'ftruncate' since 2007-02-19.
41088
41089 2008-09-26  Bruno Haible  <bruno@clisp.org>
41090
41091         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
41092
41093 2008-09-26  Bruno Haible  <bruno@clisp.org>
41094
41095         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
41096         * modules/fwriteerror (Depends-on): Add errno.
41097
41098 2008-09-26  Bruno Haible  <bruno@clisp.org>
41099
41100         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
41101         * tests/test-vc-list-files-cvs.sh: Likewise.
41102
41103 2008-09-26  Bruno Haible  <bruno@clisp.org>
41104
41105         * doc/posix-headers/sys_resource.texi: Reorder items.
41106
41107 2008-09-26  Jim Meyering  <meyering@redhat.com>
41108
41109         fts: tweak inode comparison function
41110         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
41111         inode numbers, as documented.
41112
41113         fts: sort dirent entries on inode number before traversing
41114         This avoids a quadratic, seek-related performance penalty when
41115         operating on a directory containing many entries (measurable at 10k;
41116         3.5 hours at 2 million entries with a cold cache) on certain types
41117         of file systems, including ext3 and ext4, but not tmpfs.
41118         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
41119         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
41120         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
41121         (fs_handles_readdir_ordered_dirents_efficiently): New function.
41122         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
41123         (fts_build): Set the stat.st_ino member from D_INO.
41124         If it is likely to be useful, sort dirent entries on inode number.
41125
41126         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
41127         and the struct statfs.f_type member.
41128         * modules/fts (Depends-on): Add d-ino.
41129
41130 2008-09-26  Bruno Haible  <bruno@clisp.org>
41131
41132         * modules/sigpipe-die (Depends-on): Add sigpipe.
41133
41134         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
41135         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
41136         and GNULIB_STDIO_H_SIGPIPE are set.
41137         * lib/stdio-write.c: New file.
41138         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
41139         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41140         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41141         REPLACE_STDIO_WRITE_FUNCS.
41142         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
41143         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41144         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41145         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41146         * modules/stdio (Files): Add lib/stdio-write.c.
41147         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
41148         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41149         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41150         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41151         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
41152         REPLACE_FPRINTF_POSIX.
41153         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
41154         REPLACE_PRINTF_POSIX.
41155         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
41156         REPLACE_VFPRINTF_POSIX.
41157         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
41158         REPLACE_VPRINTF_POSIX.
41159         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
41160         SIGPIPE issue.
41161         * doc/posix-functions/fputc.texi: Likewise.
41162         * doc/posix-functions/fputs.texi: Likewise.
41163         * doc/posix-functions/fwrite.texi: Likewise.
41164         * doc/posix-functions/printf.texi: Likewise.
41165         * doc/posix-functions/putc.texi: Likewise.
41166         * doc/posix-functions/putchar.texi: Likewise.
41167         * doc/posix-functions/puts.texi: Likewise.
41168         * doc/posix-functions/vfprintf.texi: Likewise.
41169         * doc/posix-functions/vprintf.texi: Likewise.
41170
41171         * modules/safe-write (Depends-on): Add write.
41172
41173         * modules/sigpipe-tests: New file.
41174         * tests/test-sigpipe.c: New file.
41175         * tests/test-sigpipe.sh: New file.
41176
41177         * modules/write: New file.
41178         * lib/unistd.in.h: Include <sys/types.h>.
41179         (write): New declaration.
41180         * lib/write.c: New file.
41181         * m4/write.m4: New file.
41182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41183         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
41184         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
41185         GNULIB_WRITE, REPLACE_WRITE.
41186         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
41187         and the SIGPIPE issue.
41188
41189         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
41190         (raise): New declaration.
41191         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
41192         (ext_signal): New function.
41193         (rpl_raise): New function.
41194         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41195         GNULIB_SIGNAL_H_SIGPIPE.
41196         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
41197         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
41198
41199         * modules/sigpipe: New file.
41200         * m4/sigpipe.m4: New file.
41201
41202 2008-09-25  Derek Price  <derek@ximbiot.com>
41203             Bruno Haible  <bruno@clisp.org>
41204
41205         * gnulib-tool (func_import): Report all license incompatibilities, not
41206         just the first one.
41207
41208 2008-09-25  Bruno Haible  <bruno@clisp.org>
41209
41210         * gnulib-tool (func_import): When computing the edits, consider not
41211         only the Makefile.ams that exist but also those that will be generated.
41212
41213 2008-09-25  Simon Josefsson  <simon@josefsson.org>
41214
41215         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
41216         fixes gnulib-tool --test warning about duplicate dependency.
41217
41218 2008-09-25  Bruno Haible  <bruno@clisp.org>
41219
41220         * gnulib-tool: Don't ask the user to perform edits in the generated
41221         Makefile.ams.
41222         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
41223         apply to the Makefile.am being generated.
41224         (func_emit_tests_Makefile_am): Execute edits that apply to the
41225         Makefile.am being generated.
41226         (func_import): Setup list of Makefile.am edits before emitting the
41227         Makefile.ams, not at the end.
41228         (func_create_testdir): Update.
41229         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41230
41231 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41232
41233         * gnulib-tool (func_import): Store the --tests-base option in the
41234         comment in gnulib-cache.m4.
41235
41236 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
41237
41238         * NEWS: Document increased portability that sys_select now provides.
41239
41240         * lib/sys_select.in.h: Install select wrapper.
41241         * lib/sys_socket.in.h: Use more descriptive name when there is no
41242         select wrapper.
41243         * lib/winsock-select.c: New.
41244         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
41245         Require gl_HEADER_SYS_SOCKET.
41246         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
41247         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
41248         * tests/test-sys_select.c: Add functional tests.
41249
41250 2008-09-24  Eric Blake  <ebb9@byu.net>
41251
41252         open, fopen: close fd leak in last patch
41253         * lib/open.c (rpl_open): Close fd before returning error.
41254         * lib/fopen.c (rpl_fopen): Close fd before returning error.
41255         * doc/posix-functions/open.texi (open): Document that Irix also
41256         has the bug.
41257         * doc/posix-functions/fopen.texi (fopen): Likewise.
41258         Reported by Paolo Bonzini.
41259
41260 2008-09-24  Bruno Haible  <bruno@clisp.org>
41261
41262         Ensure that a filename ending in a slash cannot be used to access a
41263         non-directory.
41264         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
41265         to check whether it's really a directory.
41266         * lib/fopen.c: Include fcntl.h, unistd.h.
41267         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
41268         and fdopen().
41269         * modules/fopen (Depends-on): Add unistd.
41270         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41271         * tests/test-fopen.c (main): Likewise.
41272         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
41273         * doc/posix-functions/fopen.texi: Likewise.
41274         Reported by Eric Blake.
41275
41276 2008-09-23  Eric Blake  <ebb9@byu.net>
41277
41278         c-stack: avoid compiler optimizations when provoking overflow
41279         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
41280         recursion harder to optimize, to ensure a stack overflow occurs.
41281         * tests/test-c-stack.c (recurse): Likewise.
41282         Borrowed from libsigsegv.
41283
41284         c-stack: work around Irix sigaltstack bug
41285         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
41286         whether sigaltstack uses wrong end of stack_t (copied in part from
41287         libsigsegv).
41288         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
41289         Irix bug, without requiring an over-allocation.
41290         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
41291         bug.
41292
41293         fopen: document mingw bug on directories
41294         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
41295         not allowing a stream visiting a directory, even though reading
41296         from such a stream is not portable.
41297
41298 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41299
41300         * lib/poll.c: Rewrite.
41301         * modules/poll: Depend on alloca.
41302
41303 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41304
41305         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41306         instead define prototypes for a full set of wrappers.  Ensure
41307         that Cygwin does not use the compatibility code, which is only
41308         for MinGW.
41309         * lib/winsock.c: New.
41310         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41311         * modules/sys_socket: Add lib/winsock.c.
41312
41313         * modules/poll-tests: Add errno and perror.
41314         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41315
41316 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41317
41318         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41319
41320 2008-09-23  Bruno Haible  <bruno@clisp.org>
41321
41322         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41323         * doc/glibc-functions/*: Likewise.
41324
41325 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41326
41327         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41328         success.
41329
41330 2008-09-22  Eric Blake  <ebb9@byu.net>
41331             Bruno Haible  <bruno@clisp.org>
41332
41333         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41334         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41335         supply %A but mishandle pseudo-NaN.
41336         Reported by Simon Josefsson.
41337
41338 2008-09-21  Bruno Haible  <bruno@clisp.org>
41339
41340         * tests/test-lock.c (main): Tweak skip message.
41341         * tests/test-tls.c (main): Likewise.
41342
41343 2008-09-21  Bruno Haible  <bruno@clisp.org>
41344
41345         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41346         whether 'struct sigaction' has sa_sigaction here...
41347         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41348         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41349
41350 2008-09-21  Bruno Haible  <bruno@clisp.org>
41351
41352         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41353         section.
41354         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41355         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41356         the new section.
41357         (Support for obsolete systems lacking POSIX:2001): New section.
41358         (String handling <string.h>): Move strdup to the new section.
41359         Suggested by Simon Josefsson and Paolo Bonzini.
41360
41361 2008-09-21  Bruno Haible  <bruno@clisp.org>
41362
41363         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41364         exponents in %e and %g results on 'long double'. Needed for mingw's
41365         improved *printf functions.
41366         * tests/test-vasprintf-posix.c (test_function): Likewise.
41367         * tests/test-snprintf-posix.h (test_function): Likewise.
41368         * tests/test-sprintf-posix.h (test_function): Likewise.
41369         Reported by Eric Blake.
41370
41371 2008-09-21  Bruno Haible  <bruno@clisp.org>
41372
41373         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41374         * tests/test-sprintf-posix.h (test_function): Likewise.
41375
41376 2008-09-21  Bruno Haible  <bruno@clisp.org>
41377
41378         * modules/getpass (Depends-on): Add strdup-posix.
41379
41380         New module 'strdup-posix'.
41381         * modules/strdup-posix: New file.
41382         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41383         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41385         REPLACE_STRDUP.
41386         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41387         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41388         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41389         strdup-posix.
41390
41391         * modules/strdup (Depends-on): Remove malloc-posix.
41392
41393 2008-09-20  Bruno Haible  <bruno@clisp.org>
41394
41395         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41396         Wildenhues.
41397
41398 2008-09-20  Bruno Haible  <bruno@clisp.org>
41399
41400         Ensure that wint_t gets defined on IRIX 5.3.
41401         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41402         * lib/wctype.in.h (wint_t): Likewise.
41403         (__wctype_wint_t): Remove type.
41404         (isw*): Use wint_t instead of __wctype_wint_t.
41405         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41406         * modules/wchar (Files): Add m4/wint_t.m4.
41407         (Makefile.am): Substitute HAVE_WINT_T.
41408         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41409         * tests/test-wctype.c: Check that wint_t is defined.
41410         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41411         * doc/posix-headers/wctype.texi: Likewise.
41412         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41413
41414 2008-09-18  Bruno Haible  <bruno@clisp.org>
41415
41416         * gnulib-tool (func_exit): Update comment.
41417
41418 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41419
41420         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41421         assumes strdup exists and does not depend on strdup to return
41422         ENOMEM on out of memory conditions.
41423
41424 2008-09-18  Bruno Haible  <bruno@clisp.org>
41425
41426         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
41427         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41428         digits for the exponent.
41429
41430 2008-09-18  Jim Meyering  <meyering@redhat.com>
41431             Bruno Haible  <bruno@clisp.org>
41432
41433         * lib/vasnprintf.c (decimal_point_char): Define also if
41434         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41435
41436 2008-09-16  Bruno Haible  <bruno@clisp.org>
41437         and Eric Blake  <ebb9@byu.net>
41438
41439         vasnprintf: support Irix 5.3
41440         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41441         that mishandle long double infinity.
41442         Reported by Tom G. Christensen.
41443
41444 2008-09-16  Bruno Haible  <bruno@clisp.org>
41445
41446         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41447         Solaris 9.
41448         * doc/glibc-functions/alphasort.texi: Likewise.
41449         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41450
41451 2008-09-16  Jim Meyering  <meyering@redhat.com>
41452
41453         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41454         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41455         a umask modification leak out of a subshell.  Otherwise, the
41456         opensolaris /bin/sh would be accepted and thus cause unwarranted
41457         failures in the coreutils test suite.
41458
41459 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41460
41461         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41462         to succeed.
41463
41464 2008-09-16  Jim Meyering  <meyering@redhat.com>
41465
41466         avoid spurious test failure when library is built without ACL support
41467         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41468         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41469         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41470         * tests/test-copy-acl.sh: Likewise.
41471
41472 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41473
41474         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41475         based on character occurrence counts.
41476
41477 2008-09-15  Eric Blake  <ebb9@byu.net>
41478
41479         tests: avoid some compiler warnings
41480         * tests/test-memchr.c (main): Pass NULL indirectly.
41481         * tests/test-closein.c (main): Avoid unused variable.
41482
41483 2008-09-15  Bruno Haible  <bruno@clisp.org>
41484
41485         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41486         are missing on OpenBSD 4.0 individually.
41487         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41488
41489 2008-09-15  Bruno Haible  <bruno@clisp.org>
41490
41491         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41492         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41493         * doc/posix-functions/perror.texi: Likewise.
41494         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41495         is missing.
41496         Reported by Eric Blake.
41497
41498         * lib/errno.in.h: Use replacement values >= 2000.
41499         Reported by Eric Blake.
41500
41501 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41502
41503         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41504         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41505         limit.
41506         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41507         compareseq was aborted.
41508
41509 2008-09-14  Bruno Haible  <bruno@clisp.org>
41510
41511         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41512         yvec_edit_count.
41513         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41514         (fstrcmp_bounded): Simplify result computation accordingly.
41515
41516 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41517
41518         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41519         (fstrcmp): Define in terms of fstrcmp_bounded.
41520         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41521         lower_bound argument.
41522         Return quickly if the result is certainly < lower_bound.
41523         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41524
41525 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41526
41527         * lib/diffseq.h (EARLY_ABORT): New macro.
41528         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41529         evaluates to true.
41530
41531 2008-09-14  Bruno Haible  <bruno@clisp.org>
41532
41533         * modules/perror-tests: New file.
41534         * tests/test-perror.sh: New file.
41535         * tests/test-perror.c: New file.
41536
41537         New module 'perror'.
41538         * lib/stdio.in.h (perror): New declaration.
41539         * lib/perror.c: New file.
41540         * m4/perror.m4: New file.
41541         * modules/perror: New file.
41542         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41543         * doc/posix-functions/perror.texi: Mention the perror module.
41544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41545         REPLACE_PERROR.
41546         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41547         REPLACE_PERROR.
41548
41549 2008-09-14  Bruno Haible  <bruno@clisp.org>
41550
41551         * modules/stdio (Makefile.am): Reorder to match the order in
41552         lib/stdio.in.h.
41553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41554
41555 2008-09-13  Bruno Haible  <bruno@clisp.org>
41556
41557         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41558
41559 2008-09-13  Bruno Haible  <bruno@clisp.org>
41560
41561         Extend strerror to cover the added errno values.
41562         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41563         (rpl_strerror): Provide error messages for the added errno values and
41564         for the WSA* values.
41565         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41566         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41567         strerror.
41568         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41569         * modules/strerror (Depends-on): Add errno.
41570         * doc/posix-functions/strerror.texi: Document the change.
41571         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41572         and EOVERFLOW.
41573
41574 2008-09-13  Bruno Haible  <bruno@clisp.org>
41575
41576         * modules/EOVERFLOW: Remove file.
41577         * m4/eoverflow.m4: Remove file.
41578         * modules/EOVERFLOW-tests: Remove file.
41579         * tests/test-EOVERFLOW.c: Remove file.
41580         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41581         * modules/ftell (Depends-on): Likewise.
41582         * modules/getdelim (Depends-on): Likewise.
41583         * modules/getugroups (Depends-on): Likewise.
41584         * modules/poll (Depends-on): Likewise.
41585         * modules/snprintf (Depends-on): Likewise.
41586         * modules/sprintf-posix (Depends-on): Likewise.
41587         * modules/vasnprintf (Depends-on): Likewise.
41588         * modules/vasprintf (Depends-on): Likewise.
41589         * modules/vfprintf-posix (Depends-on): Likewise.
41590         * modules/vsnprintf (Depends-on): Likewise.
41591         * modules/vsprintf-posix (Depends-on): Likewise.
41592         * modules/xvasprintf (Depends-on): Likewise.
41593         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41594         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41595         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41596         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41597         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41598         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41599         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41600         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41601         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41602         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41603         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41604         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41605         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41606         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41607         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41608         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41609         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41610         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41611         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41612         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41613         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41614         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41615         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41616         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41617         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41618         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41619         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41620         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41621         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41622         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41623         * MODULES.html.sh: Remove EOVERFLOW.
41624         * NEWS: Mention the change.
41625
41626 2008-09-13  Bruno Haible  <bruno@clisp.org>
41627
41628         * modules/errno-tests: New file.
41629         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41630
41631         * lib/errno.in.h: New file.
41632         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41633         * modules/errno: New file.
41634         * doc/posix-headers/errno.texi: Update documentation.
41635         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41636
41637 2008-09-13  Bruno Haible  <bruno@clisp.org>
41638
41639         * tests/test-poll.c: Use #if for native Windows, rather than testing
41640         __MSVCRT__.
41641
41642 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41643             Bruno Haible  <bruno@clisp.org>
41644
41645         * lib/glob.c: Don't include <pwd.h> on native Windows.
41646         (WINDOWS32): New macro.
41647         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41648
41649 2008-09-13  Bruno Haible  <bruno@clisp.org>
41650
41651         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41652         (ETIMEDOUT): Remove macro.
41653         (glthread_cond_timedwait_multithreaded): New declaration.
41654         (glthread_cond_timedwait): Use it.
41655         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41656         (glthread_cond_timedwait_multithreaded): New function.
41657
41658 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41659
41660         * modules/poll-tests: Do not check for io.h.
41661         * tests/test-poll.c: Check for __MSVCRT__ instead.
41662
41663 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41664
41665         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41666         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41667         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41668
41669 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41670
41671         * modules/poll-tests: New.
41672         * tests/test-poll.c: New.
41673
41674 2008-09-12  Eric Blake  <ebb9@byu.net>
41675
41676         frexp: test for NetBSD failure on -0.0
41677         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41678         not all, bugs from NetBSD 3.0 have been fixed.
41679         * doc/posix-functions/frexp.texi (frexp): Document bug.
41680         Reported by Thomas Klausner.
41681
41682         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41683         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41684         literal -0.0.
41685         Reported by Jonathan C. Patschke <jp@centtech.com>.
41686
41687 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41688
41689         * lib/glthread/cond.h: Use dummy implementation also if
41690         USE_WIN32_THREADS.
41691
41692 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41693
41694         * modules/fnmatch-posix (License): Change to LGPLv2+.
41695         * modules/fnmatch-gnu (License): Likewise.
41696
41697 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41698
41699         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41700
41701 2008-09-11  Jim Meyering  <meyering@redhat.com>
41702
41703         * users.txt: Add gtk-vnc.
41704
41705 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41706
41707         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41708         rotate amounts.
41709
41710         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41711         required for 16-bit and 8-bit rotates.
41712         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41713         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41714         UINT8_MAX instead of hard-coded constants.
41715         Suggested by Paul Eggert.
41716
41717 2008-09-07  Bruno Haible  <bruno@clisp.org>
41718
41719         * tests/test-striconveh.c (main): Check behaviour when converting from
41720         UTF-7.
41721
41722         Make striconveh work better with stateful encodings.
41723         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41724         that iconv does not increment the inptr when returning -1/EINVAL.
41725
41726 2008-09-07  Bruno Haible  <bruno@clisp.org>
41727
41728         * build-aux/config.rpath: Update according to libtool-2.2.6.
41729         * build-aux/config.libpath: Likewise.
41730
41731 2008-09-06  Bruno Haible  <bruno@clisp.org>
41732
41733         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41734         * lib/freadptr.c (freadptr): Likewise.
41735         * lib/freadseek.c (freadptrinc): Likewise.
41736         Reported by Simon Josefsson.
41737
41738 2008-09-06  Bruno Haible  <bruno@clisp.org>
41739
41740         * modules/freadptr (License): Change to LGPLv2+.
41741         * modules/freadseek (License): Likewise.
41742         Suggested by Eric Blake.
41743
41744         * modules/memchr2 (License): Change to LGPLv2+.
41745         Approved by Eric Blake.
41746
41747 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41748             Bruno Haible  <bruno@clisp.org>
41749
41750         Make gnulib-tool work with native 'sed' on AIX.
41751         * gnulib-tool (sed_noop): New variable.
41752         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41753         func_add_or_update, func_create_testdir): Use it to initialize sed
41754         script variables.
41755         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41756
41757 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41758             Bruno Haible  <bruno@clisp.org>
41759
41760         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41761         also works after #include directives.
41762
41763 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
41764
41765         getdate.y: reject an out-of-range timezone value
41766         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41767         the range [-24...+24].  When specified with only one or two digits,
41768         * tests/test-getdate.c: Tests for the fix.
41769         * doc/getdate.texi: Document this change.
41770
41771 2008-09-03  Bruno Haible  <bruno@clisp.org>
41772
41773         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41774
41775 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41776
41777         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41778         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41779         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41780         Blake <ebb9@byu.net>.
41781
41782         * tests/test-bitrotate.c: Add more test vectors.
41783
41784 2008-09-02  Eric Blake  <ebb9@byu.net>
41785
41786         vasnprintf-posix: handle large precision via %.*d
41787         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41788         when handling it ourselves.
41789         * tests/test-vasnprintf-posix.c (test_function): Add test.
41790         * tests/test-snprintf-posix.h (test_function): Likewise.
41791         * tests/test-sprintf-posix.h (test_function): Likewise.
41792         * tests/test-vasprintf-posix.c (test_function): Likewise.
41793         Reported by Alain Guibert.
41794
41795 2008-09-01  Eric Blake  <ebb9@byu.net>
41796
41797         c-stack: make configure-time check more robust
41798         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41799         successful sigaction call.
41800         Reported by Tom G. Christensen.
41801
41802 2008-09-01  Bruno Haible  <bruno@clisp.org>
41803
41804         New module 'findprog-lgpl'.
41805         * modules/findprog-lgpl: New file.
41806         * lib/findprog-lgpl.c: New file.
41807         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41808         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41809         to decide whether to use strdup or xstrdup, concatenated_filename or
41810         xconcatenated_filename.
41811
41812 2008-09-01  Bruno Haible  <bruno@clisp.org>
41813
41814         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41815         'xconcat-filename' (GPL).
41816         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41817         (License): Change to LGPLv2+.
41818         * modules/xconcat-filename: New file.
41819         * lib/concat-filename.h (concatenated_filename): Change specification.
41820         (xconcatenated_filename): New declaration.
41821         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41822         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41823         memory situations.
41824         * lib/xconcat-filename.c: New file.
41825         * NEWS: Mention the change.
41826         * lib/findprog.c: Include concat-filename.h, not filename.h.
41827         (find_in_path): Use xconcatenated_filename instead of
41828         concatenated_filename.
41829         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41830         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41831         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41832         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41833         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41834         instead of concatenated_filename.
41835         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41836         (execute_java_class): Use xconcatenated_filename instead of
41837         concatenated_filename.
41838         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41839         * modules/javacomp (Depends-on): Likewise.
41840         * modules/javaexec (Depends-on): Likewise.
41841
41842 2008-09-01  Bruno Haible  <bruno@clisp.org>
41843
41844         Split module 'filename' into 'filename' and 'concat-filename'.
41845         * modules/filename: Keep only lib/filename.h.
41846         (License): Change to LGPLv2+.
41847         * modules/concat-filename: New file, extracted from modules/filename.
41848         * lib/filename.h (concatenated_filename): Remove declaration.
41849         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41850         * lib/concat-filename.c: Include concat-filename.h.
41851         * NEWS: Mention the change.
41852
41853 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41854
41855         * lib/bitrotate.h (rotl8, rotr8): Add.
41856
41857         * modules/bitrotate (configure.ac): Need
41858         AC_REQUIRE([AC_C_INLINE]).
41859         (Description): Mention stdint.h.  Reported by Bruno Haible
41860         <bruno@clisp.org>.
41861
41862         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41863         Paolo Bonzini <bonzini@gnu.org>.
41864
41865 2008-08-31  Bruno Haible  <bruno@clisp.org>
41866
41867         Assume Solaris specific bi-arch conventions on Solaris systems.
41868         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
41869         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
41870         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
41871         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
41872         like acl_libdirstem.
41873         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
41874         acl_libdirstem.
41875         * NEWS: Mention the change.
41876         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
41877
41878 2008-08-31  Jim Meyering  <meyering@redhat.com>
41879
41880         * lib/strftime.h: Add comments describing the two added arguments.
41881
41882         remove duplicate #include directives
41883         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
41884         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
41885
41886 2008-08-31  Bruno Haible  <bruno@clisp.org>
41887
41888         New module 'sigpipe-die'.
41889         * modules/sigpipe-die: New file.
41890         * lib/sigpipe-die.h: New file.
41891         * lib/sigpipe-die.c: New file.
41892         * MODULES.html.sh (Signal handling): Add sigpipe-die.
41893
41894 2008-08-31  Bruno Haible  <bruno@clisp.org>
41895
41896         Don't override previously installed signal handlers.
41897         * lib/fatal-signal.c (saved_sigactions): New variable.
41898         (uninstall_handlers): Reset the signal to the saved handler, not
41899         to SIG_DFL (except when ignored).
41900         (install_handlers): Save the previous handlers.
41901
41902 2008-08-30  Bruno Haible  <bruno@clisp.org>
41903
41904         * gnulib-tool (func_reset_sigpipe): New function.
41905         (func_get_automake_snippet, func_modules_transitive_closure,
41906         func_import): Invoke it before a join command that reads from stdin,
41907         to avoid "echo: write error: Broken pipe" error messages on stderr.
41908         Reported by Sam Steingold <sds@gnu.org>.
41909
41910 2008-08-30  Bruno Haible  <bruno@clisp.org>
41911
41912         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
41913         Code copied from m4/open.m4.
41914         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
41915         access and the filename ends in a slash. Code copied from lib/open.c.
41916         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
41917         * tests/test-fopen.c (main): Check against bug with trailing slash.
41918
41919 2008-08-29  Bruno Haible  <bruno@clisp.org>
41920
41921         Avoid some "gcc -pedantic" warnings.
41922         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
41923         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
41924         * lib/dirent.in.h: Likewise.
41925         * lib/fcntl.in.h: Likewise.
41926         * lib/float.in.h: Likewise.
41927         * lib/iconv.in.h: Likewise.
41928         * lib/inttypes.in.h: Likewise.
41929         * lib/locale.in.h: Likewise.
41930         * lib/math.in.h: Likewise.
41931         * lib/netinet_in.in.h: Likewise.
41932         * lib/search.in.h: Likewise.
41933         * lib/signal.in.h: Likewise.
41934         * lib/stdarg.in.h: Likewise.
41935         * lib/stdint.in.h: Likewise.
41936         * lib/stdio.in.h: Likewise.
41937         * lib/stdlib.in.h: Likewise.
41938         * lib/string.in.h: Likewise.
41939         * lib/strings.in.h: Likewise.
41940         * lib/sys_select.in.h: Likewise.
41941         * lib/sys_socket.in.h: Likewise.
41942         * lib/sys_stat.in.h: Likewise.
41943         * lib/sys_time.in.h: Likewise.
41944         * lib/sysexits.in.h: Likewise.
41945         * lib/time.in.h: Likewise.
41946         * lib/unistd.in.h: Likewise.
41947         * lib/wchar.in.h: Likewise.
41948         * lib/wctype.in.h: Likewise.
41949         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
41950         * modules/fchdir (Makefile.am): Likewise.
41951         * modules/fcntl (Makefile.am): Likewise.
41952         * modules/float (Makefile.am): Likewise.
41953         * modules/iconv_open (Makefile.am): Likewise.
41954         * modules/inttypes (Makefile.am): Likewise.
41955         * modules/locale (Makefile.am): Likewise.
41956         * modules/math (Makefile.am): Likewise.
41957         * modules/netinet_in (Makefile.am): Likewise.
41958         * modules/search (Makefile.am): Likewise.
41959         * modules/signal (Makefile.am): Likewise.
41960         * modules/stdarg (Makefile.am): Likewise.
41961         * modules/stdint (Makefile.am): Likewise.
41962         * modules/stdio (Makefile.am): Likewise.
41963         * modules/stdlib (Makefile.am): Likewise.
41964         * modules/string (Makefile.am): Likewise.
41965         * modules/strings (Makefile.am): Likewise.
41966         * modules/sys_select (Makefile.am): Likewise.
41967         * modules/sys_socket (Makefile.am): Likewise.
41968         * modules/sys_stat (Makefile.am): Likewise.
41969         * modules/sys_time (Makefile.am): Likewise.
41970         * modules/sysexits (Makefile.am): Likewise.
41971         * modules/time (Makefile.am): Likewise.
41972         * modules/unistd (Makefile.am): Likewise.
41973         * modules/wchar (Makefile.am): Likewise.
41974         * modules/wctype (Makefile.am): Likewise.
41975         Reported by Reuben Thomas <rrt@sc3d.org>.
41976
41977 2008-08-29  Bruno Haible  <bruno@clisp.org>
41978
41979         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
41980         any more.
41981
41982 2008-08-29  Simon Josefsson  <simon@josefsson.org>
41983
41984         * MODULES.html.sh (Misc): Add bitrotate.
41985
41986         * modules/bitrotate: New file.
41987
41988         * lib/bitrotate.h: New file.
41989
41990         * modules/bitrotate-tests: New file.
41991
41992         * tests/test-bitrotate.c: New file.
41993
41994         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
41995         on the bitrotate module.
41996
41997         * lib/arctwo.c: Use new bitrotate module.
41998
41999 2008-08-29  Jim Meyering  <meyering@redhat.com>
42000
42001         bootstrap: merge changes from coreutils
42002         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
42003         of copied files.  Remove a kludge, now that this is fixed.
42004         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
42005         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
42006         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
42007
42008 2008-08-29  Bruno Haible  <bruno@clisp.org>
42009
42010         * MODULES.html.sh: Remove --cvs-urls option.
42011
42012 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
42013
42014         maint.mk: adjust to file name change
42015         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
42016
42017 2008-08-28  Jim Meyering  <meyering@redhat.com>
42018
42019         * modules/getndelim2 (License): Relicense to LGPLv2+.
42020         Approved by Richard Stallman for the version of 1995, and by
42021         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
42022
42023 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
42024
42025         * lib/getdelim.c (flockfile, funlockfile): Make all of them
42026         dummy if one is not available.  Do not touch them if
42027         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
42028         (getc_maybe_unlocked): New.
42029         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
42030
42031 2008-08-26  Eric Blake  <ebb9@byu.net>
42032
42033         doc/INSTALL: resync from autoconf
42034         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
42035         (INSTALL_PRELUDE): Delete; this is done more efficiently by
42036         moving...
42037         * install.texi [!autoconf]: ...here.  Resync from autoconf.
42038         * INSTALL: Regenerate.
42039         * INSTALL.ISO: New file.
42040         * INSTALL.UTF-8: Likewise.
42041
42042 2008-08-26  Jim Meyering  <meyering@redhat.com>
42043
42044         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
42045         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
42046         these definitions conditional, so that they may be overridden, too.
42047
42048 2008-08-26  Bruno Haible  <bruno@clisp.org>
42049
42050         Generate INSTALL file variants with prettier quotes.
42051         * doc/Makefile (INSTALL_PRELUDE): New macro.
42052         (INSTALL): Use it.
42053         (INSTALL.ISO, INSTALL.UTF-8): New rules.
42054
42055 2008-08-26  Bruno Haible  <bruno@clisp.org>
42056
42057         Run makeinfo in an English locale.
42058         * doc/Makefile (MAKEINFO): New variable.
42059
42060 2008-08-26  Bruno Haible  <bruno@clisp.org>
42061
42062         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
42063         Suggested by Eric Blake.
42064
42065 2008-08-25  Bruno Haible  <bruno@clisp.org>
42066
42067         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
42068
42069 2008-08-25  Eric Blake  <ebb9@byu.net>
42070
42071         c-stack: test that stack overflow can be caught
42072         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
42073         that platform allows handling stack overflow; at least OS/2 EMX
42074         has sigaltstack, but crashes before transferring control to
42075         handler on stack overflow.
42076         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
42077         check for HAVE_STACK_OVERFLOW_HANDLING.
42078         Reported by Elbert Pol.
42079
42080 2008-08-25  Bruno Haible  <bruno@clisp.org>
42081
42082         * doc/posix-functions/strftime.texi: Fix description of strftime
42083         module.
42084
42085 2008-08-24  Bruno Haible  <bruno@clisp.org>
42086
42087         * tests/uniwidth/test-uc_width2.c: New file.
42088         * tests/uniwidth/test-uc_width2.sh: New file.
42089         * modules/uniwidth/width-tests (Files): Add the new files.
42090         (TESTS): Add uniwidth/test-uc_width2.sh.
42091         (TESTS_ENVIRONMENT): New variable.
42092         (check_PROGRAMS): Add test-uc_width2.
42093         (test_uc_width2_SOURCES): New variable.
42094
42095         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
42096         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
42097         not 0x00AB.
42098         Reported by Alexander V. Lukyanov <lav@netis.ru>.
42099
42100 2008-08-22  Eric Blake  <ebb9@byu.net>
42101
42102         test-lock, test-tls: mention why a test is skipped
42103         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
42104         skipped.
42105         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
42106
42107         count-one-bits: relax license
42108         * modules/count-one-bits (License): Relicense to LGPLv2+.
42109         Suggested by Ludovic Courtès, approved by Ben Pfaff.
42110
42111 2008-08-22  Andreas Schwab  <schwab@suse.de>
42112
42113         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42114         Remove spurious space in assignment.
42115
42116 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42117
42118         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
42119         Paul Eggert <eggert@CS.UCLA.EDU>.
42120
42121 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
42122
42123         * modules/gettext: Add m4/threadlib.m4.
42124
42125 2008-08-19  Eric Blake  <ebb9@byu.net>
42126
42127         test-c-stack: fix compilation failure on FreeBSD 5.0
42128         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
42129         headers before <sys/resource.h>.
42130         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
42131         the bug.
42132         Reported by Nelson H. F. Beebe.
42133
42134         strverscmp: migrate from "strverscmp.h" to <string.h>
42135         * modules/string (Makefile.am): Add new hooks.
42136         * modules/strverscmp (Files): Remove strverscmp.h.
42137         (Depends-on): Add string.
42138         (configure.ac): Add indicator.
42139         (Include): Mention new header.
42140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
42141         defaults.
42142         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
42143         results.
42144         * lib/strverscmp.h: Delete.
42145         * lib/string.in.h (strverscmp): Provide declaration, when needed.
42146         * tests/test-strverscmp.c (includes): Adjust client.
42147         * lib/check-version.c (includes): Likewise.
42148         * NEWS: Document the change.
42149
42150         strverscmp: add unit test
42151         * modules/strverscmp-tests: New file.
42152         * tests/test-strverscmp.c: Likewise.
42153
42154 2008-08-19  Simon Josefsson  <simon@josefsson.org>
42155
42156         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
42157         regarding Windows crypto stuff, from Mono.
42158
42159 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
42160
42161         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
42162         if present, for intel RND.  Return error on failures.
42163
42164 2008-08-18  Ben Pfaff  <blp@gnu.org>
42165
42166         gitlog-to-changelog: give better diagnostic for failed pipe-open
42167         * build-aux/gitlog-to-changelog: Improve error message: suggest
42168         that the version of Git may be too old.
42169
42170 2008-08-18  Simon Josefsson  <simon@josefsson.org>
42171
42172         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
42173         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
42174
42175 2008-08-18  Bruno Haible  <bruno@clisp.org>
42176
42177         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
42178         pthread_in_use().
42179
42180 2008-08-18  Bruno Haible  <bruno@clisp.org>
42181
42182         * lib/glthread/threadlib.c: Include <pthread.h>.
42183
42184 2008-08-18  Bruno Haible  <bruno@clisp.org>
42185
42186         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
42187         glthread_recursive_lock_* macros.
42188         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
42189         Fix syntax error.
42190
42191 2008-08-18  Bruno Haible  <bruno@clisp.org>
42192
42193         * lib/glthread/thread.c: Avoid forcing a context switch right after
42194         thread creation.
42195
42196 2008-08-17  Bruno Haible  <bruno@clisp.org>
42197
42198         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
42199         * lib/glthread/thread.h: Provide Win32 specific implementation.
42200         * modules/thread (Files): Add lib/glthread/thread.c.
42201         (Depends-on): Add lock.
42202         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
42203
42204 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42205
42206         New module 'yield'.
42207         * modules/yield: New file.
42208         * lib/glthread/yield.h: New file.
42209         * m4/yield.m4: New file.
42210         * MODULES.html.sh (Multithreading): Add yield.
42211
42212 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42213
42214         New module 'thread'.
42215         * modules/thread: New file.
42216         * lib/glthread/thread.h: New file.
42217         * m4/thread.m4: New file.
42218         * MODULES.html.sh (Multithreading): Add thread.
42219
42220 2008-08-17  Bruno Haible  <bruno@clisp.org>
42221
42222         * lib/glthread/lock.h: Include <stdlib.h> always.
42223         * lib/glthread/tls.h: Likewise.
42224         * lib/glthread/cond.h: Likewise.
42225
42226 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42227
42228         New module 'cond'.
42229         * modules/cond: New file.
42230         * lib/glthread/cond.h: New file.
42231         * lib/glthread/cond.c: New file.
42232         * m4/cond.m4: New file.
42233         * MODULES.html.sh (Multithreading): Add cond.
42234
42235 2008-08-16  Eric Blake  <ebb9@byu.net>
42236
42237         c-stack: fix regression on Irix 5.3 from 2008-06-21
42238         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
42239         sa_sigaction...
42240         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
42241         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
42242         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
42243         * modules/signal (Makefile.am): Use the value.
42244         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
42245         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
42246         * doc/posix-headers/signal.texi (signal.h): Document this
42247         portability issue.
42248         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
42249         Reported by Tom G. Christensen.
42250
42251 2008-08-17  Bruno Haible  <bruno@clisp.org>
42252
42253         New module 'threadlib'.
42254         * modules/threadlib: New file.
42255         * lib/glthread/threadlib.c: New file, extracted from
42256         lib/glthread/lock.c.
42257         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
42258         functions.
42259         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
42260         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
42261         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
42262         macros.
42263         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
42264         (gl_DISABLE_THREADS): Remove macro.
42265         * modules/lock (Files): Remove build-aux/config.rpath.
42266         (Depends-on): Remove havelib. Add threadlib.
42267         (configure.ac-early): Remove section.
42268         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
42269         * modules/tls (Depends-on): Remove lock. Add threadlib.
42270         (Link): New section, copied from threadlib.
42271         * MODULES.html.sh (Multithreading): Add threadlib.
42272
42273 2008-08-14  Bruno Haible  <bruno@clisp.org>
42274
42275         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
42276         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
42277         glthread_rwlock_unlock, glthread_rwlock_destroy,
42278         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
42279         glthread_recursive_lock_destroy): Define as macros always.
42280         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
42281         glthread_lock_lock.
42282         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
42283         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
42284         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
42285         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
42286         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
42287         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
42288         (glthread_recursive_lock_lock_func): Renamed from
42289         glthread_recursive_lock_lock.
42290         (glthread_recursive_lock_unlock_func): Renamed from
42291         glthread_recursive_lock_unlock.
42292         (glthread_recursive_lock_destroy_func): Renamed from
42293         glthread_recursive_lock_destroy.
42294
42295 2008-08-14  Bruno Haible  <bruno@clisp.org>
42296
42297         * lib/glthread/lock.h: Renamed from lib/lock.h.
42298         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42299         * lib/glthread/tls.h: Renamed from lib/tls.h.
42300         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42301         * lib/fstrcmp.c: Update includes.
42302         * lib/strsignal.c: Update includes.
42303         * modules/lock (Files, Makefile.am): Update.
42304         (Include): Change to "glthread/lock.h".
42305         * modules/tls (Files, Makefile.am): Update.
42306         (Include): Change to "glthread/tls.h".
42307         * tests/test-lock.c: Update includes.
42308         * tests/test-tls.c: Update includes.
42309         * NEWS: Mention the renamed header files.
42310
42311 2008-08-11  Jim Meyering  <meyering@redhat.com>
42312
42313         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42314
42315 2008-08-11  Eric Blake  <ebb9@byu.net>
42316
42317         test-c-stack: avoid C99-ism
42318         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42319         before statement.
42320         Reported by Alain Guibert.
42321
42322 2008-08-10  Jim Meyering  <meyering@redhat.com>
42323
42324         ensure that return value of uinttostr et al are not ignored
42325         * lib/inttostr.h (__GNUC_PREREQ): Define.
42326         (__attribute_warn_unused_result__): Define.
42327         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42328
42329 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42330
42331         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42332         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42333
42334 2008-08-07  Jim Meyering  <meyering@redhat.com>
42335
42336         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42337
42338         * modules/mkstemp (License): Relicense under LGPLv2+.
42339         * modules/tempname (License): Likewise.
42340
42341 2008-08-06  Bruno Haible  <bruno@clisp.org>
42342
42343         * lib/poll.c (poll): Further micro-optimization.
42344
42345 2008-08-06  Jim Meyering  <meyering@redhat.com>
42346
42347         inet_pton.c: use locale-independent tolower
42348         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42349         (inet_pton6): Use c_tolower rather than tolower.
42350         * modules/inet_pton (Depends-on): Add c-ctype.
42351
42352 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42353
42354         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42355         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42356
42357 2008-08-06  Jim Meyering  <meyering@redhat.com>
42358
42359         * modules/inet_pton (License): Relicense under LGPLv2+.
42360
42361 2008-08-03  Bruno Haible  <bruno@clisp.org>
42362
42363         Additional non-aborting API for lock and tls.
42364         * lib/lock.h: Include <errno.h>.
42365         (glthread_lock_init): New macro/function.
42366         (gl_lock_init): Define as wrapper around glthread_lock_init.
42367         (glthread_lock_lock): New macro/function.
42368         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42369         (glthread_lock_unlock): New macro/function.
42370         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42371         (glthread_lock_destroy): New macro/function.
42372         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42373         (glthread_rwlock_init): New macro/function.
42374         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42375         (glthread_rwlock_rdlock): New macro/function.
42376         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42377         (glthread_rwlock_wrlock): New macro/function.
42378         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42379         (glthread_rwlock_unlock): New macro/function.
42380         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42381         (glthread_rwlock_destroy): New macro/function.
42382         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42383         (glthread_recursive_lock_init): New macro/function.
42384         (gl_recursive_lock_init): Define as wrapper around
42385         glthread_recursive_lock_init.
42386         (glthread_recursive_lock_lock): New macro/function.
42387         (gl_recursive_lock_lock): Define as wrapper around
42388         glthread_recursive_lock_lock.
42389         (glthread_recursive_lock_unlock): New macro/function.
42390         (gl_recursive_lock_unlock): Define as wrapper around
42391         glthread_recursive_lock_unlock.
42392         (glthread_recursive_lock_destroy): New macro/function.
42393         (gl_recursive_lock_destroy): Define as wrapper around
42394         glthread_recursive_lock_destroy.
42395         (glthread_once): New macro/function.
42396         (gl_once): Define as wrapper around glthread_once.
42397         Update function declarations.
42398         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42399         glthread_rwlock_init. Return error code.
42400         (glthread_rwlock_rdlock_multithreaded): Renamed from
42401         glthread_rwlock_rdlock. Return error code.
42402         (glthread_rwlock_wrlock_multithreaded): Renamed from
42403         glthread_rwlock_wrlock. Return error code.
42404         (glthread_rwlock_unlock_multithreaded): Renamed from
42405         glthread_rwlock_unlock. Return error code.
42406         (glthread_rwlock_destroy_multithreaded): Renamed from
42407         glthread_rwlock_destroy. Return error code.
42408         (glthread_recursive_lock_init_multithreaded): Renamed from
42409         glthread_recursive_lock_init. Return error code.
42410         (glthread_recursive_lock_lock_multithreaded): Renamed from
42411         glthread_recursive_lock_lock. Return error code.
42412         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42413         glthread_recursive_lock_unlock. Return error code.
42414         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42415         glthread_recursive_lock_destroy. Return error code.
42416         (glthread_once_call): Make static.
42417         (glthread_once_multithreaded): Renamed from glthread_once.
42418         * lib/tls.h: Include <errno.h>.
42419         (glthread_tls_key_init): New macro/function.
42420         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42421         (glthread_tls_set): New macro/function.
42422         (gl_tls_set): Define as wrapper around glthread_tls_set.
42423         (glthread_tls_key_destroy): New macro/function.
42424         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42425         Update function declarations.
42426         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42427         glthread_tls_get.
42428         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42429
42430 2008-08-04  Eric Blake  <ebb9@byu.net>
42431
42432         gnumakefile: use space, not TAB, outside of targets
42433         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42434
42435 2008-08-02  Jim Meyering  <meyering@redhat.com>
42436
42437         getdate.y: avoid locale-dependent date parsing failure
42438         In Turkish locales, getdate would fail to recognize keywords
42439         containing a lowercase "i".  The solution is not to rely on
42440         locale-sensitive case-conversion.
42441         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42442         (lookup_word): Use c_toupper in place of toupper.
42443         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42444         Reported by Vefa Bicakci <bicave@superonline.com> in
42445         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42446         * modules/getdate (Depends-on): Add c-ctype.
42447
42448 2008-08-02  Bruno Haible  <bruno@clisp.org>
42449
42450         * gnulib-tool (func_import): When updating or creating a .gitignore
42451         file, prepend each added line with a slash, and ignore leading slashes
42452         from the existing lines.
42453         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42454
42455 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42456
42457         Portability fix for GNU make 3.79.1.
42458         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42459         versions do not understand.
42460
42461 2008-08-01  Bruno Haible  <bruno@clisp.org>
42462
42463         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42464         * tests/test-isnanf.h (zero): New variable.
42465         (main): Avoid literal -0.0f.
42466         * tests/test-isnand.h (zero): New variable.
42467         (main): Avoid literal -0.0.
42468         * tests/test-isnanl.h (zero): New variable.
42469         (main): Avoid literal -0.0L.
42470         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42471         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42472         -0.0, -0.0L.
42473         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42474         (test_signbitd): Avoid literal -0.0.
42475         (test_signbitl): Avoid literal -0.0L.
42476         * tests/test-ceilf1.c (zero): New variable.
42477         (main): Avoid literal -0.0f.
42478         * tests/test-ceill.c (zero): New variable.
42479         (main): Avoid literal -0.0L.
42480         * tests/test-floorf1.c (zero): New variable.
42481         (main): Avoid literal -0.0f.
42482         * tests/test-floorl.c (zero): New variable.
42483         (main): Avoid literal -0.0L.
42484         * tests/test-roundf1.c (zero): New variable.
42485         (main): Avoid literal -0.0f.
42486         * tests/test-round1.c (zero): New variable.
42487         (main): Avoid literal -0.0.
42488         * tests/test-roundl.c (zero): New variable.
42489         (main): Avoid literal -0.0L.
42490         * tests/test-truncf1.c (zero): New variable.
42491         (main): Avoid literal -0.0f.
42492         * tests/test-trunc1.c (zero): New variable.
42493         (main): Avoid literal -0.0.
42494         * tests/test-truncl.c (zero): New variable.
42495         (main): Avoid literal -0.0L.
42496         * tests/test-frexp.c (zero): New variable.
42497         (main): Avoid literal -0.0.
42498         * tests/test-frexpl.c (zero): New variable.
42499         (main): Avoid literal -0.0L.
42500         * tests/test-ldexpl.c (zero): New variable.
42501         (main): Avoid literal -0.0L.
42502         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42503         (zerod, zerol): New variables.
42504         (test_function): Avoid literals -0.0, -0.0L.
42505         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42506         (zerod, zerol): New variables.
42507         (test_function): Avoid literals -0.0, -0.0L.
42508         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42509         (zerod, zerol): New variables.
42510         (test_function): Avoid literals -0.0, -0.0L.
42511         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42512         (zerod, zerol): New variables.
42513         (test_function): Avoid literals -0.0, -0.0L.
42514         * tests/test-strtod.c (zero): New variable.
42515         (main): Avoid literal -0.0.
42516         Reported by Jonathan C. Patschke <jp@centtech.com>.
42517
42518 2008-07-31  Jim Meyering  <meyering@redhat.com>
42519
42520         sha256.h: correct definition of SHA224_DIGEST_SIZE
42521         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42522         Reported by Paulie Pena IV <paulie4@gmail.com>.
42523         Define as 224 / 8, rather than as a literal.
42524         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42525         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42526         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42527
42528 2008-07-31  Bruno Haible  <bruno@clisp.org>
42529
42530         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42531         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42532         Reported by Jonathan Patschke <jp@centtech.com>.
42533
42534 2008-07-31  Bruno Haible  <bruno@clisp.org>
42535
42536         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42537         Reported by Paolo Bonzini <bonzini@gnu.org>.
42538
42539 2008-07-30  Eric Blake  <ebb9@byu.net>
42540
42541         test-strtod: allow compilation without -lm
42542         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42543         Reported by Dennis Clarke <blastwave@gmail.com>.
42544
42545 2008-07-28  Jim Meyering  <meyering@redhat.com>
42546
42547         bootstrap: work also when there are no .po files in po/
42548         * build-aux/bootstrap (update_po_files): Complete the change
42549         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42550
42551 2008-07-27  Jim Meyering  <meyering@redhat.com>
42552
42553         * users.txt: Add zile.
42554
42555 2008-07-26  Ben Pfaff  <blp@gnu.org>
42556
42557         Add missing dependencies on new m4/exponent[fdl].m4 files.
42558         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42559         * modules/isnand-nolibm: Add m4/exponentd.m4.
42560         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42561         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42562         m4/isnan[fdl].m4, because the macros actually used moved.
42563         Reported by Jim Meyering.
42564
42565 2008-07-14  Ben Pfaff  <blp@gnu.org>
42566
42567         Add isinf module.
42568         * lib/isinf.c: New file.
42569         * lib/math.in.h: Define isinf macro if we have decided to replace
42570         it.
42571         * m4/isinf.m4: New file.
42572         * m4/math_h.m4: Initialize and substitute variables for isinf
42573         module.
42574         * modules/isinf: New file.
42575         * modules/isinf-tests: New file.
42576         * modules/math: Add substitutions for new module.
42577         * tests/test-isinf.c: New file.
42578         * doc/posix-functions/isinf.texi: Mention new module.
42579         * MODULES.html.sh: Mention new module.
42580
42581 2008-07-14  Ben Pfaff  <blp@gnu.org>
42582
42583         Factor out some macros for use by additional modules.
42584         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42585         exponentf.m4.
42586         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42587         exponentd.m4.
42588         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42589         file exponentl.m4.
42590         * m4/exponentf.m4: New file.
42591         * m4/exponentd.m4: New file.
42592         * m4/exponentl.m4: New file.
42593         * modules/isnanf: Use new file m4/exponentf.m4.
42594         * modules/isnand: Use new file m4/exponentd.m4.
42595         * modules/isnanl: Use new file m4/exponentl.m4.
42596
42597 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42598
42599         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42600         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42601         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42602         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42603
42604         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42605         readlink on platforms without PATH_MAX.
42606
42607 2008-07-21  Eric Blake  <ebb9@byu.net>
42608
42609         Warn, not fail, on stale version.
42610         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42611
42612         Don't allow installation with stale devel version number.
42613         * top/GNUmakefile (_is-install-target): New macro.
42614         (_curr-ver): Forbid installation with stale version number.
42615
42616 2008-07-20  Bruno Haible  <bruno@clisp.org>
42617
42618         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42619         TESTS_ENVIRONMENT.
42620         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42621
42622 2008-07-20  Bruno Haible  <bruno@clisp.org>
42623
42624         * lib/c-stack.h (c_stack_action): Add documentation.
42625         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42626
42627 2008-07-20  Bruno Haible  <bruno@clisp.org>
42628
42629         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42630         * modules/readlink (License): Likewise.
42631
42632 2008-07-17  Eric Blake  <ebb9@byu.net>
42633
42634         * modules/c-stack (Link): Fix typo.
42635
42636         Make c-stack use libsigsegv, when available.
42637         * modules/c-stack (Depends-on): Add libsigsegv.
42638         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42639         needed.
42640         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42641         (segv_handler, overflow_handler, c_stack_action)
42642         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42643         implementation when libsigsegv is available, but only when using
42644         the library is necessary.
42645         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42646         comment, explaining why XSI check fails on Linux.
42647         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42648         * tests/test-c-stack2.sh: Tweak skip message.
42649         * NEWS: Document new link-time requirements.
42650
42651 2008-07-16  Eric Blake  <ebb9@byu.net>
42652
42653         c-stack: Expose false positives when not using libsigsegv.
42654         * modules/c-stack-tests (Files): Expand test.
42655         * tests/test-c-stack.c (main): Add means to conditionally trigger
42656         non-overflow SIGSEGV.
42657         * tests/test-c-stack2.sh: New file.
42658
42659 2008-07-14  Bruno Haible  <bruno@clisp.org>
42660
42661         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42662         Reported by Eric Blake.
42663
42664 2008-07-14  Sam Steingold  <sds@gnu.org>
42665             Bruno Haible  <bruno@clisp.org>
42666
42667         New module libsigsegv.
42668         * modules/libsigsegv: New file.
42669         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42670         modifications.
42671         * MODULES.html.sh (Signal handling): New section.
42672
42673 2008-07-14  Bruno Haible  <bruno@clisp.org>
42674
42675         * modules/unictype/ctype-* (Description): Add the word "function".
42676         Improves the resulting doc in MODULES.html.
42677
42678 2008-07-12  Ben Pfaff  <blp@gnu.org>
42679
42680         Add longlong module.
42681         * modules/longlong: New file.
42682
42683 2008-07-12  Bruno Haible  <bruno@clisp.org>
42684
42685         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42686         to empty.
42687
42688 2008-07-10  Ben Pfaff  <blp@gnu.org>
42689
42690         Add isnan module.
42691         * doc/posix-functions/isnan.texi: Mention new module.
42692         * lib/math.in.h: Define isnan macro if we have decided to replace
42693         it.
42694         * m4/isnan.m4: New file.
42695         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42696         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42697         also.
42698         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42699         redundancy.
42700         * m4/math_h.m4: Initialize and substitute variables for isnan
42701         module.
42702         * modules/isnan: New file.
42703         * modules/isnan-tests: New file.
42704         * modules/math: Add substitutions for new module.
42705         * tests/test-isnan.c: New file.
42706         * MODULES.html.sh: Mention new module.
42707
42708 2008-07-10  Ben Pfaff  <blp@gnu.org>
42709
42710         Add isnanf module.
42711         * lib/isnanf.m4: New file.
42712         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42713         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42714         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42715         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42716         * modules/isnanf: New file.
42717         * modules/isnanf-tests: New file.
42718         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42719         files.
42720         * tests/test-isnanf-nolibm.c: factored most of its contents into
42721         new file tests/test-isnanf.h.
42722         * tests/test-isnanf.h: New file.
42723         * tests/test-isnanf.c: New file.
42724         * MODULES.html.sh: Mention new module.
42725         * doc/glibc-functions/isnanf.texi: Mention new module.
42726
42727 2008-07-10  Ben Pfaff  <blp@gnu.org>
42728
42729         Add isnand module.
42730         * lib/isnand.h: New file.
42731         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42732         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42733         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42734         functionality also.
42735         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42736         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42737         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42738         * modules/isnand: New file.
42739         * modules/isnand-tests: New file.
42740         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42741         files.
42742         * tests/test-isnand-nolibm.c: factored most of its contents into
42743         new file tests/test-isnand.h.
42744         * tests/test-isnand.h: New file.
42745         * tests/test-isnand.c: New file.
42746         * MODULES.html.sh: Mention new module.
42747
42748 2008-07-10  Ben Pfaff  <blp@gnu.org>
42749
42750         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42751         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42752         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42753         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42754         * modules/isnanf-nolibm: Update references to renamed files.
42755         * modules/isnand-nolibm: Likewise.
42756         * modules/isnanf-nolibm-tests: Likewise.
42757         * modules/isnand-nolibm-tests: Likewise.
42758         * lib/frexp.c: Likewise.
42759         * lib/isfinite.c: Likewise.
42760         * lib/signbitd.c: Likewise.
42761         * lib/signbitf.c: Likewise.
42762         * lib/vasnprintf.c: Likewise.
42763         * tests/test-ceilf1.c: Likewise.
42764         * tests/test-ceilf2.c: Likewise.
42765         * tests/test-floorf1.c: Likewise.
42766         * tests/test-floorf2.c: Likewise.
42767         * tests/test-frexp.c: Likewise.
42768         * tests/test-round1.c: Likewise.
42769         * tests/test-round2.c: Likewise.
42770         * tests/test-roundf1.c: Likewise.
42771         * tests/test-strtod.c: Likewise.
42772         * tests/test-trunc1.c: Likewise.
42773         * tests/test-trunc2.c: Likewise.
42774         * tests/test-truncf1.c: Likewise.
42775         * tests/test-truncf2.c: Likewise.
42776         * NEWS: Mention the renamed header files.
42777
42778 2008-07-11  Jim Meyering  <meyering@redhat.com>
42779
42780         vc-list-files: make the last-resort awk code more portable
42781         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42782         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42783         does not support it.
42784
42785 2008-07-10  Eric Blake  <ebb9@byu.net>
42786
42787         Work with tar's bootstrap.
42788         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42789         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42790         an m4 comment.
42791
42792 2008-07-09  Jim Meyering  <meyering@redhat.com>
42793
42794         posix-shell.m4: fix typo that made this test malfunction
42795         * m4/posix-shell.m4: Remove capitalization in variable name.
42796
42797 2008-07-08  Bruno Haible  <bruno@clisp.org>
42798
42799         * m4/onceonly.m4: Update comments.
42800         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42801
42802 2008-07-04  Jim Meyering  <meyering@redhat.com>
42803
42804         * users.txt: Add vc-dwim.
42805         (bison, coreutils): Use the gitweb URL.
42806
42807 2008-07-03  Jim Meyering  <meyering@redhat.com>
42808
42809         * users.txt: Add libffcall.  From Sam Steingold.
42810
42811 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
42812
42813         getdate.y: do not ignore TZ with relative day, month or year offset
42814         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42815         relative-date-handling, since otherwise, the latter would clobber the
42816         sole output (an updated Start value) of the tz-handling block.
42817         * tests/test-getdate.c: Tests for the fix
42818
42819 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42820
42821         Recognize 'foo_LIBRARIES += libgnu.a'.
42822         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42823         makefile snippet has already specified an installation location,
42824         also using '+='.
42825
42826 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
42827
42828         getdate.y: factor out common actions
42829         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42830         Use them in place of open-coded actions.
42831
42832 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42833
42834         Add self-test for getdate module.
42835         * modules/getdate-tests: New file.
42836         * tests/test-getdate.c: New file.
42837
42838 2008-06-29  Bruno Haible  <bruno@clisp.org>
42839
42840         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42841         .gitignore.
42842         Reported by Sylvain Beucler <beuc@beuc.net>.
42843
42844 2008-06-29  Bruno Haible  <bruno@clisp.org>
42845
42846         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42847         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42848
42849 2008-06-29  Bruno Haible  <bruno@clisp.org>
42850
42851         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42852         EXTRA_DIST.
42853         Reported by Sylvain Beucler <beuc@beuc.net>.
42854
42855 2008-06-26  Jim Meyering  <meyering@redhat.com>
42856
42857         make several modules depend on the "open" module
42858         This provides slightly increased consistency when opening-for-write
42859         the name of a non-directory spelled with a trailing slash.
42860         * modules/chdir-safer: Likewise.
42861         * modules/chown: Likewise.
42862         * modules/clean-temp: Likewise.
42863         * modules/copy-file: Likewise.
42864         * modules/fchdir: Likewise.
42865         * modules/fcntl-safer: Likewise.
42866         * modules/pipe: Likewise.
42867         * modules/utime: Likewise.
42868         Prompted by Eric Blake and Bruno Haible.
42869
42870 2008-06-24  Andreas Schwab  <schwab@suse.de>
42871
42872         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
42873         literals can be used as initializers for global variables.
42874
42875 2008-06-23  Eric Blake  <ebb9@byu.net>
42876
42877         Make gnulib-cache.m4 easier to diff.
42878         * gnulib-tool (func_import): Allow newlines when reading cached
42879         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
42880
42881 2008-06-23  Bruno Haible  <bruno@clisp.org>
42882
42883         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
42884         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
42885         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
42886         m4/signalblocking.m4.
42887         (gl_PREREQ_SIGACTION): Don't invoke it.
42888         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
42889         gl_PREREQ_SIG_HANDLER_H.
42890         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42891         Don't check for sigaction here.
42892
42893 2008-06-23  Bruno Haible  <bruno@clisp.org>
42894
42895         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
42896         (install_handlers): Don't set the SA_RESETHAND flag.
42897
42898 2008-06-23  Bruno Haible  <bruno@clisp.org>
42899
42900         * m4/sigaction.m4: Comment fixes.
42901         * lib/signal.in.h: Likewise.
42902
42903 2008-06-23  Eric Blake  <ebb9@byu.net>
42904
42905         Fix typo.
42906         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
42907
42908         Avoid SA_ namespace.
42909         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
42910         Reported by Ralf Wildenhues.
42911
42912         Avoid test failure due to SA_RESTORER.
42913         * tests/test-sigaction.c (SA_MASK): New macro.
42914         (main): Avoid failing due to extension flags being set.
42915         Reported by Jim Meyering.
42916
42917         Revert use of sig-handler.h in sigprocmask.c.
42918         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
42919         it requires the existence of struct sigaction.
42920         * lib/sigprocmask.c (handler_t): Restore typedef.
42921         (rpl_signal, old_handlers): Use local type.
42922
42923 2008-06-22  Bruno Haible  <bruno@clisp.org>
42924
42925         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
42926         conditionally.
42927         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42928
42929 2008-06-22  Bruno Haible  <bruno@clisp.org>
42930
42931         * doc/posix-functions/siginterrupt.texi: Move note.
42932
42933         * lib/signal.in.h (SA_RESTART): New macro.
42934         * lib/sigaction.c: Update comment.
42935
42936         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
42937
42938         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
42939         (gl_PREREQ_SIGPROCMASK): Invoke it.
42940         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
42941
42942         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
42943
42944         * lib/sigprocmask.c: Update a comment.
42945
42946 2008-06-21  Eric Blake  <ebb9@byu.net>
42947
42948         Use sigaction module rather than signal().
42949         * modules/c-stack (Depends-on): Add sigaction.
42950         * modules/fatal-signal (Depends-on): Likewise.
42951         * modules/nanosleep (Depends-on): Likewise.
42952         * modules/sigprocmask (Files): Add sig-handler.h.
42953         * modules/sigaction (Files): Likewise.
42954         * lib/sig-handler.h (get_handler): New file, suggested by Paul
42955         Eggert.
42956         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
42957         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
42958         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42959         (init_fatal_signals): Likewise.
42960         * lib/nanosleep.c (rpl_nanosleep): Likewise.
42961         (siginterrupt): Delete fallback.
42962         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
42963         instead.
42964         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
42965         siginterrupt.
42966
42967         New module sigaction, for mingw.
42968         * modules/sigaction: New module...
42969         * modules/sigaction-tests: ...and its test.
42970         * m4/sigaction.m4: New file.
42971         * lib/sigaction.c: Likewise.
42972         * tests/test-sigaction.c: Likewise.
42973         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
42974         * modules/signal (Makefile.am): Likewise.
42975         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
42976         needed.
42977         * doc/posix-headers/signal.texi (signal.h): Mention provided
42978         types.
42979         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
42980         that sigaction is preferable.
42981         * doc/posix-functions/sigaction.texi (sigaction): Mention new
42982         module.
42983         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42984         sigaction.
42985
42986         Improve robustness of sigprocmask by overriding signal.
42987         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
42988         is in use.
42989         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
42990         (SIGKILL, SIGSTOP): Provide fallbacks.
42991         (rpl_signal): Implement.
42992         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
42993         signal can be called inside handlers.
42994
42995         Fix nanosleep module on mingw.
42996         * modules/nanosleep (Depends-on): Add sys_select.
42997         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
42998
42999         Fix licensing of sigprocmask.
43000         * modules/raise (License): Relicense as LGPL.
43001
43002 2008-06-21  Bruno Haible  <bruno@clisp.org>
43003
43004         * lib/propername.c (proper_name_utf8): Don't use the transliterated
43005         result if it contains question marks.
43006         Reported by Michael Geng <linux@michaelgeng.de>.
43007
43008 2008-06-19  Bruno Haible  <bruno@clisp.org>
43009
43010         Fix CVS-ism.
43011         * doc/gnulib.texi: Include updated-stamp.texi.
43012         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
43013         (updated-stamp.texi): New rule.
43014         (gnulib.info): Depend on it.
43015         * doc/.gitignore: Add updated-stamp.texi.
43016         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
43017
43018 2008-06-19  Bruno Haible  <bruno@clisp.org>
43019
43020         * doc/Makefile (gnulib.info): Update and simplify dependencies.
43021         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43022
43023 2008-06-19  Eric Blake  <ebb9@byu.net>
43024
43025         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
43026         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
43027         Reported by Stepan Kasal.
43028
43029 2008-06-18  Bruno Haible  <bruno@clisp.org>
43030
43031         * lib/fatal-signal.c (init_fatal_signals): Add comment.
43032         Reported by Eric Blake.
43033
43034 2008-06-18  Eric Blake  <ebb9@byu.net>
43035
43036         Work around cygwin 1.5.25 strsignal bug.
43037         * tests/test-strsignal.c: Allow for const char *.
43038         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
43039
43040 2008-06-18  Simon Josefsson  <simon@josefsson.org>
43041
43042         * users.txt: Update URL to article and add author/date
43043         information.
43044
43045 2008-06-17  Bruno Haible  <bruno@clisp.org>
43046
43047         New macro gl_DISABLE_THREADS.
43048         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
43049         if the user did not pass --enable-threads or --disable-threads option.
43050         (gl_DISABLE_THREADS): New macro.
43051         Reported by Eric Blake <ebb9@byu.net>.
43052
43053 2008-06-17  Bruno Haible  <bruno@clisp.org>
43054
43055         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
43056         when the macro ignores it.
43057         Based on a patch by Eric Blake <ebb9@byu.net>.
43058
43059 2008-06-17  Bruno Haible  <bruno@clisp.org>
43060
43061         * modules/tls (License): Change to LGPLv2+.
43062         Reported by Eric Blake.
43063
43064 2008-06-17  Eric Blake  <ebb9@byu.net>
43065
43066         Simplify c-stack prerequisites.
43067         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
43068         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
43069         no longer requires <ucontext.h> to exist.  Optimize setrlimit
43070         check.
43071         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
43072         <sys/resource.h>.
43073
43074         Move c-stack test into testsuite.
43075         * modules/c-stack-tests: New file.
43076         * lib/c-stack.c [DEBUG]: Move test program...
43077         * tests/test-c-stack.c: ...into this new file.  Skip rather than
43078         fail test if sigaltstack is lacking.
43079         * tests/test-c-stack.sh: New driver file.
43080
43081 2008-06-16  Eric Blake  <ebb9@byu.net>
43082
43083         Use raise module consistently.
43084         * modules/fatal-signal (Depends-on): Add raise.
43085         * modules/sigprocmask (Depends-on): Likewise.
43086         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
43087         * lib/sigprocmask.c (sigprocmask): Likewise.
43088         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43089         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
43090
43091         Fix compliance bug in sigpending.
43092         * lib/sigprocmask.c (sigpending): Return pending array via
43093         parameter, not return value.
43094
43095 2008-06-14  Eric Blake  <ebb9@byu.net>
43096
43097         Improve obstack-printf test code.
43098         * tests/test-obstack-printf.c (test_function): Fix comment, and
43099         simplify usage of obstack_* in macros.  Add a test for coverage.
43100         Reported by Bruno Haible.
43101
43102 2008-06-14  Bruno Haible  <bruno@clisp.org>
43103
43104         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
43105         array size as a constant, not as a const variable.
43106         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
43107         AC_USE_SYSTEM_EXTENSIONS.
43108         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43109         Test whether the obstack_printf function actually exists.
43110         * modules/obstack-printf (Depends-on): Add extensions.
43111         (Include): Remove obstack.h.
43112         * modules/obstack-printf-posix (Depends-on): Add extensions.
43113         (Include): Remove obstack.h.
43114
43115 2008-06-13  Eric Blake  <ebb9@byu.net>
43116
43117         Add obstack-printf and obstack-printf-posix modules.
43118         * modules/obstack-printf: New file.
43119         * modules/obstack-printf-posix: Likewise.
43120         * MODULES.html.sh (Misc): Mention them.
43121         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43122         Likewise.
43123         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43124         Likewise.
43125         * modules/stdio (Makefile.am): Accomodate new modules.
43126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43127         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
43128         Declare.
43129         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
43130         functions.
43131         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
43132         (gl_REPLACE_OBSTACK_PRINTF): New macros
43133         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
43134         * tests/test-obstack-printf.c: New file.
43135         * modules/obstack-printf-tests: Likewise.
43136         * modules/obstack-printf-posix-tests: Likewise.
43137
43138 2008-06-11  Bruno Haible  <bruno@clisp.org>
43139
43140         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
43141         * lib/open.c: Include errno.h.
43142         (open): Fail when attempting to write to a file that has a trailing
43143         slash.
43144         * tests/test-open.c (main): Test against trailing slash bug.
43145         * doc/posix-functions/open.texi: Mention the trailing slash bug.
43146
43147 2008-06-10  Bruno Haible  <bruno@clisp.org>
43148
43149         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
43150         for $? to work inside the trap command, with various /bin/sh-s.
43151         * tests/test-vc-list-files-cvs.sh: Likewise.
43152
43153 2008-06-10  Bruno Haible  <bruno@clisp.org>
43154
43155         * lib/acl-internal.h: Don't include gettext.h here.
43156         * lib/set-mode-acl.c: Include gettext.h here.
43157         * lib/copy-acl.c: Likewise.
43158
43159 2008-06-10  Bruno Haible  <bruno@clisp.org>
43160
43161         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
43162         * lib/wait-process.c (wait_subprocess): Likewise.
43163         * lib/execute.h (execute): Add termsigp argument.
43164         * lib/execute.c (execute): Likewise.
43165         * lib/csharpcomp.c (compile_csharp_using_pnet,
43166         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
43167         * lib/csharpexec.c (execute_csharp_using_pnet,
43168         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
43169         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
43170         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
43171         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
43172         is_jikes_present): Update.
43173         * lib/javaexec.c (execute_java_class): Update.
43174         * lib/javaversion.c (execute_and_read_line): Update.
43175         * NEWS: Document the changes.
43176         Reported by Eric Blake.
43177
43178 2008-06-10  Eric Blake  <ebb9@byu.net>
43179
43180         Add missing include.
43181         * tests/test-strstr.c (includes): Add <signal.h>.
43182         * tests/test-strcasestr.c (includes): Likewise.
43183         * tests/test-memmem.c (includes): Likewise.
43184
43185 2008-06-10  Bruno Haible  <bruno@clisp.org>
43186
43187         * lib/wait-process.c (wait_subprocess): Add an assertion.
43188
43189 2008-06-10  Bruno Haible  <bruno@clisp.org>
43190
43191         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
43192
43193 2008-06-10  Bruno Haible  <bruno@clisp.org>
43194
43195         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
43196         using alarm().
43197         * tests/test-strcasestr.c (main): Likewise.
43198         * tests/test-strstr.c (main): Likewise.
43199
43200 2008-06-09  Bruno Haible  <bruno@clisp.org>
43201
43202         Work around the Solaris 10 ACE ACLs ABI change.
43203         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
43204         declare if ACL_NO_TRIVIAL is present.
43205         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
43206         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
43207         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
43208         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
43209         define if ACL_NO_TRIVIAL is present.
43210         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
43211         and use the current ABI.
43212         (file_has_acl): Use same #if condition as elsewhere.
43213         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
43214         in use, and use the current ABI.
43215         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
43216         Reported by Jim Meyering.
43217
43218 2008-06-09  Eric Blake  <ebb9@byu.net>
43219
43220         Work around environments that (stupidly) ignore SIGALRM.
43221         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
43222         before using alarm().
43223         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43224         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43225         Reported by Ian Beckwith <ianb@erislabs.net>.
43226
43227         Produce autobuild blurb earlier in log.
43228         * modules/autobuild (configure.ac-early): Move AB_INIT here.
43229
43230 2008-06-09  Jim Meyering  <meyering@redhat.com>
43231         and Ondřej Vašík  <ovasik@redhat.com>
43232
43233         utimens.c: correct kernel bug work-around
43234         Ondřej Vašík found that the invalid return value of 280 indicates
43235         failure, not success, and the kernel bug we're trying to work
43236         around affects not just the utimensat call, but also the fallback
43237         futimens call.
43238         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
43239         not success.
43240         [HAVE_FUTIMENS]: Use the same work-around, here.
43241
43242 2008-06-09  Jim Meyering  <meyering@redhat.com>
43243
43244         add more guards around definition of ACE_-related code
43245         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
43246         ALLOW and ACE_OWNER are also defined.
43247
43248 2008-06-08  Bruno Haible  <bruno@clisp.org>
43249
43250         * lib/acl-internal.h: Add me as co-author.
43251         * lib/file-has-acl.c: Likewise.
43252         * lib/set-mode-acl.c: Likewise.
43253         * lib/copy-acl.c: Likewise.
43254
43255 2008-06-08  Bruno Haible  <bruno@clisp.org>
43256
43257         Add support for AIX ACLs.
43258         * lib/acl-internal.h (acl_nontrivial): New declaration.
43259         * lib/file-has-acl.c (acl_nontrivial): New function.
43260         (file_has_acl): Add implementation using AIX 4 ACL API.
43261         * lib/set-mode-acl.c (qset_acl): Likewise.
43262         * lib/copy-acl.c (qcopy_acl): Likewise.
43263
43264 2008-06-08  Bruno Haible  <bruno@clisp.org>
43265
43266         Add support for HP-UX ACLs.
43267         * lib/acl-internal.h (acl_nontrivial): New declaration.
43268         * lib/file-has-acl.c (acl_nontrivial): New function.
43269         (file_has_acl): Add implementation using HP-UX 11 ACL API.
43270         * lib/set-mode-acl.c (qset_acl): Likewise.
43271         * lib/copy-acl.c (qcopy_acl): Likewise.
43272
43273 2008-06-08  Bruno Haible  <bruno@clisp.org>
43274
43275         Add support for Cygwin ACLs.
43276         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
43277         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
43278         the chmod_or_fchmod call.
43279         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
43280
43281 2008-06-08  Bruno Haible  <bruno@clisp.org>
43282
43283         Fix bug with setuid modes in Solaris 10+ code.
43284         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
43285         succeeded, when the mode contains some special bits.
43286
43287 2008-06-08  Bruno Haible  <bruno@clisp.org>
43288
43289         Add support for Solaris 7..10 ACLs.
43290         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
43291         declarations.
43292         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
43293         functions.
43294         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
43295         * lib/set-mode-acl.c (qset_acl): Likewise.
43296         * lib/copy-acl.c (qcopy_acl): Likewise.
43297
43298 2008-06-08  Bruno Haible  <bruno@clisp.org>
43299
43300         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43301         declaration.
43302         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43303         (acl_access_nontrivial): Remove MacOS X case.
43304         (file_has_acl): Use acl_extended_nontrivial.
43305         * lib/copy-acl.c (qcopy_acl): Likewise.
43306
43307 2008-06-08  Bruno Haible  <bruno@clisp.org>
43308
43309         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43310
43311 2008-06-08  Jim Meyering  <meyering@redhat.com>
43312
43313         * modules/acl (Maintainer): Add Bruno Haible.
43314
43315 2008-06-07  Bruno Haible  <bruno@clisp.org>
43316
43317         Improve support for Tru64 ACLs.
43318         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43319         ACL on OSF/1.
43320
43321 2008-06-07  Bruno Haible  <bruno@clisp.org>
43322
43323         Add support for MacOS X ACLs.
43324         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43325         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43326         * lib/set-mode-acl.c (qset_acl): Likewise.
43327         * lib/copy-acl.c (qcopy_acl): Likewise.
43328
43329 2008-06-07  Bruno Haible  <bruno@clisp.org>
43330
43331         Fix memory leak introduced on 2008-05-22.
43332         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43333         use.
43334
43335 2008-06-07  Bruno Haible  <bruno@clisp.org>
43336
43337         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43338         to construct an empty ACL.
43339
43340 2008-06-07  Bruno Haible  <bruno@clisp.org>
43341
43342         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43343         precisely.
43344         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43345
43346 2008-06-07  Bruno Haible  <bruno@clisp.org>
43347
43348         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43349         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43350
43351 2008-06-07  Bruno Haible  <bruno@clisp.org>
43352
43353         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43354         regardless of POSIX.
43355         * doc/posix-functions/_longjmp.texi: Likewise.
43356         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43357         SystemV platform in this case.
43358
43359 2008-06-06  Eric Blake  <ebb9@byu.net>
43360
43361         Document abort() bugs.
43362         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43363
43364         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43365         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43366         sigsetjmp.
43367         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43368         siglongjmp, but only as a macro.
43369         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43370         is obsolete.
43371         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43372
43373         Tweak documentation to cover cygwin argz bugs.
43374         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43375         argz bug fix; no code change needed since no cygwin releases
43376         occurred between the last fix and the bug being tested.
43377         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43378         module and recently fixed cygwin bugs.
43379         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43380         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43381         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43382         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43383         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43384         Likewise.
43385         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43386         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43387         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43388         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43389         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43390         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43391         Likewise.
43392
43393         Avoid gcc warning on cygwin.
43394         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43395         !ACL_NO_TRIVIAL]: Avoid unused variable.
43396
43397 2008-06-05  Eric Blake  <ebb9@byu.net>
43398
43399         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43400         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43401         git-version-gen fails to come up with a version.
43402         Reported by Simon Josefsson.
43403
43404 2008-06-05  Jim Meyering  <meyering@redhat.com>
43405             Paul Eggert  <eggert@cs.ucla.edu>
43406
43407         utimens.c: work around a probable Linux kernel bug
43408         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43409         appears to be a kernel bug that causes utimensat to return 280
43410         instead of 0, indicating success.
43411
43412 2008-06-04  Bruno Haible  <bruno@clisp.org>
43413
43414         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43415         2008-06-01 commit.
43416
43417 2008-06-04  Bruno Haible  <bruno@clisp.org>
43418
43419         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43420         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43421         (file_has_acl): Use it. Save errno afterwards.
43422         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43423
43424 2008-06-03  Bruno Haible  <bruno@clisp.org>
43425
43426         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43427         draft code. Simplify #ifs.
43428         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43429         Put Solaris code after POSIX-draft code. Fix comments regarding
43430         Solaris 10, HP-UX. Mention Cygwin.
43431         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43432
43433 2008-06-03  Eric Blake  <ebb9@byu.net>
43434
43435         Provide fallback for older kernels.
43436         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43437         Provide runtime fallback if kernel lacks support.
43438         Reported by Mike Frysinger.
43439
43440 2008-06-02  Bruno Haible  <bruno@clisp.org>
43441
43442         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43443         it exists.
43444
43445 2008-06-02  Bruno Haible  <bruno@clisp.org>
43446
43447         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43448         * lib/copy-acl.c (qcopy_acl): Update comment.
43449
43450 2008-06-02  Bruno Haible  <bruno@clisp.org>
43451
43452         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43453         like ACL APIs.
43454
43455 2008-06-02  Bruno Haible  <bruno@clisp.org>
43456
43457         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43458         * tests/test-set-mode-acl.sh: Likewise.
43459         * tests/test-copy-acl.sh: Likewise.
43460         * tests/test-copy-file.sh: Likewise.
43461
43462 2008-06-02  Bruno Haible  <bruno@clisp.org>
43463
43464         * tests/test-file-has-acl.sh: Remove unused code.
43465
43466 2008-06-01  Bruno Haible  <bruno@clisp.org>
43467
43468         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43469         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43470         messages.
43471         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43472
43473 2008-06-01  Bruno Haible  <bruno@clisp.org>
43474
43475         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43476         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43477         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43478         APIs.
43479         * modules/acl-tests (configure.ac): Remove tests now contained in
43480         m4/acl.m4.
43481
43482 2008-06-02  Jim Meyering  <meyering@redhat.com>
43483
43484         announce-gen: use a better key-server host name
43485         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43486         it may be more consistently reliable.  Suggested by Werner Koch
43487         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43488
43489 2008-06-01  Bruno Haible  <bruno@clisp.org>
43490
43491         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43492         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43493
43494 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43495
43496         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43497
43498 2008-06-01  Bruno Haible  <bruno@clisp.org>
43499
43500         New ACL tests.
43501         * tests/test-file-has-acl.sh: New file.
43502         * tests/test-file-has-acl.c: New file.
43503         * tests/test-set-mode-acl.sh: New file.
43504         * tests/test-set-mode-acl.c: New file.
43505         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43506         * tests/test-copy-acl.c: New file.
43507         * modules/acl-tests: New file, based on modules/copy-file-tests.
43508         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43509         (Depends-on): Add acl-tests.
43510         (configure.ac): Remove checks.
43511         (Makefile.am): Don't create test-sameacls program here any more.
43512
43513 2008-06-01  Bruno Haible  <bruno@clisp.org>
43514
43515         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43516         * tests/test-sameacls.c: Include progname.h.
43517         (main): Invoke set_program_name. Portability fixes for MacOS X,
43518         Solaris, HP-UX.
43519
43520 2008-06-01  Bruno Haible  <bruno@clisp.org>
43521
43522         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43523         function.
43524         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43525
43526 2008-06-01  Bruno Haible  <bruno@clisp.org>
43527
43528         * modules/rpmatch (Depends-on): Add strdup.
43529
43530 2008-06-01  Bruno Haible  <bruno@clisp.org>
43531
43532         * lib/pipe.c: Include unistd-safer.h.
43533         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43534         * modules/pipe (Depends-on): Add unistd-safer.
43535
43536 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43537
43538         * modules/autobuild (configure.ac): Call AB_INIT.
43539
43540 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43541
43542         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43543         Suggested by Bruno Haible <bruno@clisp.org>.
43544
43545 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43546
43547         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43548         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43549         <bruno@clisp.org>.
43550
43551 2008-05-29  Eric Blake  <ebb9@byu.net>
43552
43553         Prefer new POSIX 200x interfaces over futimesat.
43554         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43555         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43556         when available.
43557         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43558
43559 2008-05-28  Bruno Haible  <bruno@clisp.org>
43560
43561         * modules/stpcpy (License): Change to LGPLv2+.
43562         Requested by David Lutterkort <dlutter@redhat.com>.
43563
43564 2008-05-27  Bruno Haible  <bruno@clisp.org>
43565
43566         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43567         current mingw.
43568         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43569
43570 2008-05-27  Bruno Haible  <bruno@clisp.org>
43571
43572         * modules/iconv_open (Link): New section, from module 'iconv'.
43573         * modules/striconv (Link): Likewise.
43574         * modules/striconveh (Link): Likewise.
43575         * modules/xstriconv (Link): Likewise.
43576         * modules/unicodeio (Link): Likewise.
43577         * modules/propername (Link): Likewise.
43578         Reported by Jim Meyering.
43579
43580 2008-05-26  Jim Meyering  <meyering@redhat.com>
43581
43582         sha256: do not artificially restrict buffer length to be < 2^32
43583         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43584         uint32_t to size_t.
43585         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43586         to match.
43587
43588         avoid unaligned access errors, e.g., on sparc
43589         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43590         direct access through a possibly-unaligned uint64* pointer.
43591         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43592         direct access through a possibly-unaligned uint32* pointer.
43593         Prompted by this patch from Tom "spot" Callaway:
43594         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43595
43596         sha512.c: fix typo in comment
43597         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43598
43599 2008-05-25  Bruno Haible  <bruno@clisp.org>
43600
43601         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43602         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43603         (Makefile.am): Update lib_SOURCES.
43604
43605 2008-05-25  Bruno Haible  <bruno@clisp.org>
43606
43607         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43608
43609 2008-05-25  Jim Meyering  <meyering@redhat.com>
43610
43611         useless-if-before-free: freed expr may have white-space differences
43612         * build-aux/useless-if-before-free: Recognize cases in which the
43613         freed expression differs from the tested one in embedded white
43614         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43615         $1 was used, so we can't make any regexp shy.  Improved tests now
43616         detect this.
43617
43618         useless-if-before-free: accept white space in the expression.
43619         * build-aux/useless-if-before-free: For now, any white space
43620         in the expression must be identical in the free argument.
43621
43622         useless-if-before-free: efficiency tweak
43623         * build-aux/useless-if-before-free: Make the expression-matching
43624         regexp "shy".
43625         Make the *outer* regexp shy, not the expr-matching one.
43626
43627         update code-in-comment to accept cast of free arg
43628         * build-aux/useless-if-before-free: Update regexp.
43629
43630 2008-05-25  Bruno Haible  <bruno@clisp.org>
43631
43632         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43633         * modules/copy-file-tests (Files, Makefile.am): Update.
43634         * tests/test-copy-file.c (func_test_copy): Update.
43635
43636 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43637
43638         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43639
43640 2008-05-23  Bruno Haible  <bruno@clisp.org>
43641
43642         Improve support for ACLs on OSF/1.
43643         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43644         Remove fallback for unknown flavors of ACLs.
43645
43646 2008-05-22  Bruno Haible  <bruno@clisp.org>
43647
43648         Add support for ACLs on OSF/1.
43649         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43650         replacements.
43651         (acl_free_text): New macro fallback.
43652         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43653         acl_free.
43654         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43655         acl_free_text function. Require AC_C_INLINE.
43656
43657 2008-05-22  Bruno Haible  <bruno@clisp.org>
43658
43659         Make copy_acl work on MacOS X 10.5.
43660         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43661         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43662         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43663         If MODE_INSIDE_ACL, don't assume that every system has the same text
43664         representation for ACLs as FreeBSD.
43665         * lib/copy-acl.c (copy_acl): Add support for platforms with
43666         !MODE_INSIDE_ACL.
43667         * lib/file-has-acl.c (file_has_acl): Likewise.
43668         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43669         FreeBSD, MacOS X, or IRIX, respectively.
43670
43671 2008-05-22  Bruno Haible  <bruno@clisp.org>
43672
43673         * lib/acl.h: Don't include <sys/acl.h>.
43674         (GETACLCNT): Move fallback to lib/acl-internal.h.
43675         * lib/acl-internal.h: Include <sys/acl.h> here.
43676         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43677
43678 2008-05-22  Bruno Haible  <bruno@clisp.org>
43679
43680         Split off copy_acl function to separate file.
43681         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43682         * lib/acl.c (copy_acl): Moved function to separate file.
43683         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43684         * modules/acl (Files): Add lib/copy-acl.c.
43685         (Makefiles.am): Augment lib_SOURCES.
43686
43687 2008-05-22  Bruno Haible  <bruno@clisp.org>
43688
43689         * modules/copy-file-tests: New file.
43690         * tests/test-copy-file.sh: New file.
43691         * tests/test-copy-file.c: New file.
43692         * tests/test-copy-file-sameacls.c: New file.
43693
43694 2008-05-22  Eric Blake  <ebb9@byu.net>
43695
43696         Avoid gcc warning.
43697         * tests/test-memcmp.c (main): Pass NULL indirectly.
43698
43699 2008-05-21  Bruno Haible  <bruno@clisp.org>
43700
43701         Add reference doc about ACLs.
43702         * doc/acl-resources.txt: New file.
43703         * doc/acl-cygwin.txt: New file.
43704
43705 2008-05-21  Bruno Haible  <bruno@clisp.org>
43706
43707         Avoid one more warning from gcc.
43708         * lib/vasnprintf.c (IF_LINT): Update comments.
43709         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43710
43711 2008-05-21  Jim Meyering  <meyering@redhat.com>
43712
43713         avoid a warning from gcc
43714         * lib/vasnprintf.c (IF_LINT): Define.
43715         (scale10_round_decimal_long_double):
43716         Use it to avoid a "may be used uninitialized" warning.
43717         (scale10_round_decimal_double): Likewise.
43718
43719 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43720
43721         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43722         declared.
43723
43724 2008-05-20  Bruno Haible  <bruno@clisp.org>
43725
43726         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43727         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43728
43729 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43730
43731         * modules/memcmp-tests: New file.
43732         * tests/test-memcmp.c: New file.
43733
43734 2008-05-19  Bruno Haible  <bruno@clisp.org>
43735
43736         * modules/propername (Notice, configure.ac): Put quoted "..." into
43737         --keyword option.
43738         * lib/propername.h: Update comments accordingly.
43739         Reported by Eric Blake.
43740
43741 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43742
43743         * modules/getpass-gnu (Depends-on): Add fseeko.
43744
43745 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43746
43747         * modules/base64-tests: New file.
43748
43749 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43750
43751         * lib/base64.c (base64_decode_ctx): If a decode context structure
43752         was passed in use it to ignore newlines.  If a context structure
43753         was _not_ passed in, continue to treat newlines as garbage (this
43754         is the historical behavior).  Formerly base64_decode.
43755         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43756         takes a decode context structure.
43757         * lib/base64.h (base64_decode): Macro for four-argument calls.
43758         (base64_decode_alloc): Likewise.
43759         * lib/base64.c (base64_decode_ctx): If a decode context structure
43760         was passed in use it to ignore newlines.  If a context structure
43761         was _not_ passed in, continue to treat newlines as garbage (this
43762         is the historical behavior).  Formerly base64_decode.
43763         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43764         takes a decode context structure.
43765         * lib/base64.h (base64_decode): Macro for four-argument calls.
43766         (base64_decode_alloc): Likewise.
43767
43768 2008-05-19  Jim Meyering  <meyering@redhat.com>
43769
43770         avoid a warning from gcc
43771         * lib/trim.c (IF_LINT): Define.
43772         (trim2): Use it to avoid a "may be used uninitialized" warning.
43773
43774         Fix doc typo.
43775         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43776
43777 2008-05-19  Bruno Haible  <bruno@clisp.org>
43778
43779         * doc/glibc-functions/getpass.texi: Document limits of other
43780         implementations.
43781
43782 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43783             Bruno Haible <bruno@clisp.org>
43784
43785         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43786
43787 2008-05-18  Bruno Haible  <bruno@clisp.org>
43788
43789         * modules/propername: New file, from GNU gettext.
43790         * lib/propername.h: New file, from GNU gettext.
43791         * lib/propername.c: New file, from GNU gettext.
43792         * MODULES.html.sh (Internationalization functions): Add propername.
43793
43794 2008-05-16  Jim Meyering  <meyering@redhat.com>
43795             Bruno Haible  <bruno@clisp.org>
43796
43797         Avoid some warnings from "gcc -Wshadow".
43798         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43799
43800 2008-05-15  Eric Blake  <ebb9@byu.net>
43801
43802         Extend previous patch to cygwin 1.7.0.
43803         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43804         fast implementation in cygwin >= 1.7.0.
43805         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43806         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43807
43808 2008-05-15  Bruno Haible  <bruno@clisp.org>
43809
43810         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43811         implementation in glibc >= 2.9.
43812         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43814
43815 2008-05-15  Bruno Haible  <bruno@clisp.org>
43816
43817         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43818         (Unicode string functions): Add unilbrk/*.
43819         Reported by Karl Berry.
43820
43821 2008-05-15  Eric Blake  <ebb9@byu.net>
43822
43823         Fix violation of <stdbool.h> replacement in regex.
43824         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43825         * lib/regexec.c (re_search_internal): Likewise.
43826         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43827
43828 2008-05-15  Jim Meyering  <meyering@redhat.com>
43829
43830         avoid distracting test output when git or cvs is not found
43831         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43832         * tests/test-vc-list-files-git.sh: Likewise.
43833
43834 2008-05-15  Eric Blake  <ebb9@byu.net>
43835
43836         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43837         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43838         glibc version.
43839         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43840         * doc/posix-functions/strstr.texi (strstr): Likewise.
43841         * lib/str-two-way.h (MAX): Sychronize with glibc.
43842
43843 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43844
43845         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43846         opr.ctx_type.
43847         (calc_first): Initialize constraint field.
43848         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43849         Fix grammar.
43850         (duplicate_node): Merge constraint field for all node types.
43851         (calc_eclosure_iter): Look at constraint field for all node types.
43852         * lib/regex_internal.c (create_cd_newstate): Don't look at
43853         opr.ctx_type.
43854
43855 2008-05-14  Bruno Haible  <bruno@clisp.org>
43856
43857         Help GCC to do better code generation.
43858         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43859         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43860         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43861         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43862         Declare with attribute 'malloc' if supported.
43863
43864 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43865
43866         use "echo STR|wc -c" rather than unportable "expr length STR"
43867         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43868         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
43869
43870 2008-05-14  Jim Meyering  <meyering@redhat.com>
43871
43872         use dd ibs=$n count=1 ... rather than less-portable head -c$n
43873         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
43874         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
43875         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
43876         via Collin Lasse.
43877
43878 2008-05-14  Eric Blake  <ebb9@byu.net>
43879
43880         Avoid quadratic growth in gl_LIBSOURCES.
43881         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
43882         Suggested by Bruno Haible.
43883
43884         Test xmemdup0.
43885         * modules/xmemdup0-tests: New file.
43886         * tests/test-xmemdup0.c: Likewise.
43887
43888 2008-05-13  Eric Blake  <ebb9@byu.net>
43889
43890         Split xmemdup0 into its own module.
43891         * modules/xmemdup0: New file.
43892         * lib/xmemdup0.h: Likewise.
43893         * lib/xmemdup0.c: Likewise.
43894         * MODULES.html.sh (Memory management functions): Add xmemdup0.
43895         * lib/xalloc.h (xmemdup0): Remove.
43896         * lib/xmalloc.c (xmemdup0): Likewise.
43897
43898 2008-05-13  Eric Blake  <ebb9@byu.net>
43899             Bruno Haible  <bruno@clisp.org>
43900
43901         Reduce number of forks required during autoconf.
43902         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
43903         and gl_LIBSOURCES_DIR.
43904         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
43905         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
43906         m4_syscmd per file.
43907         <m4_foreach_w>: Move...
43908         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
43909
43910 2008-05-13  Eric Blake  <ebb9@byu.net>
43911
43912         * gnulib-tool: Fix various comment typos.
43913
43914 2008-05-12  Bruno Haible  <bruno@clisp.org>
43915
43916         Tailor the linebreaking algorithm.
43917         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
43918
43919 2008-05-12  Bruno Haible  <bruno@clisp.org>
43920
43921         Update to Unicode 5.0.0.
43922         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43923         LBP_JV, LBP_JT. Redistribute values.
43924         (unilbrk_table): Change size.
43925         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
43926         Unicode TR#14 rev. 22.
43927         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43928         LBP_JV, LBP_JT. Redistribute values.
43929         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
43930         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
43931         Update.
43932         * lib/unilbrk/lbrkprop1.h: Regenerated.
43933         * lib/unilbrk/lbrkprop2.h: Regenerated.
43934         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
43935         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
43936         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
43937         Likewise.
43938         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
43939         Likewise.
43940         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
43941         result.
43942         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43943         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43944         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43945         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
43946         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
43947         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
43948
43949 2008-05-11  Bruno Haible  <bruno@clisp.org>
43950
43951         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
43952
43953 2008-05-11  Bruno Haible  <bruno@clisp.org>
43954
43955         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
43956         * modules/unilbrk/gen-lbrk: New file.
43957
43958 2008-05-11  Bruno Haible  <bruno@clisp.org>
43959
43960         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
43961         * m4/sha512.m4 (gl_SHA512): Likewise.
43962
43963 2008-05-11  Jim Meyering  <meyering@redhat.com>
43964
43965         New modules: crypto/sha256, crypto/sha512 (from coreutils)
43966         * modules/crypto/sha256: New file.
43967         * modules/crypto/sha512: Likewise.
43968         * lib/sha256.c: Likewise.
43969         * lib/sha256.h: Likewise.
43970         * lib/sha512.c: Likewise.
43971         * lib/sha512.h: Likewise.
43972         * lib/u64.h: Likewise.
43973         * m4/sha256.m4: Likewise.
43974         * m4/sha512.m4: Likewise.
43975         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
43976
43977 2008-05-10  Bruno Haible  <bruno@clisp.org>
43978
43979         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
43980         (Input/Output <stdio.h>): Add xprintf.
43981         (Signal handling <signal.h>): Add strsignal.
43982         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
43983         (Core language properties): Add func.
43984         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
43985         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
43986         strings.
43987         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
43988         (Input/output): New section.
43989         (File system functions): Add openat-die, stat-macros.
43990         (Networking functions): Add sockets.
43991         (Unicode string functions): Add unictype/*.
43992         (Support for building libraries and executables): Add gperf.
43993         (Support for building documentation): Add agpl-3.0.
43994         (Misc): Add nocrash.
43995
43996 2008-05-10  Bruno Haible  <bruno@clisp.org>
43997
43998         * modules/unictype/gen-ctype: New file.
43999
44000 2008-05-10  Jim Meyering  <meyering@redhat.com>
44001
44002         Make chdir-safer.c more efficient on a system with no symlinks.
44003         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
44004         also if ELOOP is zero.  Suggested by Bruno Haible.
44005
44006         Make chdir-safer.c slightly safer.
44007         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
44008         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
44009
44010         Avoid compile failure on systems without ELOOP (like mingw).
44011         * lib/chdir-safer.c (ELOOP): Define if not already defined.
44012         Reported by Bruno Haible.
44013
44014 2008-05-10  Bruno Haible  <bruno@clisp.org>
44015
44016         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
44017         (is_utf8_encoding): Use a case-insensitive comparison.
44018         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
44019         streq.
44020
44021 2008-05-10  Bruno Haible  <bruno@clisp.org>
44022
44023         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
44024         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
44025         * lib/unilbrk/ulc-common.h (iconv_string_length,
44026         iconv_string_keeping_offsets): Remove declarations.
44027         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
44028         Don't include <iconv.h>, streq.h, xsize.h.
44029         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
44030         conversion.
44031         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
44032         <iconv.h>, streq.h, xsize.h.
44033         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
44034         conversion.
44035         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
44036         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
44037         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
44038         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
44039
44040 2008-05-10  Bruno Haible  <bruno@clisp.org>
44041
44042         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
44043         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
44044
44045         * modules/unilbrk/u32-width-linebreaks-tests: New file.
44046         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
44047
44048         * modules/unilbrk/u16-width-linebreaks-tests: New file.
44049         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
44050
44051         * modules/unilbrk/u8-width-linebreaks-tests: New file.
44052         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
44053
44054         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
44055         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
44056
44057         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
44058         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
44059
44060         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
44061         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
44062
44063         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
44064         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
44065
44066 2008-05-10  Bruno Haible  <bruno@clisp.org>
44067
44068         Split up 'linebreak' module.
44069         * lib/unilbrk.h: New file, based on lib/linebreak.h.
44070         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
44071         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
44072         modifications.
44073         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
44074         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
44075         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
44076         lib/linebreak.c.
44077         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
44078         lib/linebreak.c.
44079         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
44080         lib/linebreak.c.
44081         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
44082         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
44083         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
44084         lib/linebreak.c.
44085         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
44086         lib/linebreak.c.
44087         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
44088         lib/linebreak.c.
44089         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
44090         lib/linebreak.c.
44091         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
44092         lib/linebreak.c.
44093         * modules/unilbrk/base: New file.
44094         * modules/unilbrk/tables: New file.
44095         * modules/unilbrk/u8-possible-linebreaks: New file.
44096         * modules/unilbrk/u16-possible-linebreaks: New file.
44097         * modules/unilbrk/u32-possible-linebreaks: New file.
44098         * modules/unilbrk/ulc-common: New file.
44099         * modules/unilbrk/ulc-possible-linebreaks: New file.
44100         * modules/unilbrk/u8-width-linebreaks: New file.
44101         * modules/unilbrk/u16-width-linebreaks: New file.
44102         * modules/unilbrk/u32-width-linebreaks: New file.
44103         * modules/unilbrk/ulc-width-linebreaks: New file.
44104         * lib/linebreak.h: Remove file.
44105         * lib/linebreak.c: Remove file.
44106         * m4/linebreak.m4: Remove file.
44107         * modules/linebreak: Remove file.
44108         * NEWS: Mention the changes.
44109
44110 2008-05-09  Eric Blake  <ebb9@byu.net>
44111
44112         Add xmemdup0.
44113         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44114         implementation.
44115         * lib/xmalloc.c (xmemdup0): New C implementation.
44116
44117 2008-05-08  Bruno Haible  <bruno@clisp.org>
44118
44119         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
44120
44121 2008-05-07  Eric Blake  <ebb9@byu.net>
44122
44123         Support cross-compilation of <wctype.h>.
44124         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
44125         AC_CACHE_CHECK.
44126
44127 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
44128
44129         * build-aux/vc-list-files: Add support for bzr.
44130
44131 2008-05-03  Jim Meyering  <meyering@redhat.com>
44132
44133         avoid failed assertion with tight malloc
44134         * tests/test-getndelim2.c: Correct an off-by-one assertion.
44135
44136 2008-05-03  Simon Josefsson  <simon@josefsson.org>
44137
44138         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
44139         are needed from arpa/inet.h.
44140         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
44141         Reported by Bruno Haible.
44142
44143 2008-05-02  Jim Meyering  <meyering@redhat.com>
44144
44145         avoid compilation error on FreeBSD 6
44146         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
44147
44148 2008-05-01  Jim Meyering  <meyering@redhat.com>
44149
44150         useless-if-before-free: correct --help's exit status description
44151         * build-aux/useless-if-before-free (usage): Like grep, exit 0
44152         for one or more matches, etc.  Reported by Bruno Haible.
44153
44154         vc-list-files: make the stand-alone gnulib test work
44155         * modules/vc-list-files-tests (configure.ac):
44156         Define and AC_SUBST abs_aux_dir.
44157         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
44158         $(abs_top_srcdir) to each script and having each of them
44159         duplicate the work of setting PATH, set PATH here, using
44160         the new variable, abs_aux_dir instead.
44161         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
44162         * tests/test-vc-list-files-git.sh: Likewise.
44163         Reported by Bruno Haible.
44164
44165 2008-05-01  Bruno Haible  <bruno@clisp.org>
44166
44167         * lib/getndelim2.c (getndelim2): Fix newsize computation during
44168         reallocation. Rename 'done' to 'found_delimiter'.
44169
44170 2008-05-01  Jim Meyering  <meyering@redhat.com>
44171
44172         vc-list-files: accommodate /bin/sh like the one from Solaris 10
44173         * build-aux/vc-list-files: Use `...`, not $(...).
44174
44175 2008-04-30  Jim Meyering  <meyering@redhat.com>
44176
44177         add tests for vc-list-files
44178         * modules/vc-list-files-tests: New module.
44179         * tests/test-vc-list-files-cvs.sh: New file.
44180         * tests/test-vc-list-files-git.sh: New file.
44181
44182         avoid a warning from gcc
44183         * lib/getndelim2.c (IF_LINT): Define.
44184         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
44185
44186         vc-list-files: work properly with build-aux/cvsu, too
44187         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
44188         to all cvs-based clauses.
44189
44190         vc-list-files: work properly in the CVS+awk case, too
44191         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
44192
44193         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
44194         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
44195         take more than one file argument, so .  Add quotes, just in case $dir
44196         ever contains a shell meta-character.  Prompted by Soren Hansen in
44197         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
44198
44199 2008-04-29  Eric Blake  <ebb9@byu.net>
44200
44201         Optimize getndelim2 to use block operations when possible.
44202         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
44203         freadseek, and memchr2.
44204         * lib/getndelim2.c (getndelim2): Use them for block reads.
44205
44206 2008-04-29  Bruno Haible  <bruno@clisp.org>
44207
44208         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
44209         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44210         * modules/inet_ntop (Depends-on): Add extensions.
44211         * modules/inet_pton (Depends-on): Likewise.
44212         Reported by Simon Josefsson.
44213
44214 2008-04-29  Jim Meyering  <meyering@redhat.com>
44215
44216         When the is more than one match in a block, match all of them.
44217         * build-aux/useless-if-before-free: Iterate through each block
44218         until there are no more matches.
44219
44220         Fix broken useless-if-before-free script.
44221         * build-aux/useless-if-before-free: Fix typo: missing "?" after
44222         the expression to match cast of argument to free-like function.
44223
44224 2008-04-29  Eric Blake  <ebb9@byu.net>
44225
44226         Use new header.
44227         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
44228
44229 2008-04-29  Jim Meyering  <meyering@redhat.com>
44230
44231         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
44232         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
44233         by gnulib to exist and to declare e.g., inet_ntop.
44234         Don't include "inet_ntop.h", now removed.
44235
44236         * m4/arpa_inet_h.m4: Remove trailing blanks.
44237
44238 2008-04-29  Eric Blake  <ebb9@byu.net>
44239
44240         Silence valgrind on safe reads beyond potential array bounds.
44241         * lib/rawmemchr.valgrind: New file.
44242         * lib/strchrnul.valgrind: Likewise.
44243         * modules/rawmemchr (Files): Distribute new file.
44244         * modules/strchrnul (Files): Likewise.
44245         Suggested by Bruno Haible.
44246
44247 2008-04-29  Bruno Haible  <bruno@clisp.org>
44248
44249         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
44250         (inet_ntop, inet_pton): Change portability warning's wording.
44251         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
44252         Invoke gl_CHECK_NEXT_HEADERS.
44253         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
44254         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
44255         set ARPA_INET_H.
44256         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44257         * modules/arpa_inet (Description): No longer only for systems that
44258         lack it.
44259         (Depends-on): Add include_next.
44260         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
44261         HAVE_ARPA_INET_H.
44262
44263 2008-04-29  Jim Meyering  <meyering@redhat.com>
44264
44265         * modules/mkdir (License): Re-license as LGPLv2+.
44266
44267 2008-04-29  Bruno Haible  <bruno@clisp.org>
44268
44269         * modules/rawmemchr (Maintainer): Set to Eric.
44270         * modules/strchrnul (Maintainer): Likewise.
44271
44272 2008-04-29  Simon Josefsson  <simon@josefsson.org>
44273
44274         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
44275         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
44276
44277         * modules/arpa_inet (arpa/inet.h): Use them.
44278
44279 2008-04-28  Eric Blake  <ebb9@byu.net>
44280
44281         Test getndelim2.
44282         * modules/getndelim2-tests: New file.
44283         * tests/test-getndelim2.c: Likewise.
44284         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
44285         stream.
44286         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
44287
44288         * MODULES.html.sh: Document new module.
44289
44290 2008-04-20  Bruno Haible  <bruno@clisp.org>
44291
44292         * lib/c-stack.c (die): Use raise.
44293         * modules/c-stack (Depends-on): Add raise.
44294
44295 2008-04-28  Bruno Haible  <bruno@clisp.org>
44296
44297         Expect rpmatch to be declared.
44298         * lib/yesno.c (rpmatch): Remove declaration.
44299
44300         Declare rpmatch.
44301         * lib/stdlib.in.h (rpmatch): New declaration.
44302         * lib/rpmatch.c: Include <stdlib.h> first.
44303         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44304         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44306         HAVE_RPMATCH.
44307         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44308         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44309         (Include): Set to <stdlib.h>.
44310         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44311         HAVE_RPMATCH.
44312         * NEWS: Document the change.
44313
44314 2008-04-28  Bruno Haible  <bruno@clisp.org>
44315
44316         Change rpmatch to use nl_langinfo when appropriate.
44317         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44318         (N_): New macro.
44319         (localized_pattern): New function/macro.
44320         (try): Remove match, nomatch arguments. Copy the pattern into safe
44321         memory before caching it.
44322         (rpmatch): Use localized_pattern. Add translator comments.
44323         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44324         Suggested by Eric Blake.
44325         * modules/rpmatch (Depends-on): Add stdbool.
44326
44327 2008-04-28  Eric Blake  <ebb9@byu.net>
44328
44329         Add rawmemchr module, matching glibc.
44330         * modules/string (Makefile.am): New indicator.
44331         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44332         * lib/string.in.h (rawmemchr): Declare when appropriate.
44333         * modules/rawmemchr: New file.
44334         * m4/rawmemchr.m4: Likewise.
44335         * lib/rawmemchr.c: Likewise.
44336         * modules/rawmemchr-tests: Likewise.
44337         * tests/test-rawmemchr.c: Likewise.
44338         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44339         module.
44340         * modules/strchrnul (Depends-on): Add rawmemchr.
44341         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44342
44343         Whitespace cleanup.
44344         * tests/test-strchrnul.c: Reindent.
44345         * lib/strchrnul.c: Likewise.
44346
44347         Optimize and test strchrnul.
44348         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44349         * modules/strchrnul-tests: New file.
44350         * tests/test-strchrnul.c: Likewise.
44351
44352         Remove intprops dependency.
44353         * modules/memchr (Depends-on): Remove intprops.
44354         * modules/memrchr (Depends-on): Likewise.
44355         * modules/memchr2 (Depends-on): Likewise.
44356         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44357         * lib/memrchr.c (__memrchr): Likewise.
44358         * lib/memrchr2.c (memchr2): Likewise.
44359         Reported by Simon Josefsson.
44360
44361 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44362
44363         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44364         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44365
44366 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44367
44368         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44369
44370         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44371
44372         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44373
44374         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44375         declarations.
44376         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44377
44378         * m4/inet_pton.m4: Don't check for header files.
44379
44380         * m4/inet_ntop.m4: Don't check for header files.
44381
44382 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44383
44384         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44385         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44386         trigger for cygwin).
44387         Reported by Bruno Haible  <bruno@clisp.org>.
44388
44389 2008-04-28  Bruno Haible  <bruno@clisp.org>
44390
44391         * doc/posix-functions/strdup.texi: Mention mingw problem.
44392
44393 2008-04-27  Bruno Haible  <bruno@clisp.org>
44394
44395         * modules/stat-time-tests (Depends-on): Add sleep.
44396         * tests/test-stat-time.c (force_unlink): New function.
44397         (cleanup): Use it.
44398         (test_mtime): Remove the ctime related tests.
44399         (test_ctime): New function, containing the ctime related tests.
44400         (main): Call test_ctime, except on native Windows platforms.
44401
44402 2008-04-27  Bruno Haible  <bruno@clisp.org>
44403
44404         * lib/rpmatch.c (rpmatch): Add some comments.
44405         Reported by James Youngman <jay@gnu.org>.
44406
44407 2008-04-27  Bruno Haible  <bruno@clisp.org>
44408
44409         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44410         quiet NaNs.
44411
44412 2008-04-27  Bruno Haible  <bruno@clisp.org>
44413
44414         Make test-yesno.sh work on mingw.
44415         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44416         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44417         (main): Set stdin to binary mode.
44418         * modules/yesno-tests (Depends-on): Add binary-io.
44419
44420 2008-04-27  Bruno Haible  <bruno@clisp.org>
44421
44422         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44423         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44424         argument that lie outside the IEEE 854 domain.
44425         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44426         (gl_ISFINITE): Use it.
44427         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44428
44429 2008-04-27  Bruno Haible  <bruno@clisp.org>
44430
44431         Allow local renaming in config.h.
44432         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44433
44434 2008-04-27  Bruno Haible  <bruno@clisp.org>
44435
44436         * lib/memchr.c (__memchr): Change type of 'i'.
44437         * lib/memchr2.c (memchr2): Likewise.
44438
44439 2008-04-26  Eric Blake  <ebb9@byu.net>
44440         and Bruno Haible  <bruno@clisp.org>
44441
44442         Optimize and test memrchr.
44443         * modules/memrchr (Depends-on): Add intprops.
44444         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44445         * modules/memrchr-tests: New file.
44446         * tests/test-memrchr.c: New file.
44447
44448 2008-04-26  Bruno Haible  <bruno@clisp.org>
44449
44450         Add tentative support for DragonFly BSD.
44451         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44452         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44453         fp.
44454         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44455         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44456         * lib/fpurge.c (fpurge): Likewise.
44457         * lib/freadable.c (freaadable): Likewise.
44458         * lib/freadahead.c (freadahead): Likewise.
44459         * lib/freading.c (freading): Likewise.
44460         * lib/freadptr.c (freadptr): Likewise.
44461         * lib/freadseek.c (freadptrinc): Likewise.
44462         * lib/fseeko.c (fseeko): Likewise.
44463         * lib/fseterr.c (fseterr): Likewise.
44464         * lib/fwritable.c (fwritable): Likewise.
44465         * lib/fwriting.c (fwriting): Likewise.
44466
44467 2008-04-26  Bruno Haible  <bruno@clisp.org>
44468
44469         * lib/stdio-impl.h: New file.
44470         * lib/fbufmode.c: Include stdio-impl.h.
44471         (fbufmode): Use fp_, remove redundant #defines.
44472         * lib/fflush.c: Include stdio-impl.h.
44473         (clear_ungetc_buffer): Remove redundant #defines.
44474         * lib/fpurge.c: Include stdio-impl.h.
44475         (fpurge): Remove redundant #defines.
44476         * lib/freadable.c: Include stdio-impl.h.
44477         (freadable): Remove redundant #defines.
44478         * lib/freadahead.c: Include stdio-impl.h.
44479         (freadahead): Remove redundant #defines.
44480         * lib/freading.c: Include stdio-impl.h.
44481         (freading): Remove redundant #defines.
44482         * lib/freadptr.c: Include stdio-impl.h.
44483         (freadptr): Remove redundant #defines.
44484         * lib/freadseek.c: Include stdio-impl.h.
44485         (freadptrinc): Remove redundant #defines.
44486         * lib/fseeko.c: Include stdio-impl.h.
44487         (rpl_fseeko): Remove redundant #defines.
44488         * lib/fseterr.c: Include stdio-impl.h.
44489         (fseterr): Remove redundant #defines.
44490         * lib/fwritable.c: Include stdio-impl.h.
44491         (fwritable: Remove redundant #defines.
44492         * lib/fwriting.c: Include stdio-impl.h.
44493         (fwriting): Remove redundant #defines.
44494         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44495         * modules/fflush (Files): Likewise.
44496         * modules/fpurge (Files): Likewise.
44497         * modules/freadable (Files): Likewise.
44498         * modules/freadahead (Files): Likewise.
44499         * modules/freading (Files): Likewise.
44500         * modules/freadptr (Files): Likewise.
44501         * modules/freadseek (Files): Likewise.
44502         * modules/fseeko (Files): Likewise.
44503         * modules/fseterr (Files): Likewise.
44504         * modules/fwritable (Files): Likewise.
44505         * modules/fwriting (Files): Likewise.
44506
44507 2008-04-26  Bruno Haible  <bruno@clisp.org>
44508
44509         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44510         restore_seek_optimization, update_fpos_cache): New functions, extracted
44511         from rpl_fflush.
44512         (rpl_fflush): Use them.
44513         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44514         (gl_REPLACE_FFLUSH): Use it.
44515
44516 2008-04-26  Bruno Haible  <bruno@clisp.org>
44517
44518         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44519         on Solaris.
44520         * tests/test-xstrtoimax.sh: Likewise.
44521         * tests/test-xstrtoumax.sh: Likewise.
44522         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44523
44524 2008-04-26  Bruno Haible  <bruno@clisp.org>
44525
44526         * modules/memchr-tests: New file.
44527         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44528
44529 2008-04-26  Eric Blake  <ebb9@byu.net>
44530             Bruno Haible  <bruno@clisp.org>
44531
44532         * lib/memchr.c: Include intprops.h.
44533         (__memchr): Optimize parallel detection of matching bytes. Rename local
44534         variables. Add explanatory comments.
44535
44536 2008-04-26  Bruno Haible  <bruno@clisp.org>
44537
44538         Fix module 'memchr', broken since 2000-10-28.
44539         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44540
44541 2008-04-26  Bruno Haible  <bruno@clisp.org>
44542
44543         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44544         comments.
44545
44546 2008-04-25  Eric Blake  <ebb9@byu.net>
44547
44548         Use native fstatat on cygwin 1.7.0.
44549         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44550         first.
44551
44552 2008-04-23  Eric Blake  <ebb9@byu.net>
44553
44554         Improve memchr2 performance.
44555         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44556         NUL bytes.
44557         * modules/memchr2 (Depends-on): Use intprops.h.
44558
44559 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44560
44561         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44562         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44563         <blp@cs.stanford.edu>.
44564
44565 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44566
44567         * lib/arpa_inet.in.h: New file.
44568
44569         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44570         (Makefile.am): Sed in substitute header file.
44571
44572         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44573         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44574
44575         * modules/inet_ntop (configure.ac): Use
44576         gl_ARPA_INET_MODULE_INDICATOR.
44577
44578         * modules/inet_pton (configure.ac): Use
44579         gl_ARPA_INET_MODULE_INDICATOR.
44580
44581 2008-04-22  Jim Meyering  <meyering@redhat.com>
44582
44583         * modules/verify (License): Re-license as LGPLv2+.
44584
44585 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44586
44587         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44588         parameter to void* as per POSIX standard (MinGW uses char*).
44589
44590 2008-04-21  Bruno Haible  <bruno@clisp.org>
44591
44592         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44593         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44594         Define to replacements if REPLACE_ISWCNTRL is 1.
44595         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44596         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44597         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44598         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44599         what it fixes.
44600         * doc/posix-functions/iswalpha.texi: Likewise.
44601         * doc/posix-functions/iswblank.texi: Likewise.
44602         * doc/posix-functions/iswcntrl.texi: Likewise.
44603         * doc/posix-functions/iswdigit.texi: Likewise.
44604         * doc/posix-functions/iswgraph.texi: Likewise.
44605         * doc/posix-functions/iswlower.texi: Likewise.
44606         * doc/posix-functions/iswprint.texi: Likewise.
44607         * doc/posix-functions/iswpunct.texi: Likewise.
44608         * doc/posix-functions/iswspace.texi: Likewise.
44609         * doc/posix-functions/iswupper.texi: Likewise.
44610         * doc/posix-functions/iswxdigit.texi: Likewise.
44611         Reported by Alain Guibert.
44612
44613 2008-04-21  Bruno Haible  <bruno@clisp.org>
44614
44615         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44616         Patch by Alain Guibert.
44617
44618 2008-04-21  Bruno Haible  <bruno@clisp.org>
44619
44620         Fix test failures on mingw.
44621         * tests/test-xstrtol.c (print_no_progname): New function.
44622         (main): Install it in error_print_progname hook.
44623         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44624         * tests/test-xstrtoimax.sh: Likewise.
44625         * tests/test-xstrtoumax.sh: Likewise.
44626
44627 2008-04-21  Bruno Haible  <bruno@clisp.org>
44628
44629         Fix test failure on mingw.
44630         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44631
44632 2008-04-21  Bruno Haible  <bruno@clisp.org>
44633
44634         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44635         Actually assign a value.
44636
44637 2008-04-20  Bruno Haible  <bruno@clisp.org>
44638
44639         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44640         take 2.
44641         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44642         'canonicalize-lgpl' module is also used.
44643         * lib/canonicalize-lgpl.c: Undo last change.
44644         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44645
44646 2008-04-20  Bruno Haible  <bruno@clisp.org>
44647
44648         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44649         config.h. Provide _mkdir based fallback for mingw.
44650         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44651         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44652         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44653         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44654         rather than defining mkdir in config.h.
44655         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44656         (gl_SYS_STAT_H_DEFAULTS): New macro.
44657         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44658         HAVE_IO_H any more.
44659         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44660         HAVE_DECL_MKDIR and HAVE_IO_H.
44661
44662 2008-04-20  Bruno Haible  <bruno@clisp.org>
44663
44664         * lib/isapipe.c: Port to native Windows platforms.
44665
44666 2008-04-20  Bruno Haible  <bruno@clisp.org>
44667
44668         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44669
44670 2008-04-21  Eric Blake  <ebb9@byu.net>
44671
44672         Work around preprocessors that don't handle UINTMAX_MAX.
44673         * lib/memchr2.c (memchr2): Avoid embedded #if.
44674         Reported by Alain Guibert, fix suggested by Bruno Haible.
44675
44676 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44677
44678         * doc/posix-functions/strftime.texi (strftime): Explain better
44679         Windows incompatibility.  Suggested by Micah Cowan
44680         <micah@cowan.name>.
44681
44682 2008-04-20  Bruno Haible  <bruno@clisp.org>
44683
44684         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44685         unistr/u8-mblen.
44686
44687 2008-04-20  Bruno Haible  <bruno@clisp.org>
44688
44689         Fix test failure on platforms with non-GNU iconv.
44690         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44691         (U_TO_U8): Use it, rather than u16_to_u8.
44692         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44693         units at the end of the input string.
44694         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44695
44696 2008-04-20  Bruno Haible  <bruno@clisp.org>
44697
44698         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44699         when the resulting length is 0.
44700         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44701
44702 2008-04-20  Bruno Haible  <bruno@clisp.org>
44703
44704         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44705         works.
44706         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44707
44708 2008-04-20  Bruno Haible  <bruno@clisp.org>
44709
44710         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44711         * modules/tsearch-tests (configure.ac): Test for initstate function.
44712
44713 2008-04-20  Bruno Haible  <bruno@clisp.org>
44714
44715         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44716         for nlink_t if missing.
44717         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44718
44719 2008-04-19  Bruno Haible  <bruno@clisp.org>
44720
44721         Work around snprintf bug on Linux libc5.
44722         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44723         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44724         gl_SNPRINTF_SIZE1.
44725         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44726         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44727         that test failed.
44728         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44729         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44730         * modules/snprintf (Files): Add m4/printf.m4.
44731         * modules/vsnprintf (Files): Likewise.
44732         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44733         * doc/posix-functions/vsnprintf.texi: Likewise.
44734
44735 2008-04-19  Bruno Haible  <bruno@clisp.org>
44736
44737         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44738         from 0.0058 to less than 10^-7.
44739
44740 2008-04-19  Bruno Haible  <bruno@clisp.org>
44741
44742         Fix rounding when a precision is given.
44743         * lib/vasnprintf.c (is_borderline): New function.
44744         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44745         9...9x.
44746         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44747         %e, %g.
44748         * tests/test-vasprintf-posix.c (test_function): Likewise.
44749         * tests/test-snprintf-posix.h (test_function): Likewise.
44750         * tests/test-sprintf-posix.h (test_function): Likewise.
44751         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44752         * tests/test-printf-posix.h (test_function): Likewise.
44753         * tests/test-printf-posix.output: Update.
44754         Reported by John Darrington <john@darrington.wattle.id.au> via
44755         Ben Pfaff <blp@cs.stanford.edu>.
44756
44757 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44758
44759         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44760         Suggested by Bruno Haible <bruno@clisp.org>.
44761
44762 2008-04-17  Bruno Haible  <bruno@clisp.org>
44763
44764         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44765         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44766         implementation.
44767         Patch by Bruce Merry <bmerry@gmail.com>.
44768
44769 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44770
44771         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44772         doesn't work under Windows.
44773
44774 2008-04-16  Bruno Haible  <bruno@clisp.org>
44775
44776         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44777         New macros.
44778         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44779         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44780         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44781         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44782         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44783         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44784         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44785         macros.
44786         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44787         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44788         Northern Sotho, Uighur.
44789
44790 2008-04-16  Bruno Haible  <bruno@clisp.org>
44791
44792         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44793         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44794         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44795         Reported by Daniel Bergström <daniel@octocode.com>.
44796
44797 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44798             Bruno Haible  <bruno@clisp.org>
44799
44800         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44801         function.
44802         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44803         New functions, mostly extracted from gl_locale_name_default.
44804         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44805
44806 2008-04-16  Eric Blake  <ebb9@byu.net>
44807
44808         Adjust strtod detection to catch glibc 2.7 bug.
44809         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44810         Reported by John Gatewood Ham.
44811
44812 2008-04-16  Bruno Haible  <bruno@clisp.org>
44813
44814         Add tentative support for Linux libc5.
44815         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44816         * lib/fpurge.c (fpurge): Likewise.
44817         * lib/freadable.c (freadable): Likewise.
44818         * lib/freadahead.c (freadahead): Likewise.
44819         * lib/freading.c (freading): Likewise.
44820         * lib/freadptr.c (freadptr): Likewise.
44821         * lib/freadseek.c (freadptrinc): Likewise.
44822         * lib/fseeko.c (rpl_fseeko): Likewise.
44823         * lib/fseterr.c (fseterr): Likewise.
44824         * lib/fwritable.c (fwritable): Likewise.
44825         * lib/fwriting.c (fwriting): Likewise.
44826         Reported by Alain Guibert <alguibert+bts@free.fr>.
44827
44828 2008-04-15  Bruno Haible  <bruno@clisp.org>
44829
44830         * modules/mathl (configure.ac): Define module indicator.
44831
44832 2008-04-15  Bruno Haible  <bruno@clisp.org>
44833
44834         * lib/logl.c (logl): Remove unused variables.
44835
44836 2008-04-15  Bruno Haible  <bruno@clisp.org>
44837
44838         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44839         fails.
44840
44841 2008-04-15  Bruno Haible  <bruno@clisp.org>
44842
44843         * lib/trim.c (trim2): Fix argument of isspace() macro.
44844
44845 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44846
44847         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44848         to 0.
44849         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44850
44851 2008-04-14  Bruno Haible  <bruno@clisp.org>
44852
44853         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44854         AC_LANG_PROGRAM argument.
44855         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44856         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44857         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44858         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44859         * m4/math_h.m4 (gl_MATH_H): Likewise.
44860         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44861         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44862         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44863         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44864         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44865         * m4/regex.m4 (gl_REGEX): Likewise.
44866         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44867         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44868         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44869         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
44870         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44871         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44872         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44873         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44874
44875 2008-04-14  Jim Meyering  <meyering@redhat.com>
44876
44877         test-strtod: fix typos: s/abs/fabs/
44878         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
44879
44880 2008-04-13  Bruno Haible  <bruno@clisp.org>
44881
44882         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
44883         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
44884         module is also used and while not building the reloc-wrapper.
44885
44886 2008-04-13  Bruno Haible  <bruno@clisp.org>
44887
44888         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
44889
44890 2008-04-13  Bruno Haible  <bruno@clisp.org>
44891
44892         Fix AIX compilation failure introduced on 2008-04-02.
44893         * tests/test-frexp.c (exp): Undefine before redefining.
44894         * tests/test-frexpl.c (exp): Likewise.
44895
44896 2008-04-13  Bruno Haible  <bruno@clisp.org>
44897
44898         Work around a HP-UX stdio bug.
44899         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
44900         * tests/test-ftello.c (main): Likewise.
44901         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
44902         * doc/posix-functions/ftello.texi: Likewise.
44903
44904 2008-04-13  Bruno Haible  <bruno@clisp.org>
44905
44906         Make test-signbit pass on HP-UX/hppa.
44907         * tests/test-signbit.c (minus_zerol): New variable.
44908         (test_signbitl): Use it.
44909
44910 2008-04-13  Bruno Haible  <bruno@clisp.org>
44911
44912         Make truncl work on OSF/1 4.0.
44913         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
44914         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44915         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
44917         HAVE_DECL_TRUNCL.
44918         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
44919         HAVE_DECL_TRUNCL.
44920         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
44921
44922 2008-04-13  Bruno Haible  <bruno@clisp.org>
44923
44924         * lib/unictype.h: Remove trailing comma from enumeration definitions.
44925
44926 2008-04-13  Bruno Haible  <bruno@clisp.org>
44927
44928         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
44929         expression, so as to avoid HP-UX 11 cc compiler bug.
44930
44931 2008-04-13  Bruno Haible  <bruno@clisp.org>
44932
44933         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
44934
44935 2008-04-13  Bruno Haible  <bruno@clisp.org>
44936
44937         * lib/git-merge-changelog.c: Remove empty declaration outside of
44938         functions.
44939
44940 2008-04-13  Bruno Haible  <bruno@clisp.org>
44941
44942         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
44943
44944 2008-04-13  Bruno Haible  <bruno@clisp.org>
44945
44946         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
44947         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
44948         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
44949         also if it exists but lacks definitions of the SHUT_* macros.
44950         * modules/sys_socket (Description): Update.
44951         Reported by Elbert Pol <e.pol@chello.nl>.
44952
44953 2008-04-13  Bruno Haible  <bruno@clisp.org>
44954
44955         * lib/localcharset.c (OS2): Don't redefine if already defined.
44956         Reported by Elbert Pol <e.pol@chello.nl>.
44957
44958 2008-04-13  Bruno Haible  <bruno@clisp.org>
44959
44960         * lib/binary-io.h [__EMX__]: Include <io.h>.
44961         Reported by Elbert Pol <e.pol@chello.nl>.
44962
44963 2008-04-12  Bruno Haible  <bruno@clisp.org>
44964
44965         * lib/fpucw.h: Enable the definitions also for x86_64.
44966         Needed for NetBSD/x86_64.
44967         Reported by Thomas Klausner <tk@giga.or.at>.
44968
44969 2008-04-12  Bruno Haible  <bruno@clisp.org>
44970
44971         * tests/test-strtod.c: Include isnand.h.
44972         (main): Use isnand instead of isnan.
44973         Reported by Jim Meyering.
44974
44975 2008-04-12  Bruno Haible  <bruno@clisp.org>
44976
44977         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
44978         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44979
44980 2008-04-12  Jim Meyering  <meyering@redhat.com>
44981
44982         * m4/math_h.m4 (gl_MATH_H): Fix typos.
44983
44984 2008-04-12  Bruno Haible  <bruno@clisp.org>
44985
44986         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
44987         Reported by Elbert Pol <e.pol@chello.nl>.
44988
44989 2008-04-12  Eric Blake  <ebb9@byu.net>
44990
44991         Work around Solaris 10 math.h bug.
44992         * m4/math_h.m4 (gl_MATH_H): Check for bug.
44993         (gl_MATH_H_DEFAULTS): Set up default.
44994         * modules/math (Makefile.am): Replace new indicators.
44995         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
44996         * tests/test-math.c (main): Test this.
44997         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
44998         * doc/posix-headers/math.texi (math.h): Mention bug.
44999         Reported by Nelson H. F. Beebe and Jim Meyering.
45000
45001 2008-04-11  Bruno Haible  <bruno@clisp.org>
45002
45003         Adapt to future versions of Apple GCC.
45004         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
45005         Reported by Peter O'Gorman <peter@pogma.com>.
45006
45007 2008-04-11  Bruno Haible  <bruno@clisp.org>
45008
45009         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
45010
45011 2008-04-11  Bruno Haible  <bruno@clisp.org>
45012
45013         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
45014
45015         * modules/getaddrinfo-tests (Makefile.am): Define
45016         test_getaddrinfo_LDADD.
45017
45018 2008-04-11  Bruno Haible  <bruno@clisp.org>
45019
45020         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
45021         (init): Fix syntax error.
45022         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
45023         is declared.
45024
45025 2008-04-11  Bruno Haible  <bruno@clisp.org>
45026
45027         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
45028         * modules/glob (Depends-on): Add stdbool.
45029
45030 2008-04-11  Bruno Haible  <bruno@clisp.org>
45031
45032         * lib/trim.c: Include <string.h>.
45033
45034 2008-04-11  Eric Blake  <ebb9@byu.net>
45035
45036         Avoid compile failure on OS/2.
45037         * lib/regex_internal.h (internal_function): Disable optimization
45038         on OS/2 (__EMX__), where it caused compiler error.
45039         Reported by Elbert Pol.
45040
45041 2008-04-11  Bruno Haible  <bruno@clisp.org>
45042
45043         Flush the standard error stream before aborting. Needed on mingw.
45044         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
45045         * tests/test-array_list.c (ASSERT): Likewise.
45046         * tests/test-array_oset.c (ASSERT): Likewise.
45047         * tests/test-avltree_list.c (ASSERT): Likewise.
45048         * tests/test-avltree_oset.c (ASSERT): Likewise.
45049         * tests/test-avltreehash_list.c (ASSERT): Likewise.
45050         * tests/test-binary-io.c (ASSERT): Likewise.
45051         * tests/test-byteswap.c (ASSERT): Likewise.
45052         * tests/test-c-ctype.c (ASSERT): Likewise.
45053         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
45054         * tests/test-c-strcasestr.c (ASSERT): Likewise.
45055         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
45056         * tests/test-c-strstr.c (ASSERT): Likewise.
45057         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
45058         * tests/test-canonicalize.c (ASSERT): Likewise.
45059         * tests/test-carray_list.c (ASSERT): Likewise.
45060         * tests/test-ceilf1.c (ASSERT): Likewise.
45061         * tests/test-ceilf2.c (ASSERT): Likewise.
45062         * tests/test-ceill.c (ASSERT): Likewise.
45063         * tests/test-count-one-bits.c (ASSERT): Likewise.
45064         * tests/test-fbufmode.c (ASSERT): Likewise.
45065         * tests/test-fflush2.c (ASSERT): Likewise.
45066         * tests/test-floorf1.c (ASSERT): Likewise.
45067         * tests/test-floorf2.c (ASSERT): Likewise.
45068         * tests/test-floorl.c (ASSERT): Likewise.
45069         * tests/test-fopen.c (ASSERT): Likewise.
45070         * tests/test-fpending.c (ASSERT): Likewise.
45071         * tests/test-fprintf-posix.c (ASSERT): Likewise.
45072         * tests/test-fpurge.c (ASSERT): Likewise.
45073         * tests/test-freadable.c (ASSERT): Likewise.
45074         * tests/test-freadahead.c (ASSERT): Likewise.
45075         * tests/test-freading.c (ASSERT): Likewise.
45076         * tests/test-freadptr.c (ASSERT): Likewise.
45077         * tests/test-freadptr2.c (ASSERT): Likewise.
45078         * tests/test-freadseek.c (ASSERT): Likewise.
45079         * tests/test-freopen.c (ASSERT): Likewise.
45080         * tests/test-frexp.c (ASSERT): Likewise.
45081         * tests/test-frexpl.c (ASSERT): Likewise.
45082         * tests/test-fseek.c (ASSERT): Likewise.
45083         * tests/test-fseeko.c (ASSERT): Likewise.
45084         * tests/test-fstrcmp.c (ASSERT): Likewise.
45085         * tests/test-ftell.c (ASSERT): Likewise.
45086         * tests/test-ftello.c (ASSERT): Likewise.
45087         * tests/test-func.c (ASSERT): Likewise.
45088         * tests/test-fwritable.c (ASSERT): Likewise.
45089         * tests/test-fwriting.c (ASSERT): Likewise.
45090         * tests/test-getdelim.c (ASSERT): Likewise.
45091         * tests/test-getline.c (ASSERT): Likewise.
45092         * tests/test-i-ring.c (ASSERT): Likewise.
45093         * tests/test-iconv-utf.c (ASSERT): Likewise.
45094         * tests/test-iconv.c (ASSERT): Likewise.
45095         * tests/test-isfinite.c (ASSERT): Likewise.
45096         * tests/test-isnand.c (ASSERT): Likewise.
45097         * tests/test-isnanf.c (ASSERT): Likewise.
45098         * tests/test-isnanl.h (ASSERT): Likewise.
45099         * tests/test-ldexpl.c (ASSERT): Likewise.
45100         * tests/test-linked_list.c (ASSERT): Likewise.
45101         * tests/test-linkedhash_list.c (ASSERT): Likewise.
45102         * tests/test-localename.c (ASSERT): Likewise.
45103         * tests/test-lseek.c (ASSERT): Likewise.
45104         * tests/test-mbscasecmp.c (ASSERT): Likewise.
45105         * tests/test-mbscasestr1.c (ASSERT): Likewise.
45106         * tests/test-mbscasestr2.c (ASSERT): Likewise.
45107         * tests/test-mbscasestr3.c (ASSERT): Likewise.
45108         * tests/test-mbscasestr4.c (ASSERT): Likewise.
45109         * tests/test-mbschr.c (ASSERT): Likewise.
45110         * tests/test-mbscspn.c (ASSERT): Likewise.
45111         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
45112         * tests/test-mbspbrk.c (ASSERT): Likewise.
45113         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45114         * tests/test-mbsrchr.c (ASSERT): Likewise.
45115         * tests/test-mbsspn.c (ASSERT): Likewise.
45116         * tests/test-mbsstr1.c (ASSERT): Likewise.
45117         * tests/test-mbsstr2.c (ASSERT): Likewise.
45118         * tests/test-mbsstr3.c (ASSERT): Likewise.
45119         * tests/test-memchr2.c (ASSERT): Likewise.
45120         * tests/test-memmem.c (ASSERT): Likewise.
45121         * tests/test-open.c (ASSERT): Likewise.
45122         * tests/test-printf-frexp.c (ASSERT): Likewise.
45123         * tests/test-printf-frexpl.c (ASSERT): Likewise.
45124         * tests/test-printf-posix.c (ASSERT): Likewise.
45125         * tests/test-quotearg.c (ASSERT): Likewise.
45126         * tests/test-rbtree_list.c (ASSERT): Likewise.
45127         * tests/test-rbtree_oset.c (ASSERT): Likewise.
45128         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
45129         * tests/test-round1.c (ASSERT): Likewise.
45130         * tests/test-roundf1.c (ASSERT): Likewise.
45131         * tests/test-roundl.c (ASSERT): Likewise.
45132         * tests/test-signbit.c (ASSERT): Likewise.
45133         * tests/test-sleep.c (ASSERT): Likewise.
45134         * tests/test-snprintf-posix.c (ASSERT): Likewise.
45135         * tests/test-snprintf.c (ASSERT): Likewise.
45136         * tests/test-sprintf-posix.c (ASSERT): Likewise.
45137         * tests/test-stat-time.c (ASSERT): Likewise.
45138         * tests/test-strcasestr.c (ASSERT): Likewise.
45139         * tests/test-strerror.c (ASSERT): Likewise.
45140         * tests/test-striconv.c (ASSERT): Likewise.
45141         * tests/test-striconveh.c (ASSERT): Likewise.
45142         * tests/test-striconveha.c (ASSERT): Likewise.
45143         * tests/test-strsignal.c (ASSERT): Likewise.
45144         * tests/test-strstr.c (ASSERT): Likewise.
45145         * tests/test-strtod.c (ASSERT): Likewise.
45146         * tests/test-trunc1.c (ASSERT): Likewise.
45147         * tests/test-trunc2.c (ASSERT): Likewise.
45148         * tests/test-truncf1.c (ASSERT): Likewise.
45149         * tests/test-truncf2.c (ASSERT): Likewise.
45150         * tests/test-truncl.c (ASSERT): Likewise.
45151         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
45152         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
45153         * tests/test-vasnprintf.c (ASSERT): Likewise.
45154         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
45155         * tests/test-vasprintf.c (ASSERT): Likewise.
45156         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
45157         * tests/test-vprintf-posix.c (ASSERT): Likewise.
45158         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
45159         * tests/test-vsnprintf.c (ASSERT): Likewise.
45160         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
45161         * tests/test-wcwidth.c (ASSERT): Likewise.
45162         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
45163         * tests/test-xprintf-posix.c (ASSERT): Likewise.
45164         * tests/test-xvasprintf.c (ASSERT): Likewise.
45165         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
45166         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
45167         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
45168         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
45169         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
45170         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
45171         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
45172         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
45173         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
45174         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
45175         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
45176         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
45177         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
45178         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
45179         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
45180         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
45181         * tests/unictype/test-block_list.c (ASSERT): Likewise.
45182         * tests/unictype/test-block_of.c (ASSERT): Likewise.
45183         * tests/unictype/test-block_test.c (ASSERT): Likewise.
45184         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
45185         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
45186         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
45187         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
45188         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
45189         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
45190         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
45191         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
45192         * tests/unictype/test-combining.c (ASSERT): Likewise.
45193         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
45194         * tests/unictype/test-digit.c (ASSERT): Likewise.
45195         * tests/unictype/test-mirror.c (ASSERT): Likewise.
45196         * tests/unictype/test-numeric.c (ASSERT): Likewise.
45197         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
45198         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
45199         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
45200         * tests/unictype/test-scripts.c (ASSERT): Likewise.
45201         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
45202         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
45203         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
45204         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
45205         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
45206         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
45207         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
45208         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
45209         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
45210         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
45211         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
45212         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
45213         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
45214         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
45215         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
45216         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
45217         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
45218         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
45219         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
45220         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
45221         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
45222         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
45223         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
45224         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
45225         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
45226         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
45227         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
45228         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
45229         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
45230         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
45231         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
45232         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
45233         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
45234         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
45235         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
45236         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
45237         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
45238         Reported by Eric Blake.
45239
45240 2008-04-11  Bruno Haible  <bruno@clisp.org>
45241
45242         * lib/wchar.in.h: Tweak comment.
45243
45244 2008-04-11  Bruno Haible  <bruno@clisp.org>
45245
45246         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
45247         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
45248         gl_COMMON.
45249         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
45250
45251 2008-04-11  Bruno Haible  <bruno@clisp.org>
45252
45253         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
45254
45255 2008-04-11  Simon Josefsson  <simon@josefsson.org>
45256
45257         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
45258         of attempting to use non-existing /dev/*random.  Based on patch
45259         from Adam Strzelecki <ono@java.pl> in
45260         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
45261
45262 2008-04-08  Bruno Haible  <bruno@clisp.org>
45263
45264         Add tentative support for emx+gcc.
45265         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
45266         * lib/fpurge.c (fpurge): Likewise.
45267         * lib/freadable.c (freadable): Likewise.
45268         * lib/freadahead.c (freadahead): Likewise.
45269         * lib/freading.c (freading): Likewise.
45270         * lib/freadptr.c (freadptr): Likewise.
45271         * lib/freadseek.c (freadptrinc): Likewise.
45272         * lib/fseeko.c (rpl_fseeko): Likewise.
45273         * lib/fseterr.c (fseterr): Likewise.
45274         * lib/fwritable.c (fwritable): Likewise.
45275         * lib/fwriting.c (fwriting): Likewise.
45276         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
45277
45278 2008-04-09  Eric Blake  <ebb9@byu.net>
45279
45280         Avoid some autoconf warnings.
45281         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
45282         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
45283         * m4/afs.m4 (gl_AFS): Likewise.
45284         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
45285         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
45286         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45287         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
45288         (gl_INTEGER_TYPE_SUFFIX): Likewise.
45289         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
45290         (AC_CHECK_DECLS_ONCE): Likewise.
45291         Rename file...
45292         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
45293         gnulib-tool requires autoconf 2.59 or better.
45294         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
45295
45296 2008-04-08  Eric Blake  <ebb9@byu.net>
45297
45298         Use 'git describe --match' if present (added in git 1.5.5).
45299         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45300         if possible.
45301
45302 2008-04-08  Bruno Haible  <bruno@clisp.org>
45303
45304         Add tentative support for OpenServer.
45305         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45306         _ptr, _cnt.
45307         * lib/fpurge.c (fpurge): Likewise.
45308         * lib/freadable.c (freadable): Likewise.
45309         * lib/freadahead.c (freadahead): Likewise.
45310         * lib/freading.c (freading): Likewise.
45311         * lib/freadptr.c (freadptr): Likewise.
45312         * lib/freadseek.c (freadptrinc): Likewise.
45313         * lib/fseeko.c (rpl_fseeko): Likewise.
45314         * lib/fseterr.c (fseterr): Likewise.
45315         * lib/fwritable.c (fwritable): Likewise.
45316         * lib/fwriting.c (fwriting): Likewise.
45317         Reported by Roger Cornelius <rac@tenzing.org> and
45318         Brian K. White <brian@aljex.com>.
45319
45320 2008-04-06  Jim Meyering  <meyering@redhat.com>
45321
45322         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45323
45324 2008-04-06  Bruno Haible  <bruno@clisp.org>
45325
45326         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45327         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45328         * tests/test-printf-posix.sh: Likewise.
45329         * tests/test-vfprintf-posix.sh: Likewise.
45330         * tests/test-vprintf-posix.sh: Likewise.
45331         * tests/test-xprintf-posix.sh: Likewise.
45332
45333 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45334
45335         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45336         hide error from 'ls', needed on OS/2.
45337         Report by Elbert Pol <elbert.pol@gmail.com>.
45338
45339 2008-04-04  Eric Blake  <ebb9@byu.net>
45340
45341         Make test-fseeko.c failures meaningful.
45342         * tests/test-fseeko.c: Print line number on failure.
45343         * tests/test-fseek.c: Likewise.
45344         Reported by Nelson H. F. Beebe.
45345
45346         Improve strtod bug detection check.
45347         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45348         required for Solaris 10.
45349         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45350
45351 2008-04-04  Bruno Haible  <bruno@clisp.org>
45352
45353         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45354         by m4/setenv.m4.
45355
45356 2008-04-03  Eric Blake  <ebb9@byu.net>
45357
45358         Ensure sane .version contents.
45359         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45360         version string.
45361         * build-aux/git-version-gen: Improve documentation.
45362
45363         Make GNU make output nicer.
45364         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45365         MAKECMDGOALS to enforce message for all command line targets.  Set
45366         srcdir for use in maint.mk.
45367
45368         Another maintainer tweak.
45369         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45370         a target that regenerates version.
45371
45372 2008-04-03  Jim Meyering  <meyering@redhat.com>
45373
45374         vc-list-files: don't cause coreutils "make po-check" failure
45375         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45376
45377 2008-04-03  Eric Blake  <ebb9@byu.net>
45378
45379         Allow VPATH usage of vc-list-files.
45380         * build-aux/vc-list-files (scriptversion): Add timestamp.
45381         (options): Add --help, --version, -C.
45382         (CVS): Support installed cvsu.
45383
45384 2008-04-02  Bruno Haible  <bruno@clisp.org>
45385
45386         Avoid some "statement with no effect" warnings from gcc.
45387         * tests/test-wctype.c (main): Explicitly ignore unused values.
45388         Reported by Jim Meyering.
45389
45390 2008-04-02  Jim Meyering  <meyering@redhat.com>
45391
45392         Avoid some warnings from "gcc -Wshadow".
45393         * tests/test-frexp.c (exp): Define to a different identifier.
45394         * tests/test-frexpl.c (exp): Likewise.
45395
45396 2008-04-03  Jim Meyering  <meyering@redhat.com>
45397
45398         bootstrap: remove dangling *.[ch] symlinks from lib
45399         * build-aux/bootstrap [dangling symlink removal]: Move find's
45400         -depth option to precede all others, to avoid a warning.
45401         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45402
45403 2008-04-02  Bruno Haible  <bruno@clisp.org>
45404
45405         Avoid some warnings from "gcc -Wshadow".
45406         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45407         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45408         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45409         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45410         Reported by Jim Meyering.
45411
45412 2008-04-01  Bruno Haible  <bruno@clisp.org>
45413
45414         Fix test to work on IRIX 6.5 with cc.
45415         * tests/test-math.c (numeric_equal): New function.
45416         (main): Use it.
45417
45418 2008-04-01  Bruno Haible  <bruno@clisp.org>
45419
45420         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45421
45422 2008-04-01  Bruno Haible  <bruno@clisp.org>
45423
45424         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45425         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45426         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45427         (Depends-on): Remove math.
45428
45429         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45430         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45431         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45432         (Depends-on): Remove math.
45433
45434         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45435         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45436         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45437         (Depends-on): Remove math.
45438         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45439         (Depends-on): Remove math.
45440
45441         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45442         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45443         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45444         (Depends-on): Remove math.
45445         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45446         (Depends-on): Remove math.
45447
45448         * tests/test-round1.c: Include nan.h.
45449         (main): Use NaNd instead of NAN.
45450         * modules/round-tests (Files): Add tests/nan.h.
45451
45452         * tests/test-trunc1.c: Include nan.h.
45453         (main): Use NaNd instead of NAN.
45454         * modules/trunc-tests (Files): Add tests/nan.h.
45455
45456         * tests/test-roundf1.c: Include nan.h.
45457         (main): Use NaNf instead of NAN.
45458         * modules/roundf-tests (Files): Add tests/nan.h.
45459
45460         * tests/test-truncf1.c: Include nan.h.
45461         (main): Use NaNf instead of NAN.
45462         * modules/truncf-tests (Files): Add tests/nan.h.
45463
45464         * tests/test-ceilf1.c: Include nan.h.
45465         (main): Use NaNf instead of NAN.
45466         * modules/ceilf-tests (Files): Add tests/nan.h.
45467
45468         * tests/test-floorf1.c: Include nan.h.
45469         (main): Use NaNf instead of NAN.
45470         * modules/floorf-tests (Files): Add tests/nan.h.
45471
45472         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45473         (main): Use NaNf instead of NAN.
45474         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45475
45476         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45477         (main): Use NaNd instead of NAN.
45478         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45479
45480         * tests/test-frexp.c: Include nan.h.
45481         (main): Use NaNd instead of NAN.
45482         * modules/frexp-tests (Files): Add tests/nan.h.
45483
45484         * lib/isnan.c: Don't include <math.h>.
45485         (FUNC): Don't use NAN macro.
45486         * modules/isnand-nolibm (Depends-on): Remove math.
45487         * modules/isnanf-nolibm (Depends-on): Remove math.
45488         * modules/isnanl (Depends-on): Remove math.
45489         * modules/isnanl-nolibm (Depends-on): Remove math.
45490
45491         * tests/nan.h: New file.
45492
45493 2008-04-01  Eric Blake  <ebb9@byu.net>
45494
45495         Fix typos.
45496         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45497         values to be the right type.
45498
45499         For now, cater to gnulib strtod inaccuracies.
45500         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45501         fractional results.  While not as nice from a QoI perspective, it
45502         is a quicker patch than correctly implementing decimal to binary
45503         rounding.
45504
45505 2008-03-31  Eric Blake  <ebb9@byu.net>
45506
45507         Guarantee a definition of NAN.
45508         * lib/math.in.h (NAN): Define if missing.
45509         * tests/test-math.c (main): Test it.
45510         * doc/posix-headers/math.texi (math.h): Document this.
45511         * lib/isnan.c (rpl_isnand): Use it.
45512         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45513         * tests/test-floorf1.c (NaN): Likewise.
45514         * tests/test-frexp.c (NaN): Likewise.
45515         * tests/test-isnand.c (NaN): Likewise.
45516         * tests/test-isnanf.c (NaN): Likewise.
45517         * tests/test-round1.c (NaN): Likewise.
45518         * tests/test-roundf1.c (NaN): Likewise.
45519         * tests/test-snprintf-posix.h (NaN): Likewise.
45520         * tests/test-sprintf-posix.h (NaN): Likewise.
45521         * tests/test-trunc1.c (NaN): Likewise.
45522         * tests/test-truncf1.c (NaN): Likewise.
45523         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45524         * tests/test-vasprintf-posix.c (NaN): Likewise.
45525         * modules/isnand-nolibm (Depends-on): Add math.
45526         * modules/isnanf-nolibm (Depends-on): Likewise.
45527         * modules/isnanl (Depends-on): Likewise.
45528         * modules/isnanl-nolibm (Depends-on): Likewise.
45529         * modules/snprintf-posix-tests (Depends-on): Likewise.
45530         * modules/sprintf-posix-tests (Depends-on): Likewise.
45531         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45532         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45533         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45534         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45535
45536 2008-03-31  Bruno Haible  <bruno@clisp.org>
45537
45538         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45539         * doc/posix-functions/strtod.texi: Likewise.
45540
45541 2008-03-31  Bruno Haible  <bruno@clisp.org>
45542
45543         * tests/test-strtod.c (main): Don't use C99 syntax.
45544
45545 2008-03-31  Bruno Haible  <bruno@clisp.org>
45546
45547         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45548         Reported by Eric Blake.
45549
45550 2008-03-31  Jim Meyering  <meyering@redhat.com>
45551
45552         Don't compare actual signbit return values.
45553         * tests/test-strtod.c (main): Rather, compare only their
45554         zero/non-zero nature.
45555
45556 2008-03-31  Eric Blake  <ebb9@byu.net>
45557
45558         More strtod documentation.
45559         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45560         failures as distinct bugs.
45561
45562 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45563
45564         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45565         Problem reported by Erik Benada in
45566         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45567
45568 2008-03-30  Bruno Haible  <bruno@clisp.org>
45569
45570         * tests/test-strtod.c: Add comments about which assertion fails on which
45571         platform.
45572         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45573
45574 2008-03-30  Eric Blake  <ebb9@byu.net>
45575
45576         Test signbit behavior on zeros.
45577         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45578         (test_signbitd, test_signbitl): Likewise.
45579
45580         More strtod touchups.
45581         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45582         sign of negative underflow, for now.  Use .5, not .1.
45583         * doc/posix-functions/strtod.texi (strtod): Mention these
45584         limitations.
45585         Reported by Jim Meyering.
45586
45587 2008-03-30  Bruno Haible  <bruno@clisp.org>
45588
45589         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45590         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45591
45592 2008-03-30  Bruno Haible  <bruno@clisp.org>
45593
45594         Avoid failure when attempting to return empty iconv results on some
45595         platforms.
45596         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45597         allocation, don't report ENOMEM when the resulting string is empty.
45598
45599 2008-03-30  Bruno Haible  <bruno@clisp.org>
45600
45601         Fix buffer overrun.
45602         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45603         Don't consider the width for tmp_length. Check count against tmp_length
45604         before doing the padding. Ensure enough allocation during padding.
45605
45606 2008-03-30  Eric Blake  <ebb9@byu.net>
45607
45608         strtod touchups.
45609         * lib/strtod.c (strtod): Avoid compiler warnings.
45610         Reported by Jim Meyering.
45611
45612 2008-03-30  Bruno Haible  <bruno@clisp.org>
45613
45614         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45615         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45616         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45617         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45618         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45619         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45620         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45621         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45622
45623         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45624         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45625         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45626         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45627         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45628         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45629         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45630         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45631
45632         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45633         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45634         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45635         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45636         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45637         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45638         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45639         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45640
45641         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45642         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45643
45644         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45645         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45646
45647         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45648         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45649
45650         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45651         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45652         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45653
45654         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45655         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45656         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45657
45658         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45659         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45660         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45661
45662         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45663         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45664         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45665
45666         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45667         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45668         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45669         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45670         (Depends-on): Add EOVERFLOW.
45671         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45672         (Depends-on): Add EOVERFLOW.
45673         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45674         (Depends-on): Add EOVERFLOW.
45675         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45676         (Depends-on): Add EOVERFLOW.
45677         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45678         (Depends-on): Add EOVERFLOW.
45679         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45680         (Depends-on): Add EOVERFLOW.
45681         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45682         (Depends-on): Add EOVERFLOW.
45683         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45684         (Depends-on): Add EOVERFLOW.
45685
45686         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45687         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45688         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45689
45690         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45691         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45692         * modules/snprintf (Depends-on): Add EOVERFLOW.
45693
45694         * lib/poll.c (EOVERFLOW): Remove fallback.
45695         * modules/poll (Depends-on): Add EOVERFLOW.
45696
45697         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45698         * modules/getugroups (Depends-on): Add EOVERFLOW.
45699
45700         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45701         * modules/getdelim (Depends-on): Add EOVERFLOW.
45702
45703         * lib/ftell.c (EOVERFLOW): Remove fallback.
45704         * modules/ftell (Depends-on): Add EOVERFLOW.
45705
45706         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45707         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45708         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45709
45710         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45711
45712         * modules/EOVERFLOW-tests: New file.
45713         * tests/test-EOVERFLOW.c: New file.
45714
45715         * modules/EOVERFLOW: New file.
45716         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45717
45718 2008-03-30  Bruno Haible  <bruno@clisp.org>
45719
45720         Fix bug introduced on 2007-06-10.
45721         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45722         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45723
45724 2008-03-30  Bruno Haible  <bruno@clisp.org>
45725
45726         Improve freadseek's efficiency after ungetc.
45727         * lib/freadseek.c: Include freadahead.h.
45728         (freadptrinc): New function, extracted from freadseek.
45729         (freadseek): Use it in a loop. Use freadahead to determine the number
45730         of loop iterations.
45731         * modules/freadseek (Depends-on): Add freadahead.
45732         (configure.ac): Require AC_C_INLINE.
45733
45734 2008-03-30  Bruno Haible  <bruno@clisp.org>
45735
45736         * lib/freadseek.c (freadseek): Don't ignore the return value of
45737         freadptr.
45738
45739 2008-03-29  Eric Blake  <ebb9@byu.net>
45740
45741         Add hex float support.
45742         * modules/strtod (Depends-on): Add c-ctype.
45743         (Link): Mention POW_LIB.
45744         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45745         whitespace between 'e' and exponent.
45746         * tests/test-strtod.c (main): Enable hex float tests.
45747         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45748         now provides.
45749
45750         Document various strtod bugs, with some fixes.
45751         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45752         "-0x", "inf", "nan", and hex constants.
45753         * doc/posix-functions/atof.texi (atof): Likewise.
45754         * modules/stdlib (Makefile.am): Support strtod.
45755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45756         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45757         detect additional strtod bugs.
45758         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45759         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45760         bool where appropriate.  Parse 'inf' and 'nan'.
45761         * tests/test-strtod.c: New file.
45762         * modules/strtod (Depends-on): Add stdbool, stdlib.
45763         (configure.ac): Turn on module indicator.
45764         * modules/strtod-tests: New module.
45765
45766 2008-03-29  Eric Blake  <ebb9@byu.net>
45767
45768         Fix ftell on mingw.
45769         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45770         * modules/ftell-tests (Depends-on): Add binary-io.
45771         * modules/ftello-tests (Depends-on): Likewise.
45772         * tests/test-ftell.c (main): Enhance test to cover behavior after
45773         ungetc.  Enforce binary mode.
45774         * tests/test-ftello.c (main): Likewise.
45775
45776         Pass test-freadseek on cygwin.
45777         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45778         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45779         ungetc buffer.
45780
45781         * tests/test-fflush2.c (main): Fix typo.
45782
45783 2008-03-29  Bruno Haible  <bruno@clisp.org>
45784
45785         * tests/test-fflush2.c (main): Temporarily disable the contents of
45786         this test.
45787         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45788         Reported by Eric Blake.
45789
45790 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45791
45792         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45793         (GC_SHA224_DIGEST_SIZE): Add.
45794
45795         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45796         (gc_hash_digest_length): Likewise.
45797         (gc_hash_buffer): Likewise.
45798
45799 2008-03-25  Bruno Haible  <bruno@clisp.org>
45800
45801         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45802         detail which gettext release to use.
45803         Reported by Simon Josefsson.
45804
45805 2008-03-26  Jim Meyering  <meyering@redhat.com>
45806
45807         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45808         * modules/gnumakefile (clean-GNUmakefile): Also, use
45809         test ... && ... || : syntax rather than if-then ... fi.
45810
45811         gnumakefile: Don't double-quote-expand $(VPATH) value.
45812         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45813
45814 2008-03-24  Eric Blake  <ebb9@byu.net>
45815
45816         Alter GNUmakefile to install into top directory.
45817         * modules/maintainer-makefile: Split, and add dependency...
45818         * modules/gnumakefile: to this new module.
45819         * build-aux/GNUmakefile: Move...
45820         * top/GNUmakefile: ...here.
45821         * build-aux/maint.mk: Move...
45822         * top/maint.mk: ...here.
45823         * MODULES.html.sh (Support for maintaining...): Document new
45824         module.
45825
45826 2008-03-23  Bruno Haible  <bruno@clisp.org>
45827
45828         * gnulib-tool: New options --vc-files, --no-vc-files.
45829         (func_usage): Document them.
45830         (vc_files): New variable.
45831         (func_import): Consider vc_files.
45832         (func_create_testdir): Set vc_files to empty.
45833         Suggested by Jim Meyering and Karl Berry.
45834
45835 2008-03-23  Bruno Haible  <bruno@clisp.org>
45836
45837         Fix regex compilation error on HP-UX 11.
45838         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45839         * modules/regex (Files): Add m4/mbstate_t.m4.
45840         Reported by Ton Voon <ton.voon@altinity.com>.
45841
45842 2008-03-23  Bruno Haible  <bruno@clisp.org>
45843
45844         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45845
45846 2008-03-23  Eric Blake  <ebb9@byu.net>
45847             Bruno Haible  <bruno@clisp.org>
45848
45849         Install files from top/ in the destination directory.
45850         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45851         augmentation also for the files from top/.
45852         (func_import, func_create_testdir): Rewrite file names:
45853         top/filename -> filename.
45854
45855 2008-03-23  Bruno Haible  <bruno@clisp.org>
45856
45857         Tweak "gnulib --version" output.
45858         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45859
45860 2008-03-23  Bruno Haible  <bruno@clisp.org>
45861
45862         Tweak "gnulib --version" output.
45863         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45864         rather than contents of ChangeLog, when possible.
45865
45866 2008-03-21  Eric Blake  <ebb9@byu.net>
45867
45868         More --version tweaks.
45869         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
45870         date of last ChangeLog entry.
45871
45872 2008-03-21  Jim Meyering  <meyering@redhat.com>
45873
45874         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
45875
45876 2008-03-20  Eric Blake  <ebb9@byu.net>
45877
45878         VPATH fix.
45879         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
45880
45881 2008-03-20  Simon Josefsson  <simon@josefsson.org>
45882
45883         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
45884         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
45885
45886 2008-03-20  Eric Blake  <ebb9@byu.net>
45887
45888         Sync GNUmakefile with coreutils.
45889         * build-aux/GNUmakefile (have-Makefile): Rename...
45890         (_have-Makefile): ...to this, for namespace consideration.
45891         (GNUmakefile.cfg): Include, if present.
45892         (_autoreconf): Define a default.
45893         (_is-dist-target): New rule for rebuilds to pick up intra-release
45894         version.
45895         (maint-cfg.mk): Rename...
45896         (cfg.mk): ...to this.
45897
45898 2008-03-18  Jim Meyering  <meyering@redhat.com>
45899
45900         New script and module: mktempd
45901         * MODULES.html.sh (maint+release support): Add mktempd.
45902         * build-aux/mktempd: New file.
45903         * modules/mktempd: New file.
45904
45905 2008-03-15  Jim Meyering  <meyering@redhat.com>
45906
45907         Undo last change.
45908         * lib/sha1.c, lib/md5.c: 63 != ~63.
45909         Reported by Andreas Schwab.
45910
45911         sha1.c, md5.c: Hoist a redundant expression.
45912         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
45913         "ctx->buflen" only once, before calling *_process_block.
45914         * lib/md5.c (md5_process_bytes): Likewise.
45915
45916 2008-03-14  Eric Blake  <ebb9@byu.net>
45917
45918         Bump copyright year in files generated by gnulib-tool.
45919         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
45920         gnulib-tool, rather than hard-coding it.
45921
45922         Fix 'gnulib-tool --version' output to work with git.
45923         * gnulib-tool (func_gnulib_dir): New function, extracted from...
45924         (startup): ...here.
45925         (func_version): Use it to invoke git-version-gen, rather than
45926         relying on CVS keyword expansion.  Modernize wording.
45927         (cvsdatestamp, last_checkin_date, version): Kill unused
45928         variables.
45929
45930 2008-03-12  Jim Meyering  <meyering@redhat.com>
45931
45932         Recognize optional cast of the argument to free.
45933         * build-aux/useless-if-before-free: Update regexps.
45934
45935         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
45936
45937 2008-03-11  Bruno Haible  <bruno@clisp.org>
45938
45939         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
45940         by a single package.
45941         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
45942         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
45943         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
45944         Reported by Sam Steingold <sds@gnu.org>.
45945
45946 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45947
45948         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
45949         repositories.
45950
45951 2008-03-11  Bruno Haible  <bruno@clisp.org>
45952
45953         Avoid conflicts between local macro definitions.
45954         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45955         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
45956
45957 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
45958             Bruno Haible  <bruno@clisp.org>
45959
45960         Make va_copy work with some version of xlc on AIX 5.1.
45961         * lib/stdarg.in.h: New file.
45962         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
45963         On AIX, use a <stdarg.h> file substitute.
45964         * modules/stdarg (Files): Add lib/stdarg.in.h.
45965         (Depends-on): Add include_next.
45966         (Makefile.am): Build a stdarg.h substitute if requested.
45967         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
45968
45969 2008-03-10  Bruno Haible  <bruno@clisp.org>
45970
45971         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
45972         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45973         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45974
45975 2008-03-10  Bruno Haible  <bruno@clisp.org>
45976
45977         * modules/stdlib (Depends-on): Add include_next, remove
45978         absolute-header.
45979
45980 2008-03-09  Bruno Haible  <bruno@clisp.org>
45981
45982         * lib/freadahead.h (freadahead): Document more precisely.
45983         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
45984         the sum of both buffer sizes.
45985         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
45986         * NEWS: Document the change.
45987
45988 2008-03-09  Bruno Haible  <bruno@clisp.org>
45989
45990         Extend freadptr to return also the buffer size.
45991         * lib/freadptr.h (freadptr): Add sizep argument.
45992         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
45993         (freadptr): Add sizep argument. Determine buffer size like freadahead
45994         does.
45995         * tests/test-freadptr.c: Don't include freadahead.h.
45996         (main): Adapt for new calling convention of freadptr.
45997         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
45998         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
45999         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
46000         tests/test-freadptr2.sh.
46001         (Depends): Remove freadahead.
46002         (TESTS): Add test-freadptr2.sh.
46003         (check_PROGRAMS): Add test-freadptr2.
46004
46005 2008-03-09  Bruno Haible  <bruno@clisp.org>
46006
46007         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
46008         Report and solution by Simon Josefsson.
46009
46010 2008-03-06  Bruno Haible  <bruno@clisp.org>
46011
46012         Make fflush after ungetc work on BSD platforms.
46013         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
46014         * tests/test-fflush2.c: New file.
46015         * tests/test-fflush2.sh: New file.
46016         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
46017         tests/test-fflush2.c.
46018         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
46019         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
46020
46021 2008-03-06  Eric Blake  <ebb9@byu.net>
46022
46023         Likewise for ftello.
46024         * modules/ftello (Dependencies): Add extensions.
46025         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
46026
46027 2008-03-06  Bruno Haible  <bruno@clisp.org>
46028
46029         * modules/fseeko (Dependencies): Add extensions.
46030         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
46031         Needed on glibc systems.
46032
46033 2008-03-06  Bruno Haible  <bruno@clisp.org>
46034
46035         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
46036         email address.
46037         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46038
46039 2008-03-06  Bruno Haible  <bruno@clisp.org>
46040
46041         * users.txt: Add libgnupdf.
46042
46043 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46044
46045         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
46046         (Header File Substitutes, Function Substitutes,
46047         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
46048         (Build robot for gnulib): Fix typo.
46049
46050 2008-03-06  Bruno Haible  <bruno@clisp.org>
46051
46052         * doc/gnulib-tool.texi (VCS Issues): Small updates.
46053         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46054
46055 2008-03-06  Bruno Haible  <bruno@clisp.org>
46056
46057         * doc/func.texi: New file, extracted from doc/gnulib.texi.
46058         * doc/gnulib.texi: Include it.
46059
46060 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46061
46062         * modules/func (License): Change license to unlimited; there was
46063         no LGPL parts in the module anyway.
46064
46065 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46066
46067         * modules/__func__: Renamed to modules/func.
46068         * modules/__func__-tests: Renamed to modules/func-tests.
46069         * tests/test-__func__.c: Renamed to tests/test-func.c.
46070         * m4/__func__.m4: Renamed to m4/func.m4.
46071         * doc/gnulib.texi (__func__): Section renamed to func.
46072         Suggested by Eric Blake <ebb9@byu.net>.
46073
46074 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46075
46076         * doc/gnulib.texi (__func__): Use C99 terminology when talking
46077         about __func__.  Make example self-contained.  Suggested by Eric
46078         Blake <ebb9@byu.net>.
46079
46080         * tests/test-__func__.c (main): Avoid extraneous () around __func.
46081         Suggested by Eric Blake <ebb9@byu.net>.
46082
46083 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46084
46085         * modules/__func__: New file.
46086         * modules/__func__-tests: New file.
46087         * tests/test-__func__.c: New file.
46088         * m4/__func__.m4: New file.
46089         * doc/gnulib.texi (__func__): Document __func__ module.
46090
46091 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46092
46093         * modules/byteswap (License): Re-license as LGPLv2+.
46094
46095 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46096
46097         * doc/Makefile: Add pdf target.
46098
46099 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46100
46101         * modules/inline (License): Use 'unlimited', since there are only
46102         *.m4 files in this module.
46103
46104 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46105             Bruno Haible  <bruno@clisp.org>
46106
46107         Add support for HP C 7.1 on OpenVMS 8.3.
46108         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
46109
46110 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46111
46112         Update VMS specifics.
46113         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46114
46115 2008-03-02  Jim Meyering  <meyering@redhat.com>
46116
46117         Remove the last dependency on the "free" module.
46118         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
46119         Reported by Bob Proulx.
46120
46121         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
46122
46123         Remove useless "if" tests before free.  Deprecate "free" module.
46124         * doc/posix-functions/free.texi: Mention that this
46125         module is no longer useful.
46126         * modules/free (Notice): Say this module is obsolete.
46127         * modules/readutmp (Depends-on): Remove free.
46128         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
46129         * lib/putenv.c (putenv): Likewise.
46130         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
46131         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
46132         * tests/test-c-strcasestr.c (main): Likewise.
46133         * tests/test-c-strstr.c (main): Likewise.
46134         * tests/test-mbscasestr1.c (main): Likewise.
46135         * tests/test-mbscasestr2.c (main): Likewise.
46136         * tests/test-mbsstr1.c (main): Likewise.
46137         * tests/test-mbsstr2.c (main): Likewise.
46138         * tests/test-memmem.c (main): Likewise.
46139         * tests/test-strcasestr.c (main): Likewise.
46140         * tests/test-striconv.c (main): Likewise.
46141         * tests/test-striconveh.c (main): Likewise.
46142         * tests/test-striconveha.c (main): Likewise.
46143         * tests/test-strstr.c (main): Likewise.
46144
46145         * build-aux/git-version-gen: Adjust a comment and the Usage string.
46146
46147         bootstrap: sync from coreutils again
46148         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
46149
46150 2008-03-01  Jim Meyering  <meyering@redhat.com>
46151
46152         bootstrap: sync from coreutils
46153         * build-aux/bootstrap (update_po_files): Copy a .po file into place
46154         also when the target doesn't exist.
46155
46156 2008-03-01  Eric Blake  <ebb9@byu.net>
46157
46158         Fix bugs in last patch.
46159         * lib/memchr2.c (memchr2): Fix typo.
46160         * tests/test-memchr2.c: Test previous bug, and don't use GNU
46161         extension.
46162         Reported by Bruce Korb.
46163
46164         New module 'memchr2'.
46165         * modules/memchr2: New file.
46166         * modules/memchr2-tests: Likewise.
46167         * lib/memchr2.h: Likewise.
46168         * lib/memchr2.c: Likewise, based on memchr.c.
46169         * tests/test-memchr2.c: New test.
46170         * MODULES.html.sh (String handling): Add memchr2.
46171
46172 2008-02-29  Bruno Haible  <bruno@clisp.org>
46173
46174         * modules/freadseek-tests: New file.
46175         * tests/test-freadseek.sh: New file.
46176         * tests/test-freadseek.c: New file.
46177
46178         New module 'freadseek'.
46179         * modules/freadseek: New file.
46180         * lib/freadseek.h: New file.
46181         * lib/freadseek.c: New file.
46182         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
46183
46184 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46185
46186         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
46187         wydawca.
46188
46189         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
46190         program_invocation_name and program_invocation_short_name are
46191         present.
46192
46193 2008-02-28  Bruno Haible  <bruno@clisp.org>
46194
46195         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
46196         * tests/test-freadptr.sh: Also test non-seekable stdin.
46197
46198 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
46199
46200         * build-aux/bootstrap (source_base, m4_base)
46201         (doc_base, tests_base): New variables.
46202         (gnulib_tool_options): Do not hardcode base directories, use
46203         the above variables instead.
46204
46205 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
46206
46207         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
46208
46209 2008-02-28  Bruno Haible  <bruno@clisp.org>
46210
46211         * modules/freadptr-tests: New file.
46212         * tests/test-freadptr.sh: New file.
46213         * tests/test-freadptr.c: New file.
46214
46215         New module 'freadptr'.
46216         * modules/freadptr: New file.
46217         * lib/freadptr.h: New file.
46218         * lib/freadptr.c: New file.
46219         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
46220
46221 2008-02-26  Karl Berry  <karl@freefriends.org>
46222
46223         Sync from Libtool:
46224         * libltdl/argz.c (argz_add, argz_count): New functions.
46225         * libltdl/argz.in.h: Declare them.
46226         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
46227
46228 2008-02-22  Bruno Haible  <bruno@clisp.org>
46229
46230         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
46231         is a pointer type.  Needed for HP-UX 10.
46232         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
46233         * doc/posix-functions/gmtime_r.texi: Likewise.
46234         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46235
46236 2008-02-24  Bruno Haible  <bruno@clisp.org>
46237
46238         * modules/environ-tests: New file.
46239         * tests/test-environ.c: New file.
46240
46241         New module 'environ'.
46242         * modules/environ: New file.
46243         * lib/unistd.in.h (environ): New declaration.
46244         * m4/environ.m4: New file.
46245         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
46246         after use.
46247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
46248         HAVE_DECL_ENVIRON.
46249         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
46250         HAVE_DECL_ENVIRON.
46251         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
46252         wrong claim that 'environ' is missing on some systems.
46253         * modules/execute (Depends-on): Add environ.
46254         * lib/execute.c (environ): Remove fallback declaration.
46255         * modules/pipe (Depends-on): Add environ.
46256         * lib/pipe.c (environ): Remove fallback declaration.
46257         * modules/setenv (Depends-on): Add environ.
46258         * lib/setenv.c (environ): Remove fallback declaration.
46259         * modules/unsetenv (Depends-on): Add environ.
46260         * lib/unsetenv.c (environ): Remove fallback declaration.
46261         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
46262         m4/environ.m4.
46263         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
46264         (gl_PREREQ_UNSETENV): Likewise.
46265
46266 2008-02-24  Bruno Haible  <bruno@clisp.org>
46267
46268         * doc/posix-functions/environ.texi: Document the MacOS X problem.
46269
46270 2008-02-20  Bob Proulx  <bob@proulx.com>
46271
46272         Enable use of older two part flavor 'git describe'.
46273         * build-aux/git-version-gen: If using the older two part flavor of
46274         git version then recreate the third part now present in the
46275         newer three part flavor of git describe.
46276
46277 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
46278
46279         * lib/fts.c (fts_build): Typo correction to comment.
46280
46281 2008-02-17  Bruno Haible  <bruno@clisp.org>
46282
46283         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46284         generating no-op conflicts.
46285
46286 2008-02-17  Bruno Haible  <bruno@clisp.org>
46287
46288         Speed up by 10%.
46289         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
46290         result_entries, rather than an index-based loop.
46291
46292 2008-02-17  Bruno Haible  <bruno@clisp.org>
46293
46294         Speed up by 25%.
46295         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46296         'hashcode_cached'.
46297         (entry_create): New function.
46298         (entry_hashcode): Use the cached hashcode if possible.
46299         (read_changelog_file, try_split_merged_entry): Use entry_create.
46300
46301 2008-02-17  Bruno Haible  <bruno@clisp.org>
46302
46303         Speed up from O(n^2) to O(n) for long ChangeLog files.
46304         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46305         (read_changelog_file): Change implementation of entries_reversed list
46306         to rbtreehash.
46307         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46308
46309 2008-02-17  Bruno Haible  <bruno@clisp.org>
46310
46311         New option --split-merged-entry.
46312         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46313         (find_paragraph_end, try_split_merged_entry): New functions.
46314         (long_options): Add option --split-merged-entry.
46315         (usage): Document option --split-merged-entry.
46316         (main): Implement option --split-merged-entry.
46317         Reported by Eric Blake.
46318
46319 2008-02-17  Bruno Haible  <bruno@clisp.org>
46320
46321         * lib/git-merge-changelog.c: Include c-strstr.h.
46322         (main): Support the "git pull --rebase" situation.
46323         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46324         Reported by Eric Blake.
46325
46326 2008-02-16  Eric Blake  <ebb9@byu.net>
46327
46328         Avoid doubling \ in common case of "c-maybe" quoting style.
46329         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46330         eliding outer quotes.
46331         * lib/quotearg.h: Document this.
46332         * tests/test-quotearg.c (result_strings, inputs, results_g)
46333         (flag_results, locale_results): Test it by adding a new string to
46334         each test group.
46335         (compare_strings): Test new string.
46336
46337 2008-02-13  Eric Blake  <ebb9@byu.net>
46338
46339         Avoid trigraph quoting in default output.
46340         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46341         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46342         unless explicitly requested.
46343         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46344
46345 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46346
46347         Don't rely on signed integer overflowing to negative value.
46348         * lib/getugroups.c (getugroups): Include <limits.h>.
46349         Instead, compare against INT_MAX, and increment only if the test passes.
46350
46351 2008-02-13  Jim Meyering  <meyering@redhat.com>
46352         and Eric Blake  <ebb9@byu.net>
46353
46354         Avoid shadowing warning and compile errors on Linux.
46355         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46356         forwarding macros on Linux.
46357         (dcgettext): Define a stub, for Linux.
46358         (results_g, main): Avoid warnings.
46359
46360 2008-02-12  Eric Blake  <ebb9@byu.net>
46361
46362         Silence warning in last patch.
46363         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46364
46365         Quotearg part 4: add tests, fix c-maybe colon quoting.
46366         * lib/quotearg.h: Improve documentation.
46367         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46368         escapes when adding outer quotes.  When quoting trigraphs, use
46369         valid C notation.  When quoting NUL, omit extra characters if next
46370         character is not digit.  Alter prototype.
46371         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46372         callers.
46373         * modules/quotearg-tests: New module.
46374         * tests/test-quotearg.c: New test.
46375
46376 2008-02-07  Eric Blake  <ebb9@byu.net>
46377
46378         Quotearg part 3: add flag to control outer quote elision.
46379         * lib/quotearg.h (c_maybe_quoting_style): New style.
46380         (enum quoting_flags): Better documentation of flags.
46381         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46382         c-maybe style.
46383         (quotearg_buffer_restyled): Handle new flag to elide outer
46384         quotes.
46385
46386         Quotearg part 2: add flag that can control NUL elision.
46387         * lib/quotearg.h (set_quoting_flags): New prototype.
46388         * lib/quotearg.c (struct quoting_options): Add flag field.
46389         (set_quoting_flags): New function.
46390         (quotearg_buffer_restyled): Add flags parameter.
46391         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46392         (quotearg_n_options): Set the flag, since length cannot be
46393         returned.
46394         (quoting_options_from_style): Default flags correctly.
46395
46396         Quotearg part 1: more wrappers, restore quotearg_char state.
46397         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46398         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46399         (quotearg_colon_mem): New wrappers.
46400         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46401         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46402         functions.
46403         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46404         (quotearg_colon_mem): New functions.
46405
46406 2008-02-11  Bruno Haible  <bruno@clisp.org>
46407
46408         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46409         library in the current directory: it does not work with parallel make.
46410         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46411
46412 2008-02-11  Bruno Haible  <bruno@clisp.org>
46413
46414         * .gitattributes: New file.
46415
46416 2008-02-11  Jim Meyering  <meyering@redhat.com>
46417
46418         useless-if-before-free: Fix reversed exit values.
46419         * build-aux/useless-if-before-free: Use correct values
46420         for EXIT_MATCH and EXIT_NO_MATCH.
46421
46422         * build-aux/useless-if-before-free: Close stdout carefully.
46423
46424 2008-02-10  Bruno Haible  <bruno@clisp.org>
46425
46426         New module 'git-merge-changelog'.
46427         * modules/git-merge-changelog: New file.
46428         * lib/git-merge-changelog.c: New file.
46429
46430 2008-02-10  Jim Meyering  <meyering@redhat.com>
46431
46432         useless-if-before-free: New option: --list (-l).
46433
46434         useless-if-before-free: Don't exit immediately upon open failure.
46435         * build-aux/useless-if-before-free: Exit 2 for errors.
46436         Upon failure to open a file, don't exit immediately.
46437         Rather, just warn and continue with any remaining files.
46438
46439 2008-02-10  Bruno Haible  <bruno@clisp.org>
46440
46441         New abstract list operation 'node_set_value'.
46442         * lib/gl_list.h (gl_list_node_set_value): New function.
46443         (struct gl_list_implementation): New field node_set_value.
46444         * lib/gl_list.c (gl_list_node_set_value): New function.
46445         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46446         (gl_array_list_implementation): Update.
46447         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46448         (gl_carray_list_implementation): Update.
46449         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46450         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46451         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46452         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46453         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46454         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46455         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46456         Update.
46457         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46458         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46459         (gl_sublist_list_implementation): Update.
46460
46461 2008-02-10  Bruno Haible  <bruno@clisp.org>
46462
46463         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46464         Needed when ELEMENT is #defined to 'some_type *'.
46465
46466 2008-02-10  Jim Meyering  <meyering@redhat.com>
46467
46468         New script and module: useless-if-before-free
46469         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46470         * build-aux/useless-if-before-free: New file.
46471         * modules/useless-if-before-free: New file.
46472
46473         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46474
46475         xstrtol_error: Fix typo.
46476         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46477         s/exit_failure/exit_status/.
46478
46479 2008-02-09  Jim Meyering  <meyering@redhat.com>
46480
46481         New script and module: gitlog-to-changelog
46482         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46483         * modules/gitlog-to-changelog: New file.
46484         * build-aux/gitlog-to-changelog: New file.
46485
46486 2008-02-08  Jim Meyering  <meyering@redhat.com>
46487
46488         Avoid two "parameter unused" warnings.
46489         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46490         Mark "st" as used.
46491
46492         Use "git COMMAND", not "git-COMMAND".
46493         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46494         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46495         * build-aux/git-version-gen: Use "git status", not "git-status".
46496
46497 2008-02-07  Bruno Haible  <bruno@clisp.org>
46498
46499         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46500         Avoids a crash on Windows Vista.
46501         Reported by Adam Strzelecki <ono@java.pl> via
46502         Simon Josefsson <simon@josefsson.org>.
46503
46504 2008-02-06  Bruno Haible  <bruno@clisp.org>
46505
46506         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46507         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46508         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46509         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46510         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46511         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46512         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46513         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46514         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46515         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46516         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46517         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46518         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46519         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46520         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46521         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46522         left-adjust flag.
46523         * tests/test-snprintf-posix.h (test_function): Likewise.
46524         * tests/test-sprintf-posix.h (test_function): Likewise.
46525         * tests/test-vasprintf-posix.c (test_function): Likewise.
46526         * doc/posix-functions/fprintf.texi: Update.
46527         * doc/posix-functions/printf.texi: Update.
46528         * doc/posix-functions/snprintf.texi: Update.
46529         * doc/posix-functions/sprintf.texi: Update.
46530         * doc/posix-functions/vfprintf.texi: Update.
46531         * doc/posix-functions/vprintf.texi: Update.
46532         * doc/posix-functions/vsnprintf.texi: Update.
46533         * doc/posix-functions/vsprintf.texi: Update.
46534         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46535
46536 2008-02-06  Bruno Haible  <bruno@clisp.org>
46537
46538         Fix bug introduced on 2008-01-26.
46539         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46540
46541 2008-02-06  Bruno Haible  <bruno@clisp.org>
46542
46543         Fix bug introduced on 2007-06-10.
46544         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46545         !NEED_PRINTF_FLAG_ZERO.
46546
46547 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46548
46549         getloadavg: use libperfstat on AIX5
46550         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46551
46552 2008-02-03  Bruno Haible  <bruno@clisp.org>
46553
46554         * lib/diffseq.h: Add comments about required #includes.
46555         Reported by Michael Biggs <gnulib@doubleplum.net>.
46556
46557 2008-02-01  Bruno Haible  <bruno@clisp.org>
46558
46559         * users.txt: Add gnuit.
46560
46561 2008-01-31  Bruno Haible  <bruno@clisp.org>
46562
46563         * lib/md4.c (set_uint32): Mark as inline.
46564         * lib/md5.c (set_uint32): Likewise.
46565         * lib/sha1.c (set_uint32): Likewise.
46566         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46567         * m4/md5.m4 (gl_MD5): Likewise.
46568         * m4/sha1.m4 (gl_SHA1): Likewise.
46569
46570 2008-01-31  Jim Meyering  <meyering@redhat.com>
46571
46572         Use "sizeof VAR", rather than a literal "4".
46573         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46574         * lib/md4.c (md4_read_ctx): Likewise.
46575         * lib/sha1.c (sha1_read_ctx): Likewise.
46576
46577 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46578
46579         * tests/test-sha1.c: New file, based on test-md5.c.
46580
46581         * modules/crypto/sha1-tests: New file.
46582
46583 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46584
46585         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46586
46587 2008-01-31  Jim Meyering  <meyering@redhat.com>
46588
46589         Prefer "sizeof v" over the equivalent "4".
46590         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46591         * lib/md5.c (set_uint32): Likewise.
46592         * lib/sha1.c (set_uint32): Likewise.
46593
46594 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46595
46596         * lib/sha1.c (set_uint32): Mark function as static.
46597
46598 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46599
46600         md2: clarify comments to say that alignment is not required.
46601         * lib/md2.h: Remove warning about alignment in comment.
46602         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46603         never been required.
46604
46605 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46606
46607         md4: adapt alignment constraint fix from sha1.
46608         * lib/md4.c (set_uint32): New function, from sha1.c
46609         (md4_read_ctx): Use it.
46610         (md4_finish_ctx): Doc fix.
46611         * lib/md4.h: Doc fix.
46612
46613 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46614
46615         md5: adapt alignment constraint fix from sha1.
46616         * lib/md5.c (set_uint32): New function, from sha1.c
46617         (md5_read_ctx): Use it.
46618         (md5_finish_ctx): Doc fix.
46619         * lib/md5.h: Doc fix.
46620
46621 2008-01-30  Peter Palfrader  <weasel@debian.org>
46622
46623         sha1: remove the result buffer alignment constraint
46624         * lib/sha1.c (set_uint32): New function.
46625         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46626         constraint.
46627         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46628         * lib/sha1.h: Likewise.
46629
46630 2008-01-30  Andreas Schwab  <schwab@suse.de>
46631             Bruno Haible  <bruno@clisp.org>
46632
46633         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46634         correct definition of LDBL_MIN_EXP.
46635
46636 2008-01-30  Karl Berry  <karl@gnu.org>
46637
46638         * config/srclist-update: try to preserve x bit on updates.
46639         * config/srclistvars.sh: update for karl.
46640
46641 2008-01-29  Jim Meyering  <meyering@redhat.com>
46642
46643         vasnprintf.c: Avoid warning about unused label
46644         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46645         "overflow" label definition and associated code with the
46646         same cpp condition that guards the sole use of that label.
46647
46648 2008-01-26  Bruno Haible  <bruno@clisp.org>
46649
46650         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46651         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46652         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46653         * lib/isnanl-nolibm.h (isnanl): Likewise.
46654         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46655
46656 2008-01-26  Bruno Haible  <bruno@clisp.org>
46657
46658         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46659         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46660
46661 2008-01-26  Bruno Haible  <bruno@clisp.org>
46662
46663         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46664         GCC >= 4.0 built-in.
46665         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46666
46667 2008-01-26  Bruno Haible  <bruno@clisp.org>
46668
46669         Rename isnan, applicable to 'double' only, to isnand.
46670         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46671         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46672         (configure.ac): Update.
46673         (Include): Replace "isnan.h" with "isnand.h".
46674         * m4/isnand.m4: Renamed from m4/isnan.m4.
46675         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46676         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46677         instead of isnan.c.
46678         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46679         instead of HAVE_ISNAN_IN_LIBC.
46680         (isnand): Renamed from isnan.
46681         * lib/isnand.c: New file.
46682         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46683         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46684         (Makefile.am): Update.
46685         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46686         Include isnand.h instead of isnan.h.
46687         (main): Test isnand instead of isnan.
46688         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46689         isnan-nolibm.
46690         * modules/frexp (Depends-on): Likewise.
46691         * modules/frexp-tests (Depends-on): Likewise.
46692         * modules/frexp-nolibm (Depends-on): Likewise.
46693         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46694         * modules/isfinite (Depends-on): Likewise.
46695         * modules/round-tests (Depends-on): Likewise.
46696         * modules/signbit (Depends-on): Likewise.
46697         * modules/signbit-tests (Depends-on): Likewise.
46698         * modules/snprintf-posix (Depends-on): Likewise.
46699         * modules/sprintf-posix (Depends-on): Likewise.
46700         * modules/trunc-tests (Depends-on): Likewise.
46701         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46702         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46703         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46704         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46705         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46706         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46707         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46708         * modules/vasnprintf-posix (Depends-on): Likewise.
46709         * modules/vasprintf-posix (Depends-on): Likewise.
46710         * modules/vfprintf-posix (Depends-on): Likewise.
46711         * modules/vsnprintf-posix (Depends-on): Likewise.
46712         * modules/vsprintf-posix (Depends-on): Likewise.
46713         * lib/frexp.c: Include isnand.h instead of isnan.h.
46714         (ISNAN): Set to isnand instead of isnan.
46715         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46716         (gl_isfinited): Use isnand instead of isnan.
46717         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46718         (gl_signbitd): Use isnand instead of isnan.
46719         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46720         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46721         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46722         (main): Use isnand instead of isnan.
46723         * tests/test-round1.c: Include isnand.h.
46724         (main): Use isnand instead of isnan.
46725         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46726         (ISNAN): Set to isnand instead of isnan.
46727         * tests/test-trunc1.c: Include isnand.h.
46728         (main): Use isnand instead of isnan.
46729         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46730         (equal): Use isnand instead of isnan.
46731         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46732         isnand-nolibm.
46733         * NEWS: Mention the change.
46734
46735 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46736             Bruno Haible  <bruno@clisp.org>
46737
46738         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46739         the GCC builtins for signbits are present and set
46740         REPLACE_SIGNBIT_USING_GCC if so.
46741         * lib/math.in.h (signbit): Define using GCC builtins if
46742         REPLACE_SIGNBIT_USING_GCC is set.
46743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46744         REPLACE_SIGNBIT_USING_GCC.
46745         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46746
46747 2008-01-25  Jim Meyering  <meyering@redhat.com>
46748
46749         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46750         * lib/poll.c: Include <config.h>, not "config.h".
46751         * tests/test-getaddrinfo.c: Likewise.
46752
46753 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46754
46755         * modules/sockets-tests: New file.
46756
46757 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46758
46759         * modules/sockets: New module, can be used to call WSA_Startup and
46760         WSA_Cleanup when needed.
46761
46762         * lib/sockets.h, lib/sockets.c: New files.
46763
46764         * m4/sockets.m4: New file.
46765
46766         * tests/test-sockets.c: New file.
46767
46768 2008-01-19  Bruno Haible  <bruno@clisp.org>
46769
46770         * doc/posix-headers: Renamed from doc/headers.
46771         * doc/posix-functions: Renamed from doc/functions.
46772         * doc/gnulib.texi: Update.
46773
46774 2008-01-19  Bruno Haible  <bruno@clisp.org>
46775
46776         * doc/glibc-functions/strcasestr.texi: Include contents of
46777         doc/functions/strcasestr.texi, fixing the list of platforms.
46778         * doc/functions/strcasestr.texi: Remove file.
46779
46780 2008-01-19  Bruno Haible  <bruno@clisp.org>
46781
46782         * doc/glibc-functions/memmem.texi: Include contents of
46783         doc/functions/memmem.texi.
46784         * doc/functions/memmem.texi: Remove file.
46785
46786 2008-01-18  Bruno Haible  <bruno@clisp.org>
46787
46788         * doc/glibc-functions/*.texi: New files.
46789         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46790         to use the new files.
46791
46792 2008-01-17  Bruno Haible  <bruno@clisp.org>
46793
46794         * tests/test-gethostname.c (main): Fix printf statement.
46795
46796 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46797
46798         * modules/gethostname-tests: New file.
46799
46800         * tests/test-gethostname.c: New file.
46801
46802 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46803
46804         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46805         used by the UNAME case.  Reported by Bruno Haible
46806         <bruno@clisp.org>.
46807
46808 2008-01-17  Eric Blake  <ebb9@byu.net>
46809
46810         Convert c-strcasestr to be more efficient.
46811         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46812         (Depends-on): Add c-strcase, remove malloca, strnlen.
46813         * tests/test-c-strcasestr.c (main): Enhance test.
46814         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46815
46816 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46817
46818         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46819         Use it in creating po/Makevars.
46820
46821 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46822
46823         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46824         Applications that requires it should initialize libgcrypt
46825         manually.
46826
46827 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46828
46829         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46830
46831 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46832
46833         Fix problem with getdate on mingw32 reported by Simon Josefsson
46834         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46835         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46836         tzname", when deciding whether to declare tzname.
46837         * lib/strftime.c (tzname): Likewise.
46838
46839 2008-01-15  Bruno Haible  <bruno@clisp.org>
46840
46841         Work around a MacOS X 10.5 bug in frexpl().
46842         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46843         * doc/functions/frexpl.texi: Document the bug.
46844         Reported by Elias Pipping <pipping@gentoo.org>.
46845
46846 2008-01-14  Eric Blake  <ebb9@byu.net>
46847
46848         Touch up previous patch.
46849         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46850         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46851
46852         Convert strcasestr module to use Two-Way algorithm.
46853         * modules/strcasestr-simple: New module, based on the old
46854         strcasestr, but with Two-Way rather than KMP.
46855         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46856         * lib/string.in.h (rpl_strcasestr): Declare.
46857         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46858         performance.
46859         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46860         * modules/string (Makefile.am): Support strcasestr.
46861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46862         * modules/strcasestr-tests (Depends-on): Check for alarm.
46863         * tests/test-strcasestr.c: Augment test.
46864         * lib/str-two-way.h: Clean up stray macro.
46865         * NEWS: Document new module.
46866         * MODULES.html.sh (string handling): Likewise.
46867         * doc/functions/strcasestr.texi: New file.
46868         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
46869         here, since it is not a POSIX function.
46870
46871 2008-01-14  Colin Watson  <cjwatson@debian.org>
46872             Bruno Haible  <bruno@clisp.org>
46873
46874         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
46875         works fine; if not, set REPLACE_STRSIGNAL.
46876         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
46877         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46878         REPLACE_STRSIGNAL.
46879         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
46880         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
46881         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
46882
46883 2008-01-14  Bruno Haible  <bruno@clisp.org>
46884
46885         * modules/strsignal (Include): Change to <string.h>.
46886
46887 2008-01-14  Colin Watson  <cjwatson@debian.org>
46888
46889         * modules/argp (Notice): Add a notice recommending to change
46890         XGETTEXT_OPTIONS.
46891         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
46892
46893 2008-01-13  Colin Watson  <cjwatson@debian.org>
46894
46895         * modules/strsignal-tests: New file.
46896         * tests/test-strsignal.c: New file.
46897
46898         * lib/strsignal.c: New file, from glibc with modifications.
46899         * lib/siglist.h: New file, from glibc with modifications.
46900         * lib/string.in.h (strsignal): New declaration.
46901         * m4/strsignal.m4: New file.
46902         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46903         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
46904         * modules/strsignal: New file.
46905         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
46906         HAVE_DECL_STRSIGNAL.
46907
46908 2008-01-13  Bruno Haible  <bruno@clisp.org>
46909
46910         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
46911         locale encoding is not ASCII. Needed for OpenBSD 4.0.
46912         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46913         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46914
46915 2008-01-13  Bruno Haible  <bruno@clisp.org>
46916
46917         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
46918         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
46919         * lib/argp.h (__attribute__): Likewise.
46920         * lib/c-stack.c (__attribute__): Likewise.
46921         * lib/error.h (__attribute__): Likewise.
46922         * lib/fts.c (__attribute__): Likewise.
46923         * lib/openat.h (__attribute__): Likewise.
46924         * lib/stdio.in.h (__attribute__): Likewise.
46925         * lib/string.in.h (__attribute__): Likewise.
46926         * lib/utimens.c (__attribute__): Likewise.
46927         * lib/vasnprintf.h (__attribute__): Likewise.
46928         * lib/xalloc.h (__attribute__): Likewise.
46929         * lib/xprintf.h (__attribute__): Likewise.
46930         * lib/xstrtol.h (__attribute__): Likewise.
46931         * lib/xvasprintf.h (__attribute__): Likewise.
46932
46933 2008-01-12  Bruno Haible  <bruno@clisp.org>
46934
46935         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
46936         * doc/glibc-headers/a.out.texi: New file.
46937         * doc/glibc-headers/aliases.texi: New file.
46938         * doc/glibc-headers/alloca.texi: New file.
46939         * doc/glibc-headers/ar.texi: New file.
46940         * doc/glibc-headers/argp.texi: New file.
46941         * doc/glibc-headers/argz.texi: New file.
46942         * doc/glibc-headers/byteswap.texi: New file.
46943         * doc/glibc-headers/crypt.texi: New file.
46944         * doc/glibc-headers/endian.texi: New file.
46945         * doc/glibc-headers/envz.texi: New file.
46946         * doc/glibc-headers/err.texi: New file.
46947         * doc/glibc-headers/error.texi: New file.
46948         * doc/glibc-headers/execinfo.texi: New file.
46949         * doc/glibc-headers/fpu_control.texi: New file.
46950         * doc/glibc-headers/fstab.texi: New file.
46951         * doc/glibc-headers/fts.texi: New file.
46952         * doc/glibc-headers/getopt.texi: New file.
46953         * doc/glibc-headers/ieee754.texi: New file.
46954         * doc/glibc-headers/ifaddrs.texi: New file.
46955         * doc/glibc-headers/libintl.texi: New file.
46956         * doc/glibc-headers/mcheck.texi: New file.
46957         * doc/glibc-headers/mntent.texi: New file.
46958         * doc/glibc-headers/obstack.texi: New file.
46959         * doc/glibc-headers/paths.texi: New file.
46960         * doc/glibc-headers/printf.texi: New file.
46961         * doc/glibc-headers/pty.texi: New file.
46962         * doc/glibc-headers/resolv.texi: New file.
46963         * doc/glibc-headers/shadow.texi: New file.
46964         * doc/glibc-headers/sysexits.texi: New file.
46965         * doc/glibc-headers/ttyent.texi: New file.
46966
46967 2008-01-12  Jim Meyering  <meyering@redhat.com>
46968
46969         announce-gen: emit Gnulib's git-based version string.
46970         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
46971         New option --gnulib-version=V, where V is expected to be
46972         the output of running git describe in the gnulib directory.
46973         (get_tool_versions): Request feedback on xdelta.  I suspect it's
46974         not useful, and plan to stop publishing an xdelta file with each
46975         coreutils release.
46976
46977         * build-aux/announce-gen: Also check for lzma-compressed files.
46978
46979 2008-01-11  Bruno Haible  <bruno@clisp.org>
46980
46981         * tests/test-memmem.c (main): Increase maximum allowed time.
46982         * tests/test-strstr.c (main): Likewise.
46983
46984 2008-01-11  Bruno Haible  <bruno@clisp.org>
46985
46986         * doc/functions/memmem.texi: Add more precisions about platforms.
46987         * doc/functions/strstr.texi: Likewise.
46988
46989 2008-01-10  Eric Blake  <ebb9@byu.net>
46990
46991         * m4/strstr.m4: Delete cruft from copy-n-paste.
46992         Reported by Bruno Haible.
46993
46994 2008-01-10  Bruno Haible  <bruno@clisp.org>
46995
46996         Make c-strstr rely on strstr.
46997         * lib/c-strstr.c: Don't include str-kmp.h.
46998         (c_strstr): Define in terms of strstr.
46999         * modules/c-strstr (Files): Remove lib/str-kmp.h.
47000         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
47001
47002 2008-01-10  Bruno Haible  <bruno@clisp.org>
47003
47004         * doc/gnulib.texi (String Functions in C Locale): New section.
47005         * doc/c-ctype.texi: New file.
47006         * doc/c-strcase.texi: New file.
47007         * doc/c-strcaseeq.texi: New file.
47008         * doc/c-strcasestr.texi: New file.
47009         * doc/c-strstr.texi: New file.
47010         * doc/c-strtod.texi: New file.
47011         * doc/c-strtold.texi: New file.
47012
47013 2008-01-10  Eric Blake  <ebb9@byu.net>
47014
47015         * lib/relocatable.h: Fix a comment.
47016
47017 2008-01-10  Eric Blake  <ebb9@byu.net>
47018
47019         Share two-way algorithm.
47020         * lib/str-two-way.h: New file, merged from...
47021         * lib/memmem.c: ...here...
47022         * lib/strstr.c: ...and here.
47023         * modules/memmem (Files): Use it.
47024         * modules/strstr (Files): Likewise.
47025
47026         Avoid quadratic strstr implementations.
47027         * lib/strstr.c: New file.
47028         * m4/strstr.m4: Likewise.
47029         * modules/strstr: Likewise.
47030         * modules/strstr-tests: Likewise.
47031         * tests/test-strstr.c: Likewise.
47032         * lib/string.in.h (rpl_strstr): Declare.
47033         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
47034         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
47035         * modules/string (Makefile.am): Likewise.
47036         * MODULES.html.sh (string handling): Mention new module.
47037         * doc/functions/strstr.texi (strstr): Document the bug.
47038
47039 2008-01-10  Bruno Haible  <bruno@clisp.org>
47040
47041         * lib/relocatable.h (relocate): State whether result is freshly
47042         allocated or not.
47043         * lib/relocatable.c (relocate): Return a freshly allocated string
47044         instead of a pointer to a privately held string.
47045         Reported by Sylvain Beucler <beuc@gnu.org>.
47046
47047 2008-01-10  Colin Watson  <cjwatson@debian.org>
47048
47049         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
47050         s/S_ISNLK/S_ISLNK/.
47051
47052 2008-01-09  Bruno Haible  <bruno@clisp.org>
47053
47054         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
47055         and other files.
47056         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
47057         if it's only a guess.
47058         * modules/memmem: Simplify by depending on memmem-simple.
47059
47060 2008-01-09  Bruno Haible  <bruno@clisp.org>
47061
47062         Work around OpenBSD 4.0 tdelete() bug.
47063         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
47064         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
47065         macros and don't redefine the enum values.
47066         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
47067         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
47068         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
47069
47070 2008-01-09  Bruno Haible  <bruno@clisp.org>
47071
47072         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
47073         (main): Don't perform the tests if setlocale did not install a UTF-8
47074         locale. Needed on OpenBSD 4.0.
47075         * modules/wcwidth-tests (Depends-on): Add localcharset.
47076
47077 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47078
47079         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
47080         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
47081         * NEWS: announce this.
47082         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
47083
47084 2008-01-09  Simon Josefsson  <simon@josefsson.org>
47085         and Eric Blake  <ebb9@byu.net>
47086
47087         Add memmem-simple module.
47088         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
47089         (gl_FUNC_MEMMEM): Separate performance from presence checks.
47090         * modules/memmem-simple: New file.
47091         * modules/memmem (Description): Tweak.
47092         * MODULES.html.sh (string handling): Mention new module.
47093         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
47094         addressed by memmem-simple.
47095         * NEWS: Document the difference.
47096
47097 2008-01-09  Eric Blake  <ebb9@byu.net>
47098
47099         Give gcc some memmem optimization hints.
47100         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
47101         (strcasestr): Declare as pure.
47102         * modules/memmem (Maintainer): Claim my implementation.
47103
47104 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47105
47106         Support AIX 6.1 and higher.
47107         * build-aux/config.libpath: Likewise.
47108         * build-aux/config.rpath: Likewise.
47109
47110 2008-01-08  Jim Meyering  <meyering@redhat.com>
47111             Bruno Haible  <bruno@clisp.org>
47112
47113         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47114         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47115         Reported by Peter Fales in
47116         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47117
47118 2008-01-08  Bruno Haible  <bruno@clisp.org>
47119
47120         * modules/unictype/category-of (Depends-on): Add
47121         unictype/category-none.
47122         * modules/unictype/category-and-tests (Depends-on): Add
47123         unictype/category-{L,N,Lu,Nd}.
47124         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
47125         * modules/unictype/category-or-tests (Depends-on): Add
47126         unictype/category-{L,N}.
47127         * modules/unictype/category-name-tests (Depends-on): Add
47128         unictype/category-{Z,Nl}.
47129         Reported by Simon Josefsson.
47130
47131 2008-01-08  Bruno Haible  <bruno@clisp.org>
47132
47133         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
47134         convention better.
47135         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
47136         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
47137         Reported by Peter Miller <millerp@canb.auug.org.au>.
47138
47139 2008-01-08  Eric Blake  <ebb9@byu.net>
47140
47141         Rewrite memmem to guarantee linear complexity without malloc.
47142         * lib/memmem.c (memmem): Use Two-Way rather than
47143         Knuth-Morris-Pratt, to allow O(1) space usage.
47144         (critical_factorization, two_way_short_needle)
47145         (two_way_long_needle): New functions.
47146         (knuth_morris_pratt): Delete.
47147         * modules/memmem (Depends-on): No longer need malloca or stdbool.
47148         Add stdint.
47149         * tests/test-memmem.c (main): Add tests for periodic needle and
47150         sublinear performance.
47151         * doc/functions/memmem.texi (memmem): Document other deficiencies
47152         in cygwin and older glibc.
47153
47154 2008-01-08  Bruno Haible  <bruno@clisp.org>
47155
47156         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
47157         augmentation.
47158
47159 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
47160
47161         Add a configure time option: --disable-acl.
47162         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
47163         AC_ARG_ENABLE(acl).
47164
47165 2008-01-06  Simon Josefsson  <simon@josefsson.org>
47166
47167         * tests/test-localename.c: Don't include obsolete "setenv.h".
47168
47169         * modules/localename-tests (Depends-on): Need unsetenv.
47170
47171 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47172
47173         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
47174
47175 2008-01-06  Colin Watson  <cjwatson@debian.org>
47176
47177         * users.txt: Add man-db.
47178
47179 2008-01-07  Bruno Haible  <bruno@clisp.org>
47180
47181         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
47182         previous section name.
47183
47184 2008-01-07  Bruno Haible  <bruno@clisp.org>
47185
47186         * lib/progname.c (set_program_name): Don't strip off a leading
47187         "lt-" prefix outside a .libs directory.
47188         Suggested by Paul Eggert.
47189
47190 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
47191             Bruno Haible  <bruno@clisp.org>
47192
47193         Improve memory cleanup in 'relocatable' module.
47194         * lib/relocatable.h (compute_curr_prefix): Change return type to
47195         'char *'.
47196         * lib/relocatable.c (compute_curr_prefix): Change return type to
47197         'char *'. Free curr_installdir after use.
47198         (relocate): Free curr_prefix_better after use.
47199         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
47200
47201 2008-01-01  Bruno Haible  <bruno@clisp.org>
47202
47203         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
47204         failure on older glibc systems.
47205         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47206
47207 2008-01-05  Eric Blake  <ebb9@byu.net>
47208
47209         Avoid quadratic system memmem.
47210         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
47211         Reported by Ralf Wildenhues.
47212
47213         Fix memmem test for mingw.
47214         * modules/memmem-tests (configure.ac): Check for alarm.
47215         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
47216         it.
47217         * doc/functions/memmem.texi: New file.
47218         * doc/gnulib.texi (Function Substitutes): Add memmem.
47219         Reported by Bruno Haible.
47220
47221 2008-01-04  Bruno Haible  <bruno@clisp.org>
47222
47223         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
47224         Require gl_HEADER_STRINGS_H_DEFAULTS, not
47225         gl_HEADER_STRING_H_DEFAULTS.
47226
47227 2008-01-04  Eric Blake  <ebb9@byu.net>
47228
47229         Shorten duration of memmem test.
47230         * tests/test-memmem.c (main): Use alarm to declare failure if test
47231         is taking too long.
47232         Reported by Ralf Wildenhues.
47233
47234 2007-12-21  Simon Josefsson  <simon@josefsson.org>
47235
47236         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
47237         string, needed by strerror.
47238
47239 2008-01-03  Colin Watson  <cjwatson@debian.org>
47240             Bruno Haible  <bruno@clisp.org>
47241
47242         * doc/gnulib-tool.texi (Localization): New section.
47243
47244 2008-01-02  Bruno Haible  <bruno@clisp.org>
47245
47246         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
47247         variables to 'unsigned char *' type.
47248         Reported by Paul Eggert.
47249
47250 2008-01-02  Jim Meyering  <jim@meyering.net>
47251
47252         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
47253
47254 2007-12-31  Jim Meyering  <jim@meyering.net>
47255
47256         Avoid use of private FTS type name.
47257         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
47258
47259 2007-12-30  Karl Berry  <karl@gnu.org>
47260
47261         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
47262         work around defect in Texinfo and/or the standalone Info browser.
47263
47264 2007-12-30  Bruno Haible  <bruno@clisp.org>
47265
47266         Unify 5 copies of the KMP code.
47267         * lib/str-kmp.h: New file.
47268         * lib/c-strcasestr.c: Include str-kmp.h.
47269         (knuth_morris_pratt): Remove function.
47270         (c_strcasestr): Update.
47271         * lib/c-strstr.c: Include str-kmp.h.
47272         (knuth_morris_pratt): Remove function.
47273         (c_strcasestr): Update.
47274         * lib/mbscasestr.c: Include str-kmp.h.
47275         (knuth_morris_pratt_unibyte): Remove function.
47276         * lib/mbsstr.c: Include str-kmp.h.
47277         (knuth_morris_pratt_unibyte): Remove function.
47278         * lib/strcasestr.c: Include str-kmp.h.
47279         (knuth_morris_pratt): Remove function.
47280         (strcasestr): Update.
47281         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
47282         * modules/c-strstr (Files): Likewise.
47283         * modules/mbscasestr (Files): Likewise.
47284         * modules/mbsstr (Files): Likewise.
47285         * modules/strcasestr (Files): Likewise.
47286         Suggested by Paul Eggert.
47287
47288 2007-12-30  Bruno Haible  <bruno@clisp.org>
47289
47290         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
47291         defined.
47292
47293 2007-12-30  Bruno Haible  <bruno@clisp.org>
47294
47295         * lib/xmalloca.h: Include xalloc.h.
47296         (xnmalloca): New macro.
47297
47298 2007-12-30  Bruno Haible  <bruno@clisp.org>
47299
47300         * lib/malloca.h (nmalloca): New macro.
47301         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47302         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47303         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47304         knuth_morris_pratt_multibyte): Likewise.
47305         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47306         knuth_morris_pratt_multibyte): Likewise.
47307         * lib/memmem.c (knuth_morris_pratt): Likewise.
47308         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47309
47310 2007-12-25  Bruno Haible  <bruno@clisp.org>
47311
47312         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47313         * lib/glob.c: Don't include openat.h.
47314         (link_exists2_p): Add back the code that deals with the
47315         !GLOB_ALTDIRFUNC case.
47316         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47317         let it do the filename concatenation.
47318         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47319         * modules/glob (Depends-on): Remove openat.
47320
47321 2007-12-31  Bruno Haible  <bruno@clisp.org>
47322
47323         * modules/dirfd (License): Change to LGPLv2+.
47324         Approved by Jim Meyering.
47325
47326 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47327
47328         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47329         when multiplying M by sizeof (size_t).
47330
47331 2007-12-10  Martin Lambers  <marlam@marlam.de>
47332
47333         Override getpagesize on mingw.
47334         * lib/getpagesize.c: New file.
47335         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47336         * modules/getpagesize (Files): Add lib/getpagesize.c.
47337         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47339         REPLACE_GETPAGESIZE.
47340         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47341
47342 2007-12-25  Bruno Haible  <bruno@clisp.org>
47343
47344         * modules/localcharset (Notice): New field.
47345         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47346         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47347
47348 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47349             Bruno Haible  <bruno@clisp.org>
47350
47351         Avoid using the syntax symbol() in formatted documentation.
47352         * MODULES.html.sh (func_module): When replacing symbol() with a
47353         hyperlink, remove the parentheses. Show an error if some remain.
47354         Recognize and render the '...' syntax.
47355         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47356         Rework. Add paragraph about GCC's inlining.
47357         * doc/alloca.texi: Likewise.
47358         * doc/error.texi: Remove parentheses from symbol reference.
47359         * doc/gnulib-intro.texi: Likewise.
47360         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47361         * modules/fnmatch (Description): Reword to say "the ... function".
47362         * modules/full-read (Description): Likewise.
47363         * modules/full-write (Description): Likewise.
47364         * modules/safe-read (Description): Likewise.
47365         * modules/safe-write (Description): Likewise.
47366         * modules/strchrnul (Description): Likewise.
47367         * modules/trim (Description): Likewise.
47368         * modules/error (Description): Remove parentheses from symbol
47369         references.
47370         * modules/verror (Description): Likewise.
47371         Reported by Karl Berry.
47372
47373 2007-12-25  Bruno Haible  <bruno@clisp.org>
47374
47375         Fixup after 2007-10-16 commit.
47376         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47377
47378 2007-12-24  Bruno Haible  <bruno@clisp.org>
47379
47380         Make --enable-relocatable work with DESTDIR.
47381         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47382         to compute installdir from destprog.
47383         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47384         also set the RELOC_DESTDIR variable.
47385         Reported by Левашев Иван <octagram@bluebottle.com>.
47386
47387 2007-12-24  Bruno Haible  <bruno@clisp.org>
47388
47389         Fix link error due to xalloc_die().
47390         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47391         of xreadlink.
47392         * lib/relocwrapper.c: Update comments.
47393         * build-aux/install-reloc: Remove xreadlink.c from file list.
47394         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47395         xreadlink.c.
47396         Reported by Левашев Иван <octagram@bluebottle.com>.
47397
47398 2007-12-24  Bruno Haible  <bruno@clisp.org>
47399
47400         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47401         * lib/setenv.h: Remove file.
47402         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47403         lib/setenv.h.
47404         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47405         (Depends-on): Add stdlib.
47406         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47407         gl_FUNC_UNSETENV.
47408         (Include): Replace setenv.h with <stdlib.h>.
47409         * modules/unsetenv: New file.
47410         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47411         * lib/unsetenv.c: Include <stdlib.h> first.
47412         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47413         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47414         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47415         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47416         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47417         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47419         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47420         * doc/functions/unsetenv.texi: Update.
47421         * modules/xsetenv (Depends-on): Add unsetenv.
47422         * modules/getdate (Depends-on): Likewise.
47423         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47424         * lib/xsetenv.c: Don't include setenv.h.
47425         * lib/getdate.y: Likewise.
47426         * lib/relocwrapper.c: Likewise.
47427         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47428         (Depends-on): Add stdlib.
47429         * NEWS: Mention the changes.
47430         Reported by Левашев Иван <octagram@bluebottle.com>.
47431
47432 2007-12-23  Bruno Haible  <bruno@clisp.org>
47433
47434         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47435         indentation.
47436
47437 2007-12-23  Bruno Haible  <bruno@clisp.org>
47438
47439         * lib/c-strcasestr.c: Add more comments.
47440         * lib/c-strstr.c: Likewise.
47441         * lib/mbscasestr.c: Likewise.
47442         * lib/mbsstr.c: Likewise.
47443         * lib/strcasestr.c: Likewise.
47444         * lib/memmem.c: Likewise.
47445
47446 2007-12-23  Bruno Haible  <bruno@clisp.org>
47447
47448         * tests/test-memmem.c: Include <string.h> first.
47449
47450 2007-12-22  Bruno Haible  <bruno@clisp.org>
47451
47452         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47453         the contents of $testsbase.
47454         Reported by Ralf Wildenhues.
47455
47456 2007-12-22  Bruno Haible  <bruno@clisp.org>
47457
47458         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47459         two variables local_ldadd_before, local_ldadd_last.
47460
47461 2007-12-20  Eric Blake  <ebb9@byu.net>
47462
47463         Work around circular library issue when cross-compiling.
47464         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47465         that progname.o does not need to pull in rpl_memcmp.
47466
47467 2007-12-19  Eric Blake  <ebb9@byu.net>
47468
47469         Fix memmem to avoid O(n^2) worst-case complexity.
47470         * lib/memmem.c (knuth_morris_pratt): New function.
47471         (memmem): Use it if first few naive iterations fail.
47472         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47473         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47474         * modules/memchr (License): Likewise.
47475         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47476         malloca.
47477         * tests/test-memmem.c: Rewrite, borrowing ideas from
47478         test-mbsstr1.c; the old version wouldn't even compile!
47479         * modules/memmem-tests: New file.
47480         * lib/string.in.h (rpl_memmem): Add declaration.
47481         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47482         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47483         REPLACE_MEMMEM.
47484
47485 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47486
47487         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47488         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47489         before any system include files, and undef after them all.  This
47490         should fix a problem on VMS reported by John E. Malmberg in
47491         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47492
47493 2007-12-17  Eric Blake  <ebb9@byu.net>
47494
47495         Revert addition of verify, for BSD/OS.
47496         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47497         can't handle large files, for the sake of obsolete platforms.
47498         * modules/fseeko (Depends-on): Remove verify.
47499         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47500         * doc/functions/ftello.texi (ftello): Likewise.
47501         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47502         Reported by Larry Jones.
47503
47504 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47505
47506         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47507         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47508
47509 2007-12-17  Jim Meyering  <meyering@redhat.com>
47510
47511         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47512         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47513         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47514         * modules/getcwd (Depends-on): Add openat.
47515         Reported by Petr Salinger.
47516
47517 2007-12-17  Bruno Haible  <bruno@clisp.org>
47518
47519         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47520         avoid a segmentation fault of the configure test on x86_64 systems.
47521
47522 2007-12-15  Jim Meyering  <meyering@redhat.com>
47523
47524         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47525
47526 2007-12-13  Eric Blake  <ebb9@byu.net>
47527
47528         Another fseek test.
47529         * tests/test-fseek.c (main): Also test ungetc handling.
47530         * tests/test-fseeko.c (main): Likewise.
47531         * modules/fseeko (Depends-on): Add verify.
47532         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47533         large.
47534         Reported by Larry Jones.
47535
47536         Fix fseeko on mingw.
47537         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47538         seek.
47539
47540         Beef up fseek tests.
47541         * tests/test-fseek.c (main): Also test eof handling.
47542         * tests/test-fseeko.c (main): Likewise.
47543         Reported by Larry Jones.
47544
47545 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47546
47547         Fix fseeko on BSD-based platforms.
47548         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47549         successful seek.
47550
47551 2007-12-12  Eric Blake  <ebb9@byu.net>
47552
47553         Allow circular dependency of separate libtests.a
47554         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47555         when use_libtests.
47556
47557 2007-12-11  Eric Blake  <ebb9@byu.net>
47558
47559         Fix bug with -0.0L in previous patch.
47560         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47561         * tests/test-isnan.c (main): Also test on zeroes.
47562         * tests/test-isnanf.c (main): Likewise.
47563         * tests/test-isnanl.h (main): Likewise.
47564
47565         Detect pseudo-denormals on x86 even when cross-compiling.
47566         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47567         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47568         invalid bit patterns that happen to satisfy ==.
47569
47570         Avoid link failures with separate libtests.a.
47571         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47572         last, to satisfy circular dependencies.
47573
47574 2007-12-11  Eric Blake  <ebb9@byu.net>
47575         and Bruno Haible  <bruno@clisp.org>
47576
47577         Fix OpenBSD 4.0 <float.h> handling of long double.
47578         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47579         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47580         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47581
47582 2007-12-11  Jim Meyering  <meyering@redhat.com>
47583
47584         * users.txt: Add libvirt.
47585
47586         Support versions of autoconf prior to 2.59c.
47587         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47588         if it is not already defined.
47589
47590 2007-12-09  Bruno Haible  <bruno@clisp.org>
47591
47592         Let 'gnulib-tool --import' collect sources needed for the tests in
47593         tests/ rather than in lib/.
47594         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47595         argument. If true, add rules to generate libtests.a, and put libtests.a
47596         into $(LDADD). Consider source files in subdirectories and set
47597         uses_subdirs.
47598         (func_emit_initmacro_start, func_emit_initmacro_end,
47599         func_emit_initmacro_done): Pass all arguments explicitly.
47600         (func_import): Determine two module lists main_modules,
47601         testsrelated_modules. Determine use_libtests. Determine two variables
47602         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47603         instead of just sed_transform_lib_file. Determine two variables
47604         main_files and testsrelated_files. Compute 'files' as the union of
47605         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47606         func_add_or_update. In the generated gnulib-comp.m4, collect the
47607         object files for tests/ in different variables than those for lib/.
47608         Substitute LIBTESTS_LIBDEPS.
47609         (func_create_testdir): Combine the uses_subdirs results from
47610         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47611
47612 2007-12-09  Bruno Haible  <bruno@clisp.org>
47613
47614         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47615         the build-aux directory.
47616
47617 2007-12-09  Bruno Haible  <bruno@clisp.org>
47618
47619         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47620         introduced on 2006-09-09.
47621
47622 2007-12-07  Jim Meyering  <meyering@redhat.com>
47623
47624         Let these macros work also with autoconf-2.59.
47625         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47626         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47627         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47628
47629 2007-12-06  Jim Meyering  <meyering@redhat.com>
47630
47631         Avoid a configure-time syntax error in gl_FUNC_ACL.
47632         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47633         function in each branch, before testing the cache variable.
47634
47635 2007-12-04  Eric Blake  <ebb9@byu.net>
47636
47637         Make scripts executable.
47638         * build-aux/config.guess: Add execute permissions.
47639         * build-aux/config.sub: Likewise.
47640         * build-aux/gendocs.sh: Likewise.
47641
47642         Fix frexp on mingw.
47643         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47644         cross-compiling.
47645         * doc/functions/frexp.texi (frexp): Document the bug.
47646
47647         Make cygwin fseeko check more reliable.
47648         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47649         version numbers, rather than unrelated feature check.
47650         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47651         * doc/functions/ftello.texi (ftello): Likewise.
47652         Reported by Bruno Haible.
47653
47654         * m4/strerror.m4: Bump version number.
47655
47656 2007-12-03  Bruno Haible  <bruno@clisp.org>
47657
47658         * doc/functions/mprotect.texi: Mention the mingw problem.
47659
47660 2007-12-03  Eric Blake  <ebb9@byu.net>
47661
47662         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47663         REPLACE_STRERROR is initialized before this macro.
47664
47665 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47666
47667         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47668         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47669         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47670         put -lsec in even for programs other than 'ls'.  This fixes a problem
47671         for gettext reported by Bruno Haible in
47672         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47673         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47674         Add support for Solaris 10.  This isn't efficient, but should get the
47675         job done for now.
47676
47677 2007-12-03  James Youngman  <jay@gnu.org>
47678
47679         * doc/regexprops-generic.texi: change "an close-group" to "a
47680         close-group" and "illegal" to "not allowed".
47681
47682 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47683
47684         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47685         pr_byname.h. Needed for the rare case when the maintainer has done
47686         "make maintainer-clean" in the source directory and then attempts a
47687         build outside the source directory.
47688         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47689         scripts_byname.h.
47690
47691 2007-12-02  Martin Lambers <marlam@marlam.de>
47692             Bruno Haible  <bruno@clisp.org>
47693
47694         * lib/getpagesize.h: Remove file.
47695         * lib/unistd.in.h: Include declaration of getpagesize here.
47696         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47697         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47698         HAVE_SYS_PARAM_H.
47699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47700         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47701         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47702         (Depends-on): Add unistd.
47703         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47704         (Include): Use <unistd.h> instead of getpagesize.h.
47705         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47706         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47707         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47708         gl_GETPAGESIZE invocation, already handled by module dependency.
47709         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47710
47711 2007-12-02  Bruno Haible  <bruno@clisp.org>
47712
47713         * modules/strings-tests: New file.
47714         * tests/test-strings.c: New file.
47715
47716         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47717         * lib/strings.in.h: New file.
47718         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47719         * m4/strings_h.m4: New file.
47720         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47721         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47722         * modules/strings: New file.
47723         * modules/string (Makefile.am): Update.
47724         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47725         Reported by Karl Berry.
47726
47727 2007-12-01  Eric Blake  <ebb9@byu.net>
47728
47729         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47730         accomodate fix in cygwin 1.5.25.
47731
47732 2007-12-01  Jim Meyering  <meyering@redhat.com>
47733
47734         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47735         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47736         that would inhibit utf8-optimization of a regexp containing line-
47737         or buffer-anchors, e.g., `^', `$'.
47738
47739 2007-11-30  Bruno Haible  <bruno@clisp.org>
47740
47741         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47742         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47743         glthread_recursive_lock_init.
47744         * lib/lock.c (glthread_recursive_lock_init)
47745         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47746         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47747
47748 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47749
47750         New function qset_acl, like set_acl but with syscall semantics.
47751         * lib/acl.h (qset_acl): New decl.
47752         * lib/acl.c (qset_acl): New function.
47753         (set_acl): Use new function.  Use more-consistent diagnostics.
47754
47755 2007-11-28  Jim Meyering  <meyering@redhat.com>
47756
47757         * modules/physmem (License): Change from GPL to LGPLv2+.
47758
47759 2007-11-26  Bruno Haible  <bruno@clisp.org>
47760
47761         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47762         'long double' type has excess precision.
47763         Reported by Jim Meyering in
47764         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47765
47766 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47767
47768         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47769         Sync from <http://gnu.org/licenses>.
47770         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47771         with license text from same location.
47772         * doc/maintain.texi, doc/standards.texi:  Sync from
47773         <http://savannah.gnu.org/projects/gnustandards>.
47774
47775 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
47776         and Jim Meyering  <meyering@redhat.com>
47777
47778         Adjust getdate' grammar to accept a slightly more regular language.
47779         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47780         Before, the former was rejected.
47781         * lib/getdate.y (digits_to_date_time): New function, factored
47782         out of ...
47783         (number): ...here.  Just call digits_to_date_time.
47784         (hybrid): New non-terminal to handle an <unsigned number,
47785         signed relative offset> sequence consistently.
47786
47787 2007-11-18  Jim Meyering  <meyering@redhat.com>
47788
47789         Pull my changes from coreutils:
47790         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47791         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47792         use of $gnulib_tool_option_extras, so that it's separated from the
47793         preceding argument.
47794
47795         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47796         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47797         parent destination directories before copying a file into place.
47798
47799 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47800
47801         bootstrap: work also with 4-argument variant of AC_INIT
47802         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47803
47804 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47805
47806         Port test-getaddrinfo to Solaris.
47807         Problem reported by Bruno Haible in
47808         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47809         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47810         explanation of setting 'hints'.
47811         Don't reject an implementation merely because it returns EAI_SERVICE.
47812         (EAI_SERVICE): Define to 0 if not defined.
47813
47814 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47815
47816         The license of gnu-make and posix-shell is now "GPLed build tool".
47817         * modules/gnu-make (License): Likewise.
47818         * modules/posix-shell (License): Likewise.
47819
47820         New module posix-shell, for determining a POSIX shell
47821         or perhaps something that is close enough to a POSIX shell.
47822         * m4/posix-shell.m4: New file.
47823         * modules/posix-shell: New file.
47824
47825         * MODULES.html.sh: Mention new module.
47826
47827         New module gnu-make, for determining whether we're using GNU Make.
47828         * m4/gnu-make.m4: New file.
47829         * modules/gnu-make: New file.
47830         * MODULES.html.sh: Mention new module.
47831
47832 2007-11-14  Jim Meyering  <meyering@redhat.com>
47833
47834         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47835         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47836         use this macro to create a function _definition_.
47837         Remove useless "#undef ARGMATCH_DIE".
47838
47839 2007-11-14  Bruno Haible  <bruno@clisp.org>
47840
47841         * lib/config.charset: Update for OpenBSD 4.1.
47842         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47843
47844 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47845
47846         Document 64-bit #if problems in stdint.texi.
47847         * doc/headers/stdint.texi (stdint.h): Mention problems with
47848         64-bit-#if, and how to work around them.
47849
47850         Don't insist on 'long long int' support in the preprocessor.  It
47851         breaks too many things.  For example, PRIdMAX still uses a 'long
47852         long int' format with the latest Sun compiler, even though
47853         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47854         preprocessor problem.  This causes the latest coreutils to dump
47855         core on Solaris 10 sparc with the Sun C compiler.
47856         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47857         the troublesome expressions at configure-time, not at #if-time.
47858         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47859         preprocessor.
47860         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47861         compile-time C checks, done at 'configure'-time.
47862         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47863         * modules/inttypes (Makefile): Substitute the new symbols that
47864         gl_INTTYPES_H now generates.
47865         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47866
47867 2007-11-12  Bruno Haible  <bruno@clisp.org>
47868
47869         Tests for Unicode character classification functions.
47870
47871         * modules/unictype/bidicategory-byname-tests: New file.
47872         * modules/unictype/bidicategory-name-tests: New file.
47873         * modules/unictype/bidicategory-of-tests: New file.
47874         * modules/unictype/bidicategory-test-tests: New file.
47875         * modules/unictype/block-list-tests: New file.
47876         * modules/unictype/block-of-tests: New file.
47877         * modules/unictype/block-test-tests: New file.
47878         * modules/unictype/category-C-tests: New file.
47879         * modules/unictype/category-Cc-tests: New file.
47880         * modules/unictype/category-Cf-tests: New file.
47881         * modules/unictype/category-Cn-tests: New file.
47882         * modules/unictype/category-Co-tests: New file.
47883         * modules/unictype/category-Cs-tests: New file.
47884         * modules/unictype/category-L-tests: New file.
47885         * modules/unictype/category-Ll-tests: New file.
47886         * modules/unictype/category-Lm-tests: New file.
47887         * modules/unictype/category-Lo-tests: New file.
47888         * modules/unictype/category-Lt-tests: New file.
47889         * modules/unictype/category-Lu-tests: New file.
47890         * modules/unictype/category-M-tests: New file.
47891         * modules/unictype/category-Mc-tests: New file.
47892         * modules/unictype/category-Me-tests: New file.
47893         * modules/unictype/category-Mn-tests: New file.
47894         * modules/unictype/category-N-tests: New file.
47895         * modules/unictype/category-Nd-tests: New file.
47896         * modules/unictype/category-Nl-tests: New file.
47897         * modules/unictype/category-No-tests: New file.
47898         * modules/unictype/category-P-tests: New file.
47899         * modules/unictype/category-Pc-tests: New file.
47900         * modules/unictype/category-Pd-tests: New file.
47901         * modules/unictype/category-Pe-tests: New file.
47902         * modules/unictype/category-Pf-tests: New file.
47903         * modules/unictype/category-Pi-tests: New file.
47904         * modules/unictype/category-Po-tests: New file.
47905         * modules/unictype/category-Ps-tests: New file.
47906         * modules/unictype/category-S-tests: New file.
47907         * modules/unictype/category-Sc-tests: New file.
47908         * modules/unictype/category-Sk-tests: New file.
47909         * modules/unictype/category-Sm-tests: New file.
47910         * modules/unictype/category-So-tests: New file.
47911         * modules/unictype/category-Z-tests: New file.
47912         * modules/unictype/category-Zl-tests: New file.
47913         * modules/unictype/category-Zp-tests: New file.
47914         * modules/unictype/category-Zs-tests: New file.
47915         * modules/unictype/category-and-not-tests: New file.
47916         * modules/unictype/category-and-tests: New file.
47917         * modules/unictype/category-byname-tests: New file.
47918         * modules/unictype/category-name-tests: New file.
47919         * modules/unictype/category-none-tests: New file.
47920         * modules/unictype/category-of-tests: New file.
47921         * modules/unictype/category-or-tests: New file.
47922         * modules/unictype/category-test-withtable-tests: New file.
47923         * modules/unictype/combining-class-tests: New file.
47924         * modules/unictype/ctype-alnum-tests: New file.
47925         * modules/unictype/ctype-alpha-tests: New file.
47926         * modules/unictype/ctype-blank-tests: New file.
47927         * modules/unictype/ctype-cntrl-tests: New file.
47928         * modules/unictype/ctype-digit-tests: New file.
47929         * modules/unictype/ctype-graph-tests: New file.
47930         * modules/unictype/ctype-lower-tests: New file.
47931         * modules/unictype/ctype-print-tests: New file.
47932         * modules/unictype/ctype-punct-tests: New file.
47933         * modules/unictype/ctype-space-tests: New file.
47934         * modules/unictype/ctype-upper-tests: New file.
47935         * modules/unictype/ctype-xdigit-tests: New file.
47936         * modules/unictype/decimal-digit-tests: New file.
47937         * modules/unictype/digit-tests: New file.
47938         * modules/unictype/mirror-tests: New file.
47939         * modules/unictype/numeric-tests: New file.
47940         * modules/unictype/property-alphabetic-tests: New file.
47941         * modules/unictype/property-ascii-hex-digit-tests: New file.
47942         * modules/unictype/property-bidi-arabic-digit-tests: New file.
47943         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
47944         * modules/unictype/property-bidi-block-separator-tests: New file.
47945         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
47946         * modules/unictype/property-bidi-common-separator-tests: New file.
47947         * modules/unictype/property-bidi-control-tests: New file.
47948         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
47949         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
47950         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
47951         * modules/unictype/property-bidi-european-digit-tests: New file.
47952         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
47953         * modules/unictype/property-bidi-left-to-right-tests: New file.
47954         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
47955         * modules/unictype/property-bidi-other-neutral-tests: New file.
47956         * modules/unictype/property-bidi-pdf-tests: New file.
47957         * modules/unictype/property-bidi-segment-separator-tests: New file.
47958         * modules/unictype/property-bidi-whitespace-tests: New file.
47959         * modules/unictype/property-byname-tests: New file.
47960         * modules/unictype/property-combining-tests: New file.
47961         * modules/unictype/property-composite-tests: New file.
47962         * modules/unictype/property-currency-symbol-tests: New file.
47963         * modules/unictype/property-dash-tests: New file.
47964         * modules/unictype/property-decimal-digit-tests: New file.
47965         * modules/unictype/property-default-ignorable-code-point-tests: New file.
47966         * modules/unictype/property-deprecated-tests: New file.
47967         * modules/unictype/property-diacritic-tests: New file.
47968         * modules/unictype/property-extender-tests: New file.
47969         * modules/unictype/property-format-control-tests: New file.
47970         * modules/unictype/property-grapheme-base-tests: New file.
47971         * modules/unictype/property-grapheme-extend-tests: New file.
47972         * modules/unictype/property-grapheme-link-tests: New file.
47973         * modules/unictype/property-hex-digit-tests: New file.
47974         * modules/unictype/property-hyphen-tests: New file.
47975         * modules/unictype/property-id-continue-tests: New file.
47976         * modules/unictype/property-id-start-tests: New file.
47977         * modules/unictype/property-ideographic-tests: New file.
47978         * modules/unictype/property-ids-binary-operator-tests: New file.
47979         * modules/unictype/property-ids-trinary-operator-tests: New file.
47980         * modules/unictype/property-ignorable-control-tests: New file.
47981         * modules/unictype/property-iso-control-tests: New file.
47982         * modules/unictype/property-join-control-tests: New file.
47983         * modules/unictype/property-left-of-pair-tests: New file.
47984         * modules/unictype/property-line-separator-tests: New file.
47985         * modules/unictype/property-logical-order-exception-tests: New file.
47986         * modules/unictype/property-lowercase-tests: New file.
47987         * modules/unictype/property-math-tests: New file.
47988         * modules/unictype/property-non-break-tests: New file.
47989         * modules/unictype/property-not-a-character-tests: New file.
47990         * modules/unictype/property-numeric-tests: New file.
47991         * modules/unictype/property-other-alphabetic-tests: New file.
47992         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
47993         * modules/unictype/property-other-grapheme-extend-tests: New file.
47994         * modules/unictype/property-other-id-continue-tests: New file.
47995         * modules/unictype/property-other-id-start-tests: New file.
47996         * modules/unictype/property-other-lowercase-tests: New file.
47997         * modules/unictype/property-other-math-tests: New file.
47998         * modules/unictype/property-other-uppercase-tests: New file.
47999         * modules/unictype/property-paired-punctuation-tests: New file.
48000         * modules/unictype/property-paragraph-separator-tests: New file.
48001         * modules/unictype/property-pattern-syntax-tests: New file.
48002         * modules/unictype/property-pattern-white-space-tests: New file.
48003         * modules/unictype/property-private-use-tests: New file.
48004         * modules/unictype/property-punctuation-tests: New file.
48005         * modules/unictype/property-quotation-mark-tests: New file.
48006         * modules/unictype/property-radical-tests: New file.
48007         * modules/unictype/property-sentence-terminal-tests: New file.
48008         * modules/unictype/property-soft-dotted-tests: New file.
48009         * modules/unictype/property-space-tests: New file.
48010         * modules/unictype/property-terminal-punctuation-tests: New file.
48011         * modules/unictype/property-test-tests: New file.
48012         * modules/unictype/property-titlecase-tests: New file.
48013         * modules/unictype/property-unassigned-code-value-tests: New file.
48014         * modules/unictype/property-unified-ideograph-tests: New file.
48015         * modules/unictype/property-uppercase-tests: New file.
48016         * modules/unictype/property-variation-selector-tests: New file.
48017         * modules/unictype/property-white-space-tests: New file.
48018         * modules/unictype/property-xid-continue-tests: New file.
48019         * modules/unictype/property-xid-start-tests: New file.
48020         * modules/unictype/property-zero-width-tests: New file.
48021         * modules/unictype/scripts-tests: New file.
48022         * modules/unictype/syntax-c-ident-tests: New file.
48023         * modules/unictype/syntax-c-whitespace-tests: New file.
48024         * modules/unictype/syntax-java-ident-tests: New file.
48025         * modules/unictype/syntax-java-whitespace-tests: New file.
48026         * tests/unictype/test-bidi_byname.c: New file.
48027         * tests/unictype/test-bidi_name.c: New file.
48028         * tests/unictype/test-bidi_of.c: New file.
48029         * tests/unictype/test-bidi_test.c: New file.
48030         * tests/unictype/test-block_list.c: New file.
48031         * tests/unictype/test-block_of.c: New file.
48032         * tests/unictype/test-block_test.c: New file.
48033         * tests/unictype/test-categ_and.c: New file.
48034         * tests/unictype/test-categ_and_not.c: New file.
48035         * tests/unictype/test-categ_byname.c: New file.
48036         * tests/unictype/test-categ_name.c: New file.
48037         * tests/unictype/test-categ_none.c: New file.
48038         * tests/unictype/test-categ_of.c: New file.
48039         * tests/unictype/test-categ_or.c: New file.
48040         * tests/unictype/test-categ_test_withtable.c: New file.
48041         * tests/unictype/test-combining.c: New file.
48042         * tests/unictype/test-decdigit.c: New file.
48043         * tests/unictype/test-digit.c: New file.
48044         * tests/unictype/test-mirror.c: New file.
48045         * tests/unictype/test-numeric.c: New file.
48046         * tests/unictype/test-pr_byname.c: New file.
48047         * tests/unictype/test-pr_test.c: New file.
48048         * tests/unictype/test-predicate-part1.h: New file.
48049         * tests/unictype/test-predicate-part2.h: New file.
48050         * tests/unictype/test-scripts.c: New file.
48051         * tests/unictype/test-sy_c_ident.c: New file.
48052         * tests/unictype/test-sy_java_ident.c: New file.
48053
48054         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
48055         for Unicode 5.0.0.
48056         * tests/unictype/test-categ_Cc.c: Likewise.
48057         * tests/unictype/test-categ_Cf.c: Likewise.
48058         * tests/unictype/test-categ_Cn.c: Likewise.
48059         * tests/unictype/test-categ_Co.c: Likewise.
48060         * tests/unictype/test-categ_Cs.c: Likewise.
48061         * tests/unictype/test-categ_L.c: Likewise.
48062         * tests/unictype/test-categ_Ll.c: Likewise.
48063         * tests/unictype/test-categ_Lm.c: Likewise.
48064         * tests/unictype/test-categ_Lo.c: Likewise.
48065         * tests/unictype/test-categ_Lt.c: Likewise.
48066         * tests/unictype/test-categ_Lu.c: Likewise.
48067         * tests/unictype/test-categ_M.c: Likewise.
48068         * tests/unictype/test-categ_Mc.c: Likewise.
48069         * tests/unictype/test-categ_Me.c: Likewise.
48070         * tests/unictype/test-categ_Mn.c: Likewise.
48071         * tests/unictype/test-categ_N.c: Likewise.
48072         * tests/unictype/test-categ_Nd.c: Likewise.
48073         * tests/unictype/test-categ_Nl.c: Likewise.
48074         * tests/unictype/test-categ_No.c: Likewise.
48075         * tests/unictype/test-categ_P.c: Likewise.
48076         * tests/unictype/test-categ_Pc.c: Likewise.
48077         * tests/unictype/test-categ_Pd.c: Likewise.
48078         * tests/unictype/test-categ_Pe.c: Likewise.
48079         * tests/unictype/test-categ_Pf.c: Likewise.
48080         * tests/unictype/test-categ_Pi.c: Likewise.
48081         * tests/unictype/test-categ_Po.c: Likewise.
48082         * tests/unictype/test-categ_Ps.c: Likewise.
48083         * tests/unictype/test-categ_S.c: Likewise.
48084         * tests/unictype/test-categ_Sc.c: Likewise.
48085         * tests/unictype/test-categ_Sk.c: Likewise.
48086         * tests/unictype/test-categ_Sm.c: Likewise.
48087         * tests/unictype/test-categ_So.c: Likewise.
48088         * tests/unictype/test-categ_Z.c: Likewise.
48089         * tests/unictype/test-categ_Zl.c: Likewise.
48090         * tests/unictype/test-categ_Zp.c: Likewise.
48091         * tests/unictype/test-categ_Zs.c: Likewise.
48092         * tests/unictype/test-ctype_alnum.c: Likewise.
48093         * tests/unictype/test-ctype_alpha.c: Likewise.
48094         * tests/unictype/test-ctype_blank.c: Likewise.
48095         * tests/unictype/test-ctype_cntrl.c: Likewise.
48096         * tests/unictype/test-ctype_digit.c: Likewise.
48097         * tests/unictype/test-ctype_graph.c: Likewise.
48098         * tests/unictype/test-ctype_lower.c: Likewise.
48099         * tests/unictype/test-ctype_print.c: Likewise.
48100         * tests/unictype/test-ctype_punct.c: Likewise.
48101         * tests/unictype/test-ctype_space.c: Likewise.
48102         * tests/unictype/test-ctype_upper.c: Likewise.
48103         * tests/unictype/test-ctype_xdigit.c: Likewise.
48104         * tests/unictype/test-decdigit.h: Likewise.
48105         * tests/unictype/test-digit.h: Likewise.
48106         * tests/unictype/test-numeric.h: Likewise.
48107         * tests/unictype/test-pr_alphabetic.c: Likewise.
48108         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
48109         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
48110         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
48111         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
48112         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48113         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48114         * tests/unictype/test-pr_bidi_control.c: Likewise.
48115         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48116         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48117         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48118         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
48119         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
48120         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
48121         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
48122         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
48123         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
48124         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
48125         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
48126         * tests/unictype/test-pr_combining.c: Likewise.
48127         * tests/unictype/test-pr_composite.c: Likewise.
48128         * tests/unictype/test-pr_currency_symbol.c: Likewise.
48129         * tests/unictype/test-pr_dash.c: Likewise.
48130         * tests/unictype/test-pr_decimal_digit.c: Likewise.
48131         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
48132         * tests/unictype/test-pr_deprecated.c: Likewise.
48133         * tests/unictype/test-pr_diacritic.c: Likewise.
48134         * tests/unictype/test-pr_extender.c: Likewise.
48135         * tests/unictype/test-pr_format_control.c: Likewise.
48136         * tests/unictype/test-pr_grapheme_base.c: Likewise.
48137         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
48138         * tests/unictype/test-pr_grapheme_link.c: Likewise.
48139         * tests/unictype/test-pr_hex_digit.c: Likewise.
48140         * tests/unictype/test-pr_hyphen.c: Likewise.
48141         * tests/unictype/test-pr_id_continue.c: Likewise.
48142         * tests/unictype/test-pr_id_start.c: Likewise.
48143         * tests/unictype/test-pr_ideographic.c: Likewise.
48144         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
48145         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
48146         * tests/unictype/test-pr_ignorable_control.c: Likewise.
48147         * tests/unictype/test-pr_iso_control.c: Likewise.
48148         * tests/unictype/test-pr_join_control.c: Likewise.
48149         * tests/unictype/test-pr_left_of_pair.c: Likewise.
48150         * tests/unictype/test-pr_line_separator.c: Likewise.
48151         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
48152         * tests/unictype/test-pr_lowercase.c: Likewise.
48153         * tests/unictype/test-pr_math.c: Likewise.
48154         * tests/unictype/test-pr_non_break.c: Likewise.
48155         * tests/unictype/test-pr_not_a_character.c: Likewise.
48156         * tests/unictype/test-pr_numeric.c: Likewise.
48157         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
48158         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
48159         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
48160         * tests/unictype/test-pr_other_id_continue.c: Likewise.
48161         * tests/unictype/test-pr_other_id_start.c: Likewise.
48162         * tests/unictype/test-pr_other_lowercase.c: Likewise.
48163         * tests/unictype/test-pr_other_math.c: Likewise.
48164         * tests/unictype/test-pr_other_uppercase.c: Likewise.
48165         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
48166         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
48167         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
48168         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
48169         * tests/unictype/test-pr_private_use.c: Likewise.
48170         * tests/unictype/test-pr_punctuation.c: Likewise.
48171         * tests/unictype/test-pr_quotation_mark.c: Likewise.
48172         * tests/unictype/test-pr_radical.c: Likewise.
48173         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
48174         * tests/unictype/test-pr_soft_dotted.c: Likewise.
48175         * tests/unictype/test-pr_space.c: Likewise.
48176         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
48177         * tests/unictype/test-pr_titlecase.c: Likewise.
48178         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
48179         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
48180         * tests/unictype/test-pr_uppercase.c: Likewise.
48181         * tests/unictype/test-pr_variation_selector.c: Likewise.
48182         * tests/unictype/test-pr_white_space.c: Likewise.
48183         * tests/unictype/test-pr_xid_continue.c: Likewise.
48184         * tests/unictype/test-pr_xid_start.c: Likewise.
48185         * tests/unictype/test-pr_zero_width.c: Likewise.
48186         * tests/unictype/test-sy_c_whitespace.c: Likewise.
48187         * tests/unictype/test-sy_java_whitespace.c: Likewise.
48188
48189 2007-11-12  Bruno Haible  <bruno@clisp.org>
48190
48191         Unicode character classification functions.
48192         * lib/unictype.h: New file.
48193         * modules/unictype/base: New file.
48194         * modules/unictype/category-L: New file.
48195         * modules/unictype/category-Lu: New file.
48196         * modules/unictype/category-Ll: New file.
48197         * modules/unictype/category-Lt: New file.
48198         * modules/unictype/category-Lm: New file.
48199         * modules/unictype/category-Lo: New file.
48200         * modules/unictype/category-M: New file.
48201         * modules/unictype/category-Mn: New file.
48202         * modules/unictype/category-Mc: New file.
48203         * modules/unictype/category-Me: New file.
48204         * modules/unictype/category-N: New file.
48205         * modules/unictype/category-Nd: New file.
48206         * modules/unictype/category-Nl: New file.
48207         * modules/unictype/category-No: New file.
48208         * modules/unictype/category-P: New file.
48209         * modules/unictype/category-Pc: New file.
48210         * modules/unictype/category-Pd: New file.
48211         * modules/unictype/category-Ps: New file.
48212         * modules/unictype/category-Pe: New file.
48213         * modules/unictype/category-Pi: New file.
48214         * modules/unictype/category-Pf: New file.
48215         * modules/unictype/category-Po: New file.
48216         * modules/unictype/category-S: New file.
48217         * modules/unictype/category-Sm: New file.
48218         * modules/unictype/category-Sc: New file.
48219         * modules/unictype/category-Sk: New file.
48220         * modules/unictype/category-So: New file.
48221         * modules/unictype/category-Z: New file.
48222         * modules/unictype/category-Zs: New file.
48223         * modules/unictype/category-Zl: New file.
48224         * modules/unictype/category-Zp: New file.
48225         * modules/unictype/category-C: New file.
48226         * modules/unictype/category-Cc: New file.
48227         * modules/unictype/category-Cf: New file.
48228         * modules/unictype/category-Cs: New file.
48229         * modules/unictype/category-Co: New file.
48230         * modules/unictype/category-Cn: New file.
48231         * modules/unictype/category-or: New file.
48232         * modules/unictype/category-of: New file.
48233         * modules/unictype/category-test: New file.
48234         * modules/unictype/category-test-withtable: New file.
48235         * modules/unictype/category-byname: New file.
48236         * modules/unictype/category-none: New file.
48237         * modules/unictype/category-and: New file.
48238         * modules/unictype/category-and-not: New file.
48239         * modules/unictype/category-name: New file.
48240         * modules/unictype/combining-class: New file.
48241         * modules/unictype/category-all: New file.
48242         * modules/unictype/bidicategory-all: New file.
48243         * modules/unictype/bidicategory-byname: New file.
48244         * modules/unictype/bidicategory-name: New file.
48245         * modules/unictype/bidicategory-of: New file.
48246         * modules/unictype/bidicategory-test: New file.
48247         * modules/unictype/decimal-digit: New file.
48248         * modules/unictype/digit: New file.
48249         * modules/unictype/numeric: New file.
48250         * modules/unictype/mirror: New file.
48251         * modules/unictype/property-white-space: New file.
48252         * modules/unictype/property-alphabetic: New file.
48253         * modules/unictype/property-other-alphabetic: New file.
48254         * modules/unictype/property-not-a-character: New file.
48255         * modules/unictype/property-default-ignorable-code-point: New file.
48256         * modules/unictype/property-other-default-ignorable-code-point: New
48257         file.
48258         * modules/unictype/property-deprecated: New file.
48259         * modules/unictype/property-logical-order-exception: New file.
48260         * modules/unictype/property-variation-selector: New file.
48261         * modules/unictype/property-private-use: New file.
48262         * modules/unictype/property-unassigned-code-value: New file.
48263         * modules/unictype/property-uppercase: New file.
48264         * modules/unictype/property-other-uppercase: New file.
48265         * modules/unictype/property-lowercase: New file.
48266         * modules/unictype/property-other-lowercase: New file.
48267         * modules/unictype/property-titlecase: New file.
48268         * modules/unictype/property-soft-dotted: New file.
48269         * modules/unictype/property-id-start: New file.
48270         * modules/unictype/property-other-id-start: New file.
48271         * modules/unictype/property-id-continue: New file.
48272         * modules/unictype/property-other-id-continue: New file.
48273         * modules/unictype/property-xid-start: New file.
48274         * modules/unictype/property-xid-continue: New file.
48275         * modules/unictype/property-pattern-white-space: New file.
48276         * modules/unictype/property-pattern-syntax: New file.
48277         * modules/unictype/property-join-control: New file.
48278         * modules/unictype/property-grapheme-base: New file.
48279         * modules/unictype/property-grapheme-extend: New file.
48280         * modules/unictype/property-other-grapheme-extend: New file.
48281         * modules/unictype/property-grapheme-link: New file.
48282         * modules/unictype/property-bidi-control: New file.
48283         * modules/unictype/property-bidi-left-to-right: New file.
48284         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
48285         * modules/unictype/property-bidi-arabic-right-to-left: New file.
48286         * modules/unictype/property-bidi-european-digit: New file.
48287         * modules/unictype/property-bidi-eur-num-separator: New file.
48288         * modules/unictype/property-bidi-eur-num-terminator: New file.
48289         * modules/unictype/property-bidi-arabic-digit: New file.
48290         * modules/unictype/property-bidi-common-separator: New file.
48291         * modules/unictype/property-bidi-block-separator: New file.
48292         * modules/unictype/property-bidi-segment-separator: New file.
48293         * modules/unictype/property-bidi-whitespace: New file.
48294         * modules/unictype/property-bidi-non-spacing-mark: New file.
48295         * modules/unictype/property-bidi-boundary-neutral: New file.
48296         * modules/unictype/property-bidi-pdf: New file.
48297         * modules/unictype/property-bidi-embedding-or-override: New file.
48298         * modules/unictype/property-bidi-other-neutral: New file.
48299         * modules/unictype/property-hex-digit: New file.
48300         * modules/unictype/property-ascii-hex-digit: New file.
48301         * modules/unictype/property-ideographic: New file.
48302         * modules/unictype/property-unified-ideograph: New file.
48303         * modules/unictype/property-radical: New file.
48304         * modules/unictype/property-ids-binary-operator: New file.
48305         * modules/unictype/property-ids-trinary-operator: New file.
48306         * modules/unictype/property-zero-width: New file.
48307         * modules/unictype/property-space: New file.
48308         * modules/unictype/property-non-break: New file.
48309         * modules/unictype/property-iso-control: New file.
48310         * modules/unictype/property-format-control: New file.
48311         * modules/unictype/property-dash: New file.
48312         * modules/unictype/property-hyphen: New file.
48313         * modules/unictype/property-punctuation: New file.
48314         * modules/unictype/property-line-separator: New file.
48315         * modules/unictype/property-paragraph-separator: New file.
48316         * modules/unictype/property-quotation-mark: New file.
48317         * modules/unictype/property-sentence-terminal: New file.
48318         * modules/unictype/property-terminal-punctuation: New file.
48319         * modules/unictype/property-currency-symbol: New file.
48320         * modules/unictype/property-math: New file.
48321         * modules/unictype/property-other-math: New file.
48322         * modules/unictype/property-paired-punctuation: New file.
48323         * modules/unictype/property-left-of-pair: New file.
48324         * modules/unictype/property-combining: New file.
48325         * modules/unictype/property-composite: New file.
48326         * modules/unictype/property-decimal-digit: New file.
48327         * modules/unictype/property-numeric: New file.
48328         * modules/unictype/property-diacritic: New file.
48329         * modules/unictype/property-extender: New file.
48330         * modules/unictype/property-ignorable-control: New file.
48331         * modules/unictype/property-test: New file.
48332         * modules/unictype/property-byname: New file.
48333         * modules/unictype/property-all: New file.
48334         * modules/unictype/scripts: New file.
48335         * modules/unictype/scripts-all: New file.
48336         * modules/unictype/block-of: New file.
48337         * modules/unictype/block-test: New file.
48338         * modules/unictype/block-list: New file.
48339         * modules/unictype/block-all: New file.
48340         * modules/unictype/syntax-c-whitespace: New file.
48341         * modules/unictype/syntax-java-whitespace: New file.
48342         * modules/unictype/syntax-c-ident: New file.
48343         * modules/unictype/syntax-java-ident: New file.
48344         * modules/unictype/ctype-alnum: New file.
48345         * modules/unictype/ctype-alpha: New file.
48346         * modules/unictype/ctype-cntrl: New file.
48347         * modules/unictype/ctype-digit: New file.
48348         * modules/unictype/ctype-graph: New file.
48349         * modules/unictype/ctype-lower: New file.
48350         * modules/unictype/ctype-print: New file.
48351         * modules/unictype/ctype-punct: New file.
48352         * modules/unictype/ctype-space: New file.
48353         * modules/unictype/ctype-upper: New file.
48354         * modules/unictype/ctype-xdigit: New file.
48355         * modules/unictype/ctype-blank: New file.
48356         * lib/unictype/bidi_byname.c: New file.
48357         * lib/unictype/bidi_name.c: New file.
48358         * lib/unictype/bidi_of.c: New file.
48359         * lib/unictype/bidi_test.c: New file.
48360         * lib/unictype/bitmap.h: New file.
48361         * lib/unictype/block_test.c: New file.
48362         * lib/unictype/blocks.c: New file.
48363         * lib/unictype/categ_C.c: New file.
48364         * lib/unictype/categ_Cc.c: New file.
48365         * lib/unictype/categ_Cf.c: New file.
48366         * lib/unictype/categ_Cn.c: New file.
48367         * lib/unictype/categ_Co.c: New file.
48368         * lib/unictype/categ_Cs.c: New file.
48369         * lib/unictype/categ_L.c: New file.
48370         * lib/unictype/categ_Ll.c: New file.
48371         * lib/unictype/categ_Lm.c: New file.
48372         * lib/unictype/categ_Lo.c: New file.
48373         * lib/unictype/categ_Lt.c: New file.
48374         * lib/unictype/categ_Lu.c: New file.
48375         * lib/unictype/categ_M.c: New file.
48376         * lib/unictype/categ_Mc.c: New file.
48377         * lib/unictype/categ_Me.c: New file.
48378         * lib/unictype/categ_Mn.c: New file.
48379         * lib/unictype/categ_N.c: New file.
48380         * lib/unictype/categ_Nd.c: New file.
48381         * lib/unictype/categ_Nl.c: New file.
48382         * lib/unictype/categ_No.c: New file.
48383         * lib/unictype/categ_P.c: New file.
48384         * lib/unictype/categ_Pc.c: New file.
48385         * lib/unictype/categ_Pd.c: New file.
48386         * lib/unictype/categ_Pe.c: New file.
48387         * lib/unictype/categ_Pf.c: New file.
48388         * lib/unictype/categ_Pi.c: New file.
48389         * lib/unictype/categ_Po.c: New file.
48390         * lib/unictype/categ_Ps.c: New file.
48391         * lib/unictype/categ_S.c: New file.
48392         * lib/unictype/categ_Sc.c: New file.
48393         * lib/unictype/categ_Sk.c: New file.
48394         * lib/unictype/categ_Sm.c: New file.
48395         * lib/unictype/categ_So.c: New file.
48396         * lib/unictype/categ_Z.c: New file.
48397         * lib/unictype/categ_Zl.c: New file.
48398         * lib/unictype/categ_Zp.c: New file.
48399         * lib/unictype/categ_Zs.c: New file.
48400         * lib/unictype/categ_and.c: New file.
48401         * lib/unictype/categ_and_not.c: New file.
48402         * lib/unictype/categ_byname.c: New file.
48403         * lib/unictype/categ_name.c: New file.
48404         * lib/unictype/categ_none.c: New file.
48405         * lib/unictype/categ_of.c: New file.
48406         * lib/unictype/categ_or.c: New file.
48407         * lib/unictype/categ_test.c: New file.
48408         * lib/unictype/combining.c: New file.
48409         * lib/unictype/ctype_alnum.c: New file.
48410         * lib/unictype/ctype_alpha.c: New file.
48411         * lib/unictype/ctype_blank.c: New file.
48412         * lib/unictype/ctype_cntrl.c: New file.
48413         * lib/unictype/ctype_digit.c: New file.
48414         * lib/unictype/ctype_graph.c: New file.
48415         * lib/unictype/ctype_lower.c: New file.
48416         * lib/unictype/ctype_print.c: New file.
48417         * lib/unictype/ctype_punct.c: New file.
48418         * lib/unictype/ctype_space.c: New file.
48419         * lib/unictype/ctype_upper.c: New file.
48420         * lib/unictype/ctype_xdigit.c: New file.
48421         * lib/unictype/decdigit.c: New file.
48422         * lib/unictype/digit.c: New file.
48423         * lib/unictype/identsyntaxmap.h: New file.
48424         * lib/unictype/mirror.c: New file.
48425         * lib/unictype/numeric.c: New file.
48426         * lib/unictype/pr_alphabetic.c: New file.
48427         * lib/unictype/pr_ascii_hex_digit.c: New file.
48428         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48429         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48430         * lib/unictype/pr_bidi_block_separator.c: New file.
48431         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48432         * lib/unictype/pr_bidi_common_separator.c: New file.
48433         * lib/unictype/pr_bidi_control.c: New file.
48434         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48435         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48436         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48437         * lib/unictype/pr_bidi_european_digit.c: New file.
48438         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48439         * lib/unictype/pr_bidi_left_to_right.c: New file.
48440         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48441         * lib/unictype/pr_bidi_other_neutral.c: New file.
48442         * lib/unictype/pr_bidi_pdf.c: New file.
48443         * lib/unictype/pr_bidi_segment_separator.c: New file.
48444         * lib/unictype/pr_bidi_whitespace.c: New file.
48445         * lib/unictype/pr_byname.c: New file.
48446         * lib/unictype/pr_byname.gperf: New file.
48447         * lib/unictype/pr_combining.c: New file.
48448         * lib/unictype/pr_composite.c: New file.
48449         * lib/unictype/pr_currency_symbol.c: New file.
48450         * lib/unictype/pr_dash.c: New file.
48451         * lib/unictype/pr_decimal_digit.c: New file.
48452         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48453         * lib/unictype/pr_deprecated.c: New file.
48454         * lib/unictype/pr_diacritic.c: New file.
48455         * lib/unictype/pr_extender.c: New file.
48456         * lib/unictype/pr_format_control.c: New file.
48457         * lib/unictype/pr_grapheme_base.c: New file.
48458         * lib/unictype/pr_grapheme_extend.c: New file.
48459         * lib/unictype/pr_grapheme_link.c: New file.
48460         * lib/unictype/pr_hex_digit.c: New file.
48461         * lib/unictype/pr_hyphen.c: New file.
48462         * lib/unictype/pr_id_continue.c: New file.
48463         * lib/unictype/pr_id_start.c: New file.
48464         * lib/unictype/pr_ideographic.c: New file.
48465         * lib/unictype/pr_ids_binary_operator.c: New file.
48466         * lib/unictype/pr_ids_trinary_operator.c: New file.
48467         * lib/unictype/pr_ignorable_control.c: New file.
48468         * lib/unictype/pr_iso_control.c: New file.
48469         * lib/unictype/pr_join_control.c: New file.
48470         * lib/unictype/pr_left_of_pair.c: New file.
48471         * lib/unictype/pr_line_separator.c: New file.
48472         * lib/unictype/pr_logical_order_exception.c: New file.
48473         * lib/unictype/pr_lowercase.c: New file.
48474         * lib/unictype/pr_math.c: New file.
48475         * lib/unictype/pr_non_break.c: New file.
48476         * lib/unictype/pr_not_a_character.c: New file.
48477         * lib/unictype/pr_numeric.c: New file.
48478         * lib/unictype/pr_other_alphabetic.c: New file.
48479         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48480         * lib/unictype/pr_other_grapheme_extend.c: New file.
48481         * lib/unictype/pr_other_id_continue.c: New file.
48482         * lib/unictype/pr_other_id_start.c: New file.
48483         * lib/unictype/pr_other_lowercase.c: New file.
48484         * lib/unictype/pr_other_math.c: New file.
48485         * lib/unictype/pr_other_uppercase.c: New file.
48486         * lib/unictype/pr_paired_punctuation.c: New file.
48487         * lib/unictype/pr_paragraph_separator.c: New file.
48488         * lib/unictype/pr_pattern_syntax.c: New file.
48489         * lib/unictype/pr_pattern_white_space.c: New file.
48490         * lib/unictype/pr_private_use.c: New file.
48491         * lib/unictype/pr_punctuation.c: New file.
48492         * lib/unictype/pr_quotation_mark.c: New file.
48493         * lib/unictype/pr_radical.c: New file.
48494         * lib/unictype/pr_sentence_terminal.c: New file.
48495         * lib/unictype/pr_soft_dotted.c: New file.
48496         * lib/unictype/pr_space.c: New file.
48497         * lib/unictype/pr_terminal_punctuation.c: New file.
48498         * lib/unictype/pr_test.c: New file.
48499         * lib/unictype/pr_titlecase.c: New file.
48500         * lib/unictype/pr_unassigned_code_value.c: New file.
48501         * lib/unictype/pr_unified_ideograph.c: New file.
48502         * lib/unictype/pr_uppercase.c: New file.
48503         * lib/unictype/pr_variation_selector.c: New file.
48504         * lib/unictype/pr_white_space.c: New file.
48505         * lib/unictype/pr_xid_continue.c: New file.
48506         * lib/unictype/pr_xid_start.c: New file.
48507         * lib/unictype/pr_zero_width.c: New file.
48508         * lib/unictype/scripts.c: New file.
48509         * lib/unictype/sy_c_ident.c: New file.
48510         * lib/unictype/sy_c_whitespace.c: New file.
48511         * lib/unictype/sy_java_ident.c: New file.
48512         * lib/unictype/sy_java_whitespace.c: New file.
48513
48514         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48515         Unicode 5.0.0.
48516         * lib/unictype/blocks.h: Likewise.
48517         * lib/unictype/categ_C.h: Likewise.
48518         * lib/unictype/categ_Cc.h: Likewise.
48519         * lib/unictype/categ_Cf.h: Likewise.
48520         * lib/unictype/categ_Cn.h: Likewise.
48521         * lib/unictype/categ_Co.h: Likewise.
48522         * lib/unictype/categ_Cs.h: Likewise.
48523         * lib/unictype/categ_L.h: Likewise.
48524         * lib/unictype/categ_Ll.h: Likewise.
48525         * lib/unictype/categ_Lm.h: Likewise.
48526         * lib/unictype/categ_Lo.h: Likewise.
48527         * lib/unictype/categ_Lt.h: Likewise.
48528         * lib/unictype/categ_Lu.h: Likewise.
48529         * lib/unictype/categ_M.h: Likewise.
48530         * lib/unictype/categ_Mc.h: Likewise.
48531         * lib/unictype/categ_Me.h: Likewise.
48532         * lib/unictype/categ_Mn.h: Likewise.
48533         * lib/unictype/categ_N.h: Likewise.
48534         * lib/unictype/categ_Nd.h: Likewise.
48535         * lib/unictype/categ_Nl.h: Likewise.
48536         * lib/unictype/categ_No.h: Likewise.
48537         * lib/unictype/categ_P.h: Likewise.
48538         * lib/unictype/categ_Pc.h: Likewise.
48539         * lib/unictype/categ_Pd.h: Likewise.
48540         * lib/unictype/categ_Pe.h: Likewise.
48541         * lib/unictype/categ_Pf.h: Likewise.
48542         * lib/unictype/categ_Pi.h: Likewise.
48543         * lib/unictype/categ_Po.h: Likewise.
48544         * lib/unictype/categ_Ps.h: Likewise.
48545         * lib/unictype/categ_S.h: Likewise.
48546         * lib/unictype/categ_Sc.h: Likewise.
48547         * lib/unictype/categ_Sk.h: Likewise.
48548         * lib/unictype/categ_Sm.h: Likewise.
48549         * lib/unictype/categ_So.h: Likewise.
48550         * lib/unictype/categ_Z.h: Likewise.
48551         * lib/unictype/categ_Zl.h: Likewise.
48552         * lib/unictype/categ_Zp.h: Likewise.
48553         * lib/unictype/categ_Zs.h: Likewise.
48554         * lib/unictype/categ_of.h: Likewise.
48555         * lib/unictype/combining.h: Likewise.
48556         * lib/unictype/ctype_alnum.h: Likewise.
48557         * lib/unictype/ctype_alpha.h: Likewise.
48558         * lib/unictype/ctype_blank.h: Likewise.
48559         * lib/unictype/ctype_cntrl.h: Likewise.
48560         * lib/unictype/ctype_digit.h: Likewise.
48561         * lib/unictype/ctype_graph.h: Likewise.
48562         * lib/unictype/ctype_lower.h: Likewise.
48563         * lib/unictype/ctype_print.h: Likewise.
48564         * lib/unictype/ctype_punct.h: Likewise.
48565         * lib/unictype/ctype_space.h: Likewise.
48566         * lib/unictype/ctype_upper.h: Likewise.
48567         * lib/unictype/ctype_xdigit.h: Likewise.
48568         * lib/unictype/decdigit.h: Likewise.
48569         * lib/unictype/digit.h: Likewise.
48570         * lib/unictype/mirror.h: Likewise.
48571         * lib/unictype/numeric.h: Likewise.
48572         * lib/unictype/pr_alphabetic.h: Likewise.
48573         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48574         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48575         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48576         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48577         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48578         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48579         * lib/unictype/pr_bidi_control.h: Likewise.
48580         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48581         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48582         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48583         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48584         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48585         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48586         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48587         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48588         * lib/unictype/pr_bidi_pdf.h: Likewise.
48589         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48590         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48591         * lib/unictype/pr_combining.h: Likewise.
48592         * lib/unictype/pr_composite.h: Likewise.
48593         * lib/unictype/pr_currency_symbol.h: Likewise.
48594         * lib/unictype/pr_dash.h: Likewise.
48595         * lib/unictype/pr_decimal_digit.h: Likewise.
48596         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48597         * lib/unictype/pr_deprecated.h: Likewise.
48598         * lib/unictype/pr_diacritic.h: Likewise.
48599         * lib/unictype/pr_extender.h: Likewise.
48600         * lib/unictype/pr_format_control.h: Likewise.
48601         * lib/unictype/pr_grapheme_base.h: Likewise.
48602         * lib/unictype/pr_grapheme_extend.h: Likewise.
48603         * lib/unictype/pr_grapheme_link.h: Likewise.
48604         * lib/unictype/pr_hex_digit.h: Likewise.
48605         * lib/unictype/pr_hyphen.h: Likewise.
48606         * lib/unictype/pr_id_continue.h: Likewise.
48607         * lib/unictype/pr_id_start.h: Likewise.
48608         * lib/unictype/pr_ideographic.h: Likewise.
48609         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48610         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48611         * lib/unictype/pr_ignorable_control.h: Likewise.
48612         * lib/unictype/pr_iso_control.h: Likewise.
48613         * lib/unictype/pr_join_control.h: Likewise.
48614         * lib/unictype/pr_left_of_pair.h: Likewise.
48615         * lib/unictype/pr_line_separator.h: Likewise.
48616         * lib/unictype/pr_logical_order_exception.h: Likewise.
48617         * lib/unictype/pr_lowercase.h: Likewise.
48618         * lib/unictype/pr_math.h: Likewise.
48619         * lib/unictype/pr_non_break.h: Likewise.
48620         * lib/unictype/pr_not_a_character.h: Likewise.
48621         * lib/unictype/pr_numeric.h: Likewise.
48622         * lib/unictype/pr_other_alphabetic.h: Likewise.
48623         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48624         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48625         * lib/unictype/pr_other_id_continue.h: Likewise.
48626         * lib/unictype/pr_other_id_start.h: Likewise.
48627         * lib/unictype/pr_other_lowercase.h: Likewise.
48628         * lib/unictype/pr_other_math.h: Likewise.
48629         * lib/unictype/pr_other_uppercase.h: Likewise.
48630         * lib/unictype/pr_paired_punctuation.h: Likewise.
48631         * lib/unictype/pr_paragraph_separator.h: Likewise.
48632         * lib/unictype/pr_pattern_syntax.h: Likewise.
48633         * lib/unictype/pr_pattern_white_space.h: Likewise.
48634         * lib/unictype/pr_private_use.h: Likewise.
48635         * lib/unictype/pr_punctuation.h: Likewise.
48636         * lib/unictype/pr_quotation_mark.h: Likewise.
48637         * lib/unictype/pr_radical.h: Likewise.
48638         * lib/unictype/pr_sentence_terminal.h: Likewise.
48639         * lib/unictype/pr_soft_dotted.h: Likewise.
48640         * lib/unictype/pr_space.h: Likewise.
48641         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48642         * lib/unictype/pr_titlecase.h: Likewise.
48643         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48644         * lib/unictype/pr_unified_ideograph.h: Likewise.
48645         * lib/unictype/pr_uppercase.h: Likewise.
48646         * lib/unictype/pr_variation_selector.h: Likewise.
48647         * lib/unictype/pr_white_space.h: Likewise.
48648         * lib/unictype/pr_xid_continue.h: Likewise.
48649         * lib/unictype/pr_xid_start.h: Likewise.
48650         * lib/unictype/pr_zero_width.h: Likewise.
48651         * lib/unictype/scripts.h: Likewise.
48652         * lib/unictype/scripts_byname.gperf: Likewise.
48653         * lib/unictype/sy_c_ident.h: Likewise.
48654         * lib/unictype/sy_c_whitespace.h: Likewise.
48655         * lib/unictype/sy_java_ident.h: Likewise.
48656         * lib/unictype/sy_java_whitespace.h: Likewise.
48657
48658         * lib/unictype/Makefile: New file.
48659         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48660         glibc.
48661         * lib/unictype/3level.h: New file, copied from glibc.
48662         * lib/unictype/3levelbit.h: New file.
48663
48664 2007-11-11  Bruno Haible  <bruno@clisp.org>
48665
48666         * modules/gperf: New file.
48667         * modules/iconv_open (Depends-on): Add it.
48668         (Makefile.am): Remove the GPERF definition.
48669
48670 2007-11-11  Bruno Haible  <bruno@clisp.org>
48671
48672         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48673         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48674
48675 2007-11-11  Bruno Haible  <bruno@clisp.org>
48676
48677         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48678         (usage): Remove function.
48679
48680 2007-11-11  Bruno Haible  <bruno@clisp.org>
48681
48682         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48683         gl_FUNC_CEILF_LIBS.
48684         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48685         gl_FUNC_CEIL_LIBS.
48686         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48687         gl_FUNC_CEILL_LIBS.
48688         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48689         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48690         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48691
48692 2007-11-11  Bruno Haible  <bruno@clisp.org>
48693
48694         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48695         roundf were declared but do not exist on functions.
48696         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48697         roundl were declared but do not exist on functions.
48698         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48699         HAVE_FLOORL_AND_CEILL, respectively.
48700         Needed for Sun C on Solaris 10.
48701
48702 2007-11-11  Bruno Haible  <bruno@clisp.org>
48703
48704         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48705         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48706         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48707         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48708         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48709         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48710         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48711         HAVE_DECL_ROUNDF.
48712         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48713         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48715         of HAVE_DECL_ROUND*.
48716         * modules/math (Makefile.am): Update.
48717
48718 2007-11-10  Bruno Haible  <bruno@clisp.org>
48719
48720         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48721         ptrdiff_t as m4/intl.m4.
48722
48723 2007-11-10  Jim Meyering  <meyering@redhat.com>
48724
48725         Avoid link failure for the argmatch test.
48726         * tests/test-argmatch.c (usage): Define function to avoid a link
48727         failure: argmatch_die requires a usage function.
48728
48729 2007-11-09  Bruno Haible  <bruno@clisp.org>
48730
48731         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48732         * doc/functions/vsnprintf.texi: Likewise.
48733         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48734         with a size argument < 2.
48735
48736 2007-11-09  Bruno Haible  <bruno@clisp.org>
48737
48738         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48739         buffer. Fixes an inefficiency introduced on 2007-11-03.
48740
48741 2007-11-09  Bruno Haible  <bruno@clisp.org>
48742
48743         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48744         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48745
48746 2007-11-08  Jim Meyering  <meyering@redhat.com>
48747
48748         Change cache variable name prefix "jm_" to "gl_" everywhere.
48749         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48750         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48751         * m4/uptime.m4: s/gl_/jm_/
48752
48753 2007-11-07  Bruno Haible  <bruno@clisp.org>
48754
48755         Update to GNU gettext 0.17.
48756         * m4/intl.m4: Update to GNU gettext 0.17.
48757         * m4/po.m4: Likewise.
48758         * modules/gettext (Files): Remove m4/ulonglong.m4.
48759         (configure.ac): Require gettext infrastructure from version 0.17.
48760
48761 2007-11-06  Bruno Haible  <bruno@clisp.org>
48762
48763         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48764         symbolic values are not defined in a public header.
48765         * lib/freadable.c (freadable) [QNX]: Likewise.
48766         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48767         * lib/freading.c (freading) [QNX]: Likewise.
48768         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48769         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48770         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48771         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48772         Reported by Alain Magloire.
48773
48774         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48775
48776 2007-11-05  Bruno Haible  <bruno@clisp.org>
48777
48778         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48779         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48780         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48781         Reported by Eric Blake.
48782
48783 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48784             Bruno Haible  <bruno@clisp.org>
48785
48786         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48787         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48788         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48789         (malloc): Undefine also before including <stdlib.h>.
48790         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48791         Needed on OSF/1 4.0.
48792
48793 2007-11-05  Jim Meyering  <meyering@redhat.com>
48794
48795         git-version-gen: sync from coreutils.
48796         * build-aux/git-version-gen: Add comments.
48797         Change the first '-' to '.' in the snapshot version string,
48798         e.g., 6.9-377-08144 -> 6.9.377-08144
48799         Remove first parameter.
48800         Don't declare a version "-dirty" merely because a time
48801         stamp has changed.
48802
48803 2007-11-04  Bruno Haible  <bruno@clisp.org>
48804
48805         * lib/lock.h: Protect all macro definitions containing an 'if'
48806         statement through a "do { ... } while (0)".
48807         * lib/tls.h: Likewise.
48808
48809 2007-11-04  Bruno Haible  <bruno@clisp.org>
48810
48811         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48812
48813 2007-11-04  Bruno Haible  <bruno@clisp.org>
48814
48815         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48816         * modules/fprintf-posix (Depends-on): Add nocrash.
48817         * modules/snprintf-posix (Depends-on): Likewise.
48818         * modules/sprintf-posix (Depends-on): Likewise.
48819         * modules/vasnprintf-posix (Depends-on): Likewise.
48820         * modules/vasprintf-posix (Depends-on): Likewise.
48821         * modules/vfprintf-posix (Depends-on): Likewise.
48822         * modules/vsnprintf-posix (Depends-on): Likewise.
48823         * modules/vsprintf-posix (Depends-on): Likewise.
48824         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48825         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48826         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48827         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48828         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48829         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48830         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48831
48832 2007-11-04  Bruno Haible  <bruno@clisp.org>
48833
48834         * modules/nocrash: New file.
48835         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48836         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48837
48838 2007-11-04  Bruno Haible  <bruno@clisp.org>
48839
48840         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48841         precision handling.
48842         * tests/test-vasprintf-posix.c (test_function): Likewise.
48843         * tests/test-snprintf-posix.h (test_function): Likewise.
48844         * tests/test-sprintf-posix.h (test_function): Likewise.
48845
48846         Fix *printf behaviour for large precisions on mingw and BeOS.
48847         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48848         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48849         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48850         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48851         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48852         gl_PRINTF_PRECISION and test its result. Invoke
48853         gl_PREREQ_VASNPRINTF_PRECISION.
48854         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48855         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48856         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48857         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48858         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48859         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48860         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48861         * doc/functions/fprintf.texi: Update.
48862         * doc/functions/printf.texi: Update.
48863         * doc/functions/snprintf.texi: Update.
48864         * doc/functions/sprintf.texi: Update.
48865         * doc/functions/vfprintf.texi: Update.
48866         * doc/functions/vprintf.texi: Update.
48867         * doc/functions/vsnprintf.texi: Update.
48868         * doc/functions/vsprintf.texi: Update.
48869
48870 2007-11-04  Bruno Haible  <bruno@clisp.org>
48871
48872         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
48873
48874 2007-11-04  Bruno Haible  <bruno@clisp.org>
48875
48876         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
48877         Reported by Sylvain Beucler <beuc@gnu.org>.
48878
48879 2007-11-03  Bruno Haible  <bruno@clisp.org>
48880
48881         * tests/test-fprintf-posix2.sh: New file.
48882         * tests/test-fprintf-posix2.c: New file.
48883         * modules/fprintf-posix-tests (Files): Add them.
48884         (TESTS): Add test-fprintf-posix2.sh.
48885         (configure.ac): Check for getrlimit and setrlimit.
48886         (check_PROGRAMS): Add test-fprintf-posix2.
48887
48888         * tests/test-printf-posix2.sh: New file.
48889         * tests/test-printf-posix2.c: New file.
48890         * modules/printf-posix-tests (Files): Add them.
48891         (TESTS): Add test-printf-posix2.sh.
48892         (configure.ac): Check for getrlimit and setrlimit.
48893         (check_PROGRAMS): Add test-printf-posix2.
48894
48895         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
48896         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
48897         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
48898         (decode_double): New function, copied from decode_long_double.
48899         (scale10_round_decimal_decoded): New function, extracted from
48900         scale10_round_decimal_long_double.
48901         (scale10_round_decimal_long_double): Use it.
48902         (scale10_round_decimal_double): New function.
48903         (floorlog10): New function.
48904         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
48905         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
48906         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48907         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48908         gl_PRINTF_ENOMEM and test its result. Invoke
48909         gl_PREREQ_VASNPRINTF_ENOMEM.
48910         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48911         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48912         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48913         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48914         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48915         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48916         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48917         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
48918         * modules/snprintf-posix (Depends-on): Likewise.
48919         * modules/sprintf-posix (Depends-on): Likewise.
48920         * modules/vasnprintf-posix (Depends-on): Likewise.
48921         * modules/vasprintf-posix (Depends-on): Likewise.
48922         * modules/vfprintf-posix (Depends-on): Likewise.
48923         * modules/vsnprintf-posix (Depends-on): Likewise.
48924         * modules/vsprintf-posix (Depends-on): Likewise.
48925         * doc/functions/fprintf.texi: Update.
48926         * doc/functions/printf.texi: Update.
48927         * doc/functions/snprintf.texi: Update.
48928         * doc/functions/sprintf.texi: Update.
48929         * doc/functions/vfprintf.texi: Update.
48930         * doc/functions/vprintf.texi: Update.
48931         * doc/functions/vsnprintf.texi: Update.
48932         * doc/functions/vsprintf.texi: Update.
48933
48934 2007-11-03  Bruno Haible  <bruno@clisp.org>
48935
48936         * modules/frexp-nolibm-tests: New file.
48937
48938         * modules/frexp-nolibm: New file.
48939         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
48940
48941 2007-11-03  Bruno Haible  <bruno@clisp.org>
48942
48943         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
48944         value is C99 compliant.
48945         Needed for OSF/1 5.1.
48946
48947 2007-11-03  Bruno Haible  <bruno@clisp.org>
48948
48949         Fix out-of-memory handling of vasnprintf.
48950         * lib/printf-parse.c: Include <errno.h>.
48951         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
48952         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
48953         is already set.
48954
48955 2007-11-02  Eric Blake  <ebb9@byu.net>
48956
48957         Fix tests on cygwin.
48958         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
48959
48960 2007-11-01  Bruno Haible  <bruno@clisp.org>
48961
48962         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
48963         warning.
48964         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
48965         needed for POSIX compatibility.
48966
48967 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48968
48969         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
48970         for compatibility with GNU.
48971
48972 2007-11-01  Bruno Haible  <bruno@clisp.org>
48973
48974         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
48975         (putenv): Renamed from rpl_putenv. Change argument type from
48976         'const char *' to 'char *'.
48977         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
48978         of defining putenv in config.h, just set REPLACE_PUTENV.
48979         * modules/putenv (Depends-on): Add stdlib.
48980         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48981         (Include): Use <stdlib.h>.
48982         * lib/stdlib.in.h (putenv): New declaration.
48983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
48984         REPLACE_PUTENV.
48985         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
48986         REPLACE_PUTENV.
48987         Needed for MacOS X 10.5.0.
48988         Reported by Peter O'Gorman <peter@pogma.com>.
48989
48990 2007-11-01  Jim Meyering  <meyering@redhat.com>
48991
48992         Treat an empty date string exactly like "0".
48993         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
48994         if the remaining date string (to be parsed) is empty, use "0".
48995         Reported by Mischa Molhoek and discussed in this thread:
48996         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
48997
48998 2007-10-31  Bruno Haible  <bruno@clisp.org>
48999
49000         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
49001         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
49002         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
49003         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
49004         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
49005         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
49006
49007 2007-10-31  Bruno Haible  <bruno@clisp.org>
49008
49009         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
49010         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
49011         (AC_TYPE_LONG_LONG_INT): Use it.
49012         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
49013         it as well.
49014         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
49015         to m4/longlong.m4.
49016         * modules/stdint (Files): Remove m4/ulonglong.m4.
49017         * modules/strtoull (Files): Use m4/longlong.m4 instead of
49018         m4/ulonglong.m4.
49019         * modules/strtoumax (Files): Likewise.
49020
49021 2007-10-30  Bruno Haible  <bruno@clisp.org>
49022
49023         * modules/xvasprintf-posix: New file.
49024         Suggested by Eric Blake.
49025
49026 2007-10-30  Bruno Haible  <bruno@clisp.org>
49027
49028         * modules/xprintf-posix-tests: New file.
49029         * tests/test-xprintf-posix.sh: New file.
49030         * tests/test-xprintf-posix.c: New file.
49031         * tests/test-xfprintf-posix.c: New file.
49032
49033         * modules/xprintf-posix: New file.
49034
49035 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49036
49037         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
49038         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
49039         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
49040
49041 2007-10-29  Bruno Haible  <bruno@clisp.org>
49042
49043         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
49044         contain the special marker '_cv_'.
49045         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49046         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49047         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49048         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49049         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49050         Reported by Ralf Wildenhues.
49051
49052 2007-10-29  Bruno Haible  <bruno@clisp.org>
49053
49054         * gnulib-tool (func_import): When --lgpl is not specified, set
49055         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
49056         GPLv3.
49057         Reported by Simon Josefsson.
49058
49059 2007-10-28  Bruno Haible  <bruno@clisp.org>
49060
49061         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
49062         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
49063         HAVE_DECL_ISFINITE.
49064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49065         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
49066         HAVE_DECL_ISFINITE.
49067
49068 2007-10-28  Bruno Haible  <bruno@clisp.org>
49069
49070         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
49071         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
49072
49073 2007-10-28  Bruno Haible  <bruno@clisp.org>
49074
49075         Fix link errors with Sun C 5.0 on Solaris 10.
49076         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
49077         function is declared but not present in the compiler's libm.
49078         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49079         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49080         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
49081         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
49082         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
49083         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
49084         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
49085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49086         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
49087         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
49088         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
49089         HAVE_DECL_FLOORL.
49090
49091 2007-10-28  Bruno Haible  <bruno@clisp.org>
49092
49093         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
49094         gl_FUNC_FLOORL. Cache the result.
49095         (gl_FUNC_FLOORL): Use it.
49096         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
49097         gl_FUNC_CEILL. Cache the result.
49098         (gl_FUNC_CEILL): Use it.
49099
49100         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
49101         gl_FUNC_FLOOR. Cache the result.
49102         (gl_FUNC_FLOOR): Use it.
49103         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
49104         gl_FUNC_CEIL. Cache the result.
49105         (gl_FUNC_CEIL): Use it.
49106
49107         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
49108         gl_FUNC_FLOORF. Cache the result.
49109         (gl_FUNC_FLOORF): Use it.
49110         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
49111         gl_FUNC_CEILF. Cache the result.
49112         (gl_FUNC_CEILF): Use it.
49113
49114 2007-10-28  Bruno Haible  <bruno@clisp.org>
49115
49116         * gnulib-tool: Allow specifying the LGPL version number through
49117         --lgpl=2 or --lgpl=3.
49118         (func_usage): Document --lgpl with argument.
49119         Handle --lgpl=... arguments.
49120         (func_import): Recognize also gl_LGPL calls with an argument. When
49121         --lgpl=2 is used and the module's license is just LGPL, report an
49122         error. Set sed_transform_lib_file according to the lgpl variable. In
49123         the generated files, use --lgpl or gl_LGPL invocations with argument,
49124         if necessary.
49125         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
49126         an LGPv2+ license.
49127         * doc/gnulib-tool.texi (Modified imports): Update explanation of
49128         gl_LGPL macro.
49129
49130 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49131             Bruno Haible  <bruno@clisp.org>
49132
49133         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
49134         (u16_uctomb_aux): Likewise.
49135         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
49136         !HAVE_INLINE.
49137         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
49138
49139 2007-10-28  Bruno Haible  <bruno@clisp.org>
49140
49141         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
49142         Invoke AM_GETTEXT_OPTION if it exists.
49143         * modules/vasprintf: Likewise.
49144         * modules/verror: Likewise.
49145         * modules/xprintf: Likewise.
49146         * modules/xvasprintf: Likewise.
49147
49148 2007-10-27  Ben Pfaff  <blp@gnu.org>
49149
49150         * lib/math.in.h: Define isfinite macro and prototypes for
49151         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
49152         implementations.
49153         * m4/math_h.m4: New substitutions for isfinite module.
49154         * lib/isfinite.c: New file.
49155         * m4/isfinite.m4: New file.
49156         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
49157         * modules/isfinite: New file.
49158         * modules/isfinite-tests: New file.
49159         * tests/tests-isfinite.c: New file.
49160         * doc/functions/isfinite.texi: Mention isfinite module.
49161         * MODULES.html.sh: Mention new module.
49162
49163 2007-10-27  Ben Pfaff  <blp@gnu.org>
49164
49165         Ralf Wildenhues reported that Tru64 4.0D declares the round
49166         functions but does not have definitions.
49167         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
49168         cannot be found in any library, set the output variable to
49169         "missing" instead of "".
49170         * m4/round.m4: Also use our substitute if we cannot find round in
49171         any library, even if it is declared.
49172         * m4/roundf.m4: Likewise for roundf.
49173         * m4/roundl.m4: Likewise for roundl.
49174         * lib/math.in.h: Undefine roundf, round, roundl before defining
49175         their replacements, to allow for hypothetical systems where these
49176         may be defined as macros but not available in libraries.
49177
49178 2007-10-27  Bruno Haible  <bruno@clisp.org>
49179
49180         * doc/gnulib.texi: Invoke @firstparagraphindent.
49181         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
49182         changes in gnulib.
49183         (Source changes): New section.
49184
49185 2007-10-26  Bruno Haible  <bruno@clisp.org>
49186
49187         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
49188         borrowed from autoconf.
49189
49190 2007-10-26  Bruno Haible  <bruno@clisp.org>
49191
49192         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
49193         strerror returned the empty string. Needed on HP-UX 11.00.
49194
49195 2007-10-24  Micah Cowan  <micah@cowan.name>
49196
49197         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
49198         * build-aux/bootstrap: Remove support for now-unnecessary option,
49199         --cvs-user, and envvars CVS_USER, CVS_RSH.
49200
49201 2007-10-24  Jim Meyering  <meyering@redhat.com>
49202
49203         Avoid diagnostics from sha1sum when there is no cached checksum.
49204         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
49205         if the po.s1 file hasn't been created yet.
49206
49207         * build-aux/bootstrap: Sync from coreutils:
49208         2007-10-24  Jim Meyering  <meyering@redhat.com>
49209         Get gnulib from the git repository, not from an obsolete cvs one.
49210         * build-aux/bootstrap: Suggestion from Micah Cowan.
49211         2007-10-04  Jim Meyering  <jim@meyering.net>
49212         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
49213         (update_po_files): Work also when there are no .po files in po/.
49214
49215 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49216
49217         * README: Append ".git" to git and cg examples.
49218         Problem reported by Benoit Sigoure.
49219
49220 2007-10-23  Micah Cowan  <micah@cowan.name>
49221
49222         * users.txt: Add wget.
49223
49224 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49225
49226         Fix linking of some unistdio tests on FreeBSD.
49227         * modules/unistdio/u16-vsnprintf-tests
49228         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
49229         * modules/unistdio/u16-vsprintf-tests
49230         (test_u16_vsnprintf1_LDADD): Likewise.
49231         * modules/unistdio/u32-vsnprintf-tests
49232         (test_u32_vsnprintf1_LDADD): Likewise.
49233         * modules/unistdio/u32-vsprintf-tests
49234         (test_u32_vsprintf1_LDADD): Likewise.
49235         * modules/unistdio/u8-vsnprintf-tests
49236         (test_u8_vsnprintf1_LDADD): Likewise.
49237         * modules/unistdio/u8-vsprintf-tests
49238         (test_u8_vsprintf1_LDADD): Likewise.
49239         * modules/unistdio/ulc-vsnprintf-tests
49240         (test_ulc_vsnprintf1_LDADD): Likewise.
49241         * modules/unistdio/ulc-vsprintf-tests
49242         (test_ulc_vsprintf1_LDADD): Likewise.
49243
49244         Fix linking of some uniconv tests on FreeBSD.
49245         * modules/uniconv/u16-conv-from-enc-tests
49246         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
49247         * modules/uniconv/u16-conv-to-enc-tests
49248         (test_u16_conv_to_enc_LDADD): Likewise.
49249         * modules/uniconv/u16-strconv-from-enc-tests
49250         (test_u16_strconv_from_enc_LDADD): Likewise.
49251         * modules/uniconv/u16-strconv-to-enc-tests
49252         (test_u16_strconv_to_enc_LDADD): Likewise.
49253         * modules/uniconv/u32-conv-from-enc-tests
49254         (test_u32_conv_from_enc_LDADD): Likewise.
49255         * modules/uniconv/u32-conv-to-enc-tests
49256         (test_u32_conv_to_enc_LDADD): Likewise.
49257         * modules/uniconv/u32-strconv-from-enc-tests
49258         (test_u32_strconv_from_enc_LDADD): Likewise.
49259         * modules/uniconv/u32-strconv-to-enc-tests
49260         (test_u32_strconv_to_enc_LDADD): Likewise.
49261         * modules/uniconv/u8-conv-from-enc-tests
49262         (test_u8_conv_from_enc_LDADD): Likewise.
49263         * modules/uniconv/u8-conv-to-enc-tests
49264         (test_u8_conv_to_enc_LDADD): Likewise.
49265         * modules/uniconv/u8-strconv-from-enc-tests
49266         (test_u8_strconv_from_enc_LDADD): Likewise.
49267         * modules/uniconv/u8-strconv-to-enc-tests
49268         (test_u8_strconv_to_enc_LDADD): Likewise.
49269
49270 2007-10-22  Bruno Haible  <bruno@clisp.org>
49271
49272         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
49273         size.
49274
49275 2007-10-22  Eric Blake  <ebb9@byu.net>
49276
49277         Tweak x*printf documentation.
49278         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
49279         variable name and comments.
49280         Suggested by Bruno Haible.
49281
49282 2007-10-22  Bruno Haible  <bruno@clisp.org>
49283
49284         * lib/acl.c (copy_acl): Fix file name in comment.
49285
49286 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49287
49288         Fix Tru64 problem with stdbool.h.
49289         * lib/stdbool.in.h (false, true):
49290         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
49291         Don't declare as an enum in this situation; it runs afoul of Tru64.
49292         Problem reported by Steven M. Schweda in
49293         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
49294
49295 2007-10-22  Eric Blake  <ebb9@byu.net>
49296
49297         Also wrap vf?printf.
49298         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49299         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49300         (xvprintf, xvfprintf): New functions.
49301
49302 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49303
49304         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49305         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49306
49307         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49308         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49309
49310 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49311
49312         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49313         by Bruno Haible.
49314
49315 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49316
49317         * lib/getloadavg.c
49318         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49319         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49320
49321         * tests/test-i-ring.c: Work for C89.
49322
49323 2007-10-22  Bruno Haible  <bruno@clisp.org>
49324
49325         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49326         -1u, in preprocessor expression, so that we don't test for the bug
49327         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49328         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49329
49330 2007-10-22  Eric Blake  <ebb9@byu.net>
49331
49332         * tests/test-yesno.sh: Silence stderr during test.
49333
49334 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49335
49336         * modules/crypto/gc-camellia: New file.
49337
49338         * m4/gc-camellia.m4: New file.
49339
49340         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49341
49342         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49343
49344 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49345
49346         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49347         --help to stdout.  Reported by sms@antinode.org (Steven
49348         M. Schweda).
49349
49350 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49351
49352         * users.txt: Fix link to libksba.
49353
49354 2007-10-21  Ben Pfaff  <blp@gnu.org>
49355
49356         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49357         round.c roundf implementation that depends on floorf and ceilf to
49358         be tested unconditionally.
49359
49360 2007-10-21  Ben Pfaff  <blp@gnu.org>
49361
49362         * m4/check-libm-func.m4: Removed.
49363         * m4/check-math-lib.m4: New file.
49364         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49365         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49366         definition and lack of AC_LIBOBJ([roundf]).
49367         * m4/roundl.m4: Ditto, and similarly for roundl.
49368         * modules/round: Reference new m4 file.
49369         * modules/roundf: Ditto.
49370         * modules/roundl: Ditto.
49371         * tests/test-round2.c (main): Use ROUND instead of round.
49372         Bug report from Bruno Haible.
49373
49374 2007-10-21  Bruno Haible  <bruno@clisp.org>
49375
49376         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49377         context.
49378
49379 2007-10-21  Bruno Haible  <bruno@clisp.org>
49380
49381         * tests/test-wcwidth.c (main): Allow negative result for some control
49382         characters.
49383
49384         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49385         Needed on OSF/1 5.1.
49386
49387 2007-10-21  Bruno Haible  <bruno@clisp.org>
49388
49389         * tests/test-floorf1.c: Include isnanf.h.
49390         (main): Use isnanf() instead of isnan().
49391         * tests/test-ceilf1.c: Include isnanf.h.
49392         (main): Use isnanf() instead of isnan().
49393         * tests/test-truncf1.c: Include isnanf.h.
49394         (main): Use isnanf() instead of isnan().
49395         * tests/test-roundf1.c: Include isnanf.h.
49396         (main): Use isnanf() instead of isnan().
49397
49398 2007-10-21  Eric Blake  <ebb9@byu.net>
49399
49400         * users.txt: Update URL for m4.
49401
49402 2007-10-21  Bruno Haible  <bruno@clisp.org>
49403
49404         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49405
49406 2007-10-21  Bruno Haible  <bruno@clisp.org>
49407
49408         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49409         Git's management files if the CVS files are not present.
49410
49411 2007-10-20  Bruno Haible  <bruno@clisp.org>
49412
49413         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49414         gcc-3.4.x.
49415
49416 2007-10-20  Ben Pfaff  <blp@gnu.org>
49417
49418         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49419         implementations.
49420         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49421         * lib/round.c: New file.
49422         * lib/roundf.c: New file.
49423         * lib/roundl.c: New file.
49424         * m4/round.m4: New file.
49425         * m4/roundf.m4: New file.
49426         * m4/roundl.m4: New file.
49427         * m4/check-libm-func-m4: New file.
49428         * modules/math: Replace round, roundf, roundl related @VARS@ in
49429         math.in.h.
49430         * modules/round: New file.
49431         * modules/round-tests: New file.
49432         * modules/roundf: New file.
49433         * modules/roundf-tests: New file.
49434         * modules/roundl: New file.
49435         * modules/roundl-tests: New file.
49436         * tests/test-round1.c: New file.
49437         * tests/test-round2.c: New file.
49438         * tests/test-roundf1.c: New file.
49439         * tests/test-roundf2.c: New file.
49440         * tests/test-roundl.c: New file.
49441         * doc/functions/round.texi: Mention round module.
49442         * doc/functions/roundf.texi: Mention roundf module.
49443         * doc/functions/roundl.texi: Mention roundl module.
49444         * MODULES.html.sh: Mention new modules.
49445         Thanks to Bruno Haible for suggestions.
49446
49447 2007-10-20  Jim Meyering  <meyering@redhat.com>
49448
49449         * lib/xprintf.c: Include <config.h> unconditionally.
49450
49451         Change xprintf's license to GPL.
49452         * modules/xprintf (License): s/LGPL/GPL/, since this module
49453         depends on modules (exit and exitfail) which are GPL.
49454         Suggestion from Bruno Haible.
49455
49456         xprintf fixes.
49457         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49458         Use a clearer diagnostic.
49459         Patch from Bruno Haible.
49460
49461 2007-10-20  Bruno Haible  <bruno@clisp.org>
49462
49463         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49464         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49465         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49466
49467 2007-10-20  Bruno Haible  <bruno@clisp.org>
49468
49469         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49470         precision in the comparison result > x - 1 or similar.
49471         * tests/test-ceilf2.c (correct_result_p): Likewise.
49472         * tests/test-truncf2.c (correct_result_p): Likewise.
49473         * tests/test-trunc2.c (correct_result_p): Likewise.
49474         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49475
49476 2007-10-20  Bruno Haible  <bruno@clisp.org>
49477
49478         * modules/ceil: New file.
49479         * m4/ceil.m4: New file.
49480         * doc/functions/ceil.texi: Mention the 'ceil' module.
49481
49482 2007-10-20  Bruno Haible  <bruno@clisp.org>
49483
49484         * modules/floor: New file.
49485         * m4/floor.m4: New file.
49486         * doc/functions/floor.texi: Mention the 'floor' module.
49487
49488 2007-10-20  Bruno Haible  <bruno@clisp.org>
49489
49490         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49491         of %a.
49492         * modules/floorf-tests (Depends-on): Likewise.
49493         * modules/truncf-tests (Depends-on): Likewise.
49494         * modules/trunc-tests (Depends-on): Likewise.
49495         Reported by Ben Pfaff.
49496
49497 2007-10-19  Jim Meyering  <meyering@redhat.com>
49498
49499         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49500         Don't bother testing specific errno values.  Just test ferror.
49501
49502         New module: xprintf
49503         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49504
49505 2007-10-19  Bruno Haible  <bruno@clisp.org>
49506
49507         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49508         syntax.
49509         * modules/javaexec (Makefile.am): Likewise.
49510         * modules/relocatable-prog (Makefile.am): Likewise.
49511         Suggested by Jim Meyering.
49512
49513 2007-10-18  Bruno Haible  <bruno@clisp.org>
49514
49515         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49516         Reported by Jim Meyering.
49517
49518 2007-10-18  Eric Blake  <ebb9@byu.net>
49519
49520         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49521
49522 2007-10-18  Bruno Haible  <bruno@clisp.org>
49523
49524         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49525         the format string into writable memory. Needed in Fortify conditions.
49526
49527 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49528             Bruno Haible  <bruno@clisp.org>
49529
49530         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49531         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49532         * modules/trim (Depends-on): Add mbchar.
49533         (configure.ac): Add gl_FUNC_MBRTOWC.
49534         (Makefile.am): Augment lib_SOURCES.
49535
49536 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49537
49538         Modify glob.c to use fstatat and dirfd, to simplify it.
49539         Suggested by Eric Blake.
49540         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49541         Don't include <stdbool.h>; not used.
49542         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49543         (link_exists_p): Simplify implementation, since we can now assume
49544         dirfd and fstatat.
49545         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49546
49547 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49548
49549         * gnulib-tool (func_get_dependencies): Fix sed script to
49550         match only tests.
49551
49552 2007-10-17  Bruno Haible  <bruno@clisp.org>
49553
49554         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49555         allow locale names without encoding suffix.
49556         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49557         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49558
49559 2007-10-16  Bruno Haible  <bruno@clisp.org>
49560
49561         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49562         * lib/getgroups.c (getgroups): Likewise.
49563         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49564
49565 2007-10-16  Bruno Haible  <bruno@clisp.org>
49566
49567         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49568         * modules/malloc-posix (License): Likewise.
49569         * modules/realloc-posix (License): Likewise.
49570         * modules/calloc-posix (License): Likewise.
49571         * modules/intprops (License): Change from GPL to LGPL, with
49572         Paul Eggert's approval.
49573
49574 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49575
49576         Merge glibc changes into lib/glob.c.
49577
49578         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49579         2007-10-15 04:59:03 UTC.  Here are the changes:
49580
49581         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49582
49583         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49584
49585         * lib/glob.c: Add some branch prediction throughout.
49586
49587         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49588
49589         [BZ #5103]
49590         * lib/glob.c (glob): Recognize patterns starting \/.
49591
49592         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49593
49594         [BZ #3996]
49595         * lib/glob.c (attribute_hidden): Define if not defined.
49596         (glob): Unescape dirname, filename or username when needed and not
49597         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49598         is NULL.  Handle unescaped [ in pattern without closing ].
49599         Don't pass GLOB_CHECK down to recursive glob for directories.
49600         (__glob_pattern_type): New function.
49601         (__glob_pattern_p): Implement using __glob_pattern_type.
49602         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49603         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49604         Remove unreachable code.
49605
49606         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49607
49608         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49609         explain why there are no leaks.
49610
49611         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49612
49613         [BZ #3253]
49614         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49615         time, rather allocate increasingly bigger arrays of pointers, if
49616         possible with alloca, if too large with malloc.
49617
49618 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49619
49620         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49621         Problem reported by H.Merijn Brand in
49622         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49623         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49624         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49625
49626 2007-10-15  Bruno Haible  <bruno@clisp.org>
49627
49628         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49629         with explicit rpl_ prefix.
49630         * lib/fopen.c (fopen): Likewise.
49631         * lib/freopen.c (freopen): Likewise.
49632         * lib/iconv.c (iconv): Likewise.
49633         * lib/iconv_close.c (iconv_close): Likewise.
49634
49635 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49636
49637         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49638
49639 2007-10-15  Bruno Haible  <bruno@clisp.org>
49640
49641         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49642         <stddef.h> instead of <stdlib.h> since we only need NULL.
49643         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49644
49645 2007-10-15  Bruno Haible  <bruno@clisp.org>
49646
49647         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49648         Replace paragraph talking about LIBOBJS.
49649         Reported by Colin Watson <cjwatson@debian.org>.
49650
49651 2007-10-15  Bruno Haible  <bruno@clisp.org>
49652
49653         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49654         <stdlib.h> before using NULL.
49655
49656 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49657
49658         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49659         Reported by Albert Chin <china@thewrittenword.com>.
49660
49661 2007-10-14  Bruno Haible  <bruno@clisp.org>
49662
49663         * modules/iconv_open-utf-tests: New file.
49664         * tests/test-iconv-utf.c: New file.
49665
49666         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49667         * modules/iconv_open-utf: New file.
49668         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49669         (iconv, iconv_close): New declarations.
49670         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49671         be defined.
49672         (iconv_open): Add special handling of conversion between UTF-8 and
49673         UTF-{16,32}{BE,LE}.
49674         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49675         * lib/iconv_close.c: New file.
49676         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49677         gl_FUNC_ICONV_OPEN.
49678         (gl_FUNC_ICONV_OPEN): Use it.
49679         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49680         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49681         and REPLACE_ICONV_UTF.
49682         * modules/iconv_open (Depends-on): Add c-strcase.
49683         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49684         ICONV_CONST.
49685         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49686
49687 2007-10-13  Albert Chin  <china@thewrittenword.com>
49688             Bruno Haible  <bruno@clisp.org>
49689
49690         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49691         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49692
49693 2007-10-13  Bruno Haible  <bruno@clisp.org>
49694
49695         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49696         defined, use the ISO C99 inline semantics.
49697         * lib/argp.h (ARGP_EI): Likewise.
49698
49699 2007-10-13  Bruno Haible  <bruno@clisp.org>
49700
49701         Handle 'inline' change in gcc 4.3.0.
49702         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49703         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49704         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49705         argp_fmtstream_point): Disable 'extern' declaration if the function
49706         definition is going to be provided inline.
49707         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49708         semantics, not the ISO C99 inline semantics.
49709         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49710         'extern' declaration if the function definition is going to be provided
49711         inline.
49712         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49713         the GNU C inline semantics, not the ISO C99 inline semantics. With
49714         GCC 4.2, avoid a warning.
49715
49716 2007-10-13  Bruno Haible  <bruno@clisp.org>
49717
49718         * lib/freading.h (freading): Enable the use of __freading for
49719         glibc >= 2.7.
49720         * lib/freading.c (freading): Likewise.
49721
49722 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49723
49724         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49725         "warning: C99 inline functions are not supported; using GNU89".
49726
49727 2007-10-12  Bruno Haible  <bruno@clisp.org>
49728
49729         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49730         of 2.
49731         * tests/test-ceilf2.c: New file.
49732         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49733
49734         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49735         * modules/ceilf-tests: Update.
49736
49737 2007-10-12  Bruno Haible  <bruno@clisp.org>
49738
49739         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49740         of 2.
49741         * tests/test-floorf2.c: New file.
49742         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49743
49744         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49745         * modules/floorf-tests: Update.
49746
49747 2007-10-12  Bruno Haible  <bruno@clisp.org>
49748
49749         * tests/test-trunc2.c: New file.
49750         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49751
49752         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49753         * modules/trunc-tests: Update.
49754
49755 2007-10-12  Bruno Haible  <bruno@clisp.org>
49756
49757         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49758         of 2.
49759         * tests/test-truncf2.c: New file.
49760         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49761
49762         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49763         * modules/truncf-tests: Update.
49764
49765 2007-10-11  Eric Blake  <ebb9@byu.net>
49766
49767         Don't claim strerror is broken on Interix.
49768         * doc/functions/strerror.texi (strerror): Known broken systems are
49769         now Solaris 8, and not Interix.
49770         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49771         Interix on cross-compile.
49772         Reported by Martin Koeppe in
49773         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49774
49775 2007-10-11  Bruno Haible  <bruno@clisp.org>
49776
49777         * modules/i-ring-tests: New file.
49778         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49779         instead of assert.
49780
49781 2007-10-11  Bruno Haible  <bruno@clisp.org>
49782
49783         * modules/filenamecat-tests: New file.
49784         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49785         * lib/filenamecat.c: Remove test code.
49786
49787 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49788
49789         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49790
49791         * lib/strerror.c: Include <string.h> always, to test interface,
49792         and to remove the need for the dummy.
49793         Include intprops.h to compute width instead of doing it ourselves
49794         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49795         (strerror): Define it to return NULL if there's no system strerror.
49796         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49797         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49798         ancient pre-strerror Unix systems well any more.  Saying "unknown
49799         system error" is enough.
49800         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49801         simpler strerror.c implementation.
49802         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49803         Simplify the tests to reflect the simpler strerror implementation.
49804         * modules/strerror (Depends-on): Add intprops.
49805
49806 2007-10-09  Eric Blake  <ebb9@byu.net>
49807
49808         Silence test-fpending.
49809         * modules/fpending-tests (Files): Add wrapper script.
49810         * tests/test-fpending.sh: New file.
49811
49812 2007-10-09  Bruno Haible  <bruno@clisp.org>
49813
49814         * MODULES.html.sh (func_module): Don't create a hyperlink for
49815         function names like 'printf_frexp'.
49816         (Misc): Add crc, memxor.
49817         (Characteristics of floating types): New section.
49818         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49819         isnanf-nolibm, signbit, trunc, truncf, truncl.
49820         (Enhancements for ISO C 99 functions): New subsection Input/output.
49821         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49822         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49823         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49824         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49825         (Enhancements for POSIX:2001 functions): Add chdir-long.
49826         (File system functions): Add areadlink, chdir-safer, read-file.
49827         Remove cycle-check.
49828         (File system as inode set): New section.
49829         (Date and time): Add gethrxtime.
49830         (Multithreading): Add openmp.
49831         (Internationalization functions): Add localename.
49832         (Unicode string functions): Add unistr/u*-mbsnlen.
49833         (Support for maintaining and releasing projects): Add git-version-gen.
49834         (Lone files): Remove directories.
49835
49836 2007-10-08  Ben Pfaff  <blp@gnu.org>
49837
49838         * lib/xmalloca.h: Fix typo in comment.
49839
49840 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49841
49842         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49843         when avoiding problems with integer overflow.  Use a portable test
49844         instead.
49845
49846 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49847
49848         * modules/dummy (License): Change to LGPLv2+.
49849         * modules/float (License): Likewise
49850         * modules/realloc (License): Likewise
49851         * modules/stdlib (License): Likewise
49852
49853 2007-10-07  Bruno Haible  <bruno@clisp.org>
49854
49855         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49856         * floor.c (TWO_MANT_DIG): Likewise.
49857         * ceil.c (TWO_MANT_DIG): Likewise.
49858         Reported by Ben Pfaff.
49859
49860 2007-10-07  Bruno Haible  <bruno@clisp.org>
49861
49862         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49863         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49864         * lib/frexp.c (FUNC): Likewise.
49865         * lib/printf-frexp.h (printf_frexp): Likewise.
49866         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49867         * lib/printf-frexp.c (FUNC): Likewise.
49868         Suggested by Jim Meyering.
49869
49870 2007-10-07  Jim Meyering  <meyering@redhat.com>
49871
49872         Make xnanosleep's integer overflow test more robust.
49873         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
49874         so that gcc-4.3.0 doesn't optimize away this test for overflow.
49875
49876 2007-10-07  Bruno Haible  <bruno@clisp.org>
49877
49878         * NEWS: Mention the license change.
49879
49880         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
49881         abbreviations in the modules files.
49882
49883         Change copyright notice from GPLv2+ to GPLv3+.
49884         * README: Change copyright notice.
49885         * MODULES.html.sh: Likewise.
49886         * build-aux/bootstrap.conf: Likewise.
49887         * build-aux/config.libpath: Likewise.
49888         * build-aux/csharpcomp.sh.in: Likewise.
49889         * build-aux/csharpexec.sh.in: Likewise.
49890         * build-aux/install-reloc: Likewise.
49891         * build-aux/javacomp.sh.in: Likewise.
49892         * build-aux/javaexec.sh.in: Likewise.
49893         * build-aux/ldd.sh.in: Likewise.
49894         * build-aux/reloc-ldflags: Likewise.
49895         * build-aux/relocatable.sh.in: Likewise.
49896         * build-aux/x-to-1.in: Likewise.
49897         * check-module: Likewise.
49898         * config/srclistvars.sh: Likewise.
49899         * gnulib-tool: Likewise.
49900         * lib/acl-internal.h: Likewise.
49901         * lib/acl.c: Likewise.
49902         * lib/acl.h: Likewise.
49903         * lib/acl_entries.c: Likewise.
49904         * lib/areadlink-with-size.c: Likewise.
49905         * lib/areadlink.c: Likewise.
49906         * lib/areadlink.h: Likewise.
49907         * lib/argmatch.c: Likewise.
49908         * lib/argmatch.h: Likewise.
49909         * lib/argp-ba.c: Likewise.
49910         * lib/argp-eexst.c: Likewise.
49911         * lib/argp-fmtstream.c: Likewise.
49912         * lib/argp-fmtstream.h: Likewise.
49913         * lib/argp-fs-xinl.c: Likewise.
49914         * lib/argp-help.c: Likewise.
49915         * lib/argp-namefrob.h: Likewise.
49916         * lib/argp-parse.c: Likewise.
49917         * lib/argp-pin.c: Likewise.
49918         * lib/argp-pv.c: Likewise.
49919         * lib/argp-pvh.c: Likewise.
49920         * lib/argp-xinl.c: Likewise.
49921         * lib/argp.h: Likewise.
49922         * lib/at-func.c: Likewise.
49923         * lib/atanl.c: Likewise.
49924         * lib/backupfile.c: Likewise.
49925         * lib/backupfile.h: Likewise.
49926         * lib/basename.c: Likewise.
49927         * lib/binary-io.h: Likewise.
49928         * lib/byteswap.in.h: Likewise.
49929         * lib/c-stack.c: Likewise.
49930         * lib/c-stack.h: Likewise.
49931         * lib/c-strcasestr.c: Likewise.
49932         * lib/c-strcasestr.h: Likewise.
49933         * lib/c-strstr.c: Likewise.
49934         * lib/c-strstr.h: Likewise.
49935         * lib/c-strtod.c: Likewise.
49936         * lib/calloc.c: Likewise.
49937         * lib/canon-host.c: Likewise.
49938         * lib/canon-host.h: Likewise.
49939         * lib/canonicalize-lgpl.c: Likewise.
49940         * lib/canonicalize.c: Likewise.
49941         * lib/canonicalize.h: Likewise.
49942         * lib/ceil.c: Likewise.
49943         * lib/ceilf.c: Likewise.
49944         * lib/ceill.c: Likewise.
49945         * lib/chdir-long.c: Likewise.
49946         * lib/chdir-long.h: Likewise.
49947         * lib/chdir-safer.c: Likewise.
49948         * lib/chdir-safer.h: Likewise.
49949         * lib/chown.c: Likewise.
49950         * lib/classpath.c: Likewise.
49951         * lib/classpath.h: Likewise.
49952         * lib/clean-temp.c: Likewise.
49953         * lib/clean-temp.h: Likewise.
49954         * lib/cloexec.c: Likewise.
49955         * lib/close-stream.c: Likewise.
49956         * lib/closein.c: Likewise.
49957         * lib/closein.h: Likewise.
49958         * lib/closeout.c: Likewise.
49959         * lib/closeout.h: Likewise.
49960         * lib/concat-filename.c: Likewise.
49961         * lib/copy-file.c: Likewise.
49962         * lib/copy-file.h: Likewise.
49963         * lib/count-one-bits.h: Likewise.
49964         * lib/crc.c: Likewise.
49965         * lib/crc.h: Likewise.
49966         * lib/creat-safer.c: Likewise.
49967         * lib/csharpcomp.c: Likewise.
49968         * lib/csharpcomp.h: Likewise.
49969         * lib/csharpexec.c: Likewise.
49970         * lib/csharpexec.h: Likewise.
49971         * lib/cycle-check.c: Likewise.
49972         * lib/cycle-check.h: Likewise.
49973         * lib/diacrit.c: Likewise.
49974         * lib/diacrit.h: Likewise.
49975         * lib/diffseq.h: Likewise.
49976         * lib/dirchownmod.c: Likewise.
49977         * lib/dirent.in.h: Likewise.
49978         * lib/dirfd.c: Likewise.
49979         * lib/dirfd.h: Likewise.
49980         * lib/dirname.c: Likewise.
49981         * lib/dirname.h: Likewise.
49982         * lib/dummy.c: Likewise.
49983         * lib/dup-safer.c: Likewise.
49984         * lib/dup2.c: Likewise.
49985         * lib/eealloc.h: Likewise.
49986         * lib/error.c: Likewise.
49987         * lib/error.h: Likewise.
49988         * lib/euidaccess.c: Likewise.
49989         * lib/exclude.c: Likewise.
49990         * lib/exclude.h: Likewise.
49991         * lib/execute.c: Likewise.
49992         * lib/execute.h: Likewise.
49993         * lib/exitfail.c: Likewise.
49994         * lib/exitfail.h: Likewise.
49995         * lib/expl.c: Likewise.
49996         * lib/fatal-signal.c: Likewise.
49997         * lib/fatal-signal.h: Likewise.
49998         * lib/fbufmode.c: Likewise.
49999         * lib/fbufmode.h: Likewise.
50000         * lib/fchdir.c: Likewise.
50001         * lib/fchmodat.c: Likewise.
50002         * lib/fchownat.c: Likewise.
50003         * lib/fcntl--.h: Likewise.
50004         * lib/fcntl-safer.h: Likewise.
50005         * lib/fcntl.in.h: Likewise.
50006         * lib/fd-safer.c: Likewise.
50007         * lib/fflush.c: Likewise.
50008         * lib/file-has-acl.c: Likewise.
50009         * lib/file-set.c: Likewise.
50010         * lib/file-type.c: Likewise.
50011         * lib/file-type.h: Likewise.
50012         * lib/fileblocks.c: Likewise.
50013         * lib/filemode.c: Likewise.
50014         * lib/filemode.h: Likewise.
50015         * lib/filename.h: Likewise.
50016         * lib/filenamecat.c: Likewise.
50017         * lib/filenamecat.h: Likewise.
50018         * lib/findprog.c: Likewise.
50019         * lib/findprog.h: Likewise.
50020         * lib/float.in.h: Likewise.
50021         * lib/floor.c: Likewise.
50022         * lib/floorf.c: Likewise.
50023         * lib/floorl.c: Likewise.
50024         * lib/fopen-safer.c: Likewise.
50025         * lib/fopen.c: Likewise.
50026         * lib/fpending.c: Likewise.
50027         * lib/fpending.h: Likewise.
50028         * lib/fprintf.c: Likewise.
50029         * lib/fprintftime.h: Likewise.
50030         * lib/fpucw.h: Likewise.
50031         * lib/fpurge.c: Likewise.
50032         * lib/fpurge.h: Likewise.
50033         * lib/freadable.c: Likewise.
50034         * lib/freadable.h: Likewise.
50035         * lib/freadahead.c: Likewise.
50036         * lib/freadahead.h: Likewise.
50037         * lib/freading.c: Likewise.
50038         * lib/freading.h: Likewise.
50039         * lib/free.c: Likewise.
50040         * lib/freopen.c: Likewise.
50041         * lib/frexp.c: Likewise.
50042         * lib/frexpl.c: Likewise.
50043         * lib/fseek.c: Likewise.
50044         * lib/fseterr.c: Likewise.
50045         * lib/fseterr.h: Likewise.
50046         * lib/fstatat.c: Likewise.
50047         * lib/fstrcmp.c: Likewise.
50048         * lib/fstrcmp.h: Likewise.
50049         * lib/fsusage.c: Likewise.
50050         * lib/fsusage.h: Likewise.
50051         * lib/ftell.c: Likewise.
50052         * lib/ftello.c: Likewise.
50053         * lib/fts-cycle.c: Likewise.
50054         * lib/fts.c: Likewise.
50055         * lib/fts_.h: Likewise.
50056         * lib/full-read.c: Likewise.
50057         * lib/full-read.h: Likewise.
50058         * lib/full-write.c: Likewise.
50059         * lib/full-write.h: Likewise.
50060         * lib/fwritable.c: Likewise.
50061         * lib/fwritable.h: Likewise.
50062         * lib/fwriteerror.c: Likewise.
50063         * lib/fwriteerror.h: Likewise.
50064         * lib/fwriting.c: Likewise.
50065         * lib/fwriting.h: Likewise.
50066         * lib/gcd.c: Likewise.
50067         * lib/gcd.h: Likewise.
50068         * lib/getcwd.c: Likewise.
50069         * lib/getdate.h: Likewise.
50070         * lib/getdate.y: Likewise.
50071         * lib/getdomainname.c: Likewise.
50072         * lib/getdomainname.h: Likewise.
50073         * lib/getgroups.c: Likewise.
50074         * lib/gethostname.c: Likewise.
50075         * lib/gethrxtime.c: Likewise.
50076         * lib/gethrxtime.h: Likewise.
50077         * lib/getloadavg.c: Likewise.
50078         * lib/getndelim2.c: Likewise.
50079         * lib/getndelim2.h: Likewise.
50080         * lib/getnline.c: Likewise.
50081         * lib/getnline.h: Likewise.
50082         * lib/getopt.c: Likewise.
50083         * lib/getopt.in.h: Likewise.
50084         * lib/getopt1.c: Likewise.
50085         * lib/getopt_int.h: Likewise.
50086         * lib/getpagesize.h: Likewise.
50087         * lib/getsubopt.c: Likewise.
50088         * lib/gettime.c: Likewise.
50089         * lib/getugroups.c: Likewise.
50090         * lib/getugroups.h: Likewise.
50091         * lib/getusershell.c: Likewise.
50092         * lib/gl_anyavltree_list1.h: Likewise.
50093         * lib/gl_anyavltree_list2.h: Likewise.
50094         * lib/gl_anyhash_list1.h: Likewise.
50095         * lib/gl_anyhash_list2.h: Likewise.
50096         * lib/gl_anylinked_list1.h: Likewise.
50097         * lib/gl_anylinked_list2.h: Likewise.
50098         * lib/gl_anyrbtree_list1.h: Likewise.
50099         * lib/gl_anyrbtree_list2.h: Likewise.
50100         * lib/gl_anytree_list1.h: Likewise.
50101         * lib/gl_anytree_list2.h: Likewise.
50102         * lib/gl_anytree_oset.h: Likewise.
50103         * lib/gl_anytreehash_list1.h: Likewise.
50104         * lib/gl_anytreehash_list2.h: Likewise.
50105         * lib/gl_array_list.c: Likewise.
50106         * lib/gl_array_list.h: Likewise.
50107         * lib/gl_array_oset.c: Likewise.
50108         * lib/gl_array_oset.h: Likewise.
50109         * lib/gl_avltree_list.c: Likewise.
50110         * lib/gl_avltree_list.h: Likewise.
50111         * lib/gl_avltree_oset.c: Likewise.
50112         * lib/gl_avltree_oset.h: Likewise.
50113         * lib/gl_avltreehash_list.c: Likewise.
50114         * lib/gl_avltreehash_list.h: Likewise.
50115         * lib/gl_carray_list.c: Likewise.
50116         * lib/gl_carray_list.h: Likewise.
50117         * lib/gl_linked_list.c: Likewise.
50118         * lib/gl_linked_list.h: Likewise.
50119         * lib/gl_linkedhash_list.c: Likewise.
50120         * lib/gl_linkedhash_list.h: Likewise.
50121         * lib/gl_list.c: Likewise.
50122         * lib/gl_list.h: Likewise.
50123         * lib/gl_oset.c: Likewise.
50124         * lib/gl_oset.h: Likewise.
50125         * lib/gl_rbtree_list.c: Likewise.
50126         * lib/gl_rbtree_list.h: Likewise.
50127         * lib/gl_rbtree_oset.c: Likewise.
50128         * lib/gl_rbtree_oset.h: Likewise.
50129         * lib/gl_rbtreehash_list.c: Likewise.
50130         * lib/gl_rbtreehash_list.h: Likewise.
50131         * lib/gl_sublist.c: Likewise.
50132         * lib/gl_sublist.h: Likewise.
50133         * lib/group-member.c: Likewise.
50134         * lib/group-member.h: Likewise.
50135         * lib/hard-locale.c: Likewise.
50136         * lib/hard-locale.h: Likewise.
50137         * lib/hash-pjw.c: Likewise.
50138         * lib/hash-pjw.h: Likewise.
50139         * lib/hash-triple.c: Likewise.
50140         * lib/hash.c: Likewise.
50141         * lib/hash.h: Likewise.
50142         * lib/human.c: Likewise.
50143         * lib/human.h: Likewise.
50144         * lib/i-ring.c: Likewise.
50145         * lib/i-ring.h: Likewise.
50146         * lib/idcache.c: Likewise.
50147         * lib/imaxabs.c: Likewise.
50148         * lib/imaxdiv.c: Likewise.
50149         * lib/inet_pton.c: Likewise.
50150         * lib/inet_pton.h: Likewise.
50151         * lib/intprops.h: Likewise.
50152         * lib/inttostr.c: Likewise.
50153         * lib/inttostr.h: Likewise.
50154         * lib/inttypes.in.h: Likewise.
50155         * lib/isapipe.c: Likewise.
50156         * lib/isdir.c: Likewise.
50157         * lib/isnan.c: Likewise.
50158         * lib/isnan.h: Likewise.
50159         * lib/isnanf.c: Likewise.
50160         * lib/isnanf.h: Likewise.
50161         * lib/isnanl-nolibm.h: Likewise.
50162         * lib/isnanl.c: Likewise.
50163         * lib/isnanl.h: Likewise.
50164         * lib/javacomp.c: Likewise.
50165         * lib/javacomp.h: Likewise.
50166         * lib/javaexec.c: Likewise.
50167         * lib/javaexec.h: Likewise.
50168         * lib/javaversion.c: Likewise.
50169         * lib/javaversion.h: Likewise.
50170         * lib/javaversion.java: Likewise.
50171         * lib/lbrkprop.h: Likewise.
50172         * lib/lchmod.h: Likewise.
50173         * lib/lchown.c: Likewise.
50174         * lib/ldexpl.c: Likewise.
50175         * lib/linebreak.c: Likewise.
50176         * lib/linebreak.h: Likewise.
50177         * lib/linebuffer.c: Likewise.
50178         * lib/linebuffer.h: Likewise.
50179         * lib/locale.in.h: Likewise.
50180         * lib/logl.c: Likewise.
50181         * lib/long-options.c: Likewise.
50182         * lib/long-options.h: Likewise.
50183         * lib/lstat.c: Likewise.
50184         * lib/lstat.h: Likewise.
50185         * lib/math.in.h: Likewise.
50186         * lib/mbchar.c: Likewise.
50187         * lib/mbchar.h: Likewise.
50188         * lib/mbfile.h: Likewise.
50189         * lib/mbiter.h: Likewise.
50190         * lib/mbscasecmp.c: Likewise.
50191         * lib/mbscasestr.c: Likewise.
50192         * lib/mbschr.c: Likewise.
50193         * lib/mbscspn.c: Likewise.
50194         * lib/mbslen.c: Likewise.
50195         * lib/mbsncasecmp.c: Likewise.
50196         * lib/mbsnlen.c: Likewise.
50197         * lib/mbspbrk.c: Likewise.
50198         * lib/mbspcasecmp.c: Likewise.
50199         * lib/mbsrchr.c: Likewise.
50200         * lib/mbssep.c: Likewise.
50201         * lib/mbsspn.c: Likewise.
50202         * lib/mbsstr.c: Likewise.
50203         * lib/mbstok_r.c: Likewise.
50204         * lib/mbswidth.c: Likewise.
50205         * lib/mbswidth.h: Likewise.
50206         * lib/mbuiter.h: Likewise.
50207         * lib/memcasecmp.c: Likewise.
50208         * lib/memcasecmp.h: Likewise.
50209         * lib/memchr.c: Likewise.
50210         * lib/memcmp.c: Likewise.
50211         * lib/memcoll.c: Likewise.
50212         * lib/memcoll.h: Likewise.
50213         * lib/memcpy.c: Likewise.
50214         * lib/memrchr.c: Likewise.
50215         * lib/mkancesdirs.c: Likewise.
50216         * lib/mkdir-p.c: Likewise.
50217         * lib/mkdir-p.h: Likewise.
50218         * lib/mkdir.c: Likewise.
50219         * lib/mkdirat.c: Likewise.
50220         * lib/mkdtemp.c: Likewise.
50221         * lib/mkstemp-safer.c: Likewise.
50222         * lib/mkstemp.c: Likewise.
50223         * lib/modechange.c: Likewise.
50224         * lib/modechange.h: Likewise.
50225         * lib/mountlist.c: Likewise.
50226         * lib/mountlist.h: Likewise.
50227         * lib/mpsort.c: Likewise.
50228         * lib/nanosleep.c: Likewise.
50229         * lib/obstack.c: Likewise.
50230         * lib/obstack.h: Likewise.
50231         * lib/open-safer.c: Likewise.
50232         * lib/open.c: Likewise.
50233         * lib/openat-die.c: Likewise.
50234         * lib/openat-priv.h: Likewise.
50235         * lib/openat-proc.c: Likewise.
50236         * lib/openat.c: Likewise.
50237         * lib/openat.h: Likewise.
50238         * lib/pagealign_alloc.c: Likewise.
50239         * lib/pagealign_alloc.h: Likewise.
50240         * lib/physmem.c: Likewise.
50241         * lib/physmem.h: Likewise.
50242         * lib/pipe-safer.c: Likewise.
50243         * lib/pipe.c: Likewise.
50244         * lib/pipe.h: Likewise.
50245         * lib/posixtm.c: Likewise.
50246         * lib/posixtm.h: Likewise.
50247         * lib/posixver.c: Likewise.
50248         * lib/printf-frexp.c: Likewise.
50249         * lib/printf-frexp.h: Likewise.
50250         * lib/printf-frexpl.c: Likewise.
50251         * lib/printf-frexpl.h: Likewise.
50252         * lib/printf.c: Likewise.
50253         * lib/progname.c: Likewise.
50254         * lib/progname.h: Likewise.
50255         * lib/progreloc.c: Likewise.
50256         * lib/putenv.c: Likewise.
50257         * lib/quote.c: Likewise.
50258         * lib/quote.h: Likewise.
50259         * lib/quotearg.c: Likewise.
50260         * lib/quotearg.h: Likewise.
50261         * lib/raise.c: Likewise.
50262         * lib/readline.c: Likewise.
50263         * lib/readline.h: Likewise.
50264         * lib/readlink.c: Likewise.
50265         * lib/readtokens.c: Likewise.
50266         * lib/readtokens.h: Likewise.
50267         * lib/readtokens0.c: Likewise.
50268         * lib/readtokens0.h: Likewise.
50269         * lib/readutmp.c: Likewise.
50270         * lib/readutmp.h: Likewise.
50271         * lib/realloc.c: Likewise.
50272         * lib/relocwrapper.c: Likewise.
50273         * lib/rename-dest-slash.c: Likewise.
50274         * lib/rename.c: Likewise.
50275         * lib/rmdir.c: Likewise.
50276         * lib/rpmatch.c: Likewise.
50277         * lib/safe-read.c: Likewise.
50278         * lib/safe-read.h: Likewise.
50279         * lib/safe-write.c: Likewise.
50280         * lib/safe-write.h: Likewise.
50281         * lib/same-inode.h: Likewise.
50282         * lib/same.c: Likewise.
50283         * lib/same.h: Likewise.
50284         * lib/save-cwd.c: Likewise.
50285         * lib/save-cwd.h: Likewise.
50286         * lib/savedir.c: Likewise.
50287         * lib/savedir.h: Likewise.
50288         * lib/savewd.c: Likewise.
50289         * lib/savewd.h: Likewise.
50290         * lib/search.in.h: Likewise.
50291         * lib/setenv.c: Likewise.
50292         * lib/setenv.h: Likewise.
50293         * lib/settime.c: Likewise.
50294         * lib/sh-quote.c: Likewise.
50295         * lib/sh-quote.h: Likewise.
50296         * lib/sig2str.c: Likewise.
50297         * lib/sig2str.h: Likewise.
50298         * lib/signal.in.h: Likewise.
50299         * lib/signbitd.c: Likewise.
50300         * lib/signbitf.c: Likewise.
50301         * lib/signbitl.c: Likewise.
50302         * lib/sigprocmask.c: Likewise.
50303         * lib/sincosl.c: Likewise.
50304         * lib/sleep.c: Likewise.
50305         * lib/sprintf.c: Likewise.
50306         * lib/sqrtl.c: Likewise.
50307         * lib/stat-time.h: Likewise.
50308         * lib/stdio--.h: Likewise.
50309         * lib/stdio-safer.h: Likewise.
50310         * lib/stdlib--.h: Likewise.
50311         * lib/stdlib-safer.h: Likewise.
50312         * lib/stdlib.in.h: Likewise.
50313         * lib/stpcpy.c: Likewise.
50314         * lib/stpncpy.c: Likewise.
50315         * lib/strchrnul.c: Likewise.
50316         * lib/strcspn.c: Likewise.
50317         * lib/strerror.c: Likewise.
50318         * lib/strftime.c: Likewise.
50319         * lib/strftime.h: Likewise.
50320         * lib/striconveh.c: Likewise.
50321         * lib/striconveh.h: Likewise.
50322         * lib/striconveha.c: Likewise.
50323         * lib/striconveha.h: Likewise.
50324         * lib/stripslash.c: Likewise.
50325         * lib/strnlen1.c: Likewise.
50326         * lib/strnlen1.h: Likewise.
50327         * lib/strtod.c: Likewise.
50328         * lib/strtoimax.c: Likewise.
50329         * lib/strtok_r.c: Likewise.
50330         * lib/strtol.c: Likewise.
50331         * lib/strtoll.c: Likewise.
50332         * lib/strtoul.c: Likewise.
50333         * lib/strtoull.c: Likewise.
50334         * lib/sysexits.in.h: Likewise.
50335         * lib/tempname.c: Likewise.
50336         * lib/tempname.h: Likewise.
50337         * lib/timespec.h: Likewise.
50338         * lib/tls.c: Likewise.
50339         * lib/tls.h: Likewise.
50340         * lib/tmpdir.c: Likewise.
50341         * lib/tmpdir.h: Likewise.
50342         * lib/tmpfile-safer.c: Likewise.
50343         * lib/tmpfile.c: Likewise.
50344         * lib/trigl.c: Likewise.
50345         * lib/trigl.h: Likewise.
50346         * lib/trim.c: Likewise.
50347         * lib/trim.h: Likewise.
50348         * lib/trunc.c: Likewise.
50349         * lib/truncf.c: Likewise.
50350         * lib/truncl.c: Likewise.
50351         * lib/tsearch.c: Likewise.
50352         * lib/unicodeio.c: Likewise.
50353         * lib/unicodeio.h: Likewise.
50354         * lib/unistd--.h: Likewise.
50355         * lib/unistd-safer.h: Likewise.
50356         * lib/unistdio/ulc-fprintf.c: Likewise.
50357         * lib/unistdio/ulc-vfprintf.c: Likewise.
50358         * lib/unlinkdir.c: Likewise.
50359         * lib/unlinkdir.h: Likewise.
50360         * lib/unlocked-io.h: Likewise.
50361         * lib/unsetenv.c: Likewise.
50362         * lib/userspec.c: Likewise.
50363         * lib/utime.c: Likewise.
50364         * lib/utimecmp.c: Likewise.
50365         * lib/utimecmp.h: Likewise.
50366         * lib/utimens.c: Likewise.
50367         * lib/verify.h: Likewise.
50368         * lib/verror.c: Likewise.
50369         * lib/verror.h: Likewise.
50370         * lib/version-etc-fsf.c: Likewise.
50371         * lib/version-etc.c: Likewise.
50372         * lib/version-etc.h: Likewise.
50373         * lib/vfprintf.c: Likewise.
50374         * lib/vprintf.c: Likewise.
50375         * lib/vsprintf.c: Likewise.
50376         * lib/w32spawn.h: Likewise.
50377         * lib/wait-process.c: Likewise.
50378         * lib/wait-process.h: Likewise.
50379         * lib/wcwidth.c: Likewise.
50380         * lib/write-any-file.c: Likewise.
50381         * lib/xalloc-die.c: Likewise.
50382         * lib/xalloc.h: Likewise.
50383         * lib/xasprintf.c: Likewise.
50384         * lib/xgetcwd.c: Likewise.
50385         * lib/xgetcwd.h: Likewise.
50386         * lib/xgetdomainname.c: Likewise.
50387         * lib/xgetdomainname.h: Likewise.
50388         * lib/xgethostname.c: Likewise.
50389         * lib/xmalloc.c: Likewise.
50390         * lib/xmalloca.c: Likewise.
50391         * lib/xmalloca.h: Likewise.
50392         * lib/xmemcoll.c: Likewise.
50393         * lib/xnanosleep.c: Likewise.
50394         * lib/xreadlink.c: Likewise.
50395         * lib/xreadlink.h: Likewise.
50396         * lib/xsetenv.c: Likewise.
50397         * lib/xsetenv.h: Likewise.
50398         * lib/xstriconv.c: Likewise.
50399         * lib/xstriconv.h: Likewise.
50400         * lib/xstrndup.c: Likewise.
50401         * lib/xstrndup.h: Likewise.
50402         * lib/xstrtod.c: Likewise.
50403         * lib/xstrtod.h: Likewise.
50404         * lib/xstrtol-error.c: Likewise.
50405         * lib/xstrtol.c: Likewise.
50406         * lib/xstrtol.h: Likewise.
50407         * lib/xtime.h: Likewise.
50408         * lib/xvasprintf.c: Likewise.
50409         * lib/xvasprintf.h: Likewise.
50410         * lib/yesno.c: Likewise.
50411         * lib/yesno.h: Likewise.
50412         * posix-modules: Likewise.
50413         * tests/test-alloca-opt.c: Likewise.
50414         * tests/test-arcfour.c: Likewise.
50415         * tests/test-arctwo.c: Likewise.
50416         * tests/test-argmatch.c: Likewise.
50417         * tests/test-argp-2.sh: Likewise.
50418         * tests/test-argp.c: Likewise.
50419         * tests/test-arpa_inet.c: Likewise.
50420         * tests/test-array_list.c: Likewise.
50421         * tests/test-array_oset.c: Likewise.
50422         * tests/test-atexit.c: Likewise.
50423         * tests/test-avltree_list.c: Likewise.
50424         * tests/test-avltree_oset.c: Likewise.
50425         * tests/test-avltreehash_list.c: Likewise.
50426         * tests/test-base64.c: Likewise.
50427         * tests/test-binary-io.c: Likewise.
50428         * tests/test-byteswap.c: Likewise.
50429         * tests/test-c-ctype.c: Likewise.
50430         * tests/test-c-strcasecmp.c: Likewise.
50431         * tests/test-c-strcasestr.c: Likewise.
50432         * tests/test-c-strncasecmp.c: Likewise.
50433         * tests/test-c-strstr.c: Likewise.
50434         * tests/test-canonicalize-lgpl.c: Likewise.
50435         * tests/test-canonicalize.c: Likewise.
50436         * tests/test-carray_list.c: Likewise.
50437         * tests/test-ceilf.c: Likewise.
50438         * tests/test-ceill.c: Likewise.
50439         * tests/test-count-one-bits.c: Likewise.
50440         * tests/test-crc.c: Likewise.
50441         * tests/test-dirname.c: Likewise.
50442         * tests/test-fbufmode.c: Likewise.
50443         * tests/test-fcntl.c: Likewise.
50444         * tests/test-fflush.c: Likewise.
50445         * tests/test-floorf.c: Likewise.
50446         * tests/test-floorl.c: Likewise.
50447         * tests/test-fopen.c: Likewise.
50448         * tests/test-fprintf-posix.c: Likewise.
50449         * tests/test-fprintf-posix.h: Likewise.
50450         * tests/test-fpurge.c: Likewise.
50451         * tests/test-freadable.c: Likewise.
50452         * tests/test-freadahead.c: Likewise.
50453         * tests/test-freading.c: Likewise.
50454         * tests/test-freopen.c: Likewise.
50455         * tests/test-frexp.c: Likewise.
50456         * tests/test-frexpl.c: Likewise.
50457         * tests/test-fseek.c: Likewise.
50458         * tests/test-fseeko.c: Likewise.
50459         * tests/test-fseterr.c: Likewise.
50460         * tests/test-fstrcmp.c: Likewise.
50461         * tests/test-ftell.c: Likewise.
50462         * tests/test-ftello.c: Likewise.
50463         * tests/test-fwritable.c: Likewise.
50464         * tests/test-fwriting.c: Likewise.
50465         * tests/test-getaddrinfo.c: Likewise.
50466         * tests/test-getpass.c: Likewise.
50467         * tests/test-gettimeofday.c: Likewise.
50468         * tests/test-hmac-md5.c: Likewise.
50469         * tests/test-hmac-sha1.c: Likewise.
50470         * tests/test-iconv.c: Likewise.
50471         * tests/test-iconvme.c: Likewise.
50472         * tests/test-inttypes.c: Likewise.
50473         * tests/test-isnan.c: Likewise.
50474         * tests/test-isnanf.c: Likewise.
50475         * tests/test-isnanl-nolibm.c: Likewise.
50476         * tests/test-isnanl.c: Likewise.
50477         * tests/test-isnanl.h: Likewise.
50478         * tests/test-ldexpl.c: Likewise.
50479         * tests/test-linked_list.c: Likewise.
50480         * tests/test-linkedhash_list.c: Likewise.
50481         * tests/test-locale.c: Likewise.
50482         * tests/test-localename.c: Likewise.
50483         * tests/test-lock.c: Likewise.
50484         * tests/test-lseek.c: Likewise.
50485         * tests/test-malloca.c: Likewise.
50486         * tests/test-math.c: Likewise.
50487         * tests/test-mbscasecmp.c: Likewise.
50488         * tests/test-mbscasestr1.c: Likewise.
50489         * tests/test-mbscasestr2.c: Likewise.
50490         * tests/test-mbscasestr3.c: Likewise.
50491         * tests/test-mbscasestr4.c: Likewise.
50492         * tests/test-mbschr.c: Likewise.
50493         * tests/test-mbscspn.c: Likewise.
50494         * tests/test-mbsncasecmp.c: Likewise.
50495         * tests/test-mbspbrk.c: Likewise.
50496         * tests/test-mbspcasecmp.c: Likewise.
50497         * tests/test-mbsrchr.c: Likewise.
50498         * tests/test-mbsspn.c: Likewise.
50499         * tests/test-mbsstr1.c: Likewise.
50500         * tests/test-mbsstr2.c: Likewise.
50501         * tests/test-mbsstr3.c: Likewise.
50502         * tests/test-md5.c: Likewise.
50503         * tests/test-memmem.c: Likewise.
50504         * tests/test-netinet_in.c: Likewise.
50505         * tests/test-open.c: Likewise.
50506         * tests/test-printf-frexp.c: Likewise.
50507         * tests/test-printf-frexpl.c: Likewise.
50508         * tests/test-printf-posix.c: Likewise.
50509         * tests/test-printf-posix.h: Likewise.
50510         * tests/test-rbtree_list.c: Likewise.
50511         * tests/test-rbtree_oset.c: Likewise.
50512         * tests/test-rbtreehash_list.c: Likewise.
50513         * tests/test-read-file.c: Likewise.
50514         * tests/test-rijndael.c: Likewise.
50515         * tests/test-search.c: Likewise.
50516         * tests/test-signbit.c: Likewise.
50517         * tests/test-sleep.c: Likewise.
50518         * tests/test-snprintf-posix.c: Likewise.
50519         * tests/test-snprintf-posix.h: Likewise.
50520         * tests/test-snprintf.c: Likewise.
50521         * tests/test-sprintf-posix.c: Likewise.
50522         * tests/test-sprintf-posix.h: Likewise.
50523         * tests/test-stat-time.c: Likewise.
50524         * tests/test-stdbool.c: Likewise.
50525         * tests/test-stdint.c: Likewise.
50526         * tests/test-stdio.c: Likewise.
50527         * tests/test-stdlib.c: Likewise.
50528         * tests/test-stpncpy.c: Likewise.
50529         * tests/test-strcasestr.c: Likewise.
50530         * tests/test-striconv.c: Likewise.
50531         * tests/test-striconveh.c: Likewise.
50532         * tests/test-striconveha.c: Likewise.
50533         * tests/test-string.c: Likewise.
50534         * tests/test-sys_select.c: Likewise.
50535         * tests/test-sys_socket.c: Likewise.
50536         * tests/test-sys_stat.c: Likewise.
50537         * tests/test-sys_time.c: Likewise.
50538         * tests/test-sysexits.c: Likewise.
50539         * tests/test-time.c: Likewise.
50540         * tests/test-tls.c: Likewise.
50541         * tests/test-trunc.c: Likewise.
50542         * tests/test-truncf.c: Likewise.
50543         * tests/test-truncl.c: Likewise.
50544         * tests/test-unistd.c: Likewise.
50545         * tests/test-vasnprintf-posix.c: Likewise.
50546         * tests/test-vasnprintf-posix2.c: Likewise.
50547         * tests/test-vasnprintf.c: Likewise.
50548         * tests/test-vasprintf-posix.c: Likewise.
50549         * tests/test-vasprintf.c: Likewise.
50550         * tests/test-verify.c: Likewise.
50551         * tests/test-vfprintf-posix.c: Likewise.
50552         * tests/test-vprintf-posix.c: Likewise.
50553         * tests/test-vsnprintf-posix.c: Likewise.
50554         * tests/test-vsnprintf.c: Likewise.
50555         * tests/test-vsprintf-posix.c: Likewise.
50556         * tests/test-wchar.c: Likewise.
50557         * tests/test-wctype.c: Likewise.
50558         * tests/test-wcwidth.c: Likewise.
50559         * tests/test-xstrtol.c: Likewise.
50560         * tests/test-xvasprintf.c: Likewise.
50561         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50562         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50563         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50564         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50565         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50566         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50567         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50568         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50569         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50570         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50571         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50572         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50573         * tests/uniname/test-uninames.c: Likewise.
50574         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50575         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50576         * tests/unistdio/test-u16-printf1.h: Likewise.
50577         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50578         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50579         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50580         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50581         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50582         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50583         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50584         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50585         * tests/unistdio/test-u32-printf1.h: Likewise.
50586         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50587         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50588         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50589         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50590         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50591         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50592         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50593         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50594         * tests/unistdio/test-u8-printf1.h: Likewise.
50595         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50596         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50597         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50598         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50599         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50600         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50601         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50602         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50603         * tests/unistdio/test-ulc-printf1.h: Likewise.
50604         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50605         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50606         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50607         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50608         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50609         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50610         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50611         * tests/uniwidth/test-u16-width.c: Likewise.
50612         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50613         * tests/uniwidth/test-u32-width.c: Likewise.
50614         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50615         * tests/uniwidth/test-u8-width.c: Likewise.
50616         * tests/uniwidth/test-uc_width.c: Likewise.
50617         * config/srclist-update: Likewise.
50618         (fixlicense): Update to GPLv3+.
50619
50620         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50621         * tests/test-tsearch.c: Change copyright notice.
50622
50623         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50624         * lib/c-strcaseeq.h: Change copyright notice.
50625         * lib/streq.h: Likewise.
50626         * lib/uniconv.h: Likewise.
50627         * lib/uniconv/u-conv-from-enc.h: Likewise.
50628         * lib/uniconv/u-conv-to-enc.h: Likewise.
50629         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50630         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50631         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50632         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50633         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50634         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50635         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50636         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50637         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50638         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50639         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50640         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50641         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50642         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50643         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50644         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50645         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50646         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50647         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50648         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50649         * lib/uniname.h: Likewise.
50650         * lib/uniname/uniname.c: Likewise.
50651         * lib/unistdio.h: Likewise.
50652         * lib/unistdio/u-asnprintf.h: Likewise.
50653         * lib/unistdio/u-asprintf.h: Likewise.
50654         * lib/unistdio/u-printf-args.c: Likewise.
50655         * lib/unistdio/u-printf-args.h: Likewise.
50656         * lib/unistdio/u-printf-parse.h: Likewise.
50657         * lib/unistdio/u-snprintf.h: Likewise.
50658         * lib/unistdio/u-sprintf.h: Likewise.
50659         * lib/unistdio/u-vasprintf.h: Likewise.
50660         * lib/unistdio/u-vsnprintf.h: Likewise.
50661         * lib/unistdio/u-vsprintf.h: Likewise.
50662         * lib/unistdio/u16-asnprintf.c: Likewise.
50663         * lib/unistdio/u16-asprintf.c: Likewise.
50664         * lib/unistdio/u16-printf-parse.c: Likewise.
50665         * lib/unistdio/u16-snprintf.c: Likewise.
50666         * lib/unistdio/u16-sprintf.c: Likewise.
50667         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50668         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50669         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50670         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50671         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50672         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50673         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50674         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50675         * lib/unistdio/u16-vasnprintf.c: Likewise.
50676         * lib/unistdio/u16-vasprintf.c: Likewise.
50677         * lib/unistdio/u16-vsnprintf.c: Likewise.
50678         * lib/unistdio/u16-vsprintf.c: Likewise.
50679         * lib/unistdio/u32-asnprintf.c: Likewise.
50680         * lib/unistdio/u32-asprintf.c: Likewise.
50681         * lib/unistdio/u32-printf-parse.c: Likewise.
50682         * lib/unistdio/u32-snprintf.c: Likewise.
50683         * lib/unistdio/u32-sprintf.c: Likewise.
50684         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50685         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50686         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50687         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50688         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50689         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50690         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50691         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50692         * lib/unistdio/u32-vasnprintf.c: Likewise.
50693         * lib/unistdio/u32-vasprintf.c: Likewise.
50694         * lib/unistdio/u32-vsnprintf.c: Likewise.
50695         * lib/unistdio/u32-vsprintf.c: Likewise.
50696         * lib/unistdio/u8-asnprintf.c: Likewise.
50697         * lib/unistdio/u8-asprintf.c: Likewise.
50698         * lib/unistdio/u8-printf-parse.c: Likewise.
50699         * lib/unistdio/u8-snprintf.c: Likewise.
50700         * lib/unistdio/u8-sprintf.c: Likewise.
50701         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50702         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50703         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50704         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50705         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50706         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50707         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50708         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50709         * lib/unistdio/u8-vasnprintf.c: Likewise.
50710         * lib/unistdio/u8-vasprintf.c: Likewise.
50711         * lib/unistdio/u8-vsnprintf.c: Likewise.
50712         * lib/unistdio/u8-vsprintf.c: Likewise.
50713         * lib/unistdio/ulc-asnprintf.c: Likewise.
50714         * lib/unistdio/ulc-asprintf.c: Likewise.
50715         * lib/unistdio/ulc-printf-parse.c: Likewise.
50716         * lib/unistdio/ulc-snprintf.c: Likewise.
50717         * lib/unistdio/ulc-sprintf.c: Likewise.
50718         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50719         * lib/unistdio/ulc-vasprintf.c: Likewise.
50720         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50721         * lib/unistdio/ulc-vsprintf.c: Likewise.
50722         * lib/unistr.h: Likewise.
50723         * lib/unistr/u-cpy-alloc.h: Likewise.
50724         * lib/unistr/u-cpy.h: Likewise.
50725         * lib/unistr/u-endswith.h: Likewise.
50726         * lib/unistr/u-move.h: Likewise.
50727         * lib/unistr/u-set.h: Likewise.
50728         * lib/unistr/u-startswith.h: Likewise.
50729         * lib/unistr/u-stpcpy.h: Likewise.
50730         * lib/unistr/u-stpncpy.h: Likewise.
50731         * lib/unistr/u-strcat.h: Likewise.
50732         * lib/unistr/u-strcpy.h: Likewise.
50733         * lib/unistr/u-strcspn.h: Likewise.
50734         * lib/unistr/u-strdup.h: Likewise.
50735         * lib/unistr/u-strlen.h: Likewise.
50736         * lib/unistr/u-strncat.h: Likewise.
50737         * lib/unistr/u-strncpy.h: Likewise.
50738         * lib/unistr/u-strnlen.h: Likewise.
50739         * lib/unistr/u-strpbrk.h: Likewise.
50740         * lib/unistr/u-strspn.h: Likewise.
50741         * lib/unistr/u-strstr.h: Likewise.
50742         * lib/unistr/u-strtok.h: Likewise.
50743         * lib/unistr/u16-check.c: Likewise.
50744         * lib/unistr/u16-chr.c: Likewise.
50745         * lib/unistr/u16-cmp.c: Likewise.
50746         * lib/unistr/u16-cpy-alloc.c: Likewise.
50747         * lib/unistr/u16-cpy.c: Likewise.
50748         * lib/unistr/u16-endswith.c: Likewise.
50749         * lib/unistr/u16-mblen.c: Likewise.
50750         * lib/unistr/u16-mbsnlen.c: Likewise.
50751         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50752         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50753         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50754         * lib/unistr/u16-mbtouc.c: Likewise.
50755         * lib/unistr/u16-mbtoucr.c: Likewise.
50756         * lib/unistr/u16-move.c: Likewise.
50757         * lib/unistr/u16-next.c: Likewise.
50758         * lib/unistr/u16-prev.c: Likewise.
50759         * lib/unistr/u16-set.c: Likewise.
50760         * lib/unistr/u16-startswith.c: Likewise.
50761         * lib/unistr/u16-stpcpy.c: Likewise.
50762         * lib/unistr/u16-stpncpy.c: Likewise.
50763         * lib/unistr/u16-strcat.c: Likewise.
50764         * lib/unistr/u16-strchr.c: Likewise.
50765         * lib/unistr/u16-strcmp.c: Likewise.
50766         * lib/unistr/u16-strcpy.c: Likewise.
50767         * lib/unistr/u16-strcspn.c: Likewise.
50768         * lib/unistr/u16-strdup.c: Likewise.
50769         * lib/unistr/u16-strlen.c: Likewise.
50770         * lib/unistr/u16-strmblen.c: Likewise.
50771         * lib/unistr/u16-strmbtouc.c: Likewise.
50772         * lib/unistr/u16-strncat.c: Likewise.
50773         * lib/unistr/u16-strncmp.c: Likewise.
50774         * lib/unistr/u16-strncpy.c: Likewise.
50775         * lib/unistr/u16-strnlen.c: Likewise.
50776         * lib/unistr/u16-strpbrk.c: Likewise.
50777         * lib/unistr/u16-strrchr.c: Likewise.
50778         * lib/unistr/u16-strspn.c: Likewise.
50779         * lib/unistr/u16-strstr.c: Likewise.
50780         * lib/unistr/u16-strtok.c: Likewise.
50781         * lib/unistr/u16-to-u32.c: Likewise.
50782         * lib/unistr/u16-to-u8.c: Likewise.
50783         * lib/unistr/u16-uctomb-aux.c: Likewise.
50784         * lib/unistr/u16-uctomb.c: Likewise.
50785         * lib/unistr/u32-check.c: Likewise.
50786         * lib/unistr/u32-chr.c: Likewise.
50787         * lib/unistr/u32-cmp.c: Likewise.
50788         * lib/unistr/u32-cpy-alloc.c: Likewise.
50789         * lib/unistr/u32-cpy.c: Likewise.
50790         * lib/unistr/u32-endswith.c: Likewise.
50791         * lib/unistr/u32-mblen.c: Likewise.
50792         * lib/unistr/u32-mbsnlen.c: Likewise.
50793         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50794         * lib/unistr/u32-mbtouc.c: Likewise.
50795         * lib/unistr/u32-mbtoucr.c: Likewise.
50796         * lib/unistr/u32-move.c: Likewise.
50797         * lib/unistr/u32-next.c: Likewise.
50798         * lib/unistr/u32-prev.c: Likewise.
50799         * lib/unistr/u32-set.c: Likewise.
50800         * lib/unistr/u32-startswith.c: Likewise.
50801         * lib/unistr/u32-stpcpy.c: Likewise.
50802         * lib/unistr/u32-stpncpy.c: Likewise.
50803         * lib/unistr/u32-strcat.c: Likewise.
50804         * lib/unistr/u32-strchr.c: Likewise.
50805         * lib/unistr/u32-strcmp.c: Likewise.
50806         * lib/unistr/u32-strcpy.c: Likewise.
50807         * lib/unistr/u32-strcspn.c: Likewise.
50808         * lib/unistr/u32-strdup.c: Likewise.
50809         * lib/unistr/u32-strlen.c: Likewise.
50810         * lib/unistr/u32-strmblen.c: Likewise.
50811         * lib/unistr/u32-strmbtouc.c: Likewise.
50812         * lib/unistr/u32-strncat.c: Likewise.
50813         * lib/unistr/u32-strncmp.c: Likewise.
50814         * lib/unistr/u32-strncpy.c: Likewise.
50815         * lib/unistr/u32-strnlen.c: Likewise.
50816         * lib/unistr/u32-strpbrk.c: Likewise.
50817         * lib/unistr/u32-strrchr.c: Likewise.
50818         * lib/unistr/u32-strspn.c: Likewise.
50819         * lib/unistr/u32-strstr.c: Likewise.
50820         * lib/unistr/u32-strtok.c: Likewise.
50821         * lib/unistr/u32-to-u16.c: Likewise.
50822         * lib/unistr/u32-to-u8.c: Likewise.
50823         * lib/unistr/u32-uctomb.c: Likewise.
50824         * lib/unistr/u8-check.c: Likewise.
50825         * lib/unistr/u8-chr.c: Likewise.
50826         * lib/unistr/u8-cmp.c: Likewise.
50827         * lib/unistr/u8-cpy-alloc.c: Likewise.
50828         * lib/unistr/u8-cpy.c: Likewise.
50829         * lib/unistr/u8-endswith.c: Likewise.
50830         * lib/unistr/u8-mblen.c: Likewise.
50831         * lib/unistr/u8-mbsnlen.c: Likewise.
50832         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50833         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50834         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50835         * lib/unistr/u8-mbtouc.c: Likewise.
50836         * lib/unistr/u8-mbtoucr.c: Likewise.
50837         * lib/unistr/u8-move.c: Likewise.
50838         * lib/unistr/u8-next.c: Likewise.
50839         * lib/unistr/u8-prev.c: Likewise.
50840         * lib/unistr/u8-set.c: Likewise.
50841         * lib/unistr/u8-startswith.c: Likewise.
50842         * lib/unistr/u8-stpcpy.c: Likewise.
50843         * lib/unistr/u8-stpncpy.c: Likewise.
50844         * lib/unistr/u8-strcat.c: Likewise.
50845         * lib/unistr/u8-strchr.c: Likewise.
50846         * lib/unistr/u8-strcmp.c: Likewise.
50847         * lib/unistr/u8-strcpy.c: Likewise.
50848         * lib/unistr/u8-strcspn.c: Likewise.
50849         * lib/unistr/u8-strdup.c: Likewise.
50850         * lib/unistr/u8-strlen.c: Likewise.
50851         * lib/unistr/u8-strmblen.c: Likewise.
50852         * lib/unistr/u8-strmbtouc.c: Likewise.
50853         * lib/unistr/u8-strncat.c: Likewise.
50854         * lib/unistr/u8-strncmp.c: Likewise.
50855         * lib/unistr/u8-strncpy.c: Likewise.
50856         * lib/unistr/u8-strnlen.c: Likewise.
50857         * lib/unistr/u8-strpbrk.c: Likewise.
50858         * lib/unistr/u8-strrchr.c: Likewise.
50859         * lib/unistr/u8-strspn.c: Likewise.
50860         * lib/unistr/u8-strstr.c: Likewise.
50861         * lib/unistr/u8-strtok.c: Likewise.
50862         * lib/unistr/u8-to-u16.c: Likewise.
50863         * lib/unistr/u8-to-u32.c: Likewise.
50864         * lib/unistr/u8-uctomb-aux.c: Likewise.
50865         * lib/unistr/u8-uctomb.c: Likewise.
50866         * lib/unitypes.h: Likewise.
50867         * lib/uniwidth.h: Likewise.
50868         * lib/uniwidth/cjk.h: Likewise.
50869         * lib/uniwidth/u16-strwidth.c: Likewise.
50870         * lib/uniwidth/u16-width.c: Likewise.
50871         * lib/uniwidth/u32-strwidth.c: Likewise.
50872         * lib/uniwidth/u32-width.c: Likewise.
50873         * lib/uniwidth/u8-strwidth.c: Likewise.
50874         * lib/uniwidth/u8-width.c: Likewise.
50875         * lib/uniwidth/width.c: Likewise.
50876
50877 2007-10-07  Bruno Haible  <bruno@clisp.org>
50878
50879         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
50880         The file is still under LGPL (see modules/inttypes).
50881
50882 2007-10-06  Bruno Haible  <bruno@clisp.org>
50883
50884         * modules/trunc (Dependencies): Add 'extensions'.
50885         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
50886         Reported by Ben Pfaff <blp@gnu.org>.
50887
50888 2007-10-06  Bruno Haible  <bruno@clisp.org>
50889
50890         * modules/freopen-tests: New file.
50891         * tests/test-freopen.c: New file.
50892
50893         * modules/fopen-tests: New file.
50894         * tests/test-fopen.c: New file.
50895
50896         * modules/fopen: New file.
50897         * lib/fopen.c: New file.
50898         * m4/fopen.m4: New file.
50899         * modules/freopen: New file.
50900         * lib/freopen.c: New file.
50901         * m4/freopen.m4: New file.
50902         * lib/stdio.in.h (fopen, freopen): New declarations.
50903         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
50904         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50905         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
50906         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50907         * doc/functions/fopen.texi: Mention the 'fopen' module.
50908         * doc/functions/freopen.texi: Mention the 'freopen' module.
50909
50910 2007-10-06  Bruno Haible  <bruno@clisp.org>
50911
50912         * modules/open-tests: New file.
50913         * tests/test-open.c: New file.
50914
50915         * modules/open: New file.
50916         * lib/open.c: New file.
50917         * m4/open.m4: New file.
50918         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
50919         lib/open.c does.
50920         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
50921         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
50922         macros.
50923         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
50924         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
50925         REPLACE_OPEN.
50926         * doc/functions/open.texi: Mention the 'open' module.
50927
50928 2007-10-04  Bruno Haible  <bruno@clisp.org>
50929
50930         * modules/ceill-tests: New file.
50931         * tests/test-ceill.c: New file.
50932
50933         * modules/ceill: New file.
50934         * lib/ceill.c: Replace entire file.
50935         * m4/ceill.m4: New file.
50936         * lib/math.in.h (ceill): Replace declaration.
50937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
50938         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
50939         * doc/functions/ceill.texi: Mention the 'ceill' module.
50940         * modules/mathl (Files): Remove lib/ceill.c.
50941         (Depends-on): Add ceill.
50942
50943 2007-10-04  Bruno Haible  <bruno@clisp.org>
50944
50945         * modules/ceilf-tests: New file.
50946         * tests/test-ceilf.c: New file.
50947
50948         * modules/ceilf: New file.
50949         * lib/ceil.c: New file.
50950         * lib/ceilf.c: New file.
50951         * m4/ceilf.m4: New file.
50952         * lib/math.in.h (ceilf): New declaration.
50953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
50954         HAVE_DECL_CEILF.
50955         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
50956         HAVE_DECL_CEILF.
50957         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
50958
50959 2007-10-04  Bruno Haible  <bruno@clisp.org>
50960
50961         * modules/floorl-tests: New file.
50962         * tests/test-floorl.c: New file.
50963
50964         * modules/floorl: New file.
50965         * lib/floorl.c: Replace entire file.
50966         * m4/floorl.m4: New file.
50967         * lib/math.in.h (floorl): Replace declaration.
50968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
50969         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
50970         * doc/functions/floorl.texi: Mention the 'floorl' module.
50971         * modules/mathl (Files): Remove lib/floorl.c.
50972         (Depends-on): Add floorl.
50973
50974 2007-10-04  Bruno Haible  <bruno@clisp.org>
50975
50976         * modules/floorf-tests: New file.
50977         * tests/test-floorf.c: New file.
50978
50979         * modules/floorf: New file.
50980         * lib/floor.c: New file.
50981         * lib/floorf.c: New file.
50982         * m4/floorf.m4: New file.
50983         * lib/math.in.h (floorf): New declaration.
50984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
50985         HAVE_DECL_FLOORF.
50986         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
50987         HAVE_DECL_FLOORF.
50988         * doc/functions/floorf.texi: Mention the 'floorf' module.
50989
50990 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
50991             Bruno Haible  <bruno@clisp.org>
50992
50993         Advertise for the Git server instead of the CVS server.
50994         * doc/gnulib-intro.texi (Steady Development): Mention the Git
50995         repository instead of the CVS one.
50996         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
50997         about all VCS systems generically.
50998         * doc/gnulib.texi (Introduction): Capitalize `Git'.
50999
51000 2007-10-04  Bruno Haible  <bruno@clisp.org>
51001
51002         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
51003         means.
51004         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
51005
51006 2007-10-04  Bruno Haible  <bruno@clisp.org>
51007
51008         * modules/truncl-tests: New file.
51009         * tests/test-truncl.c: New file.
51010
51011         * modules/truncl: New file.
51012         * lib/truncl.c: New file.
51013         * m4/truncl.m4: New file.
51014         * lib/math.in.h (truncl): New declaration.
51015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
51016         HAVE_DECL_TRUNCL.
51017         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
51018         HAVE_DECL_TRUNCL.
51019         * doc/functions/truncl.texi: Mention the 'truncl' module.
51020
51021 2007-10-04  Bruno Haible  <bruno@clisp.org>
51022
51023         * modules/truncf-tests: New file.
51024         * tests/test-truncf.c: New file.
51025
51026         * modules/truncf: New file.
51027         * lib/trunc.c: Make paramerizable through USE_* macros.
51028         * lib/truncf.c: New file.
51029         * m4/truncf.m4: New file.
51030         * lib/math.in.h (truncf): New declaration.
51031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
51032         HAVE_DECL_TRUNCF.
51033         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
51034         HAVE_DECL_TRUNCF.
51035         * doc/functions/truncf.texi: Mention the 'truncf' module.
51036
51037 2007-10-03  Bruno Haible  <bruno@clisp.org>
51038
51039         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51040         augmentation also for tests modules.
51041         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
51042         * modules/atexit-tests (Makefile.am): Likewise.
51043         * modules/binary-io-tests (Makefile.am): Likewise.
51044         * modules/c-strcase-tests (Makefile.am): Likewise.
51045         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
51046         * modules/canonicalize-tests (Makefile.am): Likewise.
51047         * modules/closein-tests (Makefile.am): Likewise.
51048         * modules/fprintf-posix-tests (Makefile.am): Likewise.
51049         * modules/freadahead-tests (Makefile.am): Likewise.
51050         * modules/fseek-tests (Makefile.am): Likewise.
51051         * modules/fseeko-tests (Makefile.am): Likewise.
51052         * modules/ftell-tests (Makefile.am): Likewise.
51053         * modules/ftello-tests (Makefile.am): Likewise.
51054         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
51055         * modules/isnanl-tests (Makefile.am): Likewise.
51056         * modules/lseek-tests (Makefile.am): Likewise.
51057         * modules/mbscasecmp-tests (Makefile.am): Likewise.
51058         * modules/mbscasestr-tests (Makefile.am): Likewise.
51059         * modules/mbschr-tests (Makefile.am): Likewise.
51060         * modules/mbscspn-tests (Makefile.am): Likewise.
51061         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
51062         * modules/mbspbrk-tests (Makefile.am): Likewise.
51063         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
51064         * modules/mbsrchr-tests (Makefile.am): Likewise.
51065         * modules/mbsspn-tests (Makefile.am): Likewise.
51066         * modules/mbsstr-tests (Makefile.am): Likewise.
51067         * modules/printf-posix-tests (Makefile.am): Likewise.
51068         * modules/snprintf-posix-tests (Makefile.am): Likewise.
51069         * modules/sprintf-posix-tests (Makefile.am): Likewise.
51070         * modules/tsearch-tests (Makefile.am): Likewise.
51071         * modules/uniname/uniname-tests (Makefile.am): Likewise.
51072         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
51073         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
51074         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
51075         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
51076         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
51077         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
51078         * modules/vprintf-posix-tests (Makefile.am): Likewise.
51079         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
51080         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
51081         * modules/xstrtoimax-tests (Makefile.am): Likewise.
51082         * modules/xstrtol-tests (Makefile.am): Likewise.
51083         * modules/xstrtoumax-tests (Makefile.am): Likewise.
51084         * modules/yesno-tests (Makefile.am): Likewise.
51085
51086 2007-10-03  Bruno Haible  <bruno@clisp.org>
51087
51088         * modules/trunc-tests: New file.
51089         * tests/test-trunc.c: New file.
51090
51091         * modules/trunc: New file.
51092         * lib/trunc.c: New file.
51093         * m4/trunc.m4: New file.
51094         * lib/math.in.h (trunc): New declaration.
51095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
51096         HAVE_DECL_TRUNC.
51097         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
51098         HAVE_DECL_TRUNC.
51099         * doc/functions/trunc.texi: Mention the 'trunc' module.
51100
51101 2007-10-03  Bruno Haible  <bruno@clisp.org>
51102
51103         * tests/test-fpending.c: New file, mostly copied
51104         from coreutils/lib/t-fpending.c.
51105         * modules/fpending-tests: New file.
51106
51107 2007-10-03  Bruno Haible  <bruno@clisp.org>
51108
51109         Port the stdio extensions to QNX (untested).
51110         * lib/fseterr.c (fseterr): Add support for QNX.
51111         * lib/fbufmode.c (fbufmode): Likewise.
51112         * lib/freadable.c (freadable): Likewise.
51113         * lib/fwritable.c (fwritable): Likewise.
51114         * lib/freading.c (freading): Likewise.
51115         * lib/fwriting.c (fwriting): Likewise.
51116         * lib/freadahead.c (freadahed): Likewise.
51117         * lib/fpurge.c (fpurge): Likewise.
51118         * lib/fseeko.c (rpl_fseeko): Likewise.
51119
51120 2007-10-03  Bruno Haible  <bruno@clisp.org>
51121             Jim Meyering  <jim@meyering.net>
51122             Eric Blake  <ebb9@byu.net>
51123
51124         * doc/relocatable.texi: Use @command instead of @program.
51125
51126 2007-10-02  Jim Meyering  <jim@meyering.net>
51127
51128         Perform one more "_.h" -> ".in.h" substitution.
51129         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
51130         instead of unistd_.h here, too.
51131
51132 2007-10-01  Bruno Haible  <bruno@clisp.org>
51133
51134         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
51135         Needed for the alloca-opt module.
51136
51137 2007-09-30  Bruno Haible  <bruno@clisp.org>
51138
51139         * lib/alloca.in.h: Renamed from lib/alloca_.h.
51140         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
51141         alloca_.h.
51142         * lib/argz.in.h: Renamed from lib/argz_.h.
51143         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
51144         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
51145         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
51146         byteswap_.h.
51147         * lib/dirent.in.h: Renamed from lib/dirent_.h.
51148         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
51149         dirent_.h.
51150         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
51151         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
51152         fcntl_.h.
51153         * lib/float.in.h: Renamed from lib/float_.h.
51154         * modules/float (Files, Makefile.am): Use float.in.h instead of
51155         float_.h.
51156         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51157         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
51158         fnmatch_.h.
51159         * lib/getopt.in.h: Renamed from lib/getopt_.h.
51160         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
51161         getopt_.h.
51162         * lib/glob.in.h: Renamed from lib/glob_.h.
51163         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
51164         * lib/iconv.in.h: Renamed from lib/iconv_.h.
51165         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
51166         iconv_.h.
51167         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
51168         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
51169         inttypes_.h.
51170         * lib/locale.in.h: Renamed from lib/locale_.h.
51171         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
51172         locale_.h.
51173         * lib/math.in.h: Renamed from lib/math_.h.
51174         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
51175         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
51176         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
51177         of netinet_in_.h. Add dependency.
51178         * lib/poll.in.h: Renamed from lib/poll_.h.
51179         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
51180         * lib/search.in.h: Renamed from lib/search_.h.
51181         * modules/search (Files, Makefile.am): Use search.in.h instead of
51182         search_.h.
51183         * lib/signal.in.h: Renamed from lib/signal_.h.
51184         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
51185         _signal.h.
51186         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
51187         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
51188         stdbool_.h.
51189         * lib/stdint.in.h: Renamed from lib/stdint_.h.
51190         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
51191         stdint_.h.
51192         * lib/stdio.in.h: Renamed from lib/stdio_.h.
51193         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
51194         stdio_.h.
51195         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
51196         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
51197         stdlib_.h.
51198         * lib/string.in.h: Renamed from lib/string_.h.
51199         * modules/string (Files, Makefile.am): Use string.in.h instead of
51200         string_.h.
51201         * doc/gnulib-tool.texi (Initial import): Update.
51202         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
51203         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
51204         of sys_select_.h. Add dependency.
51205         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
51206         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
51207         of sys_socket_.h.
51208         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
51209         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
51210         sys_stat_.h.
51211         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
51212         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
51213         sys_time_.h.
51214         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
51215         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
51216         sysexits_.h.
51217         * lib/time.in.h: Renamed from lib/time_.h.
51218         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
51219         * lib/unistd.in.h: Renamed from lib/unistd_.h.
51220         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
51221         unistd_.h.
51222         * lib/wchar.in.h: Renamed from lib/wchar_.h.
51223         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
51224         wchar_.h.
51225         * lib/wctype.in.h: Renamed from lib/wctype_.h.
51226         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
51227         wctype_.h.
51228         * build-aux/bootstrap (slurp): Update.
51229         * lib/.cppi-disable: Update.
51230
51231 2007-09-30  Bruno Haible  <bruno@clisp.org>
51232
51233         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
51234         Needed on BeOS.
51235
51236 2007-09-30  Bruno Haible  <bruno@clisp.org>
51237
51238         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
51239
51240 2007-09-29  Bruno Haible  <bruno@clisp.org>
51241
51242         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
51243
51244 2007-09-29  Bruno Haible  <bruno@clisp.org>
51245
51246         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
51247         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
51248         * build-aux/install-reloc: Compile also areadlink.c.
51249         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
51250
51251 2007-09-29  Bruno Haible  <bruno@clisp.org>
51252
51253         * gnulib-tool (func_emit_initmacro_done): Indentation.
51254
51255 2007-09-29  Bruno Haible  <bruno@clisp.org>
51256
51257         * README: Add CVS checkout update instructions.
51258         Info from Bob Proulx <bob@proulx.com>.
51259
51260 2007-09-28  Eric Blake  <ebb9@byu.net>
51261
51262         Provide move-if-change.
51263         * build-aux/move-if-change: New file, based on best practice
51264         rather than any canonical upstream location.
51265
51266 2007-09-28  Jim Meyering  <jim@meyering.net>
51267
51268         Fix canonicalize loop-detection corner case.
51269         Do not attempt to stat the symlink values stored via seen_triple.
51270         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
51271         on linux-2.6.18, (but not 2.6.22).
51272         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
51273         triple_compare.  The former compares dev,ino,filename, while the latter
51274         would actually stat dirname(filename) when dev and ino were equal.
51275         * lib/hash-triple.c: Install <string.h>.
51276         (STREQ): Define.
51277         (triple_compare_ino_str): New function.
51278         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
51279
51280 2007-09-28  Eric Blake  <ebb9@byu.net>
51281
51282         Enforce that AC_REPLACE_FUNCS files exist.
51283         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
51284         override check for typos.
51285
51286         Fix test-closein on Solaris 10.
51287         * tests/test-closein.c (main): Don't assume stdin can be inherited
51288         closed on all systems.
51289         * tests/test-closein.sh: Likewise.
51290         Reported by Piotr Tarnowski.
51291
51292 2007-09-28  Jim Meyering  <jim@meyering.net>
51293
51294         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
51295
51296 2007-09-27  Jim Meyering  <jim@meyering.net>
51297
51298         canonicalize: Avoid a false-positive cycle failure.
51299         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51300         Sort.  Remove cycle-check.
51301         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51302         not cycle-check.h.
51303         (seen_triple): New function.
51304         (canonicalize_filename_mode): Use it instead of cycle-check.
51305         * tests/test-canonicalize.c: Add a test for this bug.
51306         * tests/test-canonicalize.sh: Set up and run the test.
51307
51308         New module, file-set, from coreutils.
51309         * modules/file-set: Define it.
51310         * lib/file-set.c, lib/file-set.h: Implement.
51311
51312         New module, hash-triple, from coreutils.
51313         * modules/hash-triple: Define it.
51314         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51315
51316 2007-09-25  Eric Blake  <ebb9@byu.net>
51317
51318         Fix strerror on Interix.
51319         * lib/string_.h (strerror): Declare replacement.
51320         * doc/functions/strerror.texi (strerror): Document the Interix
51321         shortcoming.
51322         * modules/string (Makefile.am): Support new hooks.
51323         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51324         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51325         gl_FUNC_STRERROR_SEPARATE.
51326         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51327         * lib/strerror.c (rpl_strerror): Provide replacement.
51328         * modules/strerror (Depends-on): Add string.
51329         (configure.ac): Detect use of module.
51330         * tests/test-strerror.c: New file.
51331         * modules/strerror-tests: New test module.
51332         * modules/argp (Depends-on): Add strerror.
51333         * modules/error (Depends-on): Likewise.
51334         Reported by Martin Koeppe.
51335
51336 2007-09-24  Bruno Haible  <bruno@clisp.org>
51337
51338         * README: Update git instructions.
51339
51340 2007-09-24  Eric Blake  <ebb9@byu.net>
51341
51342         Revert fpending breakage from 2007-09-08.
51343         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51344         __fpending.c.
51345
51346 2007-09-24  Jim Meyering  <jim@meyering.net>
51347
51348         filenamecat.c: Add a test.
51349         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51350         showing how the function works when DIR is the empty string.
51351
51352 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51353
51354         * tests/test-canonicalize.sh: Turn on executable bit.
51355
51356 2007-09-19  Eric Blake  <ebb9@byu.net>
51357
51358         * README: Update CVS instructions.
51359
51360 2007-09-18  Bruno Haible  <bruno@clisp.org>
51361
51362         * modules/areadlink: New file.
51363         * lib/areadlink.h (areadlink): New declaration.
51364         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51365
51366 2007-09-17  Jim Meyering  <jim@meyering.net>
51367
51368         * lib/savewd.c (ESTALE) [!defined]: Define.
51369         Reported to be required on Interix by Martin Koeppe.
51370
51371 2007-09-17  Bruno Haible  <bruno@clisp.org>
51372
51373         * gnulib-tool (func_version): Use $version.
51374
51375 2007-09-16  Bruno Haible  <bruno@clisp.org>
51376
51377         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51378         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51379         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51380         Reported by Greg Schafer <gschafer@zip.com.au>.
51381
51382 2007-09-15  Bruno Haible  <bruno@clisp.org>
51383
51384         * gnulib-tool (sed): Try a little harder to make bash understand the
51385         alias.
51386         Reported by Bruce Korb <bruce.korb@gmail.com>.
51387
51388 2007-09-13  Eric Blake  <ebb9@byu.net>
51389
51390         * ChangeLog: Remove conflict markers.
51391
51392 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51393
51394         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51395         Reported by Bruno Haible <bruno@clisp.org>.
51396
51397 2007-09-12  Bruno Haible  <bruno@clisp.org>
51398
51399         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51400         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51401         is not defined.
51402
51403 2007-09-12  Eric Blake  <ebb9@byu.net>
51404
51405         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51406         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51407         Autoconf definition.
51408         * modules/euidaccess (Depends-on): Add extensions, for
51409         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51410         * modules/fnmatch (Depends-on): Likewise.
51411         * modules/getaddrinfo (Depends-on): Likewise.
51412         * modules/getdelim (Depends-on): Likewise.
51413         * modules/getline (Depends-on): Likewise.
51414         * modules/getsubopt (Depends-on): Likewise.
51415         * modules/gettext (Depends-on): Likewise.
51416         * modules/group-member (Depends-on): Likewise.
51417         * modules/mbchar (Depends-on): Likewise.
51418         * modules/memmem (Depends-on): Likewise.
51419         * modules/mempcpy (Depends-on): Likewise.
51420         * modules/memrchr (Depends-on): Likewise.
51421         * modules/pagealign_alloc (Depends-on): Likewise.
51422         * modules/readutmp (Depends-on): Likewise.
51423         * modules/stpcpy (Depends-on): Likewise.
51424         * modules/stpncpy (Depends-on): Likewise.
51425         * modules/strchrnul (Depends-on): Likewise.
51426         * modules/strndup (Depends-on): Likewise.
51427         * modules/strsep (Depends-on): Likewise.
51428         * modules/strverscmp (Depends-on): Likewise.
51429         * modules/vasprintf (Depends-on): Likewise.
51430         * modules/wcwidth (Depends-on): Likewise.
51431         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51432         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51433         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51434         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51435         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51436         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51437         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51438         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51439         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51440         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51441         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51442         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51443         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51444         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51445         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51446         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51447         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51448         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51449         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51450         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51451         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51452         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51453         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51454         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51455         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51457         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51458         so that lock.m4 can be used in gettext without extensions module.
51459
51460 2007-09-11  Bruno Haible  <bruno@clisp.org>
51461
51462         * m4/isc-posix.m4: Remove file.
51463         Suggested by Eric Blake.
51464
51465 2007-09-11  Eric Blake  <ebb9@byu.net>
51466
51467         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51468
51469 2007-09-10  Bruno Haible  <bruno@clisp.org>
51470
51471         * posix-modules: Fix typo in error message.
51472         Reported by Matt <mkraai@beckman.com>.
51473
51474 2007-09-09  Bruno Haible  <bruno@clisp.org>
51475
51476         * doc/functions/getdelim.texi: Update list of platforms lacking the
51477         function.
51478         * doc/functions/getline.texi: Likewise.
51479
51480 2007-09-09  Jim Meyering  <jim@meyering.net>
51481
51482         * lib/hash.c (hash_initialize): Detect calloc failure.
51483         Reported by Bruno Haible.
51484
51485 2007-09-09  Bruno Haible  <bruno@clisp.org>
51486
51487         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51488         malloc or realloc fails.
51489
51490 2007-09-09  Bruno Haible  <bruno@clisp.org>
51491
51492         * modules/getcwd (Depends-on): Add malloc-posix.
51493         * modules/glob (Depends-on): Likewise.
51494         * modules/putenv (Depends-on): Likewise.
51495         * modules/strdup (Depends-on): Likewise.
51496         * modules/getdelim (Depends-on): Add realloc-posix.
51497         * modules/read-file (Depends-on): Likewise.
51498
51499 2007-09-09  Bruno Haible  <bruno@clisp.org>
51500
51501         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51502         (gl_FUNC_MALLOC_POSIX): Require it.
51503         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51504         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51505         * modules/realloc (Files): Add m4/malloc.m4.
51506         * modules/calloc (Files): Likewise.
51507
51508 2007-09-09  Bruno Haible  <bruno@clisp.org>
51509
51510         * modules/malloc-posix: New file.
51511         * modules/malloc (Depends-on): Add malloc-posix.
51512         * lib/malloc.c: Include errno.h.
51513         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51514         and a POSIX-compatible malloc into a single function. Set ENOMEM
51515         when returning NULL.
51516         * m4/malloc.m4: New file.
51517         * doc/functions/malloc.texi: Mention the malloc-posix module.
51518         * lib/stdlib_.h (malloc): New declaration.
51519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51520         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51521         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51522         and HAVE_MALLOC_POSIX.
51523
51524 2007-09-09  Bruno Haible  <bruno@clisp.org>
51525
51526         * modules/realloc-posix: New file.
51527         * modules/realloc (Depends-on): Add realloc-posix.
51528         * lib/realloc.c: Include errno.h.
51529         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51530         and a POSIX-compatible realloc into a single function. Set ENOMEM
51531         when returning NULL.
51532         * m4/realloc.m4: New file.
51533         * doc/functions/realloc.texi: Mention the realloc-posix module.
51534         * lib/stdlib_.h (realloc): New declaration.
51535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51536         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51537         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51538         and HAVE_REALLOC_POSIX.
51539
51540 2007-09-09  Bruno Haible  <bruno@clisp.org>
51541
51542         * modules/calloc-posix: New file.
51543         * modules/calloc (Depends-on): Add calloc-posix.
51544         * lib/calloc.c: Include errno.h.
51545         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51546         and a POSIX-compatible calloc into a single function. Set ENOMEM
51547         when returning NULL.
51548         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51549         * doc/functions/calloc.texi: Mention the calloc-posix module.
51550         * lib/stdlib_.h (calloc): New declaration.
51551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51552         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51553         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51554         and HAVE_CALLOC_POSIX.
51555
51556 2007-09-09  Bruno Haible  <bruno@clisp.org>
51557
51558         Allow for modules to show an arbitrary notice.
51559         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51560         * gnulib-tool: New option --extract-notice.
51561         (func_usage): Document it.
51562         (sed_extract_prog): Update.
51563         (func_get_notice): New function.
51564         (func_modules_notice): New function.
51565         (func_import, func_create_testdir): Invoke it.
51566         Suggested by Jim Meyering.
51567
51568 2007-09-09  Bruno Haible  <bruno@clisp.org>
51569
51570         * gnulib-tool: New options --verbose, --quiet.
51571         (func_usage): Document them.
51572         (verbose): New variable.
51573         (func_execute_command): New function.
51574         (func_import): Don't show the module list and the file list if
51575         $verbose < 0.
51576         (func_create_testdir): Likewise. Use func_execute_command.
51577         (func_create_megatestdir): Use func_execute_command.
51578
51579 2007-09-08  Bruno Haible  <bruno@clisp.org>
51580
51581         * gnulib-tool (func_import): Prefer rsync over wget when available,
51582         for fetching the PO files.
51583
51584 2007-09-08  Bruno Haible  <bruno@clisp.org>
51585
51586         * posix-modules: New file. Portions copied from gnulib-tool.
51587         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51588
51589 2007-09-08  Jim Meyering  <jim@meyering.net>
51590
51591         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51592         * lib/fpending.h: Rename from __fpending.h.
51593         * lib/fpending.c: Rename from __fpending.c.
51594         Include "fpending.h", not "__fpending.h".
51595         * lib/__fpending.h, lib/__fpending.c: Remove files.
51596         * modules/fpending (Files): Reflect new file names.
51597         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51598
51599 2007-09-08  Bruno Haible  <bruno@clisp.org>
51600
51601         * m4/inttypes-h.m4: Remove stub file.
51602
51603 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51604
51605         * doc/headers/stdint.texi: Discuss #include_next issue.
51606
51607 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51608
51609         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51610
51611 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51612
51613         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51614         in variable name.
51615
51616 2007-09-03  Jim Meyering  <jim@meyering.net>
51617
51618         New module: git-version-gen.
51619         * modules/git-version-gen: New file.
51620
51621         Import changes from coreutils for bootstrap script.
51622
51623         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51624
51625         bootstrap: uses rsync to download the .po files
51626         * build-aux/bootstrap (po_download_command_format): New global.
51627         (download_po_files): Use rsync.
51628         (update_po_files): Don't remove .po files after download,
51629         so future rsync runs can take advantage of the copies.
51630
51631         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51632
51633         Solve the unnecessary-.po-file-regeneration problem once and for all.
51634         * build-aux/bootstrap (download_po_files): New function, renamed from
51635         get_translations.  Now, downloads, but doesn't update LINGUAS.
51636         (update_po_files): New function.
51637
51638         bootstrap: Ignore more.
51639         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51640         uniwidth to e.g., lib/.gitignore.
51641         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51642
51643         * build-aux/bootstrap: New setting: vc_ignore.
51644         (insert_sorted_if_absent): Create $file if absent.
51645         Adapt to new, possibly empty, list: $vc_ignore.
51646
51647         bootstrap: generate more ignorable names
51648         * build-aux/bootstrap (slurp): When generating ignorable names,
51649         also map .sin to .sed, .gperf to .c, and .y to .c.
51650
51651 2007-09-03  Jim Meyering  <jim@meyering.net>
51652
51653         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51654         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51655
51656 2007-09-02  Bruno Haible  <bruno@clisp.org>
51657
51658         Fix mis-recognition of 'mcs' on QNX 6.
51659         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51660         output contains the string "Mono".
51661         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51662         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51663
51664 2007-09-01  Bruno Haible  <bruno@clisp.org>
51665
51666         Fix collision between uniwidth/* and linebreak modules.
51667         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51668         u32_width): Remove declarations.
51669         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51670         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51671         streq3, streq2, streq1, streq0): Remove functions.
51672         (STREQ): Remove macro.
51673         (is_cjk_encoding): Remove function.
51674         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51675         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51676         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51677         * NEWS: Document the change.
51678
51679 2007-09-01  Bruno Haible  <bruno@clisp.org>
51680
51681         * lib/streq.h: Add double-inclusion guard.
51682
51683 2007-09-01  Karl Berry  <karl@gnu.org>
51684
51685         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51686
51687 2007-08-28  Jim Meyering  <jim@meyering.net>
51688
51689         Rename mreadlink_with_size to areadlink_with_size.
51690         * NEWS: Document the change.
51691         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51692         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51693         * lib/mreadlink.h: Rename this to...
51694         * lib/areadlink.h: ...this.
51695         * modules/mreadlink-with-size: Rename this to...
51696         * modules/areadlink-with-size: ...this.
51697         * lib/canonicalize.c: Reflect the renaming.
51698         * modules/canonicalize: Likewise.
51699
51700 2007-08-26  Bruno Haible  <bruno@clisp.org>
51701
51702         * gnulib-tool (func_import): When deciding which files to remove,
51703         consider also dangling symbolic links.
51704         Reported by Eric Blake.
51705
51706 2007-08-26  Bruno Haible  <bruno@clisp.org>
51707
51708         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51709
51710 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51711
51712         * lib/readline.c: Don't include getline.h, the prototype is now
51713         found in stdio.h.
51714
51715 2007-08-23  Jim Meyering  <jim@meyering.net>
51716
51717         Getdelim touchup.
51718         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51719         around the funlockfile call, since funlockfile never sets errno.
51720         Don't set errno upon failed realloc.
51721
51722 2007-08-22  Eric Blake  <ebb9@byu.net>
51723
51724         Getline touchups.
51725         * lib/getdelim.c (getdelim): Revert regression that required *n to
51726         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51727         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51728         getdelim, rather than whether implementation is missing.
51729         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51730         * lib/stdio_.h (getline): Also declare if replacement is
51731         required.
51732         * doc/functions/getdelim.texi: New file.
51733         * doc/functions/getline.texi: Likewise.
51734         * doc/gnulib.texi (Function Substitutes): Add new files.
51735         Reported by Bruno Haible.
51736
51737 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51738
51739         * users.txt: Add Guile.
51740
51741 2007-08-22  Eric Blake  <ebb9@byu.net>
51742
51743         * tests/test-getdelim.c (main): Use remove, not unlink.
51744         * tests/test-getline.c (main): Likewise.
51745
51746         Move getline and getdelim into stdio.h, per POSIX 200x.
51747         * modules/getline (Files): Remove getline.h.
51748         (Depends-on): Add stdio.
51749         (configure.ac): Add module indicator.
51750         * modules/getdelim (Files): Remove getdelim.h.
51751         (Depends-on): Add stdio.
51752         (configure.ac): Add module indicator.
51753         * modules/stdio (Makefile.am): Work with new indicators.
51754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51755         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51756         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51757         * lib/getdelim.h: Delete.
51758         * lib/getline.h: Delete.
51759         * lib/stdio_.h (getdelim, getline): Declare.
51760         * modules/getdelim-tests: New module.
51761         * modules/getline-tests: Likewise.
51762         * tests/test-getdelim.c: New file.
51763         * tests/test-getline.c: Likewise.
51764         * NEWS: Document the change.
51765         * lib/getline.c: Update choice of header.
51766         * lib/csharpcomp.c: Likewise.
51767         * lib/getpass.c: Likewise.
51768         * lib/javacomp.c: Likewise.
51769         * lib/javaversion.c: Likewise.
51770         * lib/yesno.c: Likewise.
51771         * lib/getdelim.c: Likewise.
51772         (getdelim): Set errno on failure, and avoid memory leak.
51773
51774 2007-08-19  Bruno Haible  <bruno@clisp.org>
51775
51776         * modules/closein (Depends-on): Add freadahead.
51777         * lib/closein.c: Include freadahead.h.
51778         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51779         is zero.
51780
51781 2007-08-19  Bruno Haible  <bruno@clisp.org>
51782
51783         * modules/freadahead-tests: New file.
51784         * tests/test-freadahead.sh: New file.
51785         * tests/test-freadahead.c: New file.
51786
51787         * modules/freadahead: New file.
51788         * lib/freadahead.h: New file.
51789         * lib/freadahead.c: New file.
51790         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51791         fbufmode, fpurge, freadable, fwritable.
51792
51793 2007-08-19  Eric Blake  <ebb9@byu.net>
51794
51795         Test yesno in combination with closein.
51796         * lib/yesno.c (yesno): Document use of stdin.
51797         * modules/yesno-tests (Files): New module.
51798         * tests/test-yesno.c (main): New file.
51799         * tests/test-yesno.sh: Likewise.
51800
51801 2007-08-19  Bruno Haible  <bruno@clisp.org>
51802
51803         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51804         * lib/fseeko.c (rpl_fseeko): Likewise.
51805         * lib/fseterr.c (fseterr): Likewise.
51806
51807 2007-08-19  Bruno Haible  <bruno@clisp.org>
51808
51809         * tests/test-lseek.c (main): Disable a test for BeOS.
51810         * doc/functions/lseek.texi: Document the BeOS bug.
51811
51812 2007-08-19  Bruno Haible  <bruno@clisp.org>
51813             Eric Blake  <ebb9@byu.net>
51814
51815         * lib/lseek.c: Include <sys/stat.h>.
51816         (rpl_lseek): Add workaround code also for Unix platforms.
51817         Needed for BeOS.
51818         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51819         * doc/functions/lseek.texi: Document BeOS definiency.
51820
51821 2007-08-18  Bruno Haible  <bruno@clisp.org>
51822
51823         * modules/fstrcmp-tests: New file.
51824         * tests/test-fstrcmp.c: New file.
51825
51826 2007-08-18  Bruno Haible  <bruno@clisp.org>
51827
51828         * modules/fstrcmp: New file, from GNU gettext with modifications.
51829         * lib/fstrcmp.h: New file, from GNU gettext.
51830         * lib/fstrcmp.c: New file, from GNU gettext.
51831         * MODULES.html.sh (String handling): Add fstrcmp.
51832
51833 2007-08-18  Bruno Haible  <bruno@clisp.org>
51834
51835         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51836         'bool'.
51837         (diag, compareseq): Remove const from the ctxt argument.
51838         (USE_HEURISTIC): Undefine at the end.
51839
51840 2007-08-18  Jim Meyering  <jim@meyering.net>
51841
51842         New file: lib/idcache.h
51843         * NEWS: Mention the addition.
51844         * modules/idcache (Files): Add lib/idcache.h
51845         * lib/idcache.c: Include "idcache.h".
51846         Don't include <sys/types.h>.
51847         Add a FIXME comment.
51848         Move file-scoped "static" declarations to the top.
51849         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51850
51851 2007-08-17  Bruno Haible  <bruno@clisp.org>
51852         and Paul Eggert  <eggert@cs.ucla.edu>
51853
51854         * MODULES.html.sh: Add diffseq.
51855         * modules/diffseq: New file.
51856         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51857         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51858
51859 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51860
51861         Import changes from coreutils for bootstrap script.
51862
51863         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51864
51865         * build-aux/bootstrap (slurp): Work even in environments where
51866         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51867         current code does not slurp files whose names start with ".", and
51868         this looks like it might be a troublesome area.
51869
51870         2007-07-11  Jim Meyering  <jim@meyering.net>
51871
51872         If there's a GPL vN copyright comment, require that N == 3.
51873
51874         2007-07-08  Jim Meyering  <jim@meyering.net>
51875
51876         Run the coreutils-specific code only if tests/Makefile.am.in exists.
51877         * build-aux/bootstrap (mam_template): Move definition out of loop.
51878
51879         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
51880
51881         * build-aux/bootstrap (symlink_to_dir): Rename function from
51882         symlink_to_gnulib.  Add a directory parameter.  Update all
51883         callers.
51884         (cp_mark_as_generated): Also check for -- and link to -- files in
51885         gl/.
51886
51887         2007-07-08  Jim Meyering  <jim@meyering.net>
51888
51889         Adapt to deeper hierarchy in gnulib.
51890         * build-aux/bootstrap (symlink_to_dir): If the destination
51891         directory doesn't exist, create it. This is required at least for
51892         "lib/uniwidth/cjk.h".
51893
51894         2007-05-15  Jim Meyering  <jim@meyering.net>
51895
51896         * build-aux/bootstrap: Now that generated Makefile.am files
51897         are no longer under version control, they must be created at
51898         bootstrap time.
51899
51900 2007-08-14  Ben Pfaff  <blp@gnu.org>
51901
51902         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
51903
51904 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51905
51906         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
51907         given the changes below.
51908         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
51909         even on hosts that have padding bits beyond the supported 64.
51910
51911 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51912
51913         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
51914         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
51915         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
51916         depends on it.
51917         (xstrtol_error): Remove.
51918         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
51919         but with a different signature.
51920         (ATTRIBUTE_NORETURN, __attribute__): New macros.
51921         * lib/xstrtol-error.c: Include exitfail.h.
51922         (xstrtol_fatal): New function, with a different signature from the
51923         old xstrtol_error, so that the caller need not worry about passing
51924         in an exit status, or about storage management of the option argument.
51925         (xstrtol_error): Now a static function.  Redo signature to
51926         implement xstrtol_fatal.  Output the correct number of hyphens in
51927         front of the option so that the caller need not worry about
51928         storage management.
51929         (N_): New macro.
51930         (_): Remove; not used now.
51931         * modules/xstrtol: Depend on getopt.
51932         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
51933         of old STRTOL_FATAL_ERROR macro.
51934         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
51935         of test program.
51936         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
51937         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
51938
51939 2007-08-08  Eric Blake  <ebb9@byu.net>
51940
51941         * lib/xstrtol-error.c: Add missing include.
51942
51943         Move xstrtol messages into gnulib domain, when --pobase is used.
51944         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
51945         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
51946         * modules/xstrtol (Files): Distribute new file.
51947         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
51948         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
51949         * tests/test-xstrtol.c: ...into new file.
51950         * tests/test-xstrtoul.c: Also test xstrtoul.
51951         * tests/test-xstrtoimax.c: Also test xstrtoimax.
51952         * tests/test-xstrtoumax.c: Also test xstrtoumax.
51953         * tests/test-xstrtol.sh: Drive the tests.
51954         * tests/test-xstrtoimax.sh: Likewise.
51955         * tests/test-xstrtoumax.sh: Likewise.
51956         * modules/xstrtol-tests: New module.
51957         * modules/xstrtoimax-tests: Likewise.
51958         * modules/xstrtoumax-tests: Likewise.
51959
51960 2007-08-08  Jim Meyering  <jim@meyering.net>
51961
51962         New function: mfile_name_concat.
51963         * lib/filenamecat.c (mfile_name_concat): New function, just like
51964         file_name_concat, but return NULL upon failure rather than exiting
51965         with a diagnostic.
51966         * lib/filenamecat.h: Declare it.
51967
51968 2007-08-07  Bruno Haible  <bruno@clisp.org>
51969
51970         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
51971         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
51972         warning from gcc.
51973         Reported by Eric Blake.
51974
51975 2007-08-07  Simon Josefsson  <simon@josefsson.org>
51976
51977         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
51978         * modules/crypto/arcfour (License): Likewise.
51979         * modules/crypto/des-tests (License): Likewise.
51980         * modules/crypto/gc-arctwo-tests (License): Likewise.
51981         * modules/crypto/gc-des-tests (License): Likewise.
51982         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
51983         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
51984         * modules/crypto/gc-md2-tests (License): Likewise.
51985         * modules/crypto/gc-md4-tests (License): Likewise.
51986         * modules/crypto/gc-md5-tests (License): Likewise.
51987         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
51988         * modules/crypto/gc-rijndael-tests (License): Likewise.
51989         * modules/crypto/gc-sha1-tests (License): Likewise.
51990         * modules/crypto/gc-tests (License): Likewise.
51991         * modules/crypto/hmac-md5 (License): Likewise.
51992         * modules/crypto/hmac-sha1 (License): Likewise.
51993         * modules/crypto/md2-tests (License): Likewise.
51994         * modules/crypto/md4-tests (License): Likewise.
51995         * modules/crypto/md5 (License): Likewise.
51996         * modules/crypto/rijndael (License): Likewise.
51997         * modules/crypto/sha1 (License): Likewise.
51998         * modules/memxor (License): Likewise.
51999
52000 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52001         and Bruno Haible  <bruno@clisp.org>
52002
52003         * NEWS: Describe interface changes to human, xstrtol.
52004         * lib/human.h: Include <xstrtol.h>.
52005         (human_options): Return enum strtol_error, not int.  Remove
52006         bool arg; take int * instead.
52007         * lib/human.c: Don't include "gettext.h".
52008         (_): Remove; no longer used.
52009         Don't include <xstrtol.h>, since human.h does it.
52010         (human_options): Adjust to abovementioned interface changes.
52011         Do not report error to stderr; that's now the caller's
52012         responsibility.
52013         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
52014         interface change.
52015         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
52016         Str, Argument_type_string.  All uses changed.  Put " argument"
52017         in diagnostics to make them clearer.  Change wording of suffix
52018         message for clarity.
52019         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
52020         Argument_type_string.
52021         (STRTOL_FATAL_WARN): Remove; no longer used.
52022         * modules/human (Depends-on): Remove gettext-h.
52023
52024 2007-08-06  Simon Josefsson  <simon@josefsson.org>
52025
52026         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
52027
52028 2007-07-31  Bruno Haible  <bruno@clisp.org>
52029
52030         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
52031         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
52032         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
52033
52034 2007-07-31  Bruno Haible  <bruno@clisp.org>
52035
52036         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
52037         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
52038
52039 2007-07-30  Bruno Haible  <bruno@clisp.org>
52040
52041         * modules/base64 (License): Use the synonymous term "LGPLv2+".
52042         * modules/c-ctype (License): Likewise.
52043         * modules/c-strcase (License): Likewise.
52044         * modules/check-version (License): Likewise.
52045         * modules/iconv (License): Likewise.
52046         * modules/iconv_open (License): Likewise.
52047         * modules/read-file (License): Likewise.
52048         * modules/striconv (License): Likewise.
52049         * modules/strverscmp (License): Likewise.
52050         * modules/vasprintf (License): Likewise.
52051         * modules/crypto/des (License): Likewise.
52052         * modules/crypto/gc (License): Likewise.
52053         * modules/crypto/gc-arcfour (License): Likewise.
52054         * modules/crypto/gc-arctwo (License): Likewise.
52055         * modules/crypto/gc-des (License): Likewise.
52056         * modules/crypto/gc-hmac-md5 (License): Likewise.
52057         * modules/crypto/gc-hmac-sha1 (License): Likewise.
52058         * modules/crypto/gc-md2 (License): Likewise.
52059         * modules/crypto/gc-md4 (License): Likewise.
52060         * modules/crypto/gc-md5 (License): Likewise.
52061         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
52062         * modules/crypto/gc-random (License): Likewise.
52063         * modules/crypto/gc-rijndael (License): Likewise.
52064         * modules/crypto/gc-sha1 (License): Likewise.
52065         * modules/crypto/md2 (License): Likewise.
52066         * modules/crypto/md4 (License): Likewise.
52067
52068 2007-07-30  Jim Meyering  <jim@meyering.net>
52069
52070         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
52071         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
52072         it has valid stat data.  This bug would cause du not to count the
52073         sizes of inaccessible directories.
52074         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
52075         in <http://bugzilla.redhat.com/250077>.
52076
52077 2007-07-25  Peter O'Gorman  <peter@pogma.com>
52078             Bruno Haible  <bruno@clisp.org>
52079
52080         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
52081         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
52082         #include_next, gives a diagnostic about it, but reports no error in
52083         the exit code.
52084         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52085
52086 2007-07-24  Ben Pfaff  <blp@gnu.org>
52087
52088         Improve name: "count-one-bits" is better than "popcount".
52089         * MODULES.html.sh: Update name.
52090         * lib/popcount.h: Renamed lib/count-one-bits.h.
52091         (popcount): Renamed count_one_bits.
52092         (popcountl): Renamed count_one_bits_l.
52093         (popcountll): Renamed count_one_bits_ll.
52094         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
52095         * modules/popcount: Renamed module/count-one-bits.
52096         * modules/popcount-tests: Renamed module/count-one-bits-tests.
52097         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
52098
52099 2007-07-23  Ben Pfaff  <blp@gnu.org>
52100
52101         * lib/popcount.h (popcount32): Reduce size of constants, to allow
52102         better code generation, and add U to large constants to avoid
52103         warnings, in non-GCC case.
52104         Suggested by Bruno Haible.
52105
52106 2007-07-23  Ben Pfaff  <blp@gnu.org>
52107
52108         * lib/popcount.h: Use verify_true instead of if...abort.
52109         * modules/popcount: Depend on verify module.
52110         Suggested by Jim Meyering.
52111
52112 2007-07-23  Bruno Haible  <bruno@clisp.org>
52113
52114         * gnulib-tool (func_import): Create a .cvsignore file also when the
52115         directory is not yet in CVS but the toplevel directory is. When
52116         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52117         Reported by Karl Berry.
52118
52119 2007-07-22  Ben Pfaff  <blp@gnu.org>
52120
52121         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
52122         case.
52123         Suggested by Eric Blake.
52124
52125 2007-07-22  Ben Pfaff  <blp@gnu.org>
52126
52127         New module: popcount.
52128         * MODULES.html.sh: Add popcount.
52129         * modules/popcount: New file.
52130         * modules/popcount-tests: New file.
52131         * tests/test-popcount.c: New file.
52132         * lib/popcount.h: New file.
52133         * m4/popcount.m4: New file.
52134
52135 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52136
52137         * build-aux/announce-gen: Update to GPLv3.
52138
52139         * build-aux/config.guess: Update from config.
52140
52141 2007-07-21  Bruno Haible  <bruno@clisp.org>
52142
52143         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
52144         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
52145
52146 2007-07-20  Jim Meyering  <jim@meyering.net>
52147
52148         * check-module: Diagnose a self-dependency.
52149
52150 2007-07-19  Bruno Haible  <bruno@clisp.org>
52151
52152         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
52153         empty.
52154         Reported by Eric Blake.
52155
52156 2007-07-18  Bruno Haible  <bruno@clisp.org>
52157
52158         * gnulib-tool: New options --po-base, --po-domain.
52159         (func_usage): Document them.
52160         (pobase, po_domain): New variables.
52161         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
52162         DEFAULT_TEXT_DOMAIN.
52163         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
52164         (func_import): Consider pobase and po_domain. Create a po/ directory.
52165         (func_create_testdir): Set pobase and po_domain to empty.
52166         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
52167         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
52168
52169 2007-07-18  Bruno Haible  <bruno@clisp.org>
52170
52171         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52172         EXTRA_DIST augmentation for files in build-aux/.
52173
52174 2007-07-16  Bruno Haible  <bruno@clisp.org>
52175
52176         * modules/lseek (License): Use the synonymous term "LGPLv2+".
52177         * modules/getdelim (License): Likewise.
52178
52179 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52180
52181         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
52182         * modules/d-type (License): Likewise.
52183         * modules/extensions (License): Likewise.
52184         * modules/fnmatch (License): Likewise.
52185         * modules/fseeko (License): Likewise.
52186         * modules/getaddrinfo (License): Likewise.
52187         * modules/getline (License): Likewise.
52188         * modules/getlogin_r (License): Likewise.
52189         * modules/getpass (License): Likewise.
52190         * modules/gettimeofday (License): Likewise.
52191         * modules/glob (License): Likewise.
52192         * modules/inet_ntop (License): Likewise.
52193         * modules/malloc (License): Likewise.
52194         * modules/malloca (License): Likewise.
52195         * modules/memmem (License): Likewise.
52196         * modules/mempcpy (License): Likewise.
52197         * modules/memset (License): Likewise.
52198         * modules/minmax (License): Likewise.
52199         * modules/mktime (License): Likewise.
52200         * modules/netinet_in (License): Likewise.
52201         * modules/pathmax (License): Likewise.
52202         * modules/poll (License): Likewise.
52203         * modules/regex (License): Likewise.
52204         * modules/snprintf (License): Likewise.
52205         * modules/stdbool (License): Likewise.
52206         * modules/stdint (License): Likewise.
52207         * modules/stdio (License): Likewise.
52208         * modules/strcase (License): Likewise.
52209         * modules/strcasestr (License): Likewise.
52210         * modules/strdup (License): Likewise.
52211         * modules/string (License): Likewise.
52212         * modules/strndup (License): Likewise.
52213         * modules/strnlen (License): Likewise.
52214         * modules/strpbrk (License): Likewise.
52215         * modules/strptime (License): Likewise.
52216         * modules/strsep (License): Likewise.
52217         * modules/sys_select (License): Likewise.
52218         * modules/sys_socket (License): Likewise.
52219         * modules/sys_stat (License): Likewise.
52220         * modules/sys_time (License): Likewise.
52221         * modules/time (License): Likewise.
52222         * modules/time_r (License): Likewise.
52223         * modules/timegm (License): Likewise.
52224         * modules/unistd (License): Likewise.
52225         * modules/vsnprintf (License): Likewise.
52226         * modules/wctype (License): Likewise.
52227
52228 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52229
52230         * modules/argz (License): LGPLv2+.
52231
52232 2007-07-15  Karl Berry  <karl@gnu.org>
52233
52234         * doc/gnulib.texi: revise node structure per new fdl.texi.
52235
52236 2007-07-14  Bruno Haible  <bruno@clisp.org>
52237
52238         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
52239         the output file.
52240         * lib/uniname/uninames.h: Regenerated.
52241
52242 2007-07-14  Karl Berry  <karl@gnu.org>
52243
52244         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
52245         omitting sectioning and index commands.
52246
52247 2007-07-13  Bruno Haible  <bruno@clisp.org>
52248
52249         New gnulib-tool option --more-symlinks.
52250         * gnulib-tool (func_usage): Document --more-symlinks.
52251         (do_copyrights): New variable.
52252         Recognize option --more-symlinks.
52253         (func_import): Don't add a copyright notice transform to
52254         sed_transform_lib_file if do_copyrights is empty.
52255
52256 2007-07-13  Bruno Haible  <bruno@clisp.org>
52257
52258         * lib/vasnprintf.c (decimal_point_char): Define also if
52259         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
52260         && !NEED_PRINTF_DIRECTIVE_A.
52261         Reported by Clemens Koller <clemens.koller@anagramm.de> via
52262         Gary V. Vaughan <gary@gnu.org>.
52263
52264 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
52265
52266         * lib/inttypes_.h: Undo previous change, since it was fixed
52267         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
52268
52269 2007-07-13  Bruno Haible  <bruno@clisp.org>
52270
52271         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
52272         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
52273
52274 2007-07-13  Jim Meyering  <jim@meyering.net>
52275
52276         df: Don't fail for Tru64's "file-on-file mount".
52277         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
52278         so we fall through and use statfs instead.  Details here:
52279         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
52280         Reported by Albert Chin.
52281
52282 2007-07-13  Bruno Haible  <bruno@clisp.org>
52283
52284         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
52285         * modules/configmake (License): Likewise.
52286         * modules/gettext (License): Likewise.
52287         * modules/gettext-h (License): Likewise.
52288         * modules/include_next (License): Likewise.
52289         * modules/link-warning (License): Likewise.
52290         * modules/localcharset (License): Likewise.
52291         * modules/localename (License): Likewise.
52292         * modules/lock (License): Likewise.
52293         * modules/relocatable-lib-lgpl (License): Likewise.
52294         * modules/size_max (License): Likewise.
52295         * modules/vasnprintf (License): Likewise.
52296         * modules/wchar (License): Likewise.
52297         * modules/xsize (License): Likewise.
52298
52299 2007-07-13  Bruno Haible  <bruno@clisp.org>
52300
52301         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52302         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52303
52304 2007-07-12  Bruno Haible  <bruno@clisp.org>
52305
52306         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52307         in the modules files.
52308
52309 2007-07-11  Karl Berry  <karl@gnu.org>
52310
52311         * MODULES.html.sh (func_module): use
52312          sed -e '\|^'"${includefile}"'$|d'
52313          instead of /.../d, to avoid errors on $includefile's containing /.
52314
52315 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52316
52317         * gnulib-tool (func_import): Avoid duplication of --avoid
52318         statements
52319         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52320         names to `_' in variable names.
52321
52322 2007-07-10  Eric Blake  <ebb9@byu.net>
52323
52324         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52325         * NEWS: Document this change.
52326
52327 2007-07-08  Bruno Haible  <bruno@clisp.org>
52328
52329         Update to Unicode 5.0.
52330         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52331         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52332         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52333         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52334         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52335         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52336         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52337         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52338         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52339         U+10A3F, U+1D242..U+1D244.
52340         (nonspacing_table_ind): Update.
52341         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52342         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52343
52344 2007-07-08  Bruno Haible  <bruno@clisp.org>
52345
52346         Update to Unicode 5.0.
52347         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52348         code transform. Extend the name index field of unicode_name_to_code and
52349         unicode_code_to_name from 16 to 24 bits.
52350         * lib/uniname/uniname.c (unicode_character_name,
52351         unicode_name_character): Add the range 0x12xxx to the code transform.
52352         * lib/uniname/uninames.h: Regenerated.
52353         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52354
52355 2007-07-07  Bruno Haible  <bruno@clisp.org>
52356
52357         * modules/wcwidth-tests: New file.
52358         * tests/test-wcwidth.c: New file.
52359
52360         Work around MacOS X wcwidth() bug.
52361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52362         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52363         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52364         original wcwidth in non-UTF-8 locales.
52365         * modules/wcwidth (Depends-on): Add localcharset, streq,
52366         uniwidth/width.
52367         * doc/functions/wcwidth.texi: Update.
52368
52369 2007-07-07  Bruno Haible  <bruno@clisp.org>
52370
52371         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52372         (wcwidth): New declaration.
52373         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52374         macros.
52375         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52376         here. Prepare for creating <wchar.h> unconditionally.
52377         * modules/wchar (Depends-on): Add link-warning.
52378         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52379         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52380         * lib/wcwidth.h: Remove file.
52381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52382         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52383         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52384         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52385         (Include): Replace wcwidth.h with <wchar.h>.
52386         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52387         * lib/mbchar.h: Don't include wcwidth.h.
52388         * lib/mbswidth.c: Likewise.
52389         * NEWS: Mention the change.
52390
52391 2007-07-07  Bruno Haible  <bruno@clisp.org>
52392
52393         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52394         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52395         definition with an external declaration.
52396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52397         defined as a function. Remove AC_C_INLINE requirement.
52398         * modules/wcwidth (Files): Add lib/wcwidth.c.
52399         (Makefile.am): Remove redundant statement.
52400
52401 2007-07-07  Bruno Haible  <bruno@clisp.org>
52402
52403         * MODULES.html.sh (Unicode string functions): Add the new modules.
52404
52405         * tests/uniwidth/test-u32-strwidth.c: New file.
52406         * modules/uniwidth/u32-strwidth-tests: New file.
52407
52408         * lib/uniwidth/u32-strwidth.c: New file.
52409         * modules/uniwidth/u32-strwidth: New file.
52410
52411         * tests/uniwidth/test-u16-strwidth.c: New file.
52412         * modules/uniwidth/u16-strwidth-tests: New file.
52413
52414         * lib/uniwidth/u16-strwidth.c: New file.
52415         * modules/uniwidth/u16-strwidth: New file.
52416
52417         * tests/uniwidth/test-u8-strwidth.c: New file.
52418         * modules/uniwidth/u8-strwidth-tests: New file.
52419
52420         * lib/uniwidth/u8-strwidth.c: New file.
52421         * modules/uniwidth/u8-strwidth: New file.
52422
52423         * tests/uniwidth/test-u32-width.c: New file.
52424         * modules/uniwidth/u32-width-tests: New file.
52425
52426         * lib/uniwidth/u32-width.c: New file.
52427         * modules/uniwidth/u32-width: New file.
52428
52429         * tests/uniwidth/test-u16-width.c: New file.
52430         * modules/uniwidth/u16-width-tests: New file.
52431
52432         * lib/uniwidth/u16-width.c: New file.
52433         * modules/uniwidth/u16-width: New file.
52434
52435         * tests/uniwidth/test-u8-width.c: New file.
52436         * modules/uniwidth/u8-width-tests: New file.
52437
52438         * lib/uniwidth/u8-width.c: New file.
52439         * modules/uniwidth/u8-width: New file.
52440
52441         * tests/uniwidth/test-uc_width.c: New file.
52442         * modules/uniwidth/width-tests: New file.
52443
52444         * lib/uniwidth/width.c: New file, from GNU libiconv.
52445         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52446         * modules/uniwidth/width: New file.
52447
52448         * lib/uniwidth.h: New file, from GNU libiconv.
52449         * modules/uniwidth/base: New file.
52450
52451 2007-07-07  Bruno Haible  <bruno@clisp.org>
52452
52453         * lib/uniname.h: New file, from GNU gettext.
52454         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52455         * lib/uniname/uninames.h: New file, from GNU gettext.
52456         * lib/uniname/uniname.c: New file, from GNU gettext.
52457         * tests/uniname/test-uninames.sh: New file.
52458         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52459         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52460         * modules/uniname/base: New file.
52461         * modules/uniname/uniname: New file.
52462         * modules/uniname/uniname-tests: New file.
52463         * MODULES.html.sh (Unicode string functions): Add the new modules.
52464
52465 2007-07-06  Bruno Haible  <bruno@clisp.org>
52466
52467         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52468
52469 2007-07-06  Bruno Haible  <bruno@clisp.org>
52470
52471         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52472         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52473         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52474         include <sys/time.h>.
52475         Reported by Eric Blake.
52476
52477 2007-07-06  Eric Blake  <ebb9@byu.net>
52478
52479         Fix testing canonicalize on cygwin.
52480         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52481         Revert patch from 2007-06-19.
52482         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52483         canonicalize module is also in use.
52484         * tests/test-canonicalize.c: New file.
52485         * tests/test-canonicalize.sh: Likewise.
52486         * modules/canonicalize-tests: Likewise.
52487
52488 2007-07-06  Jim Meyering  <jim@meyering.net>
52489
52490         * lib/getugroups.c (getugroups): Detect getgrent failure.
52491         Adjust comment to reflect reality: this function may return -1.
52492
52493 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52494
52495         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52496         the new TP address.
52497         (usage): Fix typo
52498         (gnulib_mk): New variable.
52499
52500 2007-07-05  Jim Meyering  <jim@meyering.net>
52501
52502         Don't let endgrent clobber errno, no matter how improbable.
52503         * lib/getugroups.c (getugroups): Save and restore errno around
52504         endgrent call.
52505
52506         Close the group DB even when failing with 2^31 or more members.
52507         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52508
52509 2007-07-04  Jim Meyering  <jim@meyering.net>
52510
52511         * lib/getugroups.h: New file.
52512         * lib/getugroups.c: Include "getugroups.h".
52513         Remove uses of "register" keyword.
52514         Move local variable, "cp", down into scope where used.
52515         Give "username" parameter the "const" attribute.
52516         * modules/getugroups (Files): Add lib/getugroups.h
52517
52518 2007-07-04  Karl Berry  <karl@gnu.org>
52519
52520         * MODULES.html.sh (func_all_modules): Complete rename of
52521         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52522
52523 2007-07-02  Bruno Haible  <bruno@clisp.org>
52524
52525         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52526         mode, when inttypes.h comes from gnulib.
52527         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52528
52529 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52530
52531         * NEWS: Mention lgpl module name change.
52532
52533         * modules/lgpl-2.1: Renamed from lgpl.
52534
52535         * NEWS: Mention gpl module name change.
52536
52537         * modules/gpl-3.0: New file, based on gpl-2.0.
52538
52539         * modules/gpl-2.0: Renamed from gpl.
52540
52541         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52542         doc/gpl-2.0.texi.
52543
52544 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52545
52546         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52547         #define __STDC_LIMIT_MACROS temporarily while including
52548         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52549         Problem reported by Joel E. Denny in
52550         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52551
52552 2007-07-01  Bruno Haible  <bruno@clisp.org>
52553
52554         * lib/unistdio.h: New file.
52555         * lib/unistdio/u-asnprintf.h: New file.
52556         * lib/unistdio/u-asprintf.h: New file.
52557         * lib/unistdio/u-printf-args.c: New file.
52558         * lib/unistdio/u-printf-args.h: New file.
52559         * lib/unistdio/u-printf-parse.h: New file.
52560         * lib/unistdio/u-snprintf.h: New file.
52561         * lib/unistdio/u-sprintf.h: New file.
52562         * lib/unistdio/u-vasprintf.h: New file.
52563         * lib/unistdio/u-vsnprintf.h: New file.
52564         * lib/unistdio/u-vsprintf.h: New file.
52565         * lib/unistdio/ulc-asnprintf.c: New file.
52566         * lib/unistdio/ulc-asprintf.c: New file.
52567         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52568         * lib/unistdio/ulc-printf-parse.c: New file.
52569         * lib/unistdio/ulc-snprintf.c: New file.
52570         * lib/unistdio/ulc-sprintf.c: New file.
52571         * lib/unistdio/ulc-vasnprintf.c: New file.
52572         * lib/unistdio/ulc-vasprintf.c: New file.
52573         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52574         * lib/unistdio/ulc-vsnprintf.c: New file.
52575         * lib/unistdio/ulc-vsprintf.c: New file.
52576         * lib/unistdio/u8-asnprintf.c: New file.
52577         * lib/unistdio/u8-asprintf.c: New file.
52578         * lib/unistdio/u8-printf-parse.c: New file.
52579         * lib/unistdio/u8-snprintf.c: New file.
52580         * lib/unistdio/u8-sprintf.c: New file.
52581         * lib/unistdio/u8-vasnprintf.c: New file.
52582         * lib/unistdio/u8-vasprintf.c: New file.
52583         * lib/unistdio/u8-vsnprintf.c: New file.
52584         * lib/unistdio/u8-vsprintf.c: New file.
52585         * lib/unistdio/u8-u8-asnprintf.c: New file.
52586         * lib/unistdio/u8-u8-asprintf.c: New file.
52587         * lib/unistdio/u8-u8-snprintf.c: New file.
52588         * lib/unistdio/u8-u8-sprintf.c: New file.
52589         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52590         * lib/unistdio/u8-u8-vasprintf.c: New file.
52591         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52592         * lib/unistdio/u8-u8-vsprintf.c: New file.
52593         * lib/unistdio/u16-asnprintf.c: New file.
52594         * lib/unistdio/u16-asprintf.c: New file.
52595         * lib/unistdio/u16-printf-parse.c: New file.
52596         * lib/unistdio/u16-snprintf.c: New file.
52597         * lib/unistdio/u16-sprintf.c: New file.
52598         * lib/unistdio/u16-vasnprintf.c: New file.
52599         * lib/unistdio/u16-vasprintf.c: New file.
52600         * lib/unistdio/u16-vsnprintf.c: New file.
52601         * lib/unistdio/u16-vsprintf.c: New file.
52602         * lib/unistdio/u16-u16-asnprintf.c: New file.
52603         * lib/unistdio/u16-u16-asprintf.c: New file.
52604         * lib/unistdio/u16-u16-snprintf.c: New file.
52605         * lib/unistdio/u16-u16-sprintf.c: New file.
52606         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52607         * lib/unistdio/u16-u16-vasprintf.c: New file.
52608         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52609         * lib/unistdio/u16-u16-vsprintf.c: New file.
52610         * lib/unistdio/u32-asnprintf.c: New file.
52611         * lib/unistdio/u32-asprintf.c: New file.
52612         * lib/unistdio/u32-printf-parse.c: New file.
52613         * lib/unistdio/u32-snprintf.c: New file.
52614         * lib/unistdio/u32-sprintf.c: New file.
52615         * lib/unistdio/u32-vasnprintf.c: New file.
52616         * lib/unistdio/u32-vasprintf.c: New file.
52617         * lib/unistdio/u32-vsnprintf.c: New file.
52618         * lib/unistdio/u32-vsprintf.c: New file.
52619         * lib/unistdio/u32-u32-asnprintf.c: New file.
52620         * lib/unistdio/u32-u32-asprintf.c: New file.
52621         * lib/unistdio/u32-u32-snprintf.c: New file.
52622         * lib/unistdio/u32-u32-sprintf.c: New file.
52623         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52624         * lib/unistdio/u32-u32-vasprintf.c: New file.
52625         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52626         * lib/unistdio/u32-u32-vsprintf.c: New file.
52627         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52628         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52629         * tests/unistdio/test-ulc-printf1.h: New file.
52630         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52631         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52632         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52633         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52634         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52635         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52636         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52637         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52638         * tests/unistdio/test-u8-asnprintf1.c: New file.
52639         * tests/unistdio/test-u8-asnprintf1.h: New file.
52640         * tests/unistdio/test-u8-printf1.h: New file.
52641         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52642         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52643         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52644         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52645         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52646         * tests/unistdio/test-u8-vasprintf1.c: New file.
52647         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52648         * tests/unistdio/test-u8-vsprintf1.c: New file.
52649         * tests/unistdio/test-u16-asnprintf1.c: New file.
52650         * tests/unistdio/test-u16-asnprintf1.h: New file.
52651         * tests/unistdio/test-u16-printf1.h: New file.
52652         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52653         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52654         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52655         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52656         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52657         * tests/unistdio/test-u16-vasprintf1.c: New file.
52658         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52659         * tests/unistdio/test-u16-vsprintf1.c: New file.
52660         * tests/unistdio/test-u32-asnprintf1.c: New file.
52661         * tests/unistdio/test-u32-asnprintf1.h: New file.
52662         * tests/unistdio/test-u32-printf1.h: New file.
52663         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52664         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52665         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52666         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52667         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52668         * tests/unistdio/test-u32-vasprintf1.c: New file.
52669         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52670         * tests/unistdio/test-u32-vsprintf1.c: New file.
52671         * modules/unistdio/base: New file.
52672         * modules/unistdio/u-printf-args: New file.
52673         * modules/unistdio/ulc-asnprintf: New file.
52674         * modules/unistdio/ulc-asprintf: New file.
52675         * modules/unistdio/ulc-fprintf: New file.
52676         * modules/unistdio/ulc-printf-parse: New file.
52677         * modules/unistdio/ulc-snprintf: New file.
52678         * modules/unistdio/ulc-sprintf: New file.
52679         * modules/unistdio/ulc-vasnprintf: New file.
52680         * modules/unistdio/ulc-vasprintf: New file.
52681         * modules/unistdio/ulc-vfprintf: New file.
52682         * modules/unistdio/ulc-vsnprintf: New file.
52683         * modules/unistdio/ulc-vsprintf: New file.
52684         * modules/unistdio/u8-asnprintf: New file.
52685         * modules/unistdio/u8-asprintf: New file.
52686         * modules/unistdio/u8-printf-parse: New file.
52687         * modules/unistdio/u8-snprintf: New file.
52688         * modules/unistdio/u8-sprintf: New file.
52689         * modules/unistdio/u8-vasnprintf: New file.
52690         * modules/unistdio/u8-vasprintf: New file.
52691         * modules/unistdio/u8-vsnprintf: New file.
52692         * modules/unistdio/u8-vsprintf: New file.
52693         * modules/unistdio/u8-u8-asnprintf: New file.
52694         * modules/unistdio/u8-u8-asprintf: New file.
52695         * modules/unistdio/u8-u8-snprintf: New file.
52696         * modules/unistdio/u8-u8-sprintf: New file.
52697         * modules/unistdio/u8-u8-vasnprintf: New file.
52698         * modules/unistdio/u8-u8-vasprintf: New file.
52699         * modules/unistdio/u8-u8-vsnprintf: New file.
52700         * modules/unistdio/u8-u8-vsprintf: New file.
52701         * modules/unistdio/u16-asnprintf: New file.
52702         * modules/unistdio/u16-asprintf: New file.
52703         * modules/unistdio/u16-printf-parse: New file.
52704         * modules/unistdio/u16-snprintf: New file.
52705         * modules/unistdio/u16-sprintf: New file.
52706         * modules/unistdio/u16-vasnprintf: New file.
52707         * modules/unistdio/u16-vasprintf: New file.
52708         * modules/unistdio/u16-vsnprintf: New file.
52709         * modules/unistdio/u16-vsprintf: New file.
52710         * modules/unistdio/u16-u16-asnprintf: New file.
52711         * modules/unistdio/u16-u16-asprintf: New file.
52712         * modules/unistdio/u16-u16-snprintf: New file.
52713         * modules/unistdio/u16-u16-sprintf: New file.
52714         * modules/unistdio/u16-u16-vasnprintf: New file.
52715         * modules/unistdio/u16-u16-vasprintf: New file.
52716         * modules/unistdio/u16-u16-vsnprintf: New file.
52717         * modules/unistdio/u16-u16-vsprintf: New file.
52718         * modules/unistdio/u32-asnprintf: New file.
52719         * modules/unistdio/u32-asprintf: New file.
52720         * modules/unistdio/u32-printf-parse: New file.
52721         * modules/unistdio/u32-snprintf: New file.
52722         * modules/unistdio/u32-sprintf: New file.
52723         * modules/unistdio/u32-vasnprintf: New file.
52724         * modules/unistdio/u32-vasprintf: New file.
52725         * modules/unistdio/u32-vsnprintf: New file.
52726         * modules/unistdio/u32-vsprintf: New file.
52727         * modules/unistdio/u32-u32-asnprintf: New file.
52728         * modules/unistdio/u32-u32-asprintf: New file.
52729         * modules/unistdio/u32-u32-snprintf: New file.
52730         * modules/unistdio/u32-u32-sprintf: New file.
52731         * modules/unistdio/u32-u32-vasnprintf: New file.
52732         * modules/unistdio/u32-u32-vasprintf: New file.
52733         * modules/unistdio/u32-u32-vsnprintf: New file.
52734         * modules/unistdio/u32-u32-vsprintf: New file.
52735         * modules/unistdio/ulc-asnprintf-tests: New file.
52736         * modules/unistdio/ulc-vasnprintf-tests: New file.
52737         * modules/unistdio/ulc-vasprintf-tests: New file.
52738         * modules/unistdio/ulc-vsnprintf-tests: New file.
52739         * modules/unistdio/ulc-vsprintf-tests: New file.
52740         * modules/unistdio/u8-asnprintf-tests: New file.
52741         * modules/unistdio/u8-vasnprintf-tests: New file.
52742         * modules/unistdio/u8-vasprintf-tests: New file.
52743         * modules/unistdio/u8-vsnprintf-tests: New file.
52744         * modules/unistdio/u8-vsprintf-tests: New file.
52745         * modules/unistdio/u16-asnprintf-tests: New file.
52746         * modules/unistdio/u16-vasnprintf-tests: New file.
52747         * modules/unistdio/u16-vasprintf-tests: New file.
52748         * modules/unistdio/u16-vsnprintf-tests: New file.
52749         * modules/unistdio/u16-vsprintf-tests: New file.
52750         * modules/unistdio/u32-asnprintf-tests: New file.
52751         * modules/unistdio/u32-vasnprintf-tests: New file.
52752         * modules/unistdio/u32-vasprintf-tests: New file.
52753         * modules/unistdio/u32-vsnprintf-tests: New file.
52754         * modules/unistdio/u32-vsprintf-tests: New file.
52755         * MODULES.html.sh (Unicode string functions): Add the new modules.
52756
52757 2007-07-01  Bruno Haible  <bruno@clisp.org>
52758
52759         * lib/sprintf.c (sprintf): Limit the available length estimation,
52760         to avoid address wraparound.
52761         * lib/vsprintf.c (vsprintf): Likewise.
52762         * modules/sprintf-posix (Dependencies): Add stdint.
52763         * modules/vsprintf-posix (Dependencies): Likewise.
52764
52765 2007-07-01  Bruno Haible  <bruno@clisp.org>
52766
52767         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52768         Windows PATH as well. Conservative double-quoting. Comments.
52769
52770 2007-07-01  Bruno Haible  <bruno@clisp.org>
52771             Eric Blake  <ebb9@byu.net>
52772             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52773
52774         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52775         empty components in $PATH, denoting '.'.
52776
52777 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52778
52779         * gnulib-tool: Fix indentation.
52780         (func_create_megatestdir): Likewise.
52781         Report by Bruno Haible.
52782
52783 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52784
52785         Sync from Automake.
52786         * build-aux/gnupload: Fix shell portability issues with for loops.
52787         Report by Karl Berry.
52788
52789 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52790
52791         * build-aux/maint.mk (POURL): Use translationproject.org.
52792
52793 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52794             Bruno Haible  <bruno@clisp.org>
52795
52796         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52797         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52798         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52799         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52800         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52801
52802 2007-06-27  Bruno Haible  <bruno@clisp.org>
52803
52804         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52805         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52806
52807 2007-06-26  Karl Berry  <karl@gnu.org>
52808
52809         * MODULES.html.sh: remove xreadlink-with-size.
52810
52811 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52812
52813         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52814         method that I hope also handles the double-include problem noted
52815         by Bruno Haible in
52816         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52817
52818 2007-06-23  Bruno Haible  <bruno@clisp.org>
52819
52820         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52821         Don't let the 'mostlyclean' target fail if the last subdirectory could
52822         not be removed.
52823         Reported by Karl Berry.
52824
52825 2007-06-23  Bruno Haible  <bruno@clisp.org>
52826
52827         * gnulib-tool (echo): Add a speedier workaround for ksh.
52828         * tests/test-echo.sh: Likewise.
52829
52830 2007-06-23  Bruno Haible  <bruno@clisp.org>
52831
52832         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52833         * tests/test-echo.sh: Likewise.
52834
52835 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52836
52837         * gnulib-tool (IFS): Initialize early, so we don't set it to
52838         empty later.
52839         (self_abspathname): Rewrite algorithm to set it, reindent.
52840         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52841         (func_create_megatestdir): Merge some sed scripts.
52842
52843 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52844
52845         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52846         exposed by Sun Studio 11 cc on Solaris 8.
52847
52848 2007-06-22  Bruno Haible  <bruno@clisp.org>
52849
52850         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52851         backslashes.
52852         * tests/test-echo.sh: New file.
52853
52854 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52855
52856         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52857         simplify `sed_replace_build_aux' scripts, they are portable but
52858         echoing them with `echo' is not.
52859         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52860
52861 2007-06-21  Karl Berry  <karl@gnu.org>
52862
52863         * config/srclist.txt: guess we can't handle the licenses via
52864         srclist at the moment.
52865
52866 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52867
52868         * MODULES.html.sh: Add include_next.
52869         * modules/include_next: New file.
52870
52871 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52872
52873         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
52874         INCLUDE_NEXT.
52875         (gl_CHECK_NEXT_HEADERS): New macro.
52876         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
52877         the obsolescent gl_ABSOLUTE_HEADER.
52878         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
52879         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
52880         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52881         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52882         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52883         * m4/math_h.m4 (gl_MATH_H): Likewise.
52884         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52885         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52886         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52887         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52888         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52889         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52890         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52891         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52892         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52893         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52894         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52895         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
52896         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
52897         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52898         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52899         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52900         * m4/inttypes.m4 (gl_INTTYPES_H): Define
52901         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
52902         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
52903         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
52904         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
52905         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
52906         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
52907         * lib/float_.h: Likewise.
52908         * lib/inttypes_.h: Likewise.
52909         * lib/math_.h: Likewise.
52910         * lib/search_.h: Likewise.
52911         * lib/signal_.h: Likewise.
52912         * lib/stdint_.h: Likewise.
52913         * lib/stdio_.h: Likewise.
52914         * lib/stdlib_.h: Likewise.
52915         * lib/string_.h: Likewise.
52916         * lib/sys_stat_.h: Likewise.
52917         * lib/sys_time_.h: Likewise.
52918         * lib/time_.h: Likewise.
52919         * lib/unistd_.h: Likewise.
52920         * lib/wchar_.h: Likewise.
52921         * lib/wctype_.h: Likewise.
52922         * lib/dirent_.h: Likewise.
52923         * lib/iconv_.h: Likewise.
52924         * lib/locale_.h: Likewise.
52925         * lib/netinet_in_.h: Likewise.
52926         * lib/sys_select_.h: Likewise.
52927         * lib/sys_socket_.h: Likewise.
52928         * lib/sysexits_.h: Likewise.
52929         * modules/fcntl (Depends-on): Depend on include_next, not
52930         absolute_header.
52931         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
52932         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
52933         * modules/fchdir: Likewise.
52934         * modules/float: Likewise.
52935         * modules/iconv_open: Likewise.
52936         * modules/inttypes: Likewise.
52937         * modules/locale: Likewise.
52938         * modules/math: Likewise.
52939         * modules/netinet_in: Likewise.
52940         * modules/search: Likewise.
52941         * modules/signal: Likewise.
52942         * modules/stdint: Likewise.
52943         * modules/stdio: Likewise.
52944         * modules/stdlib: Likewise.
52945         * modules/string: Likewise.
52946         * modules/sys_select: Likewise.
52947         * modules/sys_socket: Likewise.
52948         * modules/sys_stat: Likewise.
52949         * modules/sys_time: Likewise.
52950         * modules/sysexits: Likewise.
52951         * modules/time: Likewise.
52952         * modules/unistd: Likewise.
52953         * modules/wchar: Likewise.
52954         * modules/wctype: Likewise.
52955         * modules/sys_stat: Change maintainer to "all".
52956         * modules/unistd: Likewise.
52957
52958 2007-06-20  Karl Berry  <karl@gnu.org>
52959
52960         * config/srclist.txt: track www changes in license files.
52961
52962 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
52963
52964         * build-aux/bootstrap: Remove stray dot.
52965         Make sure build_aux settings are honored when linking
52966         gnulib_extra_files.
52967
52968 2007-06-19  Eric Blake  <ebb9@byu.net>
52969
52970         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52971         Allow compilation on cygwin.
52972
52973 2007-06-19  Jim Meyering  <jim@meyering.net>
52974
52975         xreadlink-with-size: Remove module.  No longer used.
52976         Ex-callers now use xreadlink or mreadlink-with-size.
52977         * modules/xreadlink-with-size: Remove module.
52978         * lib/xreadlink-with-size.c: Remove file.
52979         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
52980         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
52981         just before the function definition *is* accurate.
52982
52983         Eliminate one way canonicalize_filename_mode could exit.
52984         * lib/canonicalize.c (canonicalize_filename_mode):
52985         Use mreadlink_with_size, not xreadlink_with_size.
52986
52987 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
52988
52989         Detect porting problems to FreeBSD/arm, which has time_t wider than
52990         long int.  Original problem reported for GNU diff by Xin Li in
52991         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
52992         * modules/getdate (Depends-on): Add intprops, verify.
52993         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
52994         is an integer type no wider than long int.
52995
52996 2007-06-18  Jim Meyering  <jim@meyering.net>
52997
52998         New module: mreadlink-with-size.
52999         * MODULES.html.sh: Add mreadlink-with-size.
53000         * modules/mreadlink-with-size: New module
53001         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
53002         not xreadlink-with-size.
53003         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
53004
53005 2007-06-16  Bruno Haible  <bruno@clisp.org>
53006
53007         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
53008         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
53009         Reported by Gary V. Vaughan <gary@gnu.org>.
53010
53011 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53012
53013         Revamp lchown so that it lives in unistd.h where it belongs.
53014         * lib/lchown.h: Remove.
53015         * lib/dirchownmod.c: Don't include lib/lchown.h.
53016         * lib/fchownat.c: Likewise.
53017         * lib/openat.c: Likewise.
53018         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
53019         does not follow symlinks.
53020         (EOPNOTSUPP): Define if not defined.
53021         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
53022         is defined to 0.
53023         (lchown): New decl.
53024         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
53025         Do not check for lchown decl.
53026         Set REPLACE_LCHOWN.
53027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
53028         REPLACE_LCHOWN.
53029         * modules/chown: Make it clear it follows symlinks.
53030         * modules/lchown: Make it clear it doesn't follow symlinks.
53031         (Files): Remove lib/lchown.h
53032         (Depends-on): Add unistd.
53033         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
53034         (Include): Include <unistd.h>, not "lchown.h".
53035         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
53036         REPLACE_LCHOWN.
53037
53038 2007-06-15  Jim Meyering  <jim@meyering.net>
53039
53040         Change license (GPL to LGPL) of fsusage and dependents.
53041         * modules/fsusage (License): Change to LGPL.
53042         * modules/full-read (License): Likewise.
53043         * modules/full-write (License): Likewise.
53044         * modules/safe-read (License): Likewise.
53045         * modules/safe-write (License): Likewise.
53046
53047 2007-06-14  Ben Pfaff  <blp@gnu.org>
53048
53049         Missing part of allocsa -> malloca transition.
53050         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
53051         gl_MALLOCA.
53052
53053 2007-06-12  Bruno Haible  <bruno@clisp.org>
53054
53055         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
53056         to ia64, x86_64, i386.
53057         Reported by Eric Blake.
53058
53059 2007-06-12  Bruno Haible  <bruno@clisp.org>
53060
53061         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
53062         cross-compiling to x86_64.
53063
53064 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
53065
53066         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
53067         glitch reported by Ralf Wildenhues in
53068         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
53069
53070         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
53071         Vin Shelton.
53072
53073 2007-06-11  Bruno Haible  <bruno@clisp.org>
53074
53075         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
53076         replacement string.
53077         Reported by Eric Blake.
53078
53079 2007-06-10  Bruno Haible  <bruno@clisp.org>
53080
53081         Prepare vasnprintf code for use with Unicode strings.
53082         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
53083         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
53084         TYPE_U32_STRING.
53085         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
53086         a_u32_string variants.
53087         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53088         * lib/printf-args.c: Don't include config.h and the specification
53089         header if PRINTF_FETCHARGS is already defined.
53090         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53091         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
53092         TYPE_U16_STRING, TYPE_U32_STRING.
53093         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
53094         u16_directive, u16_directives, u32_directive, u32_directives): New
53095         types.
53096         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
53097         New declarations.
53098         * lib/printf-parse.c: Don't include config.h and the specification
53099         header if PRINTF_PARSE is already defined. Eliminate the set of
53100         parameters for WIDE_CHAR_VERSION; the user of this file must provide
53101         them now. Include c-ctype.h.
53102         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
53103         directive and CHAR_T_ONLY_ASCII.
53104         * lib/vasnprintf.c: Don't include config.h and the specification header
53105         if VASNPRINTF is already defined.
53106         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
53107         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
53108         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
53109         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
53110         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
53111         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
53112         code accordingly.
53113         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53114         pad_ourselves also in this case, with the 'c' and 's' directives, and
53115         with a different notion of "width".
53116         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53117
53118 2007-06-10  Bruno Haible  <bruno@clisp.org>
53119
53120         * modules/unistr/u32-mbsnlen: New file.
53121         * lib/unistr/u32-mbsnlen.c: New file.
53122
53123         * modules/unistr/u16-mbsnlen: New file.
53124         * lib/unistr/u16-mbsnlen.c: New file.
53125
53126         * modules/unistr/u8-mbsnlen: New file.
53127         * lib/unistr/u8-mbsnlen.c: New file.
53128
53129         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
53130         declarations.
53131
53132 2007-06-10  Bruno Haible  <bruno@clisp.org>
53133
53134         * lib/string_.h (mbsnlen): New declaration.
53135         * lib/mbsnlen.c: New file.
53136         * m4/mbsnlen.m4: New file.
53137         * modules/mbsnlen: New file.
53138         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
53139         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
53140         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
53141
53142 2007-06-10  Bruno Haible  <bruno@clisp.org>
53143
53144         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
53145
53146 2007-06-10  Bruno Haible  <bruno@clisp.org>
53147
53148         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
53149         * lib/mbuiter.h: Likewise.
53150
53151 2007-06-10  Bruno Haible  <bruno@clisp.org>
53152
53153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
53154         declaration.
53155
53156 2007-06-10  Karl Berry  <karl@gnu.org>
53157
53158         * config/srclist.txt: remove gettext entries, Bruno prefers
53159         to update individually.
53160
53161 2007-06-10  Bruno Haible  <bruno@clisp.org>
53162
53163         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
53164         'maxlen'. Ensure only length + width bytes are allocated, not
53165         length + 1 + width.
53166
53167 2007-06-09  Bruno Haible  <bruno@clisp.org>
53168
53169         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
53170         (CHAR_T): Remove macro.
53171         (VASNPRINTF): Update.
53172
53173 2007-06-09  Bruno Haible  <bruno@clisp.org>
53174
53175         * MODULES.html.sh (Unicode string functions): Add the new modules.
53176
53177         * modules/uniconv/u32-conv-to-enc: New file.
53178         * lib/uniconv/u32-conv-to-enc.c: New file.
53179         * modules/uniconv/u32-conv-to-enc-tests: New file.
53180         * tests/uniconv/test-u32-conv-to-enc.c: New file.
53181
53182         * modules/uniconv/u16-conv-to-enc: New file.
53183         * lib/uniconv/u16-conv-to-enc.c: New file.
53184         * lib/uniconv/u-conv-to-enc.h: New file.
53185         * modules/uniconv/u16-conv-to-enc-tests: New file.
53186         * tests/uniconv/test-u16-conv-to-enc.c: New file.
53187
53188         * modules/uniconv/u8-conv-to-enc: New file.
53189         * lib/uniconv/u8-conv-to-enc.c: New file.
53190         * modules/uniconv/u8-conv-to-enc-tests: New file.
53191         * tests/uniconv/test-u8-conv-to-enc.c: New file.
53192
53193         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
53194         u32_conv_to_encoding): New declarations.
53195
53196 2007-06-09  Bruno Haible  <bruno@clisp.org>
53197
53198         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
53199
53200 2007-06-09  Bruno Haible  <bruno@clisp.org>
53201
53202         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
53203         * modules/malloca: Renamed from modules/allocsa, updated.
53204         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
53205         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
53206         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
53207         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
53208         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
53209         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
53210         * modules/xmalloca: Renamed from modules/xallocsa, updated.
53211         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
53212         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
53213         * modules/c-strcasestr (Depends-on): Update.
53214         * lib/c-strcasestr.c: Update.
53215         * modules/c-strstr (Depends-on): Update.
53216         * lib/c-strstr.c: Update.
53217         * modules/canonicalize-lgpl (Depends-on): Update.
53218         * lib/canonicalize-lgpl.c: Update.
53219         * modules/clean-temp (Depends-on): Update.
53220         * lib/clean-temp.c: Update.
53221         * modules/csharpcomp (Depends-on): Update.
53222         * lib/csharpcomp.c: Update.
53223         * modules/csharpexec (Depends-on): Update.
53224         * lib/csharpexec.c: Update.
53225         * modules/javacomp (Depends-on): Update.
53226         * lib/javacomp.c: Update.
53227         * modules/javaexec (Depends-on): Update.
53228         * lib/javaexec.c: Update.
53229         * modules/mbscasestr (Depends-on): Update.
53230         * lib/mbscasestr.c: Update.
53231         * modules/mbsstr (Depends-on): Update.
53232         * lib/mbsstr.c: Update.
53233         * modules/setenv (Depends-on): Update.
53234         * lib/setenv.c: Update.
53235         * modules/strcasestr (Depends-on): Update.
53236         * lib/strcasestr.c: Update.
53237         * modules/striconveha (Depends-on): Update.
53238         * lib/striconveha.c: Update.
53239         * modules/relocatable-prog-wrapper (Files): Update.
53240         * lib/relocwrapper.c: Update.
53241         * build-aux/install-reloc: Update.
53242         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
53243
53244 2007-06-08  Bruno Haible  <bruno@clisp.org>
53245
53246         Port to uClibc.
53247         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
53248         * lib/fpurge.c (fpurge): Likewise.
53249         * lib/freading.c (freading): Likewise.
53250         * lib/fseeko.c (rpl_fseeko): Likewise.
53251         * lib/fseterr.c (fseterr): Likewise.
53252         * lib/fwriting.c (fwriting): Likewise.
53253         * tests/test-fflush.c (main): Avoid a failure on uClibc.
53254
53255 2007-06-08  Bruno Haible  <bruno@clisp.org>
53256
53257         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
53258         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
53259         * modules/gettext (Files): Add m4/intlmacosx.m4.
53260
53261 2007-06-07  Bruno Haible  <bruno@clisp.org>
53262
53263         * modules/localename-tests: New file.
53264         * tests/test-localename.c: New file.
53265
53266         New module 'localename'.
53267         * lib/localename.h: New file.
53268         * lib/localename.c: New file, from GNU gettext.
53269         * m4/localename.m4: New file.
53270         * modules/localename: New file.
53271
53272 2007-06-07  Bruno Haible  <bruno@clisp.org>
53273
53274         Work around the lack of <wchar.h> on some builds of uClibc.
53275         * doc/headers/wchar.texi: Update.
53276         * lib/wchar_.h: Include <wchar.h> only if it exists.
53277         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
53278         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
53279         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
53280         doesn't exist.
53281         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
53282         * modules/mbfile (Depends-on): Add wchar.
53283         * modules/mbiter (Depends-on): Likewise.
53284         * modules/mbuiter (Depends-on): Likewise.
53285         Reported by Simon Josefsson.
53286
53287 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53288
53289         Work around problem reported by Steven M. Schweda in
53290         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
53291         Tru64 5.1B with the Compaq compiler environment installed declares
53292         an 'isblank' function but does not define it in the C library.
53293         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
53294         * lib/regex_internal.h (isblank): Likewise.
53295         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53296         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53297
53298 2007-06-05  Bruno Haible  <bruno@clisp.org>
53299
53300         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53301         ia64.
53302         * modules/printf-safe: New file.
53303         * modules/fprintf-posix (Depends-on): Add printf-safe.
53304         * modules/printf-posix (Depends-on): Likewise.
53305         * modules/snprintf-posix (Depends-on): Likewise.
53306         * modules/sprintf-posix (Depends-on): Likewise.
53307         * modules/vasnprintf-posix (Depends-on): Likewise.
53308         * modules/vasprintf-posix (Depends-on): Likewise.
53309         * modules/vfprintf-posix (Depends-on): Likewise.
53310         * modules/vprintf-posix (Depends-on): Likewise.
53311         * modules/vsnprintf-posix (Depends-on): Likewise.
53312         * modules/vsprintf-posix (Depends-on): Likewise.
53313         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53314         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53315         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53316         "no" on i386, x86_64, ia64.
53317         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53318         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53319         on i386, x86_64, ia64.
53320         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53321         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53322         on i386, x86_64, ia64.
53323         * tests/test-vasnprintf-posix.c: Include float.h.
53324         (LDBL80_WORDS): New macro.
53325         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53326         on i386, x86_64, ia64.
53327         * tests/test-vasprintf-posix.c: Include float.h.
53328         (LDBL80_WORDS): New macro.
53329         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53330         on i386, x86_64, ia64.
53331         * tests/test-snprintf-posix.c: Include float.h.
53332         * tests/test-sprintf-posix.c: Likewise.
53333         * tests/test-vsnprintf-posix.c: Likewise.
53334         * tests/test-vsprintf-posix.c: Likewise.
53335
53336 2007-06-05  Bruno Haible  <bruno@clisp.org>
53337
53338         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53339         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53340         non-IEEE numbers on i386, x86_64, ia64.
53341         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53342         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53343         * tests/test-isnanl.h: Include float.h.
53344         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53345
53346 2007-06-05  Bruno Haible  <bruno@clisp.org>
53347
53348         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53349         also the %a / %A. Handle the %a / %A code before this extra handling.
53350
53351 2007-06-05  Bruno Haible  <bruno@clisp.org>
53352
53353         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53354         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53355
53356 2007-06-05  Bruno Haible  <bruno@clisp.org>
53357
53358         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53359         typo in variable name.
53360
53361 2007-06-05  Eric Blake  <ebb9@byu.net>
53362
53363         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53364         Reported by Simon Josefsson.
53365
53366 2007-06-04  Bruno Haible  <bruno@clisp.org>
53367
53368         Avoid test failures on some PowerPC platforms.
53369         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53370         Define differently for PowerPC.
53371         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53372         Reported by Gary V. Vaughan <gary@gnu.org>.
53373
53374 2007-06-02  Bruno Haible  <bruno@clisp.org>
53375
53376         Fix test-stdint failure on FreeBSD/ia64.
53377         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53378         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53379         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53380         * doc/headers/stdint.texi: Update.
53381
53382 2007-06-01  Bruno Haible  <bruno@clisp.org>
53383
53384         * tests/test-binary-io.c (main): Pass a third argument to open().
53385         Reported by Gary V. Vaughan <gary@gnu.org>.
53386
53387 2007-06-01  Bruno Haible  <bruno@clisp.org>
53388
53389         * doc/functions/frexpl.texi: Update for mingw.
53390
53391 2007-06-01  Bruno Haible  <bruno@clisp.org>
53392
53393         * tests/test-lseek.c (main): Disable test of errno for invalid third
53394         argument.
53395         * doc/functions/lseek.texi: Update.
53396         Reported by Gary V. Vaughan <gary@gnu.org>.
53397
53398 2007-05-28  Bruno Haible  <bruno@clisp.org>
53399
53400         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53401
53402 2007-05-31  Eric Blake  <ebb9@byu.net>
53403
53404         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53405         cross compiling.
53406
53407 2007-05-30  Eric Blake  <ebb9@byu.net>
53408         and Bruno Haible  <bruno@clisp.org>
53409
53410         Work around mingw test failures exposed by m4-1.4.9b.
53411         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53412         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53413         moment.
53414
53415 2007-05-30  Bruno Haible  <bruno@clisp.org>
53416
53417         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53418         assuming that they are closed. Needed on HP-UX 11.
53419
53420 2007-05-29  Bruno Haible  <bruno@clisp.org>
53421
53422         Fix a problem with #include_next.
53423         * lib/dirent_.h: Split the double-inclusion guard.
53424         * lib/fcntl_.h: Likewise.
53425         * lib/float_.h: Likewise.
53426         * lib/iconv_.h: Likewise.
53427         * lib/inttypes_.h: Likewise.
53428         * lib/locale_.h: Likewise.
53429         * lib/math_.h: Likewise.
53430         * lib/netinet_in_.h: Likewise.
53431         * lib/search_.h: Likewise.
53432         * lib/signal_.h: Likewise.
53433         * lib/stdint_.h: Likewise.
53434         * lib/stdio_.h: Likewise.
53435         * lib/stdlib_.h: Likewise.
53436         * lib/string_.h: Likewise.
53437         * lib/sys_select_.h: Likewise.
53438         * lib/sys_socket_.h: Likewise.
53439         * lib/sys_stat_.h: Likewise.
53440         * lib/sys_time_.h: Likewise.
53441         * lib/sysexits_.h: Likewise.
53442         * lib/time_.h: Likewise.
53443         * lib/unistd_.h: Likewise.
53444         * lib/wchar_.h: Likewise.
53445         * lib/wctype_.h: Likewise.
53446
53447 2007-05-29  Bruno Haible  <bruno@clisp.org>
53448
53449         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53450         for the moment.
53451
53452 2007-05-29  Bruno Haible  <bruno@clisp.org>
53453
53454         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53455         invocation.
53456         Reported by Eric Blake.
53457
53458 2007-05-29  Bruno Haible  <bruno@clisp.org>
53459
53460         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53461         compiling case.
53462
53463 2007-05-29  Eric Blake  <ebb9@byu.net>
53464             Bruno Haible  <bruno@clisp.org>
53465
53466         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53467         cross compiles.
53468
53469 2007-05-28  Eric Blake  <ebb9@byu.net>
53470
53471         * modules/closein-tests (test_closein_LDADD): Support test on
53472         cygwin with libtool.
53473
53474 2007-05-28  Bruno Haible  <bruno@clisp.org>
53475
53476         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53477         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53478         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53479         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53480         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53481         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53482         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53483         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53484         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53485
53486 2007-05-28  Eric Blake  <ebb9@byu.net>
53487
53488         Unconditionally include <config.h> in unit tests.
53489         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53490         * tests/test-allocsa.c, tests/test-arcfour.c,
53491         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53492         tests/test-array_list.c, tests/test-array_oset.c,
53493         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53494         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53495         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53496         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53497         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53498         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53499         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53500         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53501         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53502         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53503         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53504         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53505         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53506         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53507         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53508         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53509         test-md5.c, test-memmem.c, test-printf-posix.c,
53510         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53511         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53512         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53513         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53514         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53515         test-vasnprintf-posix2.c, test-vasnprintf.c,
53516         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53517         test-vfprintf-posix.c, test-vprintf-posix.c,
53518         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53519         test-xvasprintf.c: Likewise.
53520
53521 2007-05-28  Bruno Haible  <bruno@clisp.org>
53522
53523         * gnulib-tool (func_import): Remember the --with-tests command-line
53524         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53525         Reported by Eric Blake.
53526
53527 2007-05-28  Bruno Haible  <bruno@clisp.org>
53528
53529         * modules/ftell-tests: New file.
53530         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53531         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53532
53533         * lib/ftell.c: New file.
53534         * modules/ftell: New file.
53535         * m4/ftell.m4: New file.
53536         * doc/functions/ftell.texi: Update.
53537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53538         REPLACE_FTELL.
53539         * lib/stdio_.h (rpl_ftell): New declaration.
53540         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53541         REPLACE_FTELL.
53542
53543 2007-05-28  Eric Blake  <ebb9@byu.net>
53544
53545         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53546
53547 2007-05-28  Bruno Haible  <bruno@clisp.org>
53548
53549         * modules/fseek-tests: New file.
53550         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53551         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53552
53553         * lib/fseek.c: New file.
53554         * modules/fseek: New file.
53555         * m4/fseek.m4: New file.
53556         * doc/functions/fseek.texi: Update.
53557         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53558         REPLACE_FSEEK.
53559         * lib/stdio_.h (rpl_fseek): New declaration.
53560         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53561         REPLACE_FSEEK.
53562
53563 2007-05-28  Bruno Haible  <bruno@clisp.org>
53564
53565         * lib/stdio_.h (fflush): More comments.
53566
53567 2007-05-28  Bruno Haible  <bruno@clisp.org>
53568
53569         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53570         runtime test.
53571
53572 2007-05-28  Eric Blake  <ebb9@byu.net>
53573
53574         Improve lseek module.
53575         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53576         * lib/unistd_.h (lseek): Scale back link warning message.
53577         * tests/test-lseek.c: Beef up test.
53578         * tests/test-lseek.sh: Exercise more facets of lseek.
53579         Reported by Bruno Haible.
53580
53581 2007-05-28  Bruno Haible  <bruno@clisp.org>
53582
53583         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53584         to define.
53585
53586 2007-05-27  Bruno Haible  <bruno@clisp.org>
53587
53588         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53589
53590 2007-05-27  Bruno Haible  <bruno@clisp.org>
53591
53592         * modules/openmp: New file.
53593         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53594         Noah Misch.
53595
53596 2007-05-26  Bruno Haible  <bruno@clisp.org>
53597
53598         * modules/chdir-long (Depends-on): Add fchdir.
53599         * modules/chdir-safer (Depends-on): Likewise.
53600         * modules/fts (Depends-on): Likewise.
53601         * modules/fts-lgpl (Depends-on): Likewise.
53602         * modules/openat (Depends-on): Likewise.
53603         * modules/savewd (Depends-on): Likewise.
53604
53605 2007-05-24  Eric Blake  <ebb9@byu.net>
53606
53607         Fix lseek on mingw.
53608         * modules/lseek: New module.
53609         * m4/lseek.m4: New file.
53610         * lib/lseek.c: New file.
53611         * modules/lseek-tests: New file.
53612         * tests/test-lseek.c: New file.
53613         * tests/test-lseek.sh: New file.
53614         * MODULES.html.sh: Document lseek module.
53615         * modules/fflush (Depends-on): Add lseek, fseeko.
53616         * modules/fseeko (Depends-on): Likewise.
53617         * modules/ftello (Depends-on): Likewise.
53618         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53619         broken.
53620         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53621         broken.
53622         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53623         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53624         * lib/ftello.c (rpl_ftello): Likewise.
53625         * tests/test-fseeko.c (main): Test this.
53626         * tests/test-fseeko.sh: Likewise.
53627         * tests/test-ftello.c (main): Likewise.
53628         * tests/test-ftello.sh: Likewise.
53629         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53630         implies replacing fseek.
53631         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53632         HAVE_FTELLO.
53633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53634         * modules/unistd (Makefile.am): Likewise.
53635         * lib/unistd_.h (lseek): Declare a replacement.
53636         * doc/functions/lseek.texi (lseek): Document this fix.
53637         * doc/functions/fseek.texi (fseek): Likewise.
53638         * doc/functions/ftell.texi (ftell): Likewise.
53639
53640 2007-05-24  Bruno Haible  <bruno@clisp.org>
53641
53642         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53643         in the printed representation of a NaN.
53644         * tests/test-vasprintf-posix.c (test_function): Likewise.
53645         * tests/test-snprintf-posix.h (test_function): Likewise.
53646         * tests/test-sprintf-posix.h (test_function): Likewise.
53647         Reported by Eric Blake.
53648
53649 2007-05-23  Eric Blake  <ebb9@byu.net>
53650
53651         Fix fseeko/ftello on cygwin 1.5.24.
53652         * doc/functions/fseeko.texi (fseeko): Document the fix.
53653         * doc/functions/ftello.texi (ftello): Document the fix.
53654         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53655         * doc/functions/stdout.text (stdout): New file.
53656         * doc/functions/stderr.text (stderr): New file.
53657         * doc/gnulib.texi (Function Substitutes): Use new files.
53658         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53659         prior to 1.7.0.
53660         * tests/test-ftello.c (main): Likewise for ftello.
53661         * tests/test-fseeko.sh: New file.
53662         * tests/test-ftello.sh: New file.
53663         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53664         with seekable stdin.
53665         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53666         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53667         (gl_REPLACE_FSEEKO): New macro.
53668         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53669         * modules/fseeko (Files): Distribute fseeko.c.
53670         * modules/ftello (Files): Distribute ftello.c.
53671         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53672         mode.
53673         * lib/ftello.c (rpl_ftello): New file.
53674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53675         fseeko, ftello.
53676         (gl_STDIN_LARGE_OFFSET): New macro.
53677         * modules/stdio (Makefile.am): Perform the replacement.
53678         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53679
53680 2007-05-23  Bruno Haible  <bruno@clisp.org>
53681
53682         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53683         GNULIB_POSIXCHECK is defined.
53684
53685 2007-05-21  Bruno Haible  <bruno@clisp.org>
53686
53687         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53688         Check also the output for NaN arguments. When cross-compiling, guess
53689         no on IRIX.
53690         * lib/vasnprintf.c: Update comments.
53691         * tests/test-vasnprintf-posix.c (strisnan): New function.
53692         (test_function): Use it.
53693         * tests/test-vasprintf-posix.c (strisnan): New function.
53694         (test_function): Use it.
53695         * tests/test-snprintf-posix.h (strisnan): New function.
53696         (test_function): Use it.
53697         * tests/test-sprintf-posix.h (strisnan): New function.
53698         (test_function): Use it.
53699         Reported by Eric Blake.
53700
53701 2007-05-20  Bruno Haible  <bruno@clisp.org>
53702
53703         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53704         numbers that fails on BeOS.
53705         * doc/functions/frexpl.texi: Update.
53706
53707 2007-05-20  Jim Meyering  <jim@meyering.net>
53708
53709         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53710         forced upon us by glibc-2.6.
53711
53712 2007-05-20  Bruno Haible  <bruno@clisp.org>
53713
53714         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53715         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53716         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53717         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53718         NEED_PRINTF_INFINITE.
53719         (is_infinitel): New function.
53720         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53722         gl_PREREQ_VASNPRINTF_INFINITE.
53723         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53724         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53725         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53726         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53727         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53728         gl_PREREQ_VASNPRINTF_INFINITE.
53729         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53730         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53731         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53732         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53733         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53734         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53735         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53736         * doc/functions/fprintf.texi: Update.
53737         * doc/functions/printf.texi: Update.
53738         * doc/functions/snprintf.texi: Update.
53739         * doc/functions/sprintf.texi: Update.
53740         * doc/functions/vfprintf.texi: Update.
53741         * doc/functions/vprintf.texi: Update.
53742         * doc/functions/vsnprintf.texi: Update.
53743         * doc/functions/vsprintf.texi: Update.
53744
53745 2007-05-20  Bruno Haible  <bruno@clisp.org>
53746
53747         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53748         was not found in libc.
53749         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53750
53751 2007-05-20  Bruno Haible  <bruno@clisp.org>
53752
53753         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53754         printed as "-nan" instead of "nan".
53755         * tests/test-vasprintf-posix.c (test_function): Likewise.
53756         * tests/test-snprintf-posix.h (test_function): Likewise.
53757         * tests/test-sprintf-posix.h (test_function): Likewise.
53758         Needed for HP-UX 11.
53759
53760 2007-05-20  Jim Meyering  <jim@meyering.net>
53761
53762         Fix buggy test for the fchownat-deref bug.
53763         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53764         symlink required for the run-test.  Without it, this test would
53765         always declare that fchownat doesn't work, and client code would
53766         unnecessarily use the replacement function with fixed libc.
53767         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53768         Reported by Greg Schafer.
53769
53770 2007-05-19  Bruno Haible  <bruno@clisp.org>
53771
53772         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53773         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53774         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53775         Needed for IRIX 6.5 and Solaris 2.5.1.
53776
53777 2007-05-19  Bruno Haible  <bruno@clisp.org>
53778
53779         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53780         (test_function): Skip tests involving -0.0 on platforms where
53781         -0.0 = 0.0.
53782         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53783         (test_function): Skip tests involving -0.0 on platforms where
53784         -0.0 = 0.0.
53785         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53786         (test_function): Skip tests involving -0.0 on platforms where
53787         -0.0 = 0.0.
53788         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53789         (test_function): Skip tests involving -0.0 on platforms where
53790         -0.0 = 0.0.
53791         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53792         tests.
53793         * tests/test-printf-posix.h (test_function): Likewise.
53794         * tests/test-printf-posix.output: Remove all -0.0 related results.
53795         Needed for IRIX 6.5.
53796
53797 2007-05-19  Bruno Haible  <bruno@clisp.org>
53798
53799         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53800         printed as "nan0x7fffffff" instead of "nan".
53801         * tests/test-vasprintf-posix.c (test_function): Likewise.
53802         * tests/test-snprintf-posix.h (test_function): Likewise.
53803         * tests/test-sprintf-posix.h (test_function): Likewise.
53804         * tests/test-fprintf-posix.h (NaN): Remove macro.
53805         (test_function): Remove all NaN related tests.
53806         * tests/test-printf-posix.h (NaN): Remove macro.
53807         (test_function): Remove all NaN related tests.
53808         * tests/test-printf-posix.output: Remove all NaN related results.
53809         Needed for IRIX 6.5.
53810
53811 2007-05-19  Bruno Haible  <bruno@clisp.org>
53812
53813         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53814         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53815
53816 2007-05-19  Bruno Haible  <bruno@clisp.org>
53817
53818         * lib/float_.h: New file.
53819         * m4/float_h.m4: New file.
53820         * modules/float: New file.
53821         * modules/isnanl (Dependencies): Add float.
53822         * modules/isnanl-nolibm (Dependencies): Likewise.
53823         * modules/mathl (Dependencies): Likewise.
53824         * modules/printf-frexpl (Dependencies): Likewise.
53825         * modules/signbit (Dependencies): Likewise.
53826         * modules/vasnprintf (Dependencies): Likewise.
53827         * doc/headers/float.texi: Update.
53828
53829 2007-05-19  Jim Meyering  <jim@meyering.net>
53830
53831         * lib/utimens.c (gl_futimens): Rename from futimens,
53832         now that glibc-2.6 declares futimens.
53833         * lib/utimens.h: Likewise.
53834
53835 2007-05-19  Bruno Haible  <bruno@clisp.org>
53836
53837         Avoid test failures on mingw.
53838         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53839         * tests/test-printf-posix.sh: Likewise.
53840         * tests/test-vfprintf-posix.sh: Likewise.
53841         * tests/test-vprintf-posix.sh: Likewise.
53842
53843 2007-05-19  Bruno Haible  <bruno@clisp.org>
53844
53845         Fix *printf result for NaN, Inf, -0.0 on mingw.
53846         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53847         * lib/vasnprintf.c: Include math.h and isnan.h.
53848         (is_infinite_or_zero): New function.
53849         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53850         values in the %f, %F, %e, %E, %g, %G directives.
53851         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53852         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53853         gl_PRINTF_INFINITE and test its result. Invoke
53854         gl_PREREQ_VASNPRINTF_INFINITE.
53855         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53856         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53857         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53858         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53859         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53860         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53861         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53862         * doc/functions/fprintf.texi: Update.
53863         * doc/functions/printf.texi: Update.
53864         * doc/functions/snprintf.texi: Update.
53865         * doc/functions/sprintf.texi: Update.
53866         * doc/functions/vfprintf.texi: Update.
53867         * doc/functions/vprintf.texi: Update.
53868         * doc/functions/vsnprintf.texi: Update.
53869         * doc/functions/vsprintf.texi: Update.
53870
53871 2007-05-19  Bruno Haible  <bruno@clisp.org>
53872
53873         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
53874         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
53875         Instead of multiplying with 10^k, set extra_zeroes to k.
53876         (scale10_round_long_double): Remove function.
53877
53878 2007-05-18  Bruno Haible  <bruno@clisp.org>
53879
53880         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
53881         introduced on 2007-05-06.
53882
53883 2007-05-18  Bruno Haible  <bruno@clisp.org>
53884
53885         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
53886         %g directives.
53887         * tests/test-vasprintf-posix.c (test_function): Likewise.
53888         * tests/test-snprintf-posix.h (test_function): Likewise.
53889         * tests/test-sprintf-posix.h (test_function): Likewise.
53890
53891 2007-05-18  Bruno Haible  <bruno@clisp.org>
53892
53893         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
53894         (strmatch): New function.
53895         (test_function): Test the %f directive on numbers of various exponents.
53896         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
53897         (strmatch): New function.
53898         (test_function): Test the %f directive on numbers of various exponents.
53899         * tests/test-snprintf-posix.h (strmatch): New function.
53900         (test_function): Test the %f directive on numbers of various exponents.
53901         * tests/test-sprintf-posix.h (strmatch): New function.
53902         (test_function): Test the %f directive on numbers of various exponents.
53903         * tests/test-snprintf-posix.c (SIZEOF): New macro.
53904         * tests/test-sprintf-posix.c (SIZEOF): New macro.
53905         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
53906         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
53907
53908 2007-05-18  Bruno Haible  <bruno@clisp.org>
53909
53910         Add support for 'long double' number output.
53911         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
53912         * lib/vasnprintf.c: Include math.h and float+.h.
53913         (mp_limb_t): New type.
53914         (GMP_LIMB_BITS): New macro.
53915         (mp_twolimb_t): New type.
53916         (GMP_TWOLIMB_BITS): New macro.
53917         (mpn_t): New type.
53918         (multiply, divide, convert_to_decimal, decode_long_double,
53919         scale10_round_long_double, scale10_round_decimal_long_double,
53920         floorlog10l): New functions.
53921         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
53922         for the %f, %F, %e, %E, %g, %G directives.
53923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
53924         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53925         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
53926         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
53927         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53928         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53929         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53930         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53931         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53932         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53933         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53934         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
53935         * modules/snprintf-posix (Depends-on): Likewise.
53936         * modules/sprintf-posix (Depends-on): Likewise.
53937         * modules/vasnprintf-posix (Depends-on): Likewise.
53938         * modules/vasprintf-posix (Depends-on): Likewise.
53939         * modules/vfprintf-posix (Depends-on): Likewise.
53940         * modules/vsnprintf-posix (Depends-on): Likewise.
53941         * modules/vsprintf-posix (Depends-on): Likewise.
53942         * modules/vasnprintf (Files): Add lib/float+.h.
53943         * doc/functions/fprintf.texi: Update.
53944         * doc/functions/printf.texi: Update.
53945         * doc/functions/snprintf.texi: Update.
53946         * doc/functions/sprintf.texi: Update.
53947         * doc/functions/vfprintf.texi: Update.
53948         * doc/functions/vprintf.texi: Update.
53949         * doc/functions/vsnprintf.texi: Update.
53950         * doc/functions/vsprintf.texi: Update.
53951
53952 2007-05-18  Bruno Haible  <bruno@clisp.org>
53953
53954         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
53955
53956 2007-05-18  Bruno Haible  <bruno@clisp.org>
53957
53958         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
53959         for printing 64-bit integers. Needed for mingw.
53960
53961 2007-05-18  Bruno Haible  <bruno@clisp.org>
53962
53963         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53964         gl_FUNC_FREXPL_WORKS.
53965         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
53966
53967 2007-05-18  Bruno Haible  <bruno@clisp.org>
53968
53969         * modules/frexpl-nolibm-tests: New file.
53970
53971         * modules/frexpl-nolibm: New file.
53972         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
53973
53974 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53975
53976         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
53977         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53978         GCC 4.2, which otherwise issues a lot of warnings.
53979         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
53980         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
53981         Likewise.
53982         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
53983         * modules/iconv_open (iconv.h): Likewise.
53984         * modules/locale (locale.h): Likewise.
53985         * modules/netinet_in (netinet/in.h): Likewise.
53986         * modules/sys_select (sys_select.h): Likewise.
53987         * modules/sys_socket (sys/socket.h): Likewise.
53988         * modules/sys_stat (sys/stat.h): Likewise.
53989         * modules/sysexits (sysexits.h): Likewise.
53990         * modules/unistd (unistd.h): Likewise.
53991
53992 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53993
53994         * modules/closein-tests (Makefile.am): Distribute
53995         `test-closein.sh'.
53996
53997 2007-05-17  Bruno Haible  <bruno@clisp.org>
53998
53999         * tests/test-printf-posix.output: Renamed from
54000         tests/test-fprintf-posix.out.
54001         * modules/fprintf-posix-tests: Update.
54002         * modules/printf-posix-tests: Update.
54003         * modules/vfprintf-posix-tests: Update.
54004         * modules/vprintf-posix-tests: Update.
54005         * tests/test-fprintf-posix.sh: Update.
54006         * tests/test-printf-posix.sh: Update.
54007         * tests/test-vfprintf-posix.sh: Update.
54008         * tests/test-vprintf-posix.sh: Update.
54009         Reported by Ralf Wildenhues.
54010
54011 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54012
54013         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
54014         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54015         GCC 4.2, which otherwise issues a lot of warnings.
54016         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
54017         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
54018         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
54019         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
54020         it should no longer be needed.
54021         * lib/string_.h: Likewise.
54022         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
54023         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
54024         * modules/inttypes (inttypes.h): Likewise.
54025         * modules/math (math.h): Likewise.
54026         * modules/search (search.h): Likewise.
54027         * modules/signal (signal.h): Likewise.
54028         * modules/stdint (stdint.h): Likewise.
54029         * modules/stdio (stdio.h): Likewise.
54030         * modules/stdlib (stdlib.h): Likewise.
54031         * modules/string (string.h): Likewise.
54032         * modules/sys_time (sys/time.h): Likewise.
54033         * modules/time (time.h): Likewise.
54034         * modules/wchar (wchar.h): Likewise.
54035         * modules/wctype (wtype.h): Likewise.
54036
54037 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54038
54039         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
54040
54041 2007-05-13  Bruno Haible  <bruno@clisp.org>
54042
54043         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
54044         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54045         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
54046         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54047         (gl_PREREQ_STRTOK_R): Don't require it here.
54048
54049 2007-05-13  Bruno Haible  <bruno@clisp.org>
54050
54051         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
54052         when used in C++ mode.
54053
54054 2007-05-12  Bruno Haible  <bruno@clisp.org>
54055
54056         * lib/linebuffer.h: Tweak doc.
54057         * lib/linebuffer.c: Likewise.
54058
54059 2007-05-12  James Youngman  <jay@gnu.org>
54060
54061         * lib/linebuffer.c (readlinebuffer_delim): New function,
54062         like readlinebuffer, but use a caller-specified delimiter.
54063         (readlinebuffer): Just call readlinebuffer_delim with '\n'
54064         as the delimiter.
54065         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
54066
54067 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54068
54069         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
54070         * modules/openat (Files): Remove openat-die.c.
54071         (Depends-on): Add openat-die.
54072         * modules/openat-die: New module.
54073
54074 2007-05-06  Bruno Haible  <bruno@clisp.org>
54075
54076         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
54077         Update with info about Cygwin.
54078         * doc/functions/fprintf.texi: Update.
54079         * doc/functions/printf.texi: Update.
54080         * doc/functions/snprintf.texi: Update.
54081         * doc/functions/sprintf.texi: Update.
54082         * doc/functions/vfprintf.texi: Update.
54083         * doc/functions/vprintf.texi: Update.
54084         * doc/functions/vsnprintf.texi: Update.
54085         * doc/functions/vsprintf.texi: Update.
54086         Reported by Eric Blake.
54087
54088 2007-05-06  Bruno Haible  <bruno@clisp.org>
54089
54090         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
54091         padding ourselves for the floating-point directives.
54092         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
54093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
54094         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54095         gl_PRINTF_FLAG_ZERO and test its result. Invoke
54096         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
54097         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54098         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54100         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54101         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54103         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54104         * tests/test-snprintf-posix.h (test_function): Also check the width
54105         and some flags in the %f directive.
54106         * tests/test-sprintf-posix.h (test_function): Likewise.
54107         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54108         * tests/test-vasprintf-posix.c (test_function): Likewise.
54109         * doc/functions/fprintf.texi: Update.
54110         * doc/functions/printf.texi: Update.
54111         * doc/functions/snprintf.texi: Update.
54112         * doc/functions/sprintf.texi: Update.
54113         * doc/functions/vfprintf.texi: Update.
54114         * doc/functions/vprintf.texi: Update.
54115         * doc/functions/vsnprintf.texi: Update.
54116         * doc/functions/vsprintf.texi: Update.
54117
54118 2007-05-06  Bruno Haible  <bruno@clisp.org>
54119
54120         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
54121         pass the ' flag character to sprintf or snprintf.
54122         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
54123         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
54124         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54125         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
54126         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
54127         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54128         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54129         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54130         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54131         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54132         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54133         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54134         * tests/test-snprintf-posix.h (test_function): Also check the grouping
54135         flag.
54136         * tests/test-sprintf-posix.h (test_function): Likewise.
54137         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54138         * tests/test-vasprintf-posix.c (test_function): Likewise.
54139         * doc/functions/fprintf.texi: Update.
54140         * doc/functions/printf.texi: Update.
54141         * doc/functions/snprintf.texi: Update.
54142         * doc/functions/sprintf.texi: Update.
54143         * doc/functions/vfprintf.texi: Update.
54144         * doc/functions/vprintf.texi: Update.
54145         * doc/functions/vsnprintf.texi: Update.
54146         * doc/functions/vsprintf.texi: Update.
54147
54148 2007-05-01  Bruno Haible  <bruno@clisp.org>
54149
54150         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
54151
54152 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
54153
54154         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
54155         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
54156
54157 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54158
54159         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
54160         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
54161         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
54162
54163 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
54164
54165         * lib/argp-help.c (struct hol_entry): New member `ord'.
54166         (HOL_ENTRY_PTRCMP): Use ord for comparison
54167         (hol_sort): Initialize ord.
54168
54169 2007-05-01  Bruno Haible  <bruno@clisp.org>
54170
54171         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
54172         Reported by Eric Blake.
54173         * doc/gnulib.texi (Function Substitutes): Update.
54174
54175 2007-05-01  Bruno Haible  <bruno@clisp.org>
54176
54177         * doc/functions.texi: Remove file, now redundant through
54178         doc/functions/*.texi.
54179
54180 2007-05-01  Bruno Haible  <bruno@clisp.org>
54181
54182         * modules/argp (Depends-on): Add sleep.
54183
54184 2007-05-01  Bruno Haible  <bruno@clisp.org>
54185
54186         * modules/sleep-tests: New file.
54187         * tests/test-sleep.c: New file.
54188
54189         * modules/sleep: New file.
54190         * lib/sleep.c: New file.
54191         * m4/sleep.m4: New file.
54192         * lib/unistd_.h (sleep): New declaration.
54193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
54194         HAVE_SLEEP.
54195         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
54196         * doc/functions/sleep.texi: Document the sleep module.
54197
54198 2007-05-01  Bruno Haible  <bruno@clisp.org>
54199
54200         * lib/sigprocmask.h: Remove file.
54201         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
54202         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
54203         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
54204         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
54205         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
54206         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
54207         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
54208         HAVE_SIGSET_T as a shell variable.
54209         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
54210         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
54211         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
54212         (Depends-on): Add signal. Remove verify.
54213         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
54214         (Include): Mention <signal.h> instead of sigprocmask.h.
54215         * NEWS: Mention the change.
54216         * lib/fatal-signal.c: Don't include sigprocmask.h.
54217
54218 2007-05-01  Bruno Haible  <bruno@clisp.org>
54219
54220         * modules/signal: New file.
54221         * lib/signal_.h: New file.
54222         * m4/signal_h.m4: New file.
54223
54224 2007-05-01  Bruno Haible  <bruno@clisp.org>
54225
54226         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
54227         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
54228         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
54229         HAVE_WCTYPE_CTMP_BUG into wctype.h.
54230
54231 2007-05-01  Bruno Haible  <bruno@clisp.org>
54232
54233         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
54234         configure time.
54235         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
54236         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
54237         * modules/sys_stat (Makefile.am): Substitute their values into
54238         sys/stat.h.
54239
54240 2007-05-01  Bruno Haible  <bruno@clisp.org>
54241
54242         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
54243         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
54244         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
54245
54246 2007-05-01  Bruno Haible  <bruno@clisp.org>
54247
54248         * doc/header/assert.texi: Undo last change: don't mention the gnulib
54249         'assert' module here.
54250
54251 2007-05-01  Bruno Haible  <bruno@clisp.org>
54252
54253         * doc/functions/*.texi: New files.
54254         * doc/functions/google-ranking.txt: New file.
54255         * doc/gnulib.texi (Function Substitutes): New chapter.
54256         (ctime, inet_ntoa): Remove sections.
54257         * doc/ctime.texi: Remove file.
54258         * doc/inet_ntoa.texi: Remove file.
54259         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
54260         dependencies.
54261         (%.info): New rule, specifying a --reference-limit.
54262
54263 2007-05-01  Bruno Haible  <bruno@clisp.org>
54264
54265         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
54266
54267 2007-05-01  Bruno Haible  <bruno@clisp.org>
54268
54269         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
54270         the portability of 'mkdir' to mingw systems.
54271
54272 2007-05-01  Bruno Haible  <bruno@clisp.org>
54273
54274         * doc/headers/google-ranking.txt: New file.
54275
54276 2007-04-30  Eric Blake  <ebb9@byu.net>
54277
54278         Prefer fseeko to fseek.
54279         * modules/getpass (Depends-on): Add fseeko.
54280         * lib/getpass.c (getpass): Use fseeko, not fseek.
54281
54282 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
54283
54284         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
54285         assumes the sorting is stable, while most qsort implementations
54286         are not.  Use argument addresses to ensure they never compare as
54287         equal.
54288
54289         * tests/test-argp-2.sh (usage-indent test): Fix output
54290         (func_compare): Restore diff options
54291         * tests/test-argp.c: Restore #include "progname.h"
54292
54293 2007-04-29  Bruno Haible  <bruno@clisp.org>
54294
54295         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54296         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54297         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54298         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54299         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54300         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54301         (TESTS, check_PROGRAMS): Add test-snprintf.
54302         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54303         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54304         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54305         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54306         assertions that fail on HP-UX, OSF/1, or IRIX.
54307         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54308
54309 2007-04-29  Bruno Haible  <bruno@clisp.org>
54310
54311         * MODULES.html.sh (posix_functions): Remove 'contents'.
54312
54313 2007-04-29  Karl Berry  <karl@gnu.org>
54314
54315         * config/srclist.txt (gendocs_template_min): new entry.
54316
54317 2007-04-29  Bruno Haible  <bruno@clisp.org>
54318
54319         Work around fpurge bug on BSD systems.
54320         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54321         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54322         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54323         fpurge to rpl_fpurge if the system already has this function.
54324         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54325         the case where the system already has this function. Correct invariants
54326         on BSD systems.
54327         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54328         BSD systems.
54329
54330 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54331
54332         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54333         proposed by Sven Verdoolaege.
54334
54335         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54336         options.
54337         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54338         (usage and help tests): Update
54339
54340 2007-04-29  Bruno Haible  <bruno@clisp.org>
54341
54342         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54343         Print more information in case of failure. Disable a test on BeOS.
54344
54345 2007-04-29  Bruno Haible  <bruno@clisp.org>
54346
54347         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54348         This helps debugging on systems on which no gdb is available.
54349
54350 2007-04-29  Bruno Haible  <bruno@clisp.org>
54351
54352         * lib/freading.h: Improve comments.
54353         * lib/fwriting.h: Likewise.
54354         * tests/test-freading.c (main): Don't check freading immediately after
54355         repositioning. Needed for glibc.
54356
54357 2007-04-29  Bruno Haible  <bruno@clisp.org>
54358
54359         * lib/freading.c (freading): Trivial simplification.
54360
54361 2007-04-28  Bruno Haible  <bruno@clisp.org>
54362
54363         * tests/test-fwriting.c (main): Also test the interaction between
54364         fflush and fwriting.
54365         * modules/fwriting-tests (Depends-on): Add fflush.
54366
54367         * tests/test-freading.c (main): Also test the interaction between
54368         fflush and freading.
54369         * modules/freading-tests (Depends-on): Add fflush.
54370
54371 2007-04-28  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54374         fseeko and ftello.
54375         Suggested by Eric Blake.
54376
54377 2007-04-28  Jim Meyering  <jim@meyering.net>
54378
54379         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54380         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54381         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54382
54383 2007-04-27  Eric Blake  <ebb9@byu.net>
54384
54385         * doc/headers/assert.texi (assert.h): Document assert module use.
54386
54387 2007-04-27  Bruno Haible  <bruno@clisp.org>
54388
54389         * doc/headers/*.texi: New files.
54390         * doc/gnulib.texi (Header File Substitutes): New chapter.
54391         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54392         dependencies.
54393         (standards.info ,standards.html, standards.dvi): Update dependencies.
54394         (mostlyclean, clean): New targets.
54395
54396 2007-04-27  Bruno Haible  <bruno@clisp.org>
54397
54398         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54399         * modules/sysexits (Files, Makefile.am): Update.
54400
54401         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54402         * modules/sys_socket (Files, Makefile.am): Update.
54403
54404         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54405         * modules/sys_stat (Files, Makefile.am): Update.
54406
54407 2007-04-27  Eric Blake  <ebb9@byu.net>
54408
54409         * lib/freading.h: Improve comments.
54410         * lib/fwriting.h: Likewise.
54411         * lib/fflush.c: Likewise.
54412
54413         Fix closein for mingw.
54414         * modules/closein-tests: Add tests for closein.
54415         * tests/test-closein.c: New file.
54416         * tests/test-closein.sh: Likewise.
54417         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54418         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54419
54420 2007-04-27  Bruno Haible  <bruno@clisp.org>
54421
54422         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54423         version is < 6.
54424         * lib/math_.h [__DECC]: Likewise.
54425         * lib/stdio_.h [__DECC]: Likewise.
54426         * lib/stdlib_.h [__DECC]: Likewise.
54427         * lib/string_.h [__DECC]: Likewise.
54428         * lib/time_.h [__DECC]: Likewise.
54429         * lib/wchar_.h [__DECC]: Likewise.
54430         * lib/wctype_.h [__DECC]: Likewise.
54431
54432 2007-04-27  Bruno Haible  <bruno@clisp.org>
54433
54434         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54435
54436 2007-04-27  Bruno Haible  <bruno@clisp.org>
54437
54438         * lib/fflush.c: Add comments.
54439         * modules/fpurge-tests (Depends-on): Add fflush.
54440         * modules/freadable-tests (Depends-on): Likewise.
54441         * modules/fwritable-tests (Depends-on): Likewise.
54442
54443 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54444
54445         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54446         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54447         Report by Bruno Haible <bruno@clisp.org>.
54448
54449 2007-04-26  Eric Blake  <ebb9@byu.net>
54450
54451         Fix fflush on mingw.
54452         * modules/fflush (Depends-on): Add freading.
54453         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54454         but unread data.
54455
54456 2007-04-26  Eric Blake  <ebb9@byu.net>
54457         and Bruno Haible  <bruno@clisp.org>
54458
54459         Implement freading and fwriting.
54460         * lib/freading.c: New file.
54461         * lib/freading.h: Likewise.
54462         * m4/freading.m4: Likewise.
54463         * modules/freading: Likewise.
54464         * modules/freading-tests: Likewise.
54465         * tests/test-freading.c: Likewise.
54466         * lib/fwriting.c: New file.
54467         * lib/fwriting.h: Likewise.
54468         * m4/fwriting.m4: Likewise.
54469         * modules/fwriting: Likewise.
54470         * modules/fwriting-tests: Likewise.
54471         * tests/test-fwriting.c: Likewise.
54472         * MODULES.html.sh (File stream based Input/Output): Mention them.
54473
54474 2007-04-26  Bruno Haible  <bruno@clisp.org>
54475
54476         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54477         'long' when we assume it.
54478         Suggested by Eric Blake.
54479
54480 2007-04-26  Bruno Haible  <bruno@clisp.org>
54481
54482         Ensure fseeko, ftello are declared on glibc systems.
54483         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54484         * modules/fseeko (configure.ac-early): Likewise.
54485         * modules/ftello (configure.ac-early): Likewise.
54486         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54487         AC_FUNC_FSEEKO for this.
54488         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54489         (gl_CHECK_FSEEKO): Remove macro.
54490
54491 2007-04-26  Bruno Haible  <bruno@clisp.org>
54492
54493         * tests/test-fflush.c (main): Also check the ftell result after
54494         fflush and fseek/fseeko.
54495         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54496         file descriptor position cache in the stream.
54497         * lib/fseeko.c (rpl_fseeko): Likewise.
54498
54499 2007-04-26  Bruno Haible  <bruno@clisp.org>
54500
54501         * modules/fflush-tests (Depends-on): Add fseeko.
54502
54503 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54504             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54505
54506         * lib/argz_.h: ensure error_t definition is obtained in same
54507         mechanism system argz.h would have.
54508         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54509         argz facilities are known bad.  Err on the side of caution if
54510         cross-compiling.
54511
54512 2007-04-25  Eric Blake  <ebb9@byu.net>
54513
54514         * lib/fpurge.c (includes): Use stdlib.h for free.
54515         * tests/test-fflush.c (main): Also test fflush-fseeko.
54516
54517 2007-04-25  Bruno Haible  <bruno@clisp.org>
54518
54519         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54520         * lib/fseeko.c: New file.
54521         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54522         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54523         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54524         gl_FUNC_FSEEKO.
54525         (gl_FUNC_FSEEKO): Invoke it.
54526         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54527         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54528         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54529
54530 2007-04-25  Bruno Haible  <bruno@clisp.org>
54531
54532         * modules/fflush (Depends-on): Add ftello.
54533
54534 2007-04-25  Bruno Haible  <bruno@clisp.org>
54535
54536         * modules/ftello-tests: New file.
54537         * tests/test-ftello.c: New file.
54538
54539         * modules/ftello: New file.
54540         * m4/ftello.m4: New file.
54541         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54542         HAVE_FTELLO.
54543         * lib/stdio_.h (ftello): New declaration.
54544         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54545         HAVE_FTELLO.
54546
54547 2007-04-25  Bruno Haible  <bruno@clisp.org>
54548
54549         * modules/fseeko-tests: New file.
54550         * tests/test-fseeko.c: New file.
54551
54552         * modules/fseeko: New file.
54553         * m4/fseeko.m4: New file.
54554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54555         HAVE_FSEEKO.
54556         * lib/stdio_.h (fseeko): New declaration.
54557         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54558         HAVE_FSEEKO.
54559
54560 2007-04-25  Bruno Haible  <bruno@clisp.org>
54561
54562         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54563
54564 2007-04-25  Bruno Haible  <bruno@clisp.org>
54565
54566         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54567         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54568         * tests/test-unistd.c: Likewise.
54569         * tests/test-fcntl.c: Likewise.
54570
54571 2007-04-23  Eric Blake  <ebb9@byu.net>
54572
54573         * lib/fflush.c: Fix missing include.
54574         Reported by Bruno Haible.
54575
54576 2007-04-23  Bruno Haible  <bruno@clisp.org>
54577
54578         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54579         Reported by Eric Blake.
54580
54581 2007-04-23  Bruno Haible  <bruno@clisp.org>
54582
54583         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54584
54585 2007-04-23  Bruno Haible  <bruno@clisp.org>
54586
54587         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54588
54589 2007-04-23  Bruno Haible  <bruno@clisp.org>
54590
54591         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54592         Needed on HP-UX 11.
54593
54594 2007-04-16  Eric Blake  <ebb9@byu.net>
54595
54596         Make fflush rely on fpurge.
54597         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54598         open coding all variants.
54599         * modules/fflush (Depends-on): Add fpurge and unistd.
54600         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54601         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54602
54603         Fix --with-tests compilation on cygwin.
54604         * modules/argmatch-tests (Makefile.am): List gnulib library first
54605         in LDADD.
54606         * modules/argp-tests (Makefile.am): Likewise.
54607         * modules/array-list-tests (Makefile.am): Likewise.
54608         * modules/array-oset-tests (Makefile.am): Likewise.
54609         * modules/avltree-list-tests (Makefile.am): Likewise.
54610         * modules/avltree-oset-tests (Makefile.am): Likewise.
54611         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54612         * modules/carray-list-tests (Makefile.am): Likewise.
54613         * modules/dirname-tests (Makefile.am): Likewise.
54614         * modules/frexp-tests (Makefile.am): Likewise.
54615         * modules/isnanl-tests (Makefile.am): Likewise.
54616         * modules/linked-list-tests (Makefile.am): Likewise.
54617         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54618         * modules/lock-tests (Makefile.am): Likewise.
54619         * modules/rbtree-list-tests (Makefile.am): Likewise.
54620         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54621         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54622         * modules/tls-tests (Makefile.am): Likewise.
54623         * modules/tsearch-tests (Makefile.am): Likewise.
54624         * modules/xvasprintf-tests (Makefile.am): Likewise.
54625
54626         Fix fpurge for cygwin.
54627         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54628         value.
54629         * modules/fpurge-tests (Depends-on): Clean up trash.
54630
54631 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54632
54633         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54634
54635         * m4/autobuild.m4: Re-indent.
54636
54637 2007-04-13  Bruno Haible  <bruno@clisp.org>
54638
54639         * modules/fpurge-tests: New file.
54640         * tests/test-fpurge.c: New file.
54641
54642         * modules/fpurge: New file.
54643         * lib/fpurge.h: New file.
54644         * lib/fpurge.c: New file.
54645         * m4/fpurge.m4: New file.
54646
54647 2007-04-13  Bruno Haible  <bruno@clisp.org>
54648
54649         * modules/fbufmode-tests: New file.
54650         * tests/test-fbufmode.c: New file.
54651
54652         * modules/fbufmode: New file.
54653         * lib/fbufmode.h: New file.
54654         * lib/fbufmode.c: New file.
54655         * m4/fbufmode.m4: New file.
54656
54657 2007-04-13  Bruno Haible  <bruno@clisp.org>
54658
54659         * modules/fwritable-tests: New file.
54660         * tests/test-fwritable.c: New file.
54661
54662         * modules/fwritable: New file.
54663         * lib/fwritable.h: New file.
54664         * lib/fwritable.c: New file.
54665         * m4/fwritable.m4: New file.
54666
54667 2007-04-13  Bruno Haible  <bruno@clisp.org>
54668
54669         * modules/freadable-tests: New file.
54670         * tests/test-freadable.c: New file.
54671
54672         * modules/freadable: New file.
54673         * lib/freadable.h: New file.
54674         * lib/freadable.c: New file.
54675         * m4/freadable.m4: New file.
54676
54677 2007-04-13  Bruno Haible  <bruno@clisp.org>
54678
54679         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54680         MOSTLYCLEANFILES.
54681
54682 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54683
54684         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54685         gzip bootstrap.conf to avoid dragging in i18n machinery.
54686         (gnulib_tool_option): Use it.
54687
54688 2007-04-13  Bruno Haible  <bruno@clisp.org>
54689
54690         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54691         %F directives.
54692         * tests/test-vasprintf-posix.c (test_function): Likewise.
54693         * tests/test-snprintf-posix.h (test_function): Likewise.
54694         * tests/test-sprintf-posix.h (test_function): Likewise.
54695         * tests/test-fprintf-posix.h (test_function): Likewise.
54696         * tests/test-printf-posix.h (test_function): Likewise.
54697         * tests/test-fprintf-posix.out: Likewise.
54698
54699 2007-04-13  Bruno Haible  <bruno@clisp.org>
54700
54701         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54702         * modules/tls-tests (configure.ac): Likewise.
54703         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54704
54705 2007-04-13  Bruno Haible  <bruno@clisp.org>
54706
54707         * lib/tls.c (glthread_tls_get): Fix return type.
54708         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54709
54710 2007-04-12  Eric Blake  <ebb9@byu.net>
54711
54712         * modules/gettime (Depends-on): Remove gettime.
54713         Reported by Dmitry V. Levin.
54714
54715 2007-04-12  Bruno Haible  <bruno@clisp.org>
54716
54717         * modules/fflush (Include): Mention <stdio.h>.
54718         * modules/strtoimax (Include): Mention <inttypes.h>.
54719         * modules/strtoumax (Include): Likewise.
54720
54721 2007-04-12  Eric Blake  <ebb9@byu.net>
54722
54723         * .cvsignore: New file.
54724         * .gitignore: Likewise.
54725
54726 2007-04-12  Bruno Haible  <bruno@clisp.org>
54727
54728         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54729         not before, since $(LDADD) often contains libgnu.a.
54730         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54731         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54732         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54733         Needed on Cygwin.
54734
54735 2007-04-12  Eric Blake  <ebb9@byu.net>
54736
54737         Work around glibc's failure to flush stdin on fclose.
54738         * lib/closein.c (close_stdin): Flush stdin before closing.
54739
54740         Work around glibc's failure to reset seekable stdin on exit.
54741         * modules/closein: New module.
54742         * lib/closein.c: New file.
54743         * lib/closein.h: Likewise.
54744         * m4/closein.m4: Likewise.
54745         * MODULES.html.sh (File stream based Input/Output): Document it.
54746
54747 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54748
54749         * gnulib-tool: Rename generated 'autobuild' script to
54750         'do-autobuild' in --create-megatestdir output.
54751
54752         * doc/gnulib.texi (Build robot for gnulib): Fix.
54753
54754 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54755
54756         * modules/sysexits (Depends-on): Add absolute-header.
54757
54758 2007-04-12  Eric Blake  <ebb9@byu.net>
54759
54760         No need to preserve errno on success.
54761         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54762         Reported by Bruno Haible.
54763
54764 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54765
54766         * MODULES.html.sh (Support for maintaining and releasing
54767         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54768
54769 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54770
54771         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54772
54773 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54774
54775         * modules/autobuild: New module.
54776
54777         * m4/autobuild.m4: New file.
54778
54779 2007-04-11  Bruno Haible  <bruno@clisp.org>
54780
54781         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54782         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54783         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54784         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54785         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54786         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54787         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54788         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54789         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54790         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54791         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54792         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54793         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54794         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54795         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54796         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54797         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54798         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54799         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54800         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54801         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54802         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54803         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54804         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54805         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54806         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54807         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54808         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54809         Reported by Eric Blake.
54810
54811 2007-04-11  Bruno Haible  <bruno@clisp.org>
54812
54813         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54814
54815 2007-04-10  Bruno Haible  <bruno@clisp.org>
54816
54817         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54818         for NaN and Infinity. Needed on FreeBSD 6.1.
54819         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54820         regarding results for "%010a" of Infinity and NaN.
54821         * tests/test-vasprintf-posix.c (test_function): Likewise.
54822         * tests/test-snprintf-posix.h (test_function): Likewise.
54823         * tests/test-sprintf-posix.h (test_function): Likewise.
54824         * tests/test-fprintf-posix.h (test_function): Likewise.
54825         * tests/test-printf-posix.h (test_function): Likewise.
54826         * tests/test-fprintf-posix.out: Likewise.
54827
54828 2007-04-10  Bruno Haible  <bruno@clisp.org>
54829
54830         * modules/locale-tests: New file.
54831         * tests/test-locale.c: New file.
54832
54833         * modules/locale: New file.
54834         * lib/locale_.h: New file.
54835         * m4/locale_h.m4: New file.
54836
54837 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54838             Bruno Haible  <bruno@clisp.org>
54839
54840         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54841         be determined, test for availability of the copysignf, copysign,
54842         copysignl functions.
54843         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54844         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54845         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54846
54847 2007-04-09  Eric Blake  <ebb9@byu.net>
54848
54849         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54850         * modules/stdio (Makefile.am): Support fflush.
54851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54852         * modules/fflush: New file.
54853         * lib/fflush.c: Likewise.
54854         * m4/fflush.m4: Likewise.
54855         * modules/fflush-tests: New test.
54856         * tests/test-fflush.c: Likewise.
54857         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54858
54859 2007-04-06  Bruno Haible  <bruno@clisp.org>
54860
54861         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54862         (VASNPRINTF): Use signbit for faster determination whether to print a
54863         minus sign.
54864         * modules/vasnprintf (Files): Remove lib/float+.h.
54865         * modules/fprintf-posix (Depends-on): Add signbit.
54866         * modules/snprintf-posix (Depends-on): Likewise.
54867         * modules/sprintf-posix (Depends-on): Likewise.
54868         * modules/vasnprintf-posix (Depends-on): Likewise.
54869         * modules/vasprintf-posix (Depends-on): Likewise.
54870         * modules/vfprintf-posix (Depends-on): Likewise.
54871         * modules/vsnprintf-posix (Depends-on): Likewise.
54872         * modules/vsprintf-posix (Depends-on): Likewise.
54873
54874 2007-04-06  Bruno Haible  <bruno@clisp.org>
54875
54876         * tests/test-frexp.c (main): Test also the sign bit of zero results.
54877         * tests/test-frexpl.c (main): Likewise.
54878         * tests/test-ldexpl.c (main): Likewise.
54879         * modules/frexp-tests (Depends-on): Add signbit.
54880         * modules/frexpl-tests (Depdends-on): Likewise.
54881         * modules/ldexpl-tests (Depdends-on): Likewise.
54882
54883 2007-04-06  Bruno Haible  <bruno@clisp.org>
54884
54885         * modules/signbit-tests: New file.
54886         * tests/test-signbit.c: New file.
54887
54888         * modules/signbit: New file.
54889         * lib/signbitf.c: New file.
54890         * lib/signbitd.c: New file.
54891         * lib/signbitl.c: New file.
54892         * m4/signbit.m4: New file.
54893         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
54894         (signbit): New macro.
54895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
54896         REPLACE_SIGNBIT.
54897         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
54898         REPLACE_FREXPL into math.h.
54899
54900 2007-04-06  Bruno Haible  <bruno@clisp.org>
54901
54902         * modules/isnanf-nolibm-tests: New file.
54903         * tests/test-isnanf.c: New file.
54904
54905         * modules/isnanf-nolibm: New file.
54906         * lib/isnanf.h: New file.
54907         * lib/isnanf.c: New file.
54908         * lib/isnan.c: Consider the USE_FLOAT macro.
54909         * m4/isnanf.m4: New file.
54910
54911 2007-04-06  Bruno Haible  <bruno@clisp.org>
54912
54913         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
54914         (Link): New section.
54915
54916         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
54917
54918 2007-04-06  Bruno Haible  <bruno@clisp.org>
54919
54920         Assume the 'long double' type.
54921         * m4/longdouble.m4: Remove file.
54922         * config/srclist.txt: Don't mention longdouble.m4.
54923         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
54924         * lib/float+.h: Likewise.
54925         * lib/frexp.c: Likewise.
54926         * lib/printf-args.h: Likewise.
54927         * lib/printf-args.c: Likewise.
54928         * lib/printf-frexp.c: Likewise.
54929         * lib/printf-parse.c: Likewise.
54930         * lib/vasnprintf.c: Likewise.
54931         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
54932         * m4/intl.m4: Likewise.
54933         * m4/isnanl.m4: Likewise.
54934         * m4/printf.m4: Likewise.
54935         * m4/printf-frexpl.m4: Likewise.
54936         * m4/vasnprintf.m4: Likewise.
54937         * modules/allocsa (Files): Remove m4/longdouble.m4.
54938         * modules/gettext (Files): Likewise.
54939         * modules/relocatable-prog-wrapper (Files): Likewise.
54940         * modules/vasnprintf (Files): Likewise.
54941         * modules/isnanl (Files): Likewise.
54942         (Include): Simplify.
54943         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
54944         (Include): Simplify.
54945         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
54946         (Include): Simplify.
54947         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
54948         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54949         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
54950         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54951         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54952         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54953         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
54954         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54955         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54956         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54957         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
54958         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54959         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
54960         * tests/test-isnanl.c: Likewise.
54961         * tests/test-snprintf-posix.h: Likewise.
54962         * tests/test-sprintf-posix.h: Likewise.
54963         * tests/test-vasnprintf-posix.c: Likewise.
54964         * tests/test-vasnprintf-posix2.c: Likewise.
54965         * tests/test-vasprintf-posix.c: Likewise.
54966
54967 2007-04-06  Bruno Haible  <bruno@clisp.org>
54968
54969         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
54970         * lib/math_.h [__DECC]: Include the overridden include file through
54971         #include_next, outside the double-inclusion guard.
54972         * lib/stdio_.h [__DECC]: Likewise.
54973         * lib/stdlib_.h [__DECC]: Likewise.
54974         * lib/string_.h [__DECC]: Likewise.
54975         * lib/time_.h [__DECC]: Likewise.
54976         * lib/wchar_.h [__DECC]: Likewise.
54977         * lib/wctype_.h [__DECC]: Likewise.
54978         * lib/inttypes_.h [__DECC]: Likewise.
54979         Reported by Albert Chin <china@thewrittenword.com> in
54980         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
54981
54982 2007-04-04  Eric Blake  <ebb9@byu.net>
54983
54984         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
54985         1.5.x.
54986
54987 2007-04-04  Bruno Haible  <bruno@clisp.org>
54988
54989         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
54990         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
54991
54992 2007-04-04  Bruno Haible  <bruno@clisp.org>
54993
54994         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
54995         results for "%010a" of Infinity and NaN.
54996         * tests/test-vasprintf-posix.c (test_function): Likewise.
54997         * tests/test-snprintf-posix.h (test_function): Likewise.
54998         * tests/test-sprintf-posix.h (test_function): Likewise.
54999         * tests/test-fprintf-posix.h (test_function): Remove these tests.
55000         * tests/test-printf-posix.h (test_function): Likewise.
55001         * tests/test-fprintf-posix.out: Update.
55002         Needed for FreeBSD 6.1.
55003
55004 2007-04-04  Bruno Haible  <bruno@clisp.org>
55005
55006         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
55007         directly used by the gnulib modules nor by gnulib-tool.
55008
55009 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
55010
55011         * DEPENDENCIES: Give overall description of version dependency
55012         desirability.  Use more-typical names for apps.
55013         Add shell, coreutils, diffutils, grep, tar, gzip.
55014
55015 2007-04-04  Simon Josefsson  <simon@josefsson.org>
55016
55017         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
55018
55019 2007-04-04  Karl Berry  <karl@gnu.org>
55020
55021         * MODULES.html.sh (func_module): missing '.
55022
55023 2007-04-03  Bruno Haible  <bruno@clisp.org>
55024
55025         * modules/argmatch-tests (Makefile.am): New variable
55026         test_argmatch_LDADD.
55027         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
55028         * modules/array-list-tests (Makefile.am): New variable
55029         test_array_list_LDADD.
55030         * modules/array-oset-tests (Makefile.am): New variable
55031         test_array_oset_LDADD.
55032         * modules/avltree-list-tests (Makefile.am): New variable
55033         test_avltree_list_LDADD.
55034         * modules/avltree-oset-tests (Makefile.am): New variable
55035         test_avltree_oset_LDADD.
55036         * modules/avltreehash-list-tests (Makefile.am): New variable
55037         test_avltreehash_list_LDADD.
55038         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
55039         test_canonicalize_lgpl_LDADD.
55040         * modules/carray-list-tests (Makefile.am): New variable
55041         test_carray_list_LDADD.
55042         * modules/dirname-tests (Makefile.am): New variable
55043         test_dirname_LDADD.
55044         * modules/linked-list-tests (Makefile.am): New variable
55045         test_linked_list_LDADD.
55046         * modules/linkedhash-list-tests (Makefile.am): New variable
55047         test_linkedhash_list_LDADD.
55048         * modules/rbtree-list-tests (Makefile.am): New variable
55049         test_rbtree_list_LDADD.
55050         * modules/rbtree-oset-tests (Makefile.am): New variable
55051         test_rbtree_oset_LDADD.
55052         * modules/rbtreehash-list-tests (Makefile.am): New variable
55053         test_rbtreehash_list_LDADD.
55054         * modules/xvasprintf-tests (Makefile.am): New variable
55055         test_xvasprintf_LDADD.
55056         Reported by Eric Blake.
55057
55058 2007-04-03  Eric Blake  <ebb9@byu.net>
55059
55060         * DEPENDENCIES: Weaken m4 requirements.
55061
55062 2007-04-03  Bruno Haible  <bruno@clisp.org>
55063
55064         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
55065         * modules/isnanl-tests (configure.ac): Likewise.
55066
55067 2007-04-03  Ben Pfaff  <blp@gnu.org>
55068
55069         * modules/iconv_open: Add $(srcdir)/ to source directory
55070         references in Makefile fragments that call gperf, to fix VPATH
55071         builds.
55072
55073 2007-04-03  Bruno Haible  <bruno@clisp.org>
55074
55075         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
55076         * lib/ldexpl.c: Undo last change.
55077
55078 2007-04-03  Bruno Haible  <bruno@clisp.org>
55079
55080         * modules/printf-frexpl (Depends-on): Undo last change.
55081         (Files): Add m4/ldexpl.m4.
55082
55083 2007-04-03  Bruno Haible  <bruno@clisp.org>
55084
55085         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
55086         * modules/isnanl (Link): New section.
55087
55088         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
55089         * modules/frexp (Link): New section.
55090
55091         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
55092         * modules/frexpl (Link): New section.
55093
55094         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
55095         * modules/ldexpl (Link): New section.
55096
55097 2007-04-03  Bruno Haible  <bruno@clisp.org>
55098
55099         * modules/TEMPLATE-EXTENDED: New file.
55100         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
55101
55102 2007-04-03  Bruno Haible  <bruno@clisp.org>
55103
55104         * DEPENDENCIES: New file.
55105         Suggested by Simon Josefsson.
55106
55107 2007-04-03  Bruno Haible  <bruno@clisp.org>
55108
55109         * doc/gnulib.texi: Escape @.
55110
55111 2007-04-03  James Youngman  <jay@gnu.org>
55112         and Paul Eggert  <eggert@cs.ucla.edu>
55113
55114         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55115         birthtime on all systems that have birthtime, not just those which
55116         use st_birthtimensec rather than st_birthtim.  Putting zero in
55117         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55118         that the birth time is not available for files on an NFS mount.
55119
55120 2007-04-03  Simon Josefsson  <simon@josefsson.org>
55121
55122         * modules/memxor: Move back from crypto/, suggested by Bruno.
55123         * modules/crypto/hmac-sha1: Fix memxor dependency.
55124
55125         * modules/crypto/gc: Moved from ../.
55126
55127 2007-04-02  Eric Blake  <ebb9@byu.net>
55128
55129         * lib/ldexpl.c (includes): Avoid libm.
55130
55131         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
55132
55133 2007-04-02  Bruno Haible  <bruno@clisp.org>
55134
55135         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
55136         on IRIX.
55137
55138 2007-04-02  Bruno Haible  <bruno@clisp.org>
55139
55140         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
55141         x86 or x86_64 platforms running MacOS X.
55142         Reported by Ryan Schmidt <@ryandesign.com>.
55143
55144 2007-04-02  Bruno Haible  <bruno@clisp.org>
55145
55146         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
55147         i386.
55148
55149 2007-04-01  Simon Josefsson  <simon@josefsson.org>
55150
55151         * modules/crypto/arcfour: Moved from ../.
55152         * modules/crypto/arcfour-tests: Moved from ../.
55153         * modules/crypto/arctwo: Moved from ../.
55154         * modules/crypto/arctwo-tests: Moved from ../.
55155         * modules/crypto/des: Moved from ../.
55156         * modules/crypto/des-tests: Moved from ../.
55157         * modules/crypto/gc-arcfour: Moved from ../.
55158         * modules/crypto/gc-arcfour-tests: Moved from ../.
55159         * modules/crypto/gc-arctwo: Moved from ../.
55160         * modules/crypto/gc-arctwo-tests: Moved from ../.
55161         * modules/crypto/gc-des: Moved from ../.
55162         * modules/crypto/gc-des-tests: Moved from ../.
55163         * modules/crypto/gc-hmac-md5: Moved from ../.
55164         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
55165         * modules/crypto/gc-hmac-sha1: Moved from ../.
55166         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
55167         * modules/crypto/gc-md2: Moved from ../.
55168         * modules/crypto/gc-md2-tests: Moved from ../.
55169         * modules/crypto/gc-md4: Moved from ../.
55170         * modules/crypto/gc-md4-tests: Moved from ../.
55171         * modules/crypto/gc-md5: Moved from ../.
55172         * modules/crypto/gc-md5-tests: Moved from ../.
55173         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
55174         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
55175         * modules/crypto/gc-random: Moved from ../.
55176         * modules/crypto/gc-rijndael: Moved from ../.
55177         * modules/crypto/gc-rijndael-tests: Moved from ../.
55178         * modules/crypto/gc-sha1: Moved from ../.
55179         * modules/crypto/gc-sha1-tests: Moved from ../.
55180         * modules/crypto/gc-tests: Moved from ../.
55181         * modules/crypto/hmac-md5: Moved from ../.
55182         * modules/crypto/hmac-md5-tests: Moved from ../.
55183         * modules/crypto/hmac-sha1: Moved from ../.
55184         * modules/crypto/hmac-sha1-tests: Moved from ../.
55185         * modules/crypto/md2: Moved from ../.
55186         * modules/crypto/md2-tests: Moved from ../.
55187         * modules/crypto/md4: Moved from ../.
55188         * modules/crypto/md4-tests: Moved from ../.
55189         * modules/crypto/md5: Moved from ../.
55190         * modules/crypto/md5-tests: Moved from ../.
55191         * modules/crypto/memxor: Moved from ../.
55192         * modules/crypto/rijndael: Moved from ../.
55193         * modules/crypto/rijndael-tests: Moved from ../.
55194         * modules/crypto/sha1: Moved from ../.
55195
55196 2007-03-30  James Youngman  <jay@gnu.org>
55197
55198         * tests/test-stat-time.c (prepare_test): use chmod() rather than
55199         rename() to change the ctime of a file (because ctime is unaffected
55200         by rename on jfs2 on AIX 5.1).
55201         (main): Start by doing cleanup, in case a previous run failed leaving
55202         test files behind.
55203
55204 2007-03-31  Bruno Haible  <bruno@clisp.org>
55205
55206         Support old proprietary implementations of iconv.
55207         * modules/iconv_open: New file.
55208         * lib/iconv_.h: New file.
55209         * m4/iconv_h.m4: New file.
55210         * lib/iconv_open.c: New file.
55211         * lib/iconv_open-aix.gperf: New file.
55212         * lib/iconv_open-hpux.gperf: New file.
55213         * lib/iconv_open-irix.gperf: New file.
55214         * lib/iconv_open-osf.gperf: New file.
55215         * m4/iconv_open.m4: New file.
55216         * modules/linebreak (Depends-on): Add iconv_open.
55217         * modules/striconv (Depends-on): Likewise.
55218         * modules/striconveh (Depends-on): Likewise.
55219         * modules/unicodeio (Depends-on): Likewise.
55220         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
55221         (iconv_t)(-1).
55222         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
55223         conversion if cd is (iconv_t)(-1).
55224         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
55225         is not possible.
55226
55227 2007-03-31  Bruno Haible  <bruno@clisp.org>
55228
55229         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55230         work on Solaris either. Protect also second use of "autodetect_jp".
55231
55232 2007-03-31  Bruno Haible  <bruno@clisp.org>
55233
55234         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
55235         the function is not present.
55236
55237 2007-03-31  Bruno Haible  <bruno@clisp.org>
55238
55239         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
55240         the function is not present.
55241
55242 2007-03-31  Bruno Haible  <bruno@clisp.org>
55243
55244         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
55245         a bug in HP-UX iconv_open().
55246
55247 2007-03-31  Bruno Haible  <bruno@clisp.org>
55248
55249         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
55250         (Mathematics <math.h>): New section, add fpieee.
55251         (Input/output <stdio.h>): Add fseterr.
55252         (Mathematics <math.h>): New section, add printf-frexp.
55253         (Container data structures): Add sublist.
55254         (Core language properties): Add fpucw, inline.
55255         (Functions for greatest-width integer types <inttypes.h>): Add
55256         imaxabs, imaxdiv, inttypes.
55257         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
55258         isnanl-nolibm, ldexp.
55259         (Mathematics <math.h>): New section, add printf-frexpl.
55260         (Support for systems lacking POSIX:2001): Add fprintf-posix,
55261         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
55262         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
55263         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
55264         (Unicode string functions): Add unistr/u*-mbtoucr.
55265         (Java): Add javacomp-script, javaexec-script.
55266         (C#): Add csharpcomp-script, csharpexec-script.
55267         (Support for building libraries and executables): Add havelib,
55268         relocatable-*.
55269         (Support for maintaining and releasing projects): Renamed from
55270         'Support for maintaining and release projects'. Add announce-gen.
55271
55272 2007-03-31  Bruno Haible  <bruno@clisp.org>
55273
55274         * README: Talk primarily about git.
55275         (git and CVS): Renamed from CVS.
55276         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
55277         gnulib is available through git.
55278         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
55279
55280 2007-03-30  Bruno Haible  <bruno@clisp.org>
55281
55282         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
55283         * lib/poll_.h: Likewise.
55284         * lib/stat_.h: Likewise.
55285         * lib/sys_time_.h: Likewise.
55286         * lib/sysexit_.h: Likewise.
55287         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
55288         * lib/stdbool_.h: Likewise.
55289         * lib/byteswap_.h: Add double-inclusion guard.
55290
55291 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
55292
55293         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
55294
55295 2007-03-30  Karl Berry  <karl@gnu.org>
55296
55297         * config/srclist-update: double space after USA in the license
55298         substitution, since that's how it's usually (?) written.
55299
55300 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55301
55302         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55303         reported by Bruno Haible.
55304
55305 2007-03-29  Bruno Haible  <bruno@clisp.org>
55306
55307         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55308         a bug in AIX iconv().
55309
55310 2007-03-29  Bruno Haible  <bruno@clisp.org>
55311
55312         * modules/ldexpl-tests: New file.
55313         * tests/test-ldexpl.c: New file.
55314
55315 2007-03-29  Bruno Haible  <bruno@clisp.org>
55316
55317         * lib/ldexpl.c: Include fpucw.h.
55318         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55319         multiplication.
55320         * modules/ldexpl (Depends-on): Add fpucw.
55321
55322 2007-03-29  Bruno Haible  <bruno@clisp.org>
55323
55324         * modules/ldexpl: New file.
55325         * m4/ldexpl.m4: New file.
55326         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55327         set.
55328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55329         REPLACE_LDEXPL.
55330         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55331         REPLACE_LDEXPL.
55332         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55333         gl_FUNC_LDEXPL_WORKS.
55334         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55335         * modules/mathl (Files): Remove lib/ldexpl.c.
55336         (Depends-on): Add ldexpl.
55337
55338 2007-03-29  Bruno Haible  <bruno@clisp.org>
55339
55340         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55341
55342 2007-03-29  Bruno Haible  <bruno@clisp.org>
55343
55344         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55345         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55346         and possibly also HP-UX.
55347         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55348         work on AIX, IRIX, HP-UX, OSF/1.
55349         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55350         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55351         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55352         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55353         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55354         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55355
55356 2007-03-29  Bruno Haible  <bruno@clisp.org>
55357
55358         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55359
55360 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55361
55362         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55363         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55364
55365 2007-03-29  Eric Blake  <ebb9@byu.net>
55366
55367         * lib/acl-internal.h: Remove redundant include.
55368         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55369         Cygwin when a file is locked.
55370
55371 2007-03-29  Bruno Haible  <bruno@clisp.org>
55372
55373         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55374         file.
55375         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55376
55377 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55378
55379         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55380         try to remove a parent directory if the child couldn't be removed
55381         (except for the first rmdir, which could fail because the child
55382         doesn't exist).  Problem reported by Jeff Blaine in
55383         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55384
55385 2007-03-28  Bruno Haible  <bruno@clisp.org>
55386
55387         * lib/striconveh.c (utf8conv_carefully): New function.
55388         (mem_cd_iconveh_internal): Invoke it.
55389
55390 2007-03-28  Bruno Haible  <bruno@clisp.org>
55391
55392         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55393         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55394         input.
55395         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55396         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55397         unistr/u8-uctomb.
55398
55399 2007-03-28  Bruno Haible  <bruno@clisp.org>
55400
55401         * modules/unistr/u8-mbtoucr: New file.
55402         * lib/unistr/u8-mbtoucr.c: New file.
55403         * modules/unistr/u16-mbtoucr: New file.
55404         * lib/unistr/u16-mbtoucr.c: New file.
55405         * modules/unistr/u16-mbtoucr: New file.
55406         * lib/unistr/u16-mbtoucr.c: New file.
55407         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55408
55409 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55410             Bruno Haible  <bruno@clisp.org>
55411
55412         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55413         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55414         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55415
55416         * m4/stdio_h.m4: Add stubs for vasprintf too.
55417
55418         * modules/stdio: Support vasprintf in sed command.
55419
55420         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55421         vasprintf.h.  Add stdio module indicator.
55422
55423         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55424         vasprintf.h.
55425
55426         * lib/vasprintf.h: File removed.
55427
55428         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55429         * lib/vasprintf.c: Ditto.
55430         * lib/xvasprintf.c: Ditto.
55431         * tests/test-vasprintf-posix.c: Ditto.
55432         * tests/test-vasprintf.c: Ditto.
55433
55434 2007-03-27  Bruno Haible  <bruno@clisp.org>
55435
55436         Make vasnprintf multithread-safe.
55437         * lib/vasnprintf.c (decimal_point_char): New function.
55438         (VASNPRINTF): Use it.
55439         Suggested by Simon Josefsson.
55440
55441 2007-03-27  Eric Blake  <ebb9@byu.net>
55442
55443         Support sub-second birthtime on cygwin.
55444         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55445         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55446         (get_stat_birthtime): Also work with st_birthtim.
55447
55448 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55449
55450         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55451         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55452         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55453         (get_stat_birthtime_ns): Simplify compile-time tests.
55454         (get_stat_birthtime): Change the API to look like
55455         get_stat_mtime etc., except return a negative tv_nsec on error.
55456         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55457         Don't check for "spare" fields.
55458         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55459         or for struct stat.st_birthtime, as these tests aren't used.
55460         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55461
55462 2007-03-27  Bruno Haible  <bruno@clisp.org>
55463
55464         * lib/stat-time.h: Include <sys/stat.h>.
55465
55466 2007-03-27  James Youngman  <jay@gnu.org>
55467
55468         * lib/stat-time.h (get_stat_birthtime): New function for
55469           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55470         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55471           and its variants.
55472         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55473         * modules/stat-time-test: New file.
55474         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55475
55476 2007-03-26  Bruno Haible  <bruno@clisp.org>
55477
55478         Better support of signalling NaNs.
55479         * lib/atanl.c: Include isnanl.h.
55480         (atanl): Perform test for NaN at the beginning of the function and
55481         through a call to isnanl.
55482         * lib/cosl.c: Include isnanl.h.
55483         (cosl): Perform test for NaN at the beginning of the function and
55484         through a call to isnanl.
55485         * lib/ldexpl.c: Include isnanl.h.
55486         (ldexpl): Perform test for NaN through a call to isnanl.
55487         * lib/logl.c: Include isnanl.h.
55488         (logl): Perform test for NaN at the beginning of the function and
55489         through a call to isnanl.
55490         * lib/sinl.c: Include isnanl.h.
55491         (sinl): Perform test for NaN at the beginning of the function and
55492         through a call to isnanl.
55493         * lib/sqrtl.c: Include isnanl.h.
55494         (sqrtl): Perform test for NaN at the beginning of the function and
55495         through a call to isnanl.
55496         * lib/tanl.c: Include isnanl.h.
55497         (tanl): Perform test for NaN at the beginning of the function and
55498         through a call to isnanl.
55499         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55500         * modules/mathl (Depends-on): Add isnanl.
55501
55502 2007-03-26  Eric Blake  <ebb9@byu.net>
55503
55504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55505         regression in logic sense of previous patch.
55506
55507 2007-03-26  Bruno Haible  <bruno@clisp.org>
55508
55509         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55510         unportable shell command "if ! ...".
55511         Reported by Ralf Wildenhues.
55512
55513 2007-03-25  Bruno Haible  <bruno@clisp.org>
55514
55515         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55516         <sysexits.h> file, and only add EX_CONFIG.
55517         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55518         absolute file name and whether it is sufficient. Substitute also
55519         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55520         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55521         ABSOLUTE_SYSEXITS_H into sysexits.h.
55522
55523 2007-03-25  Bruno Haible  <bruno@clisp.org>
55524
55525         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55526         hints is NULL.
55527
55528 2007-03-25  Bruno Haible  <bruno@clisp.org>
55529
55530         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55531         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55532
55533 2007-03-25  Bruno Haible  <bruno@clisp.org>
55534
55535         * lib/vasnprintf.c: Include langinfo.h.
55536         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55537         multithread-safe.
55538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55539         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55540         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55541         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55542         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55543         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55544         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55545         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55546         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55547         Reported by Simon Josefsson.
55548
55549 2007-03-25  Bruno Haible  <bruno@clisp.org>
55550
55551         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55552         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55553         * modules/vasnprintf (Depends-on): Add stdint.
55554
55555 2007-03-25  Bruno Haible  <bruno@clisp.org>
55556
55557         * modules/fpieee: New file.
55558         * m4/fpieee.m4: New file.
55559         * modules/isnan-nolibm (Depends-on): Add fpieee.
55560         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55561         * modules/isnanl (Depends-on): Add fpieee.
55562
55563 2007-03-25  Bruno Haible  <bruno@clisp.org>
55564
55565         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55566
55567 2007-03-25  Bruno Haible  <bruno@clisp.org>
55568
55569         Avoid test failures on IRIX 6.5.
55570         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55571         (main): Use it.
55572         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55573         macros.
55574         (main): Use them.
55575
55576 2007-03-25  Bruno Haible  <bruno@clisp.org>
55577
55578         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55579         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55580         exists but doesn't work.
55581         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55582         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55584         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55585         math.h.
55586
55587 2007-03-25  Bruno Haible  <bruno@clisp.org>
55588
55589         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55590         returns inf. Needed on IRIX 6.5.
55591
55592 2007-03-25  Bruno Haible  <bruno@clisp.org>
55593
55594         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55595         (main): Use isnanl instead of x != x idiom.
55596         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55597
55598         * tests/test-frexp.c: Include isnan.h.
55599         (main): Use isnan instead of x != x idiom.
55600         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55601
55602 2007-03-25  Bruno Haible  <bruno@clisp.org>
55603
55604         * tests/test-frexp.c (NaN): New function/macro.
55605         (main): Use it instead of 0.0 / 0.0.
55606         * tests/test-isnan.c (NaN): New function/macro.
55607         (main): Use it instead of 0.0 / 0.0.
55608         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55609         (test_function): Use it instead of 0.0 / 0.0.
55610         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55611         (test_function): Use it instead of 0.0 / 0.0.
55612         * tests/test-snprintf-posix.h (NaN): New function/macro.
55613         (test_function): Use it instead of 0.0 / 0.0.
55614         * tests/test-sprintf-posix.h (NaN): New function/macro.
55615         (test_function): Use it instead of 0.0 / 0.0.
55616         * tests/test-fprintf-posix.h (NaN): New function/macro.
55617         (test_function): Use it instead of 0.0 / 0.0.
55618         * tests/test-printf-posix.h (NaN): New function/macro.
55619         (test_function): Use it instead of 0.0 / 0.0.
55620
55621         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55622
55623 2007-03-25  Bruno Haible  <bruno@clisp.org>
55624
55625         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55626
55627 2007-03-25  Bruno Haible  <bruno@clisp.org>
55628
55629         * lib/regexec.c (merge_state_with_log): Make static.
55630
55631 2007-03-25  Bruno Haible  <bruno@clisp.org>
55632
55633         * lib/trigl.c (kernel_rem_pio2): Make static.
55634
55635 2007-03-25  Bruno Haible  <bruno@clisp.org>
55636
55637         * lib/sincosl.c (sincosl_table): Make static.
55638
55639 2007-03-25  Bruno Haible  <bruno@clisp.org>
55640
55641         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55642         if the compiler does not support C99.
55643
55644 2007-03-25  Bruno Haible  <bruno@clisp.org>
55645
55646         * modules/time (Makefile.am): Ensure all rule action lines start with a
55647         tab.
55648
55649 2007-03-24  Bruno Haible  <bruno@clisp.org>
55650
55651         * modules/tsearch-tests: New file.
55652         * tests/test-tsearch.sh: New file.
55653         * tests/test-tsearch.c: New file, mostly copied from glibc.
55654
55655         * modules/search-tests: New file.
55656         * tests/test-search.c: New file.
55657
55658         * modules/search: New file.
55659         * lib/search_.h: New file, incorporating lib/tsearch.h.
55660         * m4/search_h.m4: New file.
55661         * lib/tsearch.h: Remove file.
55662         * lib/tsearch.c: Include search.h instead of tsearch.h.
55663         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55664         HAVE_TSEARCH.
55665         * modules/tsearch (Files): Remove lib/tsearch.h.
55666         (Depends-on): Add search.
55667         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55668         (Include): Change tsearch.h into search.h.
55669
55670 2007-03-24  Bruno Haible  <bruno@clisp.org>
55671
55672         * modules/fpucw: New file.
55673         * lib/fpucw.h: New file.
55674         * lib/frexp.c: Include fpucw.h.
55675         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55676         (FUNC): Use them.
55677         * lib/printf-frexp.c: Include fpucw.h.
55678         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55679         (FUNC): Use them.
55680         * lib/vasnprintf.c: Include fpucw.h.
55681         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55682         'long double' calculations.
55683         * tests/test-frexpl.c: Include fpucw.h.
55684         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55685         * tests/test-printf-frexpl.c: Include fpucw.h.
55686         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55687         * modules/frexpl (Depends-on): Add fpucw.
55688         * modules/printf-frexpl (Depends-on): Likewise.
55689         * modules/fprintf-posix (Depends-on): Likewise.
55690         * modules/snprintf-posix (Depends-on): Likewise.
55691         * modules/sprintf-posix (Depends-on): Likewise.
55692         * modules/vasnprintf-posix (Depends-on): Likewise.
55693         * modules/vasprintf-posix (Depends-on): Likewise.
55694         * modules/vfprintf-posix (Depends-on): Likewise.
55695         * modules/vsnprintf-posix (Depends-on): Likewise.
55696         * modules/vsprintf-posix (Depends-on): Likewise.
55697         * modules/frexpl-tests (Depends-on): Likewise.
55698         * modules/printf-frexpl-tests (Depends-on): Likewise.
55699
55700 2007-03-24  Bruno Haible  <bruno@clisp.org>
55701
55702         * lib/float+.h: New file.
55703         * lib/isnan.c: Include float+.h.
55704         (SIZE): New macro.
55705         (FUNC): Compare only SIZE bytes of the value.
55706         * lib/vasnprintf.c: Include float+.h.
55707         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55708         SIZEOF_LDBL or SIZEOF_DBL bytes.
55709         * modules/isnan-nolibm (Files): Add lib/float+.h.
55710         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55711         * modules/isnanl (Files): Add lib/float+.h.
55712         * modules/vasnprintf (Files): Add lib/float+.h.
55713
55714 2007-03-24  Bruno Haible  <bruno@clisp.org>
55715
55716         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55717         include isnanl-nolibm.h.
55718
55719 2007-03-24  Bruno Haible  <bruno@clisp.org>
55720
55721         * tests/test-read-file.c (main): Don't produce spurious output for
55722         expected situations. Make the test fail if it encountered unexpected
55723         results.
55724
55725 2007-03-24  Bruno Haible  <bruno@clisp.org>
55726
55727         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55728         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55729
55730 2007-03-24  Bruno Haible  <bruno@clisp.org>
55731
55732         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55733
55734 2007-03-24  Bruno Haible  <bruno@clisp.org>
55735
55736         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55737         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55738
55739         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55740         * modules/utf8-ucs4: Turn into a symbolic link to module
55741         unistr/u8-mbtouc.
55742
55743         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55744         utf8-ucs4-unsafe.
55745         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55746         unistr/u8-mbtouc-unsafe.
55747
55748         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55749         * modules/utf16-ucs4: Turn into a symbolic link to module
55750         unistr/u16-mbtouc.
55751
55752         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55753         utf16-ucs4-unsafe.
55754         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55755         unistr/u16-mbtouc-unsafe.
55756
55757         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55758         * modules/ucs4-utf8: Turn into a symbolic link to module
55759         unistr/u8-ubtomb.
55760
55761         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55762         * modules/ucs4-utf16: Turn into a symbolic link to module
55763         unistr/u16-ubtomb.
55764
55765 2007-03-24  Bruno Haible  <bruno@clisp.org>
55766
55767         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55768         Enable the function only if HAVE_INLINE.
55769         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55770         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55771         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55772         Enable the function only if HAVE_INLINE.
55773         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55774         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55775         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55776         Enable the function only if HAVE_INLINE.
55777         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55778         Enable the function only if HAVE_INLINE.
55779         * modules/utf8-ucs4: Update.
55780         * modules/utf8-ucs4-unsafe: Update.
55781         * modules/utf16-ucs4: Update.
55782         * modules/utf16-ucs4-unsafe: Update.
55783         * modules/ucs4-utf8: Update.
55784         * modules/ucs4-utf16: Update.
55785
55786 2007-03-24  Bruno Haible  <bruno@clisp.org>
55787
55788         * lib/utf8-ucs4.h: Remove file.
55789         * lib/utf8-ucs4-unsafe.h: Remove file.
55790         * lib/utf16-ucs4.h: Remove file.
55791         * lib/utf16-ucs4-unsafe.h: Remove file.
55792         * lib/ucs4-utf8.h: Remove file.
55793         * lib/ucs4-utf16.h: Remove file.
55794         * lib/unistr.h: Include their previous contents.
55795         * m4/utf-ucs4.m4: Remove file.
55796         * m4/ucs4-utf.m4: Remove file.
55797         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55798         (Depends-on): Add unistr/base.
55799         (configure.ac): Remove gl_UTF_UCS4.
55800         (Makefile.am): Update.
55801         (Include): Change to unistr.h.
55802         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55803         (Depends-on): Add unistr/base.
55804         (configure.ac): Remove gl_UTF_UCS4.
55805         (Makefile.am): Update.
55806         (Include): Change to unistr.h.
55807         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
55808         (Depends-on): Add unistr/base.
55809         (configure.ac): Remove gl_UTF_UCS4.
55810         (Makefile.am): Update.
55811         (Include): Change to unistr.h.
55812         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55813         (Depends-on): Add unistr/base.
55814         (configure.ac): Remove gl_UTF_UCS4.
55815         (Makefile.am): Update.
55816         (Include): Change to unistr.h.
55817         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
55818         (Depends-on): Add unistr/base.
55819         (configure.ac): Remove gl_UCS4_UTF.
55820         (Makefile.am): Update.
55821         (Include): Change to unistr.h.
55822         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55823         (Depends-on): Add unistr/base.
55824         (configure.ac): Remove gl_UCS4_UTF.
55825         (Makefile.am): Update.
55826         (Include): Change to unistr.h.
55827         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55828         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55829         utf8-ucs4-unsafe.h.
55830         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55831         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55832         utf16-ucs4-unsafe.h.
55833         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55834         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55835         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55836         * lib/unistr/u8-strchr.c: Likewise.
55837         * lib/unistr/u8-strrchr.c: Likewise.
55838         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55839         * lib/unistr/u16-strchr.c: Likewise.
55840         * lib/unistr/u16-strrchr.c: Likewise.
55841         * lib/striconveh.c: Update.
55842         * lib/linebreak.c: Update.
55843
55844 2007-03-24  Bruno Haible  <bruno@clisp.org>
55845
55846         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55847         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55848
55849 2007-03-22  Bruno Haible  <bruno@clisp.org>
55850
55851         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55852
55853 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55854
55855         * MODULES.html.sh (File system functions): New module write-any-file.
55856         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55857         * m4/write-any-file.m4: New files.
55858
55859 2007-03-23  Eric Blake  <ebb9@byu.net>
55860
55861         * gnulib-tool: Rearrange space-tab sequences, since some editors
55862         like to eat them.
55863
55864 2007-03-23  Eric Blake  <ebb9@byu.net>
55865
55866         * lib/version-etc.c (version_etc_va): Update license wording to
55867         be more concise.  Recommended by Richard Stallman.
55868
55869 2007-03-22  Bruno Haible  <bruno@clisp.org>
55870
55871         * lib/poll.c (MSG_PEEK): New fallback definition.
55872
55873 2007-03-22  Bruno Haible  <bruno@clisp.org>
55874
55875         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
55876         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
55877         (main): Update.
55878         Fixes a compilation error on BeOS.
55879
55880 2007-03-22  Bruno Haible  <bruno@clisp.org>
55881
55882         * modules/frexpl-tests: New file.
55883         * tests/test-frexpl.c: New file.
55884
55885         * modules/frexpl: New file.
55886         * m4/frexpl.m4: New file.
55887         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
55888         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
55889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
55890         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
55891         (Depends-on): Add frexpl. Remove isnanl-nolibm.
55892         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
55893
55894 2007-03-22  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/frexpl.c: Share code with lib/frexp.c.
55897         * modules/mathl (Files): Add lib/frexp.c.
55898         (Depends-on): Add isnanl-nolibm.
55899
55900 2007-03-22  Bruno Haible  <bruno@clisp.org>
55901
55902         * modules/printf-frexp (Files): Add m4/frexp.m4.
55903         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
55904         only if the found frexp function actually works.
55905
55906 2007-03-22  Bruno Haible  <bruno@clisp.org>
55907
55908         * lib/frexp.c: Remove older implementation that uses divisions.
55909
55910 2007-03-21  Bruno Haible  <bruno@clisp.org>
55911
55912         * modules/frexp-tests: New file.
55913         * tests/test-frexp.c: New file.
55914
55915         * modules/frexp: New file.
55916         * lib/frexp.c: New file.
55917         * m4/frexp.m4: New file.
55918         * lib/math_.h (frexp): New declaration.
55919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
55920         REPLACE_FREXP.
55921         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
55922
55923 2007-03-21  Bruno Haible  <bruno@clisp.org>
55924
55925         * modules/isnanl-tests: New file.
55926         * tests/test-isnanl.c: New file.
55927
55928         * modules/isnanl: New file.
55929         * lib/isnanl.h: New file.
55930         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
55931         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
55932         gl_FUNC_ISNANL_WORKS.
55933         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
55934         New macros.
55935
55936 2007-03-21  Bruno Haible  <bruno@clisp.org>
55937
55938         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
55939         lib/isnanl.h.
55940         (Include): Update.
55941         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
55942         * lib/vasnprintf.c: Update.
55943         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
55944         tests/test-isnanl.h, remove tests/test-isnanl.c.
55945         (Makefile.am): Update.
55946         * tests/test-isnanl-nolibm.c: New file.
55947         * tests/test-isnanl.h: New file.
55948         * tests/test-isnanl.c: Remove file.
55949
55950 2007-03-21  Jim Meyering  <jim@meyering.net>
55951
55952         When trying to open ".", treat ESTALE like EACCES.
55953         * lib/savewd.c (savewd_save): Resort to forking not just upon
55954         failure with EACCES, but also when errno is ESTALE.
55955
55956 2007-03-20  Bruno Haible  <bruno@clisp.org>
55957
55958         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
55959         Needed on AIX 5.1. Reported by Matthew Woehlke.
55960
55961 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55962
55963         Suggestions by Bruno Haible:
55964         * lib/acl-internal.h: Include "gettext.h" rather than rolling
55965         our own.
55966         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
55967         * modules/acl (Depends-on): Add gettext.
55968
55969 2007-03-19  Bruno Haible  <bruno@clisp.org>
55970
55971         * modules/iconvme: Remove file.
55972         * lib/iconvme.h: Remove file.
55973         * lib/iconvme.c: Remove file.
55974         * m4/iconvme.m4: Remove file.
55975
55976 2007-03-19  Bruno Haible  <bruno@clisp.org>
55977
55978         * doc/relocatable-maint.texi: Break long shell script line.
55979         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55980
55981 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55982
55983         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
55984         handle file_has_acl.
55985         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
55986         * lib/acl.c: Move header inclusions and related macro defns into
55987         lib/acl-internal.h.
55988         (S_ISLNK): Remove defn, since that's now done for us.
55989         (file_has_acl): Move to lib/file-has-acl.c.
55990         Call acl_trivial if available.  This is the crucial part of the fix.
55991         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
55992         shared within the library.  Rewrite a bit, partly to make it compatible
55993         with the GNU coding style.
55994         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
55995         Remove unnecessary double-quotes.
55996         Don't test for acl_to_text; the build will catch that.
55997         Replace acl_entries if it doesn't exist and it is needed.
55998         Check for -lsec and acl_trivial (as used on Solaris 10).
55999         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
56000         lib/file-has-acl.c.
56001         (Depends-on): Add sys_stat, for S_ISLNK.
56002
56003 2007-03-19  Ben Pfaff  <blp@gnu.org>
56004
56005         * doc/gnulib.texi: Fix typos.
56006         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56007
56008 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56009
56010         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
56011         If size is zero here, buf must be zero.
56012
56013 2007-03-19  Simon Josefsson  <simon@josefsson.org>
56014
56015         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
56016         <bruno@clisp.org>.
56017
56018 2007-03-18  Bruno Haible  <bruno@clisp.org>
56019
56020         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
56021         Suggested by Eric Blake.
56022
56023 2007-03-18  Ben Pfaff  <blp@gnu.org>
56024
56025         * doc/relocatable.texi: Recommend using as prefix a directory
56026         that does not exist and will never be created.  Based on
56027         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
56028         and others.
56029
56030 2007-03-17  Bruno Haible  <bruno@clisp.org>
56031
56032         * lib/fchownat.c: Include lchown.h.
56033
56034 2007-03-17  Bruno Haible  <bruno@clisp.org>
56035
56036         Fix endless loop when the given allocated size was > INT_MAX.
56037         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
56038         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
56039         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
56040         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
56041         * lib/sprintf.c (sprintf): Likewise.
56042
56043 2007-03-17  Bruno Haible  <bruno@clisp.org>
56044
56045         * tests/test-argp-2.sh (func_compare): Output a context diff.
56046
56047 2007-03-17  Bruno Haible  <bruno@clisp.org>
56048
56049         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
56050         locale's decimal-point character.
56051
56052 2007-03-17  Bruno Haible  <bruno@clisp.org>
56053
56054         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
56055         before comparing it. Needed because on some platforms (e.g. x86) a
56056         'long double' occupies less bytes than sizeof (long double).
56057
56058 2007-03-17  Bruno Haible  <bruno@clisp.org>
56059
56060         * tests/test-crc.c (main): Make printf statements 64-bit clean.
56061         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
56062         * tests/test-getaddrinfo.c (simple): Likewise.
56063         * tests/test-read-file.c (main): Likewise.
56064
56065 2007-03-17  Bruno Haible  <bruno@clisp.org>
56066
56067         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
56068
56069 2007-03-17  Bruno Haible  <bruno@clisp.org>
56070
56071         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
56072         unused variable.
56073
56074 2007-03-17  Bruno Haible  <bruno@clisp.org>
56075
56076         * tests/test-c-strcasecmp.c: Include c-strcase.h.
56077         * tests/test-c-strncasecmp.c: Likewise.
56078
56079 2007-03-17  Bruno Haible  <bruno@clisp.org>
56080
56081         * modules/stdlib (Depends-on): Add unistd.
56082         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
56083         Needed for MacOS X 10.3.
56084
56085 2007-03-17  Bruno Haible  <bruno@clisp.org>
56086
56087         * lib/unistr/u-strdup.h: Include <stdlib.h>.
56088
56089 2007-03-17  Bruno Haible  <bruno@clisp.org>
56090
56091         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
56092
56093 2007-03-17  Bruno Haible  <bruno@clisp.org>
56094
56095         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
56096         to reflect files copied from gnulib (with or without modifications).
56097         Suggested by Jim Meyering.
56098
56099 2007-03-17  Eric Blake  <ebb9@byu.net>
56100
56101         * NEWS: Document stdlib change from 2007-02-18.
56102
56103 2007-03-17  Jim Meyering  <jim@meyering.net>
56104
56105         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
56106         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
56107         someone uses a name containing shell meta-characters.
56108         Reported by Alfred M. Szmidt.
56109
56110         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
56111
56112 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56113
56114         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56115         and copy gettext configuration files only if configure.ac contains
56116         a use of AM_GNU_GETTEXT_VERSION.
56117
56118 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56119
56120         * build-aux/bootstrap (gnulib_name): New variable.
56121         (gnulib_tool_options): Use it.
56122
56123 2007-03-13  Simon Josefsson  <simon@josefsson.org>
56124
56125         * tests/test-des.c: Use new namespace.
56126
56127 2007-03-15  Bruno Haible  <bruno@clisp.org>
56128
56129         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
56130         Reported by James Youngman <jay@gnu.org>.
56131
56132 2007-03-15  Bruno Haible  <bruno@clisp.org>
56133
56134         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
56135         declared prototype. Needed with cc on OSF/1 5.1.
56136
56137 2007-03-15  Bruno Haible  <bruno@clisp.org>
56138
56139         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
56140         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
56141         (struct gl_list_implementation): Add dispose_fn argument to the
56142         'create_empty', 'create' methods.
56143         (struct gl_list_impl_base): Add field 'dispose_fn'.
56144         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
56145         argument.
56146         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
56147         dispose_fn argument.
56148         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
56149         dispose_fn on the dropped values.
56150         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
56151         dispose_fn argument.
56152         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
56153         dropped values.
56154         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
56155         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56156         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
56157         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56158         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
56159         argument.
56160         (gl_tree_list_free): Call dispose_fn on the dropped values.
56161         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
56162         the dropped values.
56163         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56164         Add dispose_fn argument.
56165         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
56166         Call dispose_fn on the dropped values.
56167         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
56168         Add dispose_fn argument.
56169         (gl_sublist_create): Initialize the 'dispose_fn' field.
56170         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
56171         * tests/test-array_list.c (main): Update.
56172         * tests/test-carray_list.c (main): Update.
56173         * tests/test-avltree_list.c (main): Update.
56174         * tests/test-rbtree_list.c (main): Update.
56175         * tests/test-avltreehash_list.c (main): Update.
56176         * tests/test-rbtreehash_list.c (main): Update.
56177         * tests/test-linked_list.c (main): Update.
56178         * tests/test-linkedhash_list.c (main): Update.
56179         * tests/test-array_oset.c (main): Update.
56180
56181 2007-03-15  Bruno Haible  <bruno@clisp.org>
56182
56183         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
56184         (gl_oset_create_empty): Add dispose_fn argument.
56185         (struct gl_oset_implementation): Add dispose_fn argument to
56186         'create_empty' method.
56187         (struct gl_oset_impl_base): Add dispose_fn field.
56188         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
56189         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
56190         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
56191         values.
56192         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
56193         (gl_tree_oset_free): Call dispose_fn on the dropped values.
56194         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56195         dropped value.
56196         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56197         dropped value.
56198         * tests/test-array_oset.c (main): Update.
56199         * tests/test-avltree_oset.c (main): Update.
56200         * tests/test-rbtree_oset.c (main): Update.
56201         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
56202
56203 2007-03-13  Bruno Haible  <bruno@clisp.org>
56204
56205         * tests/test-stdbool.c (i): Update after last patch.
56206
56207 2007-03-12  Bruno Haible  <bruno@clisp.org>
56208
56209         * lib/quotearg.c: Include <wctype.h> early, before the definition of
56210         the iswprint macro. Needed on Solaris 2.5.1.
56211
56212 2007-03-12  Bruno Haible  <bruno@clisp.org>
56213
56214         * tests/test-printf-frexp.c (main): Declare x as volatile.
56215
56216 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56217
56218         * doc/gnulib.texi (Build robot for gnulib): New section.
56219
56220 2007-03-12  Jim Meyering  <jim@meyering.net>
56221
56222         * build-aux/bootstrap: New file.
56223         * build-aux/bootstrap.conf: New file, from coreutils.
56224
56225 2007-03-11  Bruno Haible  <bruno@clisp.org>
56226
56227         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
56228
56229 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56230
56231         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
56232         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
56233         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
56234
56235 2007-03-11  Bruno Haible  <bruno@clisp.org>
56236
56237         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
56238         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
56239
56240 2007-03-11  Bruno Haible  <bruno@clisp.org>
56241
56242         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
56243         formula. Needed for SunPRO C 5.0.
56244
56245 2007-03-11  Bruno Haible  <bruno@clisp.org>
56246
56247         * modules/long-options (Depends-on): Add getopt.
56248
56249 2007-03-11  Bruno Haible  <bruno@clisp.org>
56250
56251         * modules/modechange (Depends-on): Add stdbool.
56252
56253 2007-03-11  Bruno Haible  <bruno@clisp.org>
56254
56255         * modules/i-ring (Depends-on): Add stdbool.
56256
56257 2007-03-11  Bruno Haible  <bruno@clisp.org>
56258
56259         * modules/gc-des (Depends-on): Add stdbool.
56260
56261 2007-03-11  Bruno Haible  <bruno@clisp.org>
56262
56263         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
56264
56265 2007-03-11  Bruno Haible  <bruno@clisp.org>
56266
56267         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
56268
56269 2007-03-11  Bruno Haible  <bruno@clisp.org>
56270
56271         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
56272
56273 2007-03-11  Bruno Haible  <bruno@clisp.org>
56274
56275         * lib/vasnprintf.c (sprintf): Undefine.
56276
56277 2007-03-11  Bruno Haible  <bruno@clisp.org>
56278
56279         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
56280         initializers in SunPRO C and Compaq C compilers.
56281
56282 2007-03-11  Bruno Haible  <bruno@clisp.org>
56283
56284         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
56285         decrementing code ANSI C compliant.
56286
56287 2007-03-11  Bruno Haible  <bruno@clisp.org>
56288
56289         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
56290         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
56291
56292 2007-03-11  Bruno Haible  <bruno@clisp.org>
56293
56294         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
56295         <stdbool.h> substitute doesn't pass.
56296
56297 2007-03-11  Bruno Haible  <bruno@clisp.org>
56298
56299         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56300
56301 2007-03-11  Bruno Haible  <bruno@clisp.org>
56302
56303         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56304         script, for submission to autobuild.josefsson.org.
56305
56306 2007-03-10  Bruno Haible  <bruno@clisp.org>
56307
56308         * modules/canonicalize-lgpl-tests: New file.
56309         * tests/test-canonicalize-lgpl.sh: New file.
56310         * tests/test-canonicalize-lgpl.c: New file.
56311
56312         * modules/c-strcase-tests: New file.
56313         * tests/test-c-strcase.sh: New file.
56314         * tests/test-c-strcasecmp.c: New file.
56315         * tests/test-c-strncasecmp.c: New file.
56316
56317         * modules/atexit-tests: New file.
56318         * tests/test-atexit.sh: New file.
56319         * tests/test-atexit.c: New file.
56320
56321 2007-03-10  Bruno Haible  <bruno@clisp.org>
56322
56323         * tests/test-binary-io.sh: Use temporary filenames that are not so
56324         likely to clash with those of other tests (in a parallel make).
56325         * tests/test-binary-io.c: Likewise.
56326
56327 2007-03-10  Bruno Haible  <bruno@clisp.org>
56328
56329         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56330         fallback; use #error instead.
56331         Suggested by Simon Josefsson.
56332
56333 2007-03-10  Bruno Haible  <bruno@clisp.org>
56334
56335         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56336         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56337         first and the last.
56338
56339 2007-03-10  Bruno Haible  <bruno@clisp.org>
56340
56341         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56342
56343 2007-03-10  Bruno Haible  <bruno@clisp.org>
56344
56345         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56346         "make distcheck".
56347         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56348         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56349         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56350
56351 2007-03-10  Bruno Haible  <bruno@clisp.org>
56352
56353         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56354         variable.
56355         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56356         variable.
56357
56358 2007-03-09  Eric Blake  <ebb9@byu.net>
56359         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56360
56361         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56362         types are not being provided by gnulib.
56363         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56364         types are supported.
56365
56366 2007-03-10  Bruno Haible  <bruno@clisp.org>
56367
56368         * lib/stdio_.h (__attribute__): New macro.
56369         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56370         vsprintf): Specify __attribute__ __format__ for GCC.
56371         Suggested by Eric Blake.
56372
56373 2007-03-09  Bruno Haible  <bruno@clisp.org>
56374
56375         * modules/printf-posix-tests: New file.
56376         * tests/test-printf-posix.sh: New file.
56377         * tests/test-printf-posix.c: New file.
56378
56379         * modules/printf-posix: New file.
56380         * lib/printf.c: New file.
56381         * m4/printf-posix-rpl.m4: New file.
56382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56383         REPLACE_PRINTF.
56384         * lib/stdio_.h (printf): New declaration.
56385         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56386         ____strfmon____): New macros.
56387         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56388         REPLACE_PRINTF.
56389
56390 2007-03-09  Bruno Haible  <bruno@clisp.org>
56391
56392         * tests/test-vasnprintf-posix2.sh: New file.
56393         * tests/test-vasnprintf-posix2.c: New file.
56394         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56395         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56396         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56397
56398         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56399         a locale dependent decimal point, rather than always '.'.
56400
56401 2007-03-09  Eric Blake  <ebb9@byu.net>
56402
56403         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56404         spite of platforms like Tandem/NSK that define it to -1.
56405
56406 2007-03-08  Bruno Haible  <bruno@clisp.org>
56407
56408         * modules/vprintf-posix-tests: New file.
56409         * tests/test-vprintf-posix.sh: New file.
56410         * tests/test-vprintf-posix.c: New file.
56411         * tests/test-printf-posix.h: New file.
56412
56413         * modules/vprintf-posix: New file.
56414         * lib/vprintf.c: New file.
56415         * m4/vprintf-posix.m4: New file.
56416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56417         REPLACE_VPRINTF.
56418         * lib/stdio_.h (vprintf): New declaration.
56419         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56420         REPLACE_VPRINTF.
56421
56422 2007-03-08  Bruno Haible  <bruno@clisp.org>
56423
56424         * modules/fprintf-posix-tests: New file.
56425         * tests/test-fprintf-posix.sh: New file.
56426         * tests/test-fprintf-posix.c: New file.
56427
56428         * modules/fprintf-posix: New file.
56429         * lib/fprintf.c: New file.
56430         * m4/fprintf-posix.m4: New file.
56431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56432         REPLACE_FPRINTF.
56433         * lib/stdio_.h (fprintf): New declaration.
56434         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56435         REPLACE_FPRINTF.
56436
56437 2007-03-08  Bruno Haible  <bruno@clisp.org>
56438
56439         * modules/vfprintf-posix-tests: New file.
56440         * tests/test-vfprintf-posix.sh: New file.
56441         * tests/test-vfprintf-posix.c: New file.
56442         * tests/test-fprintf-posix.h: New file.
56443         * tests/test-fprintf-posix.out: New file.
56444
56445         * modules/vfprintf-posix: New file.
56446         * lib/vfprintf.c: New file.
56447         * m4/vfprintf-posix.m4: New file.
56448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56449         REPLACE_VFPRINTF.
56450         * lib/stdio_.h (vfprintf): New declaration.
56451         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56452         REPLACE_VFPRINTF.
56453
56454 2007-03-08  Bruno Haible  <bruno@clisp.org>
56455
56456         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56457
56458 2007-03-08  Bruno Haible  <bruno@clisp.org>
56459
56460         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56461         instead of 'expr' invocations.
56462         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56464         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56466         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56467         Suggested by Paul Eggert.
56468
56469 2007-03-08  Bruno Haible  <bruno@clisp.org>
56470
56471         * modules/fseterr-tests: New file.
56472         * tests/test-fseterr.c: New file.
56473
56474         * modules/fseterr: New file.
56475         * lib/fseterr.h: New file.
56476         * lib/fseterr.c: New file.
56477
56478 2007-03-08  Bruno Haible  <bruno@clisp.org>
56479
56480         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56481         * lib/getopt_.h: Likewise.
56482         * lib/mbswidth.h: Likewise.
56483         * lib/setenv.h: Likewise.
56484         * lib/vasnprintf.h: Likewise.
56485         * lib/vasprintf.h: Likewise.
56486         * lib/verror.h: Likewise.
56487         * lib/xsetenv.h: Likewise.
56488         * lib/xvasprintf.h: Likewise.
56489
56490 2007-03-08  Jim Meyering  <jim@meyering.net>
56491
56492         * users.txt: Add parted.
56493
56494         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56495
56496 2007-03-07  Bruno Haible  <bruno@clisp.org>
56497
56498         * m4/printf.m4: Make the shell script snippets copy&pastable.
56499
56500 2007-03-02  Bruno Haible  <bruno@clisp.org>
56501
56502         * lib/netinet_in_.h: New file.
56503         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56504         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56505         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56506         (Depends-on): Add absolute-header.
56507         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56508         into netinet/in.h.
56509
56510 2007-03-03  Bruno Haible  <bruno@clisp.org>
56511
56512         * lib/sys_select_.h: New file.
56513         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56514         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56515         * modules/sys_select (Files): Add lib/sys_select_.h.
56516         (Depends-on): Add absolute-header.
56517         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56518         into sys/select.h.
56519
56520 2007-03-02  Bruno Haible  <bruno@clisp.org>
56521
56522         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56523         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56524         values.
56525         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56526         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56527         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56528         * modules/sys_socket (Depends-on): Add absolute-header.
56529         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56530         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56531         (Include): Remove requirement of inclusion of <sys/types.h>.
56532
56533 2007-03-02  Bruno Haible  <bruno@clisp.org>
56534
56535         * lib/byteswap_.h (bswap_32): Fix formula.
56536
56537 2007-03-06  Bruno Haible  <bruno@clisp.org>
56538
56539         * modules/sprintf-posix-tests: New file.
56540         * tests/test-sprintf-posix.c: New file.
56541
56542         * modules/sprintf-posix: New file.
56543         * lib/sprintf.c: New file.
56544         * m4/sprintf-posix.m4: New file.
56545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56546         REPLACE_SPRINTF.
56547         * lib/stdio_.h (sprintf): New declaration.
56548         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56549         REPLACE_SPRINTF.
56550
56551 2007-03-06  Bruno Haible  <bruno@clisp.org>
56552
56553         * modules/vsprintf-posix-tests: New file.
56554         * tests/test-vsprintf-posix.c: New file.
56555         * tests/test-sprintf-posix.h: New file.
56556
56557         * modules/vsprintf-posix: New file.
56558         * lib/vsprintf.c: New file.
56559         * m4/vsprintf-posix.m4: New file.
56560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56561         REPLACE_VSPRINTF.
56562         * lib/stdio_.h (vsprintf): New declaration.
56563         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56564         REPLACE_VSPRINTF.
56565
56566 2007-03-06  Bruno Haible  <bruno@clisp.org>
56567
56568         * modules/vsnprintf (Depend-on): Remove minmax.
56569
56570 2007-03-06  Bruno Haible  <bruno@clisp.org>
56571
56572         * modules/snprintf-posix-tests: New file.
56573         * tests/test-snprintf-posix.c: New file.
56574
56575         * modules/snprintf-posix: New file.
56576         * m4/snprintf-posix.m4: New file.
56577         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56578         gl_FUNC_SNPRINTF.
56579         (gl_FUNC_SNPRINTF): Invoke it.
56580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56581         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56582         is set.
56583         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56584
56585 2007-03-06  Bruno Haible  <bruno@clisp.org>
56586
56587         * modules/vsnprintf-posix-tests: New file.
56588         * tests/test-vsnprintf-posix.c: New file.
56589         * tests/test-snprintf-posix.h: New file.
56590
56591         * modules/vsnprintf-posix: New file.
56592         * m4/vsnprintf-posix.m4: New file.
56593         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56594         gl_FUNC_VSNPRINTF.
56595         (gl_FUNC_VSNPRINTF): Invoke it.
56596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56597         * lib/stdio_.h (vsnprintf): Define as a replacement if
56598         REPLACE_VSNPRINTF is set.
56599         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56600
56601 2007-03-06  Bruno Haible  <bruno@clisp.org>
56602
56603         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56604         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56605
56606 2007-03-06  Bruno Haible  <bruno@clisp.org>
56607
56608         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56609         (asinl): Declare also if HAVE_DECL_ASINL is set.
56610         (atanl): Declare also if HAVE_DECL_ATANL is set.
56611         (ceill): Declare also if HAVE_DECL_CEILL is set.
56612         (cosl): Declare also if HAVE_DECL_COSL is set.
56613         (expl): Declare also if HAVE_DECL_EXPL is set.
56614         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56615         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56616         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56617         (logl): Declare also if HAVE_DECL_LOGL is set.
56618         (sinl): Declare also if HAVE_DECL_SINL is set.
56619         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56620         (tanl): Declare also if HAVE_DECL_TANL is set.
56621         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56623         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56624         declaration of frexpl, ldexpl.
56625         * modules/printf-frexpl (Depends-on): Add math.
56626         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56627
56628 2007-03-05  Bruno Haible  <bruno@clisp.org>
56629
56630         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56631         frexpl and ldexpl are declared.
56632         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56633
56634 2007-03-05  Bruno Haible  <bruno@clisp.org>
56635
56636         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56637         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56638
56639 2007-03-05  Bruno Haible  <bruno@clisp.org>
56640
56641         * lib/stdio_.h: Include <stddef.h>.
56642
56643 2007-03-05  Bruno Haible  <bruno@clisp.org>
56644
56645         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56646
56647 2007-03-05  Bruno Haible  <bruno@clisp.org>
56648
56649         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56650         NetBSD 4, from Ralf Wildenhues.
56651
56652 2007-03-04  Bruno Haible  <bruno@clisp.org>
56653
56654         * lib/vasprintf.h: Update #if logic for the case when the functions
56655         exist but are overridden.
56656
56657 2007-03-04  Bruno Haible  <bruno@clisp.org>
56658
56659         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56660         implementations: glibc-2.4 and MacOS X 10.3.
56661         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56662         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56663         * tests/test-vasprintf-posix.c (test_function): Likewise.
56664
56665 2007-03-04  Bruno Haible  <bruno@clisp.org>
56666
56667         * modules/vasprintf-posix-tests: New file.
56668         * tests/test-vasprintf-posix.c: New file.
56669
56670         * modules/vasprintf-posix: New file.
56671         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56672         defined.
56673         * m4/vasprintf-posix.m4: New file.
56674         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56675         gl_FUNC_VASPRINTF.
56676         (gl_FUNC_VASPRINTF): Invoke it.
56677         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56678         here.
56679         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56680
56681 2007-03-04  Bruno Haible  <bruno@clisp.org>
56682
56683         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56684         REPLACE_GETTIMEOFDAY.
56685         * modules/sys_time (Makefile.am): Likewise.
56686         * m4/sys_time_h.m4: Likewise.
56687         * m4/gettimeofday.m4: Likewise.
56688
56689 2007-03-04  Bruno Haible  <bruno@clisp.org>
56690
56691         * modules/vasnprintf-posix-tests: New file.
56692         * tests/test-vasnprintf-posix.c: New file.
56693
56694         * modules/vasnprintf-posix: New file.
56695         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56696         printf-frexpl.h.
56697         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56698         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56699         REPLACE_VASNPRINTF is defined.
56700         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56701         gl_FUNC_VASNPRINTF.
56702         (gl_FUNC_VASNPRINTF): Invoke it.
56703         * m4/vasnprintf-posix.m4: New file.
56704         * m4/printf.m4: New file.
56705
56706 2007-03-04  Bruno Haible  <bruno@clisp.org>
56707
56708         Compile progreloc.c only if --enable-relocatable is specified.
56709         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56710         if --enable-relocatable was specified.
56711         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56712         lib_SOURCES.
56713
56714 2007-03-04  Jim Meyering  <jim@meyering.net>
56715
56716         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56717         Use it consistently, rather than enumerating errno constants.
56718
56719 2007-03-04  Bruno Haible  <bruno@clisp.org>
56720
56721         * modules/xvasprintf-tests: New file.
56722         * tests/test-xvasprintf.c: New file.
56723
56724         * modules/vasprintf-tests: New file.
56725         * tests/test-vasprintf.c: New file.
56726
56727         * modules/vasnprintf-tests: New file.
56728         * tests/test-vasnprintf.c: New file.
56729
56730         * modules/vsnprintf-tests: New file.
56731         * tests/test-vsnprintf.c: New file.
56732
56733         * modules/snprintf-tests: New file.
56734         * tests/test-snprintf.c: New file.
56735
56736 2007-03-04  Bruno Haible  <bruno@clisp.org>
56737
56738         Compile relocatable.c only if --enable-relocatable is specified.
56739         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56740         gl_RELOCATABLE_LIBRARY.
56741         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56742         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56743         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56744         gl_RELOCATABLE_LIBRARY.
56745         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56746         (Makefile.am): Remove lib_SOURCES.
56747         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56748         gl_RELOCATABLE_LIBRARY.
56749         (Makefile.am): Remove lib_SOURCES.
56750         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56751         always.
56752         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56753         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56754
56755 2007-03-04  Bruno Haible  <bruno@clisp.org>
56756
56757         * modules/argmatch-tests: New file.
56758         * tests/test-argmatch.c: New file.
56759
56760         * tests/test-allocsa.c (main): Halve the number of loop runs.
56761
56762         * modules/alloca-opt-tests: New file.
56763         * tests/test-alloca-opt.c: New file.
56764
56765 2007-03-04  Jim Meyering  <jim@meyering.net>
56766
56767         Work around difference between Linux ACLs and Solaris 10 ZFS.
56768         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56769         for EINVAL.
56770
56771 2007-03-03  Bruno Haible  <bruno@clisp.org>
56772
56773         * modules/relocatable-prog (Depends-on): Add back progreloc's
56774         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56775
56776 2007-03-03  Bruno Haible  <bruno@clisp.org>
56777
56778         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56779         * modules/relocatable-lib: New file.
56780
56781 2007-03-03  Bruno Haible  <bruno@clisp.org>
56782
56783         * modules/relocatable-prog: Renamed from modules/relocatable.
56784         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56785
56786 2007-03-03  Bruno Haible  <bruno@clisp.org>
56787
56788         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56789         m4/relocatable-lib.m4.
56790         (Depends-on): Remove 'relocatable'.
56791         (configure.ac): Add gl_RELOCATABLE_NOP.
56792
56793 2007-03-03  Bruno Haible  <bruno@clisp.org>
56794
56795         * modules/relocatable-prog-wrapper: New file.
56796         * modules/relocatable (Depends-on): Add it. Remove all other
56797         dependencies except progname.
56798         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56799
56800         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56801         (gl_FUNC_STRERROR): Nop.
56802         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56803
56804         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56805         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56806
56807         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56808         (gl_FUNC_READLINK): Update.
56809
56810         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56811
56812 2007-03-03  Bruno Haible  <bruno@clisp.org>
56813
56814         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56815         * modules/xreadlink (Depends-on): Add unistd.
56816         * modules/xreadlink-with-size (Depends-on): Likewise.
56817
56818 2007-03-03  Bruno Haible  <bruno@clisp.org>
56819
56820         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56821         extracted from gt_FUNC_SETENV.
56822         (gt_FUNC_SETENV): Remove macro.
56823         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56824         remove gt_FUNC_SETENV.
56825
56826 2007-03-03  Bruno Haible  <bruno@clisp.org>
56827
56828         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56829         ENABLE_RELOCATABLE here.
56830         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56831
56832 2007-03-03  Bruno Haible  <bruno@clisp.org>
56833
56834         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56835         * tests/test-rbtreehash_list.c: Include progname.h.
56836         (main): Call set_program_name.
56837
56838         * modules/rbtree-oset-tests (Depends-on): Add progname.
56839         * tests/test-rbtree_oset.c: Include progname.h.
56840         (main): Call set_program_name.
56841
56842         * modules/rbtree-list-tests (Depends-on): Add progname.
56843         * tests/test-rbtree_list.c: Include progname.h.
56844         (main): Call set_program_name.
56845
56846         * modules/linked-list-tests (Depends-on): Add progname.
56847         * tests/test-linked_list.c: Include progname.h.
56848         (main): Call set_program_name.
56849
56850 2007-03-03  Bruno Haible  <bruno@clisp.org>
56851
56852         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56853         All uses of __restrict changed to _Restrict_.
56854         * lib/glob_.h (__restrict): Remove macro.
56855
56856 2007-03-02  Bruno Haible  <bruno@clisp.org>
56857
56858         * modules/gettext (configure.ac): Require gettext infrastructure
56859         from version 0.16.1.
56860
56861 2007-03-02  Bruno Haible  <bruno@clisp.org>
56862
56863         * modules/linkedhash-list-tests (Depends-on): Add progname.
56864         * tests/test-linkedhash_list.c: Include progname.h.
56865         (main): Call set_program_name.
56866
56867         * modules/carray-list-tests (Depends-on): Add progname.
56868         * tests/test-carray_list.c: Include progname.h.
56869         (main): Call set_program_name.
56870
56871         * modules/avltreehash-list-tests (Depends-on): Add progname.
56872         * tests/test-avltreehash_list.c: Include progname.h.
56873         (main): Call set_program_name.
56874
56875         * modules/avltree-oset-tests (Depends-on): Add progname.
56876         * tests/test-avltree_oset.c: Include progname.h.
56877         (main): Call set_program_name.
56878
56879         * modules/avltree-list-tests (Depends-on): Add progname.
56880         * tests/test-avltree_list.c: Include progname.h.
56881         (main): Call set_program_name.
56882
56883         * modules/array-oset-tests (Depends-on): Add progname.
56884         * tests/test-array_oset.c: Include progname.h.
56885         (main): Call set_program_name.
56886
56887         * modules/array-list-tests (Depends-on): Add progname.
56888         * tests/test-array_list.c: Include progname.h.
56889         (main): Call set_program_name.
56890
56891         * modules/argp-tests (Depends-on): Add progname.
56892         * tests/test-argp.c: Include argp.h first. Include progname.h.
56893         (main): Call set_program_name.
56894
56895 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
56896
56897         * doc/gnulib-tool.texi (Initial import): Reword description of
56898         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
56899         limited effect even if defined after the first system include.
56900
56901 2007-03-01  Bruno Haible  <bruno@clisp.org>
56902
56903         * build-aux/config.libpath: Update to libtool-1.5.22.
56904         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56905
56906 2007-03-01  Bruno Haible  <bruno@clisp.org>
56907
56908         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
56909         foo_CFLAGS.
56910         Reported by Ralf Wildenhues.
56911
56912 2007-03-01  Bruno Haible  <bruno@clisp.org>
56913
56914         * build-aux/install-reloc: Remove object files left over by some
56915         compilers.
56916         Reported by Ralf Wildenhues.
56917
56918 2007-03-01  Bruno Haible  <bruno@clisp.org>
56919
56920         * build-aux/install-reloc: Break long lines.
56921
56922 2007-03-01  Bruno Haible  <bruno@clisp.org>
56923
56924         * doc/relocatable.texi: Document that it may not work on OpenBSD.
56925         Reported by Ralf Wildenhues.
56926
56927 2007-03-01  Bruno Haible  <bruno@clisp.org>
56928
56929         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
56930         include ordering constraints.
56931
56932 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56933
56934         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
56935         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
56936         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
56937         as another example.
56938         * lib/time_.h: Fix misspelling.
56939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56940         Require gl_HEADER_TIME_H_DEFAULTS.
56941         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
56942         * m4/time_r.m4 (gl_TIME_R): Likewise.
56943         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
56944
56945 2007-03-01  Bruno Haible  <bruno@clisp.org>
56946
56947         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
56948         * m4/utimens.m4 (gl_UTIMENS): Likewise.
56949
56950 2007-03-01  Jim Meyering  <jim@meyering.net>
56951
56952         * modules/xreadlink (Maintainer): Add my name.
56953         * modules/xreadlink-with-size (Depends-on): Alphabetize.
56954
56955 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
56956             Bruno Haible  <bruno@clisp.org>
56957
56958         * build-aux/install-reloc: Compile also c-ctype.c.
56959         * build-aux/relocatable.sh.in: New file.
56960         * doc/relocatable.texi: New file.
56961         * doc/relocatable-maint.texi: New file.
56962         * doc/gnulib.texi: Include relocatable-maint.texi.
56963         * lib/progreloc.c: Include unistd.h unconditionally.
56964         * lib/relocwrapper.c: Include unistd.h unconditionally.
56965         Include c-ctype.h.
56966         (add_dotbin): Use c_tolower.
56967         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
56968         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
56969         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
56970         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
56971         to m4/relocatable-lib.m4.
56972         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
56973         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
56974         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
56975         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
56976         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
56977         * modules/relocatable: New file.
56978         * modules/relocatable-lib: New file.
56979         * modules/relocatable-script: New file.
56980
56981 2007-02-28  Bruno Haible  <bruno@clisp.org>
56982
56983         Import --enable-relocatable infrastructure.
56984         * build-aux/config.libpath: New file, from GNU gettext.
56985         * build-aux/install-reloc: New file, from GNU gettext.
56986         * build-aux/reloc-ldflags: New file, from GNU gettext.
56987         * lib/relocatable.h: New file, from GNU gettext.
56988         * lib/relocatable.c: New file, from GNU gettext.
56989         * lib/relocwrapper.c: New file, from GNU gettext.
56990         * m4/relocatable.m4: New file, from GNU gettext.
56991
56992 2007-02-28  Bruno Haible  <bruno@clisp.org>
56993
56994         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
56995
56996         * modules/xreadlink: New file, from GNU gettext with modifications.
56997         * lib/xreadlink.c: New file, from GNU gettext.
56998         * lib/xreadlink.h: Add comments.
56999         (xreadlink): New declaration.
57000
57001         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
57002         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
57003         lib/xreadlink-with-size.c.
57004         (configure.ac): Remove gl_XREADLINK invocation.
57005         (Makefile.am): Augment lib_SOURCES.
57006         * m4/xreadlink.m4: Remove file.
57007         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
57008         (xreadlink_with_size): Renamed from xreadink.
57009         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
57010         * modules/canonicalize (Depends-on): Replace xreadlink with
57011         xreadlink-with-size.
57012         * lib/canonicalize.c (canonicalize_filename_mode): Update.
57013
57014 2007-02-25  Jim Meyering  <jim@meyering.net>
57015
57016         * build-aux/announce-gen: When complaining about excess arguments,
57017         list them.
57018
57019 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57020
57021         * README: Document signed integer overflow situation more
57022         accurately.
57023
57024 2007-02-25  Bruno Haible  <bruno@clisp.org>
57025
57026         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
57027         'a' or 'A' conversion.
57028
57029 2007-02-25  Bruno Haible  <bruno@clisp.org>
57030
57031         * modules/filename: Renamed from modules/pathname.
57032         (Files): Replace lib/pathname.h with lib/filename.h. Replace
57033         lib/concatpath.c with lib/concat-filename.c.
57034         (Makefile.am): Update.
57035         (Include): Replace pathname.h with filename.h.
57036         * lib/filename.h: Renamed from lib/pathname.h.
57037         (concatenated_filename): Renamed from concatenated_pathname.
57038         * lib/concat-filename.c: Renamed from lib/concatpath.c.
57039         (concatenated_filename): Renamed from concatenated_pathname.
57040         * lib/findprog.c: Include filename.h instead of pathname.h.
57041         (find_in_path): Update.
57042         * lib/javacomp.c: Include filename.h instead of pathname.h.
57043         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57044         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57045         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57046         is_oldgcj_14_13_usable, is_javac_usable): Update.
57047         * lib/javaexec.c: Include filename.h instead of pathname.h.
57048         (execute_java_class): Update.
57049         * modules/findprog: Update.
57050         * modules/javacomp: Update.
57051         * modules/javaexec: Update.
57052         * MODULES.html.sh (File system functions): Add 'filename', remove
57053         'pathname'.
57054
57055 2007-02-25  Bruno Haible  <bruno@clisp.org>
57056
57057         * modules/printf-frexpl-tests: New file.
57058         * tests/test-printf-frexpl.c: New file.
57059
57060         * modules/printf-frexpl: New file.
57061         * lib/printf-frexpl.h: New file.
57062         * lib/printf-frexpl.c: New file.
57063         * m4/printf-frexpl.m4: New file.
57064
57065 2007-02-25  Bruno Haible  <bruno@clisp.org>
57066
57067         * modules/printf-frexp-tests: New file.
57068         * tests/test-printf-frexp.c: New file.
57069
57070         * modules/printf-frexp: New file.
57071         * lib/printf-frexp.h: New file.
57072         * lib/printf-frexp.c: New file.
57073         * m4/printf-frexp.m4: New file.
57074
57075 2007-02-25  Bruno Haible  <bruno@clisp.org>
57076
57077         Assume automake >= 1.10 for the tests.
57078         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
57079         * modules/arctwo-tests: Likewise.
57080         * modules/argp-tests: Likewise.
57081         * modules/avltree-list-tests: Likewise.
57082         * modules/avltree-oset-tests: Likewise.
57083         * modules/avltreehash-list-tests: Likewise.
57084         * modules/carray-list-tests: Likewise.
57085         * modules/crc-tests: Likewise.
57086         * modules/des-tests: Likewise.
57087         * modules/gc-arcfour-tests: Likewise.
57088         * modules/gc-arctwo-tests: Likewise.
57089         * modules/gc-des-tests: Likewise.
57090         * modules/gc-hmac-md5-tests: Likewise.
57091         * modules/gc-hmac-sha1-tests: Likewise.
57092         * modules/gc-md2-tests: Likewise.
57093         * modules/gc-md4-tests: Likewise.
57094         * modules/gc-md5-tests: Likewise.
57095         * modules/gc-pbkdf2-sha1-tests: Likewise.
57096         * modules/gc-rijndael-tests: Likewise.
57097         * modules/gc-sha1-tests: Likewise.
57098         * modules/gc-tests: Likewise.
57099         * modules/getaddrinfo-tests: Likewise.
57100         * modules/hmac-md5-tests: Likewise.
57101         * modules/hmac-sha1-tests: Likewise.
57102         * modules/linked-list-tests: Likewise.
57103         * modules/linkedhash-list-tests: Likewise.
57104         * modules/lock-tests: Likewise.
57105         * modules/md2-tests: Likewise.
57106         * modules/md4-tests: Likewise.
57107         * modules/md5-tests: Likewise.
57108         * modules/rbtree-list-tests: Likewise.
57109         * modules/rbtree-oset-tests: Likewise.
57110         * modules/rbtreehash-list-tests: Likewise.
57111         * modules/read-file-tests: Likewise.
57112         * modules/rijndael-tests: Likewise.
57113         * modules/stdint-tests: Likewise.
57114         * modules/tls-tests: Likewise.
57115
57116 2007-02-24  Bruno Haible  <bruno@clisp.org>
57117
57118         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
57119         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
57120         function; instead check whether isnan with a double argument links.
57121         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
57122         function; instead check whether isnan with a 'long double' argument
57123         links.
57124         Reported by Eric Blake <ebb9@byu.net>.
57125
57126 2007-02-24  Bruno Haible  <bruno@clisp.org>
57127
57128         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
57129         defined.
57130         * lib/isnanl.c: Remove all code. Just include isnan.c.
57131         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
57132
57133 2007-02-25  Jim Meyering  <jim@meyering.net>
57134
57135         Avoid conflicting types for 'unsetenv' on FreeBSD.
57136         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
57137         conflicting with FreeBSD's (5.0 and 6.1) function declaration
57138         in stdlib.h.
57139
57140 2007-02-24  Bruno Haible  <bruno@clisp.org>
57141
57142         * modules/isnanl-nolibm-tests: New file.
57143         * tests/test-isnanl.c: New file.
57144
57145         * modules/isnanl-nolibm: New file.
57146         * lib/isnanl.h: New file.
57147         * lib/isnanl.c: New file.
57148         * m4/isnanl.m4: New file.
57149
57150 2007-02-24  Bruno Haible  <bruno@clisp.org>
57151
57152         * modules/isnan-nolibm-tests: New file.
57153         * tests/test-isnan.c: New file.
57154
57155         * modules/isnan-nolibm: New file.
57156         * lib/isnan.h: New file.
57157         * lib/isnan.c: New file.
57158         * m4/isnan.m4: New file.
57159
57160 2007-02-24  Bruno Haible  <bruno@clisp.org>
57161
57162         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
57163         assume that an exponent fits in 20 bits.
57164
57165 2007-02-24  Jim Meyering  <jim@meyering.net>
57166
57167         * m4/regex.m4: Update the description of the configure-time option,
57168         --without-included-regex, to state accurately what the defaults are,
57169         and perhaps to give people an idea why using this option is risky.
57170
57171 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57172
57173         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
57174         loops on small arguments.  This attempts to avoid the problem
57175         Bruno Haible reported for AIX 4.3.2 in
57176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
57177
57178 2007-02-23  Bruno Haible  <bruno@clisp.org>
57179
57180         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
57181         Needed for help2man.
57182
57183 2007-02-23  Karl Berry  <karl@gnu.org>
57184
57185         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
57186         exists, foo.h should be cvs-ignored, not committed.
57187
57188 2007-02-23  Eric Blake  <ebb9@byu.net>
57189
57190         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
57191         * lib/stat-time.h (includes): Likewise.
57192         * lib/utimecmp.c (includes): Likewise.
57193         * lib/utimens.h (includes): Likewise.
57194         * lib/getdate.y (includes): Also include "timespec.h" for use
57195         internal to the module.
57196         * modules/utimens (Depends-on): Revert yesterday's patch.
57197         * modules/nanosleep (Depends-on): Add missing dependency.
57198
57199 2007-02-22  Bruno Haible  <bruno@clisp.org>
57200
57201         * lib/glob.c: Don't include getlogin_r.h.
57202
57203 2007-02-22  Jim Meyering  <jim@meyering.net>
57204
57205         * modules/utimens (Depends-on): Add timespec, required for
57206         utimens.h's inclusion of timespec.h.
57207
57208 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
57209
57210         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
57211         long unreadable paths in GNU/Linux.  Problem reported by Andreas
57212         Schwab in
57213         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
57214         I'll try to think of a better way to fix the Solaris problem.
57215
57216         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
57217         like glibc; on Solaris 10, it fails with errno == EINVAL.
57218         POSIX says the behavior is unspecified if the first argument is NULL,
57219         so play it safe and never pass NULL to the system getcwd.
57220
57221 2007-02-21  Jim Meyering  <jim@meyering.net>
57222
57223         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
57224         of gettimeofday.  It would conflict with the one now always
57225         provided via sys_time_.h.  Reported by Matthew Woehlke, as
57226         an IRIX 6.5 build failure.
57227
57228 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57229
57230         Minor fixups to port to Solaris 10 with Sun C 5.8.
57231         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
57232         * modules/getcwd (Depends-on): Add dirfd.
57233         * lib/putenv.c (putenv): #undef it.
57234         (rpl_putenv): New decl.
57235         (malloc, free): Include <stdlib.h> rather than prototyping separately.
57236
57237 2007-02-20  Bruno Haible  <bruno@clisp.org>
57238
57239         * modules/stdio-tests: New file.
57240         * tests/test-stdio.c: New file.
57241
57242         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
57243         (Depends-on): Add stdio.
57244         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57245         (Include): Use <stdio.h> instead of vsnprintf.h.
57246         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57247         HAVE_DECL_VSNPRINTF.
57248         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
57249
57250         * modules/snprintf (Files): Remove lib/snprintf.h.
57251         (Depends-on): Add stdio.
57252         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57253         (Include): Use <stdio.h> instead of snprintf.h.
57254         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57255         HAVE_DECL_SNPRINTF.
57256         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
57257         * lib/getaddrinfo.c: Likewise.
57258
57259         * modules/stdio: New file.
57260         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
57261         * lib/snprintf.h: Remove file.
57262         * lib/vsnprintf.h: Remove file.
57263         * lib/.cppi-disable: Remove snprintf.h.
57264         * m4/stdio_h.m4: New file.
57265         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
57266
57267 2007-02-20  Jim Meyering  <jim@meyering.net>
57268
57269         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
57270         used by e.g., mingw.  From Bruno Haible.
57271
57272 2007-02-19  Bruno Haible  <bruno@clisp.org>
57273
57274         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
57275         warnings.
57276         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57277
57278 2007-02-19  Bruno Haible  <bruno@clisp.org>
57279
57280         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
57281         from mingw users.
57282
57283 2007-02-19  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
57286         warnings.
57287         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
57288
57289 2007-02-19  Jim Meyering  <jim@meyering.net>
57290
57291         Don't use FD after a successful "fdopendir (fd)".
57292         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
57293         Reset it by calling dirfd on the just-obtained DIR*.
57294
57295         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57296         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57297
57298 2007-02-18  Bruno Haible  <bruno@clisp.org>
57299
57300         * lib/readlink.c: Include <unistd.h>.
57301         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57302         HAVE_READLINK.
57303         * modules/readlink (Depends-on): Add unistd.
57304         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57305         (Include): Add <unistd.h>.
57306
57307         * lib/getlogin_r.h: Remove file.
57308         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57309         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57310         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57311         HAVE_DECL_GETLOGIN_R.
57312         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57313         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57314         (Include): Use <unistd.h> instead of getlogin_r.h.
57315
57316         * lib/getcwd.h: Remove file.
57317         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57318         * lib/xgetcwd.c: Likewise.
57319         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57320         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57321         * modules/getcwd (Files): Remove lib/getcwd.h.
57322         (Depends-on): Add unistd.
57323         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57324         (Include): Use <unistd.h> instad of getcwd.h.
57325
57326         * lib/ftruncate.c: Include <unistd.h> first.
57327         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57328         Set HAVE_FTRUNCATE.
57329         * modules/ftruncate (Depends-on): Add unistd.
57330         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57331
57332         * lib/fchdir.c: Include <unistd.h> first.
57333         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57334         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57335         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57336         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57337         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57338
57339         * lib/dup2.c: Include <unistd.h> first.
57340         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57341         HAVE_DUP2.
57342         * modules/dup2 (Depends-on): Add unistd.
57343         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57344
57345         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57346         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57347         REPLACE_CHOWN. Don't define chown as a macro here.
57348         * modules/chown (Depends-on): Add unistd.
57349         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57350
57351         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57352         Add definition for GL_LINK_WARNING.
57353         (chown, dup2): New declarations.
57354         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57355         link warning.
57356         (ftruncate): New declaration.
57357         (getcwd): New declaration, taken from old getcwd.h.
57358         (getlogin_r): New declaration, taken from old getlogin_r.h.
57359         (readlink): New declaration.
57360         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57361         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57362         (gl_PREREQ_UNISTD): Remove macro.
57363         (gl_UNISTD_MODULE_INDICATOR): New macro.
57364         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57365         many new variables. Don't set UNISTD_H.
57366         * modules/unistd (Description): Change.
57367         (Depends-on): Add link-warning.
57368         (configure.ac): Update.
57369         (Makefile.am): Create unistd.h always. Substitute many new variables
57370         into it.
57371
57372 2007-02-18  Bruno Haible  <bruno@clisp.org>
57373
57374         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57375         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57376         HAVE_GETSUBOPT.
57377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57378         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57379         * lib/getsubopt.h: Remove file.
57380         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57381         (Depends-on): Add stdlib.
57382         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57383         (Includes): Use <stdlib.h> instead of getsubopt.h.
57384         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57385         Set HAVE_GETSUBOPT.
57386         * lib/getsubopt.c: Don't include getsubopt.h.
57387
57388 2007-02-18  Bruno Haible  <bruno@clisp.org>
57389
57390         * modules/fchdir (Depends-on): Add dup2.
57391
57392 2007-02-18  Bruno Haible  <bruno@clisp.org>
57393
57394         * lib/stdlib_.h: Handle glibc's special invocation convention
57395         specially.
57396
57397 2007-02-18  Bruno Haible  <bruno@clisp.org>
57398
57399         * modules/stdlib-tests: New file.
57400         * tests/test-stdlib.c: New file.
57401
57402         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57403         (Depends-on): Add stdlib.
57404         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57405         (Includes): Use <stdlib.h> instead of mkstemp.h.
57406         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57407         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57408         * lib/mkstemp.c: Don't include mkstemp.h.
57409         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57410         * lib/stdlib--.h: Don't include mkstemp.h.
57411
57412         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57413         (Depends-on): Add stdlib.
57414         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57415         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57416         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57417         HAVE_MKDTEMP.
57418         * lib/mkdtemp.c: Don't include mkdtemp.h.
57419         * lib/clean-temp.c: Don't include mkdtemp.h.
57420
57421         * modules/exit (Files): Remove lib/exit.h.
57422         (Depends-on): Add stdlib.
57423         (Makefile.am): Remove lib_SOURCES.
57424         (Include): Use <stdlib.h> instead of exit.h.
57425         * lib/argmatch.c: Don't include exit.h.
57426         * lib/execute.c: Likewise.
57427         * lib/pagealign_alloc.c: Likewise.
57428         * lib/pipe.c: Likewise.
57429         * lib/wait-process.c: Likewise.
57430         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57431         * lib/exitfail.c: Likewise.
57432         * lib/savewd.c: Likewise.
57433         * lib/xsetenv.c: Likewise.
57434
57435         * modules/stdlib: New file.
57436         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57437         and extra comments about mkstemp().
57438         * lib/exit.h: Remove file.
57439         * lib/mkdtemp.h: Remove file.
57440         * lib/mkstemp.h: Remove file.
57441         * m4/stdlib_h.m4: New file.
57442         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57443
57444 2007-02-18  Bruno Haible  <bruno@clisp.org>
57445
57446         * modules/math-tests: New file.
57447         * tests/test-math.c: New file.
57448
57449         * modules/math: New file.
57450         * modules/mathl (Files): Remove lib/mathl.h.
57451         (Depends-on): Add math.
57452         (Makefile.am): Don't mention mathl.h.
57453         (Include): Use <math.h> instead of mathl.h.
57454         * lib/math_.h: New file.
57455         * lib/mathl.h: Remove file.
57456         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57457         mathl.h.
57458         * lib/asinl.c: Likewise.
57459         * lib/atanl.c: Likewise.
57460         * lib/ceill.c: Likewise.
57461         * lib/cosl.c: Likewise.
57462         * lib/expl.c: Likewise.
57463         * lib/floorl.c: Likewise.
57464         * lib/frexpl.c: Likewise.
57465         * lib/ldexpl.c: Likewise.
57466         * lib/logl.c: Likewise.
57467         * lib/sincosl.c: Likewise.
57468         * lib/sinl.c: Likewise.
57469         * lib/sqrtl.c: Likewise.
57470         * lib/tanl.c: Likewise.
57471         * lib/trigl.c: Likewise.
57472         * m4/math_h.m4: New file.
57473         * MODULES.html.sh (Mathematics): Add math.
57474
57475 2007-02-17  Bruno Haible  <bruno@clisp.org>
57476
57477         * modules/wctype-tests: New file.
57478         * tests/test-wctype.c: New file.
57479
57480         * modules/wchar-tests: New file.
57481         * tests/test-wchar.c: New file.
57482
57483         * modules/unistd-tests: New file.
57484         * tests/test-unistd.c: New file.
57485
57486         * modules/time-tests: New file.
57487         * tests/test-time.c: New file.
57488
57489         * modules/sysexits-tests: New file.
57490         * tests/test-sysexits.c: New file.
57491
57492         * modules/sys_time-tests: New file.
57493         * tests/test-sys_time.c: New file.
57494
57495         * modules/sys_stat-tests: New file.
57496         * tests/test-sys_stat.c: New file.
57497
57498         * modules/sys_socket-tests: New file.
57499         * tests/test-sys_socket.c: New file.
57500
57501         * modules/sys_select-tests: New file.
57502         * tests/test-sys_select.c: New file.
57503
57504         * modules/string-tests: New file.
57505         * tests/test-string.c: New file.
57506
57507         * modules/stdbool-tests: New file.
57508         * tests/test-stdbool.c: New file.
57509
57510         * modules/netinet_in-tests: New file.
57511         * tests/test-netinet_in.c: New file.
57512
57513         * modules/inttypes-tests: New file.
57514         * tests/test-inttypes.c: New file.
57515
57516         * modules/fcntl-tests: New file.
57517         * tests/test-fcntl.c: New file.
57518
57519         * modules/byteswap-tests: New file.
57520         * tests/test-byteswap.c: New file.
57521
57522         * modules/arpa_inet-tests: New file.
57523         * tests/test-arpa_inet.c: New file.
57524
57525 2007-02-17  Bruno Haible  <bruno@clisp.org>
57526
57527         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57528         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57529         if the corresponding module is not enabled. Emit link warnings if
57530         the function is used nevertheless.
57531         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57532         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57533         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57534         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57535         * modules/inttypes (Depends-on): Add link-warning.
57536         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57537         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57538         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57539         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57540         * modules/imaxdiv (configure.ac): Likewise.
57541         * modules/strtoimax (configure.ac): Likewise.
57542         * modules/strtoumax (configure.ac): Likewise.
57543
57544 2007-02-17  Bruno Haible  <bruno@clisp.org>
57545
57546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57547         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57548         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57549         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57550
57551 2007-02-17  Bruno Haible  <bruno@clisp.org>
57552
57553         * modules/link-warning: New file.
57554         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57555         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57556         * modules/string (Depends-on): Add link-warning.
57557         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57558         string.h.
57559         * MODULES.html.sh (Support for building libraries and executables): Add
57560         link-warning.
57561
57562 2007-02-17  Bruno Haible  <bruno@clisp.org>
57563
57564         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57565         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57566         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57567         long lines.
57568
57569 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57570             Bruno Haible  <bruno@clisp.org>
57571
57572         * modules/tmpfile: New file.
57573         * lib/tmpfile.c: New file.
57574         * m4/tmpfile.m4: New file.
57575         * MODULES.html.sh (func_all_modules): New section "Input/output".
57576
57577 2007-02-15  Bruno Haible  <bruno@clisp.org>
57578
57579         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57580         (supports_delete_on_close): New function.
57581         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57582
57583 2007-02-14  Bruno Haible  <bruno@clisp.org>
57584
57585         * modules/mbspcasecmp-tests: New file.
57586         * tests/test-mbspcasecmp.sh: New file.
57587         * tests/test-mbspcasecmp.c: New file.
57588
57589         New module mbspcasecmp.
57590         * modules/mbspcasecmp: New file.
57591         * lib/mbspcasecmp.c: New file.
57592         * lib/string_.h (strncasecmp): Change warning message.
57593         (mbspcasecmp): New declaration.
57594         * m4/mbspcasecmp.m4: New file.
57595         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57596         GNULIB_MBSPCASECMP.
57597         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57598         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57599
57600 2007-02-14  Bruno Haible  <bruno@clisp.org>
57601
57602         * modules/mbsncasecmp-tests: New file.
57603         * tests/test-mbsncasecmp.sh: New file.
57604         * tests/test-mbsncasecmp.c: New file.
57605
57606         New module mbsncasecmp.
57607         * modules/mbsncasecmp: New file.
57608         * lib/mbsncasecmp.c: New file.
57609         * lib/string_.h (mbsncasecmp): New declaration.
57610         * m4/mbsncasecmp.m4: New file.
57611         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57612         GNULIB_MBSNCASECMP.
57613         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57614         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57615
57616 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57617
57618         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57619         Verify that it doesn't overlap with our flags.
57620         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57621         do not have the desired effect in multibyte locales; instead, use
57622         mbscasecmp.
57623         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57624         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57625         we don't require GNU fnmatch ourselves (if our users require it, they
57626         should do so explicitly).
57627
57628         Fix regex code so it doesn't rely on strcasecmp.
57629         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57630         Otherwise, include gnulib's langinfo.h.
57631         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57632         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57633         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57634         * modules/regex (FILES): Remove m4/codeset.m4.
57635         (Depends-on): Add localcharset.  Remove strcase.
57636
57637 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57638
57639         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57640         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57641
57642 2007-02-13  Bruno Haible  <bruno@clisp.org>
57643
57644         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57645         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57646
57647 2007-02-12  Bruno Haible  <bruno@clisp.org>
57648
57649         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57650         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57651         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57652         time warning rather than a link error.
57653
57654 2007-02-12  Bruno Haible  <bruno@clisp.org>
57655
57656         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57657         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57658         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57659
57660 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57661
57662         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57663         args, not 2.
57664
57665 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57666
57667         New module 'time', so that apps can include <time.h> as per
57668         POSIX and GNU instead of separate include files like time_r.h
57669         and timegm.h.  This implementation tries out a simpler approach
57670         for replacing decls in standard include files (as compared to
57671         the string module), somewhat as an experiment.
57672
57673         * config/srclist.txt: Comment out mktime.c for now.
57674         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57675         since it doesn't apply any more.  Use generic wording instead.
57676         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57677         'time'.
57678         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57679         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57680         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57681         Don't include <sys/types.h>; no longer needed since we assume C89.
57682         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57683         * lib/strftime.c: Likewise.
57684         * lib/time_r.c: Likewise.
57685         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57686         * lib/nanosleep.c: Include <time.h> first, to check interface.
57687         * lib/strptime.c: Likewise.
57688         * lib/time_r.c: Likewise.
57689         * lib/timegm.c: Likewise.
57690         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57691         needed.
57692         * lib/timegm.c: Don't include timegm.h; no longer needed.
57693         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57694         time.h now handles any problems in that area.
57695         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57696         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57697         that time.h defines struct timespec.
57698         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57699         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57700         handles that.
57701         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57702         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57703         needed.  Set REPLACE_LOCALTIME.
57704         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57705         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57706         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57707         nanosleep; time_h.m4 now does that.  Don't require
57708         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57709         module handles this now.
57710         * modules/getdate (Depends-on): Remove timespec.  Add time.
57711         * modules/nanosleep (Depends-on): Likewise.
57712         * modules/stat-time (Depends-on): Likewise.
57713         * modules/nanosleep (Include): Include time.h, not timespec.h.
57714         * modules/strptime (Files): Remove lib/strptime.h.
57715         (Depends-on): Add extensions, time.
57716         (Include): Include time.h, not strptime.h.
57717         * modules/time_r (Files): Remove lib/time_r.h.
57718         (Depends-on): Add time.
57719         (Include): Include time.h, not time_r.h.
57720         * modules/timegm: Likewise.
57721         * modules/timespec (Description): Now does timespec-related decls
57722         of our own, instead of struct timespec itself.
57723         (Depends-on): Add time; remove extensions.
57724         (Maintainer): Add self.
57725         * modules/utimecmp (Depends-on): Add time; remove timespec.
57726         * modules/utimens (Depends-on): Likewise.
57727         * modules/xnanosleep (Depends-on): Likewise.
57728
57729 2007-02-11  Bruno Haible  <bruno@clisp.org>
57730
57731         * lib/c-strstr.c: Include allocsa.h.
57732         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57733         * lib/c-strcasestr.c: Include allocsa.h.
57734         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57735         * lib/strcasestr.c: Include allocsa.h.
57736         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57737         * lib/mbsstr.c: Include allocsa.h.
57738         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57739         allocsa/freesa instead of malloc/free.
57740         * lib/mbscasestr.c: Include allocsa.h.
57741         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57742         allocsa/freesa instead of malloc/free.
57743         * modules/c-strstr (Depends-on): Add allocsa.
57744         * modules/c-strcasestr (Depends-on): Likewise.
57745         * modules/strcasestr (Depends-on): Likewise.
57746         * modules/mbsstr (Depends-on): Likewise.
57747         * modules/mbscasestr (Depends-on): Likewise.
57748
57749 2007-02-11  Bruno Haible  <bruno@clisp.org>
57750
57751         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57752
57753         * modules/mbsspn-tests: New file.
57754         * tests/test-mbsspn.sh: New file.
57755         * tests/test-mbsspn.c: New file.
57756
57757 2007-02-11  Bruno Haible  <bruno@clisp.org>
57758
57759         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57760
57761         * modules/mbspbrk-tests: New file.
57762         * tests/test-mbspbrk.sh: New file.
57763         * tests/test-mbspbrk.c: New file.
57764
57765 2007-02-11  Bruno Haible  <bruno@clisp.org>
57766
57767         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57768         unneeded cast.
57769
57770         * modules/mbscspn-tests: New file.
57771         * tests/test-mbscspn.sh: New file.
57772         * tests/test-mbscspn.c: New file.
57773
57774 2007-02-11  Bruno Haible  <bruno@clisp.org>
57775
57776         * modules/mbscasecmp-tests: New file.
57777         * tests/test-mbscasecmp.sh: New file.
57778         * tests/test-mbscasecmp.c: New file.
57779
57780 2007-02-11  Bruno Haible  <bruno@clisp.org>
57781
57782         Ensure O(n) worst-case complexity of mbscasestr.
57783         * lib/mbscasestr.c: Include stdbool.h.
57784         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57785         functions.
57786         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57787         the bookkeeping indicates that it's worth it.
57788         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57789
57790         * modules/mbscasestr-tests: New file.
57791         * tests/test-mbscasestr1.c: New file.
57792         * tests/test-mbscasestr2.sh: New file.
57793         * tests/test-mbscasestr2.c: New file.
57794         * tests/test-mbscasestr3.sh: New file.
57795         * tests/test-mbscasestr3.c: New file.
57796         * tests/test-mbscasestr4.sh: New file.
57797         * tests/test-mbscasestr4.c: New file.
57798         * m4/locale-tr.m4: New file.
57799
57800 2007-02-11  Bruno Haible  <bruno@clisp.org>
57801
57802         Ensure O(n) worst-case complexity of mbsstr.
57803         * lib/mbsstr.c: Include stdbool.h.
57804         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57805         functions.
57806         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57807         bookkeeping indicates that it's worth it.
57808         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57809
57810         * modules/mbsstr-tests: New file.
57811         * tests/test-mbsstr1.c: New file.
57812         * tests/test-mbsstr2.sh: New file.
57813         * tests/test-mbsstr2.c: New file.
57814         * tests/test-mbsstr3.sh: New file.
57815         * tests/test-mbsstr3.c: New file.
57816         * m4/locale-fr.m4: New file.
57817
57818 2007-02-11  Bruno Haible  <bruno@clisp.org>
57819
57820         * lib/mbsrchr.c (mbsrchr): Fix bug.
57821
57822         * modules/mbsrchr-tests: New file.
57823         * tests/test-mbsrchr.sh: New file.
57824         * tests/test-mbsrchr.c: New file.
57825
57826 2007-02-11  Bruno Haible  <bruno@clisp.org>
57827
57828         * lib/mbschr.c (mbschr): Fix bug.
57829
57830         * modules/mbschr-tests: New file.
57831         * tests/test-mbschr.sh: New file.
57832         * tests/test-mbschr.c: New file.
57833         * m4/locale-zh.m4: New file.
57834
57835 2007-02-11  Bruno Haible  <bruno@clisp.org>
57836
57837         Support for copying multibyte string iterators.
57838         * lib/mbiter.h: Include <string.h>.
57839         (mbiter_multi_copy): New function.
57840         (mbi_copy): New macro.
57841         * lib/mbuiter.h: Include <string.h>.
57842         (mbuiter_multi_copy): New function.
57843         (mbui_copy): New macro.
57844
57845 2007-02-11  Bruno Haible  <bruno@clisp.org>
57846
57847         New module mbslen.
57848         * modules/mbslen: New file.
57849         * lib/mbslen.c: New file.
57850         * lib/string_.h (mbslen): New declaration.
57851         * m4/mbslen.m4: New file.
57852         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57853         GNULIB_MBSLEN.
57854         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57855         * MODULES.html.sh (Internationalization functions): Add mbslen.
57856
57857 2007-02-11  Bruno Haible  <bruno@clisp.org>
57858
57859         Ensure O(n) worst-case complexity of strcasestr substitute.
57860         * lib/strcasestr.c: Include stdbool.h.
57861         (knuth_morris_pratt): New function.
57862         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57863         bookkeeping indicates that it's worth it.
57864         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57865
57866         * modules/strcasestr-tests: New file.
57867         * tests/test-strcasestr.c: New file.
57868
57869 2007-02-11  Bruno Haible  <bruno@clisp.org>
57870
57871         Ensure O(n) worst-case complexity of c_strcasestr.
57872         * lib/c-strcasestr.c: Include stdbool.h, string.h.
57873         (knuth_morris_pratt): New function.
57874         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
57875         the bookkeeping indicates that it's worth it.
57876         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
57877
57878         * modules/c-strcasestr-tests: New file.
57879         * tests/test-c-strcasestr.c: New file.
57880
57881 2007-02-11  Bruno Haible  <bruno@clisp.org>
57882
57883         Ensure O(n) worst-case complexity of c_strstr.
57884         * lib/c-strstr.c: Include stdbool.h, string.h.
57885         (knuth_morris_pratt): New function.
57886         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57887         bookkeeping indicates that it's worth it.
57888         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
57889
57890         * lib/c-strstr.c: Complete rewrite for maintainability.
57891
57892         * modules/c-strstr-tests: New file.
57893         * tests/test-c-strstr.c: New file.
57894
57895 2007-02-11  Bruno Haible  <bruno@clisp.org>
57896
57897         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
57898         5.2.1 and earlier, whereby \055 was treated just like the range
57899         delimiter '-'.
57900         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57901
57902 2007-02-08  Bruno Haible  <bruno@clisp.org>
57903
57904         * modules/regex (Depends-on): Add stdbool.
57905         Reported by Dalibor Topic <robilad@kaffe.org>.
57906
57907 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57908
57909         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
57910         Prefer returning from main to exiting from it.
57911         Remove unnecessary parens after sizeof.
57912
57913 2007-02-05  Bruno Haible  <bruno@clisp.org>
57914
57915         New module mbssep.
57916         * modules/mbssep: New file.
57917         * lib/mbssep.c: New file.
57918         * lib/string_.h (strsep): Add a conditional link warning.
57919         (mbssep): New declaration.
57920         * m4/mbssep.m4: New file.
57921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57922         GNULIB_MBSSEP.
57923         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
57924         * MODULES.html.sh (Internationalization functions): Add mbssep.
57925
57926 2007-02-05  Bruno Haible  <bruno@clisp.org>
57927
57928         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
57929         Optimize search in case of 1 delimiter.
57930
57931 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57932
57933         * lib/acl.h: Include sys/types.h before sys/acl.h.
57934
57935 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57936
57937         Merge upstream fix for glibc bugzilla #3957:
57938
57939         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
57940
57941         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
57942         bit for RE_HAT_LISTS_NOT_NEWLINE.
57943         (build_charclass_op): Remove bogus comment.
57944
57945 2007-02-05  Simon Josefsson  <simon@josefsson.org>
57946
57947         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
57948
57949 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57950
57951         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
57952         * lib/memmem.c [!defined _LIBC]: Include config.h.
57953
57954 2007-02-04  Bruno Haible  <bruno@clisp.org>
57955
57956         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
57957         warning message.
57958
57959 2007-02-04  Bruno Haible  <bruno@clisp.org>
57960
57961         New module mbstok_r.
57962         * modules/mbstok_r: New file.
57963         * lib/mbstok_r.c: New file.
57964         * lib/string_.h (strtok_r): Change argument names to match the
57965         comments. Add a conditional link warning.
57966         (mbstok_r): New declaration.
57967         * m4/mbstok_r.m4: New file.
57968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57969         GNULIB_MBSTOK_R.
57970         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
57971         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
57972
57973 2007-02-04  Bruno Haible  <bruno@clisp.org>
57974
57975         New module mbsspn.
57976         * modules/mbsspn: New file.
57977         * lib/mbsspn.c: New file.
57978         * lib/string_.h (strspn): Add a conditional link warning.
57979         (mbsspn): New declaration.
57980         * m4/mbsspn.m4: New file.
57981         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57982         GNULIB_MBSSPN.
57983         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
57984         * MODULES.html.sh (Internationalization functions): Add mbsspn.
57985
57986 2007-02-04  Bruno Haible  <bruno@clisp.org>
57987
57988         New module mbspbrk.
57989         * modules/mbspbrk: New file.
57990         * lib/mbspbrk.c: New file.
57991         * lib/string_.h (strpbrk): Add a conditional link warning.
57992         (mbspbrk): New declaration.
57993         * m4/mbspbrk.m4: New file.
57994         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57995         GNULIB_MBSPBRK.
57996         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
57997         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
57998
57999 2007-02-04  Bruno Haible  <bruno@clisp.org>
58000
58001         New module mbscspn.
58002         * modules/mbscspn: New file.
58003         * lib/mbscspn.c: New file.
58004         * lib/string_.h (strcspn): Add a conditional link warning.
58005         (mbscspn): New declaration.
58006         * m4/mbscspn.m4: New file.
58007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58008         GNULIB_MBSCSPN.
58009         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
58010         * MODULES.html.sh (Internationalization functions): Add mbscspn.
58011
58012 2007-02-04  Bruno Haible  <bruno@clisp.org>
58013
58014         New module mbscasestr, reduced goal of strcasestr.
58015         * modules/mbscasestr: New file.
58016         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
58017         (mbscasestr): Renamed from strcasestr.
58018         * lib/strcasestr.c: Don't include mbuiter.h.
58019         (strcasestr): Remove support for multibyte locales.
58020         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
58021         Change the conditional link warning.
58022         (mbscasestr): New declaration.
58023         * m4/mbscasestr.m4: New file.
58024         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
58025         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
58026         REPLACE_STRCASESTR.
58027         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
58028         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58029         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58030         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
58031         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
58032         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58033         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
58034         (Depends-on): Remove mbuiter.
58035         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
58036
58037 2007-02-04  Bruno Haible  <bruno@clisp.org>
58038
58039         Simplify handling of strncasecmp.
58040         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
58041         the conditional link warning.
58042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58043         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
58044         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
58045         * modules/strcase (configure.ac): Don't invoke
58046         gl_STRING_MODULE_INDICATOR.
58047         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
58048
58049 2007-02-04  Bruno Haible  <bruno@clisp.org>
58050
58051         New module mbscasecmp, reduced goal of strcasecmp.
58052         * modules/mbscasecmp: New file.
58053         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
58054         (mbscasecmp): Renamed from strcasecmp.
58055         * lib/strcasecmp.c: Don't include mbuiter.h.
58056         (strcasecmp): Remove support for multibyte locales.
58057         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
58058         Change the conditional link warning.
58059         (mbscasecmp): New declaration.
58060         * m4/mbscasecmp.m4: New file.
58061         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
58062         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
58063         REPLACE_STRCASECMP.
58064         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
58065         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58066         GNULIB_MBSCASECMP.
58067         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
58068         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
58069         * modules/strcase (Files): Remove m4/mbrtowc.m4.
58070         (Depends-on): Remove mbuiter.
58071         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
58072
58073 2007-02-04  Bruno Haible  <bruno@clisp.org>
58074
58075         New module mbsstr. Remove module strstr.
58076         * modules/mbsstr: New file.
58077         * modules/strstr: Remove file.
58078         * lib/mbsstr.c: Renamed from lib/strstr.c.
58079         (mbsstr): Renamed from strstr.
58080         * lib/string_.h (strstr): Remove declaration. Change the conditional
58081         link warning.
58082         (mbsstr): New declaration.
58083         * m4/mbsstr.m4: New file.
58084         * m4/strstr.m4: Remove file.
58085         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
58086         REPLACE_STRSTR.
58087         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
58088         Don't initialize GNULIB_STRSTR.
58089         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
58090         substitute GNULIB_STRSTR and REPLACE_STRSTR.
58091         * MODULES.html.sh (Internationalization functions): Add mbsstr.
58092         (Support for systems lacking ANSI C 89): Remove strstr.
58093
58094 2007-02-04  Bruno Haible  <bruno@clisp.org>
58095
58096         New module mbsrchr.
58097         * modules/mbsrchr: New file.
58098         * lib/mbsrchr.c: New file.
58099         * lib/string_.h (strrchr): Add a conditional link warning.
58100         (mbsrchr): New declaration.
58101         * m4/mbsrchr.m4: New file.
58102         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58103         GNULIB_MBSRCHR.
58104         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
58105         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
58106
58107 2007-02-04  Bruno Haible  <bruno@clisp.org>
58108
58109         New module mbschr.
58110         * modules/mbschr: New file.
58111         * lib/mbschr.c: New file.
58112         * lib/string_.h (strchr): Add a conditional link warning.
58113         (mbschr): New declaration.
58114         * m4/mbschr.m4: New file.
58115         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58116         GNULIB_MBSCHR.
58117         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58118         * MODULES.html.sh (Internationalization functions): Add mbschr.
58119
58120 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58121
58122         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
58123
58124         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
58125
58126 2007-02-04  Bruno Haible  <bruno@clisp.org>
58127
58128         New module description section 'configure.ac-early'.
58129         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
58130         (func_get_autoconf_early_snippet): New function.
58131         (func_import, func_create_testdir): Use it. Remove special cases for
58132         modules 'extensions' and 'lock'.
58133         * modules/extensions (configure.ac-early): Require
58134         gl_USE_SYSTEM_EXTENSIONS.
58135         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
58136
58137 2007-02-04  Bruno Haible  <bruno@clisp.org>
58138
58139         Make use of gcj-4.3's -fsource and -ftarget option.
58140         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
58141         and if so try the options -fsource and -ftarget.
58142         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
58143         source_version, ftarget_option, target_version arguments.
58144         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
58145         (is_envjavac_oldgcj_14_14_usable): Renamed from
58146         is_envjavac_gcj_14_14_usable.
58147         (is_envjavac_oldgcj_14_13_usable): Renamed from
58148         is_envjavac_gcj_14_13_usable.
58149         (is_gcj_present): Update.
58150         (is_gcj_43, is_gcj43_usable): New functions.
58151         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
58152         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
58153         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
58154         try the options -fsource and -ftarget.
58155
58156 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58157
58158         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
58159         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
58160         larger value.
58161
58162 2007-02-03  Jim Meyering  <jim@meyering.net>
58163
58164         Give tools a better chance to allocate space for very large buffers.
58165         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
58166
58167         Make pwd and readlink work also when run with an unreadable parent dir
58168         on systems with openat support.
58169         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
58170         provided getcwd function, even when we have openat support.
58171         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
58172
58173 2007-02-02  Bruno Haible  <bruno@clisp.org>
58174
58175         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58176         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
58177         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
58178         portability problems if one of these functions is only used on specific
58179         platforms.
58180         Reported by Paul Eggert.
58181
58182 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
58183
58184         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
58185         is causing more trouble than it's curing.
58186         * lib/regex_internal.h (__mempcpy): Remove.
58187         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
58188         (and make the code a tad smaller to boot).
58189         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
58190
58191 2007-02-02  Jim Meyering  <jim@meyering.net>
58192
58193         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
58194         section, not in the Makefile.am: one.
58195
58196 2007-02-02  Eric Blake  <ebb9@byu.net>
58197
58198         * lib/strchrnul.c: Always include config.h first.
58199
58200         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
58201         gnulib strstr is not necessary here.
58202
58203 2007-02-02  Simon Josefsson  <simon@josefsson.org>
58204
58205         * m4/socklen.m4: Fix typo.
58206
58207 2007-02-02  Eric Blake  <ebb9@byu.net>
58208
58209         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
58210         * modules/netinet_in (Makefile.am): Likewise.
58211
58212 2007-02-01  Bruno Haible  <bruno@clisp.org>
58213
58214         * lib/string_.h (GL_LINK_WARNING): New macro.
58215         (strcasecmp, strstr, strcasestr): If provided by the system,
58216         conditionally define as a macro that leads to a warning instead of to
58217         an error.
58218         (strncasecmp): Conditionally define as a macro that leads to a warning.
58219
58220 2007-02-01  Karl Berry  <karl@gnu.org>
58221
58222         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
58223
58224 2007-02-01  Bruno Haible  <bruno@clisp.org>
58225
58226         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
58227         renamings.
58228
58229 2007-02-01  Eric Blake  <ebb9@byu.net>
58230
58231         * modules/regex (Depends-on): Revert dependence on mempcpy.
58232         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
58233         module's definition of mempcpy.
58234         Reported by Paul Eggert.
58235
58236 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58237
58238         * lib/string_.h: If the gnulib module XYZ is not present, undefine
58239         the symbol XYZ before redefining it.  This fixes a problem with
58240         programs that don't use XYZ, when compiled on systems that define
58241         XYZ to something else.
58242
58243 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
58244
58245         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
58246         occurs when "mkdir -m foo" creates a setgid directory that is (1)
58247         writeable to group or other and (2) is intended to have a special
58248         mode bit that is set or cleared.  In such a case, the directory
58249         should be neither group- nor other-writeable until the special
58250         mode bits are right.
58251
58252 2007-01-31  Eric Blake  <ebb9@byu.net>
58253
58254         * modules/mountlist (Depends-on): Add strstr.
58255
58256         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
58257         bug.
58258         * modules/string (Makefile.am): Remove redundant replacement.
58259         * modules/regex (Depends-on): Add mempcpy.
58260
58261 2007-01-31  Bruno Haible  <bruno@clisp.org>
58262
58263         New module description field 'Link'.
58264         * gnulib-tool (func_usage): Document --extract-link-directive.
58265         (sed_extract_prog): Recognize 'Link' directive.
58266         (func_get_link_directive): New function.
58267         (func_import): Show summary of link directives.
58268         Handle --extract-link-directive option.
58269         * modules/acl (Link): New section.
58270         * modules/clock-time (Link): New section.
58271         * modules/euidaccess (Link): New section.
58272         * modules/gettext (Link): New section.
58273         * modules/iconv (Link): New section.
58274         * modules/lock (Link): New section.
58275         * modules/nanosleep (Link): New section.
58276         * modules/readline (Link): New section.
58277
58278 2007-01-27  Bruno Haible  <bruno@clisp.org>
58279
58280         Enforce the use of gnulib modules for unportable <string.h> functions.
58281         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
58282         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
58283         (gl_HEADER_STRING_H_BODY): Require it.
58284         * lib/string_.h: If the gnulib module XYZ is not present, redefine
58285         the symbol XYZ to one that gives a link error.
58286         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
58287         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
58288         * modules/mempcpy (configure.ac): Likewise.
58289         * modules/memrchr (configure.ac): Likewise.
58290         * modules/stpcpy (configure.ac): Likewise.
58291         * modules/stpncpy (configure.ac): Likewise.
58292         * modules/strcase (configure.ac): Likewise.
58293         * modules/strcasestr (configure.ac): Likewise.
58294         * modules/strchrnul (configure.ac): Likewise.
58295         * modules/strdup (configure.ac): Likewise.
58296         * modules/strndup (configure.ac): Likewise.
58297         * modules/strnlen (configure.ac): Likewise.
58298         * modules/strpbrk (configure.ac): Likewise.
58299         * modules/strsep (configure.ac): Likewise.
58300         * modules/strstr (configure.ac): Likewise.
58301         * modules/strtok_r (configure.ac): Likewise.
58302
58303 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58304
58305         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58306
58307 2007-01-30  Jim Meyering  <jim@meyering.net>
58308
58309         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58310
58311 2007-01-29  Bruno Haible  <bruno@clisp.org>
58312
58313         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58314         * lib/execute.c: Likewise.
58315         * lib/pipe.c: Likewise.
58316         * lib/printf-args.h: Likewise.
58317         * lib/printf-args.c: Likewise.
58318         * lib/printf-parse.c: Likewise.
58319         * lib/vasnprintf.c: Likewise.
58320
58321 2007-01-29  Eric Blake  <ebb9@byu.net>
58322
58323         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58324         declaration.
58325
58326 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58327
58328         * lib/strptime.h (strptime): Use 'restrict' for args where
58329         POSIX requires this.
58330         * lib/strptime.c (strptime): Likewise.
58331         Change license notice from LGPL to GPL, since gnulib-tool will
58332         change this as needed.
58333         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58334         defined.
58335         Include "strptime.h" first, to check interface.
58336         Do not #undef _LIBC and _NL_CURRENT.
58337         Do not include <stdlib.h>; no longer needed.
58338         Include "time_r.h" and declare ptime_locale_status
58339         only if _LIBC is not defined.
58340         (__P): Remove unused macro.
58341         (match_string): Bring back glibc version, but use it only if _LIBC
58342         is defined.
58343         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58344         Remove unnecessary assertion and abort() call.
58345         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58346         * m4/strptime.m4: Fix serial number comment.
58347         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58348         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58349         (Depends-on): Add time_r.
58350
58351 2007-01-29  Bruno Haible  <bruno@clisp.org>
58352
58353         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58354         strptime.
58355         * modules/strptime (Depends-on): Add stdbool.
58356         * lib/strptime.h: Include <time.h> always. Add comments.
58357
58358 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58359
58360         * modules/strptime: New file.
58361         * lib/strptime.h: New file.
58362         * lib/strptime.c: New file.
58363         * m4/strptime.m4: New file.
58364
58365 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58366
58367         * MODULES.html.sh: New module mpsort.
58368         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58369
58370         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58371         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58372         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58373         All uses changed.
58374         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58375         All uses changed.
58376         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58377         to _Restrict_.
58378         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58379         the parameter matches the prototype.
58380
58381 2007-01-28  Jim Meyering  <jim@meyering.net>
58382
58383         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58384         sys/time.h here, reverting that part of the previous patch:
58385         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58386
58387 2007-01-28  Bruno Haible  <bruno@clisp.org>
58388
58389         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58390         value of $(SYS_TIME_H).
58391         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58392         remove it conditionally, too. [added by Jim Meyering]
58393         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58394         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58395         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58396         GETTIMEOFDAY_REPLACEMENT to 1.
58397
58398 2007-01-28  Bruno Haible  <bruno@clisp.org>
58399
58400         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58401         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58402         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58403         Set UNISTD_H instead of UNISTD_H2.
58404         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58405
58406 2007-01-28  Bruno Haible  <bruno@clisp.org>
58407
58408         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58409         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58410
58411 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58412
58413         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58414         (func_create_testdir): Ensure C locale for `grep' and `tr'
58415         character ranges.
58416         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58417         ACLOCAL_AMFLAGS parsing state machine.
58418
58419 2007-01-27  Bruno Haible  <bruno@clisp.org>
58420
58421         * modules/unistr/base: Update.
58422
58423 2007-01-27  Bruno Haible  <bruno@clisp.org>
58424
58425         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58426         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58427         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58428         modules/unistr/u32-mbtouc.
58429         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58430         * lib/unistr.h: Update.
58431         * lib/linebreak.c: Update.
58432         * modules/unistr/u32-mbtouc: Renamed from
58433         modules/unistr/u32-mbtouc-safe.
58434         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58435         * lib/unistr.h: Update.
58436         * lib/unistr/u32-to-u8.c: Update.
58437         * lib/unistr/u32-to-u16.c: Update.
58438
58439 2007-01-27  Bruno Haible  <bruno@clisp.org>
58440
58441         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58442         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58443         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58444         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58445         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58446         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58447         modules/unistr/u16-mbtouc.
58448         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58449         * lib/unistr.h: Update.
58450         * lib/linebreak.c: Update.
58451         * modules/linebreak: Update.
58452         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58453         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58454         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58455         * modules/unistr/u16-mbtouc: Renamed from
58456         modules/unistr/u16-mbtouc-safe.
58457         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58458         * lib/unistr.h: Update.
58459         * lib/unistr/u16-to-u8.c: Update.
58460         * modules/unistr/u16-to-u8: Update.
58461         * lib/unistr/u16-to-u32.c: Update.
58462         * modules/unistr/u16-to-u32: Update.
58463
58464 2007-01-27  Bruno Haible  <bruno@clisp.org>
58465
58466         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58467         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58468         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58469         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58470         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58471         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58472         modules/unistr/u8-mbtouc.
58473         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58474         * lib/unistr.h: Update.
58475         * lib/striconveh.c: Update.
58476         * modules/striconveh: Update.
58477         * lib/linebreak.c: Update.
58478         * modules/linebreak: Update.
58479         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58480         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58481         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58482         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58483         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58484         * lib/unistr.h: Update.
58485         * lib/striconveh.c: Update.
58486         * modules/striconveh: Update.
58487         * lib/unistr/u8-to-u16.c: Update.
58488         * modules/unistr/u8-to-u16: Update.
58489         * lib/unistr/u8-to-u32.c: Update.
58490         * modules/unistr/u8-to-u32: Update.
58491
58492 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58493
58494         Sync from Libtool.
58495         * lib/argz.c: Do not include strings.h nor memory.h, include
58496         string.h unconditionally.  Patch by Simon Josefsson.
58497
58498 2007-01-27  Bruno Haible  <bruno@clisp.org>
58499
58500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58501         from gl_HEADER_STRING_H_BODY.
58502         (gl_HEADER_STRING_H_BODY): Require it.
58503         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58504         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58505         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58506         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58507         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58508         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58510         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58511         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58512         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58513         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58514         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58515         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58516         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58517         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58518
58519 2007-01-27  Bruno Haible  <bruno@clisp.org>
58520
58521         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58522         check_PROGRAMS into noinst_PROGRAMS.
58523         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58524         check_PROGRAMS in this case.
58525         (func_import): Set for_test to false.
58526         (func_create_testdir): Set for_test to true.
58527
58528 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58529             Bruno Haible  <bruno@clisp.org>
58530
58531         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58532         (Depends-on): Add string.
58533         (Includes): Use <string.h> instead of strcasestr.h.
58534         * modules/string (Makefile.am): Also substitute the value of
58535         REPLACE_STRCASESTR.
58536         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58537         assume strcasestr is declared in <string.h> not <strings.h>. Also
58538         set REPLACE_STRCASESTR.
58539         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58540         REPLACE_STRCASESTR.
58541         * lib/strcasestr.h: Remove file.
58542         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58543         * lib/string_.h (strcasestr): New declaration.
58544
58545 2007-01-27  Bruno Haible  <bruno@clisp.org>
58546
58547         * lib/string_.h: Use 'extern'.
58548
58549 2007-01-27  Jim Meyering  <jim@meyering.net>
58550
58551         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58552         of set-but-not-used local, "q".
58553
58554         * lib/mempcpy.c: Include <config.h> before <string.h>.
58555         This fixes a compilation error on HP-UX, due to the system's
58556         "restrict"-using mempcpy prototype.
58557
58558 2007-01-26  Bruno Haible  <bruno@clisp.org>
58559
58560         Small optimization.
58561         * lib/javacomp.c: Include c-strstr.h.
58562          (is_envjavac_gcj): Use c_strstr instead of strstr.
58563         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58564
58565 2007-01-26  Bruno Haible  <bruno@clisp.org>
58566
58567         * MODULES.html.sh (Unicode string functions): Add the new modules.
58568
58569         * modules/uniconv/u32-strconv-to-locale: New file.
58570         * lib/uniconv/u32-strconv-to-locale.c: New file.
58571
58572         * modules/uniconv/u16-strconv-to-locale: New file.
58573         * lib/uniconv/u16-strconv-to-locale.c: New file.
58574
58575         * modules/uniconv/u8-strconv-to-locale: New file.
58576         * lib/uniconv/u8-strconv-to-locale.c: New file.
58577
58578         * modules/uniconv/u32-strconv-from-locale: New file.
58579         * lib/uniconv/u32-strconv-from-locale.c: New file.
58580
58581         * modules/uniconv/u16-strconv-from-locale: New file.
58582         * lib/uniconv/u16-strconv-from-locale.c: New file.
58583
58584         * modules/uniconv/u8-strconv-from-locale: New file.
58585         * lib/uniconv/u8-strconv-from-locale.c: New file.
58586
58587         * modules/uniconv/u32-strconv-to-enc: New file.
58588         * lib/uniconv/u32-strconv-to-enc.c: New file.
58589         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58590         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58591
58592         * modules/uniconv/u16-strconv-to-enc: New file.
58593         * lib/uniconv/u16-strconv-to-enc.c: New file.
58594         * lib/uniconv/u-strconv-to-enc.h: New file.
58595         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58596         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58597
58598         * modules/uniconv/u8-strconv-to-enc: New file.
58599         * lib/uniconv/u8-strconv-to-enc.c: New file.
58600         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58601         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58602
58603         * modules/uniconv/u32-strconv-from-enc: New file.
58604         * lib/uniconv/u32-strconv-from-enc.c: New file.
58605         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58606         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58607
58608         * modules/uniconv/u16-strconv-from-enc: New file.
58609         * lib/uniconv/u16-strconv-from-enc.c: New file.
58610         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58611         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58612
58613         * modules/uniconv/u8-strconv-from-enc: New file.
58614         * lib/uniconv/u8-strconv-from-enc.c: New file.
58615         * lib/uniconv/u-strconv-from-enc.h: New file.
58616         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58617         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58618
58619         * modules/uniconv/u32-conv-from-enc: New file.
58620         * lib/uniconv/u32-conv-from-enc.c: New file.
58621         * modules/uniconv/u32-conv-from-enc-tests: New file.
58622         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58623
58624         * modules/uniconv/u16-conv-from-enc: New file.
58625         * lib/uniconv/u16-conv-from-enc.c: New file.
58626         * lib/uniconv/u-conv-from-enc.h: New file.
58627         * modules/uniconv/u16-conv-from-enc-tests: New file.
58628         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58629
58630         * modules/uniconv/u8-conv-from-enc: New file.
58631         * lib/uniconv/u8-conv-from-enc.c: New file.
58632         * modules/uniconv/u8-conv-from-enc-tests: New file.
58633         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58634
58635         * modules/uniconv/base: New file.
58636         * lib/uniconv.h: New file.
58637
58638 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58639
58640         * doc/gnulib-tool.texi (Initial import): Update to match current
58641         behavior with strdup module.
58642         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58643         * lib/memmem.h: Remove; all uses removed.  This is now done
58644         by <string.h>.
58645         * lib/mempcpy.h: Likewise.
58646         * lib/memrchr.h: Likewise.
58647         * lib/stpcpy.h: Likewise.
58648         * lib/stpncpy.h: Likewise.
58649         * lib/strcase.h: Likewise.
58650         * lib/strchrnul.h: Likewise.
58651         * lib/strdup.h: Likewise.
58652         * lib/strndup.h: Likewise.
58653         * lib/strnlen.h: Likewise.
58654         * lib/strpbrk.h: Likewise.
58655         * lib/strsep.h: Likewise.
58656         * lib/strstr.h: Likewise.
58657         * lib/strtok_r.h: Likewise.
58658         * lib/string_.h: New file.
58659         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58660         Rely on <string.h> instead.
58661         * lib/canon-host.c: Likewise.
58662         * lib/chdir-long.c: Likewise.
58663         * lib/concatpath.c: Likewise.
58664         * lib/exclude.c: Likewise.
58665         * lib/fchdir.c: Likewise.
58666         * lib/getaddrinfo.c: Likewise.
58667         * lib/getcwd.c: Likewise.
58668         * lib/getsubopt.c: Likewise.
58669         * lib/glob.c: Likewise.
58670         * lib/hard-locale.c: Likewise.
58671         * lib/iconvme.c: Likewise.
58672         * lib/javacomp.c: Likewise.
58673         * lib/mempcpy.c: Likewise.
58674         * lib/memrchr.c: Likewise.
58675         * lib/regex_internal.h: Likewise.
58676         * lib/stpncpy.c: Likewise.
58677         * lib/strcasecmp.c: Likewise.
58678         * lib/strchrnul.c: Likewise.
58679         * lib/strdup.c: Likewise.
58680         * lib/striconv.c: Likewise.
58681         * lib/striconveh.c: Likewise.
58682         * lib/striconveha.c: Likewise.
58683         * lib/strncasecmp.c: Likewise.
58684         * lib/strndup.c: Likewise.
58685         * lib/strnlen.c: Likewise.
58686         * lib/strsep.c: Likewise.
58687         * lib/strstr.c: Likewise.
58688         * lib/strtok_r.c: Likewise.
58689         * lib/userspec.c: Likewise.
58690         * lib/w32spawn.h: Likewise.
58691         * lib/xstrndup.c: Likewise.
58692         * lib/mountlist.c (strstr): Remove decl.
58693         * m4/string_h.m4: New file.
58694         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58695         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58696         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58697         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58698         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58699         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58700         Set REPLACE_STRCASECMP if necessary.
58701         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58702         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58703         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58704         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58705         HAVE_DECL_STRDUP if necessary.
58706         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58707         since gl_FUNC_STRNDUP does that now.
58708         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58709         Check for decl here...
58710         (gl_PREREQ_STRNLEN): ... not here.
58711         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58712         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58713         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58714         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58715         necessary.
58716         * modules/string: New file.
58717         * modules/memmem (Files): Remove special-purpose include file.
58718         (Depends-on): Add string.
58719         (Include): Include <string.h>, not the removed file.
58720         * modules/mempcpy: Likewise.
58721         * modules/memrchr: Likewise.
58722         * modules/stpcpy: Likewise.
58723         * modules/stpncpy: Likewise.
58724         * modules/strcase: Likewise.
58725         * modules/strchrnul: Likewise.
58726         * modules/strdup: Likewise.
58727         * modules/strndup: Likewise.
58728         * modules/strnlen: Likewise.
58729         * modules/strpbrk: Likewise.
58730         * modules/strsep: Likewise.
58731         * modules/strstr: Likewise.
58732         * modules/strtok_r: Likewise.
58733         * tests/test-dirname.c: Don't include "strdup.h", since
58734         <string.h> now suffices.
58735         * tests/test-memmem.c: Don't include "memmem.h", since
58736         <string.h> now suffices.
58737
58738 2007-01-25  Bruno Haible  <bruno@clisp.org>
58739
58740         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58741         *resultp is 0.
58742
58743         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58744         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58745         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58746         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58747
58748         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58749         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58750         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58751         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58752         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58753         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58754
58755 2007-01-24  Bruno Haible  <bruno@clisp.org>
58756
58757         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58758         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58759         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58760         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58761         gl_FUNC_FTS_CORE.
58762         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58763         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58764         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58765         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58766         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58767         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58768         gl_FUNC_FCHOWNAT.
58769         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58770         gl_FUNC_STRFTIME.
58771         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58772         Reported by Ralf Wildenhues.
58773
58774 2007-01-24  Bruno Haible  <bruno@clisp.org>
58775
58776         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58777         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58778         gl_GETADDRINFO.
58779         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58780         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58781         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58782
58783 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58784
58785         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58786         Don't use 'exit'; just return from 'main'.
58787         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58788
58789         * lib/fnmatch_.h: Readjust white space and comments to match
58790         glibc, to avoid spurious diffs.
58791
58792 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58793
58794         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58795         2004-12-01 change by Jakub Jelinek, since this code won't compile
58796         if !LIBC.  Problem reported by Bob Proulx.
58797
58798 2007-01-23  Bruno Haible  <bruno@clisp.org>
58799
58800         * lib/striconveh.c: Include c-strcaseeq.h.
58801         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58802         * modules/striconveh (Depends-on): Add c-strcaseeq.
58803
58804 2007-01-23  Bruno Haible  <bruno@clisp.org>
58805
58806         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58807
58808         * modules/c-strcaseeq: New file.
58809         * lib/c-strcaseeq.h: New file.
58810
58811         * modules/streq: New file.
58812         * lib/streq.h: New file.
58813
58814 2007-01-23  Bruno Haible  <bruno@clisp.org>
58815
58816         * modules/striconveha-tests: New file.
58817         * tests/test-striconveha.c: New file.
58818
58819         * lib/striconveha.h: Include <stdbool.h>.
58820         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58821         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58822         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58823         (mem_iconveha): New function.
58824         (str_iconveha_notranslit): Renamed from str_iconveha.
58825         (str_iconveha): New function.
58826         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58827         c-strcase.
58828
58829 2007-01-23  Bruno Haible  <bruno@clisp.org>
58830
58831         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58832         encodings without forgiving before trying any encoding with handler.
58833         (str_iconveha): Try all encodings without forgiving before trying any
58834         encoding with handler.
58835
58836 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58837
58838         Import the following changes from libc.
58839
58840         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58841
58842         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58843
58844         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58845
58846         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58847         normal_bracket label.
58848
58849         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58850
58851         [BZ #361]
58852         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58853         to normal_bracket after fetching the next character.
58854
58855 2007-01-22  Bruno Haible  <bruno@clisp.org>
58856
58857         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58858         argument.
58859         * lib/striconveh.c (iconv_carefully_1): New function.
58860         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58861         argument.
58862         (str_cd_iconveh): Update.
58863         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58864         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58865         * tests/test-striconveh.c (MAGIC): New macro.
58866         (new_offsets): New function.
58867         (main): Test call with and without offsets.
58868
58869 2007-01-22  Bruno Haible  <bruno@clisp.org>
58870
58871         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
58872         * modules/sys_select (Makefile.am): Likewise.
58873         * modules/sys_socket (Makefile.am): Likewise.
58874         * modules/sys_time (Makefile.am): Likewise.
58875
58876 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58877
58878         * modules/gettimeofday (License): Change from GPL to LGPL, since
58879         gettimeofday is a library function.
58880
58881 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58882
58883         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
58884
58885 2007-01-21  Bruno Haible  <bruno@clisp.org>
58886
58887         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
58888
58889 2007-01-21  Bruno Haible  <bruno@clisp.org>
58890
58891         * modules/striconveha: New file.
58892         * lib/striconveha.h: New file.
58893         * lib/striconveha.c: New file.
58894         * MODULES.html.sh (Internationalization functions): Add striconveha.
58895         * lib/striconv.c (str_iconv): Optimize the case of an empty input
58896         string.
58897         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
58898
58899 2007-01-21  Bruno Haible  <bruno@clisp.org>
58900
58901         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
58902         * lib/striconveh.c (str_iconveh): Likewise.
58903
58904 2007-01-21  Bruno Haible  <bruno@clisp.org>
58905
58906         * lib/striconveh.h (mem_iconveh): New declaration.
58907         * lib/striconveh.c (mem_iconveh): New function.
58908         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
58909
58910 2007-01-21  Bruno Haible  <bruno@clisp.org>
58911
58912         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
58913
58914         * lib/striconveh.h (mem_cd_iconveh): Change specification.
58915         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
58916         original result buffer.
58917         (str_cd_iconveh): Update.
58918         * tests/test-striconveh.c (main): Update.
58919
58920         * lib/striconv.h (mem_cd_iconv): Change specification.
58921         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
58922         result buffer.
58923         (str_cd_iconv): Update.
58924         * tests/test-striconv.c (main): Update.
58925
58926 2007-01-21  Bruno Haible  <bruno@clisp.org>
58927
58928         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
58929
58930 2007-01-20  Jim Meyering  <jim@meyering.net>
58931
58932         * lib/userspec.c (parse_with_separator): If a user or group string
58933         starts with "+", skip the corresponding name-to-ID look-up, since
58934         such a look-up must fail: user and group names may not include "+".
58935
58936 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58937
58938         * lib/poll.c: Include sys/time.h and time.h unconditionally,
58939         since we now assume the sys_time module.
58940         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
58941         check for sys/time.h; no longer needed.
58942         * modules/poll (Depends-on): Depend on sys_time.
58943
58944 2007-01-18  Bruno Haible  <bruno@clisp.org>
58945
58946         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
58947         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58948
58949         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
58950         gettimeofday.
58951
58952         * tests/test-gettimeofday.c: Include <time.h>.
58953         (dummy): Remove variable.
58954
58955         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
58956         gl_HEADER_SYS_TIME_H.
58957         (gl_HEADER_SYS_TIME_H): New macro.
58958
58959         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
58960         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58961         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
58962         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
58963         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58964         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
58965         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
58966         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58967         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
58968         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
58969         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58970
58971         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
58972         last change; it caused a compilation error when cross-compiling to
58973         Cygwin.
58974
58975 2007-01-18  Jim Meyering  <jim@meyering.net>
58976
58977         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
58978         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
58979         than the race-prone "test -d sys || mkdir sys".
58980         (configure.ac): Use AC_PROG_MKDIR_P.
58981         * modules/sys_select: Likewise.
58982         * modules/sys_socket: Likewise.
58983         * modules/sys_time: Likewise.
58984
58985 2007-01-18  Eric Blake  <ebb9@byu.net>
58986
58987         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
58988         replace gettimeofday.
58989         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
58990         name, to avoid infinite recursion.
58991
58992 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
58993
58994         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
58995         module sys_time.
58996         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
58997         assume timespec.h defines struct timeval.
58998         * lib/settime.c: Likewise.
58999         * lib/utimens.c: Likewise.
59000         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
59001         since we now assume the gettimeofday module.
59002         * lib/tempname.c (__gen_tempname): Likewise.
59003         * lib/gettimeofday.h: Remove.
59004         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
59005         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
59006         Include <time.h>, for 'time()'.
59007         (localtime_buffer_addr): Also use this workaround if
59008         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
59009         to simplify the uses.  All uses changed.
59010         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
59011         that #undef is inside {}, and 'const' follows type name consistently.
59012         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
59013         (gettimeofday): Do not use the maximum possible value for
59014         tv->tv_usec, since that might break usages other than ls.c.
59015         Instead, we'll leave ls.c alone.  This undoes today's patch
59016         by Bruno.  Add a compile-time warning for 1s-clock resolution;
59017         we've never observed the problem but might as well keep the
59018         canary.
59019         * lib/nanosleep.c: Include timespec.h first, for interface check.
59020         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
59021         now assume the sys_time module.
59022         * lib/tempname.c: Likewise.
59023         * lib/timespec.h: Likewise.
59024         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
59025         needed.
59026         * lib/strftime.c: Likewise.
59027         * lib/timespec.h: Likewise.
59028         * lib/posixtm.c: Include posixtm.h first, for interface check.
59029         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
59030         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
59031         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
59032         * lib/sys_time_.h: New file.
59033         * lib/timespec.h (struct timespec): Use long int, not long.
59034         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59035         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
59036         Remove obsolescent call to AC_HEADER_TIME.
59037         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59038         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59039         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59040         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
59041         Likewise.
59042         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
59043         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
59044         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
59045         into the sys_time module.  Check for gettimeofday just once.
59046         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
59047         for gettimeofday signature to just check the signature.  Merely
59048         compile it, since linking doesn't test signature.  Improve test for
59049         whether gettimeofday.o is actually needed.
59050         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
59051         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
59052         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
59053         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59054         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
59055         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
59056         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
59057         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
59058         than worrying about sys/time.h.
59059         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59060         Don't bother worrying about TIME_WITH_SYS_TIME.
59061         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
59062         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
59063         * m4/sys_time_h.m4: New file.
59064         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
59065         Don't include sys/time.h.  Return from main rather than exiting.
59066         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
59067         all uses changed.
59068         * modules/gethrxtime (Depends-on): Add sys_time.
59069         * modules/gettime (Depends-on): Likewise.
59070         * modules/gettimeofday (Depends-on): Likewise.
59071         * modules/nanosleep (Depends-on): Likewise.
59072         * modules/settime (Depends-on): Likewise.
59073         * modules/tempname (Depends-on): Likewise.
59074         * modules/utimens (Depends-on): Likewise.
59075         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
59076         (Include): Change back to <sys/time.h>.
59077         (Maintainer): Add self.
59078         * modules/sys_time: New file.
59079         * modules/tempname (Depends-on): Add gettimeofday.
59080         * tests/test-gettimeofday.c: Include <sys/time.h>
59081         rather than gettimeofday.h.
59082
59083 2007-01-17  Bruno Haible  <bruno@clisp.org>
59084
59085         * gnulib-tool (func_get_license): Revert last patch. Instead, let
59086         the license default to GPL.
59087         (func_create_testdir): Don't complain if a module is LGPL and its
59088         tests module depends on GPLed modules.
59089
59090 2007-01-17  Bruno Haible  <bruno@clisp.org>
59091
59092         * lib/gettimeofday.c (gettimeofday): Add code for the case
59093         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
59094         maximum possible value for tv->tv_usec, rather than the minimum one.
59095
59096 2005-10-08  Martin Lambers  <marlam@marlam.de>
59097 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59098 2007-01-16  Bruno Haible  <bruno@clisp.org>
59099
59100         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
59101         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
59102         gl_FUNC_GETTIMEOFDAY.
59103         (Include): Add gettimeofday.h.
59104         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
59105         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
59106         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
59107         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
59108         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
59109         * lib/gettimeofday.h: New file.
59110         * lib/gettimeofday.c: Include <sys/timeb.h>.
59111         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
59112         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59113         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59114         fall back on time().
59115
59116         * tests/test-gettimeofday.c: New file.
59117         * modules/gettimeofday-tests: New file.
59118
59119 2007-01-16  Eric Blake  <ebb9@byu.net>
59120
59121         * modules/fnmatch (Depends-on): Depend on wchar.
59122         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
59123         * m4/fnmatch.m4: Likewise.
59124         * modules/mbchar (Makefile.am): Assume <wchar.h>.
59125         * m4/mbchar.m4: Likewise.
59126         * modules/mbswidth (Depends-on): Depend on wchar.
59127         * lib/mbswidth.c: Assume <wchar.h>.
59128         * m4/mbswidth.m4: Likewise.
59129         * modules/quotearg (Depends-on): Depend on wchar.
59130         * lib/quotearg.c: Assume <wchar.h>.
59131         * m4/quotearg.m4: Likewise.
59132         * modules/regex (Depends-on): Depend on wchar.
59133         * lib/regex_internal.h: Assume <wchar.h>.
59134         * m4/regex.m4: Likewise.
59135         * modules/stdint (Depends-on): Depend on wchar.
59136         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
59137         * m4/stdint.m4: Likewise.
59138         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
59139         * modules/strftime (Depends-on): Depend on wchar.
59140         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
59141         * modules/strtol (Depends-on): Depend on wchar.
59142         * lib/strtol.c: Assume <wchar.h>.
59143         * modules/wcwidth (Depends-on): Depend on wchar.
59144         * lib/wcwidth.h: Assume <wchar.h>.
59145         * m4/wcwidth.m4: Likewise.
59146
59147 2007-01-16  Bruno Haible  <bruno@clisp.org>
59148
59149         * modules/csharpexec-script: New, created from...
59150         * modules/csharpexec: ... this.
59151
59152 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59153
59154         * modules/javaexec-script: New, created from...
59155         * modules/javaexec: ... this.
59156
59157 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59158
59159         * modules/poll (Dependencies): Add sys_select.
59160
59161 2007-01-15  Jim Meyering  <jim@meyering.net>
59162
59163         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
59164         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
59165         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
59166         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
59167
59168 2007-01-15  Bruno Haible  <bruno@clisp.org>
59169
59170         * modules/striconveh: New file.
59171         * lib/striconveh.h: New file.
59172         * lib/striconveh.c: New file.
59173         * MODULES.html.sh (Internationalization functions): Add striconveh.
59174
59175         * modules/striconveh-tests: New file.
59176         * tests/test-striconveh.c: New file.
59177
59178 2007-01-15  Bruno Haible  <bruno@clisp.org>
59179
59180         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
59181         not from GNU libiconv or GNU libc.
59182
59183 2007-01-15  Bruno Haible  <bruno@clisp.org>
59184
59185         * doc/gnulib-intro.texi (Copyright): Explain the different license
59186         terms for module descriptions, autoconf macros, tests, documentation.
59187
59188 2007-01-14  Bruno Haible  <bruno@clisp.org>
59189
59190         * modules/striconv-tests: New file.
59191         * tests/test-striconv.c: New file.
59192
59193 2007-01-14  Bruno Haible  <bruno@clisp.org>
59194
59195         * modules/iconv-tests: New file.
59196         * tests/test-iconv.c: New file.
59197
59198 2007-01-14  Bruno Haible  <bruno@clisp.org>
59199
59200         * gnulib-tool (func_get_license): For test modules, use the license of
59201         the main module.
59202
59203 2007-01-14  Bruno Haible  <bruno@clisp.org>
59204
59205         * modules/iconv (Include): Clarify that <iconv.h> can only be included
59206         if iconv is found to exist.
59207
59208 2007-01-14  Bruno Haible  <bruno@clisp.org>
59209
59210         * modules/c-ctype-tests: New file.
59211         * tests/test-c-ctype.c: New file.
59212
59213 2007-01-14  Bruno Haible  <bruno@clisp.org>
59214
59215         * modules/binary-io-tests: New file.
59216         * tests/test-binary-io.sh: New file.
59217         * tests/test-binary-io.c: New file.
59218
59219 2007-01-14  Bruno Haible  <bruno@clisp.org>
59220
59221         * modules/array-oset-tests: New file.
59222         * tests/test-array_oset.c: New file.
59223
59224 2007-01-14  Bruno Haible  <bruno@clisp.org>
59225
59226         * modules/array-list-tests: New file.
59227         * tests/test-array_list.c: New file.
59228
59229 2007-01-14  Bruno Haible  <bruno@clisp.org>
59230
59231         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
59232         and make.
59233         Reported by Simon Josefsson in
59234         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
59235
59236 2007-01-14  Bruno Haible  <bruno@clisp.org>
59237
59238         * modules/allocsa-tests: New file.
59239         * tests/test-allocsa.c: New file.
59240
59241 2007-01-14  Bruno Haible  <bruno@clisp.org>
59242
59243         * modules/fchdir (Depends-on): Add absolute-header.
59244         * modules/unistd (Depends-on): Likewise.
59245
59246 2006-12-30  Bruno Haible  <bruno@clisp.org>
59247
59248         * modules/fchdir: New file.
59249         * modules/unistd (Files): Add lib/unistd_.h.
59250         (Makefile.am): Generate unistd.h from unistd_.h.
59251         * lib/fchdir.c: New file.
59252         * lib/dirent_.h: New file.
59253         * lib/unistd_.h: New file.
59254         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
59255         * m4/fchdir.m4: New file.
59256         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
59257         (gl_HEADER_UNISTD): Invoke it.
59258         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
59259         function.
59260         * lib/backupfile.c (opendir, closedir): Undefine.
59261         * lib/chown.c (open, close): Undefine.
59262         * lib/clean-temp.c (open, close): Undefine.
59263         * lib/copy-file.c (open, close): Undefine.
59264         * lib/execute.c (open, close): Undefine.
59265         * lib/fsusage.c (open, close): Undefine.
59266         * lib/gc-gnulib.c (open, close): Undefine.
59267         * lib/getcwd.c (opendir, closedir): Undefine.
59268         * lib/glob.c (opendir, closedir): Undefine.
59269         * lib/javacomp.c (open, close): Undefine.
59270         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
59271         * lib/openat-proc.c (open, close): Undefine.
59272         * lib/pagealign_alloc.c (open, close): Undefine.
59273         * lib/pipe.c (open, close): Undefine.
59274         * lib/progreloc.c (open, close): Undefine.
59275         * lib/savedir.c (opendir, closedir): Undefine.
59276         * lib/utime.c (open, close): Undefine.
59277         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
59278
59279 2007-01-10  Bruno Haible  <bruno@clisp.org>
59280
59281         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
59282
59283 2007-01-12  Eric Blake  <ebb9@byu.net>
59284
59285         Provide a robust <wchar.h>.  Further simplifications are now
59286         possible in other modules, but not included here.
59287         * modules/wchar: New module.
59288         * m4/wchar.m4: New file.
59289         * lib/wchar_.h: Likewise.
59290         * modules/mbchar (Depends-on): Depend on wchar, as the first use
59291         of the new module.
59292         * MODULES.html.sh (Extended multibyte and wide character utilities):
59293         New section.
59294
59295 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59296
59297         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59298         to a reasonable default for memory allocation.
59299         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59300         file system that reports garbage st_size values for symlinks.
59301         Problem reported by Liyang Hu.
59302
59303 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59304
59305         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59306         Emacs .#* auto-save files).
59307
59308 2007-01-11  Bruno Haible  <bruno@clisp.org>
59309
59310         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59311         directory.
59312
59313 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59314
59315         Use @...@ consistently in lib/wctype_.h.
59316         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59317         on it being set to 1 or 0.
59318         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59319         go back to AC_SUBSTing it.
59320         * modules/wctype (Makefile.am): Undo previous change.
59321
59322 2007-01-10  Eric Blake  <ebb9@byu.net>
59323
59324         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59325         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59326         * modules/wctype (Makefile.am): Likewise.
59327         Reported by Chris McGuire.
59328
59329 2007-01-10  Jim Meyering  <jim@meyering.net>
59330
59331         fts.c: a small readability/maintainability improvement
59332         * lib/fts.c (fts_read): Make this code slightly more readable and
59333         maintainable by hoisting the "sp->fts_cur = p" assignments to
59334         immediately follow the statements that set P.  Derived from
59335         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59336
59337 2007-01-10  Eric Blake  <ebb9@byu.net>
59338
59339         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59340         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59342         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59343         Reported by Chris McGuire.
59344
59345 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59346
59347         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59348         in sed script.
59349
59350 2007-01-09  Bruno Haible  <bruno@clisp.org>
59351
59352         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59353         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59354         variables.
59355         (func_module): Use them.
59356
59357 2007-01-09  Bruno Haible  <bruno@clisp.org>
59358
59359         * modules/unistr/base: New file.
59360         * lib/unistr.h: New file.
59361
59362         * modules/unistr/u8-to-u16: New file.
59363         * lib/unistr/u8-to-u16.c: New file.
59364
59365         * modules/unistr/u8-to-u32: New file.
59366         * lib/unistr/u8-to-u32.c: New file.
59367
59368         * modules/unistr/u16-to-u8: New file.
59369         * lib/unistr/u16-to-u8.c: New file.
59370
59371         * modules/unistr/u16-to-u32: New file.
59372         * lib/unistr/u16-to-u32.c: New file.
59373
59374         * modules/unistr/u32-to-u8: New file.
59375         * lib/unistr/u32-to-u8.c: New file.
59376
59377         * modules/unistr/u32-to-u16: New file.
59378         * lib/unistr/u32-to-u16.c: New file.
59379
59380         * modules/unistr/u8-check: New file.
59381         * modules/unistr/u16-check: New file.
59382         * modules/unistr/u32-check: New file.
59383         * lib/unistr/u8-check.c: New file.
59384         * lib/unistr/u16-check.c: New file.
59385         * lib/unistr/u32-check.c: New file.
59386
59387         * modules/unistr/u8-chr: New file.
59388         * modules/unistr/u16-chr: New file.
59389         * modules/unistr/u32-chr: New file.
59390         * lib/unistr/u8-chr.c: New file.
59391         * lib/unistr/u16-chr.c: New file.
59392         * lib/unistr/u32-chr.c: New file.
59393
59394         * modules/unistr/u8-cmp: New file.
59395         * modules/unistr/u16-cmp: New file.
59396         * modules/unistr/u32-cmp: New file.
59397         * lib/unistr/u8-cmp.c: New file.
59398         * lib/unistr/u16-cmp.c: New file.
59399         * lib/unistr/u32-cmp.c: New file.
59400
59401         * modules/unistr/u8-cpy: New file.
59402         * modules/unistr/u16-cpy: New file.
59403         * modules/unistr/u32-cpy: New file.
59404         * lib/unistr/u8-cpy.c: New file.
59405         * lib/unistr/u16-cpy.c: New file.
59406         * lib/unistr/u32-cpy.c: New file.
59407         * lib/unistr/u-cpy.h: New file.
59408
59409         * modules/unistr/u8-cpy-alloc: New file.
59410         * modules/unistr/u16-cpy-alloc: New file.
59411         * modules/unistr/u32-cpy-alloc: New file.
59412         * lib/unistr/u8-cpy-alloc.c: New file.
59413         * lib/unistr/u16-cpy-alloc.c: New file.
59414         * lib/unistr/u32-cpy-alloc.c: New file.
59415         * lib/unistr/u-cpy-alloc.h: New file.
59416
59417         * modules/unistr/u8-endswith: New file.
59418         * modules/unistr/u16-endswith: New file.
59419         * modules/unistr/u32-endswith: New file.
59420         * lib/unistr/u8-endswith.c: New file.
59421         * lib/unistr/u16-endswith.c: New file.
59422         * lib/unistr/u32-endswith.c: New file.
59423         * lib/unistr/u-endswith.h: New file.
59424
59425         * modules/unistr/u8-mblen: New file.
59426         * modules/unistr/u16-mblen: New file.
59427         * modules/unistr/u32-mblen: New file.
59428         * lib/unistr/u8-mblen.c: New file.
59429         * lib/unistr/u16-mblen.c: New file.
59430         * lib/unistr/u32-mblen.c: New file.
59431
59432         * modules/unistr/u8-mbtouc: New file.
59433         * modules/unistr/u16-mbtouc: New file.
59434         * modules/unistr/u32-mbtouc: New file.
59435         * lib/unistr/u8-mbtouc.c: New file.
59436         * lib/unistr/u16-mbtouc.c: New file.
59437         * lib/unistr/u32-mbtouc.c: New file.
59438
59439         * modules/unistr/u8-mbtouc-safe: New file.
59440         * modules/unistr/u16-mbtouc-safe: New file.
59441         * modules/unistr/u32-mbtouc-safe: New file.
59442         * lib/unistr/u8-mbtouc-safe.c: New file.
59443         * lib/unistr/u16-mbtouc-safe.c: New file.
59444         * lib/unistr/u32-mbtouc-safe.c: New file.
59445
59446         * modules/unistr/u8-move: New file.
59447         * modules/unistr/u16-move: New file.
59448         * modules/unistr/u32-move: New file.
59449         * lib/unistr/u8-move.c: New file.
59450         * lib/unistr/u16-move.c: New file.
59451         * lib/unistr/u32-move.c: New file.
59452         * lib/unistr/u-move.h: New file.
59453
59454         * modules/unistr/u8-next: New file.
59455         * modules/unistr/u16-next: New file.
59456         * modules/unistr/u32-next: New file.
59457         * lib/unistr/u8-next.c: New file.
59458         * lib/unistr/u16-next.c: New file.
59459         * lib/unistr/u32-next.c: New file.
59460
59461         * modules/unistr/u8-prev: New file.
59462         * modules/unistr/u16-prev: New file.
59463         * modules/unistr/u32-prev: New file.
59464         * lib/unistr/u8-prev.c: New file.
59465         * lib/unistr/u16-prev.c: New file.
59466         * lib/unistr/u32-prev.c: New file.
59467
59468         * modules/unistr/u8-set: New file.
59469         * modules/unistr/u16-set: New file.
59470         * modules/unistr/u32-set: New file.
59471         * lib/unistr/u8-set.c: New file.
59472         * lib/unistr/u16-set.c: New file.
59473         * lib/unistr/u32-set.c: New file.
59474         * lib/unistr/u-set.h: New file.
59475
59476         * modules/unistr/u8-startswith: New file.
59477         * modules/unistr/u16-startswith: New file.
59478         * modules/unistr/u32-startswith: New file.
59479         * lib/unistr/u8-startswith.c: New file.
59480         * lib/unistr/u16-startswith.c: New file.
59481         * lib/unistr/u32-startswith.c: New file.
59482         * lib/unistr/u-startswith.h: New file.
59483
59484         * modules/unistr/u8-stpcpy: New file.
59485         * modules/unistr/u16-stpcpy: New file.
59486         * modules/unistr/u32-stpcpy: New file.
59487         * lib/unistr/u8-stpcpy.c: New file.
59488         * lib/unistr/u16-stpcpy.c: New file.
59489         * lib/unistr/u32-stpcpy.c: New file.
59490         * lib/unistr/u-stpcpy.h: New file.
59491
59492         * modules/unistr/u8-stpncpy: New file.
59493         * modules/unistr/u16-stpncpy: New file.
59494         * modules/unistr/u32-stpncpy: New file.
59495         * lib/unistr/u8-stpncpy.c: New file.
59496         * lib/unistr/u16-stpncpy.c: New file.
59497         * lib/unistr/u32-stpncpy.c: New file.
59498         * lib/unistr/u-stpncpy.h: New file.
59499
59500         * modules/unistr/u8-strcat: New file.
59501         * modules/unistr/u16-strcat: New file.
59502         * modules/unistr/u32-strcat: New file.
59503         * lib/unistr/u8-strcat.c: New file.
59504         * lib/unistr/u16-strcat.c: New file.
59505         * lib/unistr/u32-strcat.c: New file.
59506         * lib/unistr/u-strcat.h: New file.
59507
59508         * modules/unistr/u8-strchr: New file.
59509         * modules/unistr/u16-strchr: New file.
59510         * modules/unistr/u32-strchr: New file.
59511         * lib/unistr/u8-strchr.c: New file.
59512         * lib/unistr/u16-strchr.c: New file.
59513         * lib/unistr/u32-strchr.c: New file.
59514
59515         * modules/unistr/u8-strcmp: New file.
59516         * modules/unistr/u16-strcmp: New file.
59517         * modules/unistr/u32-strcmp: New file.
59518         * lib/unistr/u8-strcmp.c: New file.
59519         * lib/unistr/u16-strcmp.c: New file.
59520         * lib/unistr/u32-strcmp.c: New file.
59521
59522         * modules/unistr/u8-strcpy: New file.
59523         * modules/unistr/u16-strcpy: New file.
59524         * modules/unistr/u32-strcpy: New file.
59525         * lib/unistr/u8-strcpy.c: New file.
59526         * lib/unistr/u16-strcpy.c: New file.
59527         * lib/unistr/u32-strcpy.c: New file.
59528         * lib/unistr/u-strcpy.h: New file.
59529
59530         * modules/unistr/u8-strcspn: New file.
59531         * modules/unistr/u16-strcspn: New file.
59532         * modules/unistr/u32-strcspn: New file.
59533         * lib/unistr/u8-strcspn.c: New file.
59534         * lib/unistr/u16-strcspn.c: New file.
59535         * lib/unistr/u32-strcspn.c: New file.
59536         * lib/unistr/u-strcspn.h: New file.
59537
59538         * modules/unistr/u8-strdup: New file.
59539         * modules/unistr/u16-strdup: New file.
59540         * modules/unistr/u32-strdup: New file.
59541         * lib/unistr/u8-strdup.c: New file.
59542         * lib/unistr/u16-strdup.c: New file.
59543         * lib/unistr/u32-strdup.c: New file.
59544         * lib/unistr/u-strdup.h: New file.
59545
59546         * modules/unistr/u8-strlen: New file.
59547         * modules/unistr/u16-strlen: New file.
59548         * modules/unistr/u32-strlen: New file.
59549         * lib/unistr/u8-strlen.c: New file.
59550         * lib/unistr/u16-strlen.c: New file.
59551         * lib/unistr/u32-strlen.c: New file.
59552         * lib/unistr/u-strlen.h: New file.
59553
59554         * modules/unistr/u8-strmblen: New file.
59555         * modules/unistr/u16-strmblen: New file.
59556         * modules/unistr/u32-strmblen: New file.
59557         * lib/unistr/u8-strmblen.c: New file.
59558         * lib/unistr/u16-strmblen.c: New file.
59559         * lib/unistr/u32-strmblen.c: New file.
59560
59561         * modules/unistr/u8-strmbtouc: New file.
59562         * modules/unistr/u16-strmbtouc: New file.
59563         * modules/unistr/u32-strmbtouc: New file.
59564         * lib/unistr/u8-strmbtouc.c: New file.
59565         * lib/unistr/u16-strmbtouc.c: New file.
59566         * lib/unistr/u32-strmbtouc.c: New file.
59567
59568         * modules/unistr/u8-strncat: New file.
59569         * modules/unistr/u16-strncat: New file.
59570         * modules/unistr/u32-strncat: New file.
59571         * lib/unistr/u8-strncat.c: New file.
59572         * lib/unistr/u16-strncat.c: New file.
59573         * lib/unistr/u32-strncat.c: New file.
59574         * lib/unistr/u-strncat.h: New file.
59575
59576         * modules/unistr/u8-strncmp: New file.
59577         * modules/unistr/u16-strncmp: New file.
59578         * modules/unistr/u32-strncmp: New file.
59579         * lib/unistr/u8-strncmp.c: New file.
59580         * lib/unistr/u16-strncmp.c: New file.
59581         * lib/unistr/u32-strncmp.c: New file.
59582
59583         * modules/unistr/u8-strncpy: New file.
59584         * modules/unistr/u16-strncpy: New file.
59585         * modules/unistr/u32-strncpy: New file.
59586         * lib/unistr/u8-strncpy.c: New file.
59587         * lib/unistr/u16-strncpy.c: New file.
59588         * lib/unistr/u32-strncpy.c: New file.
59589         * lib/unistr/u-strncpy.h: New file.
59590
59591         * modules/unistr/u8-strnlen: New file.
59592         * modules/unistr/u16-strnlen: New file.
59593         * modules/unistr/u32-strnlen: New file.
59594         * lib/unistr/u8-strnlen.c: New file.
59595         * lib/unistr/u16-strnlen.c: New file.
59596         * lib/unistr/u32-strnlen.c: New file.
59597         * lib/unistr/u-strnlen.h: New file.
59598
59599         * modules/unistr/u8-strpbrk: New file.
59600         * modules/unistr/u16-strpbrk: New file.
59601         * modules/unistr/u32-strpbrk: New file.
59602         * lib/unistr/u8-strpbrk.c: New file.
59603         * lib/unistr/u16-strpbrk.c: New file.
59604         * lib/unistr/u32-strpbrk.c: New file.
59605         * lib/unistr/u-strpbrk.h: New file.
59606
59607         * modules/unistr/u8-strrchr: New file.
59608         * modules/unistr/u16-strrchr: New file.
59609         * modules/unistr/u32-strrchr: New file.
59610         * lib/unistr/u8-strrchr.c: New file.
59611         * lib/unistr/u16-strrchr.c: New file.
59612         * lib/unistr/u32-strrchr.c: New file.
59613
59614         * modules/unistr/u8-strspn: New file.
59615         * modules/unistr/u16-strspn: New file.
59616         * modules/unistr/u32-strspn: New file.
59617         * lib/unistr/u8-strspn.c: New file.
59618         * lib/unistr/u16-strspn.c: New file.
59619         * lib/unistr/u32-strspn.c: New file.
59620         * lib/unistr/u-strspn.h: New file.
59621
59622         * modules/unistr/u8-strstr: New file.
59623         * modules/unistr/u16-strstr: New file.
59624         * modules/unistr/u32-strstr: New file.
59625         * lib/unistr/u8-strstr.c: New file.
59626         * lib/unistr/u16-strstr.c: New file.
59627         * lib/unistr/u32-strstr.c: New file.
59628         * lib/unistr/u-strstr.h: New file.
59629
59630         * modules/unistr/u8-strtok: New file.
59631         * modules/unistr/u16-strtok: New file.
59632         * modules/unistr/u32-strtok: New file.
59633         * lib/unistr/u8-strtok.c: New file.
59634         * lib/unistr/u16-strtok.c: New file.
59635         * lib/unistr/u32-strtok.c: New file.
59636         * lib/unistr/u-strtok.h: New file.
59637
59638         * modules/unistr/u8-uctomb: New file.
59639         * modules/unistr/u16-uctomb: New file.
59640         * modules/unistr/u32-uctomb: New file.
59641         * lib/unistr/u8-uctomb.c: New file.
59642         * lib/unistr/u16-uctomb.c: New file.
59643         * lib/unistr/u32-uctomb.c: New file.
59644
59645         * MODULES.html.sh (Unicode string functions): Add the new modules.
59646
59647 2007-01-08  Bruno Haible  <bruno@clisp.org>
59648
59649         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59650         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59651         subdirectories.
59652
59653 2007-01-08  Karl Berry  <karl@gnu.org>
59654
59655         * doc/error.texi: mention that main() fns must set program_name
59656         when progname is used.
59657
59658 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59659
59660         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59661         WCTYPE_H is empty, for the benefit of builds from non-distclean
59662         directories.  Problem reported by Eric Blake in
59663         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59664
59665 2007-01-08  Bruno Haible  <bruno@clisp.org>
59666
59667         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59668         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59669         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59670         PROVIDE_CANONICALIZE_FILENAME_MODE.
59671         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59672
59673 2007-01-08  Bruno Haible  <bruno@clisp.org>
59674
59675         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59676         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59677         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59678         * lib/fts.c: Likewise.
59679         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59680
59681 2006-12-25  Bruno Haible  <bruno@clisp.org>
59682
59683         * modules/utf8-ucs4-safe: New file.
59684         * lib/utf8-ucs4-safe.h: New file.
59685         * lib/unistr/utf8-ucs4-safe.c: New file.
59686
59687         * modules/utf16-ucs4-safe: New file.
59688         * lib/utf16-ucs4-safe.h: New file.
59689         * lib/unistr/utf16-ucs4-safe.c: New file.
59690
59691         * MODULES.html.sh (Unicode string functions): Add the new modules.
59692
59693 2007-01-08  Bruno Haible  <bruno@clisp.org>
59694
59695         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59696         (Depends-on): Add unitypes.
59697         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59698         (u8_mbtouc_aux): Move out to separate file.
59699         (u8_mbtouc): Use ucs4_t, uint8_t types.
59700         * lib/unistr/utf8-ucs4.c: New file.
59701
59702         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59703         (Depends-on): Add unitypes.
59704         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59705         (u16_mbtouc_aux): Move out to separate file.
59706         (u16_mbtouc): Use ucs4_t, uint16_t types.
59707         * lib/unistr/utf16-ucs4.c: New file.
59708
59709         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59710         (Depends-on): Add unitypes.
59711         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59712         (u8_uctomb_aux): Move out to separate file.
59713         (u8_uctomb): Use ucs4_t, uint8_t types.
59714         * lib/unistr/ucs4-utf8.c: New file.
59715
59716         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59717         (Depends-on): Add unitypes.
59718         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59719         (u16_uctomb_aux): Move out to separate file.
59720         (u16_uctomb): Use ucs4_t, uint16_t types.
59721         * lib/unistr/ucs4-utf16.c: New file.
59722
59723 2006-12-25  Bruno Haible  <bruno@clisp.org>
59724
59725         * modules/unitypes: New file.
59726         * lib/unitypes.h: New file.
59727         * MODULES.html.sh (func_all_modules): New section "Unicode string
59728         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59729         this section. Add unitypes.
59730
59731 2007-01-08  Bruno Haible  <bruno@clisp.org>
59732
59733         Avoid variable names that conflict with those from libtool.
59734         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59735         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59736         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59737         library_names_spec to acl_library_names_spec, hardcode_* to
59738         acl_hardcode_*.
59739         Reported by Ralf Wildenhues.
59740
59741 2007-01-08  Bruno Haible  <bruno@clisp.org>
59742
59743         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59744         definition.
59745         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59746         definition.
59747         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59748         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59749         definition.
59750         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59751         definition.
59752         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59753         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59754         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59755         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59756         definition.
59757         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59758         definition.
59759         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59760         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59761         GC_USE_<algorithm>.
59762         * lib/gc-libgcrypt.c: Likewise.
59763         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59764         * modules/gc-arctwo (configure.ac): Likewise.
59765         * modules/gc-des (configure.ac): Likewise.
59766         * modules/gc-hmac-md5 (configure.ac): Likewise.
59767         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59768         * modules/gc-md2 (configure.ac): Likewise.
59769         * modules/gc-md4 (configure.ac): Likewise.
59770         * modules/gc-md5 (configure.ac): Likewise.
59771         * modules/gc-random (configure.ac): Likewise.
59772         * modules/gc-rijndael (configure.ac): Likewise.
59773         * modules/gc-sha1 (configure.ac): Likewise.
59774
59775 2007-01-08  Bruno Haible  <bruno@clisp.org>
59776
59777         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59778         macro definition.
59779         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59780         definition.
59781         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59782         definition.
59783         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59784         * modules/fcntl-safer (configure.ac): Likewise.
59785         * modules/fopen-safer (configure.ac): Likewise.
59786         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59787         GNULIB_FWRITEERROR macro definition.
59788
59789 2007-01-08  Bruno Haible  <bruno@clisp.org>
59790
59791         * m4/gnulib-common.m4: New file.
59792         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59793         (func_get_filelist): Add m4/gnulib-common.m4.
59794
59795 2007-01-08  Bruno Haible  <bruno@clisp.org>
59796
59797         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59798         command.
59799
59800 2007-01-08  Jim Meyering  <jim@meyering.net>
59801
59802         Use a more robust test for a "can't happen" condition.
59803         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59804         narrowed the st_size value.  Presuming the "can't happen" condition
59805         is true, that narrowing could conceivably convert an invalid st_size
59806         value into a valid one.  Instead, use a change based on Matthew
59807         Woehlke's original patch.
59808
59809         Slight readability improvement: use an assert-like macro
59810         in place of literal "abort ()" uses.
59811         * lib/fts.c (fts_assert): Define.
59812         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59813         Use this macro instead of a bare 'abort'.
59814
59815 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59816
59817         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59818         simply work around them.
59819         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59820         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59821         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59822         declaring.
59823         Don't bother to define as macros, since the standard doesn't require it.
59824         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59825         longer worry about IRIX 5.3.
59826         (HAVE_WCTYPE_CTMP_BUG): Remove.
59827
59828 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59829
59830         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59831         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59832         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59833         Problems reported by Georg Schwarz for IRIX 5.3.
59834
59835         * gnulib-tool (autoconf_minversion): Take the maximum version number
59836         found, not the minimum.  Problem reported by James Youngman.
59837
59838 2007-01-03  Karl Berry  <karl@gnu.org>
59839
59840         * doc/error.texi: new file, explaining interaction with progname.
59841         * doc/gnulib.texi: include it.  Update copyright.
59842
59843 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59844
59845         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59846         AC_CANONICAL_HOST, to improve autobuild outputs.
59847
59848 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59849             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59850
59851         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59852         sockets, server sockets, and other file descriptors.  Count errors
59853         to compute the return value.  Reorder the code a bit to be easier
59854         to follow.  Don't set event bits that were not requested (except
59855         POLLERR and POLLHUP).
59856
59857 2007-01-01  Bruno Haible  <bruno@clisp.org>
59858
59859         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59860
59861 2007-01-03  Jim Meyering  <jim@meyering.net>
59862
59863         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59864
59865 2007-01-02  Bruno Haible  <bruno@clisp.org>
59866
59867         * modules/settime (Include): Require timespec.h.
59868         * modules/nanosleep (Include): Likewise.
59869
59870 2007-01-01  Bruno Haible  <bruno@clisp.org>
59871
59872         * gnulib-tool (func_emit_copyright_notice): Bump year.
59873         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
59874
59875 2007-01-01  Bruno Haible  <bruno@clisp.org>
59876
59877         Improve support for OpenBSD.
59878         * build-aux/config.rpath (libname_spec): Export.
59879         (library_names_spec): New variable. Export.
59880         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
59881         library_names_spec from the config.rpath output. Locate shared library
59882         through the name pattern in library_names_spec.
59883
59884 2007-01-01  Eric Blake  <ebb9@byu.net>
59885
59886         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
59887
59888 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
59889
59890         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
59891         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
59892         assume the C locale, and avoid an "eval" that could cause trouble.
59893         Problem with SORT reported by Bob Proulx.
59894
59895         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
59896         Define.  Trivial patch from Henning Nielsen Lund, originally
59897         sent to bug-grep@gnu.org today.
59898
59899 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59900
59901         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
59902         struct stat.  Problem reported by Henning Nielsen Lund.
59903         * lib/acl.c: Include acl.h first, to check interface.  Don't
59904         bother to include sys/types.h and sys/stat.h again.
59905
59906 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59907
59908         Import the following change from libc; problem reported by
59909         Sven Verdoolaege.
59910
59911         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
59912
59913         [BZ #1373]
59914         * lib/argp.h: Remove __NTH for __argp_usage inline function.
59915
59916 2006-12-28  Jim Meyering  <jim@meyering.net>
59917
59918         * build-aux/announce-gen: Do not assume that the package
59919         builds any of tar.gz, tar.bz2, and .xdelta files.
59920         Suggestion from Simon Josefsson.
59921
59922 2006-12-28  Simon Josefsson  <simon@josefsson.org>
59923
59924         * modules/announce-gen: New file.
59925
59926 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59927
59928         * lib/mbchar.h: Just include <wctype.h>; the wctype module
59929         handles its gotchas now.
59930         * lib/mbswidth.c: Likewise.
59931         * lib/wcwidth.h: Likewise.
59932         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
59933         and iswcntrl; the wctype module does this stuff now.
59934         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59935         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59936         * modules/mbchar (Depends-on): Add wctype.
59937         * modules/mbswidth (Depends-on): Likewise.
59938         * modules/wcwidth (Depends-on): Likewise.
59939
59940 2006-12-27  Eric Blake  <ebb9@byu.net>
59941
59942         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
59943         module uses more than what <wctype.h> is required to provide.
59944
59945 2006-12-26  Eric Blake  <ebb9@byu.net>
59946
59947         * gnulib-tool (sed_extract_prog): Avoid space-tab.
59948
59949 2006-12-26  Eric Blake  <ebb9@byu.net>
59950
59951         * modules/absolute-header: New module.
59952         * modules/fcntl (Depends-on): Depend on it.
59953         * modules/inttypes (Depends-on): Likewise.
59954         * modules/stdint (Depends-on): Likewise.
59955         * modules/sys_stat (Depends-on): Likewise.
59956         * modules/wctype (Depends-on): Likewise.
59957         * MODULES.html.sh (Support for building libraries and
59958         executables): Document it.
59959
59960 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59961
59962         * gnulib-tool (SED): Remove, undoing previous change.
59963         The problem was that it broke coreutils on Solaris, because
59964         "sed --posix" leaked into a makefile.
59965         (sed): New alias, if 'alias' and GNU sed.
59966
59967 2006-12-24  Jim Meyering  <jim@meyering.net>
59968
59969         Work around an fchownat bug in glibc-2.4:
59970         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
59971         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
59972         in spite of the -P option.
59973         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
59974         New macros.
59975         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
59976         * modules/openat (Files): Add lib/fchownat.c.
59977         * lib/openat.c (fchownat): Don't define here.  Move to...
59978         * lib/fchownat.c: ...this new file.
59979
59980 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59981
59982         Fix bug reported by Bruno Haible in
59983         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
59984         where quotearg.c didn't compile on Mac OS X 10.2 because it
59985         lacks <wchar.h> and wint_t.
59986         * lib/wctype_.h (__wctype_wint_t): New type.
59987         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
59988         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
59989         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
59990         Arg is now of type __wctype_wint_t, not wint_t.
59991         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
59992         substitute HAVE_WINT_T.
59993         * modules/wctype (Files): Add m4/wint_t.m4.
59994         (wctype.h): Substitute HAVE_WINT_T.
59995
59996 2006-12-23  Bruno Haible  <bruno@clisp.org>
59997
59998         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
59999
60000 2006-12-23  Bruno Haible  <bruno@clisp.org>
60001
60002         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
60003         S_ISLNK.
60004         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
60005         mingw.
60006
60007 2006-12-22  Bruno Haible  <bruno@clisp.org>
60008
60009         * lib/copy-file.c: Include acl.h.
60010         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
60011         Close the file descriptors only after being done with copy_acl.
60012         * modules/copy-file (Depends-on): Add acl.
60013
60014 2006-12-22  Bruno Haible  <bruno@clisp.org>
60015
60016         * gnulib-tool (SED): New variable.
60017         Use $SED instead of sed everywhere.
60018
60019 2006-12-22  Bruno Haible  <bruno@clisp.org>
60020
60021         * modules/no-c++: New file.
60022         * m4/no-c++.m4: New file.
60023         * MODULES.html.sh (Support for building libraries and executables):
60024         Add no-c++.
60025
60026 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60027
60028         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60029         Include <limits.h>, and use its INT_MAX to rewrite the
60030         j loop so that it does not overflow 'int'.  Problem reported by
60031         Ralf Wildenhues in
60032         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
60033         Play it safe by shifting left by 1 rather than multiplying by 2,
60034         as GCC is less likely to optimize this away when the value
60035         is signed (when it assumes overflow leads to undefined behavior).
60036         Also, don't assume time_t uses two's complement.
60037
60038 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
60039
60040         * MODULES.html.sh: New module wctype.
60041         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
60042         * lib/fnmatch.c: Don't bother to include <wchar.h> before
60043         <wctype.h>, since the new wctype module should fix this.
60044         * lib/quotearg.c: Include <wctype.h> unconditionally, since
60045         the wctype module should arrange for it.
60046         * lib/regex_internal.h: Likewise.
60047         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
60048         since the wctype module should handle this now.
60049         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
60050         * modules/fnmatch (Depends-on): Add wctype.
60051         * modules/quotearg (Depends-on): Likewise.
60052         * modules/regex (Depends-on): Likewise.
60053
60054 2006-12-19  Bruno Haible  <bruno@clisp.org>
60055
60056         * lib/strdup.h [C++]: Wrap definitions in extern "C".
60057         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
60058
60059 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60060
60061         * modules/savewd (Depends-on): Fix dependency on fcntl.
60062
60063 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60064
60065         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
60066         conforms to C99, rather than relying on the user's environment
60067         setting of STDINT_H.
60068
60069 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60070         and Eric Blake  <ebb9@byu.net>
60071
60072         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
60073         This is more consistent with the other defines here.
60074         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
60075         Port to z/OS.  Problem reported by Paul Gilmartin.
60076         Change local vars to use gl_ prefix rather than ac_.
60077         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
60078         with other defines.
60079         * modules/double-slash-root: New module.
60080         * modules/dirname (Files): Remove m4/double-slash-root.m4.
60081         (Depends-on): Add double-slash-root.
60082         * MODULES.html.sh (File system functions): Mention new module.
60083
60084 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
60085
60086         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
60087         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
60088         This is for the benefit of gzip, which doesn't do i18n.
60089
60090 2006-12-12  Jim Meyering  <jim@meyering.net>
60091
60092         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
60093         Reported by Andreas Schwab <schwab@suse.de>.
60094
60095 2006-12-12  Bruno Haible  <bruno@clisp.org>
60096
60097         Merge these changes.
60098         2006-09-05  Bruno Haible  <bruno@clisp.org>
60099         * lib/iconvme.c (iconv_string): No need to save and restore errno when
60100         iconv_alloc succeeded.
60101         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
60102         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
60103         test for " && dest " at the end - dest is always != NULL there. Call
60104         iconv with 4xNULL arguments initially, to reset the state. Call iconv
60105         with 2xNULL arguments, also to flush the state storage. Handle the
60106         IRIX iconv behaviour. Realloc the final result, to throw away unused
60107         memory.
60108
60109 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
60110
60111         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
60112         and fchmodat unconditionally, since glibc 2.4 has them.
60113         Problem reported by Arkadiusz Miskiewicz.
60114
60115 2006-12-10  Bruno Haible  <bruno@clisp.org>
60116
60117         * gnulib-tool (func_import): Show the include files only for those
60118         modules that are copied and specified.
60119         Reported by Karl Berry.
60120
60121 2006-12-08  Jim Meyering  <jim@meyering.net>
60122
60123         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
60124         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
60125
60126         * build-aux/announce-gen: Add two new options, both optional:
60127         --bootstrap-tools=TOOL_LIST
60128               a comma-separated list of tools, e.g.,
60129               autoconf,automake,bison,gnulib
60130         --gnulib-snapshot-date=DATE
60131               if gnulib is in the bootstrap tool list,
60132               then report this as the snapshot date.
60133               If not specified, use the current date/time.
60134               If you specify a date here, be sure it's UTC.
60135
60136 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60137
60138         * tests/test-argp-2.sh: Fix test to match actual output.
60139         (func_compare): Fix sed script to be portable.
60140
60141 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
60142
60143         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
60144         workaround for this case.  It is not autoconfigured now; offhand
60145         it's hard to see how to autoconfigure it.
60146
60147 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60148
60149         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
60150         a directory that is about to be chowned.  Such a directory's
60151         initial file permissions should permit the owner only and this
60152         should not be changed until after the chown, since the group and
60153         other bits would be incorrect if they granted permission before
60154         the chown.
60155
60156         Fix porting problem for iswctype reported by Georg Schwarz in:
60157         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
60158         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
60159         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
60160         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
60161         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60162
60163 2006-12-03  Jim Meyering  <jim@meyering.net>
60164
60165         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
60166         p->fts_statp may not yet be defined.
60167         (fts_read): Instead, set it in the caller, once p->fts_statp is
60168         sure to be defined, and corresponds to a top-level directory.
60169         This bug made du -x fail.  Here's the coreutils test case:
60170         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
60171         Reported by Mike Frysinger.
60172
60173 2006-12-01  Jim Meyering  <jim@meyering.net>
60174
60175         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
60176         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
60177         Reported by Simon Josefsson.
60178
60179 2006-11-30  Jim Meyering  <jim@meyering.net>
60180
60181         * m4/warning.m4: Use the all-permissive copyright notice
60182         recommended by RMS (rather than LGPL).
60183         * m4/vararrays.m4: Likewise.
60184         * m4/flexmember.m4: Likewise.
60185
60186 2006-11-29  Bruno Haible  <bruno@clisp.org>
60187
60188         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60189         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
60190         using +=.
60191         Reported by Simon Josefsson <simon@josefsson.org>.
60192
60193 2006-11-28  James Youngman <jay@gnu.org>
60194
60195         * README: Advise users that they might find the bug-gnulib@gnu.org
60196         and autotools-announce@gnu.org mailing lists useful.
60197
60198 2006-11-28  Bruno Haible  <bruno@clisp.org>
60199
60200         * m4/ptrdiff_max.m4: Remove file.
60201
60202 2006-11-21  Bruno Haible  <bruno@clisp.org>
60203
60204         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
60205         _AC_COMPUTE_INT.
60206         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60207         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
60208         _AC_COMPUTE_INT.
60209         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60210         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
60211         _AC_COMPUTE_INT.
60212         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60213
60214 2006-11-28  Jim Meyering  <jim@meyering.net>
60215
60216         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
60217         warning from "gcc -Wshadow" about shadowing the builtin.
60218
60219 2006-11-27  Bruno Haible  <bruno@clisp.org>
60220
60221         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
60222         _AC_COMPUTE_INT.
60223         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60224
60225 2006-11-27  Bruno Haible  <bruno@clisp.org>
60226             Paul Eggert  <eggert@cs.ucla.edu>
60227
60228         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
60229
60230 2006-11-26  Bruno Haible  <bruno@clisp.org>
60231
60232         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60233         noinst_LTLIBRARIES.
60234
60235 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60236             Bruno Haible  <bruno@clisp.org>
60237
60238         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
60239         if compiling with "gcc -ansi".
60240
60241 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60242
60243         Fix some incompatibilities with gcc -ansi -pedantic.
60244         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
60245         if compiling pedantically with GCC, unless it's C99 or later.
60246         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
60247         it mishandles gcc -ansi -pedantic as well.
60248         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
60249         if gcc -pedantic.
60250         * lib/regexec.c (check_node_accept_bytes): Don't use auto
60251         initializers for struct if -pedantic, unless it's C99 or later.
60252
60253 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
60254
60255         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
60256         Don't close an fd more than once. Identical atimes indicate
60257         success, not failure.
60258
60259 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
60260
60261         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
60262
60263 2006-11-23  Jim Meyering  <jim@meyering.net>
60264
60265         * build-aux/announce-gen: New file.  From coreutils.
60266
60267 2006-11-22  Jim Meyering  <jim@meyering.net>
60268
60269         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
60270         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
60271         (fts_read): Use a temporary to narrow the overused st_size member
60272         before using it in a switch statement.  Reported by Matthew Woehlke.
60273
60274         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
60275         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60276
60277 2006-11-20  Bruno Haible  <bruno@clisp.org>
60278
60279         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
60280         changequote instead of pairs of brackets.
60281         Reported by Andreas Schwab <schwab@suse.de>.
60282
60283 2006-11-21  Jim Meyering  <jim@meyering.net>
60284
60285         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
60286         so as to remain compatible with older compilers.
60287         Patch from Michael Deutschmann.
60288
60289 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60290
60291         * MODULES.html.sh (File system functions): Add openat.
60292
60293         * lib/openat.h (rpl_fstatat): New macro, if
60294         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
60295         (fstatat): Define to rpl_fstatat under the same conditions,
60296         unless COMPILING_FSTATAT.
60297         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60298         seems to have the bug.
60299         * lib/fstatat.c: New file.
60300         * modules/openat (Files): Add it.
60301
60302 2006-11-20  Bruno Haible  <bruno@clisp.org>
60303
60304         * Makefile: New file.
60305
60306 2006-11-20  Jim Meyering  <jim@meyering.net>
60307
60308         The beginnings of syntax-related checks for gnulib.
60309         * lib/Makefile: New file.
60310         * lib/t-idcache: New script.  Ensure that the two halves of
60311         idcache.c stay in sync.
60312
60313         * lib/idcache.c: Adjust comments in user- and group- portions to
60314         be more accurate, and to be consistent with one another.
60315
60316 2006-11-20  Jim Meyering  <jim@meyering.net>
60317
60318         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60319         continue using the flexible array member (thus, this module performs
60320         half as many malloc calls), with the addition that...
60321         (getgroup, getuser): Consistently record a non-match via an empty
60322         "name" string, and map an empty string match to a NULL return value.
60323         * modules/idcache (Depends-on): Re-add flexmember.
60324
60325         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60326         (getuidbyname, getgroup, getgidbyname): Likewise.
60327
60328         Use cleaner syntax: NULL rather than 0.
60329         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60330
60331 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60332
60333         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60334         It mishandled the case where the group was missing.
60335         Problem reported by Greg Schafer.
60336         * modules/idcache: Likewise.
60337
60338 2006-11-18  Jim Meyering  <jim@meyering.net>
60339
60340         * check-module (%exempt_header): Add exception for some
60341         conditionally-included headers.
60342
60343         * modules/i-ring (Depends-on): Add verify.
60344         (License): Change to LGPL.
60345
60346 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60347
60348         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60349         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60350         and inttostr.h.  Use snprintf rather than uinttostr, so that
60351         LGPLed code doesn't depend on GPLed.
60352
60353 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60354
60355         * modules/inline (License): Change from GPL to LGPL.
60356
60357 2006-11-17  Jim Meyering  <jim@meyering.net>
60358
60359         * modules/d-type (License): Switch to LGPL.
60360
60361 2006-11-15  Bruno Haible  <bruno@clisp.org>
60362
60363         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60364
60365 2006-11-15  Eric Blake  <ebb9@byu.net>
60366
60367         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60368         the module dependency.
60369
60370 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60371             Bruno Haible  <bruno@clisp.org>
60372
60373         * gnulib-tool (func_create_testdir): Add license consistency check.
60374
60375 2006-11-15  Eric Blake  <ebb9@byu.net>
60376
60377         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60378         random "(cached)" in configure output.
60379
60380 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60381
60382         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60383         test for conforming inttypes.h is both announced and cached.
60384
60385         * MODULES.html.sh (seen_modules, seen_files): New variables.
60386         (func_module): Rewrite to use a few less gnulib-tool and sed
60387         invocations.  Avoid a couple of quadratic algorithms for ...
60388         (missed_modules, missed_files): ... these, with ...
60389         (func_append, func_tmpdir): ... these new functions, from
60390         gnulib-tool.  Analogously, install traps for cleanup.
60391
60392         * tests/test-gc.c (main): Remove unused variables.
60393         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60394
60395 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60396
60397         * modules/inttostr (License): Change to LGPL.
60398
60399 2006-11-14  Eric Blake  <ebb9@byu.net>
60400
60401         * modules/tempname (License): Change to LGPL.
60402
60403 2006-11-14  Eric Blake  <ebb9@byu.net>
60404
60405         * doc/functions.texi (Function Portability): *printf functions on
60406         Cygwin now understand all POSIX size specifiers.
60407
60408 2006-11-14  Bruno Haible  <bruno@clisp.org>
60409
60410         * modules/c-ctype (License): Change to LGPL.
60411
60412 2006-11-12  Bruno Haible  <bruno@clisp.org>
60413
60414         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60415         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60416         for GNOME libraries, for which the include files are installed in
60417         subdirectories of $prefix/include.
60418
60419 2006-11-12  Bruno Haible  <bruno@clisp.org>
60420
60421         * m4/lib-link.m4: Require at least autoconf-2.54.
60422         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60423         name to underscores for the --with option.
60424
60425 2006-11-13  Bruno Haible  <bruno@clisp.org>
60426
60427         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60428         the tests directory.
60429         Reported by Ralf Wildenhues.
60430
60431 2006-11-13  Bruno Haible  <bruno@clisp.org>
60432
60433         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60434         (func_emit_initmacro_end): Undo the override here.
60435         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60436         Works around the famous automake error in coreutils.
60437
60438 2006-11-13  Eric Blake  <ebb9@byu.net>
60439
60440         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60441         element, not its node.
60442
60443 2006-11-12  Bruno Haible  <bruno@clisp.org>
60444
60445         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60446         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60447
60448 2006-11-12  Bruno Haible  <bruno@clisp.org>
60449
60450         * gnulib-tool: New option --local-symlink.
60451         (func_usage): Document it.
60452         (lsymbolic): New variable.
60453         (func_import, func_create_testdir): If --symlink was not specified,
60454         test whether --local-symlink was specified and the file comes from
60455         the local_gnulib_dir.
60456
60457 2006-11-12  Bruno Haible  <bruno@clisp.org>
60458
60459         * gnulib-tool (func_ln): New function.
60460         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60461
60462 2006-11-12  Bruno Haible  <bruno@clisp.org>
60463
60464         Finish support for source files in subdirectories.
60465         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60466         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60467         AUTOMAKE_OPTIONS.
60468         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60469
60470 2006-11-12  Bruno Haible  <bruno@clisp.org>
60471
60472         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60473         EXTRA_lib_SOURCES augmentation.
60474         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60475
60476 2006-11-12  Jim Meyering  <jim@meyering.net>
60477
60478         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60479         file descriptors.  This also averts a failure on systems with
60480         native openat support when a traversed directory lacks "x" access.
60481         * lib/fts_.h: Include "i-ring.h"
60482         (struct FTS) [fts_fd_ring]: New member.
60483         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60484         (FCHDIR): Add parentheses.
60485         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60486         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60487         When descending, rather than simply closing the previous
60488         fts_cwd_fd value, push that file descriptor onto the ring.
60489         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60490         (fts_open): Initialize the new fd_ring member.
60491         (fts_close): Clear the ring.
60492         (fts_safe_changedir): When possible, use our new fd_ring to skip
60493         the diropen and fstat and dev/ino comparison that would normally
60494         accompany a virtual `chdir ("..")'.
60495
60496         * modules/fts (Depends-on): Add i-ring.
60497         * modules/i-ring: New module.
60498         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60499         * m4/i-ring.m4: New file.
60500
60501 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60502
60503         * gnulib-tool (func_create_testdir): Fix replacement of
60504         `build-aux' in configure.ac.  Run autotools in gltests
60505         subdirectory.
60506         (func_create_testdir, func_create_megatestdir, test): There is
60507         no need for '--force' in most autotool invocations in a new
60508         tree.  Actually fail the whole test if any of the tools, or the
60509         configure or make stages fail.
60510
60511         Sync from Automake.
60512         * build-aux/gnupload: Revert last change.  Add pointer to upload
60513         instructions of the GNU Maintenance Instructions.
60514         Suggestion by Karl Berry.
60515
60516 2006-11-10  Jim Meyering  <jim@meyering.net>
60517
60518         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60519
60520 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60521
60522         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60523         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60524         (bind_textdomain_codeset) [! ENABLE_NLS]:
60525         Evaluate all the arguments.  That way, callers get compatible behavior
60526         if the arguments have side effects.  Also, it avoids some GCC
60527         diagnostics in some cases; Joel E. Denny reported problems when Bison
60528         was configured with --enable-gcc-warnigs.
60529
60530 2006-11-10  Jim Meyering  <jim@meyering.net>
60531
60532         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60533         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60534         account.
60535
60536 2006-11-10  Jim Meyering  <jim@meyering.net>
60537
60538         * modules/inline: New file/module.
60539         * modules/xalloc (Files): Remove m4/inline.m4.
60540         (Depends-on): Add inline, instead.
60541         * modules/oset: Likewise.
60542         * modules/list: Likewise.
60543
60544 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60545
60546         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60547         Problem reported by Matthew Woehlke.
60548
60549 2006-11-09  Bruno Haible  <bruno@clisp.org>
60550
60551         * lib/tempname.c (gen_tempname): Remove variant that invokes
60552         __gen_tempname.
60553         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60554         __gen_tempname.
60555
60556 2006-11-08  Bruno Haible  <bruno@clisp.org>
60557
60558         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60559         to 'yes' instead of 'cross-compiling'.
60560
60561 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60562
60563         * lib/quotearg.h (quotearg_free): New decl.
60564         * lib/quotearg.c (quotearg_free): New function.
60565         (slot0, nslots, slotvec0, slotvec):
60566         Now file-scope so that quotearg_free can get at them.
60567
60568 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60569
60570         Sync from Automake.
60571         * build-aux/gnupload: Add missing 'gnu' to example URL.
60572         Report by Karl Berry.
60573
60574 2006-11-08  Bruno Haible  <bruno@clisp.org>
60575
60576         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60577         Suggested by Paul Eggert.
60578
60579 2006-11-08  Jim Meyering  <jim@meyering.net>
60580
60581         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60582         It's already included if !_LIBC.
60583         (fts_safe_changedir): Add a comment.
60584
60585 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60586
60587         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60588         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60589         Matthew Woehlke.
60590
60591         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60592         definitions up, to avoid colliding with change below.
60593         (static_inline) [HAVE_INLINE]: New macro.
60594         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60595         Provide extern decls when !HAVE_INLINE.  Do not define unless
60596         static_inline is defined, either by us or by xmalloc.c.  Use
60597         static_inline rather than static inline.
60598         (XCALLOC): Optimize sizeof(T) = 1 case.
60599         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60600
60601 2006-11-07  Bruno Haible  <bruno@clisp.org>
60602
60603         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60604         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60605         AC_C_INLINE.
60606         * modules/xalloc (Files): Add m4/inline.m4.
60607
60608 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60609
60610         * README: Fix typo.
60611         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60612         (Miscellanous Notes): ...from this.
60613
60614 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60615
60616         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60617         Mention that offsetof should be used instead of sizeof.
60618         From Bruno Haible.
60619
60620 2006-11-07  Bruno Haible  <bruno@clisp.org>
60621
60622         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60623
60624 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60625
60626         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60627         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60628         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60629         (gl_tree_add_before, gl_tree_add_after):
60630         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60631         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60632         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60633         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60634         (gl_linked_add_after, gl_linked_add_at): Likewise.
60635         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60636         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60637         (gl_tree_add_before, gl_tree_add_after): Likewise.
60638         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60639         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60640         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60641
60642 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60643
60644         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60645
60646 2006-11-06  Bruno Haible  <bruno@clisp.org>
60647
60648         * m4/inline.m4: New file.
60649         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60650         * modules/list (Files): Add m4/inline.m4.
60651         * modules/oset (Files): Likewise.
60652
60653 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60654
60655         * lib/idcache.c: Include <stddef.h>, for offsetof.
60656         (struct userid.name): Change from char * to a flexible array member.
60657         All uses changed.
60658         * modules/idcache (Depends-on): Add flexmember.
60659
60660         * MODULES.html.sh (Core language properties): New module flexmember.
60661         * modules/flexmember, m4/flexmember.m4: New files.
60662
60663         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60664         inline functions that are identical with the old xnmalloc_inline,
60665         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60666         that we can avoid some unnecessary integer multiplications and
60667         divisions in the common case where the element size is known at
60668         compile time.
60669         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60670         needed.
60671         (xnboundedmalloc): Remove.
60672         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60673         arguments, for consistency with rest of this header.
60674         (xcharalloc): Rewrite using XNMALLOC.
60675         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60676         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60677         versions have been moved to lib/xalloc.h and renamed to be the
60678         non-*_inline versions.
60679         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60680         and xnrealloc functions, since those functions are now inline and
60681         now call us.
60682         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60683         renaming described above.
60684         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60685         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60686         captures the dependency in AC_C_INLINE.
60687
60688         New module canonicalize-lgpl, proposed by Charles Wilson in
60689         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60690         with a few small changes afterwards.
60691         * MODULES.html.sh (File system functions): New module
60692         canonicalize-lgpl.
60693         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60694         and canonicalize_file_name.
60695         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60696         * modules/canonicalize-lgpl: New files.
60697
60698 2006-11-05  Bruno Haible  <bruno@clisp.org>
60699
60700         * gnulib-tool (func_import, func_create_testdir): Create directories
60701         also for files in subdirectories of lib/.
60702
60703 2006-11-05  Bruno Haible  <bruno@clisp.org>
60704
60705         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60706         ANSI C compliant.
60707
60708 2006-11-03  Bruno Haible  <bruno@clisp.org>
60709
60710         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60711         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60712         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60713         (xnboundedmalloc): New inline function.
60714         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60715         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60716         xmalloc.
60717         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60718         xmalloc.
60719         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60720         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60721         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60722         xmalloc.
60723         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60724         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60725         xmalloc.
60726         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60727         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60728         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60729         xmalloc.
60730         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60731         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60732         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60733         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60734         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60735         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60736         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60737
60738 2006-11-03  Bruno Haible  <bruno@clisp.org>
60739
60740         * lib/c-ctype.h [C++]: Define functions without name mangling.
60741         * lib/fwriteerror.h [C++]: Likewise.
60742         * lib/gcd.h [C++]: Likewise.
60743         * lib/linebreak.h [C++]: Likewise.
60744
60745 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60746
60747         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60748         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60749         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60750         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60751         Check for functions and headers just once.
60752         Check for declaration of canonicalize_file_name.
60753         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60754
60755 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60756
60757         * gnulib-tool (func_import): Fix typo in actioncmd.
60758
60759 2006-11-02  Bruno Haible  <bruno@clisp.org>
60760
60761         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60762         newline sequence in the Makefile.am snippet as a space, like "make"
60763         does.
60764         Reported by Roger Persson <perrog@gmail.com>.
60765
60766 2006-11-01  Bruno Haible  <bruno@clisp.org>
60767
60768         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60769         already declared in <string.h>.
60770         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60771
60772 2006-11-01  Bruno Haible  <bruno@clisp.org>
60773
60774         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60775         * lib/strcase.h: Include <string.h>.
60776         (strcasecmp): Define to rpl_strcasecmp here.
60777
60778 2006-11-01  Bruno Haible  <bruno@clisp.org>
60779
60780         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60781
60782 2006-11-01  Eric Blake  <ebb9@byu.net>
60783
60784         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60785
60786         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60787
60788 2006-10-29  Bruno Haible  <bruno@clisp.org>
60789
60790         Make it compile in C++ mode.
60791         * lib/full-write.c (full_rw): Add a cast.
60792
60793 2006-11-01  Bruno Haible  <bruno@clisp.org>
60794
60795         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60796         be POSIX compliant.
60797         Reported by Roger Persson <perrog@gmail.com>.
60798
60799 2006-11-01  Eric Blake  <ebb9@byu.net>
60800
60801         * lib/getopt_.h: Fix comments.
60802
60803 2006-10-31  Eric Blake  <ebb9@byu.net>
60804
60805         * modules/tmpdir (Depends-on): Add sys_stat.
60806         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60807         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60808         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60809         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60810         tempname.
60811
60812 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60813
60814         Avoid some C++ diagnostics reported by Bruno Haible.
60815         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60816         xmalloc.
60817         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60818         (struct slotvec): Move to top level.
60819         (quotearg_n_options): Rewrite to avoid xmalloc.
60820         * lib/xalloc.h (xcharalloc): New function.
60821         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60822         [defined __cplusplus]: Add function template that provides result
60823         type propagation.  This part of the change is from Bruno Haible.
60824
60825 2006-10-29  Bruno Haible  <bruno@clisp.org>
60826
60827         Make it compile in C++ mode.
60828         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60829         * lib/strnlen1.c (strnlen1): Cast memchr result.
60830         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60831         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60832         (create_temp_dir): Rename local variable 'template'.
60833         (compile_csharp_using_sscli): Add cast.
60834         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60835         * lib/findprog.c (find_in_path): Likewise.
60836         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60837         * lib/wait-process.c (register_slave_subprocess): Likewise.
60838
60839 2006-10-22  Bruno Haible  <bruno@clisp.org>
60840
60841         * modules/tsearch: New file.
60842         * lib/tsearch.h: New file.
60843         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60844         * m4/tsearch.m4: New file.
60845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60846
60847 2006-10-29  Eric Blake  <ebb9@byu.net>
60848
60849         * lib/arcfour.c: Assume config.h.
60850         * lib/arctwo.c: Likewise.
60851         * lib/base64.c: Likewise.
60852         * lib/check-version.c: Likewise.
60853         * lib/crc.c: Likewise.
60854         * lib/des.c: Likewise.
60855         * lib/gc-gnulib.c: Likewise.
60856         * lib/gc-libgcrypt.c: Likewise.
60857         * lib/gc-pbkdf2-sha1.c: Likewise.
60858         * lib/getaddrinfo.c: Likewise.
60859         * lib/getdelim.c: Likewise.
60860         * lib/getline.c: Likewise.
60861         * lib/hmac-md5.c: Likewise.
60862         * lib/hmac-sha1.c: Likewise.
60863         * lib/iconvme.c: Likewise.
60864         * lib/md2.c: Likewise.
60865         * lib/md4.c: Likewise.
60866         * lib/memxor.c: Likewise.
60867         * lib/read-file.c: Likewise.
60868         * lib/readline.c: Likewise.
60869         * lib/rijndael-alg-fst.c: Likewise.
60870         * lib/rijndael-api-fst.c: Likewise.
60871         * lib/xgetdomainname.c: Likewise.
60872
60873 2006-10-28  Eric Blake  <ebb9@byu.net>
60874
60875         * lib/xstrndup.c: Assume config.h.
60876
60877 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60878
60879         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
60880         stat-macros.h is now for our own macros, whereas stat_h is for
60881         macros in the <sys/stat.h> name space.
60882         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
60883         (STAT_MACROS_H): Remove.
60884         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
60885         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
60886         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
60887         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
60888         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
60889         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
60890         Move these macros to ...
60891         * lib/stat_.h: here.  Don't include stat-macros.h.
60892         * lib/canonicalize.c: Don't include stat-macros.h.
60893         * lib/chown.c: Likewise.
60894         * lib/euidaccess.c: Likewise.
60895         * lib/file-type.c: Likewise.
60896         * lib/filemode.c: Likewise.
60897         * lib/glob.c: Likewise.
60898         * lib/isapipe.c: Likewise.
60899         * lib/lchown.c: Likewise.
60900         * lib/lstat.c: Likewise.
60901         * lib/mkdir-p.c: Likewise.
60902         * lib/rmdir.c: Likewise.
60903         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
60904         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
60905         unless mkdir isn't declared, to speed up 'configure'.
60906         Always create sys/stat.h, since it's unlikely any real sys/stat.h
60907         would define all the S_* symbols.
60908         * modules/canonicalize (Depends-on):
60909         Depend on sys_stat, not stat-macros.
60910         * modules/chown: Likewise.
60911         * modules/euidaccess: Likewise.
60912         * modules/filemode: Likewise.
60913         * modules/file-type: Likewise.
60914         * modules/glob: Likewise.
60915         * modules/isapipe: Likewise.
60916         * modules/lchown: Likewise.
60917         * modules/lstat: Likewise.
60918         * modules/mkancesdirs: Likewise.
60919         * modules/rmdir: Likewise.
60920         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
60921         * modules/modechange: Likewise.
60922         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
60923         (configure.ac): Remove gl_STAT_MACROS.
60924         * modules/sys_stat (Depends-on): Remove stat-macros.
60925
60926 2006-10-27  Bruno Haible  <bruno@clisp.org>
60927
60928         * m4/signed.m4: Remove file.
60929         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
60930         invocation.
60931         * modules/vasnprintf (Files): Remove m4/signed.m4.
60932
60933 2006-10-27  Bruno Haible  <bruno@clisp.org>
60934
60935         Update to GNU gettext 0.16.
60936         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
60937         m4/inttypes-h.m4, m4/signed.m4.
60938         * m4/gettext.m4: Update to GNU gettext 0.16.
60939         * m4/intl.m4: New file, from GNU gettext.
60940         * m4/intldir.m4: New file, from GNU gettext.
60941         * config/srclist.txt: Update
60942
60943 2006-10-27  Eric Blake  <ebb9@byu.net>
60944
60945         * MODULES.html.sh: Document tempname.
60946         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
60947         dependencies.
60948         (Files): Move lib/tempname.c...
60949         * modules/tempname: ...to this new module.
60950         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
60951         (gl_PREREQ_TEMPNAME): Move...
60952         * m4/tempname.m4: ...to this new file.
60953         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
60954         * modules/sys_stat (Depends-on): Add stat-macros.
60955         * lib/stat_.h (includes): Pick up stat macros.
60956         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
60957         if stat macros are broken.
60958         * lib/tempname.c (includes): No need to include "stat-macros.h".
60959         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
60960         (direxists, __path_search) [!_LIBC]: Don't compile these in
60961         gnulib; the tmpdir module covers that.
60962         * lib/tempname.h: New file.
60963
60964 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60965
60966         * COPYING: Explain how gnulib-tool converts licence headers.
60967         Almost all wording by Eric Blake.
60968
60969 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
60970
60971         * lib/mbchar.h (is_basic_table): Make read-only.
60972         * lib/mbchar.c (is_basic_table): Likewise.
60973         Reported by John Darrington.
60974
60975 2006-10-25  Bruno Haible  <bruno@clisp.org>
60976
60977         * lib/progname.h (set_program_name): Undefine before defining.
60978
60979 2006-10-25  Bruno Haible  <bruno@clisp.org>
60980
60981         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
60982         false for non-gcc C++ compilers.
60983         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60984
60985 2006-10-24  Bruno Haible  <bruno@clisp.org>
60986
60987         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
60988         iconv implementations like Irix iconv.
60989
60990 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60991
60992         * modules/vararrays: New file.
60993         * m4/vararrays.m4: New file, taken from diffutils.
60994         * MODULES.html.sh: New module vararrays.
60995
60996 2006-10-24  Karl Berry  <karl@gnu.org>
60997
60998         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
60999         Don't call GNU Unix.
61000
61001 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61002
61003         * users.txt: Add Libtool.
61004
61005         Sync from Libtool:
61006
61007         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61008
61009         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
61010         to gnulib's policy of including config.h unconditionally.
61011
61012 2006-10-24  Bruno Haible  <bruno@clisp.org>
61013
61014         * modules/wcwidth (Files): Add m4/wint_t.m4.
61015         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
61016         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
61017
61018 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61019
61020         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
61021         to pacify GCC with some -W flags enabled.  Problem reported by
61022         Bruno Haible.
61023
61024 2006-10-24  Jim Meyering  <jim@meyering.net>
61025
61026         * MODULES.html.sh: Remove uinttostr.  It's not a module.
61027         Reported by Karl Berry.
61028
61029 2006-10-23  Bruno Haible  <bruno@clisp.org>
61030
61031         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
61032
61033 2006-10-24  Bruno Haible  <bruno@clisp.org>
61034
61035         * lib/gl_list.h: Use C comment style, not C++ comment style.
61036
61037 2006-10-23  Eric Blake  <ebb9@byu.net>
61038
61039         * lib/getaddrinfo.c (includes): Add missing include.
61040
61041 2006-10-23  Bruno Haible  <bruno@clisp.org>
61042             Paul Eggert  <eggert@cs.ucla.edu>
61043
61044         Ability to rename obstack_free.
61045         * lib/obstack.h (__obstack_free): New macro. Declare instead of
61046         obstack_free.
61047         (obstack_free): Invoke the __obstack_free macro.
61048         * lib/obstack.c (obstack_free): Use __obstack_free macro.
61049
61050 2006-10-23  Bruno Haible  <bruno@clisp.org>
61051             Paul Eggert  <eggert@cs.ucla.edu>
61052
61053         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
61054         __argc, __argv from the declaration. (They are defined as macros on
61055         mingw.)
61056
61057 2006-10-22  Bruno Haible  <bruno@clisp.org>
61058
61059         * doc/gnulib-intro.texi: New file.
61060         * doc/gnulib.texi: Include it.
61061
61062 2006-10-21  Bruno Haible  <bruno@clisp.org>
61063
61064         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
61065         "Introduction", "Miscellanous Notes", "Particular Modules".
61066
61067 2006-10-21  Bruno Haible  <bruno@clisp.org>
61068
61069         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61070         Change mostlyclean-local rule to avoid sh syntax error from bash
61071         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
61072
61073 2006-10-23  Jim Meyering  <jim@meyering.net>
61074
61075         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
61076         in place of snprintf.
61077
61078         * modules/inttostr (Files): Add lib/uinttostr.c.
61079         * lib/uinttostr.c (inttostr): New file/function.
61080         * lib/inttostr.h (uinttostr): Declare.
61081         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
61082         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61083         Add uinttostr.
61084         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
61085
61086 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61087
61088         * lib/canonicalize.c (ELOOP): Define if not already defined.
61089         Problem reported by Bruno Haible in
61090         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
61091
61092 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61093
61094         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
61095         Problem reported by Perry Smith and Ville Laurikari.
61096
61097         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
61098         uses.
61099
61100 2006-10-19  Bruno Haible  <bruno@clisp.org>
61101
61102         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
61103         for mingw.
61104
61105 2006-10-19  Bruno Haible  <bruno@clisp.org>
61106
61107         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
61108         Needed for mingw.
61109
61110 2006-10-19  Bruno Haible  <bruno@clisp.org>
61111
61112         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61113
61114 2006-10-19  Bruno Haible  <bruno@clisp.org>
61115
61116         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61117         it.
61118
61119 2006-10-19  Bruno Haible  <bruno@clisp.org>
61120
61121         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
61122         invocation.
61123
61124 2006-10-19  Bruno Haible  <bruno@clisp.org>
61125
61126         * gnulib-tool (func_create_testdir): Don't include ftruncate and
61127         mountlist by default.
61128
61129 2006-10-16  Bruno Haible  <bruno@clisp.org>
61130
61131         * lib/c-strstr.c: Include c-strstr.h.
61132
61133 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61134
61135         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
61136         in a slash.
61137
61138 2006-10-18  Bruno Haible  <bruno@clisp.org>
61139
61140         * lib/lock.h [C++]: Wrap definitions in extern "C".
61141
61142 2006-10-18  Bruno Haible  <bruno@clisp.org>
61143
61144         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
61145         gl_LIBOBJS list.
61146
61147 2006-10-18  Bruno Haible  <bruno@clisp.org>
61148
61149         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
61150
61151 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
61152
61153         * lib/xstrtol.h: Include gettext.h.
61154         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
61155         Problem reported by Eric Blake.
61156         * modules/xstrtol (Depends-on): Add gettext-h.
61157
61158 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
61159
61160         * lib/strftime.c (advance): New macro.
61161         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
61162         incomplete type, so you can't add 0 to it.  Problem and patch
61163         reported by Eelco Dolstra for dietlibc.
61164
61165 2006-10-18  Jim Meyering  <jim@meyering.net>
61166
61167         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
61168         type for a local, and rename it: s/up/user_proc/.
61169
61170 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61171
61172         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
61173         READ_UTMP_USER_PROCESS.
61174         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
61175
61176 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61177
61178         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
61179         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
61180
61181 2006-10-17  Eric Blake  <ebb9@byu.net>
61182
61183         * lib/sigprocmask.c (sigprocmask): Fix typo.
61184
61185         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
61186
61187         * modules/clean-temp (Makefile.am): Don't add to make output...
61188         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
61189         config.h.
61190
61191 2006-10-17  Bruno Haible  <bruno@clisp.org>
61192
61193         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
61194         differently if DEFAULT_TEXT_DOMAIN is set.
61195
61196 2006-10-16  Bruno Haible  <bruno@clisp.org>
61197
61198         * lib/clean-temp.c: Include fwriteerror.h.
61199
61200 2006-10-16  Bruno Haible  <bruno@clisp.org>
61201
61202         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
61203
61204 2006-10-16  Bruno Haible  <bruno@clisp.org>
61205
61206         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
61207         * lib/sigprocmask.h: Include <sys/types.h>.
61208         (sigset_t): Use the system's definition if present.
61209
61210 2006-10-17  Eric Blake  <ebb9@byu.net>
61211
61212         * lib/xvasprintf.c (includes): Assume config.h.
61213         * lib/xasprintf.c (includes): Likewise.
61214
61215 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61216
61217         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
61218         at least as wide as intmax_t.
61219
61220 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
61221
61222         (Imported from Automake.)
61223         * build-aux/gnupload: Update to version 1.1 of directive file.
61224
61225 2006-10-16  Eric Blake  <ebb9@byu.net>
61226
61227         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61228         match Automake 1.10a.
61229
61230 2006-10-14  Bruno Haible  <bruno@clisp.org>
61231
61232         * modules/sigprocmask: New file.
61233         * lib/sigprocmask.h: New file.
61234         * lib/sigprocmask.c: New file.
61235         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
61236         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
61237         request sigprocmask.o.
61238         (gl_PREREQ_SIGPROCMASK): New macro.
61239         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
61240         (Depends-on): Add sigprocmask.
61241         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
61242         gt_SIGNALBLOCKING. Test for 'raise' only once.
61243         * lib/fatal-signal.c: Include sigprocmask.h.
61244         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
61245         unblock_fatal_signals): Define always.
61246         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61247         sigprocmask.
61248
61249 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61250
61251         Sync from Automake.
61252         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
61253         which incorrectly sets the mode of an existing destination
61254         directory.  In some cases the unpatched install-sh could do the
61255         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
61256         system.  We hope this is rare in practice, but it's clearly worth
61257         fixing.  Problem reported by Alex Unleashed in
61258         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
61259         Also, don't bother to check for -m bugs unless we're using -m;
61260         suggested by Stepan Kasal.
61261
61262 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61263
61264         Sync from Automake.
61265         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
61266         `-c' flag, so they appear at the same position as in %FASTDEP%
61267         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
61268         which ignores unknown options only after the first non-option.
61269         Bug report against M4 by Nelson H. F. Beebe.
61270
61271 2006-10-13  Jim Meyering  <jim@meyering.net>
61272
61273         Fix a bug in yesterday's change.
61274         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
61275         p->fts_statp->st_dev would be used uninitialized.
61276         Ensures that we always call fts_stat on the very first entry.
61277         Miklos Szeredi reported that find -xdev stopped working.
61278
61279 2006-10-12  Bruno Haible  <bruno@clisp.org>
61280
61281         * gnulib-tool (func_get_automake_snippet): Append an automatically
61282         computed EXTRA_DIST augmentation.
61283         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
61284         * modules/alloca-opt (Makefile.am): Likewise.
61285         * modules/allocsa (Makefile.am): Likewise.
61286         * modules/arcfour (Makefile.am): Likewise.
61287         * modules/arctwo (Makefile.am): Likewise.
61288         * modules/argmatch (Makefile.am): Likewise.
61289         * modules/argz (Makefile.am): Likewise.
61290         * modules/atexit (Makefile.am): Likewise.
61291         * modules/backupfile (Makefile.am): Likewise.
61292         * modules/byteswap (Makefile.am): Likewise.
61293         * modules/c-strtod (Makefile.am): Likewise.
61294         * modules/c-strtold (Makefile.am): Likewise.
61295         * modules/calloc (Makefile.am): Likewise.
61296         * modules/canon-host (Makefile.am): Likewise.
61297         * modules/canonicalize (Makefile.am): Likewise.
61298         * modules/chdir-long (Makefile.am): Likewise.
61299         * modules/chdir-safer (Makefile.am): Likewise.
61300         * modules/check-version (Makefile.am): Likewise.
61301         * modules/chown (Makefile.am): Likewise.
61302         * modules/cloexec (Makefile.am): Likewise.
61303         * modules/close-stream (Makefile.am): Likewise.
61304         * modules/closeout (Makefile.am): Likewise.
61305         * modules/crc (Makefile.am): Likewise.
61306         * modules/csharpexec (Makefile.am): Likewise.
61307         * modules/cycle-check (Makefile.am): Likewise.
61308         * modules/des (Makefile.am): Likewise.
61309         * modules/dev-ino (Makefile.am): Likewise.
61310         * modules/dirfd (Makefile.am): Likewise.
61311         * modules/dirname (Makefile.am): Likewise.
61312         * modules/dup2 (Makefile.am): Likewise.
61313         * modules/eealloc (Makefile.am): Likewise.
61314         * modules/error (Makefile.am): Likewise.
61315         * modules/euidaccess (Makefile.am): Likewise.
61316         * modules/exclude (Makefile.am): Likewise.
61317         * modules/exitfail (Makefile.am): Likewise.
61318         * modules/fcntl-safer (Makefile.am): Likewise.
61319         * modules/fcntl (Makefile.am): Likewise.
61320         * modules/file-type (Makefile.am): Likewise.
61321         * modules/fileblocks (Makefile.am): Likewise.
61322         * modules/filemode (Makefile.am): Likewise.
61323         * modules/filenamecat (Makefile.am): Likewise.
61324         * modules/fnmatch (Makefile.am): Likewise.
61325         * modules/fopen-safer (Makefile.am): Likewise.
61326         * modules/fpending (Makefile.am): Likewise.
61327         * modules/fprintftime (Makefile.am): Likewise.
61328         * modules/free (Makefile.am): Likewise.
61329         * modules/fsusage (Makefile.am): Likewise.
61330         * modules/ftruncate (Makefile.am): Likewise.
61331         * modules/fts (Makefile.am): Likewise.
61332         * modules/gc-arcfour (Makefile.am): Likewise.
61333         * modules/gc-des (Makefile.am): Likewise.
61334         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61335         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61336         * modules/gc-md4 (Makefile.am): Likewise.
61337         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61338         * modules/gc-sha1 (Makefile.am): Likewise.
61339         * modules/gc (Makefile.am): Likewise.
61340         * modules/getaddrinfo (Makefile.am): Likewise.
61341         * modules/getcwd (Makefile.am): Likewise.
61342         * modules/getdelim (Makefile.am): Likewise.
61343         * modules/getdomainname (Makefile.am): Likewise.
61344         * modules/getgroups (Makefile.am): Likewise.
61345         * modules/gethostname (Makefile.am): Likewise.
61346         * modules/gethrxtime (Makefile.am): Likewise.
61347         * modules/getline (Makefile.am): Likewise.
61348         * modules/getloadavg (Makefile.am): Likewise.
61349         * modules/getlogin_r (Makefile.am): Likewise.
61350         * modules/getndelim2 (Makefile.am): Likewise.
61351         * modules/getopt (Makefile.am): Likewise.
61352         * modules/getpagesize (Makefile.am): Likewise.
61353         * modules/getpass-gnu (Makefile.am): Likewise.
61354         * modules/getpass (Makefile.am): Likewise.
61355         * modules/getsubopt (Makefile.am): Likewise.
61356         * modules/gettime (Makefile.am): Likewise.
61357         * modules/gettimeofday (Makefile.am): Likewise.
61358         * modules/getugroups (Makefile.am): Likewise.
61359         * modules/getusershell (Makefile.am): Likewise.
61360         * modules/glob (Makefile.am): Likewise.
61361         * modules/group-member (Makefile.am): Likewise.
61362         * modules/hard-locale (Makefile.am): Likewise.
61363         * modules/hash (Makefile.am): Likewise.
61364         * modules/hmac-md5 (Makefile.am): Likewise.
61365         * modules/hmac-sha1 (Makefile.am): Likewise.
61366         * modules/human (Makefile.am): Likewise.
61367         * modules/idcache (Makefile.am): Likewise.
61368         * modules/imaxabs (Makefile.am): Likewise.
61369         * modules/imaxdiv (Makefile.am): Likewise.
61370         * modules/inet_ntop (Makefile.am): Likewise.
61371         * modules/inet_pton (Makefile.am): Likewise.
61372         * modules/intprops (Makefile.am): Likewise.
61373         * modules/inttostr (Makefile.am): Likewise.
61374         * modules/inttypes (Makefile.am): Likewise.
61375         * modules/isapipe (Makefile.am): Likewise.
61376         * modules/javaversion (Makefile.am): Likewise.
61377         * modules/lchmod (Makefile.am): Likewise.
61378         * modules/lchown (Makefile.am): Likewise.
61379         * modules/localcharset (Makefile.am): Likewise.
61380         * modules/long-options (Makefile.am): Likewise.
61381         * modules/lstat (Makefile.am): Likewise.
61382         * modules/malloc (Makefile.am): Likewise.
61383         * modules/mathl (Makefile.am): Likewise.
61384         * modules/mbchar (Makefile.am): Likewise.
61385         * modules/md2 (Makefile.am): Likewise.
61386         * modules/md4 (Makefile.am): Likewise.
61387         * modules/md5 (Makefile.am): Likewise.
61388         * modules/memcasecmp (Makefile.am): Likewise.
61389         * modules/memchr (Makefile.am): Likewise.
61390         * modules/memcmp (Makefile.am): Likewise.
61391         * modules/memcoll (Makefile.am): Likewise.
61392         * modules/memcpy (Makefile.am): Likewise.
61393         * modules/memmem (Makefile.am): Likewise.
61394         * modules/memmove (Makefile.am): Likewise.
61395         * modules/mempcpy (Makefile.am): Likewise.
61396         * modules/memrchr (Makefile.am): Likewise.
61397         * modules/memset (Makefile.am): Likewise.
61398         * modules/memxor (Makefile.am): Likewise.
61399         * modules/mkancesdirs (Makefile.am): Likewise.
61400         * modules/mkdir-p (Makefile.am): Likewise.
61401         * modules/mkdir (Makefile.am): Likewise.
61402         * modules/mkdtemp (Makefile.am): Likewise.
61403         * modules/mkstemp (Makefile.am): Likewise.
61404         * modules/mktime (Makefile.am): Likewise.
61405         * modules/modechange (Makefile.am): Likewise.
61406         * modules/mountlist (Makefile.am): Likewise.
61407         * modules/nanosleep (Makefile.am): Likewise.
61408         * modules/obstack (Makefile.am): Likewise.
61409         * modules/openat (Makefile.am): Likewise.
61410         * modules/pagealign_alloc (Makefile.am): Likewise.
61411         * modules/pathmax (Makefile.am): Likewise.
61412         * modules/physmem (Makefile.am): Likewise.
61413         * modules/poll (Makefile.am): Likewise.
61414         * modules/posixtm (Makefile.am): Likewise.
61415         * modules/posixver (Makefile.am): Likewise.
61416         * modules/putenv (Makefile.am): Likewise.
61417         * modules/quote (Makefile.am): Likewise.
61418         * modules/quotearg (Makefile.am): Likewise.
61419         * modules/raise (Makefile.am): Likewise.
61420         * modules/read-file (Makefile.am): Likewise.
61421         * modules/readline (Makefile.am): Likewise.
61422         * modules/readlink (Makefile.am): Likewise.
61423         * modules/readtokens (Makefile.am): Likewise.
61424         * modules/readutmp (Makefile.am): Likewise.
61425         * modules/realloc (Makefile.am): Likewise.
61426         * modules/regex (Makefile.am): Likewise.
61427         * modules/rename-dest-slash (Makefile.am): Likewise.
61428         * modules/rename (Makefile.am): Likewise.
61429         * modules/rijndael (Makefile.am): Likewise.
61430         * modules/rmdir (Makefile.am): Likewise.
61431         * modules/rpmatch (Makefile.am): Likewise.
61432         * modules/safe-read (Makefile.am): Likewise.
61433         * modules/safe-write (Makefile.am): Likewise.
61434         * modules/same-inode (Makefile.am): Likewise.
61435         * modules/same (Makefile.am): Likewise.
61436         * modules/save-cwd (Makefile.am): Likewise.
61437         * modules/savedir (Makefile.am): Likewise.
61438         * modules/setenv (Makefile.am): Likewise.
61439         * modules/settime (Makefile.am): Likewise.
61440         * modules/sha1 (Makefile.am): Likewise.
61441         * modules/sig2str (Makefile.am): Likewise.
61442         * modules/snprintf (Makefile.am): Likewise.
61443         * modules/stat-macros (Makefile.am): Likewise.
61444         * modules/stat-time (Makefile.am): Likewise.
61445         * modules/stdbool (Makefile.am): Likewise.
61446         * modules/stdint (Makefile.am): Likewise.
61447         * modules/stdlib-safer (Makefile.am): Likewise.
61448         * modules/stpcpy (Makefile.am): Likewise.
61449         * modules/stpncpy (Makefile.am): Likewise.
61450         * modules/strcase (Makefile.am): Likewise.
61451         * modules/strcasestr (Makefile.am): Likewise.
61452         * modules/strchrnul (Makefile.am): Likewise.
61453         * modules/strcspn (Makefile.am): Likewise.
61454         * modules/strdup (Makefile.am): Likewise.
61455         * modules/strerror (Makefile.am): Likewise.
61456         * modules/strftime (Makefile.am): Likewise.
61457         * modules/strndup (Makefile.am): Likewise.
61458         * modules/strnlen (Makefile.am): Likewise.
61459         * modules/strpbrk (Makefile.am): Likewise.
61460         * modules/strsep (Makefile.am): Likewise.
61461         * modules/strstr (Makefile.am): Likewise.
61462         * modules/strtod (Makefile.am): Likewise.
61463         * modules/strtoimax (Makefile.am): Likewise.
61464         * modules/strtok_r (Makefile.am): Likewise.
61465         * modules/strtol (Makefile.am): Likewise.
61466         * modules/strtoll (Makefile.am): Likewise.
61467         * modules/strtoul (Makefile.am): Likewise.
61468         * modules/strtoull (Makefile.am): Likewise.
61469         * modules/strtoumax (Makefile.am): Likewise.
61470         * modules/strverscmp (Makefile.am): Likewise.
61471         * modules/sys_socket (Makefile.am): Likewise.
61472         * modules/sys_stat (Makefile.am): Likewise.
61473         * modules/sysexits (Makefile.am): Likewise.
61474         * modules/time_r (Makefile.am): Likewise.
61475         * modules/timegm (Makefile.am): Likewise.
61476         * modules/timespec (Makefile.am): Likewise.
61477         * modules/tmpfile-safer (Makefile.am): Likewise.
61478         * modules/trim (Makefile.am): Likewise.
61479         * modules/unistd-safer (Makefile.am): Likewise.
61480         * modules/unlinkdir (Makefile.am): Likewise.
61481         * modules/unlocked-io (Makefile.am): Likewise.
61482         * modules/userspec (Makefile.am): Likewise.
61483         * modules/utime (Makefile.am): Likewise.
61484         * modules/utimecmp (Makefile.am): Likewise.
61485         * modules/utimens (Makefile.am): Likewise.
61486         * modules/vasnprintf (Makefile.am): Likewise.
61487         * modules/vasprintf (Makefile.am): Likewise.
61488         * modules/vsnprintf (Makefile.am): Likewise.
61489         * modules/xalloc (Makefile.am): Likewise.
61490         * modules/xgetcwd (Makefile.am): Likewise.
61491         * modules/xnanosleep (Makefile.am): Likewise.
61492         * modules/xreadlink (Makefile.am): Likewise.
61493         * modules/xstrtod (Makefile.am): Likewise.
61494         * modules/xstrtol (Makefile.am): Likewise.
61495         * modules/xstrtold (Makefile.am): Likewise.
61496         * modules/yesno (Makefile.am): Likewise.
61497         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61498
61499 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61500
61501         * modules/error (Makefile.am): Distribute files through
61502         EXTRA_DIST, not lib_SOURCES.
61503
61504 2006-10-12  Eric Blake  <ebb9@byu.net>
61505
61506         * modules/error (Makefile.am): Distribute files in /lib.
61507         * modules/obstack (Makefile.am): Likewise.
61508
61509 2006-10-12  Bruno Haible  <bruno@clisp.org>
61510
61511         * modules/acl (Makefile.am): Distribute all files in lib/ through
61512         EXTRA_DIST.
61513         * modules/arcfour (Makefile.am): Likewise.
61514         * modules/arctwo (Makefile.am): Likewise.
61515         * modules/argmatch (Makefile.am): Likewise.
61516         * modules/argz (Makefile.am): Likewise.
61517         * modules/atexit (Makefile.am): Likewise.
61518         * modules/backupfile (Makefile.am): Likewise.
61519         * modules/c-strtod (Makefile.am): Likewise.
61520         * modules/c-strtold (Makefile.am): Likewise.
61521         * modules/calloc (Makefile.am): Likewise.
61522         * modules/canon-host (Makefile.am): Likewise.
61523         * modules/canonicalize (Makefile.am): Likewise.
61524         * modules/chdir-long (Makefile.am): Likewise.
61525         * modules/chdir-safer (Makefile.am): Likewise.
61526         * modules/check-version (Makefile.am): Likewise.
61527         * modules/chown (Makefile.am): Likewise.
61528         * modules/cloexec (Makefile.am): Likewise.
61529         * modules/close-stream (Makefile.am): Likewise.
61530         * modules/closeout (Makefile.am): Likewise.
61531         * modules/crc (Makefile.am): Likewise.
61532         * modules/cycle-check (Makefile.am): Likewise.
61533         * modules/des (Makefile.am): Likewise.
61534         * modules/dirfd (Makefile.am): Likewise.
61535         * modules/dirname (Makefile.am): Likewise.
61536         * modules/dup2 (Makefile.am): Likewise.
61537         * modules/euidaccess (Makefile.am): Likewise.
61538         * modules/exclude (Makefile.am): Likewise.
61539         * modules/exitfail (Makefile.am): Likewise.
61540         * modules/fcntl-safer (Makefile.am): Likewise.
61541         * modules/file-type (Makefile.am): Likewise.
61542         * modules/fileblocks (Makefile.am): Likewise.
61543         * modules/filemode (Makefile.am): Likewise.
61544         * modules/filenamecat (Makefile.am): Likewise.
61545         * modules/fnmatch (Makefile.am): Likewise.
61546         * modules/fopen-safer (Makefile.am): Likewise.
61547         * modules/fpending (Makefile.am): Likewise.
61548         * modules/fprintftime (Makefile.am): Likewise.
61549         * modules/free (Makefile.am): Likewise.
61550         * modules/fsusage (Makefile.am): Likewise.
61551         * modules/ftruncate (Makefile.am): Likewise.
61552         * modules/fts (Makefile.am): Likewise.
61553         * modules/gc (Makefile.am): Likewise.
61554         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61555         * modules/getaddrinfo (Makefile.am): Likewise.
61556         * modules/getcwd (Makefile.am): Likewise.
61557         * modules/getdelim (Makefile.am): Likewise.
61558         * modules/getdomainname (Makefile.am): Likewise.
61559         * modules/getgroups (Makefile.am): Likewise.
61560         * modules/gethostname (Makefile.am): Likewise.
61561         * modules/gethrxtime (Makefile.am): Likewise.
61562         * modules/getline (Makefile.am): Likewise.
61563         * modules/getloadavg (Makefile.am): Likewise.
61564         * modules/getlogin_r (Makefile.am): Likewise.
61565         * modules/getopt (Makefile.am): Likewise.
61566         * modules/getpass (Makefile.am): Likewise.
61567         * modules/getpass-gnu (Makefile.am): Likewise.
61568         * modules/getsubopt (Makefile.am): Likewise.
61569         * modules/gettime (Makefile.am): Likewise.
61570         * modules/gettimeofday (Makefile.am): Likewise.
61571         * modules/getugroups (Makefile.am): Likewise.
61572         * modules/getusershell (Makefile.am): Likewise.
61573         * modules/glob (Makefile.am): Likewise.
61574         * modules/group-member (Makefile.am): Likewise.
61575         * modules/hard-locale (Makefile.am): Likewise.
61576         * modules/hash (Makefile.am): Likewise.
61577         * modules/hmac-md5 (Makefile.am): Likewise.
61578         * modules/hmac-sha1 (Makefile.am): Likewise.
61579         * modules/human (Makefile.am): Likewise.
61580         * modules/idcache (Makefile.am): Likewise.
61581         * modules/imaxabs (Makefile.am): Likewise.
61582         * modules/imaxdiv (Makefile.am): Likewise.
61583         * modules/inet_ntop (Makefile.am): Likewise.
61584         * modules/inet_pton (Makefile.am): Likewise.
61585         * modules/inttostr (Makefile.am): Likewise.
61586         * modules/isapipe (Makefile.am): Likewise.
61587         * modules/lchown (Makefile.am): Likewise.
61588         * modules/long-options (Makefile.am): Likewise.
61589         * modules/lstat (Makefile.am): Likewise.
61590         * modules/malloc (Makefile.am): Likewise.
61591         * modules/mathl (Makefile.am): Likewise.
61592         * modules/mbchar (Makefile.am): Likewise.
61593         * modules/md2 (Makefile.am): Likewise.
61594         * modules/md4 (Makefile.am): Likewise.
61595         * modules/md5 (Makefile.am): Likewise.
61596         * modules/memcasecmp (Makefile.am): Likewise.
61597         * modules/memchr (Makefile.am): Likewise.
61598         * modules/memcmp (Makefile.am): Likewise.
61599         * modules/memcoll (Makefile.am): Likewise.
61600         * modules/memcpy (Makefile.am): Likewise.
61601         * modules/memmem (Makefile.am): Likewise.
61602         * modules/memmove (Makefile.am): Likewise.
61603         * modules/mempcpy (Makefile.am): Likewise.
61604         * modules/memrchr (Makefile.am): Likewise.
61605         * modules/memset (Makefile.am): Likewise.
61606         * modules/memxor (Makefile.am): Likewise.
61607         * modules/mkancesdirs (Makefile.am): Likewise.
61608         * modules/mkdir (Makefile.am): Likewise.
61609         * modules/mkdir-p (Makefile.am): Likewise.
61610         * modules/mkdtemp (Makefile.am): Likewise.
61611         * modules/mkstemp (Makefile.am): Likewise.
61612         * modules/mktime (Makefile.am): Likewise.
61613         * modules/modechange (Makefile.am): Likewise.
61614         * modules/mountlist (Makefile.am): Likewise.
61615         * modules/nanosleep (Makefile.am): Likewise.
61616         * modules/openat (Makefile.am): Likewise.
61617         * modules/pagealign_alloc (Makefile.am): Likewise.
61618         * modules/physmem (Makefile.am): Likewise.
61619         * modules/poll (Makefile.am): Likewise.
61620         * modules/posixtm (Makefile.am): Likewise.
61621         * modules/posixver (Makefile.am): Likewise.
61622         * modules/putenv (Makefile.am): Likewise.
61623         * modules/quote (Makefile.am): Likewise.
61624         * modules/quotearg (Makefile.am): Likewise.
61625         * modules/raise (Makefile.am): Likewise.
61626         * modules/read-file (Makefile.am): Likewise.
61627         * modules/readline (Makefile.am): Likewise.
61628         * modules/readlink (Makefile.am): Likewise.
61629         * modules/readtokens (Makefile.am): Likewise.
61630         * modules/readutmp (Makefile.am): Likewise.
61631         * modules/realloc (Makefile.am): Likewise.
61632         * modules/regex (Makefile.am): Likewise.
61633         * modules/rename (Makefile.am): Likewise.
61634         * modules/rename-dest-slash (Makefile.am): Likewise.
61635         * modules/rijndael (Makefile.am): Likewise.
61636         * modules/rmdir (Makefile.am): Likewise.
61637         * modules/rpmatch (Makefile.am): Likewise.
61638         * modules/safe-read (Makefile.am): Likewise.
61639         * modules/safe-write (Makefile.am): Likewise.
61640         * modules/same (Makefile.am): Likewise.
61641         * modules/save-cwd (Makefile.am): Likewise.
61642         * modules/savedir (Makefile.am): Likewise.
61643         * modules/setenv (Makefile.am): Likewise.
61644         * modules/settime (Makefile.am): Likewise.
61645         * modules/sha1 (Makefile.am): Likewise.
61646         * modules/sig2str (Makefile.am): Likewise.
61647         * modules/snprintf (Makefile.am): Likewise.
61648         * modules/stdlib-safer (Makefile.am): Likewise.
61649         * modules/stpcpy (Makefile.am): Likewise.
61650         * modules/stpncpy (Makefile.am): Likewise.
61651         * modules/strcase (Makefile.am): Likewise.
61652         * modules/strcasestr (Makefile.am): Likewise.
61653         * modules/strchrnul (Makefile.am): Likewise.
61654         * modules/strcspn (Makefile.am): Likewise.
61655         * modules/strdup (Makefile.am): Likewise.
61656         * modules/strerror (Makefile.am): Likewise.
61657         * modules/strftime (Makefile.am): Likewise.
61658         * modules/strndup (Makefile.am): Likewise.
61659         * modules/strnlen (Makefile.am): Likewise.
61660         * modules/strpbrk (Makefile.am): Likewise.
61661         * modules/strsep (Makefile.am): Likewise.
61662         * modules/strstr (Makefile.am): Likewise.
61663         * modules/strtod (Makefile.am): Likewise.
61664         * modules/strtoimax (Makefile.am): Likewise.
61665         * modules/strtok_r (Makefile.am): Likewise.
61666         * modules/strtol (Makefile.am): Likewise.
61667         * modules/strtoll (Makefile.am): Likewise.
61668         * modules/strtoul (Makefile.am): Likewise.
61669         * modules/strtoull (Makefile.am): Likewise.
61670         * modules/strtoumax (Makefile.am): Likewise.
61671         * modules/strverscmp (Makefile.am): Likewise.
61672         * modules/time_r (Makefile.am): Likewise.
61673         * modules/timegm (Makefile.am): Likewise.
61674         * modules/tmpfile-safer (Makefile.am): Likewise.
61675         * modules/unistd-safer (Makefile.am): Likewise.
61676         * modules/unlinkdir (Makefile.am): Likewise.
61677         * modules/userspec (Makefile.am): Likewise.
61678         * modules/utime (Makefile.am): Likewise.
61679         * modules/utimecmp (Makefile.am): Likewise.
61680         * modules/utimens (Makefile.am): Likewise.
61681         * modules/vasnprintf (Makefile.am): Likewise.
61682         * modules/vasprintf (Makefile.am): Likewise.
61683         * modules/vsnprintf (Makefile.am): Likewise.
61684         * modules/xalloc (Makefile.am): Likewise.
61685         * modules/xgetcwd (Makefile.am): Likewise.
61686         * modules/xnanosleep (Makefile.am): Likewise.
61687         * modules/xreadlink (Makefile.am): Likewise.
61688         * modules/xstrtod (Makefile.am): Likewise.
61689         * modules/xstrtol (Makefile.am): Likewise.
61690         * modules/xstrtold (Makefile.am): Likewise.
61691         * modules/yesno (Makefile.am): Likewise.
61692
61693 2006-10-12  Jim Meyering  <jim@meyering.net>
61694
61695         * m4/getloadavg.m4: Revert the change below.
61696
61697         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61698         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61699         fail with a symlink, which is what coreutils' ./bootstrap now
61700         creates by default.
61701
61702 2006-10-12  Bruno Haible  <bruno@clisp.org>
61703
61704         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61705         mingw.
61706         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61707         MSVC and mingw explicitly.
61708
61709 2006-10-11  Simon Josefsson  <jas@extundo.com>
61710             Bruno Haible  <bruno@clisp.org>
61711
61712         Add support for multiple gnulib-tool invocations in the scope of a
61713         single configure.ac file.
61714         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61715         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61716         with the same contents as the _LIBADD variable.
61717         (func_emit_initmacro_start, func_emit_initmacro_end,
61718         func_emit_initmacro_done): New functions.
61719         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61720         gl_LIBOBJS and gl_LTLIBOBJS.
61721
61722 2006-10-11  Bruno Haible  <bruno@clisp.org>
61723
61724         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61725         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61726         autoreconf. Instead, invoke autopoint explicitly but move back the
61727         *.m4 files from gnulib.
61728
61729 2006-10-11  Bruno Haible  <bruno@clisp.org>
61730
61731         * gnulib-tool (func_usage): Make module names after --create-testdir
61732         optional.
61733         (func_create_testdir): If no module was specified, use nearly all
61734         modules.
61735
61736 2006-10-12  Jim Meyering  <jim@meyering.net>
61737
61738         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61739         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61740         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61741         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61742         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61743         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61744         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61745         (fts_set_stat_required): New function.
61746         (fts_open): Defer the calls to fts_stat, if possible or requested.
61747         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61748         into fts_stat itself.
61749         (fts_read): Perform any required (deferred) fts_stat call.
61750         (fts_build): Likewise, for the directory we're about to open and read.
61751         In the readdir loop, carefully decide whether each entry will require
61752         an eventual call to fts_stat, using dirent.d_type info if available.
61753         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61754         a command line argument into this function.  Update all callers.
61755         Map a return value of FTS_DOT to FTS_D for a command line argument.
61756         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61757         Thanks to Miklos Szeredi for his tenacity and for the initial
61758         bug report about "find" failing on a FUSE-based file system.
61759
61760         * lib/fts.c (fts_open): Use consistent indentation.
61761
61762 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61763
61764         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61765         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61766         reported by Jim Meyering.  All uses of cache variables renamed
61767         to match Autoconf's.
61768         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61769         the other one.
61770
61771         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61772         Fix misspelling in diagnostic.
61773
61774 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61775
61776         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61777         defined.  Problem reported by Matthew Woehlke.
61778
61779         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61780         Add support for Tandem NonStop R series.
61781         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61782         Use new macro.
61783
61784         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61785         (has_trailing_slash): Omit size arg; all callers changed.
61786         Omit 'inline', since it doesn't help performance and we'd
61787         need to configure it.
61788         Don't count //, ///, etc. as having a trailing slash.
61789         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61790         (rpl_rename_dest_slash): On failure, use rename's errno rather
61791         than (in some cases) an incorrect or junk errno.
61792         Simplify code by removing need to compute length; this does
61793         cause it to make two passes instead of one over the file name,
61794         but it's worth it.
61795
61796         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61797         change, since Autoconf's version may no longer be appropriate now
61798         that we are using CVS Autoconf's version.  Add support for Tandem.
61799
61800 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61801             Bruno Haible  <bruno@clisp.org>
61802
61803         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61804         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61805         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61806         gl_AC_TYPE_LONG_LONG.
61807
61808         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61809         instead of HAVE_LONG_LONG.
61810         * lib/printf-args.c (printf_fetchargs): Likewise.
61811         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61812         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61813         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61814         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61815         gl_AC_TYPE_LONG_LONG.
61816
61817 2006-10-11  Bruno Haible  <bruno@clisp.org>
61818
61819         * m4/longlong.m4: Add comments.
61820         * m4/ulonglong.m4: Likewise.
61821
61822 2006-10-10  Bruno Haible  <bruno@clisp.org>
61823
61824         Make it possible to #define stpcpy, strdup to aliases.
61825         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61826         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61827
61828 2006-10-10  Bruno Haible  <bruno@clisp.org>
61829
61830         Make it possible to #define gcd to an alias.
61831         * lib/gcd.c: Include config.h.
61832
61833 2006-10-10  Bruno Haible  <bruno@clisp.org>
61834
61835         Make it possible to #define c_isascii to an alias.
61836         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61837         defined. Undefine the macros before defining them, to avoid gcc
61838         warnings.
61839         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61840         define NO_C_CTYPE_MACROS early.
61841
61842 2006-10-10  Bruno Haible  <bruno@clisp.org>
61843
61844         Make it possible to #define set_program_name to an alias.
61845         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61846         ENABLE_RELOCATABLE early.
61847
61848 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61849
61850         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61851         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61852         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61853         More generally, don't assume that 64-bit signed int is available
61854         if unsigned int is, and vice versa.
61855         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61856         unsigned symbols, not on their signed counterparts.
61857         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61858         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61859         (UINT64_C, UINTMAX_C):
61860         Likewise.
61861         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61862         unsigned counterparts.
61863         (Have_long_long, Unsigned): New macros.
61864         (Int): Renamed from INT.
61865         (strtoimax): Use the new macros.
61866         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61867         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61868         * modules/inttypes (inttypes.h): Substitute
61869         HAVE_UNSIGNED_LONG_LONG_INT.
61870         * modules/stdint (stdint.h): Likewise.
61871         (Files): Add m4/ulonglong.m4.
61872
61873 2006-10-10  Bruno Haible  <bruno@clisp.org>
61874
61875         Fix a gcc -Wshadow warning.
61876         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
61877         to 'bucket'.
61878         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
61879         gl_linked_indexof_from_to): Likewise.
61880         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
61881         Likewise.
61882         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
61883         Likewise.
61884         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
61885         Reported by Eric Blake.
61886
61887 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
61888
61889         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
61890         for NetBSD.  Problem reported by Bruno Haible.
61891
61892 2006-10-09  Jim Meyering  <jim@meyering.net>
61893
61894         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
61895         Patch from Bruno Haible.
61896
61897 2006-10-09  Jim Meyering  <jim@meyering.net>
61898
61899         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
61900         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
61901         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
61902
61903 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61904
61905         Don't include <config.h> twice; this doesn't work in some cases,
61906         e.g., when config.h has "#define intmax_t long long int" and
61907         we include <config.h>, <inttypes.h>, <config.h> in that order.
61908         Problem reported by Matthew Woehlke in:
61909         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
61910         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
61911         * lib/fts-cycle.c: Don't include config.h.
61912         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
61913         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
61914         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
61915         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
61916         inttypes.h.
61917         * lib/xstrtoumax.c: Likewise.
61918         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
61919         __strtol and the like, so that this module is more like its siblings.
61920         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
61921         Remove; no longer needed now that we assume gnulib inttypes.h.
61922
61923 2006-10-08  Bruno Haible  <bruno@clisp.org>
61924
61925         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
61926         option.
61927
61928 2006-10-07  Jim Meyering  <jim@meyering.net>
61929
61930         * modules/inttypes (inttypes.h): Revert what seems to have been
61931         an inadvertent part of today's change: use "|", not "/" in the
61932         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
61933
61934 2006-10-07  Bruno Haible  <bruno@clisp.org>
61935
61936         * modules/sublist: New file.
61937
61938 2006-10-07  Bruno Haible  <bruno@clisp.org>
61939
61940         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
61941         * modules/argz (argz.h): Likewise.
61942         * modules/arpa_inet (arpa/inet.h): Likewise.
61943         * modules/byteswap (byteswap.h): Likewise.
61944         * modules/configmake (configmake.h): Likewise.
61945         * modules/fcntl (fcntl.h): Likewise.
61946         * modules/fnmatch (fnmatch.h): Likewise.
61947         * modules/getopt (getopt.h): Likewise.
61948         * modules/glob (glob.h): Likewise.
61949         * modules/inttypes (inttypes.h): Likewise.
61950         * modules/netinet_in (netinet/in.h): Likewise.
61951         * modules/poll (poll.h): Likewise.
61952         * modules/stdbool (stdbool.h): Likewise.
61953         * modules/stdint (stdint.h): Likewise.
61954         * modules/sys_select (sys/select.h): Likewise.
61955         * modules/sys_socket (sys/socket.h): Likewise.
61956         * modules/sys_stat (sys/stat.h): Likewise.
61957         * modules/sysexits (sysexits.h): Likewise.
61958         * modules/unistd (unistd.h): Likewise.
61959         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61960         Add a "DO NOT EDIT" comment to the generated file.
61961         (func_import): Likewise for gnulib-comp.m4.
61962
61963 2006-10-07  Bruno Haible  <bruno@clisp.org>
61964
61965         * lib/gl_sublist.h: New file.
61966         * lib/gl_sublist.c: New file.
61967
61968 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61969
61970         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
61971         name (relative to the original working directory) and the file
61972         name component (relative to the temporary working directory).  All
61973         callers changed.
61974         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
61975         * lib/mkdir-p.c (make_dir_parents): Likewise.
61976         * lib/mkdir-p.h (make_dir_parents): Likewise.
61977
61978 2006-10-06  Eric Blake  <ebb9@byu.net>
61979
61980         Define several macros for use by the clean-temp module.
61981         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
61982         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
61983         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
61984
61985         * lib/clean-temp.h (close_stream_temp): New declaration.
61986         * lib/clean-temp.c (includes): Pull in headers according to what
61987         other modules are in use.
61988         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
61989
61990 2006-10-06  Bruno Haible  <bruno@clisp.org>
61991
61992         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
61993         instead of fopen, fwriteerror.
61994
61995 2006-10-06  Bruno Haible  <bruno@clisp.org>
61996
61997         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
61998         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
61999         int.
62000         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
62001         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
62002         Return an error indicator.
62003         Suggested by Eric Blake.
62004
62005 2006-10-06  Bruno Haible  <bruno@clisp.org>
62006
62007         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
62008         Reported by Eric Blake.
62009
62010 2006-10-06  Bruno Haible  <bruno@clisp.org>
62011
62012         * modules/closeout (Description): Mention stderr too.
62013
62014 2006-10-06  Bruno Haible  <bruno@clisp.org>
62015         and Paul Eggert  <eggert@cs.ucla.edu>
62016
62017         * lib/closeout.c (close_stdout): Also close stderr.
62018         * lib/closeout.h: Update comment.
62019
62020 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62021
62022         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
62023         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
62024         * lib/dirchownmod.c: Include lchown.h.
62025         * lib/lchown.c: Don't include files that lchown.h now includes.
62026         Don't declare chown, since lchown.h now does that.
62027         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
62028         (lchown): Define to rpl_chown if lchown is declared but
62029         does not exist.  Declare using a prototype if lchown is not
62030         declared.  Add a copyright notice.
62031         * lib/mkstemp.h: Include <unistd.h>.
62032         * lib/openat.c: Include lchown.h.
62033
62034         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
62035         we now test for that separately.
62036         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
62037         rather than O_NOFOLLOW, when testing whether it's possible to
62038         avoid a race condition reliably.
62039         * lib/savewd.c (savewd_chdir): Likewise.
62040
62041         Remove macros that are no longer needed now that stdint.h is
62042         reliable.
62043         * lib/fsusage.c (UINTMAX_MAX): Remove.
62044         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
62045         * lib/utimecmp.c (SIZE_MAX): Remove.
62046
62047         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
62048
62049         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
62050         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
62051         O_NOATIME works.
62052
62053 2006-10-05  Bruno Haible  <bruno@clisp.org>
62054
62055         * lib/gl_list.h (gl_sortedlist_search_from_to,
62056         gl_sortedlist_indexof_from_to): New declarations.
62057         (gl_list_implementation): New fields sortedlist_search_from_to,
62058         sortedlist_indexof_from_to.
62059         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
62060         inline functions.
62061         * lib/gl_list.c (gl_sortedlist_search_from_to,
62062         gl_sortedlist_indexof_from_to): New functions.
62063         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
62064         function.
62065         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
62066         (gl_array_sortedlist_search_from_to): New function.
62067         (gl_array_list_implementation): Update.
62068         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
62069         function.
62070         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
62071         (gl_carray_sortedlist_search_from_to): New function.
62072         (gl_carray_list_implementation): Update.
62073         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
62074         gl_linked_sortedlist_indexof_from_to): New functions.
62075         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62076         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62077         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
62078         gl_tree_sortedlist_indexof_from_to): New functions.
62079         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62080         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62081         Update.
62082         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62083         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
62084         Update.
62085
62086 2006-10-05  Bruno Haible  <bruno@clisp.org>
62087
62088         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
62089         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
62090         (struct gl_list_implementation): Add fields search_from_to,
62091         indexof_from_to. Remove fields search, indexof.
62092         (gl_list_search): Use the search_from_to method.
62093         (gl_list_search_from, gl_list_search_from_to): New functions.
62094         (gl_list_indexof): Use the indexof_from_to method.
62095         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62096         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
62097         (gl_list_search_from, gl_list_search_from_to): New functions.
62098         (gl_list_indexof): Use the indexof_from_to method.
62099         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62100         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
62101         gl_array_indexof. Add start_index, end_index arguments.
62102         (gl_array_search_from_to): Renamed from gl_array_search. Add
62103         start_index, end_index arguments.
62104         (gl_array_remove, gl_array_list_implementation): Update.
62105         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
62106         gl_carray_indexof. Add start_index, end_index arguments.
62107         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
62108         start_index, end_index arguments.
62109         (gl_carray_remove, gl_carray_list_implementation): Update.
62110         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
62111         gl_linked_search. Add start_index, end_index arguments.
62112         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62113         start_index, end_index arguments.
62114         (gl_linked_remove): Update.
62115         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62116         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62117         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62118         field to 'size_t'.
62119         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
62120         gl_tree_search. Add start_index, end_index arguments.
62121         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62122         start_index, end_index arguments.
62123         (gl_tree_remove): Update.
62124         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62125         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62126         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
62127         function.
62128         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
62129         gl_tree_search. Add start_index, end_index arguments.
62130         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62131         start_index, end_index arguments.
62132         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62133         Update.
62134         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62135
62136 2006-10-05  Bruno Haible  <bruno@clisp.org>
62137
62138         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
62139
62140         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
62141         fwriteerror_temp): New declarations.
62142         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
62143         (descriptors): New variable.
62144         (cleanup): First, close the descriptors.
62145         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
62146         fclose_temp, fwriteerror_temp): New functions.
62147
62148 2006-10-04  Jim Meyering  <jim@meyering.net>
62149
62150         * lib/fts.c (fts_open): Tiny comment change.
62151
62152 2006-10-04  Bruno Haible  <bruno@clisp.org>
62153
62154         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
62155         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
62156         gl_LOCK_BODY.
62157         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
62158         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
62159         gl_LOCK_EARLY_BODY.
62160         (gl_LOCK): Require gl_LOCK_BODY.
62161
62162 2006-10-04  Bruno Haible  <bruno@clisp.org>
62163
62164         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
62165         (gl_oset_search_atleast): New declaration.
62166         (struct gl_oset_implementation): Add field 'search_atleast'.
62167         (gl_oset_search_atleast): New inline function.
62168         * lib/gl_oset.c (gl_oset_search_atleast): New function.
62169         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
62170         (gl_array_oset_implementation): Update.
62171         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
62172         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
62173         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
62174
62175 2006-10-04  Bruno Haible  <bruno@clisp.org>
62176
62177         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
62178
62179 2006-10-03  Bruno Haible  <bruno@clisp.org>
62180
62181         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
62182         from gl_avltreehash_list_implementation.
62183
62184 2006-10-03  Bruno Haible  <bruno@clisp.org>
62185
62186         * lib/gl_oset.c (gl_oset_add): Fix return type.
62187
62188 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
62189
62190         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
62191
62192 2006-10-02  Eric Blake  <ebb9@byu.net>
62193
62194         * modules/strnlen (Depends-on): Add extensions.
62195
62196 2006-10-02  Eric Blake  <ebb9@byu.net>
62197
62198         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
62199         definition in 2.60+.
62200
62201 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
62202
62203         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
62204         checks.
62205
62206 2006-10-02  Bruno Haible  <bruno@clisp.org>
62207
62208         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
62209         to the AUTOMAKE_OPTIONS.
62210         Reported by Jim Meyering.
62211
62212 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62213
62214         Work around bug in Solaris 10 /proc file system:
62215         /proc/self/fd/NNN/.. isn't the parent directory of
62216         the directory whose file descriptor is NNN.  This needs to
62217         be worked around at run time, not compile time, since a
62218         program might be built on Solaris 8, where things work, and
62219         run on Solaris 10.
62220         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
62221         to use the following interface instead:
62222         (OPENAT_BUFFER_SIZE): New macro.
62223         (openat_proc_name): New function.
62224         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
62225         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
62226         Likewise.
62227         * lib/openat-proc.c: New file.
62228         * modules/openat (Files): Add lib/openat-proc.c.
62229         (Depends-on): Add same-inode, stdbool.
62230         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
62231
62232 2006-09-29  Bruno Haible  <bruno@clisp.org>
62233
62234         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
62235         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
62236         argument. Set stdout_closed before testing for ferror, not after.
62237         (fwriteerror, fwriteerror_no_ebadf): New functions.
62238
62239 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62240
62241         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
62242
62243 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
62244
62245         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
62246         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
62247
62248 2006-09-28  Jim Meyering  <jim@meyering.net>
62249
62250         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
62251         Include <unistd.h>.
62252
62253 2006-09-28  Bruno Haible  <bruno@clisp.org>
62254
62255         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
62256         * modules/linkedhash-list (Depends-on): Likewise.
62257         * modules/rbtreehash-list (Depends-on): Likewise.
62258
62259 2006-09-28  Bruno Haible  <bruno@clisp.org>
62260
62261         * lib/strndup.h: Simplify the redefinition of strndup.
62262         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
62263         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
62264
62265 2006-09-28  Bruno Haible  <bruno@clisp.org>
62266
62267         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
62268         * lib/gl_linkedhash_list.c: Likewise.
62269         * lib/gl_rbtreehash_list.c: Likewise.
62270
62271 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62272
62273         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
62274         getaddrinfo.
62275
62276         * lib/__fpending.h: Don't include <stdio_ext.h> unless
62277         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
62278         it causes <stdio_ext.h> to cause a compile-time error.
62279         Problem reported by Nelson H. F. Beebe.
62280         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
62281         of HAVE_DECL___PENDING.
62282
62283         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
62284         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
62285         declaration.
62286
62287 2006-09-27  Jim Meyering  <jim@meyering.net>
62288
62289         This file could end up with a definition for a function
62290         named __strndup, rather than rpl_strndup on a system with
62291         incomplete weak_alias support.
62292         * lib/strndup.c (strndup): Rename from __strndup.
62293         Remove #defines that used to map __strndup to strndup.
62294         Don't use K&R prototypes.
62295         Remove LIBC-related code, since this file is not sync'd with glibc.
62296         * lib/strndup.h: Revamp, accordingly.
62297         * m4/strndup.m4: Modernize.
62298
62299 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62300
62301         * modules/savewd (Depends-on): Add 'raise'.
62302         * lib/savewd.c: Include <signal.h>, for 'raise'.
62303
62304 2006-09-26  Jim Meyering  <jim@meyering.net>
62305
62306         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62307         when we detect Darwin 8.7.0's acl_get_file bug.
62308         Rearrange to perform the new (below) run-test while $LIBS
62309         contains any acl-related library.  Set USE_ACL at the end.
62310         (gl_ACL_GET_FILE): New function.
62311
62312 2006-09-26  Eric Blake  <ebb9@byu.net>
62313
62314         * lib/verror.c: Include <config.h> unconditionally.
62315
62316 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62317
62318         * modules/clock-time (Maintainer): Add self.
62319         * modules/getlogin_r (Depends-on): Add extensions.
62320
62321 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62322
62323         * modules/clock-time: New module.
62324         * modules/nanosleep (Depends-on): Add clock-time.
62325         * modules/gethrxtime (Depends-on): Likewise.
62326         * modules/gettime (Depends-on): Likewise.
62327         * modules/settime (Depends-on): Likewise.
62328
62329         * modules/fts-lgpl: Depend on openat.
62330         * modules/mkancesdirs: Depend on savewd.
62331         * modules/mkdir-p: Likewise.
62332
62333 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62334
62335         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62336
62337         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62338         `gl_have_arbitrary_file_name_length_limit' to
62339         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62340         actually works between configure runs.
62341
62342 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62343             Bruno Haible  <bruno@clisp.org>
62344
62345         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62346
62347 2006-09-25  Jim Meyering  <jim@meyering.net>
62348
62349         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62350         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62351
62352 2006-09-25  Eric Blake  <ebb9@byu.net>
62353
62354         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62355         exec's in 2006-09-18 patch when shuffling fds.
62356
62357 2006-09-25  Bruno Haible  <bruno@clisp.org>
62358
62359         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62360         Reported by Jim Meyering.
62361
62362 2006-09-24  Jim Meyering  <jim@meyering.net>
62363
62364         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62365         compare a pointer against a literal "0".  That caused failures with
62366         at least HP-UX's hpcc.
62367
62368 2006-09-22  Simon Josefsson  <jas@extundo.com>
62369
62370         * modules/gc-sha1:
62371         * modules/gc-md4:
62372         * modules/gc-hmac-sha1:
62373         * modules/gc-hmac-md5:
62374         * modules/gc-des:
62375         * modules/gc-arcfour: Distribute more files.
62376
62377 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62378
62379         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62380         (gl_linked_iterator_from_to): Initialize struct completely.
62381         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62382         (gl_tree_iterator_from_to): Likewise
62383         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62384         * lib/gl_array_list.c [lint] (gl_array_iterator)
62385         (gl_array_iterator_from_to): Likewise.
62386         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62387         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62388         (gl_carray_iterator_from_to): Likewise.
62389
62390         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62391         * lib/md4.c (md4_process_block): Remove unused variable.
62392         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62393         parentheses for clarity.
62394
62395 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62396
62397         * modules/bison-i18n (Depends-on): Add gettext.
62398
62399 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62400
62401         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62402         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62403         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62404         also add missing comma that caused broken test.
62405         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62406         stdlib.h, for `abort'.
62407         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62408         variables.
62409         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62410         include unistd.h if present, for `rmdir'.
62411         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62412         variables.
62413         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62414         in the process include standard headers for prototypes.
62415         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62416         gets declared on GNU/Linux.
62417         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62418         unistd.h, for `rmdir'.
62419         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62420
62421         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62422         always true.
62423         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62424
62425         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62426
62427 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62428
62429         * gnulib-tool (func_version): Create output all at once.  This
62430         may help avoid triggering unnecessary SIGPIPEs, and at any
62431         rate it doesn't hurt.
62432
62433 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62434             Bruno Haible  <bruno@clisp.org>
62435
62436         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62437         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62438         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62439
62440         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62441         (gl_FUNC_VASPRINTF): Invoke it.
62442
62443 2006-09-22  Bruno Haible  <bruno@clisp.org>
62444
62445         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62446         getloadavg.c as first argument.
62447
62448 2006-09-22  Bruno Haible  <bruno@clisp.org>
62449
62450         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62451         at the beginning of the gl_INIT macro.
62452         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62453         gl_GETLOADAVG.
62454
62455 2006-09-22  Bruno Haible  <bruno@clisp.org>
62456
62457         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62458         module.
62459         Suggested by Ralf Wildenhues.
62460
62461 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62462
62463         Import this patch from libc:
62464
62465         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62466
62467         * lib/regex_internal.c (re_string_reconstruct): Handle
62468         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62469         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62470         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62471         re_string_context_at.
62472
62473         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62474         now requires it.
62475         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62476         gl_REGEX now does it for us.
62477         (gl_REGEX): Add test taken from
62478         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62479
62480         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62481         Check that large offsets work.  Modernize Autoconf usages.
62482         Prefer "yes" to mean a good thing rather than a bad.
62483         Don't put "#define mkstemp" in config.h, as this might interfere
62484         with standard system headers that "#define mkstemp mkstemp64".
62485
62486         * modules/mkstemp (Depends-on): Add extensions, so that
62487         mkstemp is visible on some platforms.
62488         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62489         (Include): Change to "mkstemp.h" from <stdlib.h>.
62490         (Files): Add mkstemp.h.
62491
62492         * lib/mkstemp.h: New file, since some standard headers
62493         #define mkstemp.
62494         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62495         Include "mkstemp.h".
62496         Make the _LIBC code resemble glibc original more,
62497         e.g., use K&R style.
62498         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62499         (mkstemp): Remove, since mkstemp.h does this for us.
62500         * lib/stdlib--.h: Include mkstemp.h.
62501
62502         Import this patch from libc:
62503
62504         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62505
62506         * lib/tempname.c (__gen_tempname): Change attempts_min
62507         into a macro.  Use preprocessor to decide how to initialize
62508         attempts [Coverity CID 67].
62509
62510 2006-09-20  Bruno Haible  <bruno@clisp.org>
62511
62512         * lib/mkdtemp.c: Import from libc.
62513         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62514                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62515                 attempts_min into a macro.  Use preprocessor to decide how to
62516                 initialize attempts [Coverity CID 67].
62517         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62518                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62519                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62520
62521 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62522
62523         * gnulib-tool (func_exit): New function, to allow to pass the
62524         exit status portably through the trap.  Use everywhere.
62525         (--help, --version): Signal a write error.
62526         (trap): catch SIGPIPE, for write errors.
62527         Exit at the end of the trap, with the correct exit status.
62528
62529 2006-09-19  Karl Berry  <karl@gnu.org>
62530
62531         * doc/gnulib.texi: note about the license texinfo files.
62532
62533 2006-09-19  Eric Blake  <ebb9@byu.net>
62534
62535         * gnulib-tool: Avoid space-tab.
62536
62537 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62538
62539         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62540         that prevented coreutils 6.1 from building.  Problem reported
62541         by Petter Reinholdtsen.
62542
62543 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62544
62545         * gnulib-tool (avoidlist): Fix typo that broke options like
62546         --avoid=lock that are used by coreutils bootstrap.
62547
62548 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62549
62550         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62551         more systematically.
62552
62553 2006-09-18  Jim Meyering  <jim@meyering.net>
62554
62555         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62556
62557 2006-09-18  Bruno Haible  <bruno@clisp.org>
62558
62559         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62560
62561 2006-09-18  Bruno Haible  <bruno@clisp.org>
62562
62563         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62564         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62565         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62566         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62567         * m4/gettext.m4: Require autoconf >= 2.52.
62568         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62569         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62570         of gl_cv_header_inttypes_h.
62571
62572 2006-09-18  Bruno Haible  <bruno@clisp.org>
62573
62574         * lib/javaversion.c: Include configmake.h.
62575
62576 2006-09-18  Bruno Haible  <bruno@clisp.org>
62577
62578         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62579         avoid that the while loops be executed in a subshell.
62580
62581 2006-09-18  Bruno Haible  <bruno@clisp.org>
62582
62583         * MODULES.html.sh (func_module): Break long lines.
62584         Suggested by Bruce Korb <bkorb@gnu.org>.
62585
62586 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62587
62588         Speed up by a factor of 1.12.
62589         * gnulib-tool (nl): New variable.
62590         (func_import): Rewrite include directive extraction to only read each
62591         directive once.
62592
62593 2006-09-17  Bruno Haible  <bruno@clisp.org>
62594
62595         * modules/javaversion (Makefile.am): Remove DEFS setting.
62596         (Depends-on): Add configmake, for PKGDATADIR definition.
62597
62598 2006-09-17  Bruno Haible  <bruno@clisp.org>
62599
62600         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62601
62602 2006-09-17  Bruno Haible  <bruno@clisp.org>
62603
62604         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62605         (func_modules_transitive_closure, func_modules_add_dummy,
62606         func_modules_to_filelist, func_import, func_create_testdir,
62607         func_create_megatestdir, ...): Use it wherever possible.
62608         Suggested by Ralf Wildenhues.
62609
62610 2006-09-16  Karl Berry  <karl@gnu.org>
62611
62612         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62613         to avoid sectioning errors.
62614         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62615         [ifinfo]: blank line after @center-ed titles.
62616         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62617         Spell FSF address consistently with others.
62618         (These changes approved by rms.)
62619
62620 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62621
62622         Speed up by a factor of 1.61.
62623         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62624         already checked module names again.
62625
62626 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62627
62628         Speed up by a factor of 1.13.
62629         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62630         for new_files, and the input to func_add_or_update.
62631
62632 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62633
62634         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62635         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62636
62637 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62638
62639         * modules/mkancesdirs (Depends-on): Add fcntl.
62640         * modules/savewd: New file.
62641         * MODULES.html.sh (File system functions): Add savewd.
62642
62643         * modules/configmake (Makefile.am): Add support for the
62644         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62645
62646 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62647
62648         * m4/savewd.m4: New file.
62649
62650 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62651
62652         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62653         (dirchownmod): New arg FD.  All callers changed.
62654         Use FD rather than opening the directory ourself, as opening is
62655         now the caller's responsibility.
62656         * lib/dirchownmod.h: Likewise.
62657         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62658         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62659         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62660         (test_dir): Remove.
62661         (mkancesdirs): Return length of prefix of FILE that has already
62662         been made, or -2 if there is a child doing the work.  Redo
62663         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62664         ".", and treat ".." specially since it might stray back into
62665         already-created areas.  Use a subprocess if necessary.  New arg
62666         WD; all users changed.  MAKE_DIR function should now return 1
62667         if it creates a directory that is not readable.  Return -2 if
62668         a child process is spun off.
62669         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62670         Adjust signature to match code.
62671         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62672         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62673         all users changed.
62674         * lib/savewd.c, lib/savewd.h: New files.
62675
62676 2006-09-15  Jim Meyering  <jim@meyering.net>
62677
62678         * modules/rename-dest-slash: New module.
62679         * MODULES.html.sh (posix_compat): Add it here.
62680
62681         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62682
62683 2006-09-15  Jim Meyering  <jim@meyering.net>
62684
62685         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62686         file.
62687
62688         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62689
62690 2006-09-15  Jim Meyering  <jim@meyering.net>
62691
62692         * lib/rename-dest-slash.c (has_trailing_slash): Use
62693         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62694         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62695         test before testing whether SRC is a directory.
62696         Suggestions from Bruno Haible.
62697
62698         Avoid a warning about an unused variable.
62699         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62700         into the #ifdef block where it's used.
62701
62702         * lib/rename-dest-slash.c: New file.
62703
62704 2006-09-14  Bruno Haible  <bruno@clisp.org>
62705
62706         * lib/allocsa.c: Include <config.h> unconditionally.
62707         * lib/asnprintf.c: Likewise.
62708         * lib/asprintf.c: Likewise.
62709         * lib/c-strcasecmp.c: Likewise.
62710         * lib/c-strcasestr.c: Likewise.
62711         * lib/c-strncasecmp.c: Likewise.
62712         * lib/c-strstr.c: Likewise.
62713         * lib/classpath.c: Likewise.
62714         * lib/clean-temp.c: Likewise.
62715         * lib/concatpath.c: Likewise.
62716         * lib/copy-file.c: Likewise.
62717         * lib/csharpcomp.c: Likewise.
62718         * lib/csharpexec.c: Likewise.
62719         * lib/execute.c: Likewise.
62720         * lib/fatal-signal.c: Likewise.
62721         * lib/findprog.c: Likewise.
62722         * lib/fwriteerror.c: Likewise.
62723         * lib/gl_array_list.c: Likewise.
62724         * lib/gl_array_oset.c: Likewise.
62725         * lib/gl_avltree_list.c: Likewise.
62726         * lib/gl_avltree_oset.c: Likewise.
62727         * lib/gl_avltreehash_list.c: Likewise.
62728         * lib/gl_carray_list.c: Likewise.
62729         * lib/gl_linked_list.c: Likewise.
62730         * lib/gl_linkedhash_list.c: Likewise.
62731         * lib/gl_list.c: Likewise.
62732         * lib/gl_oset.c: Likewise.
62733         * lib/gl_rbtree_list.c: Likewise.
62734         * lib/gl_rbtree_oset.c: Likewise.
62735         * lib/gl_rbtreehash_list.c: Likewise.
62736         * lib/imaxabs.c: Likewise.
62737         * lib/imaxdiv.c: Likewise.
62738         * lib/javacomp.c: Likewise.
62739         * lib/javaexec.c: Likewise.
62740         * lib/javaversion.c: Likewise.
62741         * lib/linebreak.c: Likewise.
62742         * lib/localcharset.c: Likewise.
62743         * lib/lock.c: Likewise.
62744         * lib/mbchar.c: Likewise.
62745         * lib/mbswidth.c: Likewise.
62746         * lib/mkdtemp.c: Likewise.
62747         * lib/pipe.c: Likewise.
62748         * lib/printf-args.c: Likewise.
62749         * lib/printf-parse.c: Likewise.
62750         * lib/progname.c: Likewise.
62751         * lib/progreloc.c: Likewise.
62752         * lib/readlink.c: Likewise.
62753         * lib/sh-quote.c: Likewise.
62754         * lib/stpcpy.c: Likewise.
62755         * lib/stpncpy.c: Likewise.
62756         * lib/strcasecmp.c: Likewise.
62757         * lib/strcasestr.c: Likewise.
62758         * lib/strcspn.c: Likewise.
62759         * lib/striconv.c: Likewise.
62760         * lib/strncasecmp.c: Likewise.
62761         * lib/strnlen1.c: Likewise.
62762         * lib/strstr.c: Likewise.
62763         * lib/strtok_r.c: Likewise.
62764         * lib/tls.c: Likewise.
62765         * lib/tmpdir.c: Likewise.
62766         * lib/unicodeio.c: Likewise.
62767         * lib/unsetenv.c: Likewise.
62768         * lib/vasnprintf.c: Likewise.
62769         * lib/vasprintf.c: Likewise.
62770         * lib/wait-process.c: Likewise.
62771         * lib/xallocsa.c: Likewise.
62772         * lib/xsetenv.c: Likewise.
62773         * lib/xstriconv.c: Likewise.
62774
62775 2006-09-13  Simon Josefsson  <jas@extundo.com>
62776
62777         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62778         that internally, suggested by Ralf Wildenhues
62779         <Ralf.Wildenhues@gmx.de>.
62780
62781 2006-09-13  Simon Josefsson  <jas@extundo.com>
62782
62783         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62784         @LIBOBJS@.
62785         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62786
62787 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62788
62789         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62790         longer worry about uses that don't define HAVE_CONFIG_H.
62791         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62792         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62793         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62794         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62795         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62796         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62797         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62798         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62799         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62800         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62801         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62802         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62803         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62804         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62805         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62806         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62807         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62808         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62809         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62810         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62811         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62812         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62813         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62814         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62815         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62816         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62817         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62818         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62819         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62820         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62821         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62822         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62823         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62824         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62825         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62826         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62827         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62828         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62829         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62830         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62831         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62832         Likewise.
62833
62834 2006-09-13  Eric Blake  <ebb9@byu.net>
62835
62836         * lib/getopt.c: Fix typo in last commit.
62837
62838 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62839
62840         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62841         dgettext.
62842
62843 2006-09-12  Jim Meyering  <jim@meyering.net>
62844
62845         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62846         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62847         Reported by Nelson H. F. Beebe.
62848
62849 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62850
62851         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62852         program_invocation_name and program_invocation_short_name are
62853         initialized.
62854         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62855         and program_invocation_short_name to argp.h, so they are visible
62856         to user programs.
62857         * lib/argp.h: Likewise
62858
62859 2006-09-10  Bruno Haible  <bruno@clisp.org>
62860
62861         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62862         m4/inttypes_h.m4, m4/uintmax_t.m4.
62863
62864 2006-09-10  Bruno Haible  <bruno@clisp.org>
62865
62866         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62867         gl_AC_TYPE_UINTMAX_T.
62868
62869 2006-09-10  Bruno Haible  <bruno@clisp.org>
62870
62871         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
62872
62873 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62874
62875         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
62876         convention.  Text proposed by Bruno Haible.
62877         (struct argp_option): Document the use of N_() wrappers.
62878
62879         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
62880         '\v', and translate the two parts separately, instead of feeding
62881         the whole string to gettext.  This allows to exclude
62882         '\v' from the strings visible to the translator by writing doc
62883         strings as N_("..") "\v" N_("..").
62884
62885 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
62886
62887         * config/srclist.txt: Undo latest change; the bug was fixed.
62888
62889 2006-09-09  Bruno Haible  <bruno@clisp.org>
62890
62891         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
62892         assignments if building a library without libtool.
62893         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
62894         in func_emit_lib_Makefile_am.
62895         (func_import): When building a static library libfoo.a, arrange to
62896         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
62897         (func_create_testdir): Likewise.
62898         * modules/gc (configure.ac, Makefile.am): If building statically,
62899         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
62900         * modules/iconvme (configure.ac, Makefile.am): Likewise.
62901         * modules/striconv (configure.ac, Makefile.am): Likewise.
62902         Based on a suggestion by Ralf Wildenhues.
62903
62904 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62905
62906         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62907         Check for unistd.h too, since Autoconf doesn't assume POSIX.
62908         Also:
62909
62910         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62911         Add year_2050_test to catch glibc bug 2821
62912         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62913
62914         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62915         Prefer #ifdef to #if.
62916
62917         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
62918         Return from 'main' instead of calling 'exit'.
62919
62920 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62921
62922         * lib/mktime.c (guess_time_tm): Fix bug where mktime
62923         returned the maximum time_t value rather than (time_t) -1.
62924         Problem originally reported by William Bardwell
62925         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62926
62927         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62928         Moved to here ...
62929         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62930         ... from here.
62931
62932 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62933
62934         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
62935         2821 is fixed.
62936
62937 2006-09-08  Jim Meyering  <jim@meyering.net>
62938
62939         Don't make generated files read-only.  That would bother too many
62940         people.  However, do retain the ability to work when targets are
62941         read-only: remove the destination and temporary files before writing
62942         them (when generated via sed or echo), or by using the -f option for
62943         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
62944         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62945         * modules/byteswap, modules/configmake, modules/fcntl:
62946         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62947         * modules/localcharset, modules/netinet_in, modules/poll:
62948         * modules/stdbool, modules/stdint, modules/sys_select:
62949         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62950
62951 2006-09-08  Jim Meyering  <jim@meyering.net>
62952
62953         Avoid new build failure on FreeBSD 6.0.
62954         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
62955         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
62956         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
62957
62958 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62959
62960         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
62961
62962 2006-09-07  Jim Meyering  <jim@meyering.net>
62963
62964         Fix global typo in last change: use chmod u-w, not chmod u-x.
62965         Spotted by Paul Eggert and Bruce Korb.
62966         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62967         * modules/byteswap, modules/configmake, modules/fcntl:
62968         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62969         * modules/localcharset, modules/netinet_in, modules/poll:
62970         * modules/stdbool, modules/stdint, modules/sys_select:
62971         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62972
62973 2006-09-06  Jim Meyering  <jim@meyering.net>
62974
62975         Make generated files be read-only.
62976         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
62977         Ensure that each generated file is now read-only.
62978         * modules/argz: Likewise.
62979         * modules/arpa_inet: Likewise.
62980         * modules/byteswap: Likewise.
62981         * modules/configmake: Likewise.
62982         * modules/fcntl: Likewise.
62983         * modules/fnmatch: Likewise.
62984         * modules/getopt: Likewise.
62985         * modules/glob: Likewise.
62986         * modules/inttypes: Likewise.
62987         * modules/netinet_in: Likewise.
62988         * modules/poll: Likewise.
62989         * modules/stdbool: Likewise.
62990         * modules/stdint: Likewise.
62991         * modules/sys_select: Likewise.
62992         * modules/sys_socket: Likewise.
62993         * modules/sys_stat: Likewise.
62994         * modules/sysexits: Likewise.
62995         * modules/localcharset: Same as above, but continue using temporary
62996         file named "t-$@" (why different?) rather than the "$@-t" used
62997         everywhere else.
62998
62999         * modules/sysexits (Makefile.am): Replace literal occurrences
63000         of "sysexit.h" more readable, and more consistent, "$@".
63001
63002 2006-09-06  Bruno Haible  <bruno@clisp.org>
63003
63004         * modules/striconv: New file.
63005         * modules/xstriconv: New file.
63006         * MODULES.html.sh (Internationalization functions): Add striconv,
63007         xstriconv.
63008
63009 2006-09-06  Bruno Haible  <bruno@clisp.org>
63010
63011         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
63012         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
63013         not using libtool correctly.
63014
63015 2006-09-06  Bruno Haible  <bruno@clisp.org>
63016
63017         * lib/striconv.h: New file.
63018         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
63019         iconvstring.c.
63020         * lib/xstriconv.h: New file.
63021         * lib/xstriconv.c: New file.
63022
63023 2006-09-06  Bruno Haible  <bruno@clisp.org>
63024
63025         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63026         lib_..._LDFLAGS.
63027
63028 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63029
63030         * lib/argz_.h: Sync from Libtool.
63031
63032         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
63033                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63034
63035         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
63036
63037 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63038
63039         * modules/trim: New file.
63040
63041 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63042
63043         * lib/trim.h: New file.
63044         * lib/trim.c: New file.
63045
63046 2006-09-05  Bruno Haible  <bruno@clisp.org>
63047
63048         * MODULES.html.sh (String handling): Add trim.
63049
63050 2006-09-04  Karl Berry  <karl@gnu.org>
63051
63052         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
63053         until next release.
63054
63055 2006-09-03  Bruno Haible  <bruno@clisp.org>
63056
63057         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
63058         correctly.
63059
63060 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63061
63062         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
63063         not gl_GETLOADAVG.  Omit unneeded semicolons.
63064         Problems reported by Ralf Wildenhues in
63065         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63066         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
63067         at the end, which is the usual gnulib style.
63068
63069         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
63070         of doing all the work ourselves.
63071         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
63072         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
63073
63074 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63075
63076         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
63077         Problem reported by Ralf Wildenhues in
63078         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63079
63080         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
63081         HAVE_STRUCT_STATFS_F_FSTYPENAME.
63082
63083 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63084
63085         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
63086         yesterday's patch by changing test -n to test -z.
63087
63088 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63089
63090         * modules/getloadavg (Files): Add m4/getloadavg.m4.
63091         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
63092         the former is now obsolescent.
63093
63094         * modules/chdir-long (Depends-on): Add fcntl.
63095
63096 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63097
63098         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
63099         obsolescent, and programs should use gnulib instead.
63100         * m4/getloadavg.m4: New file, with contents taken from Autoconf
63101         but with prefixes changed.
63102
63103 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63104
63105         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
63106         or stdbool.h, because they might not exist while configuring.
63107
63108         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
63109         Don't include unistd.h or limits.h; not needed, since chdir-long.h
63110         does that for us.
63111         (O_DIRECTORY): Remove.
63112
63113 2006-08-31  Eric Blake  <ebb9@byu.net>
63114
63115         * gnulib-tool: Don't let emacs change spaces to TAB.
63116
63117 2006-08-31  Bruno Haible  <bruno@clisp.org>
63118
63119         * gnulib-tool: When calling func_import more than once, do it in a
63120         subshell.
63121         Reported by Eric Blake <ebb9@byu.net>.
63122
63123 2006-08-31  Bruno Haible  <bruno@clisp.org>
63124
63125         * gnulib-tool (nl): Remove variable.
63126         (sed_transform_lib_file): Use more robust test for config-h module.
63127         (func_import): Fix typo in 2006-08-25 patch.
63128
63129 2006-08-31  Bruno Haible  <bruno@clisp.org>
63130
63131         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
63132         specified, augment Makefile.am variables instead of assigning them.
63133
63134 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63135
63136         Work around a bug in both the Linux and SunOS 64-bit kernels:
63137         nanosleep mishandles sleeps for longer than 2**31 seconds.
63138         Problem reported by Frank v Waveren in
63139         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63140         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
63141         Check for nanosleep bug.
63142         (LIB_NANOSLEEP): Append clock_gettime library if needed.
63143
63144 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63145
63146         Work around a bug in both the Linux and SunOS 64-bit kernels:
63147         nanosleep mishandles sleeps for longer than 2**31 seconds.
63148         Problem reported by Frank v Waveren in
63149         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63150         * lib/nanosleep.c (BILLION): New constant.
63151         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
63152         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
63153         implementation.
63154
63155 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63156
63157         * modules/nanosleep (Depends-on): Add gettime.
63158
63159 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63160         and Simon Josefsson  <jas@extundo.com>
63161         and Oskar Liljeblad  <oskar@osk.mine.nu>
63162
63163         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
63164         * gnulib-tool (func_import): New license type 'unmodifiable license
63165         text'.
63166         * modules/fdl: Use it.  Longer description.
63167         * module/gpl, module/lgpl: New files.
63168
63169 2006-08-30  Jim Meyering  <jim@meyering.net>
63170
63171         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
63172         shadowing the parameter.
63173
63174 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63175
63176         Sync from Libtool:
63177
63178         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63179
63180         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
63181         sharing with gnulib.  Report by Eric Blake.
63182
63183 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63184
63185         * modules/isapipe: New file.
63186         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
63187
63188 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63189
63190         * modules/configmake (Makefile.am): Add a comment, and omit
63191         the CONFIGMAKE_ prefix from generated macro names.  Suggested
63192         by Bruno Haible.
63193
63194 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63195
63196         * m4/isapipe.m4: New file.
63197
63198 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63199
63200         * lib/isapipe.c, lib/isapipe.h: New files.
63201
63202 2006-08-29  Jim Meyering  <jim@meyering.net>
63203
63204         * modules/configmake (Makefile.am): Make configmake.h depend on
63205         Makefile.  Otherwise, a stale configmake.h could hang around.
63206
63207 2006-08-29  Eric Blake  <ebb9@byu.net>
63208
63209         * lib/error.c (error_at_line, print_errno_message): Match libc, after
63210         resolution of upstream bug 3044.
63211
63212 2006-08-29  Bruno Haible  <bruno@clisp.org>
63213
63214         * modules/localcharset (Depends-on): Add configmake.
63215         (Makefile.am): Remove setting of LIBDIR through DEFS.
63216
63217 2006-08-29  Bruno Haible  <bruno@clisp.org>
63218
63219         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
63220         defined.
63221
63222 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63223
63224         * modules/fcntl: New file.
63225         * modules/chdir-safer (Depends-on): Add fcntl.
63226         * modules/fts: Likewise.
63227         * modules/mkdir-p: Likewise.
63228
63229         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
63230         This undoes the most recent change, since we're now addressing the
63231         problem in a different way.
63232
63233         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
63234         into output, since the output might be called Makefile.am even
63235         if $makefile_name is something different.
63236         (func_import): Use $makefile_am rather than
63237         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
63238         empty.
63239
63240         * modules/inttypes (Files): Add m4/inttypes-h.m4.
63241
63242 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63243
63244         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
63245         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
63246         recent change to stdint.m4, since we're now addressing the problem in a
63247         different way.
63248
63249 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63250
63251         * m4/fcntl_h.m4: New file.
63252
63253 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63254
63255         * lib/fcntl_.h: New file.
63256         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
63257         the fcntl module.
63258         * lib/dirchownmod.c: Likewise.
63259         * lib/fts.c: Likewise.
63260
63261         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
63262         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
63263         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
63264         just before including <inttypes.h>, to avoid circular inclusion.
63265
63266 2006-08-28  Jim Meyering  <jim@meyering.net>
63267
63268         * doc/visibility.texi: Actually read and correct the grammar of the
63269         sentence affected by yesterday's change.
63270
63271 2006-08-28  Eric Blake  <ebb9@byu.net>
63272
63273         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
63274         needs wrapper.
63275
63276 2006-08-28  Eric Blake  <ebb9@byu.net>
63277
63278         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
63279
63280 2006-08-28  Eric Blake  <ebb9@byu.net>
63281
63282         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
63283
63284 2006-08-28  Bruno Haible  <bruno@clisp.org>
63285
63286         * modules/c-strstr: New file, from GNU gettext.
63287         * MODULES.html.sh (String handling): Add c-strstr.
63288
63289 2006-08-28  Bruno Haible  <bruno@clisp.org>
63290
63291         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
63292         macros.
63293         Reported by Eric Blake.
63294
63295 2006-08-28  Bruno Haible  <bruno@clisp.org>
63296
63297         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63298         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63299         * lib/vasprintf.c: Include errno.h, limits.h.
63300         (EOVERFLOW): New fallback definition.
63301         (vasprintf): Test here whether the string length is > INT_MAX.
63302         * lib/vsnprintf.c: Include errno.h, limits.h.
63303         (EOVERFLOW): New fallback definition.
63304         (vsnprintf): Fix bug when generated string was too long for the buffer.
63305         Test here whether the string length is > INT_MAX.
63306
63307 2006-08-28  Bruno Haible  <bruno@clisp.org>
63308
63309         * lib/inttypes_.h (SCNX*): Remove definitions.
63310         Reported by Eric Blake.
63311
63312 2006-08-28  Bruno Haible  <bruno@clisp.org>
63313
63314         * lib/c-strstr.h: New file, from GNU gettext.
63315         * lib/c-strstr.c: New file, from GNU gettext.
63316
63317 2006-08-28  Bruno Haible  <bruno@clisp.org>
63318
63319         * gnulib-tool: Reorder some statements.
63320
63321 2006-08-28  Bruno Haible  <bruno@clisp.org>
63322
63323         * gnulib-tool: New option --makefile-name.
63324         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63325         $makefile_name.
63326         (func_import): Write $makefile_name to the cache file, and read it from
63327         there unless explicitly specified. Use $makefile_name as file name
63328         instead of Makefile.am. Adjust the recommendations accordingly.
63329
63330 2006-08-28  Bruno Haible  <bruno@clisp.org>
63331
63332         * gnulib-tool (func_verify_module): Check against misapplying patch.
63333
63334 2006-08-28  Bruno Haible  <bruno@clisp.org>
63335
63336         * gnulib-tool (func_relativize, func_relconcat): New functions.
63337         Give an error if --local-dir is given with --update.
63338         Remove trailing slashes from $local_gnulib_dir.
63339         (func_import): Store the relativized $local_gnulib_dir in
63340         gnulib-cache.m4, and read it from there if not specified explicitly.
63341
63342 2006-08-28  Bruno Haible  <bruno@clisp.org>
63343
63344         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63345         is the current directory. Respect also $local_gnulib_dir.
63346
63347 2006-08-28  Bruno Haible  <bruno@clisp.org>
63348             Simon Josefsson  <jas@extundo.com>
63349
63350         BeOS portability.
63351         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63352
63353 2006-08-27  Jim Meyering  <jim@meyering.net>
63354
63355         * doc/visibility.texi: Remove duplicate word: "pointer".
63356
63357 2006-08-26  Bruno Haible  <bruno@clisp.org>
63358
63359         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63360         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63361         (Makefile.am): Create inttypes.h from inttypes_.h.
63362         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63363
63364         * modules/imaxabs: New file.
63365
63366         * modules/imaxdiv: New file.
63367
63368 2006-08-26  Bruno Haible  <bruno@clisp.org>
63369
63370         * m4/inttypes.m4: New file.
63371         * m4/_inttypes_h.m4: Remove file.
63372         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63373         PRI_MACROS_BROKEN.
63374         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63375
63376         * m4/imaxabs.m4: New file.
63377
63378         * m4/imaxdiv.m4: New file.
63379
63380 2006-08-26  Bruno Haible  <bruno@clisp.org>
63381
63382         * lib/inttypes_.h: New file.
63383         * lib/inttypes.h: Remove file.
63384         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63385
63386         * lib/imaxabs.c: New file.
63387
63388         * lib/imaxdiv.c: New file.
63389
63390 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63391
63392         New config-h module, so that "make" output needn't be cluttered
63393         by -DHAVE_CONFIG_H.
63394         * MODULES.html.sh (Support for building libraries and executables):
63395         Add config-h.
63396         * modules/config-h: New file.
63397         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63398         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63399         the config-h module is used.
63400
63401         New configmake module, so that "make" output needn't be cluttered
63402         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63403         * MODULES.html.sh (Support for building libraries and executables):
63404         Add configmake.
63405         * modules/configmake: New file.
63406
63407 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63408
63409         * m4/config-h.m4: New file.
63410
63411 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63412
63413         * config/srclist.txt: Add elisp-comp.
63414
63415 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63416
63417         * MODULES.html.sh (Support for building libraries and executables):
63418         Add elisp-comp.
63419         * build-aux/elisp-comp: New file.
63420         * modules/elisp-comp: New file.
63421
63422 2006-08-24  Bruno Haible  <bruno@clisp.org>
63423
63424         * gnulib-tool (func_create_testdir): Use non-default values of
63425         sourcebase and m4base.
63426
63427 2006-08-24  Bruno Haible  <bruno@clisp.org>
63428
63429         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63430         HTML structure.
63431
63432 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63433
63434         * modules/openat (Depends-on): Add lchown.
63435
63436 2006-08-23  Bruno Haible  <bruno@clisp.org>
63437
63438         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63439         of gl_LOCK_EARLY instead of gl_LOCK.
63440
63441 2006-08-23  Bruno Haible  <bruno@clisp.org>
63442
63443         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63444         on OSF/1 to no.
63445         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63446
63447 2006-08-23  Bruno Haible  <bruno@clisp.org>
63448
63449         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63450         as unusable.
63451
63452         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63453         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63454         (gl_LOCK): New macro.
63455
63456 2006-08-22  Simon Josefsson  <jas@extundo.com>
63457
63458         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63459         to md5 module.
63460
63461 2006-08-22  Simon Josefsson  <jas@extundo.com>
63462
63463         * MODULES.html.sh: Add "Support for maintaining and release
63464         projects".
63465
63466         * build-aux/gnupload: New file, from coreutils.
63467
63468 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63469
63470         Avoid the need for AC_LIBSOURCES in m4 macros.
63471         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63472         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63473         * modules/check-version (EXTRA_DIST): Add check-version.h.
63474         * modules/crc (EXTRA_DIST): Add crc.h.
63475         * modules/des (EXTRA_DIST): Add des.h.
63476         * modules/gc (EXTRA_DIST): Add gc.h.
63477         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63478         * modules/getline (EXTRA_DIST): Add getline.h.
63479         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63480         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63481         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63482         * modules/md2 (EXTRA_DIST): Add md2.h.
63483         * modules/md4 (EXTRA_DIST): Add md4.h.
63484         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63485         * modules/read-file (EXTRA_DIST): Add read-file.h.
63486         * modules/readline (EXTRA_DIST): Add readline.h.
63487         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63488         rijndael-api-fst.h.
63489
63490 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63491
63492         * m4/rijndael.m4 (gl_ARCFOUR):
63493         * m4/arctwo.m4 (gl_ARCTWO):
63494         * m4/check-version.m4 (gl_CHECK_VERSION):
63495         * m4/crc.m4 (gl_CRC):
63496         * m4/des.m4 (gl_DES):
63497         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63498         * m4/gc.m4 (gl_GC):
63499         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63500         * m4/getline.m4 (gl_FUNC_GETLINE):
63501         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63502         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63503         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63504         * m4/md2.m4 (gl_MD2):
63505         * m4/md4.m4 (gl_MD4):
63506         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63507         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63508         * m4/readline.m4 (gl_FUNC_READLINE):
63509         * m4/rijndael.m4 (gl_RIJNDAEL):
63510         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63511         to get the necessary .h files and whatnot.
63512
63513 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63514
63515         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63516         gnulib rather than the other way around.
63517         * config/srclistvars.sh (COREUTILS): Remove.
63518
63519 2006-08-22  Jim Meyering  <jim@meyering.net>
63520
63521         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63522
63523         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63524
63525 2006-08-22  Eric Blake  <ebb9@byu.net>
63526
63527         * modules/regexprops-generic: New file.
63528         * MODULES.html.sh (Support for building documentation): List it.
63529
63530 2006-08-22  Eric Blake  <ebb9@byu.net>
63531
63532         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63533         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63534         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63535         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63536
63537 2006-08-22  Bruno Haible  <bruno@clisp.org>
63538
63539         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63540         and lib_LTLIBRARIES like the other lib_* variables.
63541
63542 2006-08-22  Bruno Haible  <bruno@clisp.org>
63543
63544         * build-aux/x-to-1.in: New file, from GNU gettext.
63545
63546 2006-08-22  Bruno Haible  <bruno@clisp.org>
63547
63548         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63549         <utmpx.h> exists.
63550
63551 2006-08-22  Bruno Haible  <bruno@clisp.org>
63552
63553         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63554         <utmpx.h> exists.
63555
63556 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63557
63558         BeOS portability.
63559         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63560         exist.
63561         Problem reported by Bruno Haible.
63562
63563 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63564
63565         Avoid the need for AC_LIBSOURCES in m4 macros.
63566         * modules/acl (EXTRA_DIST): Add acl.h.
63567         * modules/argmatch (Files): Add m4/argmatch.m4.
63568         (configure.ac): Add gl_ARGMATCH.
63569         (EXTRA_DIST): Renamed from lib_SOURCES, for
63570         consistency with the other modules.  Remove argmatch.c.
63571         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63572         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63573         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63574         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63575         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63576         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63577         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63578         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63579         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63580         * modules/closeout (EXTRA_DIST): Add closeout.h.
63581         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63582         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63583         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63584         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63585         dirname.h; remove basename.c and stripslash.c.
63586         * modules/exclude (EXTRA_DIST): Add exclude.h.
63587         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63588         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63589         * modules/file-type (EXTRA_DIST): Add file-type.h.
63590         * modules/filemode (EXTRA_DIST): Add filemode.h.
63591         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63592         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63593         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63594         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63595         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63596         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63597         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63598         * modules/getdate (EXTRA_DIST): Add getdate.c.
63599         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63600         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63601         * modules/getpass (EXTRA_DIST): Add getpass.h.
63602         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63603         * modules/group-member (EXTRA_DIST): Add group-member.h.
63604         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63605         * modules/hash (EXTRA_DIST): Add hash.h.
63606         * modules/human (EXTRA_DIST): Add human.h.
63607         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63608         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63609         * modules/lchown (EXTRA_DIST): Add lchown.h.
63610         * modules/long-options (EXTRA_DIST): Add long-options.h.
63611         * modules/lstat (EXTRA_DIST): Add lstat.h.
63612         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63613         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63614         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63615         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63616         * modules/memxor (EXTRA_DIST): Add memxor.h.
63617         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63618         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63619         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63620         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63621         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63622         * modules/physmem (EXTRA_DIST): Add physmem.h.
63623         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63624         * modules/posixver (EXTRA_DIST): Add posixver.h.
63625         * modules/quote (EXTRA_DIST): Add quote.h.
63626         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63627         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63628         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63629         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63630         regex_internal.h regexec.c.
63631         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63632         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63633         * modules/same (EXTRA_DIST): Add same.h.
63634         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63635         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63636         * modules/savedir (EXTRA_DIST): Add savedir.h.
63637         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63638         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63639         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63640         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63641         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63642         * modules/strdup (EXTRA_DIST): Add strdup.h.
63643         * modules/strftime (EXTRA_DIST): Add strftime.h.
63644         * modules/strndup (EXTRA_DIST): Add strndup.h.
63645         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63646         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63647         * modules/time_r (EXTRA_DIST): Add time_r.h.
63648         * modules/timespec (EXTRA_DIST): Add timespec.h.
63649         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63650         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63651         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63652         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63653         * modules/userspec (EXTRA_DIST): Add userspec.h.
63654         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63655         * modules/utimens (EXTRA_DIST): Add utimens.h.
63656         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63657         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63658         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63659         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63660         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63661         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63662         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63663         * modules/yesno (EXTRA_DIST): Add yesno.h.
63664
63665 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63666
63667         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63668
63669         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63670         * m4/dev-ino.m4, same-inode.m4: Remove.
63671
63672         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63673         * m4/acl.m4 (AC_FUNC_ACL):
63674         * m4/backupfile.m4 (gl_BACKUPFILE):
63675         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63676         * m4/canon-host.m4 (gl_CANON_HOST):
63677         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63678         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63679         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63680         * m4/cloexec.m4 (gl_CLOEXEC):
63681         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63682         * m4/closeout.m4 (gl_CLOSEOUT):
63683         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63684         * m4/dirname.m4 (gl_DIRNAME):
63685         * m4/exclude.m4 (gl_EXCLUDE):
63686         * m4/exitfail.m4 (gl_EXITFAIL):
63687         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63688         * m4/file-type.m4 (gl_FILE_TYPE):
63689         * m4/filemode.m4 (gl_FILEMODE):
63690         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63691         * m4/fpending.m4 (gl_FUNC_FPENDING):
63692         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63693         * m4/fts.m4 (gl_FUNC_FTS):
63694         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63695         * m4/getdate.m4 (gl_GETDATE):
63696         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63697         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63698         * m4/getpass.m4 (gl_FUNC_GETPASS):
63699         * m4/gettime.m4 (gl_GETTIME):
63700         * m4/getugroups.m4 (gl_GETUGROUPS):
63701         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63702         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63703         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63704         * m4/hash.m4 (gl_HASH):
63705         * m4/idcache.m4 (gl_IDCACHE):
63706         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63707         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63708         * m4/long-options.m4 (gl_LONG_OPTIONS):
63709         * m4/lstat.m4 (gl_FUNC_LSTAT):
63710         * m4/md5.m4 (gl_MD5):
63711         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63712         * m4/memcoll.m4 (gl_MEMCOLL):
63713         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63714         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63715         * m4/memxor.m4 (gl_MEMXOR):
63716         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63717         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63718         * m4/modechange.m4 (gl_MODECHANGE):
63719         * m4/mountlist.m4 (gl_MOUNTLIST):
63720         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63721         * m4/openat.m4 (gl_FUNC_OPENAT):
63722         * m4/pathmax.m4 (gl_PATHMAX):
63723         * m4/physmem.m4 (gl_PHYSMEM):
63724         * m4/posixtm.m4 (gl_POSIXTM):
63725         * m4/posixver.m4 (gl_POSIXVER):
63726         * m4/quote.m4 (gl_QUOTE):
63727         * m4/quotearg.m4 (gl_QUOTEARG):
63728         * m4/readtokens.m4 (gl_READTOKENS):
63729         * m4/readutmp.m4 (gl_READUTMP):
63730         * m4/regex.m4 (gl_REGEX):
63731         * m4/safe-read.m4 (gl_SAFE_READ):
63732         * m4/safe-write.m4 (gl_SAFE_WRITE):
63733         * m4/same.m4 (gl_SAME):
63734         * m4/save-cwd.m4 (gl_SAVE_CWD):
63735         * m4/savedir.m4 (gl_SAVEDIR):
63736         * m4/settime.m4 (gl_SETTIME):
63737         * m4/sha1.m4 (gl_SHA1):
63738         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63739         * m4/stat-macros.m4 (gl_STAT_MACROS):
63740         * m4/stat-time.m4 (gl_STAT_TIME):
63741         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63742         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63743         * m4/strdup.m4 (gl_FUNC_STRDUP):
63744         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63745         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63746         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63747         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63748         * m4/time_r.m4 (gl_TIME_R):
63749         * m4/timespec.m4 (gl_TIMESPEC):
63750         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63751         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63752         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63753         * m4/userspec.m4 (gl_USERSPEC):
63754         * m4/utimecmp.m4 (gl_UTIMECMP):
63755         * m4/utimens.m4 (gl_UTIMENS):
63756         * m4/xalloc.m4 (gl_XALLOC):
63757         * m4/xgetcwd.m4 (gl_XGETCWD):
63758         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63759         * m4/xreadlink.m4 (gl_XREADLINK):
63760         * m4/xstrtod.m4 (gl_XSTRTOD):
63761         * m4/yesno.m4 (gl_YESNO):
63762         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63763         to get the necessary .h files and whatnot.
63764
63765 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63766             Bruno Haible  <bruno@clisp.org>
63767
63768         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63769         /bin/sh understanding of '!' conditional negation.
63770
63771 2006-08-21  Jim Meyering  <jim@meyering.net>
63772
63773         * modules/openat (Depends-on): Really alphabetize.
63774
63775         * modules/acl (Depends-on): Add error and quote.
63776
63777         * check-module (find_included_lib_files): Add at-func.c to the
63778         ok-to-include-more-than-once white list.
63779
63780         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63781
63782 2006-08-21  Bruno Haible  <bruno@clisp.org>
63783
63784         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63785         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63786         Reported by Martin Lambers <marlam@marlam.de>.
63787
63788 2006-08-21  Bruno Haible  <bruno@clisp.org>
63789
63790         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63791         specify an installation location, don't emit a noinst_LIBRARIES or
63792         noinst_LTLIBRARIES assignment.
63793
63794 2006-08-21  Bruno Haible  <bruno@clisp.org>
63795
63796         BeOS portability.
63797         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63798         BeOS has mbrtowc() but no <wctype.h>.
63799
63800 2006-08-21  Bruno Haible  <bruno@clisp.org>
63801
63802         BeOS portability.
63803         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63804         exist.
63805
63806 2006-08-21  Bruno Haible  <bruno@clisp.org>
63807
63808         BeOS portability.
63809         * lib/mbchar.h: Include <wctype.h> only if it exists.
63810
63811 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63812
63813         Remove files that are no longer needed by their respective modules.
63814         * m4/obstack.m4: Remove.
63815         * m4/strerror_r.m4: Remove.
63816         * m4/uint32_t.m4: Remove.
63817         * m4/uintptr_t.m4: Remove.
63818         * m4/ullong_max.m4: Remove.
63819         * m4/xstrtoimax.m4: Remove.
63820         * m4/xstrtoumax.m4: Remove.
63821
63822         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63823         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63824         dependencies now capture this.
63825
63826         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63827         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63828         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63829         * m4/human.m4 (gl_HUMAN): Likewise.
63830         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63831         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63832
63833         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63834
63835         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63836         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63837         stdint.
63838         * m4/human.m4 (gl_HUMAN): Likewise.
63839         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63840         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63841         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63842         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63843         * m4/xstrtol (gl_XSTRTOL): Likewise.
63844
63845         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63846         AC_TYPE_LONG_LONG_INT.
63847         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63848         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63849         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63850         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63851
63852         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63853         on stdbool.
63854
63855         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63856         (gl_PREREQ_XSTRTOUL): Remove.
63857
63858         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63859
63860         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63861         mode.
63862
63863 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63864
63865         Add and change modules to make it easier for coreutils to use
63866         gnulib-tool.
63867         * modules/backupfile (Files): Remove m4/d-ino.m4.
63868         (Depends-on): Add d-ino.
63869         * modules/cycle-check (Depends-on): Add stdint.
63870         (lib_SOURCES): Add cycle-check.h.
63871         * modules/d-ino: New module.
63872         * modules/d-type: New module.
63873         * modules/error (Files): Remove m4/strerror_r.m4.
63874         * modules/filemode (Files): Add m4/st_dm_mode.m4.
63875         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63876         m4/inttypes_h.m4, m4/uintmax_t.m4.
63877         (Depends-on): Add stdint.
63878         (lib_SOURCES): Add fsusage.h.
63879         * modules/getcwd (Files): Remove d-ino.m4.
63880         (Depends-on): Add d-ino.
63881         * modules/getndelim2 (Depends-on): Add stdint.
63882         * modules/glob (Files): Remove m4/d-type.m4.
63883         (Depends-on): Add d-type.
63884         * modules/host-os: New module.
63885         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
63886         m4/inttypes_h.m4, m4/uintmax_t.m4.
63887         * Depends-on: Add stdint.
63888         (lib_SOURCES): Add human.h.
63889         * modules/inttostr (Files): Remove m4/intmax_t.m4,
63890         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
63891         m4/uintmax_t.m4, m4/ulonglong.m4.
63892         (Depends-on): Add stdint.
63893         (EXTRA_DIST): Add inttostr.h.
63894         * modules/lchmod: New module.
63895         * modules/link-follow: New module.
63896         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
63897         (Depends-on): Add lchmod.
63898         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
63899         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
63900         (Depends-on): Add stdint.
63901         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
63902         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
63903         (Depends-on): Add stdint.
63904         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
63905         * modules/perl: New module.
63906         * modules/regex (Depends-on): Add stdint.
63907         * modules/rmdir-errno: New module.
63908         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63909         m4/intmax_t.m4.
63910         (Depends-on): Add stdint.
63911         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63912         m4/uintmax_t.m4.
63913         (Depends-on): Add stdint.
63914         * modules/unlink-busy: New module.
63915         * modules/utimecmp (Depends-on): Add stdint.
63916         * modules/uptime: New module.
63917         * modules/winsz-ioctl: New module.
63918         * modules/winsz-termios: New module.
63919         * modules/xnanosleep (Depends-on): Add nanosleep.
63920         * modules/ullong_max: Remove.
63921         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
63922         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
63923         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
63924         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
63925         (Depends-on): Add inttypes.
63926         (lib_SOURCES): Add xstrtol.h.
63927         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
63928         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
63929         * MODULES.html.sh: Move 'assert' into the assert section.
63930         Move 'dummy' into the linking section.
63931         Remove ullong_max.
63932         Add section for compatibility checks for POSIX:2001 functions,
63933         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
63934         winsz-ioctl, and winsz-termios into it.
63935         Add lchmod.
63936         Add top-level Misc section and put host-os, perl, and uptime
63937         into it.
63938
63939 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63940
63941         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
63942         now assume the stdint module.  Do not include inttypes.h.
63943         * lib/fsusage.h: Likewise.
63944         * lib/getndelim2.c: Likewise.
63945         * lib/human.h: Likewise.
63946         * lib/inttostr.h: Likewise.
63947         * lib/obstack.c: Likewise.
63948         * lib/regex_internal.h: Likewise.
63949         * lib/tempname.c: Likewise.
63950         * lib/utimecmp.c: Likewise.
63951         * lib/xstrtol.h: Likewise.
63952
63953         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
63954
63955         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
63956         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
63957         * lib/xtime.h: Likewise.
63958
63959 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63960
63961         * modules/openat (Files): Add lib/fchmodat.c.
63962         Fixes problem reported by Jay Youngman.
63963
63964 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63965
63966         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
63967         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
63968
63969 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
63970             Bruno Haible  <bruno@clisp.org>
63971
63972         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
63973         and is a script that invokes bison. Tighten the code. Add comments.
63974
63975 2006-08-18  Jim Meyering  <jim@meyering.net>
63976
63977         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
63978         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
63979         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
63980         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
63981
63982 2006-08-18  Bruno Haible  <bruno@clisp.org>
63983
63984         * modules/bison-i18n: New file.
63985         * MODULES.html.sh (Internationalization functions): Add it.
63986
63987 2006-08-18  Bruno Haible  <bruno@clisp.org>
63988
63989         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
63990         sys/statvfs.h. When getmntinfo was found, check its declaration and
63991         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
63992
63993 2006-08-18  Bruno Haible  <bruno@clisp.org>
63994
63995         * m4/bison-i18n.m4: New file, from bison.
63996
63997 2006-08-18  Bruno Haible  <bruno@clisp.org>
63998
63999         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
64000         (ME_DUMMY): Treat "kernfs" as a dummy.
64001         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
64002
64003 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64004
64005         Update from coreutils.
64006
64007         2006-08-15  Jim Meyering  <jim@meyering.net>
64008
64009         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
64010
64011         2006-01-17  Jim Meyering  <jim@meyering.net>
64012
64013         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
64014
64015         2006-01-11  Jim Meyering  <jim@meyering.net>
64016
64017         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
64018         Check for the lchmod function.
64019
64020 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64021
64022         Update from coreutils.
64023
64024         * lib/__fpending.h: Add copyright notice.
64025         * lib/fprintftime.h: Likewise.
64026         * lib/savedir.c: Use (C) in copyright notice.
64027         * lib/savedir.h: Likewise.
64028
64029         2006-08-15  Jim Meyering  <jim@meyering.net>
64030
64031         * lib/at-func.c: New file, with the logic of all emulated at-functions.
64032         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
64033         in support of the EXPECTED_ERRNO macro.
64034         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
64035         definitions.  Instead, define the appropriate symbols and include
64036         "at-func.c".
64037         * lib/mkdirat.c (mkdirat): Likewise.
64038         * lib/fchmodat.c (fchmodat): Likewise.
64039         (ENOSYS): Remove definition.
64040         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
64041         it.  Don't include "unistd--.h" -- it wasn't ever used.
64042
64043         2006-01-17  Jim Meyering  <jim@meyering.net>
64044
64045         Rewrite fts.c not to change the current working directory,
64046         by using openat, fstatat, fdopendir, etc..
64047
64048         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
64049         (HAVE_OPENAT_SUPPORT): Define.
64050         [_LIBC] (fchdir): Don't undef or define; no longer used.
64051         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
64052         Now, this `function' always succeeds, and consumes its file descriptor
64053         parameter -- so callers must not close such FDs.  Update callers.
64054         (diropen_fd, opendirat, cwd_advance_fd): New functions.
64055         (diropen): Add parameter, SP.  Adjust all callers.
64056         Implement using diropen_fd, rather than open.
64057         (fts_open): Initialize new member, fts_cwd_fd.
64058         Remove fts_rft-setting code.
64059         (fts_close): Close fts_cwd_fd, if necessary.
64060         (__opendir2): Define in terms of opendir or opendirat,
64061         depending on whether the FST_NOCHDIR flag is set.
64062         (fts_build): Since fts_safe_changedir consumes its FD, and since
64063         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
64064         and close the dup'd file descriptor upon failure.
64065         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
64066         (fts_safe_changedir): Tweak semantics to reflect that this function
64067         now calls cwd_advance_fd and hence consumes its FD argument.
64068         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
64069         [struct FTS] (fts_rft): Remove now-unused member.
64070         [struct FTS] (fts_cycle.state): Improve comment.
64071
64072         * lib/openat.c (openat_needs_fchdir): New function.
64073         * lib/openat.h (openat_needs_fchdir): Declare it.
64074
64075 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64076
64077         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
64078         Problem and fix reported by Pádraig Brady in
64079         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
64080
64081 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64082
64083         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
64084
64085 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64086
64087         * lib/memcoll.c (memcoll): Optimize for the common case where the
64088         arguments are bytewise equal.
64089
64090 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64091
64092         * doc/regexprops-generic.texi: Add a copyright notice.
64093
64094 2006-08-15  Bruno Haible  <bruno@clisp.org>
64095
64096         * modules/tmpdir (License): Change to LGPL.
64097
64098 2006-08-15  Bruno Haible  <bruno@clisp.org>
64099
64100         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
64101         module.
64102
64103 2006-08-14  Simon Josefsson  <jas@extundo.com>
64104
64105         * config/srclist.txt: Add gnupload.
64106
64107 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64108
64109         Change copyright notice from LGPL 2 to GPL 2, since that's the
64110         standard form used in the gnulib repository.
64111         * tests/test-lock.c: Likewise.
64112         * tests/test-stdint.c: Likewise.
64113         * tests/test-tls.c: Likewise.
64114
64115         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64116         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64117         Add copyright notice.
64118
64119         * check-module: Add copyright notice.  Output a copyright
64120         notice if "--version" is specified.
64121         * modules/COPYING: New file.
64122         * tests/test-getaddrinfo.c: Add copyright notice.
64123         * tests/test-verify.c: Likewise.
64124
64125 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64126
64127         Change copyright notice from LGPL 2 to GPL 2, since that's the
64128         standard form used in the gnulib repository.
64129         * lib/lock.c: LGPL -> GPL.
64130         * lib/lock.h: Likewise.
64131         * lib/strnlen1.c: Likewise.
64132         * lib/strnlen1.h: Likewise.
64133         * lib/tls.c: Likewise.
64134         * lib/tls.h: Likewise.
64135         * lib/tmpdir.c: Likewise.
64136
64137         * lib/TODO: Remove; this belongs only in coreutils.
64138
64139 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64140
64141         Add copyright notices to long-enough files that lack them, since
64142         otherwise the files aren't clearly free.  Use the same notice that
64143         getdate.texi already uses.
64144         * doc/alloca-opt.texi: Add copyright notice.
64145         * doc/alloca.texi: Likewise.
64146         * doc/ctime.texi: Likewise.
64147         * doc/functions.texi: Likewise.
64148         * doc/gcd.texi: Likewise.
64149         * doc/gnulib-tool.texi: Likewise.
64150         * doc/inet_ntoa.texi: Likewise.
64151         * doc/visibility.texi: Likewise.
64152
64153         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
64154         * doc/quote.texi: Add copyright notice.
64155
64156         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
64157         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
64158         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
64159         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
64160         is now obsolete, and give a pointer to the Sun list.
64161         Add copyright notice.
64162
64163 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64164
64165         * config/srclistvars.sh: Add copyright notice.
64166
64167 2006-08-14  Eric Blake  <ebb9@byu.net>
64168
64169         Import the following change from libc:
64170
64171         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
64172
64173         Upstream bug 2997.
64174         * lib/misc/error.c: Add space between program name and message if file
64175         name is missing.
64176
64177 2006-08-12  Karl Berry  <karl@gnu.org>
64178
64179         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
64180         remove, these originate in gnulib now.
64181
64182 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64183
64184         * doc/Makefile (standards.info standards.html standards.dvi):
64185         Also depend on make-stds.texi.
64186
64187 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64188
64189         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
64190         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
64191
64192         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
64193         in wchar_t.  Problem reported by Eric Blake.
64194
64195         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
64196         LEN is smaller than SIZE.  Suggested by Bruno Haible.
64197         Also, help the compiler to keep LEN in a register.
64198
64199 2006-08-11  Eric Blake  <ebb9@byu.net>
64200
64201         * users.txt: Sort.  Add tar.
64202
64203 2006-08-11  Bruno Haible  <bruno@clisp.org>
64204
64205         * users.txt: New file.
64206
64207 2006-08-11  Bruno Haible  <bruno@clisp.org>
64208
64209         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
64210         before <wchar.h>. Needed for OSF/1 and BSD/OS.
64211
64212 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64213
64214         * modules/snprintf (Depends-on): Remove minmax.
64215         (Maintainer): Add self and Bruno.
64216
64217 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64218
64219         * lib/.cppi-disable: Add snprintf.h, socket_.h.
64220         * lib/snprintf.c: Include <errno.h> and <limits.h>.
64221         (EOVERFLOW): Define if the system does not.
64222         Do not include "minmax.h"; it wasn't used.
64223         (snprintf): Don't assume size_t promotes to an unsigned type.
64224         Fix bug when generated string was too long for the buffer: the
64225         buffer's contents are supposed to be the initial prefix of the
64226         output.  Don't assume vasnprintf returns EOVERFLOW if the size
64227         exceeds INT_MAX; do the check ourselves.
64228
64229         Import the following changes from libc:
64230
64231         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
64232
64233         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
64234         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
64235         set wc to the byte which couldn't be converted.
64236         (re_string_reconstruct): Don't clear valid_raw_len before calling
64237         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
64238         tip_context using re_string_context_at.
64239
64240         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
64241
64242         * lib/posix/regex.h: g++ still cannot handled [restrict].
64243
64244         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
64245
64246         * lib/posix/regex.h: Remove special handling for VMS.
64247
64248 2006-08-10  Jim Meyering  <jim@meyering.net>
64249
64250         * modules/same-inode: New module.
64251         * modules/dev-ino: New module.
64252         * modules/cycle-check: Depend on these modules, rather than simply
64253         including their .h files.
64254         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
64255         required via m4/cycle-check.m4.
64256         * modules/same: Depend on new same-inode module, rather than
64257         including same-inode.h.
64258         * modules/chdir-safer: New file.
64259
64260         * modules/chown (Depends-on): Add stat-macros.
64261
64262 2006-08-10  Jim Meyering  <jim@meyering.net>
64263
64264         * m4/cycle-check.m4: New file.
64265         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
64266         * m4/dev-ino.m4, m4/same-inode.m4: New files.
64267
64268 2006-08-10  Eric Blake  <ebb9@byu.net>
64269
64270         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
64271         in from original proposal.
64272
64273 2006-08-10  Eric Blake  <ebb9@byu.net>
64274         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64275
64276         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
64277         namespace.
64278
64279 2006-08-10  Bruno Haible  <bruno@clisp.org>
64280
64281         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
64282         as well.
64283
64284 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64285
64286         Sync from coreutils.
64287
64288         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
64289
64290         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
64291         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
64292
64293 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64294
64295         * modules/restrict: Remove; no longer needed now that we assume
64296         Autoconf 2.59 or later.
64297         * MODULES.html.sh: Remove 'restrict'.
64298         * modules/argp (Depends-on): Remove 'restrict'.
64299         * modules/base64 (Depends-on): Likewise.
64300         * modules/gc (Depends-on): Likewise.
64301         * modules/getaddrinfo (Depends-on): Likewise.
64302         * modules/glob (Depends-on): Likewise.
64303         * modules/inet_ntop (Depends-on): Likewise.
64304         * modules/inet_pton (Depends-on): Likewise.
64305         * modules/memxor (Depends-on): Likewise.
64306         * modules/regex (Depends-on): Likewise.
64307         * modules/strtok_r (Depends-on): Likewise.
64308         * modules/time_r (Depends-on): Likewise.
64309
64310 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64311
64312         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64313         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64314         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64315         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64316         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64317         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64318         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64319         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64320
64321         Merge from coreutils.
64322         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64323         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64324         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64325         * m4/time_r.m4 (gl_TIME_R): Likewise.
64326
64327 2006-08-09  Karl Berry  <karl@gnu.org>
64328
64329         * config/srclist.txt: no more gettext-tools, per Bruno.
64330
64331 2006-08-08  Eric Blake  <ebb9@byu.net>
64332
64333         * modules/verror: New module.
64334         * MODULES.html.sh: Document it.
64335
64336 2006-08-08  Eric Blake  <ebb9@byu.net>
64337
64338         * lib/verror.h, lib/verror.c: New files.
64339
64340 2006-08-08  Eric Blake  <ebb9@byu.net>
64341
64342         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64343         verror_at_line output complies with GNU Coding Standards even when
64344         file is NULL.
64345
64346 2006-08-07  Bruno Haible  <bruno@clisp.org>
64347
64348         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64349         versions of AIX.
64350         Reported by Ralf Wildenhues.
64351
64352 2006-08-07  Bruno Haible  <bruno@clisp.org>
64353
64354         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64355         in an AC_DEFUN. Needed so that the autoconf snippets can use
64356         AC_REQUIRE.
64357
64358 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64359
64360         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64361         Initialize pkgdata_DATA.
64362         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64363         overriding it.
64364
64365 2006-08-06  Eric Blake  <ebb9@byu.net>
64366
64367         * lib/error.h: Fold in some upstream changes from glibc.
64368         * lib/error.c: Likewise.
64369
64370 2006-08-04  Bruno Haible  <bruno@clisp.org>
64371
64372         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64373         Make the mostlyclean-local rule depend on mostlyclean-generic.
64374         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64375
64376 2006-07-31  Bruno Haible  <bruno@clisp.org>
64377
64378         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64379         <stdlib.h>, <string.h>.
64380
64381 2006-07-30  Bruno Haible  <bruno@clisp.org>
64382
64383         * modules/readlink (License): Change to LGPL.
64384
64385 2006-07-30  Bruno Haible  <bruno@clisp.org>
64386
64387         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64388         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64389         set PKGDATADIR to point to it.
64390
64391 2006-07-30  Bruno Haible  <bruno@clisp.org>
64392
64393         * modules/csharpexec (configure.ac): Comment out macro invocation.
64394         * modules/javaexec (configure.ac): Likewise.
64395         * modules/javacomp-script (configure.ac): Likewise.
64396
64397         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64398
64399 2006-07-30  Bruno Haible  <bruno@clisp.org>
64400
64401         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64402         linked-list.
64403
64404 2006-07-30  Bruno Haible  <bruno@clisp.org>
64405
64406         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64407
64408 2006-07-30  Bruno Haible  <bruno@clisp.org>
64409
64410         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64411         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64412         get removed.
64413
64414 2006-07-29  Bruno Haible  <bruno@clisp.org>
64415
64416         Make it possible for gnulib-tool to work with locally modified or
64417         augmented gnulib repositories.
64418         * gnulib-tool (func_usage): Document --local-dir option.
64419         (local_gnulib_dir): New variable.
64420         Handle --local-dir option.
64421         (func_lookup_file): New function.
64422         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64423         (func_get_description, func_get_filelist, func_get_description,
64424         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64425         func_get_automake_snippet, func_get_include_directive,
64426         func_get_license, func_get_maintainer): Use func_lookup_file.
64427         (func_import, func_create_testdir): Use func_lookup_file.
64428
64429 2006-07-29  Bruno Haible  <bruno@clisp.org>
64430
64431         * modules/setenv (Depends-on): Add unistd.
64432
64433 2006-07-29  Bruno Haible  <bruno@clisp.org>
64434
64435         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64436
64437 2006-07-29  Bruno Haible  <bruno@clisp.org>
64438
64439         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64440
64441 2006-07-29  Bruno Haible  <bruno@clisp.org>
64442
64443         * gnulib-tool (import, update): If there is no Makefile.am, look at
64444         aclocal.m4, instead of bailing out.
64445
64446 2006-07-29  Bruno Haible  <bruno@clisp.org>
64447
64448         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64449         Categorize the options by when they are useful.
64450
64451 2006-07-29  Bruno Haible  <bruno@clisp.org>
64452
64453         * gnulib-tool (func_usage): Document option --no-libtool.
64454         Handle option --no-libtool.
64455         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64456         for changed semantics of $libtool variable.
64457         (func_import): Likewise. If libtool is not used, show this through
64458         an option --no-libtool.
64459         (func_create_testdir): Update.
64460
64461 2006-07-29  Bruno Haible  <bruno@clisp.org>
64462
64463         * gnulib-tool (func_import): Extend error message about missing
64464         --doc-base.
64465
64466 2006-07-29  Bruno Haible  <bruno@clisp.org>
64467
64468         * gnulib-tool (func_import): Don't create the $docbase directory if
64469         there is no file to store there.
64470
64471 2006-07-29  Bruno Haible  <bruno@clisp.org>
64472
64473         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64474         relevant, look for configure.ac there, not in the current directory.
64475         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64476
64477 2006-07-29  Bruno Haible  <bruno@clisp.org>
64478
64479         * gnulib-tool (SORT): New variable.
64480         (func_usage): Undocument --assume-autoconf option.
64481         Remove --assume-autoconf option handling.
64482         (autoconf_minversion): Determine from the contents of configure.ac.
64483         (func_import): Remove autoconf_minversion handling.
64484         Suggested by Eric Blake.
64485
64486 2006-07-29  Bruno Haible  <bruno@clisp.org>
64487
64488         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64489
64490 2006-07-29  Bruno Haible  <bruno@clisp.org>
64491
64492         * config/srclist.txt (*setenv.[ch]): Remove rules.
64493
64494 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64495
64496         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64497
64498 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64499
64500         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64501         arpa/inet.h.
64502
64503 2006-07-28  Simon Josefsson  <jas@extundo.com>
64504
64505         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64506         * modules/inet_pton (Depends-on): Likewise.
64507
64508 2006-07-28  Simon Josefsson  <jas@extundo.com>
64509
64510         * m4/netinet_in_h.m4: New file.
64511
64512 2006-07-28  Simon Josefsson  <jas@extundo.com>
64513
64514         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64515         #include's.
64516
64517 2006-07-28  Simon Josefsson  <jas@extundo.com>
64518
64519         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64520         #include's.
64521
64522 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64523
64524         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64525         setgid on directories only if they set these bits.
64526         * lib/modechange.h: Remove obsolete comment about masks.
64527
64528 2006-07-28  Eric Blake  <ebb9@byu.net>
64529
64530         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64531         macro expansion.
64532
64533 2006-07-28  Bruno Haible  <bruno@clisp.org>
64534
64535         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64536
64537 2006-07-28  Bruno Haible  <bruno@clisp.org>
64538
64539         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64540
64541 2006-07-28  Bruno Haible  <bruno@clisp.org>
64542
64543         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64544         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64545         Define fallbacks.
64546         Avoids link error on FreeBSD 4.x.
64547         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64548
64549         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64550         encoding.
64551         * lib/mbswidth.c (iswcntrl): Likewise.
64552
64553 2006-07-27  Bruno Haible  <bruno@clisp.org>
64554
64555         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64556         test.
64557
64558 2006-07-27  Bruno Haible  <bruno@clisp.org>
64559
64560         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64561         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64562         defined.
64563
64564 2006-07-26  Eric Blake  <ebb9@byu.net>
64565
64566         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64567
64568 2006-07-26  Eric Blake  <ebb9@byu.net>
64569
64570         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64571         like mingw that lack mkstemp.
64572         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64573         avoid compilation warning on mingw.
64574
64575 2006-07-26  Bruno Haible  <bruno@clisp.org>
64576
64577         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64578         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64579         INT_FAST*_MIN, INTPTR_MIN.
64580
64581 2006-07-25  Bruno Haible  <bruno@clisp.org>
64582
64583         * modules/version-etc (Depends-on): Add stdarg.
64584
64585 2006-07-25  Bruno Haible  <bruno@clisp.org>
64586
64587         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64588         complex commands.
64589
64590 2006-07-25  Bruno Haible  <bruno@clisp.org>
64591
64592         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64593         defined in <stdarg.h> or config.h.
64594
64595 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64596
64597         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64598         (gl_STDIO_SAFER): Remove.
64599
64600 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64601
64602         * MODULES.html.sh (File stream based Input/Output):
64603         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64604         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64605         * modules/fopen-safer, modules/tmpfile-safer: New files.
64606         * modules/stdio-safer: Remove.
64607
64608 2006-07-24  Bruno Haible  <bruno@clisp.org>
64609
64610         * modules/tmpdir: New file.
64611         * MODULES.html.sh (File system functions): Add it.
64612
64613 2006-07-24  Bruno Haible  <bruno@clisp.org>
64614
64615         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64616         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64617
64618 2006-07-24  Bruno Haible  <bruno@clisp.org>
64619
64620         * modules/clean-temp: New file.
64621
64622 2006-07-24  Bruno Haible  <bruno@clisp.org>
64623
64624         * m4/tmpdir.m4: New file, from GNU gettext.
64625
64626 2006-07-24  Bruno Haible  <bruno@clisp.org>
64627
64628         * lib/tmpdir.h: New file, from GNU gettext.
64629         * lib/tmpdir.c: New file, from GNU gettext.
64630
64631 2006-07-24  Bruno Haible  <bruno@clisp.org>
64632
64633         * lib/clean-temp.h: New file, from GNU gettext.
64634         * lib/clean-temp.c: New file, from GNU gettext.
64635
64636 2006-07-23  Eric Blake  <ebb9@byu.net>
64637
64638         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64639         (Depends-on): Add binary-io.
64640
64641 2006-07-23  Eric Blake  <ebb9@byu.net>
64642
64643         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64644
64645 2006-07-23  Eric Blake  <ebb9@byu.net>
64646
64647         * lib/tmpfile-safer.c: New file.
64648         * lib/stdio-safer.h (fopen_safer): Add prototype.
64649         * lib/stdio--.h (tmpfile): Make safer.
64650
64651 2006-07-23  Bruno Haible  <bruno@clisp.org>
64652
64653         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64654         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64655         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64656         gl_linked_remove_at): Use it.
64657
64658 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64659         and Simon Josefsson <jas@extundo.com>
64660
64661         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64662
64663         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64664
64665 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64666
64667         * modules/close-stream: New file.
64668         * modules/closeout (Description): Make it clear that it exits
64669         with a diagnostic on error.
64670         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64671         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64672
64673 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64674
64675         * m4/close-stream.m4: New file.
64676
64677 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64678
64679         * lib/close-stream.c, lib/close-stream.h: New files.
64680
64681 2006-07-22  Bruno Haible  <bruno@clisp.org>
64682
64683         Merge from GNU gettext 0.15.
64684
64685         2006-05-01  Bruno Haible  <bruno@clisp.org>
64686
64687                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64688
64689         2006-07-22  Bruno Haible  <bruno@clisp.org>
64690
64691                 * modules/javaversion: New file.
64692                 * MODULES.html.sh (Java): Add javaversion.
64693
64694         2006-03-12  Bruno Haible  <bruno@clisp.org>
64695
64696                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64697
64698         2005-12-04  Bruno Haible  <bruno@clisp.org>
64699
64700                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64701                 (untested).
64702
64703         2006-06-21  Bruno Haible  <bruno@clisp.org>
64704
64705                 Avoid warnings from recent versions of mcs.
64706                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64707                 -o, -L, -r any more. Use options documented since mcs-1.0
64708                 instead. Similarly for -g.
64709
64710         2005-12-04  Bruno Haible  <bruno@clisp.org>
64711
64712                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64713                 .resources, not .resource.
64714
64715         2005-07-09  Bruno Haible  <bruno@clisp.org>
64716
64717                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64718                 add a .dll suffix.
64719                 Reported by Mark Junker <mjscod@gmx.de>.
64720
64721         2006-07-22  Bruno Haible  <bruno@clisp.org>
64722
64723                 * modules/gettext: Upgrade to gettext-0.15.
64724                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64725                 m4/visibility.m4.
64726                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64727
64728 2006-07-22  Bruno Haible  <bruno@clisp.org>
64729
64730         Merge from GNU gettext 0.15.
64731
64732         2006-03-25  Bruno Haible  <bruno@clisp.org>
64733
64734                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64735
64736         2006-07-21  Bruno Haible  <bruno@clisp.org>
64737
64738                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64739                 "1.1".
64740
64741         2006-05-09  Bruno Haible  <bruno@clisp.org>
64742
64743                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64744                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64745                 for the conftestver execution.
64746
64747         2006-05-01  Bruno Haible  <bruno@clisp.org>
64748
64749                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64750                 optional target-version argument. Verify that the compiler
64751                 groks source of the specified source-version, or add -source
64752                 option as necessary. Verify that the compiler produces
64753                 bytecode in the specified target-version, or add -target and
64754                 -source options as necessary. Make the result of the test
64755                 available as variable CONF_JAVAC. Also log error output in
64756                 config.log.
64757
64758         2006-03-11  Bruno Haible  <bruno@clisp.org>
64759
64760                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64761
64762         2006-05-09  Bruno Haible  <bruno@clisp.org>
64763
64764                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64765                 CLASSPATH_SEPARATOR to a semicolon.
64766
64767         2006-03-12  Bruno Haible  <bruno@clisp.org>
64768
64769                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64770                 available as variable CONF_JAVA, for subsequent autoconf
64771                 tests. Also log error output in config.log.
64772
64773         2006-07-19  Bruno Haible  <bruno@clisp.org>
64774
64775                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64776                 that getline works on glibc2 systems. Needed to avoid trouble
64777                 in relocatable.c.
64778                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64779
64780         2005-12-04  Bruno Haible  <bruno@clisp.org>
64781
64782                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64783                 launcher (untested).
64784
64785         2005-12-04  Bruno Haible  <bruno@clisp.org>
64786
64787                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64788
64789         2006-07-22  Bruno Haible  <bruno@clisp.org>
64790
64791                 * gettext.m4: Update from GNU gettext-0.15.
64792                 * nls.m4: Likewise.
64793                 * po.m4: Likewise.
64794                 * inttypes-pri.m4: Likewise.
64795                 * inttypes-h.m4: Renamed from inttypes.m4.
64796                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64797
64798 2006-07-22  Bruno Haible  <bruno@clisp.org>
64799
64800         Merge from GNU gettext 0.15.
64801
64802         2005-07-05  Bruno Haible  <bruno@clisp.org>
64803
64804                 * printf-args.c (printf_fetchargs): Work around broken
64805                 definition of wint_t on mingw.
64806
64807         2005-02-12  Bruno Haible  <bruno@clisp.org>
64808
64809                 * xallocsa.h: Add extern "C" for C++.
64810
64811         2006-05-17  Bruno Haible  <bruno@clisp.org>
64812
64813                 Cygwin portability.
64814                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64815
64816         2006-04-30  Bruno Haible  <bruno@clisp.org>
64817
64818                 * progreloc.c: Include <mach-o/dyld.h> if available.
64819                 (find_executable): Use _NSGetExecutablePath when possible.
64820
64821         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64822
64823                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64824                 function.
64825
64826         2005-12-29  Bruno Haible  <bruno@clisp.org>
64827
64828                 * progreloc.c (set_program_name_and_installdir): Fix
64829                 compilation error.
64830
64831         2005-12-04  Bruno Haible  <bruno@clisp.org>
64832
64833                 Cygwin portability.
64834                 * progreloc.c: Include <windows.h> also on Cygwin.
64835                 (find_executable): Add support for Cygwin.
64836                 (set_program_name_and_installdir): Handle also platforms with
64837                 nonempty EXEEXT.
64838
64839         2006-07-11  Bruno Haible  <bruno@clisp.org>
64840
64841                 * javacomp.c: Fix a comment.
64842                 Reported by Jim Meyering.
64843
64844         2006-04-30  Bruno Haible  <bruno@clisp.org>
64845
64846                 * javacomp.h (compile_java_class): Add source_version,
64847                 target_version arguments.
64848                 * javacomp.c: Rewritten to choose only a compiler that
64849                 respects the specified source_version and target_version.
64850
64851         2006-06-27  Bruno Haible  <bruno@clisp.org>
64852
64853                 Assume correct S_ISDIR macro.
64854                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64855
64856         2006-07-22  Bruno Haible  <bruno@clisp.org>
64857
64858                 * javaversion.h: New file, from GNU gettext.
64859                 * javaversion.c: New file, from GNU gettext.
64860                 * javaversion.java: New file, from GNU gettext.
64861                 * javaversion.class: New file, from GNU gettext.
64862
64863         2006-05-17  Bruno Haible  <bruno@clisp.org>
64864
64865                 Cygwin portability.
64866                 * javaexec.c (execute_java_class): Test for jview program
64867                 also on Cygwin.
64868
64869         2006-04-09  Bruno Haible  <bruno@clisp.org>
64870
64871                 * fatal-signal.c: Don't include string.h.
64872                 (at_fatal_signal): Use a copying loop instead of memcpy.
64873
64874         2005-12-04  Bruno Haible  <bruno@clisp.org>
64875
64876                 * csharpexec.c: Add support for 'clix' launcher (untested).
64877                 (execute_csharp_using_sscli): New function.
64878                 (execute_csharp_program): Call it.
64879
64880         2006-06-21  Bruno Haible  <bruno@clisp.org>
64881
64882                 Avoid warnings from recent versions of mcs.
64883                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
64884                 -o, -L, -r any more. Use options documented since mcs-1.0
64885                 instead. Similarly for -g.
64886
64887         2005-07-09  Bruno Haible  <bruno@clisp.org>
64888
64889                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
64890                 add a .dll suffix.
64891                 Reported by Mark Junker <mjscod@gmx.de>.
64892
64893         2006-06-17  Bruno Haible  <bruno@clisp.org>
64894
64895                 * config.charset: Update for NetBSD 3.0.
64896
64897         2006-05-17  Bruno Haible  <bruno@clisp.org>
64898
64899                 Cygwin portability.
64900                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
64901
64902         2006-05-16  Bruno Haible  <bruno@clisp.org>
64903
64904                 * localcharset.c [CYGWIN]: Include <windows.h>.
64905                 (get_charset_aliases): For Cygwin, return the same CPxxx
64906                 aliases list as under WIN32.
64907                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
64908                 the environment variables. Fall back to GetACP().
64909
64910         2006-04-05  Bruno Haible  <bruno@clisp.org>
64911
64912                 * config.charset: Update Juan Manuel Guerrero's address.
64913
64914         2005-02-12  Bruno Haible  <bruno@clisp.org>
64915
64916                 * allocsa.h: Add extern "C" for C++.
64917
64918         2005-02-10  Bruno Haible  <bruno@clisp.org>
64919
64920                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
64921                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
64922
64923         2006-07-22  Bruno Haible  <bruno@clisp.org>
64924
64925                 * gettext.h: Update to GNU gettext-0.15.
64926
64927 2006-07-22  Bruno Haible  <bruno@clisp.org>
64928
64929         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
64930         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
64931         lib-prefix.m4, longdouble.m4, ssize_t.m4.
64932
64933 2006-07-21  Eric Blake  <ebb9@byu.net>
64934
64935         * modules/stdlib-safer: New file.
64936         * MODULES.html.sh (File stream based Input/Output): Add
64937         stdlib-safer.
64938
64939 2006-07-21  Eric Blake  <ebb9@byu.net>
64940
64941         * lib/stdlib-safer.h: New file from coreutils, required by
64942         stdlib--.h.
64943
64944 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
64945
64946         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
64947
64948 2006-07-20  Bruno Haible  <bruno@clisp.org>
64949
64950         * gnulib-tool: Recognize new option --assume-autoconf.
64951         (autoconf_minversion): New variable.
64952         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
64953
64954 2006-07-20  Bruno Haible  <bruno@clisp.org>
64955
64956         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
64957
64958 2006-07-19  Derek R. Price  <derek@ximbiot.com>
64959
64960         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
64961         Reindent and repaginate.
64962
64963 2006-07-19  Derek Price  <derek@ximbiot.com>
64964
64965         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
64966         Correct grammar.
64967
64968 2006-07-17  Bruno Haible  <bruno@clisp.org>
64969
64970         * modules/list: New file.
64971         * modules/array-list: New file.
64972         * modules/carray-list, modules/carray-list-tests: New files.
64973         * modules/linked-list, modules/linked-list-tests: New files.
64974         * modules/avltree-list, modules/avltree-list-tests: New files.
64975         * modules/rbtree-list, modules/rbtree-list-tests: New files.
64976         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
64977         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
64978         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
64979         * modules/oset: New file.
64980         * modules/array-oset: New file.
64981         * modules/avltree-oset, modules/avltree-oset-tests: New files.
64982         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
64983         * tests/test-carray_list.c: New file.
64984         * tests/test-linked_list.c: New file.
64985         * tests/test-avltree_list.c: New file.
64986         * tests/test-rbtree_list.c: New file.
64987         * tests/test-linkedhash_list.c: New file.
64988         * tests/test-avltreehash_list.c: New file.
64989         * tests/test-rbtreehash_list.c: New file.
64990         * tests/test-avltree_oset.c: New file.
64991         * tests/test-rbtree_oset.c: New file.
64992         * MODULES.html.sh (Container data structures): New section.
64993
64994 2006-07-17  Bruno Haible  <bruno@clisp.org>
64995
64996         * m4/gl_list.m4: New file.
64997
64998 2006-07-17  Bruno Haible  <bruno@clisp.org>
64999
65000         * lib/gl_list.h: New file.
65001         * lib/gl_list.c: New file.
65002         * lib/gl_array_list.h: New file.
65003         * lib/gl_array_list.c: New file.
65004         * lib/gl_carray_list.h: New file.
65005         * lib/gl_carray_list.c: New file.
65006         * lib/gl_linked_list.h: New file.
65007         * lib/gl_linked_list.c: New file.
65008         * lib/gl_anylinked_list1.h: New file.
65009         * lib/gl_anylinked_list2.h: New file.
65010         * lib/gl_avltree_list.h: New file.
65011         * lib/gl_avltree_list.c: New file.
65012         * lib/gl_anyavltree_list1.h: New file.
65013         * lib/gl_anyavltree_list2.h: New file.
65014         * lib/gl_rbtree_list.h: New file.
65015         * lib/gl_rbtree_list.c: New file.
65016         * lib/gl_anyrbtree_list1.h: New file.
65017         * lib/gl_anyrbtree_list2.h: New file.
65018         * lib/gl_anytree_list1.h: New file.
65019         * lib/gl_anytree_list2.h: New file.
65020         * lib/gl_linkedhash_list.h: New file.
65021         * lib/gl_linkedhash_list.c: New file.
65022         * lib/gl_anyhash_list1.h: New file.
65023         * lib/gl_anyhash_list2.h: New file.
65024         * lib/gl_avltreehash_list.h: New file.
65025         * lib/gl_avltreehash_list.c: New file.
65026         * lib/gl_rbtreehash_list.h: New file.
65027         * lib/gl_rbtreehash_list.c: New file.
65028         * lib/gl_anytreehash_list1.h: New file.
65029         * lib/gl_anytreehash_list2.h: New file.
65030
65031         * lib/gl_oset.h: New file.
65032         * lib/gl_oset.c: New file.
65033         * lib/gl_array_oset.h: New file.
65034         * lib/gl_array_oset.c: New file.
65035         * lib/gl_avltree_oset.h: New file.
65036         * lib/gl_avltree_oset.c: New file.
65037         * lib/gl_rbtree_oset.h: New file.
65038         * lib/gl_rbtree_oset.c: New file.
65039         * lib/gl_anytree_oset.h: New file.
65040
65041 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65042
65043         * m4/mkancesdirs.m4: New file.
65044         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
65045         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
65046         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
65047         it.
65048
65049 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65050
65051         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
65052         * lib/mkancesdirs.h: New files.
65053         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
65054         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
65055         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
65056         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
65057         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
65058         callers changed.  Revamp internals significantly, by not
65059         attempting to create directories that are temporarily more
65060         permissive than the final results.  Do not attempt to use
65061         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
65062         This removes some race conditions, fixes some bugs, and simplifies
65063         things.  Use new dirchownmod function to do owner and mode changes.
65064         * lib/mkdir-p.h: Likewise.
65065         * lib/modechange.c (octal_to_mode): New function.
65066         (struct mode_change): New member mentioned.
65067         (make_node_op_equals): New arg mentioned.  All callers changed.
65068         (mode_compile): Keep track of which mode bits the user has explicitly
65069         mentioned.
65070         (mode_adjust): New arg DIR, so that we implement the X op correctly.
65071         New arg PMODE_BITS, to keep track of which mode bits the user
65072         mentioned; it treats S_ISUID and S_ISGID speciall.
65073         All callers changed.
65074         * lib/modechange.h: Likewise.
65075
65076 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65077
65078         * MODULES.html.sh: Add mkancestors.
65079         * modules/mkancesdirs: New module.
65080         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
65081         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
65082         The chdir-safer and afs files are now orphans; I'll remove them
65083         unless someone speaks up.
65084         Add lib/dirchownmod.c, lib/dirchownmod.h.
65085         (Depends-on): Remove alloca, chown, save-cwd, dirname.
65086         Add lchown, mkancesdirs.
65087         (Maintainer): Add self.
65088
65089 2006-07-15  Karl Berry  <karl@gnu.org>
65090
65091         * gnulib-tool: help message wording/arrangement.
65092
65093 2006-07-14  Simon Josefsson  <jas@extundo.com>
65094
65095         * doc/gnulib.texi (Libtool and Windows): New section.
65096
65097 2006-07-12  Simon Josefsson  <jas@extundo.com>
65098
65099         * modules/gendocs (License): Fix license, approved by Karl.
65100
65101 2006-07-12  Eric Blake  <ebb9@byu.net>
65102
65103         * MODULES.html.sh: Add gendocs.
65104
65105 2006-07-11  Eric Blake  <ebb9@byu.net>
65106
65107         * modules/fdl: New module, to install doc/fdl.texi.
65108         * MODULES.html.sh: Add new section for documentation modules.
65109         * gnulib-tool: Avoid space-tab.
65110         (--doc-base): New option, to manage files from doc.
65111
65112 2006-07-11  Eric Blake  <ebb9@byu.net>
65113
65114         * m4/absolute-header.m4: Fix comments to match recent change.
65115
65116 2006-07-11  Eric Blake  <ebb9@byu.net>
65117
65118         * gnulib-tool: List --doc-base before --tests-base.
65119
65120 2006-07-11  Derek R. Price  <derek@ximbiot.com>
65121
65122         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
65123
65124 2006-07-11  Bruno Haible  <bruno@clisp.org>
65125
65126         * README: Mention where to put documentation.
65127
65128 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65129
65130         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
65131
65132 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65133
65134         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
65135         to stdint.m4.
65136
65137 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65138
65139         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
65140         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
65141         "no/such/file/stdint.h" when there is no such file, so that
65142         the resulting C code can be parsed by dodgy compilers.
65143         Problems reported by Bob Proulx.
65144
65145 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65146
65147         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
65148         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65149         macros into the GNU _D_EXACT_NAMLEN.
65150         * lib/savedir.c:  Likewise.
65151         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
65152
65153 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65154         and Paul Eggert  <eggert@cs.ucla.edu>
65155
65156         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
65157         * m4/savedir.m4:
65158         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65159         macros into the GNU _D_EXACT_NAMLEN.
65160
65161 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65162
65163         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
65164         around the absolute name, to work around a problem with the HP-UX
65165         11.23 native C compiler, reported by Bob Proulx.
65166
65167 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65168
65169         * doc/maintain.texi, make-stds.texi: Sync from
65170         <http://savannah.gnu.org/projects/gnustandards>.
65171
65172 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65173
65174         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
65175
65176 2006-07-09  Jim Meyering  <jim@meyering.net>
65177
65178         * m4/glob.m4: Remove a doubled word in a comment.
65179
65180 2006-07-09  Jim Meyering  <jim@meyering.net>
65181
65182         * lib/argp-pv.c: Remove a doubled word in a comment.
65183         * lib/check-version.c (check_version): Likewise.
65184         * lib/javacomp.c (compile_java_class): Likewise.
65185
65186 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65187
65188         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
65189         for the benefit of people using Autoconf 2.60.  If you want to
65190         support older Autoconf versions you can copy m4/onceonly_2_57.m4
65191         (or m4/onceonly.m4, if pre-2.57) manually.
65192
65193 2006-07-08  Jim Meyering  <jim@meyering.net>
65194
65195         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
65196         comment.
65197         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
65198         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
65199         comment.
65200
65201 2006-07-08  Jim Meyering  <jim@meyering.net>
65202
65203         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
65204
65205 2006-07-07  Simon Josefsson  <jas@extundo.com>
65206
65207         * tests/test-crc.c: Change expected crc value, the test vector
65208         were probably computed using the old broken crc.c?
65209
65210 2006-07-06  Simon Josefsson  <jas@extundo.com>
65211
65212         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
65213         now the canonical place for the M4 file).
65214
65215         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
65216         from the sys_socket dependency now.
65217
65218         * modules/inet_pton (Files): Ditto.
65219
65220         * modules/inet_ntop (Files): Ditto.
65221
65222 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65223
65224         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
65225         not gl_PREREQ_GETUSERSHELL.
65226
65227 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65228
65229         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
65230         with only one argument, for Autoconf 2.60.
65231         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
65232         expand to nothing, so add a shell command to avoid syntax error.
65233         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65234
65235 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65236
65237         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
65238
65239 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65240
65241         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
65242         no longer needed.  Check for isblank decl.
65243         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
65244         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
65245         of existence.
65246
65247 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65248
65249         * lib/getloadavg.c: Use __VMS, not VMS.
65250         * lib/getopt.c: Likewise.
65251         * lib/getpagesize.h: Likewise.
65252         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
65253         and probably does not work.
65254
65255 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65256
65257         * lib/.cppi-disable: Add wcwidth.
65258         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
65259         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
65260         (ISGRAPH): Remove.  All uses changed to isgraph.
65261         (FOLD) [!defined _LIBC]: Remove special case.
65262         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
65263         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
65264         HAVE_ISBLANK.
65265         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
65266         case.
65267
65268 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65269
65270         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
65271         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
65272         brackets.  Other minor changes to suppress some compiler
65273         warnings.
65274
65275 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65276         and Paul Eggert  <eggert@cs.ucla.edu>
65277
65278         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
65279         of invoking obsolescent AC_HEADER_DIRENT macro.
65280         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
65281         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
65282         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65283         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65284         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
65285         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65286         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
65287         * m4/readdir.m4: Remove; no longer needed.
65288
65289 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65290         and Paul Eggert  <eggert@cs.ucla.edu>
65291
65292         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
65293         Don't worry about this obsolete case any more.
65294         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
65295         directories.
65296         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65297         worry about this obsolete case any more.
65298         * lib/fts.c: Likewise.
65299         * lib/getcwd.c: Likewise.
65300         * lib/glob.h: Likewise.
65301         * lib/savedir.c: Likewise.
65302
65303 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65304
65305         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65306         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65307         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65308         needed.
65309         All uses removed.
65310         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65311         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65312         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65313         needed.
65314         * m4/getdate.m4 (gl_GETDATE): Likewise.
65315         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65316         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65317         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65318         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65319         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65320         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65321         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65322         needed.
65323
65324 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65325
65326         * lib/memcasecmp.c: Include <limits.h>.
65327         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65328         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65329         Don't assume isdigit succeeds only on '0' through '9'.
65330
65331 2006-07-05  Eric Blake  <ebb9@byu.net>
65332
65333         * modules/getaddrinfo (Depends-on): Add snprintf.
65334
65335 2006-07-05  Eric Blake  <ebb9@byu.net>
65336
65337         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65338         to avoid 'header present but could not be compiled' on cygwin.
65339
65340 2006-07-05  Eric Blake  <ebb9@byu.net>
65341
65342         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65343         missing from netdb.h.
65344         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65345
65346 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65347
65348         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65349         no longer needed.
65350         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65351         * m4/getdate.m4 (gl_GETDATE): Likewise.
65352         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65353         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65354         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65355         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65356         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65357
65358 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65359
65360         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65361         All uses of is_space replaced by isspace.
65362         * lib/exit.h: Don't talk about STDC_HEADERS.
65363         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65364         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65365         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65366         replaced by isprint etc.
65367         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65368         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65369         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65370         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65371         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65372         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65373
65374 2006-07-05  Bruno Haible  <bruno@clisp.org>
65375
65376         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65377         the function exists, before testing against AIX.
65378         Reported by Martin Lambers <marlam@marlam.de>.
65379
65380 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65381
65382         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65383         From Mark D. Baushke.
65384
65385 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65386
65387         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65388         to the absolute name, not just one, to bypass Sun C 5.8's
65389         "warning: #include of /usr/include/... may be non-portable".
65390
65391 2006-07-04  Eric Blake  <ebb9@byu.net>
65392
65393         * modules/dirname-tests: New test module.
65394         * tests/test-dirname.c: New file, replacing dirname.c
65395         TEST_DIRNAME section that was recently deleted.
65396
65397 2006-07-04  Bruno Haible  <bruno@clisp.org>
65398
65399         Assume ANSI C header files and <ctype.h> functions.
65400         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65401         (mbsnwidth): Use isprint, iscntrl instead.
65402
65403 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65404
65405         Merge from coreutils.
65406         * MODULES.html.sh: Add xstrtold.
65407         * modules/xstrtold: New file.
65408         * modules/cycle-check (Files): Add lib/same-inode.h.
65409         * modules/dirname (Files): Add m4/double-slash-root.m4.
65410         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65411         * modules/mkdir-p (Files): Add lib/same-inode.h.
65412         * modules/same (Files): Add lib/same-inode.h.
65413
65414 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65415
65416         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65417         This is to keep the terminology clean; POSIX talks about
65418         "absolute pathnames", not "full pathnames", but the GNU
65419         Coding Standards say to use "path" for something else;
65420         so use "absolute" to keep both sides happy.
65421         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65422         Set gl_absolute_header, not gl_full_header_path.
65423         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65424         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65425         All uses changed.
65426
65427         Merge from coreutils.
65428
65429         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65430
65431         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65432         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65433         want to require the building of c-strtod.o.
65434         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65435         needs -lm directly.
65436         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65437
65438         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65439
65440         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65441         --as-needed option if available.  Problem reported by Albert Chin in
65442         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65443         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65444         cc merely issues a bunch of annoying warnings for --as-needed
65445         (this problem was reported by Bob Proulx).  Also, try linking with
65446         -lm to detect a bug in binutils 2.16 (this problem was reported
65447         by Ralf Wildenhues).
65448
65449         2006-06-18  Jim Meyering  <jim@meyering.net>
65450
65451         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65452         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65453         macro.
65454         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65455         also check for glibc-2.4's abort-inducing bug.
65456
65457         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65458         Low-probability clean-up should be to use rmdir to get rid of
65459         the just-created directory, not unlink.
65460
65461         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65462         configure fail, and request a bug report to inform us about it.
65463         Add a comment that, barring reports to the contrary, in 2007 we'll
65464         assume ftruncate is universally available.
65465
65466         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65467
65468         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65469
65470         2006-03-12  Jim Meyering  <jim@meyering.net>
65471
65472         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65473         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65474         * m4/same.m4 (gl_SAME): Likewise.
65475         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65476
65477         2006-03-11  Eric Blake  <ebb9@byu.net>
65478
65479         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65480         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65481         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65482         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65483
65484 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65485
65486         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65487         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65488         reported by Mark D. Baushke, one in
65489         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65490
65491         Merge from coreutils.
65492
65493         * lib/.cppi-disable: Add stdint_.h.
65494         * lib/.cvsignore: Add stdint.h.
65495
65496         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65497
65498         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65499         both double and long double versions.
65500         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65501         * lib/xstrtold.c: New file.
65502         * lib/xstrtod.h (xstrtold): New decl.
65503
65504         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65505
65506         * lib/filemode.c (setst): Remove.
65507         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65508         (arguably) clearer, and the generated code is a bit smaller on my
65509         Debian GNU/Linux stable x86 host.
65510
65511         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65512
65513         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65514         Assume that filemode.h includes sys/types.h and sys/stat.h.
65515         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65516         (ftypelet): Reorder to put common cases first, for efficiency.
65517         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65518         to do 'M'.
65519         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65520         of 10, for compatibility with FreeBSD.  All callers changed.
65521         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65522         types that can't be deduced solely from st_mode.  First arg is now a
65523         const pointer.
65524         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65525         (strmode): Renamed from mode_string.
65526         (filemodestring): New decl.
65527         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65528         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65529         needed.
65530         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65531
65532         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65533
65534         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65535         fsusage.h now does that.  Include fsusage.h first, to test interface.
65536         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65537         at most one method (the old code could have generated decls that
65538         didn't conform to C89, not that this was ever exercised).
65539         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65540
65541         2006-03-19  Jim Meyering  <jim@meyering.net>
65542
65543         Work even in a chroot where d_ino values for entries in "/"
65544         don't match the stat.st_ino values for the same names.
65545         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65546         number, iterate through all entries again, using lstat instead.
65547         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65548         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65549
65550         * lib/getcwd.c (__getcwd): Clarify a comment.
65551         Use memcpy in place of a call to strcpy.
65552
65553         2006-03-12  Jim Meyering  <jim@meyering.net>
65554
65555         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65556         matches that of the current directory (which we're about to chdir ".."
65557         out of), then save the dev-ino of the parent, instead.
65558
65559         * lib/same-inode.h (SAME_INODE): New file/macro.
65560         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65561         Include "same-inode.h", instead.
65562         * lib/same.c: Likewise.
65563         * lib/cycle-check.h: Include "same-inode.h".
65564         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65565         * lib/cycle-check.c (SAME_INODE): Remove definition.
65566         * lib/root-dev-ino.h: Include "same-inode.h".
65567
65568         2006-03-11  Eric Blake  <ebb9@byu.net>
65569
65570         * lib/same.c (same_name): s/base_name/last_component/
65571         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65572         * lib/filenamecat.c (file_name_concat): Likewise.
65573
65574         2006-03-11  Eric Blake  <ebb9@byu.net>,
65575                     Paul Eggert  <eggert@cs.ucla.edu>
65576
65577         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65578         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65579         drive prefix.
65580         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65581         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65582         (last_component): New method.
65583         * lib/dirname.c (dir_len): Determine when drive letters need a
65584         subsequent slash.  Preserve // when it is special.
65585         (dir_name): Don't append dot when drive letter is absolute.
65586         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65587         * lib/basename.c (base_name): New semantics - malloc the result.
65588         Preserve // when it is special.  Preserve relative files that look
65589         like drive letters.
65590         (base_len): Preserve // when it is special.
65591         (last_component): New method, similar to old base_name semantics.
65592         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65593         base_name.  Strip redundant slashes from ///.
65594
65595 2006-07-03  Jim Meyering  <jim@meyering.net>
65596
65597         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65598         macro is used before the first cycle_check call.
65599
65600 2006-07-03  Eric Blake  <ebb9@byu.net>
65601
65602         * modules/dirname (Depends-on): Add xstrndup.
65603
65604 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65605
65606         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65607         test cases, so that config.log is a bit easier to follow.
65608
65609 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65610
65611         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65612         both are 64 bits, since this seems to be the tradition, and this
65613         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65614         we ever run into a host that prefers long long to long in this
65615         case, we'll need another configure-time test.  Problem reported by
65616         Jim Meyering.
65617
65618 2006-07-02  Eric Blake  <ebb9@byu.net>
65619
65620         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65621
65622 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65623
65624         * modules/inttypes (Depends-on): No longer depends on stdint.
65625         * modules/stdint (Description): Say more about assumptions.
65626         Say that the fast types might differ.  Say macros are used.
65627         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65628         (Makefile.am): Revise list of substituted symbols to match
65629         new stdint.m4.
65630         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65631         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65632         * tests/test-stdint.c (verify_same_types)
65633         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65634         the code conforms to C99/C89.
65635         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65636         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65637
65638 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65639
65640         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65641         but fix a bug, by requiring at least 64 bits.
65642         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65643         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65644         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65645         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65646
65647         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65648         changes.  Make 2.59 a prerequisite.  Check and substitute for
65649         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65650         inttypes.h.  Do not use special include files; just use the
65651         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65652         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65653         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65654         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65655         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65656         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65657         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65658         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65659         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65660         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65661         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65662         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65663         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65664         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65665         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65666         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65667         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65668         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65669         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65670         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65671         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65672         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65673         not check for things that C99 does not require, e.g., int8_t.  If
65674         a test isn't needed unless <stdint.h> isn't working, and is
65675         unlikely to be needed for any other reason, then don't do it
65676         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65677         size_t, since we assume C89 freestanding at least.  Do not check
65678         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65679         the right thing even if the types are not defined.  Instead use:
65680         (gl_STDINT_TYPE_PROPERTIES): New macro.
65681         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65682         testing whether <sys/types.h> clashes, as Autoconf does this for
65683         us now.  All uses removed.
65684         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65685         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65686         (gl_CHECK_TYPE_SAME):
65687         Remove; no longer needed.
65688         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65689         exists, since we'll return 0 anyway in that case.
65690         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65691
65692 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65693
65694         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65695         possible collision with system files.
65696         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65697         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65698         WCHAR_MIN and WCHAR_MAX in this case.
65699         (<stddef.h>): Do not include; no longer needed.
65700         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65701         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65702         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65703         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65704         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65705         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65706         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65707         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65708         !defined(__c99))]: Include in this case too, since it's harmless
65709         now.
65710         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65711         dangerous to do so.
65712         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65713         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65714         (_STDINT_MIN, _STDINT_MAX): New macros.
65715         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65716         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65717         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65718         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65719         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65720         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65721         macros, not typedefs; this simplifies things quite a bit.
65722         Use long int for all types narrower than int64_t.
65723         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65724         Define in terms of long long int or int64_t or long int,
65725         not int64_t or int32_t.  This saves some compile-time testing.
65726         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65727         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65728         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65729         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65730         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65731         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65732         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65733         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65734         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65735         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65736         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65737         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65738         undef any previous version and define our own version, for
65739         simplicity and consistency with the new macros for types.
65740         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65741         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65742         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65743         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65744         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65745         @WINT_T_SUFFIX@ to keep things simple here.
65746         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65747         Simplify by assuming typical 8/16/32/64 host, since we're
65748         already doing that elsewhere anyway.
65749         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65750         and assume long long int is 64 bits if available.  This
65751         speeds up 'configure'.
65752
65753 2006-07-01  Eric Blake  <ebb9@byu.net>
65754
65755         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65756         Reported by Andreas Buening.
65757
65758 2006-07-01  Eric Blake  <ebb9@byu.net>
65759
65760         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65761
65762 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65763
65764         * lib/getaddrinfo.c: fixed typo
65765
65766 2006-06-29  Jim Meyering  <jim@meyering.net>
65767
65768         * modules/strftime (Maintainer): Add my name, since with the
65769         FPRINTFTIME changes strftime.c has forked from glibc.
65770
65771 2006-06-29  Eric Blake  <ebb9@byu.net>
65772
65773         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65774
65775 2006-06-29  Eric Blake  <ebb9@byu.net>
65776
65777         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65778
65779 2006-06-29  Eric Blake  <ebb9@byu.net>
65780
65781         * lib/stat_.h: New file.
65782
65783 2006-06-29  Eric Blake  <ebb9@byu.net>
65784
65785         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65786         unused static function.
65787
65788 2006-06-29  Eric Blake  <ebb9@byu.net>
65789
65790         * doc/functions.texi (Function Portability): Document missing lstat
65791         on mingw.
65792
65793 2006-06-29  Eric Blake  <ebb9@byu.net>
65794
65795         * MODULES.html.sh: Add sys_stat.
65796         * modules/sys_stat: New module.
65797         * modules/mkstemp (Depends-on): Add sys_stat.
65798
65799 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65800
65801         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65802
65803 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65804
65805         * m4/c-bs-a.m4: Removed.
65806
65807 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65808
65809         * lib/strftime.c: Assume strftime() exists.
65810
65811 2006-06-29  Derek Price  <derek@ximbiot.com>
65812
65813         * modules/c-bs-a: Removed - \a is C89.
65814         * MODULES.html.sh: Remove c-bs-a.
65815
65816 2006-06-29  Bruno Haible  <bruno@clisp.org>
65817
65818         * modules/wcwidth (License): Change to LGPL.
65819
65820 2006-06-28  Simon Josefsson  <jas@extundo.com>
65821
65822         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65823         on _WIN32.
65824
65825         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65826         getnameinfo.
65827
65828 2006-06-28  Simon Josefsson  <jas@extundo.com>
65829
65830         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65831
65832 2006-06-28  Simon Josefsson  <jas@extundo.com>
65833
65834         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65835         functions there.  It will succeed on Windows XP, but on Windows
65836         2000 and (presumably) earlier, it will fail, and use the internal
65837         re-implementation.
65838         (use_win32_p): New function.
65839         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65840         Support AI_NUMERICSERV to disable getservbyname.
65841         (getnameinfo): New function, only supports
65842         NI_NUMERICHOST|NI_NUMERICSERV for now.
65843
65844         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65845         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65846         getnameinfo.
65847
65848 2006-06-28  Eric Blake  <ebb9@byu.net>
65849
65850         * modules/wcwidth: New file.
65851         * modules/mbchar (Depends-on): Add wcwidth.
65852         * modules/mbswidth (Depends-on): Add wcwidth.
65853         * MODULES.html.sh: Add wcwidth.
65854
65855 2006-06-28  Eric Blake  <ebb9@byu.net>
65856
65857         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65859
65860 2006-06-28  Eric Blake  <ebb9@byu.net>
65861
65862         * lib/xvasprintf.h: Fix comments.
65863
65864 2006-06-28  Eric Blake  <ebb9@byu.net>
65865
65866         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65867         * lib/mbswidth.c (wcwidth): Move from here...
65868         * lib/wcwidth.h: ...to this new file.
65869
65870 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65871
65872         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
65873
65874         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
65875         it's obsolete.
65876         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
65877
65878 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65879
65880         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
65881         Autoconf 2.60 says this stuff was obsolete.
65882
65883 2006-06-28  Bruno Haible  <bruno@clisp.org>
65884
65885         * modules/wcwidth (Files): Add m4/wchar_t.m4.
65886
65887 2006-06-28  Bruno Haible  <bruno@clisp.org>
65888
65889         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
65890         gt_TYPE_WCHAR_T.
65891
65892 2006-06-28  Bruno Haible  <bruno@clisp.org>
65893
65894         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
65895         declaration for wcwidth.
65896         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
65897
65898 2006-06-28  Bruno Haible  <bruno@clisp.org>
65899
65900         * lib/mkdtemp.c [MINGW]: Include <io.h>.
65901         (mkdir): Define using _mkdir.
65902
65903 2006-06-28  Bruno Haible  <bruno@clisp.org>
65904
65905         * lib/getaddrinfo.h: Fix POSIX URL.
65906         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
65907         _WIN32.
65908         (use_win32_p): Make static.
65909         (getaddrinfo): Reject service name if it is empty or does not consist
65910         solely of decimal digits, or if its value is > 65535.
65911         (getnameinfo): Remove useless casts.
65912
65913 2006-06-27  Simon Josefsson  <jas@extundo.com>
65914
65915         * modules/sys_select: New file, suggested by Bruno Haible, Paul
65916         Eggert and Martin Lambers.
65917
65918 2006-06-27  Simon Josefsson  <jas@extundo.com>
65919
65920         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
65921         Eggert and Martin Lambers.
65922
65923 2006-06-27  Bruno Haible  <bruno@clisp.org>
65924
65925         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
65926         result to 0, not to empty.
65927         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
65928
65929 2006-06-27  Bruno Haible  <bruno@clisp.org>
65930
65931         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
65932
65933 2006-06-26  Simon Josefsson  <jas@extundo.com>
65934
65935         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
65936         present.
65937
65938 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
65939
65940         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
65941         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
65942         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
65943
65944 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
65945
65946         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
65947
65948 2006-06-26  Bruno Haible  <bruno@clisp.org>
65949
65950         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
65951
65952 2006-06-26  Bruno Haible  <bruno@clisp.org>
65953
65954         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
65955
65956 2006-06-26  Bruno Haible  <bruno@clisp.org>
65957
65958         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
65959         SGI C compiler in pre-C99 mode.
65960         Suggested by Mark D. Baushke and Larry Jones.
65961
65962 2006-06-26  Bruno Haible  <bruno@clisp.org>
65963
65964         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
65965         WCHAR_MAX.
65966         Reported by Mark D. Baushke and Larry Jones.
65967
65968 2006-06-26  Bruno Haible  <bruno@clisp.org>
65969
65970         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
65971         in pre-C99 mode.
65972         Suggested by Mark D. Baushke and Larry Jones.
65973
65974 2006-06-23  Simon Josefsson  <jas@extundo.com>
65975             Bruno Haible  <bruno@clisp.org>
65976
65977         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
65978         Emit mostlyclean-local rule.
65979         (func_emit_tests_Makefile_am): Likewise.
65980         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
65981
65982 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
65983
65984         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
65985
65986 2006-06-23  Bruno Haible  <bruno@clisp.org>
65987
65988         * tests/test-stdint.c: Update to match ISO C 99 Technical
65989         Corrigendum 1.
65990
65991 2006-06-23  Bruno Haible  <bruno@clisp.org>
65992
65993         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
65994
65995 2006-06-23  Bruno Haible  <bruno@clisp.org>
65996
65997         * lib/stdint_.h: Treat IRIX like OpenBSD.
65998
65999 2006-06-23  Bruno Haible  <bruno@clisp.org>
66000
66001         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
66002         ISO C 99 Technical Corrigendum 1.
66003
66004 2006-06-22  Simon Josefsson  <jas@extundo.com>
66005
66006         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
66007         MinGW.
66008
66009 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66010
66011         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
66012         needed.  Some compiler complained about some of them.  Problem reported
66013         by Larry Jones in
66014         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
66015
66016 2006-06-21  Simon Josefsson  <jas@extundo.com>
66017
66018         * tests/test-getaddrinfo.c: New file.
66019
66020         * modules/getaddrinfo-tests: New file.
66021
66022         * MODULES.html.sh: Add inet_pton.
66023
66024         * modules/inet_pton: New file.
66025
66026 2006-06-21  Simon Josefsson  <jas@extundo.com>
66027
66028         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
66029         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
66030         of using the (limited) gnulib implementation on Windows XP.
66031
66032         * m4/inet_pton.m4: New file.
66033
66034 2006-06-21  Simon Josefsson  <jas@extundo.com>
66035
66036         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
66037         variable.
66038
66039         * lib/socket_.h: Don't define WINVER.
66040
66041         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
66042         slightly modified to work in gnulib.
66043
66044 2006-06-21  Simon Josefsson  <jas@extundo.com>
66045
66046         * doc/gnulib.texi (Windows sockets): Add.
66047
66048 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66049
66050         * lib/read-file.c (fread_file): Start with buffer allocation of
66051         0 bytes rather than 1 byte; this simplifies the code.
66052         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
66053         code to free buffer and save/restore errno.
66054         (internal_read_file): Remove unused local.
66055
66056 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66057
66058         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
66059         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
66060         Problem reported by Denis Excoffier in
66061         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
66062
66063 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66064
66065         * modules/sys_socket, modules/socklen: Include sys/types since
66066         FreeBSD 4.x's sys/socket.h needs it.
66067
66068 2006-06-19  Simon Josefsson  <jas@extundo.com>
66069
66070         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
66071
66072 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66073
66074         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
66075
66076 2006-06-19  Bruno Haible  <bruno@clisp.org>
66077
66078         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
66079         and FULL_PATH_INTTYPES_H in angle brackets.
66080         Reported by Mark D. Baushke <mdb@gnu.org>.
66081
66082 2006-06-17  Eric Blake  <ebb9@byu.net>
66083
66084         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
66085         errno.
66086
66087 2006-06-17  Bruno Haible  <bruno@clisp.org>
66088
66089         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
66090         <sys/inttypes.h>.
66091
66092 2006-06-17  Bruno Haible  <bruno@clisp.org>
66093
66094         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
66095         whether errno is declared. Assume <errno.h> declares errno.
66096
66097 2006-06-17  Bruno Haible  <bruno@clisp.org>
66098
66099         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
66100
66101 2006-06-17  Bruno Haible  <bruno@clisp.org>
66102
66103         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
66104         problem on Solaris 2.5.1.
66105
66106 2006-06-16  Eric Blake  <ebb9@byu.net>
66107
66108         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
66109         * lib/unicodeio.c [!defined errno]: Likewise.
66110         * lib/strtol.c [!defined errno]: Likewise.
66111         * lib/strtod.c [!defined errno]: Likewise.
66112
66113 2006-06-15  Eric Blake  <ebb9@byu.net>
66114
66115         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66116
66117 2006-06-15  Eric Blake  <ebb9@byu.net>
66118
66119         * config/srclist.txt (ssize_t.m4): Lose sync.
66120
66121 2006-06-15  Bruno Haible  <bruno@clisp.org>
66122
66123         * modules/stdint (Files): Include m4/full-header-path.m4,
66124         m4/size_max.m4, m4/wchar_t.m4.
66125         (Makefile.am): Many more substitutions.
66126         * modules/stdint-tests: New file.
66127         * tests/test-stdint.c: New file.
66128
66129 2006-06-15  Bruno Haible  <bruno@clisp.org>
66130
66131         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
66132         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
66133         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
66134         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
66135         gl_CHECK_TYPE_SAME): New macros.
66136
66137 2006-06-15  Bruno Haible  <bruno@clisp.org>
66138
66139         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
66140
66141 2006-06-15  Bruno Haible  <bruno@clisp.org>
66142
66143         * lib/stdint_.h: Rewritten to be fully auto-configured.
66144         Fixes bug on HP-UX/IA64.
66145
66146 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
66147
66148         * lib/getdate.y (__attribute__): Don't define if already defined.
66149         Problem reported by Larry Jones.
66150         * lib/utimens.c (__attribute__): Likewise.
66151
66152 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
66153
66154         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
66155         reported by Andreas Schwab.
66156
66157 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66158             Bruno Haible  <bruno@clisp.org>
66159
66160         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
66161         check for the declaration of strnlen and a run test that exposes the
66162         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
66163         rpl_strndup.
66164
66165 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66166             Bruno Haible  <bruno@clisp.org>
66167
66168         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
66169
66170 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66171
66172         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
66173         compile test, for Tru64 4.0D.
66174
66175 2006-05-28  Karl Berry  <karl@gnu.org>
66176
66177         * config/srclist.txt (printf-args.c): lose sync.
66178
66179 2006-05-26  Martin Lambers  <marlam@marlam.de>
66180
66181         * lib/getpass.c: Updates the test for the native W32 API, and adds
66182         missing includes, thus fixing compilation warnings.
66183
66184 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66185
66186         * lib/exclude.c (exclude_fnmatch): New function.
66187         (excluded_file_name): Call exclude_fnmatch.
66188         * lib/exclude.h (excluded_file_name): New prototype
66189
66190 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
66191
66192         * lib/tempname.c (small_open, large_open): New macros.
66193         (__open, __open64) [!_LIBC]: Remove.
66194         (__gen_tempname): Use small_open and large_open instead of __open
66195         and __open64.  This fixes a portability bug on HP-UX 11.11i
66196         reported by Simon Wing-Tang in
66197         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
66198
66199 2006-05-24  Bruno Haible  <bruno@clisp.org>
66200
66201         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
66202         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
66203         Reported by Thorsten Maerz <torte@netztorte.de> via
66204         Aaron Stone <aaron@serendipity.cx>.
66205
66206 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66207
66208         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
66209         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
66210         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
66211         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
66212         not really conditional on the cache.
66213         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
66214
66215 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66216
66217         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
66218         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
66219         (my_usleep): Don't mishandle maximum value.
66220
66221 2006-05-19  Jim Meyering  <jim@meyering.net>
66222
66223         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
66224
66225 2006-05-17  Bruno Haible  <bruno@clisp.org>
66226
66227         Cygwin portability.
66228         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
66229
66230 2006-05-17  Bruno Haible  <bruno@clisp.org>
66231
66232         * lib/stdint_.h: Fix recognition of Cygwin.
66233
66234 2006-05-15  Bruno Haible  <bruno@clisp.org>
66235
66236         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
66237         on libtool patch by Ralf Wildenhues.
66238
66239 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66240
66241         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
66242         test for C99 conformance; (bool) 0.5 is an integer constant
66243         expression, but (bool) -0.5 is not.  Problem reported by Fedor
66244         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
66245
66246 2006-05-11  Simon Josefsson  <jas@extundo.com>
66247
66248         * m4/xvasprintf.m4: Fix obvious typo.
66249
66250 2006-05-11  Jim Meyering  <jim@meyering.net>
66251
66252         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
66253         James Lemley.
66254
66255 2006-05-10  Simon Josefsson  <jas@extundo.com>
66256
66257         * lib/md4.c: Typo fix, update copyright years.
66258         (K1, K2): Don't use L because it turn computations into 64-bit on
66259         64-bit platforms.
66260
66261 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66262
66263         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
66264         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
66265         unwanted sign propagation, e.g., on hosts with 64-bit int.
66266         There still are some problems with reeelly weird theoretical hosts
66267         (e.g., 33-bit int) but it's not worth worrying about now.
66268         * lib/sha1.c (rol): Likewise.
66269         (K1, K2, K3, K4): Remove unnecessary L suffix.
66270
66271 2006-05-10  Bruno Haible  <bruno@clisp.org>
66272
66273         * lib/des.c: Cast to avoid warnings.
66274
66275 2006-05-09  Bruno Haible  <bruno@clisp.org>
66276
66277         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
66278         (Depends-on): Depend also on xsize, stdarg.
66279         (configure.ac): Add gl_XVASPRINTF.
66280
66281 2006-05-09  Bruno Haible  <bruno@clisp.org>
66282
66283         * m4/xvasprintf.m4: New file.
66284
66285 2006-05-09  Bruno Haible  <bruno@clisp.org>
66286
66287         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
66288         (EOVERFLOW): Define fallback value.
66289         (xstrcat): New function.
66290         (xvasprintf): Recognize the special case of a string concatenation.
66291
66292 2006-05-08  Eric Blake  <ebb9@byu.net>
66293
66294         * gnulib-tool (func_version): Base copyright year on CVS date.
66295         (func_emit_copyright_notice): New function.
66296         (func_emit_lib_Makefile_am): Use it.
66297         (func_emit_tests_Makefile_am): Likewise.
66298         (func_import): Likewise.
66299
66300 2006-05-08  Bruno Haible  <bruno@clisp.org>
66301
66302         * modules/stdarg: New file.
66303         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66304
66305 2006-05-08  Bruno Haible  <bruno@clisp.org>
66306
66307         * m4/stdarg.m4: New file, from GNU gettext.
66308
66309 2006-05-08  Bruno Haible  <bruno@clisp.org>
66310
66311         * config/srclist.txt (build-aux/config.rpath): different from latest
66312         release.
66313
66314 2006-05-08  Bruno Haible  <bruno@clisp.org>
66315
66316         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66317
66318 2006-05-05  Jim Meyering  <jim@meyering.net>
66319
66320         * m4/warning.m4: New file, derived from bison's file by the same name.
66321
66322 2006-05-03  Bruno Haible  <bruno@clisp.org>
66323
66324         * lib/stdint_.h: Shorter URL.
66325         * lib/inttypes.h: Likewise.
66326
66327 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66328
66329         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66330
66331 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66332
66333         * lib/verify.h: Document the internals better.  Most of this change
66334         was written by Bruno Haible.
66335
66336 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66337
66338         * doc/verify.texi: New file, partly based on a proposal by
66339         Bruno Haible.
66340
66341 2006-05-02  Bruno Haible  <bruno@clisp.org>
66342
66343         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66344         test from here...
66345         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66346
66347 2006-04-29  Bruno Haible  <bruno@clisp.org>
66348
66349         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66350         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66351
66352 2006-04-29  Bruno Haible  <bruno@clisp.org>
66353
66354         * gnulib-tool: Make --update option actually work.
66355
66356 2006-04-29  Bruno Haible  <bruno@clisp.org>
66357
66358         * doc/gcd.texi: New file.
66359         * doc/gnulib.texi: Include it.
66360
66361 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66362
66363         * lib/getdate.y (get_date): When adding relative date, start with the
66364         initial time, not with the result of the first mktime call.
66365
66366 2006-04-25  Bruno Haible  <bruno@clisp.org>
66367
66368         * gnulib-tool (func_import): Output the include directives in three
66369         blocks, sorted separately.
66370         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66371
66372 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66373
66374         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66375         to define main with arguments, for C++.  Reported by Eric Blake.
66376         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66377         Prefer 'int main ()' to 'int main (void)', for C++.
66378         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66379         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66380         for 'main', for C99 and C++.
66381
66382 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66383
66384         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66385         Don't assume that exit status -1 is valid.
66386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66387         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66388         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66389         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66390         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66391         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66392         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66393         functions can be used without declaring them, or that you can
66394         exit with status -1.
66395         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66396
66397 2006-04-24  Karl Berry  <karl@gnu.org>
66398
66399         * config/srclist.txt (longdouble.m4): sync lost.
66400
66401 2006-04-24  Eric Blake  <ebb9@byu.net>
66402
66403         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66404
66405 2006-04-24  Bruno Haible  <bruno@clisp.org>
66406
66407         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66408         poll() implementation in AIX.
66409         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66410
66411 2006-04-24  Bruno Haible  <bruno@clisp.org>
66412
66413         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66414         assigned exactly once.
66415
66416 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66417             Bruno Haible  <bruno@clisp.org>
66418
66419         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66420         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66421         for AM_CPPFLAGS.
66422
66423 2006-04-23  Bruno Haible  <bruno@clisp.org>
66424
66425         * modules/copy-file: Depend on unistd.
66426         * modules/execute: Likewise.
66427         * modules/fatal-signal: Likewise.
66428         * modules/findprog: Likewise.
66429         * modules/mkdtemp : Likewise.
66430         * modules/pipe: Likewise.
66431         * modules/wait-process: Likewise.
66432
66433 2006-04-23  Bruno Haible  <bruno@clisp.org>
66434
66435         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66436         condition was already detected.
66437         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66438
66439 2006-04-23  Bruno Haible  <bruno@clisp.org>
66440
66441         * lib/copy-file.c: Include <unistd.h> unconditionally.
66442         * lib/execute.c: Likewise.
66443         * lib/fatal-signal.c: Likewise.
66444         * lib/findprog.c: Likewise.
66445         * lib/mkdtemp.c: Likewise.
66446         * lib/pipe.h: Likewise.
66447         * lib/pipe.c: Likewise.
66448         * lib/wait-process.h: Likewise.
66449
66450 2006-04-23  Bruno Haible  <bruno@clisp.org>
66451
66452         * gnulib-tool (func_usage): Fix --import description. Document
66453         --update.
66454         (func_import): Create temporary file in a temporary directory, if
66455         --dry-run is specified. Silence errors from 'grep' when there are no
66456         m4 files in $m4dir.
66457         (func_create_testdir): Silence errors from 'grep' when there are no
66458         m4 files in $m4dir.
66459         Reported by Karl Berry <karl@freefriends.org>.
66460
66461 2006-04-20  Bruno Haible  <bruno@clisp.org>
66462
66463         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66464         one argument, so that the code will be portable to Autoconf 2.60.
66465         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66466         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66467         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66468
66469 2006-04-19  Derek Price  <derek@ximbiot.com>
66470             Eric Blake  <ebb9@byu.net>
66471
66472         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66473         rather than "/full/path.h".  Update comment to match.  Shorten &
66474         generalize m4_translit call via AS_TR_CPP.
66475
66476 2006-04-19  Derek Price  <derek@ximbiot.com>
66477             Eric Blake  <ebb9@byu.net>
66478
66479         * lib/inttypes.h: Correct grammar in comment.
66480
66481 2006-04-18  Derek Price  <derek@ximbiot.com>
66482             Paul Eggert  <eggert@cs.ucla.edu>
66483
66484         * modules/inttypes: New file.
66485         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66486
66487 2006-04-18  Derek Price  <derek@ximbiot.com>
66488             Paul Eggert  <eggert@cs.ucla.edu>
66489
66490         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66491         New files.
66492
66493 2006-04-18  Derek Price  <derek@ximbiot.com>
66494             Paul Eggert  <eggert@cs.ucla.edu>
66495
66496         * lib/inttypes.h: New file.
66497         * lib/strtoimax.c: Assume <inttypes.h>.
66498
66499 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66500
66501         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66502         isn't mounted.  Problem reported by Kir Kolyshkin.
66503
66504 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66505
66506         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66507         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66508         Derek R. Price.
66509         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66510         implementation.
66511
66512 2006-04-12  Eric Blake  <ebb9@byu.net>
66513
66514         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66515         is now done automatically by the corresponding Autoconf macro.
66516
66517 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66518
66519         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66520         time_r.h.
66521
66522 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66523
66524         Merge regex changes from libc, removing some of our
66525         POSIX-conformance changes that were rejected and redoing them in a
66526         less-intrusive way.
66527
66528         * lib/regcomp.c (re_compile_internal, init_dfa):
66529         Length arg is now size_t, not Idx.  All uses changed.
66530         (peek_token): Forward decl now says internal_function.
66531         (__re_error_msgid, __re_error_msgid_idx):
66532         Now static rather than extern with attribute_hidden.
66533         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66534         For some reason libc prefers K&R style defns for external functions.
66535         (regerror) [!defined _LIBC]: Likewise.
66536         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66537         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66538         (build_range_exp, build_collating_symbol):
66539         Use K&R-style defn.
66540         (re_compile_fastmap): Use '\0' to memset, not 0.
66541         (utf8_sb_map): Make the calculations more obvious.
66542         (init_dfa, parse_bracket_exp, build_charclass_op):
66543         Call calloc and cast result, as glibc does.
66544         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66545         (build_range_exp, build_collating_symbol):
66546         Now internal functions.
66547
66548         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66549
66550         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66551         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66552         Don't depend on VMS; depend on __VMS instead, for POSIX
66553         namespace cleanness.
66554         (regoff_t): Define to ssize_t, not long int.
66555
66556         Remove the REG_ macros named below.  Instead, make the old names
66557         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66558         __USE_GNU_REGEX.
66559         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66560         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66561         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66562         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66563         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66564         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66565         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66566         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66567         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66568         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66569         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66570         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66571         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66572         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66573         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66574         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66575         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66576         (REG_NREGS):
66577         Remove.  All uses replaced by the old RE_* names.
66578         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66579         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66580         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66581         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66582         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66583         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66584         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66585         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66586         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66587         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66588         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66589         Don't bother having these macros be independent of each others'
66590         values, since they no longer exist in the POSIX name space.
66591
66592         Rename the following member names back to their old names,
66593         unless !__USE_GNU_REGEX.  All uses changed back.
66594         (buffer): Renamed from re_buffer.
66595         (allocated): Renamed from re_allocated.
66596         (used): Renamed from re_used.
66597         (syntax): Renamed from re_syntax.
66598         (fastmap): Renamed from re_fastmap.
66599         (translate): Renamed from re_translate.
66600         (can_be_null): Renamed from re_can_be_null.
66601         (regs_allocated): Renamed from re_regs_allocated.
66602         (fastmap_accurate): Renamed from re_fastmap_accurate.
66603         (no_sub): Renamed from re_no_sub.
66604         (not_bol): Renamed from re_not_bol.
66605         (not_eol): Renamed from re_not_eol.
66606         (newline_anchor): Renamed from re_newline_anchor.
66607         (num_regs): Renamed from rm_num_regs.
66608         (start): Renamed from rm_start.
66609         (end): Renamed from rm_end.
66610
66611         (free_state): Move up a bit.
66612
66613         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66614         #define to be empty.
66615         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66616         when that is what is intended.
66617         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66618         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66619         (MAX): New macro.
66620         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66621         All uses changed back to re_malloc, etc.  It's now the caller's
66622         responsibility to check for overflow; all callers changed.
66623         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66624         (re_x2nrealloc): Remove.
66625         (free_state): Remove decl.
66626
66627         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66628         (re_set_registers, re_exec):
66629         Use K&R-style defn.
66630
66631         2006-01-31  Roland McGrath  <roland@redhat.com>
66632
66633         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66634         Reported by Mike Frysinger <vapier@gentoo.org>.
66635
66636         2006-01-15  Andreas Jaeger  <aj@suse.de>
66637
66638         [BZ #1950]
66639         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66640         build_wcs_upper_buffer change.
66641         (build_wcs_upper_buffer): Change return type.
66642
66643         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66644
66645         * lib/regex_internal.h: Include <stdint.h> if available.
66646
66647         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66648
66649         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66650
66651         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66652
66653         * lib/regcomp.c: Adjust for changed secondary hash function.
66654
66655         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66656
66657         * lib/regex.h: Pretty printing.
66658         Clean up namespace a bit.
66659
66660         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66661
66662         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66663         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66664
66665         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66666                     Ulrich Drepper  <drepper@redhat.com>
66667
66668         [BZ #1302]
66669         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66670         changed.
66671         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66672
66673         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66674
66675         [BZ #281]
66676         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66677         * lib/regcomp.c: Remove unnecessary uses of
66678         unsigned RE_TRANSLATE_TYPE.
66679         * lib/regex_internal.h: Likewise.
66680         * lib/regex_internal.c: Likewise.
66681         * lib/regexec.c: Likewise.
66682         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66683
66684         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66685
66686         * lib/regexec.c (find_recover_state): Remove unnecessary
66687         initialization.
66688         (transit_state_bkref): Make DFA a const pointer.
66689         (get_subexp): Likewise.
66690         (check_arrival): Likewise.
66691         (update_cur_sifted_state): Likewise.
66692         (re_search_internal): Likewise.
66693         (prune_impossible_nodes): Likewise.
66694         (acquire_init_state_context): Likewise.
66695         (proceed_next_node): Likewise.
66696         (set_regs): Likewise.
66697         (free_fail_stack_return): Likewise.
66698         (check_arrival_expand_ecl): Mark DFA parameter as const.
66699         (check_arrival_expand_ecl_sub): Likewise.
66700         (check_subexp_limits): Likewise.
66701         (sub_epsilon_src_nodes):  Likewise.
66702         (add_epsilon_src_nodes):  Likewise.
66703         (merge_state_array): Likewise.
66704         (update_regs): Likewise.
66705         (build_trtable): Likewise.
66706         (sift_states_backward): Mark MCTX parameter as const.
66707         (build_sifted_states): Likewise.
66708         (update_cur_sifted_state): Likewise.
66709         (sift_states_mkref): Likewise.
66710         (check_arrival_expand_ecl): Mark eclosure as const.
66711         (check_dst_limits_calc_pos_1): Likewise.
66712         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66713         pointer.
66714
66715         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66716
66717         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66718         (transit_state_sb): Likewise.
66719         (transit_state_mb): Likewise.
66720         (sift_states_iter_mb): Likewise.
66721         (check_arrival_add_next_nodes): Likewise.
66722         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66723         [_LIBC] (re_search_2_stub): Use mempcpy.
66724
66725         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66726         mbrtowc for very simple UTF-8 case.
66727
66728         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66729         a pointer-to-const.
66730         (re_acquire_state_context): Likewise.
66731         * lib/regex_internal.h: Adjust prototypes.
66732
66733         * lib/regex.c: Prevent using C++ compilers.
66734
66735         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66736         (re_acquire_state_context): Likewise.
66737
66738 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66739
66740         * modules/regex (Depends-on): Add ssize_t.
66741
66742 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66743
66744         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66745         translation table.
66746
66747 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66748
66749         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66750
66751 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66752             Bruno Haible  <bruno@clisp.org>
66753
66754         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66755         <sys/types.h> and <inttypes.h>.
66756
66757 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66758
66759         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66760         `__error_t_defined', so argp.h will not typedef the former.
66761
66762 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66763
66764         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66765         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66766         glibc names.  Even if glibc is changed to conform to POSIX, the
66767         traditional names will be available anyway, since regex depends on
66768         the extensions module.  Also, fix a longstanding typo in the
66769         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66770         reported by Emanuele Giaquinta.  Also, change sense of cached
66771         variable, so that the message makes sense.
66772
66773 2006-03-24  Simon Josefsson  <jas@extundo.com>
66774
66775         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66776         including some doc fixes.
66777         (base64_encode_alloc): Fix +1 bug on allocation failures.
66778
66779 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66780
66781         * lib/base64.c (base64_encode): Do not read past end of array with
66782         unsanitized input on systems with CHAR_BIT > 8.
66783
66784 2006-03-24  Eric Blake  <ebb9@byu.net>
66785
66786         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66787
66788 2006-03-22  Karl Berry  <karl@gnu.org>
66789
66790         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66791         * config/srclistvars.sh (COREUTILS): new var.
66792
66793 2006-03-17  Jim Meyering  <jim@meyering.net>
66794
66795         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66796         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66797
66798 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66799
66800         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66801         no longer needs it.  Instead, check that regoff_t is as least
66802         as wide as ptrdiff_t.
66803
66804         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66805         so that our regex.h stays compatible with the installed regex.
66806         This is helpful for installers who configure --without-included-regex.
66807         Problem reported by Emanuele Giaquinta.
66808
66809 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66810
66811         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66812         Typedef to long int, not to off_, as POSIX will likely change
66813         in that direction.
66814
66815 2006-03-15  Eric Blake  <ebb9@byu.net>
66816
66817         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66818
66819 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66820
66821         * lib/argp-help.c (validate_uparams): Fix typo
66822         * lib/argp-parse.c (argp_default_options): Consistently begin help
66823         messages with a lowercase letter.
66824
66825 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66826
66827         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66828         overrun buffers and shouldn't be used (much as gets shouldn't be
66829         used).
66830         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66831
66832 2006-03-08  Simon Josefsson  <jas@extundo.com>
66833
66834         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66835         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66836
66837 2006-03-08  Simon Josefsson  <jas@extundo.com>
66838
66839         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66840         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66841
66842 2006-03-08  Simon Josefsson  <jas@extundo.com>
66843
66844         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66845         signal that configure disabled the device.
66846
66847 2006-03-08  Simon Josefsson  <jas@extundo.com>
66848
66849         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66850         languages.
66851
66852 2006-03-07  Simon Josefsson  <jas@extundo.com>
66853
66854         * modules/getopt (Depends-on): Add unistd.
66855
66856         * modules/unistd: New file.
66857
66858 2006-03-07  Simon Josefsson  <jas@extundo.com>
66859
66860         * modules/gc-random: New file.
66861
66862 2006-03-07  Simon Josefsson  <jas@extundo.com>
66863
66864         * m4/unistd_h.m4: New file.
66865
66866 2006-03-07  Simon Josefsson  <jas@extundo.com>
66867
66868         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
66869         test to be side-effect free by storing the result in the cache
66870         variable gl_cv_lib_readline, and moving the assignment of
66871         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
66872         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66873
66874 2006-03-07  Simon Josefsson  <jas@extundo.com>
66875
66876         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
66877         error on missing devices (the functions will return an error).
66878
66879         * m4/gc.m4: Move random stuff to gc-random.m4
66880
66881 2006-03-07  Simon Josefsson  <jas@extundo.com>
66882
66883         * lib/unistd_.h: New file.
66884
66885 2006-03-07  Simon Josefsson  <jas@extundo.com>
66886
66887         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
66888
66889 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66890
66891         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
66892         Problem reported by Juan Manuel Guerrero.
66893
66894 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66895
66896         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
66897         the unistd module.
66898         * lib/getlogin_r.c: Likewise.
66899         * lib/getlogin_r.h: Likewise.
66900         * lib/glob.c: Likewise.
66901         * lib/pagealign_alloc.c: Likewise.
66902         * lib/unistd_.h: Remove; no longer needed.
66903
66904 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66905
66906         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66907         Add unistd.
66908         * modules/c-stack (Depends-on): Add unistd.
66909         * modules/getlogin_r: Likewise.
66910         * modules/glob: Likewise.
66911         * modules/pagealign_alloc: Likewise.
66912         * modules/unistd (Files): Remove lib/unistd_.h.
66913         (EXTRA_DIST): Remove.
66914         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
66915         need unistd_.h.
66916         (MOSTLYCLEANFILES): Remove unistd.h-t.
66917
66918 2006-03-03  Simon Josefsson  <jas@extundo.com>
66919
66920         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
66921
66922 2006-03-03  Simon Josefsson  <jas@extundo.com>
66923
66924         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
66925         libidn and bison.
66926
66927 2006-03-03  Simon Josefsson  <jas@extundo.com>
66928
66929         * build-aux/maint.mk: Add indent target.
66930
66931 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
66932
66933         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
66934         our replacement poll.h in any case, to avoid a differing
66935         declaration from a system header.  Seen on AIX.
66936
66937 2006-03-01  Simon Josefsson  <jas@extundo.com>
66938
66939         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
66940         <kasal@ucw.cz>.
66941
66942 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66943
66944         * modules/gettime (Depends-on): Add extensions module.
66945         * modules/nanosleep (Depends-on): Likewise.
66946         * modules/settime (Depends-on): Likewise.
66947
66948 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66949
66950         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
66951         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
66952         pedantically.
66953         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66954         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
66955
66956         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
66957         not "==".  Reported by Ralf Wildenhues.
66958
66959 2006-03-01  Karl Berry  <karl@gnu.org>
66960
66961         * doc/Copyright/request-*: new files, synced from gnuorg.
66962
66963 2006-03-01  Karl Berry  <karl@gnu.org>
66964
66965         * config/srclist.txt (Copyright/*): new entries.
66966
66967 2006-02-28  Simon Josefsson  <jas@extundo.com>
66968
66969         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
66970
66971 2006-02-27  Simon Josefsson  <jas@extundo.com>
66972
66973         * lib/base64.h: Indent #define's.  From Jim Meyering
66974         <jim@meyering.net>.
66975
66976 2006-02-27  Jim Meyering  <jim@meyering.net>
66977
66978         Revert the change of 2006-02-24, so these files can continue
66979         to be sync'd from gettext.
66980         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
66981         of `config.h'.
66982
66983 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66984
66985         * modules/intprops: New file.
66986         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66987         Add intprops.
66988         * modules/getloadavg (Files): Remove lib/intprops.h.
66989         (Depends-on): Add intprops.
66990         * modules/human: Likewise.
66991         * modules/inttostr: Likewise.
66992         * modules/openat: Likewise.
66993         * modules/sig2str: Likewise.
66994         * modules/userspec: Likewise.
66995         * modules/utimecmp: Likewise.
66996         * modules/xnanosleep: Likewise.
66997         * modules/xstrtol: Likewise.
66998
66999 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
67000
67001         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
67002         * modules/lock-tests (TESTS): Use $(EXEEXT).
67003         * modules/tls-tests: Likewise.
67004         * modules/argp-tests: Likewise.
67005         (check_PROGRAMS): New var, replacing...
67006         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
67007
67008 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67009
67010         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
67011         `config.h'.
67012
67013 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67014
67015         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
67016
67017 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67018
67019         Sync from coreutils.
67020         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
67021         gl_CHDIR_SAFER.
67022
67023 2006-02-22  Jim Meyering  <jim@meyering.net>
67024
67025         Sync from coreutils.
67026         * m4/chdir-safer.m4: New file.
67027
67028 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67029
67030         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
67031         AT_FDCWD exceeds INT_MAX.
67032         * lib/openat.h (AT_FDCWD): Likewise.
67033
67034 2006-02-17  Eric Blake  <address@hidden>
67035
67036         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
67037
67038 2006-02-16  Simon Josefsson  <jas@extundo.com>
67039
67040         * modules/getaddrinfo (Depends-on): Add sys_socket.
67041
67042 2006-02-15  Simon Josefsson  <jas@extundo.com>
67043
67044         * build-aux/maint.mk: Add dsyntax-check rule.
67045
67046 2006-02-15  Eric Blake  <ebb9@byu.net>
67047
67048         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
67049         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
67050         'present but cannot compile' warnings on cygwin.
67051         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
67052         use ws2tcpip.h if sys/socket.h works.
67053         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
67054         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
67055
67056 2006-02-14  Simon Josefsson  <jas@extundo.com>
67057
67058         * modules/maintainer-makefile (Files): Rename.
67059
67060         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
67061         and (the local) Makefile.cfg to maint-cfg.mk.
67062
67063         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
67064         to the latter.
67065
67066         * modules/maintainer-makefile: New module.
67067
67068         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
67069         severaly stripped to make it possible to build it up from scratch
67070         with reliable tests.
67071
67072         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
67073         fixes to permit overriding the default actions when configure and
67074         makefile are not available.
67075
67076 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67077
67078         Sync from coreutils.
67079         * modules/lstat (Depends-on): Don't depend on xalloc.
67080         (License): Change from GPL to LGPL, since this is now simply a
67081         replacement for a libc function.
67082
67083 2006-02-14  Jim Meyering  <jim@meyering.net>
67084
67085         Sync from coreutils.
67086
67087         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
67088         failure on deficient systems, and simplify gnulib lgpl dependencies.
67089         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
67090         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
67091
67092         * lib/xalloc-die.c: Remove unused definition of N_.
67093
67094 2006-02-14  Jim Meyering  <jim@meyering.net>
67095
67096         Sync from coreutils.
67097         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
67098         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
67099         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
67100         double-quote uses of that variable, to accommodate the rare case in
67101         which getmntent is available in none of the libraries checked.  This
67102         happens at least on FreeBSD 5.0.
67103
67104 2006-02-13  Simon Josefsson  <jas@extundo.com>
67105
67106         * gnulib-tool (Usage): Fix --import, from
67107         karl@freefriends.org (Karl Berry).
67108
67109 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67110
67111         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
67112
67113 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67114
67115         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67116         "autoupdate" on 2005-12-12.
67117
67118 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67119
67120         * modules/closeout (Depends-on): Remove atexit.
67121
67122 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67123
67124         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
67125         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
67126
67127 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67128
67129         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
67130         __EXTENSIONS__ if this causes compilation to fail.  Problem
67131         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
67132         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
67133
67134 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
67135
67136         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
67137         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
67138         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
67139         All uses changed.
67140
67141 2006-01-26  Simon Josefsson  <jas@extundo.com>
67142
67143         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
67144         prototype is visible on mingw32.
67145
67146         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
67147         for mingw32.
67148
67149         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
67150         mingw32).
67151
67152 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67153
67154         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
67155         attempt to open for write; this always fails, at least on POSIX
67156         hosts.  This reinstates the 2006-01-09 change, which was
67157         inadvertently removed.
67158
67159 2006-01-26  Bruno Haible  <bruno@clisp.org>
67160
67161         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
67162         Reported by Paul Eggert.
67163
67164 2006-01-26  Bruno Haible  <bruno@clisp.org>
67165             Paul Eggert  <eggert@cs.ucla.edu>
67166
67167         * lib/stdbool_.h (_Bool)
67168         [(! (defined __cplusplus || defined __BEOS__)
67169           && !defined __GNUC__
67170           && !(defined __HP_cc || defined __xlc__
67171                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
67172                || defined __sgi))]:
67173         #define to signed char in these cases too; this simplifies
67174         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
67175         etc., separately) and makes it more conservative.
67176
67177 2006-01-25  Simon Josefsson  <jas@extundo.com>
67178
67179         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
67180         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
67181         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
67182
67183 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67184
67185         * lib/argp-namefrob.h: Bugfix. Remove stray #
67186
67187 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
67188
67189         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
67190         so that we test the test.
67191         Check for yet another HP-UX cc bug involving *bool |= bool.
67192
67193 2006-01-25  Karl Berry  <karl@gnu.org>
67194
67195         * config/srclist.txt (vasnprintf.c): sync lost.
67196
67197 2006-01-25  Jim Meyering  <jim@meyering.net>
67198
67199         Sync from the stable (b5) branch of coreutils:
67200
67201         * lib/fts.c (fts_children): Don't let close() clobber errno from
67202         failed fchdir().
67203
67204         * lib/fts.c (fts_stat): When following a symlink-to-directory,
67205         don't necessarily interpret stat-fails+lstat-succeeds as indicating
67206         a dangling symlink.  That can also happen at least for ELOOP.
67207         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
67208         FYI, this bug predates the inclusion of fts.c in coreutils.
67209
67210         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
67211         in their own block, so pre-c99 compilers don't object.
67212
67213         Avoid the double-free (first in fts_read, second in fts_close) that
67214         would occur when an `active' directory is made inaccessible (e.g.,
67215         via chmod a-x) during a traversal.
67216         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67217         before returning.  Reproduce this failure by
67218         mkdir -p a/b; cd a; chmod a-x . b
67219         Reported by Stavros Passas.
67220
67221 2006-01-25  Jim Meyering  <jim@meyering.net>
67222
67223         * lib/fileblocks.c: Remove more useless parentheses.
67224         * lib/readutmp.h: Likewise.
67225
67226 2006-01-25  Bruno Haible  <bruno@clisp.org>
67227
67228         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
67229         warnings.
67230         Reported by Paul Eggert.
67231
67232 2006-01-25  Bruno Haible  <bruno@clisp.org>
67233
67234         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
67235         rid of a trap command. For Solaris sh.
67236         Reported by Mark D. Baushke <mdb@gnu.org>.
67237
67238 2006-01-24  Simon Josefsson  <jas@extundo.com>
67239
67240         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
67241         Bruno.
67242
67243 2006-01-24  Karl Berry  <karl@gnu.org>
67244
67245         * config/srclist.txt (argp-namefrob.h): sync lost.
67246
67247 2006-01-24  Jim Meyering  <jim@meyering.net>
67248
67249         * modules/openat (Files): Add lib/intprops.h.
67250         From Mark D. Baushke.
67251
67252 2006-01-24  Jim Meyering  <jim@meyering.net>
67253
67254         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
67255         Reported by Mark D. Baushke.
67256
67257 2006-01-24  Jim Meyering  <jim@meyering.net>
67258
67259         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
67260
67261 2006-01-24  Bruno Haible  <bruno@clisp.org>
67262
67263         * modules/strnlen (Maintainer): Change from glibc to all.
67264
67265 2006-01-24  Bruno Haible  <bruno@clisp.org>
67266
67267         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
67268         Patch by Paul Eggert.
67269
67270 2006-01-24  Bruno Haible  <bruno@clisp.org>
67271
67272         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
67273         already has it.
67274         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
67275         2005-11-26.
67276
67277         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
67278         'signed char' to avoid problems with the built-in _Bool type.
67279         Reported by Paul Eggert on 2005-11-26.
67280
67281 2006-01-24  Bruno Haible  <bruno@clisp.org>
67282
67283         * gnulib-tool (func_import): Avoid constructing complicated sed
67284         expressions inside backquote.
67285         Report and solution by Mark D. Baushke <mdb@gnu.org>.
67286
67287 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
67288
67289         These changes imported from libc.
67290         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
67291         test and two separate function calls.
67292         * lib/strndup.c (__strndup): Add libc_hidden_def.
67293
67294 2006-01-23  Simon Josefsson  <jas@extundo.com>
67295
67296         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67297         Remove the test_*_SOURCES variable: automake infers it by default.
67298         * modules/tls-tests: Likewise.
67299
67300 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67301
67302         Work around porting bugs reported by Dieter in
67303         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67304         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67305         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67306         Include "getopt.h" first, to check interface.
67307         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67308         !HAVE_DECL_GETENV.
67309         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67310         (__strndup): Revert to K&R-style function dfns, the glibc style.
67311         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67312         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67313         Include strnlen.h first, to get prototype properly.
67314         (strnlen): Renamed from __strnlen.
67315         Remove weak alias.
67316
67317 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67318
67319         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67320
67321 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67322
67323         * config/srclist.txt: Adjust to reflect glibc reorganization.
67324         This affects only comments.
67325
67326 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67327
67328          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67329          Reported by Bruce Korb <bkorb@gnu.org>.
67330
67331 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67332
67333         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67334         to pacify gcc -Wswitch-default.
67335
67336 2006-01-22  Bruno Haible  <bruno@clisp.org>
67337
67338         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67339         temporary buffer for sprintf, take into account the precision also
67340         for 'd', 'i', 'u', 'o', 'x', 'X'.
67341
67342 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67343
67344         * modules/argp-tests: New module
67345         * tests/test-argp.c: New file
67346         * tests/test-argp-2.sh: New file
67347
67348 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67349
67350         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67351         (__argp_base_name): Removed
67352         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67353         typo.
67354         (__argp_base_name): Provide macro definition or extern declaration
67355         depending on the configuration
67356
67357 2006-01-20  Simon Josefsson  <jas@extundo.com>
67358
67359         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67360
67361 2006-01-20  Simon Josefsson  <jas@extundo.com>
67362
67363         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67364
67365 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67366
67367         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67368         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67369         Suggested by Bruno Haible.
67370
67371 2006-01-20  Karl Berry  <karl@gnu.org>
67372
67373         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67374         until changes propagate, I guess.
67375
67376 2006-01-19  Simon Josefsson  <jas@extundo.com>
67377
67378         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67379
67380 2006-01-19  Simon Josefsson  <jas@extundo.com>
67381
67382         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67383
67384 2006-01-19  Simon Josefsson  <jas@extundo.com>
67385
67386         * gnulib-tool: Set check_PROGRAMS.
67387
67388         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67389         modules/des-tests, modules/gc-arcfour-tests,
67390         modules/gc-arctwo-tests, modules/gc-des-tests,
67391         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67392         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67393         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67394         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67395         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67396         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67397         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67398         test_*_SOURCES.
67399
67400 2006-01-18  Simon Josefsson  <jas@extundo.com>
67401
67402         * modules/socklen (Depends-on): Depend on sys_socket.
67403
67404 2006-01-18  Simon Josefsson  <jas@extundo.com>
67405
67406         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67407         modules/des-tests, modules/gc-arcfour-tests,
67408         modules/gc-arctwo-tests, modules/gc-des-tests,
67409         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67410         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67411         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67412         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67413         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67414         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67415         $(EXEEXT) to automake TESTS variable, for mingw32.
67416
67417 2006-01-17  Simon Josefsson  <jas@extundo.com>
67418
67419         * modules/socklen (Include): Need sys/socket.h.
67420
67421 2006-01-17  Bruno Haible  <bruno@clisp.org>
67422
67423         * modules/ssize_t (Include): Add <sys/types.h>.
67424
67425 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67426
67427         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67428         it's not portable and it doesn't work with cross-compiles.
67429         Problem reported by Bruno Haible.  Fix missing-$ typo in
67430         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67431         -zignore from being used with Sun's C compiler.
67432
67433 2006-01-12  Simon Josefsson  <jas@extundo.com>
67434
67435         * lib/base64.c: Fix warning, reported by Bruno Haible
67436         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67437
67438 2006-01-12  Bruno Haible  <bruno@clisp.org>
67439
67440         * modules/ldd: New file.
67441         * build-aux/ldd.sh.in: New file.
67442         * MODULES.html.sh (Support for building libraries and executables): Add
67443         ldd.
67444
67445 2006-01-12  Bruno Haible  <bruno@clisp.org>
67446
67447         * m4/ldd.m4: New file.
67448
67449 2006-01-12  Bruno Haible  <bruno@clisp.org>
67450
67451         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67452         endless loop while replacing $auxdir with build-aux.
67453
67454 2006-01-11  Simon Josefsson  <jas@extundo.com>
67455
67456         * lib/stdint_.h (SIZE_MAX): Add missing (.
67457
67458 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67459
67460         Sync from coreutils.
67461         * lib/md5.c: Fix commentary typos.
67462         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67463         * lib/md5.h (__attribute__): Remove; unused.
67464         * lib/sha1.c: Fix commentary to match md5 better.
67465         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67466         so that we don't need to worry about alignment.  All uses changed.
67467         This merges the 2005-10-28 md5 change into sha1.
67468
67469 2006-01-11  Jim Meyering  <jim@meyering.net>
67470
67471         Sync from coreutils.
67472         * lib/md5.c (OP): Fix spacing.
67473
67474 2006-01-11  Bruno Haible  <bruno@clisp.org>
67475
67476         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67477         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67478         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67479
67480 2006-01-11  Bruno Haible  <bruno@clisp.org>
67481
67482         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67483         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67484         the "early" section as well.
67485
67486 2006-01-11  Bruno Haible  <bruno@clisp.org>
67487
67488         Avoid "ar: no archive members specified" error on MacOS X.
67489         * gnulib-tool (func_modules_add_dummy): New function.
67490         (func_import, func_create_testdir): Invoke it.
67491
67492 2006-01-11  Bruno Haible  <bruno@clisp.org>
67493
67494         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67495         with $auxdir in AC_CONFIG_FILES statements.
67496
67497 2006-01-11  Bruno Haible  <bruno@clisp.org>
67498
67499         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67500         Initialize also noinst_HEADERS to empty.
67501
67502 2006-01-11  Bruno Haible  <bruno@clisp.org>
67503
67504         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67505         variables.
67506         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67507         autoreconf.
67508
67509 2006-01-11  Bruno Haible  <bruno@clisp.org>
67510
67511         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67512         overridable by the user.
67513         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67514
67515 2006-01-10  Simon Josefsson  <jas@extundo.com>
67516
67517         * modules/sys_socket: New file.
67518
67519 2006-01-10  Simon Josefsson  <jas@extundo.com>
67520
67521         * m4/sys_socket_h.m4: New file.
67522
67523 2006-01-10  Simon Josefsson  <jas@extundo.com>
67524
67525         * lib/socket_.h: New file.
67526
67527 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67528
67529         * modules/readutmp (Maintainer): Add myself.
67530
67531 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67532
67533         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67534         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67535         People who are still concerned with buggy memcmp implementations
67536         can invoke gl_FUNC_MEMCMP themselves.
67537
67538 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67539
67540         * lib/regex_internal.h (BITSET_WORD_BITS):
67541         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67542         preprocessor mishandles large unsigned values as if they were signed.
67543         Problem reported by Claudio Fontana in
67544         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67545
67546 2006-01-10  Jim Meyering  <jim@meyering.net>
67547
67548         Avoid the double-free (first in fts_read, second in fts_close) that
67549         would occur when an `active' directory is made inaccessible (e.g.,
67550         via chmod a-x) during a traversal.
67551         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67552         before returning.  Reproduce this failure by
67553         mkdir -p a/b; cd a; chmod a-x . b
67554         Reported by Stavros Passas.
67555
67556         Sync from coreutils.
67557         * lib/sha1.c: Tweak grammar in a comment.
67558
67559 2006-01-10  Jim Meyering  <jim@meyering.net>
67560
67561         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67562         Patch by Joerg Sonnenberger.
67563
67564 2006-01-10  Bruno Haible  <bruno@clisp.org>
67565
67566         * modules/readutmp: Depend on module free.
67567         * modules/strtok_r: Depend on module restrict.
67568
67569 2006-01-10  Bruno Haible  <bruno@clisp.org>
67570
67571         * modules/gettext (configure.ac): Add an invocation of
67572         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67573
67574 2006-01-10  Bruno Haible  <bruno@clisp.org>
67575
67576         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67577         Reported by Werner Lemberg <wl@gnu.org>.
67578
67579 2006-01-10  Bruno Haible  <bruno@clisp.org>
67580
67581         * lib/localcharset.c: Update from GNU gettext.
67582
67583 2006-01-10  Bruno Haible  <bruno@clisp.org>
67584
67585         * lib/argp.h (__const): Remove macro. Use const instead.
67586         * lib/argp-fmtstream.h (__const): Likewise.
67587         * lib/glob_.h (__const): Remove macro.
67588         * lib/glob-libc.h: Use const instead of __const.
67589
67590 2006-01-10  Bruno Haible  <bruno@clisp.org>
67591
67592         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67593         variable.
67594         Needed to avoid an automake error regarding the 'gettext' module.
67595
67596 2006-01-09  Simon Josefsson  <jas@extundo.com>
67597
67598         * modules/inet_ntop (Depends-on): Add restrict.
67599
67600 2006-01-09  Simon Josefsson  <jas@extundo.com>
67601
67602         * modules/gc-rijndael-tests (License): Put under LGPL.
67603
67604         * modules/gc-des-tests (License): Likewise.
67605
67606         * modules/gc-arcfour-tests (License): Likewise.
67607
67608         * modules/gc-arctwo-tests (License): Likewise.
67609
67610         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67611
67612         * modules/gc-hmac-sha1-tests (Files): Likewise.
67613
67614         * modules/gc-hmac-md5-tests (License): Likewise.
67615
67616         * modules/gc-sha1-tests (License): Likewise.
67617
67618         * modules/gc-md5-tests (License): Likewise.
67619
67620         * modules/gc-md4-tests (License): Likewise.
67621
67622         * modules/gc-md2-tests (License): Likewise.
67623
67624         * modules/gc-tests (License): Likewise.
67625
67626         * modules/des-tests (License): Likewise.
67627
67628         * modules/md4-tests (License): Likewise.
67629
67630         * modules/md2-tests (License): Likewise.
67631
67632 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67633
67634         Sync from coreutils:
67635
67636         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67637         * modules/lib-ignore: New file.
67638         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67639         chdir-safer.m4, lchmod.m4.
67640         * modules/openat: Add mkdirat.c, openat-priv.h.
67641
67642 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67643
67644         Sync from coreutils.
67645         * m4/lib-ignore.m4: New file.
67646         * m4/lchmod.m4: New file.
67647
67648 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67649
67650         Sync from coreutils.
67651         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67652         for write access: POSIX says that must fail.
67653         * lib/fts.c (diropen): Likewise.
67654         * lib/save-cwd.c (save_cwd): Likewise.
67655         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67656         well, for minor improvements on hosts that lack O_DIRECTORY.
67657         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67658         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67659         Fall back on chown if open failed with EACCES.
67660
67661         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67662         Report an error at compile-time if only a 1-second nominal clock
67663         resolution is found.
67664
67665         * lib/lchmod.h: New file.
67666         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67667         (make_dir_parents): Use lchown rather than chown, and
67668         lchmod rather than chmod.
67669
67670         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67671         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67672         "proc" reported by n0dalus.
67673
67674         * lib/mountlist.c: Include <limits.h>.
67675         (dev_from_mount_options)
67676         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67677         New function.  It no longer assumes "dev=" has the System V meaning
67678         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67679         (read_file_system_list)
67680         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67681         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67682         dev= in that case.
67683
67684         * lib/posixtm.h (PDS_PRE_2000): New macro.
67685         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67686         allow_century.  All usages changed.  Reject dates outside the range
67687         1969-1999 if PDS_PRE_2000 is used.
67688
67689 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67690
67691         Sync from coreutils.
67692         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67693         (Time of day items): Mention the possibility of leap seconds.
67694         Problem reported by Dr. David Alan Gilbert.
67695
67696 2006-01-09  Jim Meyering  <jim@meyering.net>
67697
67698         Sync from coreutils.
67699
67700         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67701
67702         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67703
67704         * lib/modechange.c (mode_compile): Reject an invalid mode string
67705         that starts with an octal digit.  From Andreas Gruenbacher.
67706
67707         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67708         and dup to open_safer and dup_safer, respectively.
67709         (openat_permissive): Fix typo in comment.
67710
67711         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67712         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67713         (_): Remove; no longer needed.
67714         (openat): Renamed from rpl_openat; no need for rpl_openat
67715         since openat.h renames openat for us.
67716         Replace most of the body with a call to openat_permissive,
67717         to avoid duplicate code.
67718         Port to (probably hypothetical) environments were mode_t is
67719         wider than int.
67720         (openat_permissive): Require mode arg, so that we can check
67721         types better.  Put it just after flags.  Change cwd failure
67722         indicator from pointer-to-bool to pointer-to-errno-value.
67723         All callers changed.
67724         Invoke openat_save_fail and/or openat_restore_fail if
67725         cwd_errno is null, so that openat can call us.
67726         (openat_permissive, fdopendir, fstatat, unlinkat):
67727         Simplify errno handling to avoid some duplicate code,
67728         as it's OK to set errno on success.
67729         * lib/openat.h: Revamp code so that function macros depend on
67730         __OPENAT_PREFIX only, not also on AT_FDCWD.
67731         (openat_ro): Remove.  Caller changed to use openat_permissive.
67732         (openat_permissive): Now a macro, if not a function.
67733         (openat_restore_fail, openat_save_fail): Now always functions,
67734         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67735
67736         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67737         and openat.c.
67738         * lib/mkdirat.c: Include openat-priv.h.
67739         Remove definitions of macros defined therein.
67740         * lib/openat.c: Likewise.
67741
67742         * lib/mkdirat.c (mkdirat): New file and function.
67743         * lib/openat.h (mkdirat): Declare.
67744
67745         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67746
67747         * lib/openat.h (openat_permissive): Declare.
67748         (openat_ro): Define.
67749
67750         * lib/openat.c (EXPECTED_ERRNO): New macro.
67751         (openat_permissive): New function -- used in remove.c rewrite.
67752         (all functions): Set errno just before returning, only if there
67753         was an actual failure.
67754         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67755
67756         Emulate openat-family functions using Linux's procfs, if possible.
67757         Idea and some code based on Ulrich Drepper's glibc changes.
67758
67759         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67760         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67761         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67762         before falling back on save_cwd and restore_cwd.
67763         (fdopendir, fstatat, unlinkat): Likewise.
67764
67765         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67766         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67767
67768         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67769         as second argument to va_arg.  Otherwise, some versions of gcc
67770         warn that `if this code is reached, the program will abort'.
67771
67772 2006-01-09  Jim Meyering  <jim@meyering.net>
67773
67774         Sync from coreutils.
67775         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67776         Require openat-priv.h.
67777
67778 2006-01-09  Bruno Haible  <bruno@clisp.org>
67779
67780         * modules/strnlen (Include): Use strnlen.h.
67781
67782 2006-01-09  Bruno Haible  <bruno@clisp.org>
67783
67784         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67785
67786 2006-01-09  Bruno Haible  <bruno@clisp.org>
67787
67788         * lib/sysexit_.h (EX_OK): New macro.
67789         Suggested by Martin Lambers <marlam@marlam.de>.
67790
67791 2006-01-09  Bruno Haible  <bruno@clisp.org>
67792
67793         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67794         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67795
67796 2006-01-09  Bruno Haible  <bruno@clisp.org>
67797
67798         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67799         numbers.
67800
67801 2006-01-09  Bruno Haible  <bruno@clisp.org>
67802
67803         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67804         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67805         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67806         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67807
67808 2006-01-09  Bruno Haible  <bruno@clisp.org>
67809
67810         * build-aux/javacomp.sh.in: New file, moved from lib/.
67811         * modules/javacomp-script (Files): Update.
67812         (configure.ac): Add AC_CONFIG_FILES invocation.
67813         (EXTRA_DIST): Remove variable.
67814
67815         * build-aux/javaexec.sh.in: New file, moved from lib/.
67816         * modules/javaexec (Files): Update.
67817         (configure.ac): Add AC_CONFIG_FILES invocation.
67818         (EXTRA_DIST): Remove javaexec.sh.in.
67819
67820         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67821         * modules/csharpcomp-script (Files): Update.
67822         (configure.ac): Add AC_CONFIG_FILES invocation.
67823         (EXTRA_DIST): Remove variable.
67824
67825         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67826         * modules/csharpexec (Files): Update.
67827         (configure.ac): Add AC_CONFIG_FILES invocation.
67828         (EXTRA_DIST): Remove csharpexec.sh.in.
67829
67830 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67831
67832         Sync from coreutils.
67833
67834         Add POSIX ACL support
67835         * lib/acl.h (copy_acl, set_acl): Add declarations.
67836         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67837         systems other than Linux.
67838         (chmod_or_fchmod): New function: use fchmod when possible,
67839         and chmod otherwise.
67840         (file_has_acl): Add a POSIX ACL implementation, with a
67841         Linux-specific subcase.
67842         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67843         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67844         acls are unsupported.
67845         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67846         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67847         are unsupported.
67848
67849 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67850
67851         Sync from coreutils.
67852         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67853
67854 2006-01-07  Bruno Haible  <bruno@clisp.org>
67855
67856         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67857         gl_EARLY.
67858
67859 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67860
67861         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67862         Problem reported for Mingw by Mark Junker.
67863
67864 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67865
67866         * README: Gnulib normally doesn't generate a tarball.
67867
67868 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67869
67870         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
67871         long int, not int, for nanosecond counts, so that people who are
67872         used to POSIX struct timespec won't be surprised.  Reported by Jim
67873         Meyering.
67874
67875 2005-12-28  Bruno Haible  <bruno@clisp.org>
67876
67877         * build-aux/config.rpath: Update from GNU gettext.
67878
67879 2005-12-16  Jim Meyering  <jim@meyering.net>
67880
67881         * modules/fprintftime: New module.
67882         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
67883
67884 2005-12-16  Jim Meyering  <jim@meyering.net>
67885
67886         * m4/fprintftime.m4: New file.
67887
67888 2005-12-16  Jim Meyering  <jim@meyering.net>
67889
67890         * lib/fprintftime.c, lib/fprintftime.h: New files.
67891
67892 2005-12-15  Simon Josefsson  <jas@extundo.com>
67893
67894         * modules/socklen (configure.ac): Fix M4 macro name, to align with
67895         new m4/socklen.m4.
67896
67897 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67898
67899         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
67900         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
67901
67902 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67903
67904         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
67905         * lib/argp-help.c (fill_in_uparams): Check if the constructed
67906         struct uparams is valid. Fall back to the default values if it is
67907         not.
67908
67909 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67910
67911         * modules/argp (Files): Add argp-pin.c
67912         (Depends-on): dirname
67913         (lib_SOURCES): Add argp-pin.c
67914
67915 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67916
67917         * m4/argp.m4:  Check if program_invocation_name and
67918         program_invocation_short_name are declared and define appropriate
67919         macros if they are not.
67920
67921 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67922
67923         * lib/argp-help.c (__argp_base_name): New function
67924         (__argp_short_program_name): Rewrite using __argp_base_name
67925         * lib/argp-namefrob.h: Define program_invocation_name and
67926         program_invocation_short_name if requested
67927         (__argp_base_name): Add prototype
67928         * lib/argp-parse.c (argp_def): Use gettext wrappers
67929         (argp_default_parser): Use __argp_base_name
67930         * lib/argp-pin.c: New file. Defines program_invocation_name and
67931         program_invocation_short_name on systems that lack them.
67932
67933 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67934
67935         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
67936         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67937         porting problem reported by Georg Schwarz in
67938         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67939
67940 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67941
67942         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
67943         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67944         porting problem reported by Georg Schwarz in
67945         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67946
67947 2005-12-05  Bruno Haible  <bruno@clisp.org>
67948
67949         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
67950         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
67951         Reported by Mark Junker <mjscod@gmx.de>.
67952
67953 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67954
67955         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
67956         Use implementation from Albert Chin, with some
67957         comments/corrections by Stepan Kasal and myself.
67958
67959 2005-12-02  Bruno Haible  <bruno@clisp.org>
67960
67961         * gnulib-tool (func_import): Accept GPLed build tool modules when
67962         --lgpl is given.
67963         * modules/csharpcomp-script: New file.
67964         * modules/csharpcomp: Depend on it.
67965         * modules/javacomp-script: New file.
67966         * modules/javacomp: Depend on it.
67967         Suggested by Simon Josefsson.
67968
67969 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
67970
67971         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
67972         statement, to work around an HP-UX 10.20 compiler bug reported by
67973         Peter O'Gorman.
67974
67975 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67976
67977         * modules/savedir (Depends-on): Add openat.
67978
67979 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67980
67981         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
67982         (uintmax_t) [defined uintmax_t]: Do not declare.
67983         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
67984         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
67985         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
67986         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
67987         sake of portability to weird hosts that C allows (though we don't
67988         know of any practical examples).
67989
67990         * lib/savedir.h (fdsavedir): New decl.
67991         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
67992         contains most of the former guts of savedir.
67993         (savedir): Use savedirstream.
67994         Include "openat.h".
67995
67996 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67997
67998         * modules/obstack (Files): Add m4/ulonglong.m4.
67999         Problem reported by Davide Angelocola.
68000
68001 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
68004         coreutils no longer futzes with rounding modes.
68005
68006 2005-11-14  Jim Meyering  <jim@meyering.net>
68007
68008         * lib/mkstemp-safer.c: Include <config.h>, required for possible
68009         replacement of mkstemp.
68010
68011 2005-11-10  Simon Josefsson  <jas@extundo.com>
68012
68013         * lib/readline.c: Remove EOL.
68014
68015 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68016
68017         * modules/gethrxtime (Depends-on): Add gettime.
68018
68019 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68020
68021         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
68022         or gettimeofday; no longer needed.
68023
68024 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68025
68026         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
68027         time business.
68028         (gethrxtime) [! (HAVE_NANOUPTIME
68029         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
68030         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
68031         our own approximation.
68032
68033 2005-11-08  Eric Blake  <ebb9@byu.net>
68034
68035         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68036
68037 2005-11-08  Eric Blake  <ebb9@byu.net>
68038
68039         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68040
68041 2005-11-04  Bruno Haible  <bruno@clisp.org>
68042
68043         * gnulib-tool: Implement --update mode.
68044
68045 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68046
68047         Fix porting problem reported by Theodoros V. Kalamatianos.
68048         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
68049         Don't assume that futimes failing means we must fail.
68050
68051 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68052
68053         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
68054         variables to suggest the intended function of the PATH_MAX check.
68055
68056 2005-10-30  Kean Johnston  <jkj@sco.com>
68057
68058         Trivial changes to support SCO systems.
68059         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
68060         as PATH_MAX.
68061         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
68062         where __ptr is null when no I/O is pending.
68063
68064 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68065
68066         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
68067         leave errno alone.  Problem reported by Dmitry V. Levin.
68068
68069 2005-10-28  Simon Josefsson  <jas@extundo.com>
68070
68071         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
68072         Test more.
68073
68074         * tests/test-gc-md2.c, tests/test-md2.c: New files.
68075
68076         * modules/md2, modules/md2-tests: New files.
68077
68078 2005-10-28  Simon Josefsson  <jas@extundo.com>
68079
68080         * m4/inet_ntop.m4: More tests.
68081
68082         * m4/gc-md2.m4, md2.m4: New file.
68083
68084 2005-10-28  Simon Josefsson  <jas@extundo.com>
68085
68086         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
68087         "restrict" keywords, as per POSIX.  Protect the function
68088         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
68089         Don't use K&R prototypes.  Check the sprintf return values.
68090         Re-define EAFNOSUPPORT if not present.  Indent.
68091
68092         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
68093         suggested by Bruno Haible <bruno@clisp.org>.
68094
68095         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
68096
68097         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
68098
68099         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
68100         libgcrypt).
68101
68102         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
68103
68104         * lib/md2.h, lib/md2.c: New files.
68105
68106 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
68107
68108         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
68109         errno alone.  Problem reported by Frederic Jolliton.
68110
68111 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68112
68113         * modules/verify (License): Change from GPL to LGPL.  This is a
68114         tiny module and there are apparently near-equivalents that are
68115         under the BSD license.
68116
68117 2005-10-24  Simon Josefsson  <jas@extundo.com>
68118
68119         * modules/sha1: Relicense to LGPL.
68120
68121 2005-10-24  Simon Josefsson  <jas@extundo.com>
68122
68123         * lib/md4.h: Shrink buffer size, now that we changed the type.
68124
68125 2005-10-23  Simon Josefsson  <jas@extundo.com>
68126
68127         * gnulib-tool (func_import): Fix --tests-base.
68128
68129 2005-10-22  Simon Josefsson  <jas@extundo.com>
68130
68131         * modules/arcfour (Depends-on): Need stdint.
68132
68133 2005-10-22  Simon Josefsson  <jas@extundo.com>
68134
68135         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
68136         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
68137
68138 2005-10-22  Simon Josefsson  <jas@extundo.com>
68139
68140         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
68141         suggested by Bruno Haible <bruno@clisp.org>.
68142
68143 2005-10-22  Simon Josefsson  <jas@extundo.com>
68144
68145         * lib/crc.h: Include stddef.h, for size_t.
68146
68147 2005-10-22  Simon Josefsson  <jas@extundo.com>
68148
68149         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
68150         arcfour_context struct (simplify test vector testing in GNU
68151         Shishi).
68152
68153 2005-10-21  Simon Josefsson  <jas@extundo.com>
68154
68155         * modules/des, modules/des-tests: New files.
68156
68157         * modules/gc-des, modules/gc-des-tests: New files.
68158
68159         * tests/test-des.c, tests/test-gc-des.c: New file.
68160
68161 2005-10-21  Simon Josefsson  <jas@extundo.com>
68162
68163         * modules/arctwo, modules/arctwo-tests: New files.
68164
68165         * tests/test-arctwo.c: New file.
68166
68167         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
68168
68169         * tests/test-gc-arctwo.c: New file.
68170
68171 2005-10-21  Simon Josefsson  <jas@extundo.com>
68172
68173         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
68174         Bruno Haible <bruno@clisp.org>.
68175
68176         * m4/gc-des.m4: New file.
68177
68178 2005-10-21  Simon Josefsson  <jas@extundo.com>
68179
68180         * m4/arctwo.m4: New file.
68181
68182         * m4/gc-arctwo.m4: New file.
68183
68184 2005-10-21  Simon Josefsson  <jas@extundo.com>
68185
68186         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
68187         block.
68188
68189 2005-10-21  Simon Josefsson  <jas@extundo.com>
68190
68191         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
68192         <bruno@clisp.org>.
68193
68194         * lib/hmac-sha1.c (hmac_sha1): Likewise.
68195
68196         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
68197         Bruno Haible <bruno@clisp.org>.
68198
68199         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
68200         <bruno@clisp.org>.
68201
68202 2005-10-21  Simon Josefsson  <jas@extundo.com>
68203
68204         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
68205
68206 2005-10-21  Simon Josefsson  <jas@extundo.com>
68207
68208         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
68209
68210 2005-10-21  Simon Josefsson  <jas@extundo.com>
68211
68212         * lib/des.h, lib/des.c: New files.
68213
68214         * lib/gc-gnulib.c: Support DES.c
68215
68216 2005-10-21  Simon Josefsson  <jas@extundo.com>
68217
68218         * lib/arctwo.h, lib/arctwo.c: New files.
68219
68220         * lib/gc-gnulib.c: Support ARCTWO.
68221
68222 2005-10-21  Simon Josefsson  <jas@extundo.com>
68223
68224         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
68225         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68226
68227 2005-10-21  Simon Josefsson  <jas@extundo.com>
68228
68229         * gnulib-tool (func_import, func_create_testdir): Define automake
68230         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
68231         Makefile.am snippet),
68232         suggested by Bruno Haible <bruno@clisp.org>.
68233
68234         * modules/gc (Makefile.am): Use it.
68235
68236 2005-10-21  Bruno Haible  <bruno@clisp.org>
68237
68238         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
68239         patch.
68240
68241 2005-10-19  Simon Josefsson  <jas@extundo.com>
68242
68243         * tests/test-gc-rijndael.c: New file.
68244
68245         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
68246
68247 2005-10-19  Simon Josefsson  <jas@extundo.com>
68248
68249         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
68250         interface too.
68251
68252 2005-10-19  Simon Josefsson  <jas@extundo.com>
68253
68254         * tests/test-gc-arcfour.c: New file.
68255
68256         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
68257
68258 2005-10-19  Simon Josefsson  <jas@extundo.com>
68259
68260         * modules/gc-md4, modules/gc-md4-tests: New file.
68261
68262         * tests/test-gc-md4.c: New file.
68263
68264 2005-10-19  Simon Josefsson  <jas@extundo.com>
68265
68266         * m4/gc-md4.m4: New file.
68267
68268 2005-10-19  Simon Josefsson  <jas@extundo.com>
68269
68270         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
68271         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
68272         <kasal@ucw.cz>.
68273
68274 2005-10-19  Simon Josefsson  <jas@extundo.com>
68275
68276         * m4/gc-arcfour.m4: New file.
68277
68278         * m4/gc-rijndael.m4: New file.
68279
68280 2005-10-19  Simon Josefsson  <jas@extundo.com>
68281
68282         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
68283
68284 2005-10-19  Simon Josefsson  <jas@extundo.com>
68285
68286         * lib/gc-gnulib.c: Support ARCFOUR.
68287
68288 2005-10-19  Simon Josefsson  <jas@extundo.com>
68289
68290         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
68291         support.
68292
68293         * lib/gc.h: Add ECB enum type.
68294
68295         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68296
68297 2005-10-18  Simon Josefsson  <jas@extundo.com>
68298
68299         * tests/test-md5.c: New file.
68300
68301         * modules/md5-tests: New file.
68302
68303 2005-10-18  Simon Josefsson  <jas@extundo.com>
68304
68305         * tests/test-md4.c: New file.
68306
68307         * modules/md4, modules/md4-tests: New files.
68308
68309 2005-10-18  Simon Josefsson  <jas@extundo.com>
68310
68311         * m4/md4.m4: New file.
68312
68313 2005-10-18  Simon Josefsson  <jas@extundo.com>
68314
68315         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68316
68317 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68318
68319         * gnulib-tool (func_create_testdir): Omit the second check whether
68320         BUILT_SOURCES in nonempty.
68321
68322 2005-10-17  Simon Josefsson  <jas@extundo.com>
68323
68324         * tests/test-rijndael.c: New file.
68325
68326 2005-10-17  Simon Josefsson  <jas@extundo.com>
68327
68328         * modules/sha1: Depend on stdint instead of md5.
68329
68330         * modules/md5: Depend on stdint, remove uint32_t.
68331
68332 2005-10-17  Simon Josefsson  <jas@extundo.com>
68333
68334         * modules/gc-sha1-tests: New file.
68335
68336         * tests/test-gc-sha1.c: New file.
68337
68338 2005-10-17  Simon Josefsson  <jas@extundo.com>
68339
68340         * m4/md5.m4: Remove call to uint32_t.m4.
68341
68342 2005-10-17  Simon Josefsson  <jas@extundo.com>
68343
68344         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68345
68346         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68347         md5.h.
68348
68349         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68350
68351         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68352
68353 2005-10-17  Simon Josefsson  <jas@extundo.com>
68354
68355         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68356
68357 2005-10-17  Simon Josefsson  <jas@extundo.com>
68358
68359         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68360
68361 2005-10-17  Simon Josefsson  <jas@extundo.com>
68362
68363         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68364
68365         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68366
68367 2005-10-17  Bruno Haible  <bruno@clisp.org>
68368
68369         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68370         that it can also be used in a test.
68371
68372 2005-10-16  Bruno Haible  <bruno@clisp.org>
68373
68374         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68375         TESTS_ENVIRONMENT, so that individual tests can augment it.
68376
68377         * gnulib-tool (func_create_testdir): Use an intermediate target for
68378         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68379         macros, like $(ALLOCA_H), which cannot be passed through the command
68380         line.
68381
68382 2005-10-15  Simon Josefsson  <jas@extundo.com>
68383
68384         * modules/rijndael-tests: New file.
68385
68386         * modules/rijndael: New file.
68387
68388 2005-10-15  Simon Josefsson  <jas@extundo.com>
68389
68390         * m4/rijndael.m4: New file.
68391
68392 2005-10-15  Simon Josefsson  <jas@extundo.com>
68393
68394         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68395
68396         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68397
68398 2005-10-14  Simon Josefsson  <jas@extundo.com>
68399
68400         * tests/test-arcfour.c: New file.
68401
68402         * modules/arcfour, modules/arcfour-tests: New files.
68403
68404 2005-10-14  Simon Josefsson  <jas@extundo.com>
68405
68406         * m4/arcfour.m4: New file.
68407
68408 2005-10-14  Simon Josefsson  <jas@extundo.com>
68409
68410         * lib/arcfour.h, lib/arcfour.c: New files.
68411
68412 2005-10-14  Roland McGrath  <roland@redhat.com>
68413
68414         Import from libc.  [BZ #1331]
68415         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68416         macro argument.
68417         Reported by Matej Vela <vela@debian.org>.
68418
68419 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68420
68421         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68422         include <wchar.h>; no longer needed.
68423
68424 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68425
68426         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68427
68428 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68429         and  Ulrich Drepper  <drepper@redhat.com>
68430
68431         Import from libc.
68432         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68433         instead of inline stream orientation test and two separate
68434         function calls.  Pay no attention to USE_IN_LIBIO.
68435
68436 2005-10-13  Simon Josefsson  <jas@extundo.com>
68437
68438         * modules/gc-hmac-md5-tests: New file.
68439
68440         * tests/test-gc-hmac-sha1.c: New file.
68441
68442         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68443
68444         * modules/gc-hmac-md5-tests: New file.
68445
68446         * tests/test-gc-md5.c: New file.
68447
68448         * modules/gc-md5-tests: New file.
68449
68450 2005-10-13  Simon Josefsson  <jas@extundo.com>
68451
68452         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68453         Move memory allocation outside of loop.
68454
68455 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68456
68457         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68458         intermediate directory is in a read-only file system.  Problem
68459         reported by Eric Blake.
68460
68461 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68462
68463         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68464
68465 2005-10-12  Simon Josefsson  <jas@extundo.com>
68466
68467         * tests/test-hmac-sha1.c: New file.
68468
68469         * modules/hmac-sha1-tests: New file.
68470
68471         * modules/hmac-sha1: New file.
68472
68473 2005-10-12  Simon Josefsson  <jas@extundo.com>
68474
68475         * modules/gc-sha1: New file.
68476
68477 2005-10-12  Simon Josefsson  <jas@extundo.com>
68478
68479         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68480
68481         * tests/test-gc-pbkdf2-sha1.c: New file.
68482
68483 2005-10-12  Simon Josefsson  <jas@extundo.com>
68484
68485         * modules/gc-md5, modules/gc-hmac-md5: New files.
68486
68487         * modules/gc (Files): Remove md5, memxor and hmac files.
68488
68489 2005-10-12  Simon Josefsson  <jas@extundo.com>
68490
68491         * m4/gc-pbkdf2-sha1.m4: New file.
68492
68493         * m4/gc-hmac-sha1.m4: New file.
68494
68495         * m4/gc-sha1: New file.
68496
68497         * m4/hmac-sha1.m4: New file.
68498
68499 2005-10-12  Simon Josefsson  <jas@extundo.com>
68500
68501         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68502
68503         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68504
68505 2005-10-12  Simon Josefsson  <jas@extundo.com>
68506
68507         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68508         suggested by Bruno Haible <bruno@clisp.org>.
68509
68510 2005-10-12  Simon Josefsson  <jas@extundo.com>
68511
68512         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68513
68514 2005-10-12  Simon Josefsson  <jas@extundo.com>
68515
68516         * lib/gc-pbkdf2-sha1.c: New file.
68517
68518         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68519
68520 2005-10-12  Simon Josefsson  <jas@extundo.com>
68521
68522         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68523
68524         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68525
68526 2005-10-12  Simon Josefsson  <jas@extundo.com>
68527
68528         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68529         GC_USE_HMAC_MD5, respectively.
68530
68531         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68532         (gc_md5): Fix typo.
68533
68534         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68535
68536         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68537
68538         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68539
68540 2005-10-12  Bruno Haible  <bruno@clisp.org>
68541
68542         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68543         Reported by Stepan Kasal <kasal@ucw.cz>.
68544
68545 2005-10-11  Simon Josefsson  <jas@extundo.com>
68546
68547         * tests/test-crc.c: New file.
68548
68549         * modules/crc, modules/crc-tests: New files.
68550
68551 2005-10-11  Simon Josefsson  <jas@extundo.com>
68552
68553         * m4/crc.m4: New file.
68554
68555 2005-10-11  Simon Josefsson  <jas@extundo.com>
68556
68557         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68558
68559         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68560
68561         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68562
68563 2005-10-11  Simon Josefsson  <jas@extundo.com>
68564
68565         * lib/crc.h, lib/crc.c: New files.
68566
68567         * lib/gc.h (gc_hash_buffer): Add doc.
68568
68569 2005-10-11  Bruno Haible  <bruno@clisp.org>
68570
68571         * modules/c-strcasestr: New file.
68572         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68573
68574 2005-10-11  Bruno Haible  <bruno@clisp.org>
68575
68576         * modules/c-strcase: New file.
68577         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68578
68579 2005-10-11  Bruno Haible  <bruno@clisp.org>
68580
68581         * lib/strcasecmp.c: Include limits.h.
68582         (strcasecmp): Avoid integer overflow on exotic platforms.
68583         * lib/strncasecmp.c: Include limits.h.
68584         (strncasecmp): Avoid integer overflow on exotic platforms.
68585         Reported by Paul Eggert.
68586
68587 2005-10-11  Bruno Haible  <bruno@clisp.org>
68588
68589         * lib/c-strcasestr.h: New file, from GNU gettext.
68590         * lib/c-strcasestr.c: New file, from GNU gettext.
68591
68592 2005-10-11  Bruno Haible  <bruno@clisp.org>
68593
68594         * lib/c-strcase.h: New file, from GNU gettext.
68595         * lib/c-strcasecmp.c: New file, from GNU gettext.
68596         * lib/c-strncasecmp.c: New file, from GNU gettext.
68597
68598 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68599
68600         * modules/mempcpy (License): GPL -> LGPL.
68601         * modules/strchrnul (License): Likewise.
68602         * modules/sysexits (License): Likewise.
68603
68604 2005-10-08  Simon Josefsson  <jas@extundo.com>
68605
68606         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68607
68608 2005-10-07  Simon Josefsson  <jas@extundo.com>
68609
68610         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68611
68612 2005-10-06  Simon Josefsson  <jas@extundo.com>
68613
68614         * tests/test-hmac-md5.c: New file.
68615
68616         * modules/hmac-md5-tests: New file.
68617
68618         * modules/hmac-md5: New file.
68619
68620 2005-10-06  Simon Josefsson  <jas@extundo.com>
68621
68622         * m4/hmac-md5.m4: New file.
68623
68624         * m4/memxor.m4: Require gl_C_RESTRICT.
68625
68626 2005-10-06  Simon Josefsson  <jas@extundo.com>
68627
68628         * lib/memxor.c (memxor): Avoid casts and warnings.
68629
68630 2005-10-06  Simon Josefsson  <jas@extundo.com>
68631
68632         * lib/hmac-md5.c: New file.
68633
68634         * lib/hmac.h: New file.
68635
68636 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68637
68638         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68639         promotes to int, not unsigned int, to catch the AIX 5.3
68640         compiler bug.
68641
68642 2005-10-05  Simon Josefsson  <jas@extundo.com>
68643
68644         * modules/memxor: New file.
68645
68646         * modules/iconv (Files): Move config.rpath to havelib, it is used
68647         there.
68648
68649         * modules/havelib (Files): Add config.rpath.
68650
68651 2005-10-05  Simon Josefsson  <jas@extundo.com>
68652
68653         * m4/memxor.m4: New file.
68654
68655 2005-10-05  Simon Josefsson  <jas@extundo.com>
68656
68657         * lib/memxor.c (memxor): Fix compiler error.
68658
68659         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68660         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68661
68662         * lib/memxor.h, lib/memxor.c: New files.
68663
68664         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68665         we assume all systems have it, suggested by Jim Meyering
68666         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68667         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68668         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68669         same reasons.
68670
68671 2005-10-05  Simon Josefsson  <jas@extundo.com>
68672
68673         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68674
68675 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68676
68677         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68678         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68679         needed, since the source code now assumes these .h files.
68680
68681 2005-10-05  Derek Price  <derek@ximbiot.com>
68682
68683         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68684
68685 2005-10-05  Bruno Haible  <bruno@clisp.org>
68686
68687         * modules/stdint (License): Change to LGPL.
68688
68689 2005-10-04  Simon Josefsson  <jas@extundo.com>
68690
68691         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68692         D. Baushke" <mdb@gnu.org>.
68693
68694 2005-10-04  Bruno Haible  <bruno@clisp.org>
68695
68696         * lib/verify.h (verify_true): Provide alternative definition for C++.
68697
68698 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68699
68700         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68701         (SSIZE_MAX): New macro, if not already defined.
68702         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68703         than 2 GiB.
68704
68705 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68706
68707         Sync from coreutils.
68708         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68709         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68710         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68711         ULLONG_MAX doesn't work with 2.7.2.1.
68712
68713 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68714
68715         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68716         From Ben Pfaff.
68717
68718         * modules/exclude (Depends-on): Depend on verify.
68719         * modules/strtoimax (Depends-on): Likewise.
68720         * modules/utimecmp (Depends-on): Likewise.
68721
68722 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68723
68724         * lib/exclude.c: Include verify.h.
68725         (verify): Remove.  All callers changed to use verify.h's version.
68726         * lib/strtoimax.c: Likewise.
68727         * lib/utimecmp.c: Likewis.e
68728
68729         Sync from coreutils.
68730         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68731         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68732         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68733         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68734         bother returning ENOSYS if settimeofday or stime fails; just let
68735         them return whatever errno they want to return.
68736         * lib/utimens.c: Include unistd.h, for dup2.
68737         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68738         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68739
68740 2005-10-02  Jim Meyering  <jim@meyering.net>
68741
68742         Sync from coreutils.
68743         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68744         from glibc-2.2.5 that fails for read-only files.
68745
68746 2005-10-02  Jim Meyering  <jim@meyering.net>
68747
68748         Sync from coreutils.
68749         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68750         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68751         `#if HAVE_CONFIG_H'.
68752         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68753         Remove AT_FDCWD test.
68754         Do not consume the fd unless successful.
68755         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68756         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68757         block, so that we don't even try to compile it if settimeofday is
68758         available.  This works around a compilation failure on OSF1 V5.1,
68759         due to stime requiring a `long int*' while tv_sec is `int'.
68760
68761 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68762
68763         Sync from coreutils.
68764         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68765         against `yes', rather than just testing for nonempty.
68766
68767 2005-10-01  Simon Josefsson  <jas@extundo.com>
68768
68769         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68770         and Darwin.
68771
68772         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68773         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68774         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68775         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68776         Check if struct addrinfo is declared.
68777
68778 2005-10-01  Simon Josefsson  <jas@extundo.com>
68779
68780         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68781         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68782         AI_* and EAI_* definitions.  Protect function declarations.
68783
68784 2005-10-01  Jim Meyering  <jim@meyering.net>
68785
68786         Sync from coreutils.
68787
68788         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68789         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68790         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68791         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68792         in the inet and nsl libraries.  Required on Solaris 5.7.
68793
68794 2005-10-01  Jim Meyering  <jim@meyering.net>
68795
68796         Sync from coreutils.
68797         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68798         in the inet and nsl libraries.  Required on Solaris 5.7.
68799
68800 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68801
68802         * lib/getdelim.c (getdelim): Remove unused variables.
68803
68804 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68807         so that the code works even with ancient cpp.  Portability problem
68808         with GCC 2.7.2.1 reported by Thomas M.Ott.
68809
68810 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68811
68812         * modules/regex (Depends-on): Add strcase.
68813
68814         * modules/gethostname (Licence): Change from GPL to LGPL, since
68815         gethostname.c is a trivial implementation of a standard library
68816         function.
68817         * modules/poll (License): Change from GPL to LGPL, since it's
68818         derived from LGPL code.
68819
68820 2005-09-27  Jim Meyering  <jim@meyering.net>
68821
68822         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68823         HAVE_CONFIG_H.
68824
68825         * lib/intprops.h (signed_type_or_expr__): Define.
68826         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68827         for unsigned types.
68828
68829 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68830
68831         * lib/verify.h (verify_expr): Remove, replacing with:
68832         (verify_true): New macro that returns true instead of void.
68833         (verify_type__): Remove.
68834         (verify): Use verify_true rather than verify_type__.
68835
68836 2005-09-26  Bruno Haible  <bruno@clisp.org>
68837
68838         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68839         is necessary.
68840         (lib_SOURCES): Remove mbchar.c.
68841         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68842         (Files): Add m4/mbrtowc.m4.
68843         * modules/mbiter: Likewise.
68844         * modules/mbuiter: Likewise.
68845
68846 2005-09-26  Bruno Haible  <bruno@clisp.org>
68847
68848         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68849         compile mbchar.c if they are not both present.
68850         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68851         * m4/mbiter.m4 (gl_MBITER): Likewise.
68852         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68853         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68854         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68855
68856 2005-09-25  Jim Meyering  <jim@meyering.net>
68857
68858         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68859         also uses socklen_t.
68860
68861 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68862
68863         * lib/utimens.c (ENOSYS): Define if not already defined.
68864         (futimens): Support having a null PATH if the file descriptor
68865         is nonnegative.
68866
68867         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68868         Remove.
68869         (__attribute): Define to empty unless GCC 3.1 or later.
68870         This works around a core dump on OpenBSD 3.4, which has GCC
68871         2.95.3, which dumps core when given __attribute__(()).  It also
68872         simplifies other tests, since we really don't want to bother with
68873         worrying about which ancient version of GCC supported what.
68874         Original problem reported by Yoann Vandoorselaere, with part of
68875         the fix suggested by Derek Price.
68876
68877 2005-09-24  Jim Meyering  <jim@meyering.net>
68878
68879         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
68880         so we can once again use a positive bitfield width of 1 -- now we
68881         don't have to explain why we were using a bitfield width of 2.
68882
68883 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68884
68885         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
68886         and similarly for the other external symbols.  Problem reported
68887         by James Gallager.
68888
68889         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
68890         bug reported by Jim Meyering.
68891
68892         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
68893         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
68894         not needed, since socklen is a prerequisite module.
68895
68896 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68897
68898         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
68899         Problem reported by Eric Blake.
68900         (getaddrinfo): Initialize se so that it's not garbage.
68901         Redo internal storage allocation so that it doesn't make unportable
68902         assumptions about alignment.
68903         Fix a memory leak.
68904
68905         * lib/utimens.c (futimens): Use futimesat if available.
68906         Prefer it to futimes since it doesn't have the futimes bug.
68907
68908         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
68909         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
68910         Instead, declare a function that returns a pointer to an array,
68911         and use verify_type__ to declare the size of the array.
68912         Problem and germ of a solution reported by Bruno Haible.
68913         (verify_type__): Use 2, not 1, for bitfield size, to avoid
68914         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
68915
68916 2005-09-23  Jim Meyering  <jim@meyering.net>
68917
68918         Sync from coreutils.
68919         Correct build failure (socklen_t not defined) on at least
68920         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
68921         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
68922
68923 2005-09-23  Jim Meyering  <jim@meyering.net>
68924
68925         * modules/getaddrinfo (Depends-on): Add socklen.
68926
68927 2005-09-23  Bruno Haible  <bruno@clisp.org>
68928
68929         * tests/test-verify.c: New file.
68930
68931 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68932
68933         Sync from coreutils.
68934
68935         * modules/argmatch (Depends-on): Add verify.
68936         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
68937         unistd-safer.
68938         * modules/save-cwd (Depends-on): Likewise.
68939
68940         * modules/openat (Files): Add lib/openat-die.c.
68941         (Depends-on): Remove error, exitfail.
68942         Add dirname.
68943
68944         * modules/verify: New file.
68945         * MODULES.html.sh (Diagnostics <assert.h>): New section,
68946         with "verify" module.
68947
68948 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68949
68950         Sync from coreutils.
68951
68952         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
68953         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
68954         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
68955         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
68956         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
68957         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
68958         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
68959         Don't bother checking for string.h, stdlib.h, unistd.h.
68960         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
68961         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
68962         module's job.
68963         * m4/jm-macros.m4 (gl_MACROS): Likewise.
68964         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
68965
68966         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
68967         (gl_GETDATE): Use it.
68968
68969         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
68970
68971 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68972
68973         Sync from coreutils.
68974
68975         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
68976         stat-time.h.
68977         * lib/argmatch.h: Include verify.h
68978         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
68979         (ARGMATCH_ASSERT): Remove; unused.
68980         * lib/canonicalize.c: Assume STDC_HEADERS.
68981         * lib/exclude.c: Include "strcase.h".
68982         * lib/regex_internal.h [!defined _LIBC]: Likewise.
68983         * lib/getusershell.c: Include stdio--.h rather than stdio.h
68984         and stdio-safer.h.
68985         (getusershell): Call fopen, not fopen_safer.
68986         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
68987         Do not include unistd-safer.h.
68988         (save_cwd): Don't call fd_safer; no longer needed
68989         now that we include fcntl--.h.
68990
68991         * lib/getdate.y (relative_time): New type.
68992         (RELATIVE_TIME_0): New constant.
68993         (parser_control): Use relative_time instead of doing it ourselves.
68994         (%union): Add new relative_time rel member.
68995         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
68996         Now typeless.
68997         (relunit, relunit_snumber): Now of type rel.
68998         (zone, rel, relunit, get_date): Adjust to above changes.
68999
69000         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
69001         Do not include unistd-safer.h.
69002         (getloadavg): Don't call fd_safer; no longer needed
69003         now that we include fcntl--.h.
69004
69005         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
69006         (make_dir_parents): Treat ENOSYS like EEXIST.
69007
69008         Improve quality of diagnostics on restore_cwd failure.
69009         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
69010         (make_dir_parents): Last arg is now int * (for errno), not bool *.
69011         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
69012         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
69013         each time through the loop.  Do not diagnose restore_cwd failure;
69014         that is the caller's job (and perhaps the caller does not care).
69015
69016         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
69017         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
69018         If the file already exists but is not a directory, don't bother
69019         to try to make its parents.
69020         Close potential file descriptor leak if we can't chdir("/") (!).
69021         Don't always return true if chdir($PWD) fails; return true only
69022         if the requested action was done successfully (except for the
69023         chdir($PWD)).
69024         Don't log final directory unless we actually made it.
69025         Refactor to avoid duplicate code to fix up permissions.
69026         Don't attempt to fix up parent permissions if chdir($PWD) fails.
69027
69028         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
69029         to make it a bit faster and (I hope) clearer.
69030         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
69031         Fix bug in formats like %2N.
69032
69033         * lib/verify.h: New file.
69034
69035 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69036
69037         Sync from coreutils.
69038         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
69039
69040 2005-09-22  Jim Meyering  <jim@meyering.net>
69041
69042         Sync from coreutils.
69043
69044         * m4/lstat.m4 (gl_FUNC_LSTAT):
69045         Use AC_LIBSOURCES to require lstat.c and lstat.h.
69046         Remove obsolete comment.
69047         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
69048         * m4/xstrtod.m4: Likewise.
69049
69050         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
69051
69052 2005-09-22  Jim Meyering  <jim@meyering.net>
69053
69054         Sync from coreutils.
69055
69056         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
69057
69058         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
69059         the .tm_year member, since otherwise gcc-4.0 would now warn about
69060         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
69061
69062         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
69063         order to avoid an unsuppressible warning from gcc on 64-bit systems.
69064
69065         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
69066         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
69067         when run in a time zone for which daylight savings time is in effect
69068         for the starting date.
69069
69070         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
69071         stop us from restricting permissions of just-created absolute-named
69072         directories.
69073         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
69074         to restore initial working directory.
69075         * lib/mkdir-p.c (make_dir_parents): New parameter:
69076         different_working_dir, to tell caller if/when we change the working
69077         directory and are unable to return to the initial one.
69078         * lib/mkdir-p.h (make_dir_parents): Update prototype.
69079         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
69080         `return false'.  This fixes a bug introduced on 2004-07-30.
69081
69082         * lib/openat.c (fdopendir): Be sure to close the supplied
69083         file descriptor before returning.  This makes our replacement
69084         implementation a little closer to Solaris's, where fdopendir
69085         ties the file descriptor to the returned DIR* pointer.
69086         * lib/openat.c (unlinkat): New function.
69087         * lib/openat.h (unlinkat): Add prototype.
69088         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
69089         (openat_restore_fail): Rename from openat_restore_die.
69090         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
69091
69092         Provide an alternative to exiting immediately upon save_cwd or
69093         restore_cwd failure.  Now, an application can arrange e.g.,
69094         to perform a longjump in that case.
69095         * lib/openat.c: Include dirname.h.
69096         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
69097         (rpl_openat, fdopendir, fstatat): Call openat_save_die
69098         and openat_restore_die rather than calling error directly.
69099         Don't include "error.h" or "exitfail.h"; they're no longer needed.
69100
69101         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
69102         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
69103         define.
69104
69105         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
69106         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
69107                             int utc, int nanoseconds);
69108         Background:
69109         date should not have to allocate a megabyte of virtual memory to
69110         handle a format argument like +%1048575T.  When implemented with
69111         strftime, it must allocate such a buffer, use strftime to fill it
69112         in, print it, then free it.
69113         With fprintftime, it simply prints everything and exits.
69114         With no need for memory allocation, that's one fewer way to fail.
69115         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69116         optional field width, not before, so we accept %9:z, not %:9z.
69117         (my_strftime): Be sure to use L_('x') for literals.
69118
69119         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
69120         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
69121         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
69122         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
69123         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
69124         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
69125         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
69126         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
69127         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
69128         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
69129         * lib/xgethostname.c, lib/xreadlink.c:
69130         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
69131
69132         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
69133         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
69134         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
69135         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69136         and don't include <sys/file.h>).
69137
69138 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
69139
69140         Sync from coreutils.
69141
69142         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
69143         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
69144         [!LDAV_DONE]: Avoid unused variable warning.
69145
69146 2005-09-21  Bruno Haible  <bruno@clisp.org>
69147
69148         * lib/unicodeio.h (unicode_to_mb): New declaration.
69149
69150 2005-09-20  Derek Price  <derek@ximbiot.com>
69151
69152         * lib/getaddrinfo.c: Don't include <netdb.h> included from
69153         getaddrinfo.h.
69154
69155 2005-09-20  Bruno Haible  <bruno@clisp.org>
69156
69157         * gnulib-tool: Remove trailing slashes from the values specified for
69158         --source-base, --m4-base, --tests-base, --aux-dir.
69159         Suggested by Simon Josefsson <jas@extundo.com>.
69160
69161 2005-09-20  Bruno Haible  <bruno@clisp.org>
69162
69163         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
69164         func_modules_to_filelist, func_import, func_create_testdir): Make all
69165         sorting results locale-independent, so that gnulib-cache.m4 doesn't
69166         change when gnulib-tool is invoked in a different locale.
69167
69168 2005-09-19  Simon Josefsson  <jas@extundo.com>
69169
69170         * m4/socklen.m4: Fix typo.
69171
69172 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69173
69174         Use a consistent style for including <config.h>.
69175         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
69176         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
69177         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
69178         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
69179         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
69180         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
69181         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
69182         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
69183         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
69184         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
69185         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
69186         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
69187         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
69188         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
69189         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
69190         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
69191         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
69192         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
69193         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
69194         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
69195         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
69196         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
69197         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
69198         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
69199         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
69200         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
69201         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
69202         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
69203         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
69204         lib/xstrtoumax.c, lib/yesno.c:
69205         Standardize inclusion of config.h.
69206         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
69207         lib/inttostr.h:  Removed inclusion of config.h from header files.
69208         * lib/inttostr.c:  Adjusted in-tree users.
69209         * lib/timespec.h: Remove superfluous warning to include config.h.
69210         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
69211         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
69212         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
69213         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
69214         config.h with HAVE_CONFIG_H.
69215
69216 2005-09-19  Jim Meyering  <jim@meyering.net>
69217
69218         * modules/pathmax (License): Change to LGPL.
69219
69220 2005-09-19  Derek Price  <derek@ximbiot.com>
69221
69222         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
69223
69224 2005-09-19  Bruno Haible  <bruno@clisp.org>
69225
69226         * gnulib-tool (import): Provide default for --tests-base.
69227
69228 2005-09-19  Bruno Haible  <bruno@clisp.org>
69229
69230         * doc/quote.texi: New file, extracted from gnulib.texi.
69231         * doc/ctime.texi: New file, extracted from gnulib.texi.
69232         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
69233         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
69234         * doc/gnulib.texi: Include them.
69235
69236 2005-09-18  Bruno Haible  <bruno@clisp.org>
69237
69238         Portability fix.
69239         * gnulib-tool (func_readlink): New function.
69240         (func_ln_if_changed): Use it.
69241
69242 2005-09-18  Bruno Haible  <bruno@clisp.org>
69243
69244         * gnulib-tool: Support --with-tests also with --import.
69245         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
69246         (func_import): Use variables $testsbase and $inctests. Emit a
69247         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
69248         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
69249         SUBDIRS += $testsdir.
69250         (func_create_testdir): Update.
69251
69252 2005-09-18  Bruno Haible  <bruno@clisp.org>
69253
69254         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
69255         instead of $dry_run.
69256         (func_cp_if_changed, func_mv_if_changed): Remove functions.
69257         (func_ln_if_changed): Don't handle dry-run here.
69258         (func_import): In dry-run mode, detect more precisely which actions
69259         would be performed, and don't use "...ing" verbs.
69260
69261 2005-09-18  Bruno Haible  <bruno@clisp.org>
69262
69263         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
69264         (func_import): Use join on two temporary files instead of three nested
69265         loops, in order to determine which files are new or old.
69266
69267 2005-09-18  Bruno Haible  <bruno@clisp.org>
69268
69269         * gnulib-tool (func_import): Comment out code that spits out the
69270         new files with --dry-run.
69271
69272 2005-09-18  Bruno Haible  <bruno@clisp.org>
69273
69274         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
69275
69276 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69277
69278         * lib/stat-time.h: New file.
69279         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
69280         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
69281         in a different way.
69282         (timespec_cmp): New function.
69283         * lib/utimecmp.c: Include stat-time.h.
69284         (SYSCALL_RESOLUTION): Depend on whether various struct stat
69285         members exist, not on the obsolescent ST_MTIM_NSEC.
69286         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
69287
69288 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69289
69290         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
69291
69292 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69293
69294         * MODULES.html.sh (File system functions): Add stat-time.
69295         * modules/stat-time: New file.
69296         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69297         is now done in a different way, by the stat-time module.
69298         * modules/utimecmp (Depends-on): Add stat-time.
69299
69300 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69301
69302         * m4/st_mtim.m4: Remove.  Superseded by...
69303         * m4/stat-time.m4: New file.
69304         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69305         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69306
69307 2005-09-15  Derek Price  <derek@ximbiot.com>
69308
69309         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69310
69311 2005-09-15  Derek Price  <derek@ximbiot.com>
69312
69313         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69314         * lib/regex_internal.c: Ditto, using this...
69315         (__GNUC_PREREQ): ...new macro.
69316         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69317         using...
69318         (__GNUC_PREREQ): ...this new macro.
69319
69320         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69321
69322 2005-09-15  Derek Price  <derek@ximbiot.com>
69323             Paul Eggert  <eggert@cs.ucla.edu>
69324
69325         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69326         changes, consolidating in...
69327         * lib/regex_internal.h: ...this file.
69328
69329 2005-09-13  Jim Meyering  <jim@meyering.net>
69330
69331         * lib/canon-host.c: Filter through gnu indent and reword comments
69332         slightly.
69333         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69334
69335 2005-09-13  Derek Price  <derek@ximbiot.com>
69336
69337         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69338         failure.
69339         Reported by Jim Meyering  <jim@meyering.net>.
69340
69341 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69342
69343         * lib/base64.c: Typo.
69344         (base64_encode): Put b64str in initialized data section.
69345
69346 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69347
69348         Merge glibc and coreutils changes into gnulib, plus a few
69349         extra fixes.
69350         * lib/md5.c: Use #error rather than a string.
69351         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69352         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69353         (__attribute__): Define to empty for non recent-GCC.
69354         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69355         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69356         Renamed from their non-__ counterparts, with new macros replacing
69357         them if not _LIBC.  Add __THROW attribute.
69358         (rol): Remove.
69359         (struct md5_ctx): Align buffer if using GCC.
69360         * lib/sha1.h (struct sha1_ctx): Likewise.
69361         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69362         The old name was backwards.
69363         (NOTSWAP): Remove; not used.
69364         (rol): New macro, moved here from md5.h.
69365         (sha1_process_block): Remove a FIXME that doesn't make sense.
69366
69367 2005-09-12  Derek Price  <derek@ximbiot.com>
69368
69369         Return usable errors from canon-host.
69370         * lib/canon-host.h: New file.
69371         * lib/canon-host.c (canon_host): Wrap...
69372         (canon_host_r): ...this new function, which now relies exclusively on
69373         getaddrinfo.
69374         (ch_strerror): New function.
69375         (last_cherror): New global.
69376         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69377         interface.
69378         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69379         void *.
69380         (freeaddrinfo): Free ai->ai_canonname when set.
69381
69382 2005-09-12  Derek Price  <derek@ximbiot.com>
69383
69384         Make canon-host require getaddrinfo.
69385         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69386         AC_LIBSOURCE canon-host.h.  Call...
69387         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69388         gl_GETADDRINFO.
69389         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69390
69391 2005-09-12  Derek Price  <derek@ximbiot.com>
69392
69393         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69394         LGPL.
69395         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69396
69397 2005-09-12  Derek Price  <derek@ximbiot.com>
69398
69399         * lib/gai_strerror.c: Include config.h when available.  Include
69400         getaddrinfo.h before other headers to test interface.
69401         Reported by Larry Jones <lawrence.jones@ugs.com>.
69402
69403 2005-09-12  Derek Price  <derek@ximbiot.com>
69404             Paul Eggert  <eggert@cs.ucla.edu>
69405
69406         * modules/glob (Files): Add glob-libc.h.
69407
69408 2005-09-12  Derek Price  <derek@ximbiot.com>
69409             Paul Eggert  <eggert@cs.ucla.edu>
69410
69411         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69412         glob_.h, glob-libc.h.
69413         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69414
69415 2005-09-12  Derek Price  <derek@ximbiot.com>
69416             Paul Eggert  <eggert@cs.ucla.edu>
69417
69418         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69419         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69420         protecting things that should be done only in gnulib contexts.
69421         * lib/glob_.h: New file, containing only the glob things needed for
69422         gnulib.
69423         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69424         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69425         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69426         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69427         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69428         and to respect the namespace rules better.
69429
69430 2005-09-08  Simon Josefsson  <jas@extundo.com>
69431
69432         * modules/socklen: New file.
69433
69434 2005-09-08  Simon Josefsson  <jas@extundo.com>
69435
69436         * m4/socklen.m4: New file.
69437
69438 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69439
69440         * modules/utimens (Files): Add m4/utimbuf.m4, since
69441         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69442         Reported by Sergey Poznyakoff.
69443
69444 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69445
69446         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69447         definitions, since that's the preferred style in glibc.
69448         Fix a minor spacing issue, and update copyright notice to match
69449         glibc's.
69450
69451 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69452
69453         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69454
69455 2005-09-06  Simon Josefsson  <jas@extundo.com>
69456
69457         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69458         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69459
69460 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69461
69462         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69463         warning.
69464
69465 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69466
69467         * config/srclist.txt: Add glibc bug 1302.
69468
69469 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69470
69471         Change bitset word type from unsigned int to unsigned long int,
69472         as this has better performance on typical 64-bit hosts.
69473         Port bitset code to hosts with unusual word sizes.
69474         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69475         (build_collating_symbol):
69476         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69477         argument is a bitset.  This is merely a style issue, but it makes
69478         it clearer that an entire array is expected.
69479         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69480         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69481         Port to the case where bitset_word is not the same as unsigned int.
69482         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69483         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69484         Likewise.
69485         * lib/regexec.c (check_dst_limits_calc_pos_1,
69486         check_subexp_matching_top):
69487         (build_trtable, group_nodes_into_DFAstates):
69488         Likewise.
69489         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69490         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69491         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69492         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69493         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69494         * lib/regcomp.c (optimize_subexps, lower_subexp):
69495         Work even if bitset_word has holes in its bitwise representation.
69496         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69497         * lib/regexec.c (check_dst_limits_calc_pos_1,
69498         check_subexp_matching_top):
69499         Likewise.
69500         * lib/regex_internal.c (re_string_reconstruct):
69501         Don't assume UCHAR_MAX == 255.
69502         * lib/regex_internal.h (bitset_set_all): Likewise.
69503         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69504         All uses changed.
69505         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69506         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69507         All uses changed.
69508         (BITSET_WORD_MAX): New macro.
69509         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69510         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69511         (bitset_empty, bitset_copy):
69512         Prefer sizeof (bitset) to multiplying it out ourselves.
69513         (bitset_not_merge): Remove; unused.
69514         (bitset_contain): Return bool, not unsigned int with one bit on.
69515         All callers changed.
69516         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69517         alignment than re_node_set; do this by defining a new internal
69518         type struct dests_alloc and using it to allocate memory.
69519
69520 2005-09-05  Bruno Haible  <bruno@clisp.org>
69521
69522         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69523         links.
69524
69525 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69526
69527         * modules/size_max (Makefile.am): Add size_max.h
69528
69529 2005-09-04  Derek Price  <derek@ximbiot.com>
69530
69531         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69532
69533 2005-09-03  Simon Josefsson  <jas@extundo.com>
69534
69535         * gnulib-tool: Fix typo.
69536
69537 2005-09-03  Simon Josefsson  <jas@extundo.com>
69538
69539         * config/srclist.txt: Add glibc bug 1293.
69540
69541 2005-09-03  Derek Price  <derek@ximbiot.com>
69542
69543         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69544         From Larry Jones <lawrence.jones@ugs.com>.
69545
69546 2005-09-02  Simon Josefsson  <jas@extundo.com>
69547
69548         * modules/socklen: New file.
69549
69550 2005-09-02  Simon Josefsson  <jas@extundo.com>
69551
69552         * modules/havelib: New module.
69553
69554         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69555         Use havelib.
69556
69557 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69558
69559         Check for arithmetic overflow when calculating sizes, to prevent
69560         some buffer-overflow issues.  These patches are conservative, in the
69561         sense that when I couldn't determine whether an overflow was possible,
69562         I inserted a run-time check.
69563         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69564         macros.
69565         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69566         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69567         (re_xnrealloc, re_x2nrealloc): New inline functions.
69568         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69569         parse_bracket_exp):
69570         (build_equiv_class, build_charclass): Check for arithmetic overflow
69571         in size expression calculations.
69572         * lib/regex_internal.c (re_string_realloc_buffers):
69573         (build_wcs_upper_buffer, re_node_set_add_intersect):
69574         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69575         (re_dfa_add_node, register_state): Likewise.
69576         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69577         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69578         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69579         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69580
69581 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69582
69583         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69584         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69585
69586 2005-09-02  Bruno Haible  <bruno@clisp.org>
69587
69588         Support for lib vs. lib64 distinction on biarch platforms.
69589         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69590         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69591         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69592
69593 2005-09-02  Bruno Haible  <bruno@clisp.org>
69594
69595         * gnulib-tool (import): In the other first-use case, provide defaults
69596         as well.
69597
69598 2005-09-02  Bruno Haible  <bruno@clisp.org>
69599
69600         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69601         patches not yet found in the latest gettext release.
69602
69603 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69604
69605         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69606         to avoid a collision with bits/local_lim.h in glibc.
69607         All uses changed.  Problem reported by Dmitry V. Levin in
69608         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69609
69610         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69611         bugs in int versus size_t comparisons.
69612         (re_string_context_at): Fix bug where the code assumed that
69613         Idx is signed.
69614
69615         Use bool where appropriate.
69616         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69617         All callers changed.
69618         (calc_eclosure_iter): Likewise, for ROOT arg.
69619         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69620         (build_charclass_op): Likewise, for NON_MATCH arg.
69621         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69622         (re_string_construct_common): Likewise, for ICASE arg.
69623         * lib/regexec.c (re_search_2_stub, re_search_stub):
69624         Likewise, for RET_LEN arg.
69625         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69626         (set_regs): Likewise, for FL_BACKTRACK arg.
69627         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69628         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69629         (calc_eclosure_iter, parse_bracket_exp):
69630         Use bool for internal variables that are booleans.
69631         * lib/regexec.c (re_search_internal, check_matching,
69632         proceed_next_node):
69633         (set_regs, build_sifted_states, sift_states_bkref):
69634         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69635         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69636         (find_collation_sequence_value):
69637         Likewise.
69638         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69639         (re_node_set_compare):
69640         Return bool, not int. All callers changed.
69641         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69642         (build_trtable, check_node_accept): Likewise.
69643         * lib/regex_internal.h: Include stdbool.h.
69644
69645         Fix bugs uncovered when converting to bool.
69646         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69647         failure instead of charging ahead blindly.
69648         * lib/regex_internal.c (register_state): Likewise.
69649         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69650         for freeing internal storage.
69651         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69652         bitset pieces used as boolean, to avoid undefined behavior
69653         on hosts that do int overflow checking.
69654
69655 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69656
69657         * config/srclist.txt: Add glibc bugs 1285-1287.
69658
69659 2005-09-01  Jim Meyering  <jim@meyering.net>
69660
69661         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69662         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69663         Require gl_STAT_MACROS, too.
69664
69665 2005-09-01  Bruno Haible  <bruno@clisp.org>
69666
69667         * gnulib-tool (import): In the first-use case, provide defaults.
69668
69669 2005-09-01  Bruno Haible  <bruno@clisp.org>
69670
69671         * gnulib-tool (func_import): Remove the .tmp files.
69672
69673 2005-09-01  Bruno Haible  <bruno@clisp.org>
69674
69675         * gnulib-tool (func_import): Fix handling of symbolic links.
69676
69677 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69678
69679         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69680         old glibc regex code mishandles strings longer than 2**31 bytes.
69681         This patch fixes this when the regex code is used in gnulib
69682         (i.e., outside glibc).
69683
69684         This patch should not affect the use of the regex code inside
69685         glibc.  No doubt this problem also needs to be handled for glibc
69686         as well, but the result will be an incompatible change to the
69687         glibc ABI, and the old ABI will have to be supported too.  That
69688         can be the the subject for another patch.
69689
69690         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69691         governing whether the rest of this patch is active.  By default,
69692         the macro is disabled and the patch has no effect.
69693         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69694         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69695         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69696         (re_match_2, re_set_registers): Use the new types.
69697         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69698         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69699         New macros.
69700         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69701         (re_string_context_at, bin_tree_t, re_dfastate_t):
69702         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69703         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69704         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69705         (re_string_char_size_at, re_string_wchar_at):
69706         (re_string_elem_size_at):
69707         Use the new types and macros to port to 64-bit hosts.
69708         Use unsigned types for internal values, so that the code
69709         mostly works even for arrays larger than SSIZE_MAX.
69710         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69711         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69712         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69713         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69714         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69715         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69716         (calc_inveclosure, parse_dup_op, build_range_exp):
69717         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69718         (fetch_number, create_token_tree, mark_opt_subexp):
69719         Likewise.
69720         * lib/regex_internal.c (re_string_construct_common,
69721         create_ci_newstate):
69722         (create_cd_newstate, re_string_allocate, re_string_construct):
69723         (re_string_realloc_buffers, build_wcs_upper_buffer):
69724         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69725         (re_string_reconstruct, re_string_peek_byte_case):
69726         (re_string_fetch_byte_case, re_string_context_at):
69727         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69728         (re_node_set_init_copy, re_node_set_add_intersect):
69729         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69730         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69731         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69732         (re_acquire_state, re_acquire_state_context, register_state):
69733         Likewise.
69734         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69735         search_cur_bkref_entry):
69736         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69737         (re_search_internal, re_search_2_stub, re_search_stub)
69738         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69739         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69740         (update_cur_sifted_state, check_dst_limits):
69741         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69742         (check_subexp_limits, sift_states_bkref, merge_state_array):
69743         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69744         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69745         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69746         (expand_bkref_cache, check_node_accept_bytes):
69747         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69748         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69749         (acquire_init_state_context, check_halt_node_context):
69750         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69751         (sift_states_backward, clean_state_log_if_needed):
69752         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69753         (find_recover_state, transit_state_sb, transit_state_mb):
69754         (transit_state_bkref, build_trtable, match_ctx_clean):
69755         Likewise.
69756         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69757         to work around an assumption that REG_MISSING is negative.
69758
69759         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69760         (seek_collating_symbol_entry) [defined _LIBC]:
69761         (lookup_collation_sequence_value) [defined _LIBC]:
69762         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69763         Use prototypes rather than old-style function definitions.
69764         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69765         (transit_state_sb) [0]:
69766         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69767
69768         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69769         rm_eo.
69770
69771         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69772         (optimize_subexps, lower_subexp):
69773         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69774         since the signed shift might overflow.  Use 1u<<31 instead.
69775         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69776         Likewise.
69777         * lib/regexec.c (check_dst_limits_calc_pos_1,
69778         check_subexp_matching_top): Likewise.
69779
69780         * lib/regcomp.c (optimize_subexps, lower_subexp):
69781         Use CHAR_BIT rather than 8, for clarity.
69782         * lib/regexec.c (check_dst_limits_calc_pos_1):
69783         (check_subexp_matching_top): Likewise.
69784         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69785         have to worry about portability issues when shifting it left.
69786         Remove no-longer-needed test for table_size > 0.
69787         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69788         in a word, as the resulting behavior is undefined.
69789         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69790         in one case, a <= should have been an <, and in another case the
69791         whole test was missing.
69792         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69793         the standard name CHAR_BIT.
69794         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69795         this is not true on one's complement and signed-magnitude hosts.
69796
69797         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69798         next_last_offset.
69799         (struct re_dfa_t): Remove unused member states_alloc.
69800         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69801
69802 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69803
69804         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69805         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69806         and large-file glibc and in 32-bit large-file Solaris.
69807
69808 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69809
69810         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69811         lengths fit in regoff_t; this isn't true if regoff_t is the same
69812         width as size_t.
69813         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69814         (= START + RANGE) instead of RANGE.  This avoids overflow
69815         problems when regoff_t is the same width as size_t.
69816         All callers changed.
69817         (re_search_2_stub): Check for overflow when adding the
69818         sizes of the two strings.
69819         (re_search_stub): Check for overflow when adding START
69820         to RANGE; if it occurs, substitute the extreme value.
69821
69822 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69823
69824         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69825
69826 2005-08-31  Jim Meyering  <jim@meyering.net>
69827
69828         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69829         a pointer-to-const.
69830         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69831         (register_state): Likewise.
69832         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69833         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69834         (group_nodes_into_DFAstates): Likewise.
69835
69836 2005-08-31  Jim Meyering  <jim@meyering.net>
69837
69838         * check-module: Add a FIXME comment.
69839
69840 2005-08-31  Eric Blake  <ebb9@byu.net>
69841
69842         * modules/unistd-safer (Files): Add unistd--.h.
69843         * modules/stdio-safer (Files): Add stdio--.h.
69844
69845 2005-08-31  Derek Price  <derek@ximbiot.com>
69846
69847         * lib/getdelim.c (getdelim): Return EOF on EOF.
69848         Reported by Larry Jones <lawrence.jones@ugs.com>.
69849
69850 2005-08-31  Bruno Haible  <bruno@clisp.org>
69851
69852         Avoid unnecessary diffs in the generated lib/Makefile.am.
69853         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69854         the generated files.
69855         (func_import): Don't set cmd.
69856
69857 2005-08-31  Bruno Haible  <bruno@clisp.org>
69858
69859         * lib/strstr.c: Include <stddef.h>, for NULL.
69860         * lib/strcasestr.c: Likewise.
69861         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69862
69863 2005-08-31  Bruno Haible  <bruno@clisp.org>
69864
69865         * gnulib-tool: New option --macro-prefix.
69866         (func_import): Use macro_prefix.
69867         (import): Handle option --macro-prefix.
69868
69869 2005-08-31  Bruno Haible  <bruno@clisp.org>
69870
69871         * gnulib-tool (import): Rename most ac_* variables to cached_*.
69872         Also use new variables cached_lgpl, cached_libtool.
69873
69874 2005-08-31  Bruno Haible  <bruno@clisp.org>
69875
69876         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
69877         always instantiating them.
69878
69879 2005-08-31  Bruno Haible  <bruno@clisp.org>
69880
69881         * gnulib-tool (func_import): Read the previous cached settings
69882         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
69883         earlier added by gnulib but are now dropped. Warn when a gnulib file
69884         overwrites a non-gnulib file.
69885
69886 2005-08-31  Bruno Haible  <bruno@clisp.org>
69887
69888         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
69889         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
69890         projects that don't keep autogenerated files in CVS. Put into
69891         actioncmd only the specified modules, not the transitive closure.
69892
69893 2005-08-31  Bruno Haible  <bruno@clisp.org>
69894
69895         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
69896         Create directories that shall be filled.
69897         (import): Don't look for gl_* macros in configure.ac. Recurse across
69898         all directories containing a gnulib-cache.m4 files, if meaningful.
69899
69900 2005-08-31  Bruno Haible  <bruno@clisp.org>
69901
69902         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
69903         (import): Set seen_libtool when we see gl_LIBTOOL.
69904
69905 2005-08-31  Bruno Haible  <bruno@clisp.org>
69906
69907         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
69908         declaration macro definitions from generated gnulib.m4.
69909
69910 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
69911
69912         * lib/iconvme.h: Add prototype for iconv_alloc.
69913
69914 2005-08-29  Simon Josefsson  <jas@extundo.com>
69915
69916         * lib/iconvme.c: Fix errno.
69917
69918 2005-08-29  Bruno Haible  <bruno@clisp.org>
69919
69920         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
69921         that it works when the directory contains spaces.
69922
69923 2005-08-29  Bruno Haible  <bruno@clisp.org>
69924
69925         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
69926
69927 2005-08-29  Bruno Haible  <bruno@clisp.org>
69928
69929         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
69930         Emit more advice.
69931
69932 2005-08-29  Bruno Haible  <bruno@clisp.org>
69933         and Stepan Kasal  <kasal@ucw.cz>
69934
69935         * check-module: If more parameters are given, check each of them
69936         separately; add more exceptions, as noted by Jim Meyering.
69937         (check_module): New procedure.
69938         (%exempt_header): Now contains all exceptions.
69939
69940 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
69941
69942         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
69943
69944 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69945
69946         * lib/iconvme.c: Split iconv_string into iconv_alloc.
69947
69948 2005-08-28  Bruno Haible  <bruno@clisp.org>
69949
69950         * m4/gnulib-tool.m4: New file.
69951
69952 2005-08-27  Jim Meyering  <jim@meyering.net>
69953
69954         * modules/unistd-safer (Files): Add pipe-safer.c.
69955         * modules/fcntl-safer (Files): Add creat-safer.c.
69956
69957 2005-08-27  Jim Meyering  <jim@meyering.net>
69958
69959         * m4/stdlib-safer.m4: New file.  From coreutils.
69960         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
69961         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
69962         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
69963         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
69964         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
69965
69966 2005-08-27  Jim Meyering  <jim@meyering.net>
69967
69968         * lib/fopen-safer.c: Merge minor changes from coreutils.
69969         * lib/dup-safer.c: Likewise.
69970         * lib/fd-safer.c: Likewise.
69971
69972         Merge from coreutils.
69973         * lib/stdio--.h: New file.
69974         * lib/stdlib--.h: New file.
69975         * lib/mkstemp-safer.c: New file.
69976
69977         GNU tar needs these.
69978         * lib/pipe-safer.c: New file.
69979         * lib/creat-safer.c: New file.
69980         * lib/fcntl--.h (creat): Define to creat_safer.
69981         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
69982         * lib/unistd--.h (pipe): Define to pipe_safer.
69983         * lib/unistd-safer.h: Declare pipe_safer.
69984
69985 2005-08-26  Simon Josefsson  <jas@extundo.com>
69986
69987         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
69988         Haible <bruno@clisp.org>.
69989
69990 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
69991
69992         * lib/regex_internal.h: Remove all references to
69993         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
69994         or better.
69995         (bitset_not, bitset_merge, bitset_not_merge):
69996         (bitset_mask, re_string_allocate, re_string_construct):
69997         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
69998         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
69999         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
70000         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
70001         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70002         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70003         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
70004         (re_acquire_state_context):
70005         Remove unnecessary forward decls.
70006         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
70007         Put __attribute at function definition,
70008         now that the function decl has been removed.
70009         * lib/regex_internal.c (re_string_peek_byte_case):
70010         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
70011         Likewise.
70012
70013 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
70014
70015         * m4/regex.m4: Add AC_PREREQ(2.50).
70016         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
70017
70018 2005-08-25  Simon Josefsson  <jas@extundo.com>
70019
70020         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
70021         __fsetlocking.
70022
70023 2005-08-25  Simon Josefsson  <jas@extundo.com>
70024
70025         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
70026         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
70027         GLIBC specific code.
70028
70029 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70030
70031         Make regex safe for g++.  This fixes one real bug (an "err"
70032         that should have been "*err").  g++ problem reported by
70033         Sam Steingold.
70034         * lib/regex_internal.h (re_calloc): New macro, consistent with
70035         re_malloc etc.  All callers of calloc changed to use re_calloc.
70036         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
70037         not int.  All callers changed.
70038         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
70039         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
70040         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
70041         (find_recover_state): Change "err" to "*err"; this fixes what
70042         appears to be a real bug.
70043         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
70044         versus int.
70045
70046 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70047
70048         * modules/regex (Depends-on): Add malloc, since the code
70049         assumes that !malloc(0) means failure.
70050
70051 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70052
70053         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
70054
70055         alloca modernization/simplification for regex.
70056         * lib/regex.c: Remove portability cruft for alloca.  This no longer
70057         needs to be at the start of the file, and can be moved into
70058         regex_internal.h and simplified.
70059         * lib/regex_internal.h: Include <alloca.h>.
70060         (__libc_use_alloca) [!defined _LIBC]: New macro.
70061         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
70062         now works outside glibc.
70063
70064 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70065
70066         * config/srclist.txt: Add glibc bugs 1241, 1245.
70067
70068 2005-08-25  Jim Meyering  <jim@meyering.net>
70069
70070         * lib/open-safer.c: Include <config.h>.
70071         Otherwise, we'd lose LARGEFILE support in any file using
70072         e.g. "fcntl--.h"
70073
70074 2005-08-25  Bruno Haible  <bruno@clisp.org>
70075
70076         * m4/minmax.m4: Require autoconf 2.52.
70077         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
70078         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
70079         alternatives of translit over the alphabet.
70080         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
70081
70082 2005-08-24  Simon Josefsson  <jas@extundo.com>
70083
70084         * tests/test-getpass.c: New file.
70085
70086 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70087
70088         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
70089         for GNU regex features.
70090
70091 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70092
70093         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
70094         * lib/regex.h (regerror): Likewise.
70095
70096         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
70097         requires this.  (The code never needed it.)
70098
70099         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
70100         All uses of recently-renamed identifiers changed to use the new,
70101         POSIX-compliant names.  The code will build and run just fine
70102         without these changes, but it's better to eat our own dog food
70103         and use the standard-conforming names.
70104
70105         * lib/regex.h: Fix a multitude of POSIX name space violations.
70106         These changes have an effect only for programs that define
70107         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
70108         do not change anything for programs compiled in the normal way.
70109         Also, there is no effect on the ABI.
70110
70111         (_REGEX_SOURCE): New macro.
70112         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70113         defined and _GNU_SOURCE is not; this fixes a name space violation.
70114
70115         Rename the following macros to obey POSIX requirements.
70116         The old names are still visible as macros if _REGEX_SOURCE is defined.
70117         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70118         RE_BACKSLASH_ESCAPE_IN_LISTS.
70119         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
70120         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
70121         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
70122         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
70123         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
70124         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
70125         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
70126         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
70127         (REG_INTERVALS): renamed from RE_INTERVALS.
70128         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
70129         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
70130         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
70131         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
70132         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
70133         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
70134         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
70135         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
70136         RE_UNMATCHED_RIGHT_PAREN_ORD.
70137         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
70138         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
70139         (REG_DEBUG): renamed from RE_DEBUG.
70140         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
70141         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
70142         unusual, since we can't clash with the POSIX REG_ICASE.
70143         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
70144         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
70145         (REG_NO_SUB): renamed from RE_NO_SUB.
70146         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
70147         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
70148         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
70149         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
70150         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
70151         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
70152         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
70153         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
70154         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
70155         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
70156         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
70157         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
70158         RE_SYNTAX_POSIX_MINIMAL_BASIC.
70159         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
70160         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
70161         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
70162         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
70163         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
70164         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
70165         (REG_FIXED): Renamed from REGS_FIXED.
70166         (REG_NREGS): Renamed from RE_NREGS.
70167
70168         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
70169         of other REG_* macros, since POSIX says the user is allowed to
70170         #undef these macros selectively.
70171
70172         (reg_errcode_t): Update comment stating what other tables need
70173         to be consistent.
70174
70175         Rename the following enum values to obey POSIX requirements.
70176         The old names are still visible as macros.
70177         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
70178         is not defined, since GNU is supposed to be a superset of POSIX as
70179         much as possible, and since we want reg_errcode_t to be a signed
70180         type for implementation consistency.
70181         (_REG_NOERROR): Renamed from REG_NOERROR.
70182         (_REG_NOMATCH): Renamed from REG_NOMATCH.
70183         (_REG_BADPAT): Renamed from REG_BADPAT.
70184         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
70185         (_REG_ECTYPE): Renamed from REG_ECTYPE.
70186         (_REG_EESCAPE): Renamed from REG_EESCAPE.
70187         (_REG_ESUBREG): Renamed from REG_ESUBREG.
70188         (_REG_EBRACK): Renamed from REG_EBRACK.
70189         (_REG_EPAREN): Renamed from REG_EPAREN.
70190         (_REG_EBRACE): Renamed from REG_EBRACE.
70191         (_REG_BADBR): Renamed from REG_BADBR.
70192         (_REG_ERANGE): Renamed from REG_ERANGE.
70193         (_REG_ESPACE): Renamed from REG_ESPACE.
70194         (_REG_BADRPT): Renamed from REG_BADRPT.
70195         (_REG_EEND): Renamed from REG_EEND.
70196         (_REG_ESIZE): Renamed from REG_ESIZE.
70197         (_REG_ERPAREN): Renamed from REG_ERPAREN.
70198         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
70199         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
70200         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
70201         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
70202
70203         (_REG_RE_NAME, _REG_RM_NAME): New macros.
70204         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
70205         changed.  But support the old name if the new one is not defined
70206         and if _REGEX_SOURCE.
70207
70208         Change the following member names in struct re_pattern_buffer.
70209         The old names are still supported if !_REGEX_SOURCE.
70210         The new names are always supported, regardless of _REGEX_SOURCE.
70211         (re_buffer): Renamed from buffer.
70212         (re_allocated): Renamed from allocated.
70213         (re_used): Renamed from used.
70214         (re_syntax): Renamed from syntax.
70215         (re_fastmap): Renamed from fastmap.
70216         (re_translate): Renamed from translate.
70217         (re_can_be_null): Renamed from can_be_null.
70218         (re_regs_allocated): Renamed from regs_allocated.
70219         (re_fastmap_accurate): Renamed from fastmap_accurate.
70220         (re_no_sub): Renamed from no_sub.
70221         (re_not_bol): Renamed from not_bol.
70222         (re_not_eol): Renamed from not_eol.
70223         (re_newline_anchor): Renamed from newline_anchor.
70224
70225         Change the following member names in struct re_registers.
70226         The old names are still supported if !_REGEX_SOURCE.
70227         The new names are always supported, regardless of _REGEX_SOURCE.
70228         (rm_num_regs): Renamed from num_regs.
70229         (rm_start): Renamed from start.
70230         (rm_end): Renamed from end.
70231
70232         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
70233         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
70234         Prepend __ to parameter names.
70235
70236         Undo yesterday's changes.
70237
70238 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70239
70240         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
70241         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
70242         lib/regex.c.
70243
70244 2005-08-24  Jim Meyering  <jim@meyering.net>
70245
70246         Sync from coreutils.
70247         * m4/fcntl-safer.m4: New file.
70248
70249         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
70250         and object files for this module.
70251
70252 2005-08-24  Jim Meyering  <jim@meyering.net>
70253
70254         Sync from coreutils.
70255         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
70256
70257 2005-08-24  Jim Meyering  <jim@meyering.net>
70258
70259         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
70260         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
70261
70262 2005-08-24  Jim Meyering  <jim@meyering.net>
70263
70264         * modules/fcntl-safer: New module.
70265         * modules/fts (Depends-on): Add fcntl-safer.
70266         * MODULES.html.sh (File descriptor based Input/Output):
70267         Add fcntl-safer.
70268
70269 2005-08-24  Bruno Haible  <bruno@clisp.org>
70270
70271         Support for unit test modules.
70272         * modules/README: Mention tests modules.
70273         * modules/TEMPLATE-TESTS: New file.
70274         * gnulib-tool: New options --extract-tests-module, --with-tests and
70275         --tests-base (unused for the moment).
70276         (testsbase, inctests): New variables.
70277         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
70278         (func_verify_module): Exclude TEMPLATE-TESTS.
70279         (func_verify_nontests_module, func_verify_tests_module): New functions.
70280         (func_get_dependencies): Add implicit dependency for tests modules.
70281         (func_get_tests_module): New function.
70282         (func_modules_transitive_closure): When --with-tests was specified,
70283         include the unit tests as well, unless explicitly avoided.
70284         (func_emit_lib_Makefile_am): Ignore the tests modules here.
70285         (func_emit_tests_Makefile_am): New function.
70286         (func_create_testdir): When --with-tests was specified, emit a
70287         tests/ directory.
70288         * MODULES.html.sh (Future developments): Update.
70289
70290 2005-08-24  Bruno Haible  <bruno@clisp.org>
70291
70292         * modules/tls-tests: New file.
70293         * tests/test-tls.c: New file, from GNU gettext.
70294
70295 2005-08-24  Bruno Haible  <bruno@clisp.org>
70296
70297         * modules/lock-tests: New file.
70298         * tests/test-lock.c: New file, from GNU gettext.
70299
70300 2005-08-24  Bruno Haible  <bruno@clisp.org>
70301
70302         * lib/lock.h: Add multiple inclusion guard.
70303         * lib/tls.h: Add multiple inclusion guard.
70304
70305 2005-08-24  Bruno Haible  <bruno@clisp.org>
70306
70307         * gnulib-tool: Add support for the --aux-dir option to
70308         --create-testdir, --create-megatestdir, --test, --megatest.
70309         (func_create_testdir, func_create_megatestdir): Optionally emit a
70310         AC_CONFIG_AUX_DIR directive.
70311         (create-testdir, create-megatestdir, test, megatest): Provide a
70312         default value for $auxdir.
70313
70314 2005-08-24  Bruno Haible  <bruno@clisp.org>
70315
70316         * gnulib-tool (import): Use compound statement instead of subshell
70317         where possible.
70318
70319 2005-08-24  Bruno Haible  <bruno@clisp.org>
70320
70321         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70322
70323 2005-08-24  Bruno Haible  <bruno@clisp.org>
70324
70325         * gnulib-tool (func_version): Update.
70326
70327 2005-08-24  Bruno Haible  <bruno@clisp.org>
70328
70329         * gnulib-tool (func_import, func_create_testdir,
70330         func_create_megatestdir): Quote all autoconf macro arguments.
70331
70332 2005-08-24  Bruno Haible  <bruno@clisp.org>
70333
70334         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70335         option --force, because --force causes the aclocal.m4 of each
70336         subdirectory to be newer than the corresponding config.h.in.
70337
70338 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70339
70340         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70341         All contents moved to gl_REGEX.
70342         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70343         assume that it does.
70344
70345 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70346
70347         * lib/regex.h (REG_NOSYS)
70348         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70349         Define, since POSIX requires it as of 2001.
70350         (_REG_ENOSYS)
70351         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70352         New private symbol, used to keep the enum signed in all cases.
70353         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70354         Youngman in
70355         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70356
70357         * lib/regex_internal.c (re_string_skip_chars, register_state):
70358         (calc_state_hash):
70359         Remove forward decls; no longer needed now that we use prototypes.
70360         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70361         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70362         (clean_state_log_if_needed): Likewise.
70363
70364 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70365
70366         * config/srclist.txt: Add glibc bugs 1231-1233.
70367
70368 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70369
70370         Fix problems reported by Sam Steingold in
70371         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70372         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70373         assumed that reg_errcode_t is a signed type, which is not
70374         necessarily true if _XOPEN_SOURCE is not defined.
70375         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70376         since some compilers warn about it otherwise.
70377
70378 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70379
70380         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70381         (init_word_char, create_initial_state, duplicate_node_closure):
70382         (fetch_token, peek_token_bracket, build_range_exp):
70383         (build_collating_symbol): Remove forward decls; no longer needed
70384         now that we use prototypes.
70385
70386         * lib/regcomp.c:
70387         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70388         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70389         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70390         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70391         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70392         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70393         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70394         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70395         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70396         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70397         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70398         (build_charclass, build_charclass_op, fetch_number, create_tree):
70399         (create_token_tree, mark_opt_subexp, duplicate_tree):
70400         Use prototypes rather than old-style definitions.
70401
70402         * lib/regex_internal.c:
70403         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70404         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70405         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70406         (re_string_reconstruct, re_string_peek_byte_case):
70407         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70408         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70409         (re_node_set_init_copy, re_node_set_add_intersect):
70410         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70411         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70412         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70413         (re_acquire_state, re_acquire_state_context, register_state):
70414         (create_ci_newstate, create_cd_newstate, free_state):
70415         Likewise.
70416         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70417         re_search_2):
70418         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70419         (re_search_internal, prune_impossible_nodes):
70420         (acquire_init_state_context, check_matching, static):
70421         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70422         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70423         (update_regs, sift_states_backward, build_sifted_states):
70424         (clean_state_log_if_needed, merge_state_array):
70425         (update_cur_sifted_state, add_epsilon_src_nodes):
70426         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70427         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70428         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70429         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70430         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70431         (check_arrival, check_arrival_add_next_nodes):
70432         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70433         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70434         (check_node_accept_bytes, check_node_accept, extend_buffers):
70435         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70436         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70437         (sift_ctx_init):
70438         Likewise.
70439
70440         * lib/regex_internal.h:
70441         (re_string_allocate, re_string_construct, re_string_reconstruct):
70442         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70443         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70444         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70445         (re_string_context_at, re_string_peek_byte_case):
70446         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70447         is defined, since we now use prototypes always.
70448
70449         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70450         C89 or better.  All uses removed.
70451
70452 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70453
70454         * config/srclist.txt: Add glibc bugs 1220-1227.
70455
70456 2005-08-20  Jim Meyering  <jim@meyering.net>
70457
70458         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70459         of unused local, dfa.
70460
70461 2005-08-20  Bruno Haible  <bruno@clisp.org>
70462
70463         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70464
70465 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70466
70467         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70468         (re_node_set_insert_last, re_dfa_add_node):
70469         Rename local variables to avoid GCC shadowing warnings.
70470
70471 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70472
70473         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70474         [defined lint]: Suppress bogus uninitialized-variable warnings.
70475
70476         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70477         and let the caller return REG_ESPACE if out of space.  This
70478         removes an uninitialied-variable warning with GCC 4.0.1, and also
70479         avoids taking the address of a local variable.  All callers
70480         changed.
70481
70482 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70483
70484         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70485         $LIBCSRC/posix/regexec.c.
70486         Add glibc bug 1217 for regcomp.c.
70487
70488 2005-08-19  Jim Meyering  <jim@meyering.net>
70489
70490         * lib/regexec.c (proceed_next_node): Redo local variables to
70491         avoid GCC shadowing warnings.
70492
70493 2005-08-18  Bruno Haible  <bruno@clisp.org>
70494
70495         * lib/strstr.c (strstr): Fix return value in multibyte case.
70496         * lib/strcasestr.c (strcasestr): Likewise.
70497
70498 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70499
70500         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70501
70502 2005-08-17  Jim Meyering  <jim@meyering.net>
70503
70504         Make the %s format (seconds since the epoch) work for a negative
70505         number and when used with a zero-padded field width, e.g. %015s.
70506
70507         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70508         label so that it precedes the code to set `digits'.  Otherwise,
70509         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70510         print `00-22'.  Now, it prints `-0022', as it should.
70511
70512 2005-08-17  Bruno Haible  <bruno@clisp.org>
70513
70514         * modules/strstr (Files): Add m4/mbrtowc.m4.
70515         (Depends-on): Add mbuiter.
70516
70517 2005-08-17  Bruno Haible  <bruno@clisp.org>
70518
70519         * modules/strcasestr: New file.
70520         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70521         strcasestr.
70522
70523 2005-08-17  Bruno Haible  <bruno@clisp.org>
70524
70525         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70526
70527 2005-08-17  Bruno Haible  <bruno@clisp.org>
70528
70529         * modules/mbuiter: New file.
70530         * MODULES.html.sh (Extended multibyte and wide character utilities):
70531         Add mbuiter.
70532
70533 2005-08-17  Bruno Haible  <bruno@clisp.org>
70534
70535         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70536         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70537
70538 2005-08-17  Bruno Haible  <bruno@clisp.org>
70539
70540         * m4/strcasestr.m4: New file.
70541
70542 2005-08-17  Bruno Haible  <bruno@clisp.org>
70543
70544         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70545         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70546
70547 2005-08-17  Bruno Haible  <bruno@clisp.org>
70548
70549         * lib/strcasestr.h: New file.
70550         * lib/strcasestr.c: New file.
70551
70552 2005-08-17  Bruno Haible  <bruno@clisp.org>
70553
70554         * lib/strcasecmp.c: Use mbuiter.h.
70555
70556 2005-08-17  Bruno Haible  <bruno@clisp.org>
70557
70558         * lib/mbuiter.h: New file.
70559
70560 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70561
70562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70563         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70564         and gl_GETOPT are both invoked via different paths (as happens
70565         with GNU tar CVS because it uses both argp and getopt), the former
70566         wins.
70567
70568 2005-08-16  Bruno Haible  <bruno@clisp.org>
70569
70570         * modules/tls: New file.
70571         * MODULES.html.sh (Multithreading): Add tls.
70572
70573 2005-08-16  Bruno Haible  <bruno@clisp.org>
70574
70575         * modules/strnlen1: New file.
70576         * MODULES.html.sh (String handling): Add strnlen1.
70577
70578 2005-08-16  Bruno Haible  <bruno@clisp.org>
70579
70580         * modules/strcase (Files): Add m4/mbrtowc.m4.
70581         (Depends-on): Add strnlen1, mbchar.
70582
70583 2005-08-16  Bruno Haible  <bruno@clisp.org>
70584
70585         * modules/mbiter: New file.
70586         * MODULES.html.sh (Extended multibyte and wide character utilities):
70587         Add mbiter.
70588
70589 2005-08-16  Bruno Haible  <bruno@clisp.org>
70590
70591         * modules/mbfile: New file.
70592         * MODULES.html.sh (Extended multibyte and wide character utilities):
70593         Add mbfile.
70594
70595 2005-08-16  Bruno Haible  <bruno@clisp.org>
70596
70597         * modules/mbchar: New file.
70598         * MODULES.html.sh (Extended multibyte and wide character utilities):
70599         New section.
70600
70601 2005-08-16  Bruno Haible  <bruno@clisp.org>
70602
70603         * m4/tls.m4: New file, from GNU gettext.
70604
70605 2005-08-16  Bruno Haible  <bruno@clisp.org>
70606
70607         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70608         always.
70609         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70610
70611 2005-08-16  Bruno Haible  <bruno@clisp.org>
70612
70613         * m4/mbiter.m4: New file.
70614
70615 2005-08-16  Bruno Haible  <bruno@clisp.org>
70616
70617         * m4/mbfile.m4: New file.
70618
70619 2005-08-16  Bruno Haible  <bruno@clisp.org>
70620
70621         * m4/mbchar.m4: New file.
70622
70623 2005-08-16  Bruno Haible  <bruno@clisp.org>
70624
70625         * lib/tls.h: New file, from GNU gettext.
70626         * lib/tls.c: New file, from GNU gettext.
70627
70628 2005-08-16  Bruno Haible  <bruno@clisp.org>
70629
70630         * lib/strnlen1.h: New file.
70631         * lib/strnlen1.c: New file.
70632
70633 2005-08-16  Bruno Haible  <bruno@clisp.org>
70634
70635         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70636         (mbi_init): Update.
70637         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70638         NUL byte, not after it.
70639
70640 2005-08-16  Bruno Haible  <bruno@clisp.org>
70641
70642         * lib/strcase.h (strcasecmp): Add note in comments.
70643         * lib/strncasecmp.c: Use code from strcasecmp.c.
70644         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70645         (strcasecmp): Work correctly in multibyte locales.
70646
70647 2005-08-16  Bruno Haible  <bruno@clisp.org>
70648
70649         * lib/mbiter.h: New file.
70650
70651 2005-08-16  Bruno Haible  <bruno@clisp.org>
70652
70653         * lib/mbfile.h: New file.
70654
70655 2005-08-16  Bruno Haible  <bruno@clisp.org>
70656
70657         * lib/mbchar.h: New file.
70658         * lib/mbchar.c: New file.
70659
70660 2005-08-16  Bruno Haible  <bruno@clisp.org>
70661
70662         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70663         the valid ones. Makes the comparison operations transitive:
70664         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70665         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70666
70667 2005-08-15  Simon Josefsson  <jas@extundo.com>
70668
70669         * modules/ssize_t (License): Change to 'unlimited'.
70670
70671         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70672
70673 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70674
70675         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70676         Add comments for each pending glibc patch.
70677
70678 2005-08-15  Bruno Haible  <bruno@clisp.org>
70679
70680         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70681         __cplusplus is defined.
70682
70683 2005-08-14  Jim Meyering  <jim@meyering.net>
70684
70685         Sync from coreutils.
70686
70687         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70688         Use the hash-table-based cycle-detection code not just when
70689         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70690         Reported by James Youngman in
70691         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70692         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70693         FTS_TIGHT_CYCLE_CHECK.
70694         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70695         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70696         once again.
70697         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70698         * lib/fts.c (fd_safer): Remove decl.
70699         Include fcntl--.h rather than unistd-safer.h
70700         (fts_safe_changedir): Don't call fd_safer; no longer needed
70701         now that we include fcntl--.h.
70702
70703 2005-08-12  Simon Josefsson  <jas@extundo.com>
70704
70705         * modules/getndelim2: Use ssize_t module.
70706         * modules/getnline: Likewise.
70707         * modules/safe-read: Likewise.
70708         * modules/xreadlink: Likewise.
70709
70710         * modules/ssize_t: New file.
70711
70712 2005-08-12  Simon Josefsson  <jas@extundo.com>
70713
70714         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70715
70716 2005-08-12  Simon Josefsson  <jas@extundo.com>
70717
70718         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70719         ssize_t.
70720
70721 2005-08-12  Simon Josefsson  <jas@extundo.com>
70722
70723         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70724         readline, getdelim and check_version.
70725         (Support for systems lacking ISO C 99: Sizes of integer types):
70726         Add size_max.
70727
70728 2005-08-12  Bruno Haible  <bruno@clisp.org>
70729
70730         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70731
70732 2005-08-11  Simon Josefsson  <jas@extundo.com>
70733
70734         * modules/readline: New file.
70735
70736         * modules/strnlen (Files): Add strnlen.h.
70737
70738 2005-08-11  Simon Josefsson  <jas@extundo.com>
70739
70740         * m4/readline.m4: New file.
70741
70742 2005-08-11  Simon Josefsson  <jas@extundo.com>
70743
70744         * lib/readline.h, readline.c: New file.
70745
70746 2005-08-11  Simon Josefsson  <jas@extundo.com>
70747
70748         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70749         gl_AVOID.
70750
70751 2005-08-11  Bruno Haible  <bruno@clisp.org>
70752
70753         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70754
70755 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70756
70757         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70758
70759 2005-08-10  Simon Josefsson  <jas@extundo.com>
70760
70761         * tests/test-iconvme.c: New file.
70762
70763 2005-08-10  Simon Josefsson  <jas@extundo.com>
70764
70765         * m4/strnlen.m4: New file.
70766
70767         * m4/strndup.m4: Don't check for strnlen declaration, done in
70768         strnlen.m4.
70769
70770 2005-08-10  Simon Josefsson  <jas@extundo.com>
70771
70772         * lib/strndup.c: Use strnlen.h.
70773
70774         * lib/strnlen.h: New file.
70775
70776 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70777
70778         * README: Typos.
70779
70780 2005-08-02  Simon Josefsson  <jas@extundo.com>
70781
70782         * modules/readline: New file.
70783
70784 2005-08-02  Simon Josefsson  <jas@extundo.com>
70785
70786         * modules/getdelim: New file.
70787
70788         * modules/getline: Rewrite, don't use getndelim2.
70789
70790 2005-08-02  Simon Josefsson  <jas@extundo.com>
70791
70792         * m4/getline.m4: Separate out getdelim stuff into separate module.
70793
70794         * m4/getdelim.m4: New file.
70795
70796 2005-08-02  Simon Josefsson  <jas@extundo.com>
70797
70798         * lib/getline.h, getline.c: Rewrite.
70799
70800         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70801
70802 2005-07-31  Bruno Haible  <bruno@clisp.org>
70803
70804         * lib/lock.h (gl_lock_initializer): New macro.
70805         (gl_lock_define_initialized): Use it.
70806         (gl_rwlock_initializer): New macro.
70807         (gl_rwlock_define_initialized): Use it.
70808         (gl_recursive_lock_initializer): New macro.
70809         (gl_recursive_lock_define_initialized): Use it.
70810
70811 2005-07-30  Karl Berry  <karl@gnu.org>
70812
70813         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70814         Report from Ben Pfaff, regarding getopt.
70815
70816 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70817
70818         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70819         normal way.
70820         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70821         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70822         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70823         (gl_GETOPT): Use the new macros.  Most of the implementation
70824         is moved to the new macros.  This is for programs like Emacs
70825         that don't want all the functionality of gl_GETOPT.
70826
70827 2005-07-26  Bruno Haible  <bruno@clisp.org>
70828
70829         * m4/lock.m4: Update from GNU gettext.
70830
70831 2005-07-26  Bruno Haible  <bruno@clisp.org>
70832
70833         * lib/lock.h: Update from GNU gettext.
70834         * lib/lock.c: Update from GNU gettext.
70835
70836 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70837
70838         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70839         obsolescent AC_TRY_RUN.  Include the default includes files, for
70840         'exit'.
70841
70842 2005-07-24  Bruno Haible  <bruno@clisp.org>
70843
70844         * modules/visibility: New file.
70845         * MODULES.html.sh (Misc): Add visibility.
70846
70847 2005-07-24  Bruno Haible  <bruno@clisp.org>
70848
70849         * m4/visibility.m4: New file.
70850
70851 2005-07-24  Bruno Haible  <bruno@clisp.org>
70852
70853         * doc/visibility.texi: New file.
70854
70855 2005-07-22  Bruno Haible  <bruno@clisp.org>
70856
70857         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70858         $(ALLOCA_H), redundant through BUILT_SOURCES.
70859         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70860         redundant through BUILT_SOURCES.
70861         * modules/byteswap (Makefile.am): Remove explicit dependency on
70862         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70863         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70864         $(FNMATCH_H), redundant through BUILT_SOURCES.
70865         * modules/getopt (Makefile.am): Remove explicit dependency on
70866         $(GETOPT_H), redundant through BUILT_SOURCES.
70867         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70868         redundant through BUILT_SOURCES.
70869         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
70870         redundant through BUILT_SOURCES.
70871         * modules/stdbool (Makefile.am): Remove explicit dependency on
70872         $(STDBOOL_H), redundant through BUILT_SOURCES.
70873         * modules/stdint (Makefile.am): Remove explicit dependency on
70874         $(STDINT_H), redundant through BUILT_SOURCES.
70875         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
70876         Remove explicit dependency on $(SYSEXITS_H).
70877         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
70878
70879 2005-07-18  Simon Josefsson  <jas@extundo.com>
70880
70881         * lib/check-version.c (check_version): Accept identical versions too.
70882
70883 2005-07-18  Bruno Haible  <bruno@clisp.org>
70884
70885         * modules/lock: New file.
70886         * MODULES.html.sh (Multithreading): New section.
70887
70888 2005-07-18  Bruno Haible  <bruno@clisp.org>
70889
70890         * m4/lock.m4: New file, from GNU gettext.
70891
70892 2005-07-18  Bruno Haible  <bruno@clisp.org>
70893
70894         * lib/lock.h: New file, from GNU gettext.
70895         * lib/lock.c: New file, from GNU gettext.
70896
70897 2005-07-18  Bruno Haible  <bruno@clisp.org>
70898
70899         * lib/lock.h (gl_once_t): New type.
70900         (gl_once_define, gl_once): New macros.
70901         * lib/lock.c (fresh_once): New variable.
70902         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
70903         functions.
70904
70905 2005-07-16  Simon Josefsson  <jas@extundo.com>
70906
70907         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
70908         workaround, suggested by Bruno.
70909
70910 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70911
70912         * modules/xalloc (Depends-on): Add xalloc-die.
70913         * modules/xvasprintf (Depends-on): Add xalloc-die.
70914
70915 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70916
70917         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
70918         with a minor change.
70919
70920 2005-07-15  Bruno Haible  <bruno@clisp.org>
70921
70922         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
70923         When using lib/poll.c, define poll as rpl_poll.
70924
70925 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
70926
70927         * modules/argp (Depends-on): Remove unlocked-io.
70928
70929 2005-07-14  Derek Price  <derek@ximbiot.com>
70930
70931         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
70932         for glob symlink bug.
70933
70934 2005-07-14  Bruno Haible  <bruno@clisp.org>
70935
70936         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
70937         Instead, test for *_unlocked function declarations directly.
70938
70939 2005-07-11  Simon Josefsson  <jas@extundo.com>
70940
70941         * modules/size_max: New file.
70942
70943         * modules/xsize: Depend on size_max module for size_max.m4.
70944
70945 2005-07-11  Simon Josefsson  <jas@extundo.com>
70946
70947         * lib/size_max.h: New file.
70948
70949 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
70950
70951         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
70952         copyright symbol and the year.
70953         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
70954         (version_etc_va): Use parameterized copyright notice.
70955         Reword to conform to the current GNU coding standards.
70956
70957 2005-07-11  Karl Berry  <karl@gnu.org>
70958
70959         * doc/gnulib.texi (Quoting): new node.
70960         (Initial import): more info, from Patrice.
70961
70962 2005-07-11  Bruno Haible  <bruno@clisp.org>
70963
70964         * gnulib-tool (func_usage): Document option --avoid.
70965         (Command line options): Handle --avoid.
70966         (func_acceptable): New function.
70967         (func_modules_transitive_closure): Use it.
70968
70969 2005-07-11  Bruno Haible  <bruno@clisp.org>
70970
70971         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
70972         Reported by Jim Meyering.
70973
70974 2005-07-10  Bruno Haible  <bruno@clisp.org>
70975
70976         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
70977         Needed when size_t is smaller than 'unsigned int'.
70978         Reported by Paul Eggert.
70979
70980 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70981
70982         * modules/argp (Depends-on): Add unlocked-io
70983
70984 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70985
70986         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
70987         block of defines.
70988
70989 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70990
70991         * config/srclist.txt: Comment out regcomp.c, since we have a porting
70992         fix now.
70993
70994 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
70995         and Paul Eggert  <eggert@cs.ucla.edu>
70996
70997         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
70998         in wint_t, not wchar_t.  Remove now-unnecessary cast.
70999
71000 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71001
71002         * modules/regex (Files): Add lib/regex_internal.c,
71003         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
71004         (Depends-on): Add extensions.
71005         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
71006
71007 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71008
71009         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
71010         pathconf.
71011         * m4/same.m4 (gl_SAME): Likewise.
71012         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
71013
71014         * m4/regex.m4: Adjust to new libc regex implementation.
71015         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
71016         all the .c and .h parts of (the new) regex.
71017         Quote the m4 stuff better.
71018         Check for RE_ICASE bug of old gnulib.
71019         Check for REG_STARTEND of recent libc.
71020         Rename local variables from jm_* to gl_*.
71021         Quote operand of "test -f".
71022         Say "recent enough" version of libc, not "version 2".
71023         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
71024         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
71025         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
71026         Remove check for btowc, isascii.
71027         Require AM_LANGINFO_CODESET.
71028
71029 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71030
71031         * lib/regex.c, regex.h: Sync from libc.
71032         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
71033         * lib/regexec.c:
71034         New files, synced from libc, except that regex_internal.h
71035         currently has a small porting fix.
71036
71037 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71038
71039         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
71040         regex_internal.c, regexec.c.
71041         Add regex_internal.h too, but as a comment, since the libc version
71042         is currently broken in gnulib mode.
71043
71044 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71045
71046         Support programs like Emacs that use gnulib but not gettext.
71047         * MODULES.html.sh (Internationalization functions): Add gettext-h.
71048         * modules/gettext-h: New file.
71049         * modules/gettext (Files): Remove lib/gettext.h.
71050         (Depends-on): Add gettext-h.
71051         (Makefile.am): Remove lib_SOURCES.
71052         * modules/argmatch, modules/c-stack, modules/closeout:
71053         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
71054         * modules/execute, modules/file-type, modules/getaddrinfo:
71055         * modules/getopt, modules/human, modules/javacomp:
71056         * modules/javaexec, modules/mkdir-p, modules/obstack:
71057         * modules/openat, modules/pagealign_alloc, modules/pipe:
71058         * modules/quotearg, modules/regex, modules/rpmatch:
71059         * modules/unicodeio, modules/userspec, modules/version-etc:
71060         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
71061         * modules/xsetenv:
71062         Depend on gettext-h, not gettext.
71063
71064 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         * gnulib-tool (func_import): Add support for 'public domain' license.
71067         * modules/alloca, modules/atexit, modules/memmove:
71068         Now public domain, not GPL.
71069         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
71070         * modules/realloc, modules/strerror, modules/strtod:
71071         Now LGPL, not GPL.
71072
71073 2005-07-05  Bruno Haible  <bruno@clisp.org>
71074
71075         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
71076         autoconf CVS. Needed for mingw.
71077
71078 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71079
71080         Remove the dependency of the strftime module on the tzset module.
71081         * modules/strftime (Depends-on): Remove dependency on tzset.
71082
71083 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71084
71085         Remove the dependency of the strftime module on the tzset module.
71086         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
71087         gl_FUNC_TZSET_CLOBBER.
71088
71089 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71090
71091         Remove the dependency of the strftime module on the tzset module.
71092         * lib/strftime.c (my_strftime)
71093         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
71094         Copy the input structure, to work around some of the bug with
71095         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
71096         Solaris releases, you should also use the tzset module, but we won't
71097         require it as a dependency any more since we don't want LGPLed code
71098         to depend on GPLed code.
71099
71100 2005-07-02  Jim Meyering  <jim@meyering.net>
71101
71102         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
71103         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
71104         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
71105         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
71106
71107 2005-07-02  Jim Meyering  <jim@meyering.net>
71108
71109         * lib/backupfile.c (backup_args): Change a `0' to NULL.
71110
71111 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71112
71113         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71114         declares only 'struct timespec;' (!).
71115
71116 2005-07-01  Jim Meyering  <jim@meyering.net>
71117
71118         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
71119         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
71120         * lib/save-cwd.c, tempname.c:
71121         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71122         and don't include <sys/file.h>).
71123
71124 2005-06-29  Jim Meyering  <jim@meyering.net>
71125
71126         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
71127         type name.  Use the variable name instead.
71128         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
71129         Likewise.
71130
71131 2005-06-28  Simon Josefsson  <jas@extundo.com>
71132
71133         * modules/check-version (Files): Add check-version.m4.
71134
71135 2005-06-28  Simon Josefsson  <jas@extundo.com>
71136
71137         * m4/check-version.m4: New file, suggested by Jim Meyering
71138         <jim@meyering.net>.
71139
71140 2005-06-28  Simon Josefsson  <jas@extundo.com>
71141
71142         * lib/check-version.h, lib/check-version.c: New files.
71143
71144 2005-06-28  Simon Josefsson  <jas@extundo.com>
71145
71146         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
71147         collision with global variable.  Better indentation.  Don't
71148         increment buffer pointer beyond buffer end.  Based on comments
71149         from Paul Eggert <eggert@cs.ucla.edu>.
71150
71151         * lib/base64.h: Indent.
71152
71153 2005-06-28  Simon Josefsson  <jas@extundo.com>
71154
71155         * doc/gnulib.texi (Library version handling): New section.
71156
71157 2005-06-28  Jim Meyering  <jim@meyering.net>
71158
71159         * check-module (find_included_lib_files): Hard-code another
71160         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
71161         but modules/fts-lgpl (correctly) does not list those files.
71162
71163         * modules/canonicalize (Files): Add lib/pathmax.h.
71164
71165 2005-06-25  Simon Josefsson  <jas@extundo.com>
71166
71167         * modules/check-version: New file.
71168
71169 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
71170
71171         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
71172         initializer of struct addrinfo, as an indication that we don't
71173         care how many members the structure has.
71174
71175 2005-06-24  Derek Price  <derek@ximbiot.com>
71176         and Bruno Haible  <bruno@clisp.org>
71177
71178         Remove stat module & update lstat.
71179         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
71180         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71181         * m4/stat.m4: Remove this file.
71182
71183 2005-06-24  Derek Price  <derek@ximbiot.com>
71184         and Bruno Haible  <bruno@clisp.org>
71185
71186         Remove stat module & update lstat.
71187         * lib/stat.c: Remove this file...
71188         (slash_aware_lstat): ...moving this content and its support...
71189         * lib/lstat.c (rpl_lstat): ...into here.
71190         * lib/lstat.h: New file.
71191
71192 2005-06-24  Derek Price  <derek@ximbiot.com>
71193         and Bruno Haible  <bruno@clisp.org>
71194
71195         Remove stat module & update lstat.
71196         * config/srclist.txt (libc sources): Remove stat.
71197
71198 2005-06-24  Derek Price  <derek@ximbiot.com>
71199         and Bruno Haible  <bruno@clisp.org>
71200
71201         Remove stat module & update lstat.
71202         * MODULES.html.sh (stat): Remove.
71203         * MODULES.html: Regenerated.
71204         * modules/lstat (Description): Correct function name.
71205         (Files): Add "lstat.h".
71206         (Depends-on): Remove stat, add xalloc, stat-macros.
71207         * modules/stat: Remove this file.
71208         (Include): Add "lstat.h", remove <sys/stat.h>.
71209
71210 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
71211
71212         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
71213         (ranged_convert): Don't save conversion in a temporary struct.
71214         This causes a warning with GCC 4.0.0, and anyway in the typical
71215         case it's not worth the extra 100 bytes or so of code.
71216         (ranged_convert, __mktime_internal): When calling a function via a
71217         pointer P, use P () rather than (*P) (), as we now assume C89 or
71218         better.
71219
71220 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
71223         "who -r" failed to give output.  Problem reported by Tim Waugh.
71224
71225         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
71226         (xcalloc): Use it to avoid needless tests.
71227         Problem reported by Jim Meyering.
71228
71229 2005-06-20  Derek Price  <derek@ximbiot.com>
71230
71231         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
71232         unnecessary for Autoconfs > 2.59c.
71233
71234 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71235
71236         * lib/argp.h (__option_is_short): Check upper limit of
71237         __key. Isprint() requires its argument to have the value
71238         of an unsigned char or EOF.
71239
71240 2005-06-16  Jim Meyering  <jim@meyering.net>
71241
71242         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
71243         when either N or S is zero.
71244
71245 2005-06-16  Derek Price  <derek@ximbiot.com>
71246
71247         * m4/bison.m4: Declare YACC & YFLAGS precious.
71248
71249 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
71250
71251         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
71252         multibyte string or pattern, fall back on unibyte matching.
71253         Problem reported by James Youngman.
71254
71255 2005-06-08  Bruno Haible  <bruno@clisp.org>
71256
71257         * modules/csharpcomp: New file.
71258         * MODULES.html.sh (C#): Add csharpcomp.
71259
71260 2005-06-08  Bruno Haible  <bruno@clisp.org>
71261
71262         * m4/csharpcomp.m4: New file, from GNU gettext.
71263
71264 2005-06-08  Bruno Haible  <bruno@clisp.org>
71265
71266         * lib/csharpcomp.h: New file, from GNU gettext.
71267         * lib/csharpcomp.c: New file, from GNU gettext.
71268         * lib/csharpcomp.sh.in: New file, from GNU gettext.
71269
71270 2005-06-08  Bruno Haible  <bruno@clisp.org>
71271
71272         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
71273         warning on mingw.
71274
71275 2005-06-07  Derek Price  <derek@ximbiot.com>
71276
71277         Sync from CVS.
71278         * lib/glob_.h: Indent nested #ifdef.
71279
71280 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71281
71282         Sync from coreutils.
71283         Use "file name" when talking about file names, instead of "filename"
71284         or "path", as per the GNU coding standards.
71285         * lib/mkdir-p.c: Renamed from makepath.c.
71286         (make_dir_parents): Renamed from make_path.  All callers changed.
71287         * lib/mkdir-p.h: Likewise.  All includers changed.
71288         * lib/filenamecat.c: Renamed from path-concat.c.
71289         (file_name_concat): Renamed from path_concat.  All callers changed.
71290         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
71291         * lib/filenamecat.h: Likewise.  All includers changed.
71292         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
71293         in comments or local variable names.
71294         * lib/basename.c: Likewise.
71295         * lib/canonicalize.c, canonicalize.h: Likewise.
71296         * lib/dirname.c, dirname.h: Likewise.
71297         * lib/euidaccess.c: Likewise.
71298         * lib/exclude.c: Likewise
71299         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71300         * lib/fsusage.c, fsuage.h: Likewise.
71301         * lib/fts.c, fts_.h: Likewise.
71302         * lib/getcwd.c: Likewise.
71303         * lib/getloadavg.c: Likewise.
71304         * lib/mkstemp.c: Likewise.
71305         * lib/mountlist.c, mountlist.h: Likewise.
71306         * lib/openat.c, openat.h: Likewise.
71307         * lib/readlink-stub.c: Likewise.
71308         * lib/readutmp.c, readutmp.h: Likewise.
71309         * lib/rename.c: Likewise.
71310         * lib/rmdir.c: Likewise.
71311         * lib/same.c: Likewise.
71312         * lib/savedir.c: Likewise.
71313         * lib/stripslash.c: Likewise.
71314         * lib/tempname.c: Likewise.
71315         * lib/xreadlink.c: Likewise.
71316         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71317         All uses changed.
71318         * lib/exclude.h: Likewise.
71319
71320         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71321         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71322         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71323         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71324         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71325         files have been getting away with it for years (MORE/BSD 4.3
71326         is extinct now).
71327         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71328         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71329
71330         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71331         Define to 256, not 255, as per modern POSIX.
71332
71333 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71334
71335         Sync from coreutils.
71336         Use "file name" when talking about file names, instead of "filename"
71337         or "path", as per the GNU coding standards.
71338         * MODULES.html.sh: mkdir-p renamed from makepath.
71339         filenamecat renamed from path-concat.
71340         * modules/filenamecat: Renamed from modules/path-concat.
71341         (Files): filenamecat.h and filenamecat.c renamed from
71342         path-concat.h and path-concat.c.
71343         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71344         (Include): filenamecat.h, not path-concat.h.
71345         * modules/mkdir-p: Renamed from modules/makepath.
71346         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71347         makepath.c.
71348         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71349         (Include): mkdir-p.h, not makepath.h.
71350
71351 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71352
71353         Sync from coreutils.
71354         * m4/mkdir-p.m4: Renamed from makepath.m4.
71355         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71356         Rename files from makepath.c to mkdir-p.c, and from
71357         makepath.h to mkdir-p.h.
71358         * m4/filenamecat.m4: Renamed from path-concat.m4.
71359         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71360         Rename files from path-concat.c to filenamecat.c,
71361         and from path-concat.h to filenamecat.h.
71362         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71363         "file name" in local variables or comments.
71364         * m4/rename.m4: Likewise.
71365
71366 2005-06-01  Bruno Haible  <bruno@clisp.org>
71367
71368         * modules/csharpexec: New file.
71369         * MODULES.html.sh (C#): New section.
71370
71371 2005-06-01  Bruno Haible  <bruno@clisp.org>
71372
71373         * m4/csharp.m4: New file, from GNU gettext.
71374         * m4/csharpexec.m4: New file, from GNU gettext.
71375
71376 2005-06-01  Bruno Haible  <bruno@clisp.org>
71377
71378         * lib/csharpexec.h: New file, from GNU gettext.
71379         * lib/csharpexec.c: New file, from GNU gettext.
71380         * lib/csharpexec.sh.in: New file, from GNU gettext.
71381
71382 2005-05-31  Derek Price  <derek@ximbiot.com>
71383             Paul Eggert  <eggert@cs.ucla.edu>
71384
71385         Sync from cvs.
71386         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71387
71388 2005-05-31  Derek Price  <derek@ximbiot.com>
71389             Paul Eggert  <eggert@cs.ucla.edu>
71390
71391         Sync from cvs.
71392         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71393
71394 2005-05-29  Derek Price  <derek@ximbiot.com>
71395
71396         * config/srclist.txt (glob_.h, glob.c): Add these files.
71397
71398 2005-05-29  Derek Price  <derek@ximbiot.com>
71399
71400         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71401         * modules/glob: New file.
71402         * modules/getlogin_r: Add link to POSIX spec in description.
71403
71404 2005-05-29  Derek Price  <derek@ximbiot.com>
71405             Paul Eggert  <eggert@cs.ucla.edu>
71406
71407         * m4/glob.m4: New file.
71408
71409 2005-05-29  Derek Price  <derek@ximbiot.com>
71410             Paul Eggert  <eggert@cs.ucla.edu>
71411
71412         * lib/glob_.h, lib/glob.c: New files.
71413
71414 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71415
71416         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71417         * modules/fts-lgpl (Depends-on): Remove gettext.
71418
71419 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71420
71421         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71422         and don't require gt_INTTYPES_PRI.
71423
71424 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71425
71426         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71427
71428         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71429         the configuration hassle isn't worth it.
71430         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71431         (LONGEST_MODIFIER, PRIuMAX): Remove.
71432
71433 2005-05-27  Bruno Haible  <bruno@clisp.org>
71434
71435         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71436
71437 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71438
71439         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71440         _POSIX_PTHREAD_SEMANTICS for Solaris.
71441
71442 2005-05-25  Derek Price  <derek@ximbiot.com>
71443
71444         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71445
71446 2005-05-25  Derek Price  <derek@ximbiot.com>
71447             Paul Eggert  <eggert@cs.ucla.edu>
71448
71449         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71450         * lib/getlogin_r.c, getlogin_r.h: New files.
71451
71452 2005-05-25  Bruno Haible  <bruno@clisp.org>
71453             Derek Price  <derek@ximbiot.com>
71454
71455         * lib/getlogin_r.h: Simplify API documentation.
71456
71457 2005-05-23  Derek Price  <derek@ximbiot.com>
71458
71459         * modules/minmax (Files): Add m4/minmax.m4.
71460         (configure.ac): Add gl_MINMAX.
71461
71462 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71463
71464         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71465         so that unistd-safer.h (GPL'ed code) need not be included.
71466
71467 2005-05-22  Bruno Haible  <bruno@clisp.org>
71468
71469         * m4/minmax.m4: New file.
71470         Based on a patch by Derek Price <derek@ximbiot.com>.
71471
71472 2005-05-22  Bruno Haible  <bruno@clisp.org>
71473
71474         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71475         (INT64_MIN): Fix definition.
71476         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71477
71478         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71479         NEED_SIGNED_INT_TYPES.
71480
71481         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71482         HAVE_SYSTEM_INTTYPES.
71483
71484 2005-05-22  Bruno Haible  <bruno@clisp.org>
71485
71486         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71487         Also include <sys/param.h> if it defines MIN, MAX.
71488         Based on a patch by Derek Price <derek@ximbiot.com>.
71489
71490 2005-05-21  Jim Meyering  <jim@meyering.net>
71491
71492         * modules/fts (Files): Add m4/inttypes-pri.m4.
71493         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71494
71495 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71496
71497         New fts module.
71498         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71499         (setup_dir, free_dir): New functions.
71500         (enter_dir, leave_dir): Define trivial
71501         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71502         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71503         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71504         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71505         Move to fts-cycle.c.
71506         (fts_open): Use setup_dir.
71507         (fts_close): Use free_dir.
71508         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71509         This adds a label and some gotos, but the alternatives were messier.
71510         Check for memory allocation failure when entering a dir.
71511         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71512         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71513         (FTS): New member fts_cycle, that is a union that contains the
71514         old active_dir_ht and cycle_state.  All uses changed to mention
71515         fts_cycle.ht and fts_cycle.state.
71516         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71517         fts.c, with the following changes:
71518         (setup_dir, free_dir): New functions.
71519         (enter_dir): Now returns bool.  Return true if successful, false
71520         if memory exhausted.  All callers changed.
71521         Do not bother partly cleaning up on
71522         memory allocation failure; that is free_dir's job.
71523         However, free ad if hash_insert fails, to avoid memory leak.
71524         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71525         fts->fts_options to see which union member to use.
71526
71527 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71528
71529         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71530         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71531
71532 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71533
71534         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71535
71536 2005-05-20  Jim Meyering  <jim@meyering.net>
71537
71538         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71539         Now a macro, to pacify GCC.
71540
71541 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71542
71543         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71544         of -1.
71545
71546 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71547
71548         * lib/chown.c (rpl_chown): Return -1 on failure.
71549
71550 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71551
71552         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71553         Don't check for stddef.h.
71554         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71555         don't use its results.
71556         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71557         since we include them unconditionally.  Don't require
71558         AM_STDBOOL_H, since stdbool is a prerequisite.
71559         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71560         since we assume C89 or better.
71561         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71562         as we don't use their results.
71563         Don't check for fchdir, memmove, memset, strrchr, as we use
71564         them unconditionally.
71565         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71566         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71567
71568 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71571         Include <stddef.h> unconditionally, since we assume C89 now.
71572         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71573         * lib/fts.c: Include fts_.h first, to check interface.
71574         Do not include intprops.h; no longer needed.
71575         Include cycle-check.h and hash.h, since fts_.h no longer does.
71576         Remove unnecessary casts of closedir to void.
71577         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71578         decide whether to decrement nlinks.
71579         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71580         (FTS): Use struct hash_table * instead of Hash_table, so that
71581         we no longer need to include hash.h here.
71582
71583 2005-05-18  Jim Meyering  <jim@meyering.net>
71584
71585         * modules/dirfd (License): Change to LGPL.  Most of the code
71586         is already in the public domain.
71587
71588 2005-05-18  Jim Meyering  <jim@meyering.net>
71589
71590         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71591         Reported by Yoann Vandoorselaere.
71592
71593 2005-05-17  Jim Meyering  <jim@meyering.net>
71594
71595         * m4/fts.m4: New file, from coreutils.
71596
71597 2005-05-17  Jim Meyering  <jim@meyering.net>
71598
71599         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71600
71601 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71602
71603         Sync from coreutils.
71604         * m4/unlinkdir.m4: New file.
71605
71606 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71607
71608         Sync from coreutils.
71609         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71610         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71611         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71612         White space changes only.
71613         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71614         special.
71615         * lib/yesno.c: Include getline.h, not ctype.h.
71616         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71617         Use getline to remove arbitrary restriction on response length.
71618
71619 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71620
71621         * config/srclist-update: Spell out "Street" in FSF postal
71622         mail address; this is the style the FSF seems to prefer.
71623
71624         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71625         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71626         this updates FSF postal mail address.
71627
71628         Sync from coreutils.
71629         * modules/unlinkdir: New file.
71630         * modules/yesno (Depends-on): Add getline.
71631         * MODULES.html.sh (File system functions): Add unlinkdir.
71632
71633 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71634
71635         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71636         lib/strsep.h:
71637         Change the initial comment to refer to GPL, not LGPL.
71638         gnulib-tool will change it to LGPL as needed.
71639
71640         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71641         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71642         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71643         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71644         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71645         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71646         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71647         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71648         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71649         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71650         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71651         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71652         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71653         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71654         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71655         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71656         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71657         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71658         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71659         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71660         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71661         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71662         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71663         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71664         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71665         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71666         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71667         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71668         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71669         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71670         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71671         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71672         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71673         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71674         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71675         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71676         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71677         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71678         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71679         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71680         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71681         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71682         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71683         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71684         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71685         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71686         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71687         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71688         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71689         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71690         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71691         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71692         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71693         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71694         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71695         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71696         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71697         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71698         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71699         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71700         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71701         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71702         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71703         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71704         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71705         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71706         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71707         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71708         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71709         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71710         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71711         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71712         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71713         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71714         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71715         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71716         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71717         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71718         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71719         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71720         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71721         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71722         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71723         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71724         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71725         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71726         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71727         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71728         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71729         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71730         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71731         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71732         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71733         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71734         lib/yesno.c, lib/yesno.h:
71735         Update FSF postal mail address.
71736
71737 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71738
71739         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71740         tests/test-memmem.c, tests/test-stpncpy.c:
71741         Update FSF postal mail address.
71742
71743 2005-05-13  Bruno Haible  <bruno@clisp.org>
71744
71745         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71746         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71747         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71748         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71749         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71750         Add support for 64-bit integers in the MSVC compiler.
71751
71752 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71753
71754         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71755
71756 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71757
71758         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71759
71760 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71761
71762         * doc/getdate.texi (General date syntax): Don't say that date
71763         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71764         Problem reported by Nic Ferrier.
71765
71766 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71767
71768         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71769         specified in ai_socktype. Fix invalid ai_protocol
71770         check. ai_protocol is usually set to 0 or depending on
71771         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71772         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71773         ai_socktype / ai_protocol in the returned addrinfo structure.
71774
71775 2005-05-10  Simon Josefsson  <jas@extundo.com>
71776
71777         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71778         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71779
71780 2005-05-10  Karl Berry  <karl@gnu.org>
71781
71782         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71783         (from http://www.gnu.org/licenses).
71784         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71785         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71786         fdl.texi suffices.
71787
71788 2005-05-10  Karl Berry  <karl@gnu.org>
71789
71790         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71791         (COPYING.DOC): remove.
71792
71793         * config/srclist-update: new FSF address.
71794
71795 2005-05-10  Derek Price  <derek@ximbiot.com>
71796
71797         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71798         possible.
71799
71800 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71801             Bruno Haible  <bruno@clisp.org>
71802
71803         * modules/inet_ntop: New file.
71804         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71805         inet_ntop.
71806
71807 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71808             Bruno Haible  <bruno@clisp.org>
71809
71810         * m4/inet_ntop.m4: New file.
71811
71812 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71813             Bruno Haible  <bruno@clisp.org>
71814
71815         * lib/inet_ntop.h: New file.
71816         * lib/inet_ntop.c: New file, from glibc with modifications.
71817
71818 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71819
71820         * modules/time_r (License): Change to LGPL.
71821         * modules/extensions (License): Change to LGPL.  Actually,
71822         the license is more permissive than that, but currently gnulib-tool
71823         doesn't know how to handle more-permissive licenses.
71824
71825         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71826         Problem reported by Dave Love.
71827
71828 2005-05-08  Jim Meyering  <jim@meyering.net>
71829
71830         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71831         blank.
71832
71833 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71834
71835         * modules/argmatch (Depends-on): Add stdbool.
71836         * modules/backupfile (Depends-on): Likewise.
71837         * modules/chdir-long (Depends-on): Likewise.
71838         * modules/closeout (Depends-on): Likewise.
71839         * modules/cycle-check (Depends-on): Likewise.
71840         * modules/dirname (Depends-on): Likewise.
71841         * modules/fnmatch (Depends-on): Likewise.
71842         * modules/fsusage (Depends-on): Likewise.
71843         * modules/fwriteerror (Depends-on): Likewise.
71844         * modules/getcwd (Depends-on): Likewise.
71845         * modules/getloadavg (Depends-on): Likewise.
71846         * modules/hard-locale (Depends-on): Likewise.
71847         * modules/makepath (Depends-on): Likewise.
71848         * modules/mountlist (Depends-on): Likewise.
71849         * modules/nanosleep (Depends-on): Likewise.
71850         * modules/posixtm (Depends-on): Likewise.
71851         * modules/quotearg (Depends-on): Likewise.
71852         * modules/readtokens (Depends-on): Likewise.
71853         * modules/readtokens0 (Depends-on): Likewise.
71854         * modules/readutmp (Depends-on): Likewise.
71855         * modules/save-cwd (Depends-on): Likewise.
71856         * modules/strftime (Depends-on): Likewise.
71857         * modules/userspec (Depends-on): Likewise.
71858         * modules/utimecmp (Depends-on): Likewise.
71859         * modules/xgetcwd (Depends-on): Likewise.
71860         * modules/xnanosleep (Depends-on): Likewise.
71861         * modules/xstrtod (Depends-on): Likewise.
71862         * modules/yesno (Depends-on): Likewise.
71863
71864 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71865
71866         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71867         needless checks.
71868
71869 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71870
71871         Merge from coreutils.  Among other things,
71872         add bulletproofing for cases where stdin, stdout, or stderr are closed.
71873         * lib/fd-safer.c: New file.
71874         * lib/fcntl-safer.h, open-safer.c: Remove.
71875         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
71876         * lib/dup-safer.c: Include unistd-safer.h first.
71877         Don't include errno.h.
71878         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
71879         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
71880         * lib/file-type.c: Rely on file-type.h change.
71881         * lib/getloadavg.c: Include unistd-safer.h.
71882         (getloadavg): Use safer open.
71883         * lib/getusershell.c: Include "stdio-safer.h".
71884         (getusershell): Use safer fopen.
71885         * lib/long-options.c (long_options): Use NULL rather than 0.
71886         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
71887         'free'.
71888         * lib/modechange.c: Likewise.
71889         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
71890         (MODE_DONE): New constant.
71891         (struct mode_change): Remove 'next' member.
71892         (make_node_op_equals): New function; like the old one of the
71893         same name, except it allocates an array.
71894         (mode_compile, mode_create_from_ref): Use it.
71895         (mode_compile): Allocate result as an array, not a linked list.
71896         Parse octal string ourself, so that we catch mistakes like "+0".
71897         (mode_adjust): Arg is an array, not a linked list.
71898         * lib/modechange.c: Include stat-macros.h, xalloc.h.
71899         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
71900         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
71901         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
71902         Remove.  This is now stat-macros.h's job.
71903         (talloc): Remove.  All callers replaced by xalloc, so that
71904         our invokers don't have to worry about reporting memory failures.
71905         (make_node_op_equals): Remove.
71906         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71907         New constants.
71908         (struct mode_change): Moved here from modechange.h.
71909         (mode_append_entry): Remove.
71910         (mode_compile): Remove MASKED_OPS arg, since it encouraged
71911         apps to have incorrect behavior.  Use simpler algorithm for head
71912         and tail.  Don't futz with umask; that's now the job of mode_adjust.
71913         Detect more invalid usages rather than having somewhat-random behavior.
71914         Don't insert an "a=" action, as that leads to incorrect behavior.
71915         (mode_compile, mode_create_from_ref): Return NULL on error instead
71916         of an enum, since now there's only one way to have an error.  All
71917         callers changed.
71918         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
71919         at the correct time.  Simplify calculation of "+u" and its ilk.
71920         Don't mishandle "+X".
71921         (mode_free): Remove "register" and localize decls.
71922         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71923         (struct mode_change): Move to modechange.c; callers don't
71924         need to see this stuff.
71925         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
71926         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
71927         (mode_change, mode_adjust): Reflect the new signatures noted above.
71928         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
71929         that might redefine system include files.
71930         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
71931         (my_usleep): Use NULL rather than (void *) 0.
71932         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
71933         Use siginterrupt to specify that system calls should be interrupted.
71934         (rpl_nanosleep): Move initialization of suspended closer to call of
71935         my_usleep.
71936         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
71937         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
71938         (desirable_utmp_entry): New function.
71939         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
71940         using x2nrealloc, to simplify logic.
71941         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
71942         size calculation.  Do not assume utmp file is a regular file.
71943         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
71944         (READ_UTMP_CHECK_PIDS): New constant.
71945         * lib/save-cwd.c: Include unistd-safer.h.
71946         (save_cwd): Use fd_safer.
71947         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
71948         [!_LIBC] Include "stat-macros.h" instead.
71949         * lib/unistd-safer.h (fd_safer): New decl.
71950
71951 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71952
71953         * modules/getloadavg (Depends-on): Add unistd-safer.
71954         * modules/getusershell (Depends-on): Add stdio-safer.
71955         * modules/lstat (Depends-on): Remove xalloc.
71956         * modules/mkstemp (Depends-on): Add stat-macros.
71957         * modules/modechange (Depends-on): Remove xstrtol.
71958         Add stat-macros, xalloc.
71959         * modules/save-cwd (Depends-on): Add unistd-safer.
71960         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
71961         * modules/unistd-safer (Files): Add lib/fd-safer.c
71962         (Makefile.am): Remove lib_SOURCES.
71963
71964         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
71965         Remove fcntl-safer; unistd-safer supersedes it.
71966
71967 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71968
71969         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
71970         AC_HEADER_STAT.
71971         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
71972         (gl_PREREQ_CHOWN): Remove.
71973         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
71974         it.  Don't require AC_HEADER_STAT.
71975         (gl_PREREQ_LSTAT): Remove.
71976         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
71977         Don't require AC_HEADER_STAT.
71978         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
71979         (gl_PREREQ_RMDIR): Remove.
71980         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
71981         mention stat-macros.h or AC_HEADER_STAT, since we'll make
71982         the stat-macros module a prerequisite.
71983         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
71984         * m4/filemode.m4 (gl_FILEMODE): Likewise.
71985         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
71986         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
71987         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
71988         variable names.
71989         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
71990         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
71991         variable prefixes.
71992         * m4/fcntl-safer.m4: Remove.
71993         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
71994         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
71995         Invoke gl_PREREQ_FD_SAFER.
71996         (gl_PREREQ_FD_SAFER): New macro.
71997         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
71998         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
71999         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
72000         Remove duplicate call to AC_LIBOBJ(readutmp).
72001         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
72002
72003         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
72004         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
72005
72006 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72007
72008         * MODULES.html.sh (Misc): Add byteswap.
72009
72010 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72011
72012         * modules/getcwd (Depends-on): Add extensions.
72013         * modules/openat (Depends-on): Likewise.
72014
72015 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72016
72017         * modules/byteswap: New file.
72018
72019 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72020
72021         * m4/byteswap.m4: New file.
72022
72023 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72024
72025         * lib/byteswap_.h: New file.
72026
72027 2005-04-25  Karl Berry  <karl@gnu.org>
72028
72029         * m4/gettext.m4: Update from GNU gettext 0.14.4.
72030
72031 2005-04-25  Albert Chin  <china@thewrittenword.com>
72032
72033         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
72034         Toolkit C bug.
72035
72036 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
72037
72038         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
72039         (func_ln_if_changed): Remove forcibly for no error message
72040         in case file does not exist.
72041
72042 2005-04-19  Simon Josefsson  <jas@extundo.com>
72043
72044         * gnulib-tool (Options): Make --symlink mean --symbolic.
72045
72046 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
72047
72048         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
72049
72050 2005-04-16  Simon Josefsson  <jas@extundo.com>
72051
72052         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
72053
72054 2005-04-15  Simon Josefsson  <jas@extundo.com>
72055
72056         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
72057
72058 2005-04-15  Simon Josefsson  <jas@extundo.com>
72059
72060         * gnulib-tool: Rename --symlink to --symbolic.
72061
72062 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
72063
72064         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
72065         symbolic links to files instead of copying/moving.  Add --aux-dir,
72066         specifying directory relative --dir where auxiliary build tools
72067         are placed.
72068
72069 2005-04-14  Bruno Haible  <bruno@clisp.org>
72070
72071         * modules/allocsa (License): Change to LGPL.
72072         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72073
72074 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72075
72076         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
72077         that "UTC +1 second" continues to work.  Problem reported
72078         by Dmitry V. Levin.
72079         (relunit_snumber): New rule.
72080         (relunit): Use it.
72081
72082 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72083
72084         * lib/getdate.y (universal_time_zone_table): New constant.
72085         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
72086         universal_time_zone_table.
72087         (lookup_zone): Prefer universal_time_zone_table to
72088         local_time_zone_table, so that "GMT" time stamps are allowed in
72089         London during the summer.  Problem reported by Ian Abbott.
72090
72091 2005-04-12  Jim Meyering  <jim@meyering.net>
72092
72093         * lib/human.c (humblock): Set *options even when returning due to
72094         xstrtoumax conversion failure.  Thanks to a used-uninitialized
72095         warning from gcc-4.
72096
72097 2005-04-09  Jim Meyering  <jim@meyering.net>
72098
72099         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
72100         -Wuninitialized: initialize tm0.tm_year.
72101
72102 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
72103
72104         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
72105         count, since there's no maximum.  All uses changed.
72106         Add member dsts_seen.
72107         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
72108         not being INT_MAX.
72109         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
72110         Use pc_rels_seen to decide whther a date is absolute.
72111
72112         * lib/getdate.y (number): Don't overwrite year.
72113         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72114         check.
72115
72116 2005-04-02  Simon Josefsson  <jas@extundo.com>
72117
72118         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
72119         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
72120
72121 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
72122
72123         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
72124         where no absolute path name can be longer than PATH_MAX.
72125
72126 2005-03-27  Jim Meyering  <jim@meyering.net>
72127
72128         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
72129
72130 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
72131
72132         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
72133         "one's complement" -> "ones' complement" in comment, as per Knuth.
72134         "value of type" -> "type or expression" in comment.
72135         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
72136
72137 2005-03-26  Jim Meyering  <jim@meyering.net>
72138
72139         Comment nits.
72140         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
72141         Correct typos: s/or/of/.
72142
72143 2005-03-26  Jim Meyering  <jim@meyering.net>
72144
72145         * modules/check-include-files: Move to ../ and rename to...
72146         * check-module: ...this.
72147
72148 2005-03-25  Jim Meyering  <jim@meyering.net>
72149
72150         * modules/xvasprintf (Files): Add xalloc.h.
72151
72152 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72153
72154         * modules/gettext (Files): config/config.rpath ->
72155         build-aux/config.rpath
72156         * modules/iconv (Files): Likewise.
72157         Problem reported by Oskar Liljeblad.
72158
72159 2005-03-23  Jim Meyering  <jim@meyering.net>
72160
72161         * modules/check-include-files: New script to check for
72162         missing dependencies, multiple includes, etc.
72163
72164         * modules/c-strtold (Depends-on): Add xalloc.
72165         * modules/c-strtod (Depends-on): Add xalloc.
72166         * modules/hash (Depends-on): Add xalloc.
72167         (Files): Remove lib/xalloc.h.
72168
72169         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
72170         * modules/userspec (Files): Add lib/inttostr.h.
72171
72172 2005-03-23  Jim Meyering  <jim@meyering.net>
72173
72174         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
72175
72176 2005-03-22  Jim Meyering  <jim@meyering.net>
72177
72178         * modules/stat-macros: New module.
72179         * modules/canonicalize, modules/euidaccess, modules/file-type,
72180         * modules/filemode, modules/lchown, modules/makepath,
72181         * modules/rmdir, modules/stat: Depend on new stat-macros module
72182         rather than listing lib/stat-macros.h manually.
72183         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
72184
72185 2005-03-22  Jim Meyering  <jim@meyering.net>
72186
72187         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
72188
72189 2005-03-22  Bruno Haible  <bruno@clisp.org>
72190
72191         * config/srclist.txt: Replace target directory 'config' with
72192         'build-aux'.
72193         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
72194         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
72195         ../build-aux/.
72196
72197 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
72198
72199         * modules/chdir-long (Depends-on): Add mempcpy.
72200
72201         * modules/acl, modules/backupfile, modules/c-strtod,
72202         modules/c-strtold, modules/canon-host, modules/canonicalize,
72203         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
72204         modules/exclude, modules/exitfail, modules/file-type,
72205         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
72206         modules/getdate, modules/getline, modules/getpagesize,
72207         modules/getpass, modules/getugroups, modules/group-member,
72208         modules/hard-locale, modules/hash, modules/human, modules/idcache,
72209         modules/inttostr, modules/long-options, modules/makepath,
72210         modules/md5, modules/memcasecmp, modules/memcoll,
72211         modules/modechange, modules/mountlist, modules/path-concat,
72212         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
72213         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
72214         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
72215         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
72216         modules/strftime, modules/strndup, modules/strverscmp,
72217         modules/timespec, modules/unlocked-io, modules/userspec,
72218         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
72219         modules/yesno:
72220         Remove lib_SOURCES line from Makefile.am section, as this is now
72221         done automatically by the corresponding Autoconf macro.
72222
72223 2005-03-21  Jim Meyering  <jim@meyering.net>
72224
72225         Changes imported from coreutils.
72226
72227         * lib/cycle-check.c: Don't include xalloc.h.
72228
72229         * lib/path-concat.c: Don't include assert.h.
72230         (path_concat): Remove assertion that would have triggered
72231         for ABASE starting with more than one slash.
72232         Reported by Andreas Schwab.
72233
72234         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
72235         properly when ABASE is an absolute file name.
72236         Correct the description of this function.
72237         Include <assert.h>.
72238         Add an assertion and a test driver.
72239         This fixes a bug introduced on 2004-07-02.
72240         Andreas Schwab reported the resulting failure of cp --parents:
72241         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
72242
72243 2005-03-21  Jim Meyering  <jim@meyering.net>
72244
72245         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
72246         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
72247
72248 2005-03-21  Jim Meyering  <jim@meyering.net>
72249         and  Paul Eggert  <eggert@cs.ucla.edu>
72250
72251         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
72252         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
72253         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
72254         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
72255         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
72256         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
72257         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
72258         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
72259         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
72260         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
72261         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
72262         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
72263         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
72264         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
72265         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
72266         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
72267         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
72268         for these modules.
72269
72270 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
72271
72272         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
72273         (which shouldn't happen), generate nothing instead of returning 0
72274         immediately, so that nstrftime (NULL, ...) doesn't return 0.
72275
72276 2005-03-16  Bruno Haible  <bruno@clisp.org>
72277
72278         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
72279         HAVE_LONGLONG_64BIT.
72280
72281 2005-03-16  Bruno Haible  <bruno@clisp.org>
72282
72283         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
72284         HAVE_LONGLONG_64BIT.
72285
72286 2005-03-16  Bruno Haible  <bruno@clisp.org>
72287
72288         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
72289         HAVE_LONGLONG_64BIT.
72290
72291 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72292
72293         * lib/strftime.c (my_strftime): Prepend space to format so that we can
72294         reliably distinguish strftime failure from empty output on POSIX
72295         hosts.
72296
72297 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72298
72299         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72300         (iconv_string): Don't guess a size-zero buffer, as that might cause
72301         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72302         result would be 'too large', where 'too large' is (heuristically)
72303         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72304         overflow concerns.  This will prevent some unwanted malloc failures
72305         when the inputs are very large.
72306
72307 2005-03-15  Karl Berry  <karl@gnu.org>
72308
72309         * config/srclist.txt (config.rpath): from gettext.
72310         * config/config.rpath: update.
72311
72312 2005-03-15  Bruno Haible  <bruno@clisp.org>
72313
72314         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72315         to 'negate'.
72316
72317         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72318         variable.
72319
72320         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72321         results.
72322
72323 2005-03-14  Simon Josefsson  <jas@extundo.com>
72324
72325         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72326         <fx@gnu.org>.
72327
72328 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72329
72330         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72331         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72332         intprops.h.
72333         * lib/strtol.c: Likewise.
72334
72335 2005-03-14  Jim Meyering  <jim@meyering.net>
72336
72337         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72338         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72339         to be nonzero so that we (and caller) can detect the difference
72340         between a valid zero-length expansion and an error return, even
72341         when the underlying strftime fails before writing anything into
72342         that location.
72343
72344 2005-03-14  Bruno Haible  <bruno@clisp.org>
72345
72346         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72347         Update from GNU gettext 0.14.3.
72348
72349 2005-03-10  Jim Meyering  <jim@meyering.net>
72350
72351         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72352
72353 2005-03-10  Jim Meyering  <jim@meyering.net>
72354
72355         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72356         so that this module works on systems without fchdir.
72357
72358 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72359
72360         Factor int-properties macros into a single file, except for
72361         glibc-related files.
72362         * lib/intprops.h: New file.
72363         * lib/getloadavg.c: Include it instead of limits.h.
72364         (INT_STRLEN_BOUND): Remove.
72365         * lib/human.c: Include intprops.h.
72366         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72367         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72368         302/1000.
72369         * lib/inttostr.h: Include intprops.h instead of limits.h.
72370         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72371         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72372         for consistency with intprops.h.
72373         (time_t_is_integer, twos_complement_arithmetic): Use them.
72374         * lib/sig2str.h: Include <signal.h>, intprops.h.
72375         (INT_STRLEN_BOUND): Remove.
72376         * lib/strftime.c (TYPE_SIGNED): Remove.
72377         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72378         * lib/strtol.c: Adjust comments to match intprops.h.
72379         * lib/userspec.c: Include intprops.h.
72380         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72381         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72382         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72383         instead of rolling our own expressions.
72384         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72385
72386         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72387         instead of int.
72388         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72389         the right thing even if adding 1900 would overflow.  Similarly
72390         for tm_mon + 1 and tm_yday + 1.
72391         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72392         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72393         (DO_SIGNED_NUMBER): New macro.
72394         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72395
72396 2005-03-07  Bruno Haible  <bruno@clisp.org>
72397
72398         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72399
72400 2005-03-07  Bruno Haible  <bruno@clisp.org>
72401
72402         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72403
72404 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72405
72406         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72407         (func_import): Only replace files via --import when they have actually
72408         changed.
72409
72410 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72411
72412         * m4/mmap-anon.m4: New file.
72413         * m4/pagealign_alloc.m4: New file.
72414
72415 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72416             Bruno Haible  <bruno@clisp.org>
72417
72418         * modules/pagealign_alloc: New file.
72419         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72420
72421 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72422             Bruno Haible  <bruno@clisp.org>
72423
72424         * lib/pagealign_alloc.h: New file.
72425         * lib/pagealign_alloc.c: New file.
72426
72427 2005-03-03  Bruno Haible  <bruno@clisp.org>
72428
72429         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72430         Use an all-permissive copyright notice, recommended by RMS.
72431
72432 2005-03-02  Bruno Haible  <bruno@clisp.org>
72433
72434         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72435         of AIX, the replacement has to be done only after <string.h> is
72436         included, therefore not in config.h. stpncpy.h does the replacement,
72437         and stpncpy.c uses it.
72438
72439 2005-03-02  Bruno Haible  <bruno@clisp.org>
72440
72441         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72442         stpncpy.c uses it.
72443
72444 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72445
72446         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72447         The workaround isn't strictly needed for POSIX conformance, and
72448         it's too much of a pain to configure and maintain.  We'll ask
72449         people to fix their kernels instead.
72450         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72451         (NANOSLEEP_BUG_WORKAROUND): Remove.
72452         (xnanosleep): Remove the workaround.
72453
72454 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72455
72456         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72457         Reported by Derek Price.
72458         (Include): Add "timespec.h".
72459
72460         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72461
72462 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72463
72464         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72465         to detect nanosleep bug.
72466
72467 2005-03-01  Bruno Haible  <bruno@clisp.org>
72468
72469         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72470
72471 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72472
72473         * modules/gethrxtime: New file.
72474         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72475         (Depends-on): Add gethrxtime.
72476         (configure.ac): Add gl_XNANOSLEEP.
72477         (Makefile.am): Remove lib_SOURCES line.
72478
72479 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72480
72481         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72482         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72483
72484 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72485
72486         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72487         * lib/timespec.h (gettime): Return void, since it always
72488         succeeds now.  All uses changed.
72489         * lib/gettime.c (gettime): Likewise.
72490         [HAVE_NANOTIME]: Prefer nanotime.
72491         Assume gettimeofday succeeds, as POSIX requires.
72492         Assime time () succeeds, since other code already does.
72493         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72494         (timespec_subtract): Remove.
72495         (NANOSLEEP_BUG_WORKAROUND): New constant.
72496         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72497         things considerably.  Use it only on GNU/Linux hosts, since the
72498         workaround shouldn't be needed elsewhere.
72499
72500 2005-02-24  Bruno Haible  <bruno@clisp.org>
72501
72502         * modules/gettext (Files): Add m4/glibc2.m4.
72503
72504 2005-02-24  Bruno Haible  <bruno@clisp.org>
72505
72506         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72507         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72508         * m4/progtest.m4:
72509         Update from GNU gettext 0.14.2.
72510         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72511
72512 2005-02-24  Bruno Haible  <bruno@clisp.org>
72513
72514         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72515         * lib/config.charset: Update from GNU gettext 0.14.2.
72516
72517 2005-02-24  Bruno Haible  <bruno@clisp.org>
72518
72519         * lib/gettext.h: Update from GNU gettext 0.14.2.
72520
72521 2005-02-23  Simon Josefsson  <jas@extundo.com>
72522
72523         * m4/iconvme.m4: New file.
72524
72525 2005-02-23  Jim Meyering  <jim@meyering.net>
72526
72527         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72528         change.
72529         Thanks to Bruno Haible for catching it.
72530
72531 2005-02-22  Simon Josefsson  <jas@extundo.com>
72532
72533         * modules/iconvme: New file.
72534
72535         * MODULES.html.sh: Add iconvme.
72536
72537 2005-02-22  Simon Josefsson  <jas@extundo.com>
72538
72539         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72540
72541 2005-02-22  Simon Josefsson  <jas@extundo.com>
72542
72543         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72544
72545 2005-02-22  Jim Meyering  <jim@meyering.net>
72546
72547         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72548         s/ifndef/ifdef/.
72549
72550 2005-02-20  Neil Conway  <neilc@samurai.com>
72551
72552         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72553         returned by OSX/Darwin if the specified buffer is not large
72554         enough for the hostname.
72555
72556 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72557
72558         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72559         pass it to _help, otherwise the latter coredumps trying to
72560         dereference state.root_argp.
72561
72562 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72563
72564         * modules/chdir-long (Depends-on): Add memrchr.
72565         * modules/memrchr (Files): Add lib/memrchr.h.
72566         (Include): "memrchr.h".
72567
72568 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72569
72570         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72571
72572 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72573
72574         * lib/memrchr.h: New file.
72575         * lib/chdir-long.c: Include it.
72576         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72577         Don't bother including stddef.h.
72578
72579 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72580
72581         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72582         inclusion.
72583         Include <sys/types.h>, for dev_t.
72584         (ME_DUMMY, ME_REMOTE): Move from here....
72585         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72586         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72587         Dmitry V. Levin.
72588         Include mountlist.h first, to test the interface.
72589
72590 2005-01-29  Bruno Haible  <bruno@clisp.org>
72591
72592         * lib/progname.c (program_name): Initialize.
72593         Needed when linking statically on MacOS X.
72594
72595 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72596
72597         Sync from coreutils.
72598         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72599         (Depends-on): Add c-strtod.
72600         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72601
72602 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72603
72604         Sync from coreutils.
72605         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72606
72607         Remove files that are specific to coreutils.
72608         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72609
72610 2005-01-28  Bruno Haible  <bruno@clisp.org>
72611
72612         * modules/javacomp: New file.
72613         * MODULES.html.sh (Java): Add javacomp.
72614
72615 2005-01-28  Bruno Haible  <bruno@clisp.org>
72616
72617         * m4/javacomp.m4: New file, from GNU gettext.
72618
72619 2005-01-28  Bruno Haible  <bruno@clisp.org>
72620
72621         * lib/javacomp.sh.in: New file, from GNU gettext.
72622         * lib/javacomp.h: New file, from GNU gettext.
72623         * lib/javacomp.c: New file, from GNU gettext.
72624
72625 2005-01-26  Simon Josefsson  <jas@extundo.com>
72626
72627         * lib/gai_strerror.c: Use GPL in header.
72628
72629 2005-01-26  Bruno Haible  <bruno@clisp.org>
72630
72631         * modules/javaexec: New file.
72632         * MODULES.html.sh (Java): Add javaexec.
72633
72634 2005-01-26  Bruno Haible  <bruno@clisp.org>
72635
72636         * m4/javaexec.m4: New file, from GNU gettext.
72637
72638 2005-01-26  Bruno Haible  <bruno@clisp.org>
72639
72640         * lib/javaexec.sh.in: New file, from GNU gettext.
72641         * lib/javaexec.h: New file, from GNU gettext.
72642         * lib/javaexec.c: New file, from GNU gettext.
72643
72644 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72645
72646         * modules/lchown (Depends-on): Remove lchown.h
72647
72648 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72649
72650         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72651         must be defined if the header file was not found, in order
72652         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72653
72654 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72655
72656         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72657         initializers for struct pentry_state.
72658         (__argp_error): Check return value of __asprintf
72659         (__argp_failure): Translate error message
72660
72661         * lib/argp-parse.c: Removed braces around the expansion of N_()
72662
72663 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72664
72665         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72666         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72667         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72668         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72669         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72670         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72671         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72672         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72673         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72674         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72675         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72676         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72677         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72678         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72679         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72680         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72681         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72682         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72683         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72684         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72685         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72686         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72687         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72688         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72689         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72690         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72691         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72692         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72693         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72694         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72695         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72696         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72697         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72698         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72699         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72700         Use an all-permissive copyright notice, recommended by RMS.
72701
72702 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72703
72704         * modules/chdir-long (Depends-on): Remove mempcpy.
72705
72706 2005-01-21  Jim Meyering  <jim@meyering.net>
72707
72708         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72709         same value as for Solaris 9.
72710
72711         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72712         component length.  This included changing the parameter to be
72713         of type `char *' rather than `char const *'.
72714         * lib/chdir-long.h (chdir_long): Update prototype.
72715
72716         * lib/openat.c (fdopendir, fstatat): New functions.
72717         * lib/openat.h: Include headers required for use of DIR and struct
72718         stat.
72719         [AT_SYMLINK_NOFOLLOW]: Define.
72720         (fdopendir, fstatat): Add prototypes.
72721
72722 2005-01-21  Bruno Haible  <bruno@clisp.org>
72723
72724         * modules/classpath: New file.
72725         * MODULES.html.sh (Java): Add classpath.
72726
72727 2005-01-21  Bruno Haible  <bruno@clisp.org>
72728
72729         * lib/classpath.h: New file, from GNU gettext.
72730         * lib/classpath.c: New file, from GNU gettext.
72731
72732 2005-01-20  Simon Josefsson  <jas@extundo.com>
72733
72734         * modules/version-etc-fsf: New file.
72735
72736 2005-01-20  Simon Josefsson  <jas@extundo.com>
72737
72738         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72739         * lib/version-etc.c: Remove version_etc_copyright.
72740         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72741         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72742
72743 2005-01-20  Simon Josefsson  <jas@extundo.com>
72744
72745         * lib/base64.h (isbase64): Add.
72746
72747         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72748         using a unsigned prototype, don't inline.
72749         (base64_decode): Use it.
72750
72751 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72752
72753         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72754         it.
72755
72756 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72757
72758         * lib/save-cwd.c (save_cwd): Remove code to support the case
72759         where fchdir is missing or flaky.
72760
72761 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72762
72763         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72764
72765 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72766
72767         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72768         AC_LIBSOURCES now does this.
72769         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72770         with new ullong_max module.
72771
72772 2005-01-19  Bruno Haible  <bruno@clisp.org>
72773
72774         * modules/sh-quote: New file.
72775         * MODULES.html.sh (Executing programs): Add sh-quote.
72776
72777 2005-01-19  Bruno Haible  <bruno@clisp.org>
72778
72779         * lib/sh-quote.h: New file, from GNU gettext.
72780         * lib/sh-quote.c: New file, from GNU gettext.
72781
72782 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72783
72784         Merge from coreutils.
72785         * m4/ullong_max.m4: New file.
72786         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72787         (gl_MACROS): Assume localeconv exists.
72788
72789 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72790
72791         Merge changes from coreutils, as described below in several
72792         changelogs dated today.
72793
72794         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72795         (O_DIRECTORY): Remove; not needed here, since "." must be
72796         a directory.  All uses removed.
72797         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72798         universal on Suns, and we also need to test for IRIX.
72799         Revamp code to use 'if' rather than '#if'.
72800         Avoid unnecessary comparison of cwd->desc to 0.
72801
72802         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72803         for known valid error numbers rather than observed invalid ones.
72804
72805 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72806
72807         * modules/ullong_max: New file.
72808
72809         * modules/chdir-long, modules/openat: New files.
72810         * modules/save-cwd (Depends-on): Depend on chdir-long.
72811         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72812
72813 2005-01-18  Jim Meyering  <jim@meyering.net>
72814
72815         Merge from coreutils.
72816         * m4/chdir-long.m4, m4/openat.m4: New files.
72817         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72818         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72819         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72820         is sane and DOES follow symlinks.  Besides, testing 20 different
72821         systems found no broken chown implementations.
72822         Prompted by a change in rsync's copy of this macro.
72823         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72824
72825         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72826
72827         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72828         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72829         NULL-means-set-to-current-time semantics.
72830         Remove temporary file immediately, rather than waiting
72831         for configure's at-exit trap code to do it.
72832
72833 2005-01-18  Jim Meyering  <jim@meyering.net>
72834
72835         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72836
72837         * lib/utimens.c (futimens): Account for the fact that futimes
72838         can also fail with errno == ENOSYS or errno == ENOENT.
72839         Patch from Dmitry V. Levin.
72840
72841         Change the name of the robust chdir function from chdir to chdir_long.
72842         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72843         (restore_cwd): Use chdir_long, not chdir.
72844         * lib/chdir-long.c: Renamed from chdir.c.
72845         * lib/chdir-long.h: Renamed from chdir.h.
72846         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72847         Hurd.
72848
72849 2005-01-18  Bruno Haible  <bruno@clisp.org>
72850
72851         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72852         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72853         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72854         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72855         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72856         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72857         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72858         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72859         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72860         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72861         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72862         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72863         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72864         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72865         Use an all-permissive copyright notice, recommended by RMS.
72866
72867 2005-01-18  Bob Proulx  <bob@proulx.com>
72868
72869         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
72870         simplify offsetof() macro construct to avoid compile failure with
72871         native HP-UX 11.0 ANSI C compiler.
72872
72873 2005-01-17  Bruno Haible  <bruno@clisp.org>
72874
72875         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
72876         redundant because stpncpy.m4 takes care of it.
72877
72878 2005-01-17  Bruno Haible  <bruno@clisp.org>
72879
72880         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
72881
72882 2005-01-17  Bruno Haible  <bruno@clisp.org>
72883
72884         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
72885         used.
72886
72887 2005-01-17  Bruno Haible  <bruno@clisp.org>
72888
72889         * lib/fwriteerror.h (fwriteerror): Change specification to include
72890         fclose.
72891         * lib/fwriteerror.c: Include <stdbool.h>.
72892         (fwriteerror): At the end, close the file stream. Record whether
72893         stdout was already closed.
72894
72895 2005-01-17  Bruno Haible  <bruno@clisp.org>
72896
72897         * lib/execute.c (environ): Declare if needed.
72898         * lib/pipe.c (environ): Likewise.
72899         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
72900
72901 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72902
72903         * modules/argp: Depend on vsnprintf
72904
72905 2005-01-10  Jim Meyering  <jim@meyering.net>
72906
72907         * modules/closeout (Depends-on): Add atexit.
72908
72909 2005-01-06  Bruno Haible  <bruno@clisp.org>
72910
72911         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
72912
72913 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72914
72915         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
72916         definitions to be after all include files, to avoid collisions.
72917         Problem reported by Bob Proulx.
72918
72919 2005-01-04  Jim Meyering  <jim@meyering.net>
72920
72921         Changes imported from coreutils.
72922         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
72923         as the mkstemp template, use a temporary directory and an
72924         8.3-friendly template to avoid trouble on systems like DJGPP.
72925         Reported by Juan M. Guerrero via Stepan Kasal.
72926         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
72927         close. Remove the temporary directory right away, rather than waiting
72928         for configure's at-exit trap code to do it.
72929         Suggestion from Stepan Kasal.
72930
72931 2005-01-01  Simon Josefsson  <jas@extundo.com>
72932
72933         * gnulib-tool: Print #include directives when --import'ing.
72934
72935 2004-12-28  Simon Josefsson  <jas@extundo.com>
72936
72937         * tests/test-base64.c: Include required header files.  Remove
72938         unused variables.
72939
72940 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72941
72942         * modules/error (Depends-on): Remove gettext.
72943
72944 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72945
72946         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
72947         not needed.  This removes a dependency on the gettext module.
72948         [defined _LIBC]: Do not include <libintl.h>; not needed.
72949
72950 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72951
72952         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
72953         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
72954
72955 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72956
72957         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
72958         HAVE_DECL_STRTOLD.
72959
72960 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72961
72962         * modules/getdate (Depends-on): Remove alloca-opt.
72963
72964 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72965
72966         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
72967
72968 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72969
72970         * lib/argp-parse.c: Include <stddef.h>.
72971         (alignof, alignto): New macros.
72972         (parser_init): Don't assume that void * is aligned sufficiently
72973         for struct option.
72974
72975         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
72976         need to extend the stack.
72977         (YYINITDEPTH): New macro, so that the initial stack isn't overly
72978         large.
72979
72980 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72981
72982         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
72983
72984 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72985
72986         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
72987         (2004-10-24) change.  Apparently this was a false alarm.
72988
72989         * modules/getdate: Depend on alloca-opt, not alloca.
72990
72991 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72992
72993         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
72994         Remove now-obsolete comment about AIX.
72995         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
72996         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
72997         (YYMAXDEPTH): New macro.
72998
72999 2004-12-18  Simon Josefsson  <jas@extundo.com>
73000
73001         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
73002
73003 2004-12-18  Bruno Haible  <bruno@clisp.org>
73004
73005         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
73006
73007 2004-12-18  Bruno Haible  <bruno@clisp.org>
73008
73009         * lib/fatal-signal.c (fatal_signals): Make non-const.
73010         (init_fatal_signals): New function.
73011         (uninstall_handlers, install_handlers): Ignore signals that were set to
73012         SIG_IGN.
73013         (at_fatal_signal): Call init_fatal_signals.
73014         (init_fatal_signal_set): Likewise. Ignore signals that were set to
73015         SIG_IGN.
73016         Reported by Paul Eggert.
73017
73018 2004-12-18  Bruno Haible  <bruno@clisp.org>
73019
73020         * doc/alloca.texi: New file.
73021         * doc/alloca-opt.texi: New file.
73022
73023 2004-12-17  Jim Meyering  <jim@meyering.net>
73024
73025         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
73026         Otherwise, install-sh could exit with improper exit status when
73027         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
73028
73029 2004-12-16  Simon Josefsson  <jas@extundo.com>
73030
73031         * tests/test-base64.c: Add license.
73032
73033 2004-12-15  Stepan Kasal  <address@hidden>
73034
73035         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
73036
73037 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
73038
73039         * modules/getcwd (Files): Add m4/d-ino.m4.
73040         Suggested by Mark D. Baushke.
73041
73042 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73043
73044         * lib/getdate.y (textint): New member "negative".
73045         (time_zone_hhmm): New function.
73046         Expect 14 shift-reduce conflicts, not 13.
73047         (o_colon_minutes): New rule.
73048         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
73049         (yylex): Set the "negative" member of signed numbers.
73050
73051 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73052
73053         * doc/getdate.texi (Time of day items, Time zone items):
73054         Describe new formats +00:00, UTC+00:00.
73055
73056 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73057
73058         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
73059         spurious "-l"s.  Problem reported by Stepan Kasal.
73060
73061 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
73062
73063         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
73064         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
73065
73066 2004-12-04  Simon Josefsson  <jas@extundo.com>
73067
73068         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
73069         Vandoorselaere <yoann@prelude-ids.org>.
73070
73071 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         Changes imported from coreutils.
73074         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
73075         exist.
73076         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
73077
73078 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73079
73080         Changes imported from coreutils.
73081         * lib/hard-locale.c: Assume <locale.h> exists.
73082         Include "strdup.h".
73083         (GLIBC_VERSION): New macro.
73084         (hard_locale): Assume setlocale exists.
73085         Rewrite to avoid #ifdef.
73086         Use strdup rather than malloc + strcpy.
73087         * lib/human.c: Assume <locale.h> exists.
73088         (human_readable): Assume localeconv exists.
73089
73090 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73091
73092         * modules/hard-locale (Depends-on): Add strdup.
73093
73094 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73095
73096         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
73097         convert T2, not T.  (Imported from libc.)
73098
73099 2004-11-30  Simon Josefsson  <jas@extundo.com>
73100
73101         * modules/restrict (License): Change to LGPL.
73102
73103 2004-11-30  Simon Josefsson  <jas@extundo.com>
73104
73105         * m4/restrict.m4: Add copyright and copying conditions.
73106
73107 2004-11-30  Simon Josefsson  <jas@extundo.com>
73108
73109         * m4/base64.m4: New file.
73110
73111 2004-11-30  Simon Josefsson  <jas@extundo.com>
73112
73113         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73114         base64.
73115
73116         * tests/test-base64.c: New file.
73117
73118         * modules/base64: New file.
73119
73120 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73121
73122         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
73123         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
73124
73125         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
73126
73127 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73128
73129         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
73130         (__getcwd.c): Don't restore errno; glibc doesn't.
73131         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
73132         first, falling back to our code only if its results look suspicious.
73133         Ensure that the resulting buffer is only as large as necessary.
73134
73135         * lib/readutmp.c: Include readutmp.h first.
73136         Include <errno.h>, since readutmp.h no longer does that.
73137         * lib/readutmp.h: Don't include <errno.h>,
73138         <sys/param.h>, <time.h>; not needed to establish interface.
73139         (errno): Remove decl.
73140         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
73141         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
73142         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
73143
73144 2004-11-28  Simon Josefsson  <jas@extundo.com>
73145
73146         * lib/base64.h, base64.c: New file.
73147
73148 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73149
73150         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
73151
73152 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73153
73154         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
73155         (Depends-on): Remove pathmax, same.  Add mempcpy.
73156         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
73157         (Makefile.am): Append getcwd.h to lib_SOURCES.
73158         (Include): Add getcwd.h.
73159         (Maintainer): Change from Jim Meyering to "all, glibc",
73160         since getdate now uses intended-for-glibc code.
73161         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
73162         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
73163
73164 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73165
73166         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
73167         HP's ANSI C compiler.
73168         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
73169         Declaring int functions causes warnings on some modern systems and
73170         shouldn't be needed to compile on ancient ones.
73171         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
73172         defined.
73173
73174         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
73175         with the following changes.
73176         (__set_errno): Parenthesize properly.
73177         Include <stdbool.h>.
73178         (MIN, MAX, MATCHING_INO): New macros.
73179         (__getcwd): Define with prototype, not K&R form.
73180         Use heuristics to allocate default buffer on stack if possible.
73181         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
73182         behavior, and to avoid the PATH_MAX limit when computing
73183         ../../../../...
73184         Use MATCHING_INO to compare inode number to file.
73185         Check for arithmetic overflow in size calculations.
73186         Fix bug in reallocation of dot array that caused getcwd to fail
73187         on directories nested deeper than 75.
73188         Be more careful about saving errno on error.
73189         Do not use realloc; use only free+malloc, as this is a bit
73190         more flexible and avoids a needless copy operation.
73191         Do not inspect st_dev and st_ino for symbolic links; POSIX
73192         doesn't specify the latter.
73193         Check for closedir errors.
73194         Avoid needless casts.
73195         Use "#ifdef weak_alias" around weak_alias, to be like other
73196         glibc code.
73197         The following changes to getcwd.c have effect only when used in
73198         gnulib; they have no effect inside glibc proper.
73199         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
73200         as alloca isn't used.
73201         (alloca, __alloca): Likewise.
73202         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
73203         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73204         unconditionally, as gnulib assumes C89 or better.
73205         Do not include <sys/param.h>.
73206         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
73207         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
73208         better.
73209         (NULL) [!defined NULL]: Remove; we assume C89 or better.
73210         Include <dirent.h> in a way that is compatible with modern Autoconf.
73211         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
73212         New macros, if not already defined.
73213         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
73214         Use "_LIBC", not "defined _LIBC", for consistency.
73215         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
73216         a mempcpy module.
73217         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
73218         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
73219         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
73220         credit only to Jim Meyering and adjust the copyright dates.
73221         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
73222         <stdlib.h>, <unistd.h>, "pathmax.h".
73223         Instead, include "xgetcwd.h" (first) and "getcwd.h".
73224         (INITIAL_BUFFER_SIZE): Remove.
73225         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
73226
73227 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73228
73229         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
73230         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
73231         Use the _ONCE methods, for efficiency.
73232         Check for fcntl.h.  In test program, include <errno.h>
73233         and <fcntl.h> if available.  Remove old K&R cruft from
73234         test program.  Check for common errors in GNU/Linux,
73235         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
73236         don't do AC_LIBOBJ, as that's getcwd.m4's job.
73237         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
73238         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
73239         name accordingly.
73240         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
73241         accommodate new getcwd.c.
73242         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
73243         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
73244         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
73245         that's all we need now.
73246
73247 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73248
73249         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
73250         argp-parse.c depends on getopt internals, that means we should
73251         always use our getopt, to be on the safe side.
73252         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
73253         order not to spoil the result of an eventual previous invocation
73254         of gl_GETOPT_SUBSTITUTE.
73255
73256 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73257
73258         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
73259         redefinition warnings. To avoid them, include the defines
73260         in `#if !defined __need_getopt ... #endif'. The only place
73261         where __getopt_argv_const is used is in definitions
73262         of getopt_long and getopt_long_only below, which are as well
73263         protected by `#ifndef __need_getopt'.
73264         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
73265         __need_getopt after including <stdio.h> and <unistd.h> These
73266         headers might have defined it.
73267
73268 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73269
73270         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
73271
73272 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73273
73274         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
73275         (futimens): New function, which uses futimes if available.
73276         (futimens, utimens): Support timespec==NULL, with same semantics
73277         as utime and utimens.
73278         * lib/utimens.h (futimens): New decl.
73279
73280 2004-11-23  Jim Meyering  <jim@meyering.net>
73281
73282         * lib/getopt_.h: Remove trailing blanks.
73283
73284 2004-11-23  Jim Meyering  <jim@meyering.net>
73285
73286         * lib/__fpending.c: Add comment.
73287
73288 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
73289
73290         * modules/canonicalize (Depends-on): Add xreadlink.
73291         Problem reported by James Youngman.
73292
73293 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73294
73295         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73296         New macros.
73297         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73298         optopt): Use them instead of invoking ## directly; otherwise, the
73299         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73300
73301 2004-11-19  Bruno Haible  <bruno@clisp.org>
73302
73303         * lib/strtok_r.c: Move comments from here...
73304         * lib/strtok_r.h: ... to here.
73305
73306 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73307
73308         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73309         implementations that mishandle size_t overflow.
73310
73311 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73312
73313         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73314         might fail.  Problem reported by Yoann Vandoorselaere.
73315         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73316         implementations that mishandle size_t overflow.
73317
73318 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73319
73320         * modules/canon-host (Depends-on): Add strdup.
73321
73322 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73323
73324         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73325
73326 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73327
73328         * lib/canon-host.c: Include "strdup.h".
73329         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73330         Use strdup instead of malloc/strcpy to duplicate strings.
73331
73332         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73333         (human_space_before_unit): New constant.
73334         * lib/human.c (human_readable): Support it.
73335
73336         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73337         (xgetcwd): Set errno correctly when failing.
73338         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73339         the failure is actually due to a PATH_MAX problem.
73340
73341         Further getopt changes to make it more likely that glibc will
73342         buy the changes back.
73343         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73344         (getopt): Use it, so to preserve glibc semantic
73345         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73346         when compiling for libc.
73347         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73348         (getopt_long, getopt_long_only): Use it.
73349
73350         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73351         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73352         (getopt): Argv is now char * const *, as per standard.
73353         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73354         not char *__getopt_argv_const *.
73355         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73356         _getopt_long_only_r): Likewise.
73357         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73358         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73359         _getopt_long_r, _getopt_long_only_r): Likewise.
73360         * lib/getopt_.h (__getopt_argv_const): Remove.
73361         (getopt): Argv is now char * const *, as per standard.
73362
73363         * lib/getdate.y (tORDINAL): New token.
73364         (day, relunit): Allow it for relative times.
73365         (relative_time_table): Use tORDINAL for ordinals.
73366
73367 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73368
73369         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73370         Document that "second" isn't allowed as an ordinal number.
73371
73372 2004-11-16  Jim Meyering  <jim@meyering.net>
73373
73374         * modules/closeout (Depends-on): Add fpending.
73375
73376 2004-11-15  Jim Meyering  <jim@meyering.net>
73377
73378         * lib/closeout.c: Include "__fpending.h" once again.
73379         Include <stdbool.h>.
73380         (close_stdout): Don't fail just because stdout was closed initially,
73381         since some programs don't write to stdout in the normal course of
73382         operation (other than --version and --help), and we don't want this
73383         function to make e.g. `touch file >&-' fail.
73384         But do fail if it was closed and someone has tried to write to it.
73385         E.g., `printf foo >&-' must fail.
73386
73387 2004-11-13  Jim Meyering  <jim@meyering.net>
73388
73389         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73390
73391 2004-11-12  Simon Josefsson  <jas@extundo.com>
73392
73393         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73394         small doc fix is still pending.
73395
73396 2004-11-11  Simon Josefsson  <jas@extundo.com>
73397
73398         * modules/strtok_r: New file.
73399
73400         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73401         strtok_r.
73402
73403 2004-11-11  Simon Josefsson  <jas@extundo.com>
73404
73405         * m4/strtok_r.m4: New file.
73406
73407         * m4/getopt.m4: Replace opterr.
73408
73409 2004-11-11  Simon Josefsson  <jas@extundo.com>
73410
73411         * lib/strtok_r.h, strtok_r.c: New file.
73412
73413 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73414
73415         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73416         of replacing opterr, getopt, etc.  This should handle the
73417         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73418
73419 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73420
73421         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73422         we can stop lying to compilers about the constness of argv when we
73423         are compiled outside glibc.
73424         (getopt, getopt_long, getopt_long_only): Use it.
73425         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73426         _getopt_internal, getopt): Likewise.
73427         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73428         _getopt_long_only_r): Likewise.
73429         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73430         _getopt_long_r, _getopt_long_only_r): Likewise.
73431
73432         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73433         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73434         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73435         the other external symbols.
73436         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73437         declaration, since the above renaming now works around collisions.
73438
73439 2004-11-11  Jim Meyering  <jim@meyering.net>
73440
73441         * lib/linebreak.c: Remove trailing blanks.
73442         * lib/alloca_.h: Likewise.
73443         * lib/acosl.c: Likewise.
73444         * lib/euidaccess.c: Likewise.
73445         * lib/allocsa.h: Likewise.
73446
73447 2004-11-10  Simon Josefsson  <jas@extundo.com>
73448
73449         * m4/getaddrinfo.m4: New file.
73450
73451 2004-11-10  Simon Josefsson  <jas@extundo.com>
73452
73453         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73454
73455 2004-11-10  Simon Josefsson  <jas@extundo.com>
73456
73457         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73458         getaddrinfo.
73459
73460         * modules/getaddrinfo: New file.
73461
73462 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73463
73464         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73465
73466 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73467
73468         * lib/mktime.c (SHR): New macro, which is a portable
73469         substitute for >> that should work even on Crays.
73470         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73471         Problem reported by Mark D. Baushke in
73472         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73473         * lib/getdate.y (SHR): Likewise.
73474         (tm_diff): Use it.
73475         * lib/strftime.c (SHR): Likewise.
73476         (tm_diff): Use it.
73477         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73478         quote_these_too, so that right shifts are well defined.  All uses
73479         changed.
73480
73481 2004-11-10  Jim Meyering  <jim@meyering.net>
73482
73483         Ensure that no close failure goes unreported.
73484         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73485         return early when it seems there's nothing to flush.
73486         Don't include __fpending.h.
73487
73488 2004-11-10  Jim Meyering  <jim@meyering.net>
73489
73490         * modules/closeout (Depends-on): Remove fpending.
73491
73492 2004-11-10  Jim Meyering  <jim@meyering.net>
73493
73494         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73495
73496 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73497
73498         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73499         gl_FUNC_STRFTIME.
73500         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73501         and AC_REQUIRE when possible, to avoid duplicate checks.
73502         Check for <wchar.h>.
73503
73504 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73505
73506         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73507
73508 2004-11-09  Bruno Haible  <bruno@clisp.org>
73509
73510         * m4/sockpfaf.m4: New file.
73511
73512 2004-11-05  Bruno Haible  <bruno@clisp.org>
73513
73514         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73515         Reported by Mark D. Baushke <mdb@cvshome.org>.
73516
73517 2004-11-04  Bruno Haible  <bruno@clisp.org>
73518
73519         2004-09-11  Bruno Haible  <bruno@clisp.org>
73520                 * allocsa.valgrind: New file.
73521         2004-02-06  Bruno Haible  <bruno@clisp.org>
73522                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73523                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73524                 Reported by Christopher Seip <chris.seip@hp.com>.
73525
73526 2004-11-04  Bruno Haible  <bruno@clisp.org>
73527
73528         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73529         (Makefile.am): Distribute it.
73530
73531 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73532
73533         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73534         with errno == ERANGE if the buffer is too small.
73535         Problem reported by Mark D. Baushke.
73536
73537 2004-11-03  Albert Chin  <china@thewrittenword.com>
73538             Paul Eggert  <eggert@cs.ucla.edu>
73539
73540         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73541         equivalent, substitute $ac_type for equivalent type rather than
73542         blindly using uint32_t *always* which won't work if uint32_t is not
73543         available.  Define _UINT32_T to work around typedef of uint32_t if
73544         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73545         2.5.1.
73546
73547 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73548
73549         * m4/jm-macros.m4: Sync from coreutils.
73550         (gl_MACROS): Check for mbrlen, for pathchk.
73551         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73552
73553 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73554
73555         * lib/xreadlink.c (MAXSIZE): New macro.
73556         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73557         size does not exceed MAXSIZE.  Avoid cast.
73558         As suggested by Mark D. Baushke in
73559         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73560         if readlink fails with buffer size just under MAXSIZE, try again
73561         with MAXSIZE.
73562
73563 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73564
73565         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73566
73567 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73568         and  Paul Eggert  <eggert@cs.ucla.edu>
73569
73570         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73571         (get_date): Overparenthesize to avoid GCC warning.
73572
73573 2004-11-02  Bruno Haible  <bruno@clisp.org>
73574
73575         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73576         returns void.
73577
73578 2004-11-02  Bruno Haible  <bruno@clisp.org>
73579
73580         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73581         function returns void.
73582
73583 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73584
73585         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73586         fflush_unlocked, flockfile, funlockfile, funlockfile,
73587         fputs_unlocked, putc_unlocked.
73588
73589 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73590
73591         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73592         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73593         already declared.
73594
73595 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73596
73597         * modules/getdate (Files): Add doc/getdate.texi.
73598         (Depends-on): Add setenv, xalloc.
73599
73600 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73601
73602         * lib/getdate.y: Add support for TZ="foo" within a date string.
73603         Fix some bugs near time_t boundaries.  Reject dates with
73604         out-of-range components, e.g., "Sept 31".
73605         Include <stdlib.h>, "setenv.h", "xalloc.h".
73606         (ISDIGIT_LOCALE): Remove; unused.
73607         Note that the TZ and time functions used here are not reentrant.
73608         (mktime_ok, get_tz): New functions.
73609         (TZBUFSIZE): New constant.
73610         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73611         This requires that we sometimes generate our own TZ="XXX..." setting.
73612
73613 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73614
73615         * doc/getdate.texi: New file, from coreutils with modifications for
73616         the new TZ parsing.
73617
73618 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73619
73620         * lib/mktime.c (not_equal_tm): Remove redundant check.
73621
73622 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73623
73624         * modules/regex (lib_SOURCES): Add regex.c.
73625         Reported by James Youngman in
73626         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73627
73628 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73629
73630         * lib/getdate.y: Use Bison 1.875 features, and some minor
73631         code cleanups.  This change does not affect semantics.
73632         Don't include <stdlib.h>; no longer needed.
73633         Don't include unlocked-io.h; only the "#if TEST" code uses
73634         stdio, and performance isn't crucial there.
73635         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73636         Bison 1.875 features as described below.
73637         All uses of "PC." replaced by "pc->".
73638         (YYSTYPE): Add a forward declaration.
73639         (yylex, yyerror): Use full prototypes in forward decls.
73640         Use "%pure-parser" rather than obsolescent "%pure_parser".
73641         Use %parse-param and %lex-param instead of obsolescent
73642         YYPARSE_PARAM and YYLEX_PARAM.
73643         (meridian_table, month_and_day_table, time_units_table,
73644         relative_time_table, time_zone_table, military_table,
73645         lookup_zone, lookup_word, get_date):
73646         Use NULL instead of 0 where appropriate.
73647         (to_hour): Avoid abort (), to avoid a dependency on
73648         stdlib.h.
73649         (yyerror, yylex): Now accepts parser_control * arg.
73650         (main) [TEST]: Use '\0' rather than 0 for char.
73651
73652 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73653
73654         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73655
73656 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73657
73658         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73659         It's now the caller's responsibility to handle the case where
73660         !HAVE_GETPAGESIZE && !defined getpagesize.
73661
73662         * lib/mktime.c (leapyear): Arg is long int, not int.
73663
73664 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73665
73666         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73667
73668 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73669
73670         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73671         missing.  Problem reported by James Youngman.
73672
73673 2004-10-16  Simon Josefsson  <jas@extundo.com>
73674
73675         * gnulib-tool: Fix comments.  Fix parse problem.
73676         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73677
73678 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73679
73680         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73681         implementation of getopt_long.  Problem reported by Alexander Taler in:
73682         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73683
73684 2004-10-15  Bruno Haible  <bruno@clisp.org>
73685
73686         * gnulib-tool: Untabify. Initialize supplied_libname.
73687         (func_usage): More homogenous output.
73688         (func_modules_transitive_closure, func_modules_to_filelist,
73689         func_emit_lib_Makefile_am): New functions.
73690         (func_import): New function, extracted from big case statement. Use
73691         func_get_license, func_modules_transitive_closure,
73692         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73693         opt_lgpl. Don't use test -a, as it's not portable.
73694         (func_create_testdir): Use func_modules_transitive_closure,
73695         func_modules_to_filelist, func_emit_lib_Makefile_am.
73696
73697 2004-10-15  Bruno Haible  <bruno@clisp.org>
73698
73699         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73700
73701 2004-10-15  Bruno Haible  <bruno@clisp.org>
73702
73703         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73704         the portions belonging to each module.
73705         Suggested by Derek Robert Price <derek@ximbiot.com>.
73706
73707 2004-10-12  Simon Josefsson  <jas@extundo.com>
73708
73709         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73710         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73711         to real functions.
73712
73713 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73714
73715         * modules/vsnprintf: New file.
73716
73717 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73718
73719         * m4/vsnprintf.m4: New file.
73720
73721 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73722
73723         * lib/vsnprintf.h: New file.
73724         * lib/vsnprintf.c: New file.
73725
73726 2004-10-11  Bruno Haible  <bruno@clisp.org>
73727
73728         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73729         vsnprintf.
73730
73731 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73732
73733         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73734
73735 2004-10-07  Bruno Haible  <bruno@clisp.org>
73736
73737         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73738         fits into the provided buffer.
73739
73740 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73741
73742         * lib/diacrit.c, diacrit.h: Add GPL notice.
73743
73744         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73745         notice.
73746         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73747         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73748         This avoids a potential constant-folding bug.
73749
73750 2004-10-05  Bruno Haible  <bruno@clisp.org>
73751
73752         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73753         for the declaration of strsep.
73754
73755 2004-10-05  Bruno Haible  <bruno@clisp.org>
73756
73757         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73758
73759 2004-10-04  Simon Josefsson  <jas@extundo.com>
73760
73761         * modules/memmem: New file.
73762         * tests/test-memmem.c: New file.
73763         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73764
73765 2004-10-04  Simon Josefsson  <jas@extundo.com>
73766
73767         * m4/memmem.m4: New file.
73768
73769 2004-10-04  Simon Josefsson  <jas@extundo.com>
73770
73771         * lib/memmem.h: New file.
73772         * lib/memmem.c: New file, taken from glibc.
73773
73774 2004-10-04  Simon Josefsson  <jas@extundo.com>
73775
73776         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73777         '#ifdef USE_UNLOCKED_IO'.
73778
73779 2004-10-04  Simon Josefsson  <jas@extundo.com>
73780
73781         * config/srclist.txt: Add memmem from glibc.
73782
73783 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73784
73785         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73786
73787         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73788         modules/exclude, modules/getdate, modules/getline,
73789         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73790         modules/getusershell, modules/linebuffer, modules/md5,
73791         modules/mountlist, modules/posixtm, modules/readtokens,
73792         modules/readutmp, modules/regex, modules/sha1,
73793         modules/version-etc, modules/yesno:
73794         Remove dependency on unlocked-io.
73795
73796 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73797
73798         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73799
73800         * m4/unlocked-io.m4: Add copyright notice.
73801         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73802
73803 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73804
73805         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73806         * lib/xmalloc.c (xmemdup): Likewise.
73807         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73808         XFREE): Remove these long-obsolescent macros.
73809         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73810         * lib/xstrdup.c: Remove.
73811
73812         * lib/regex.c (re_comp): Cast gettext return value to char *,
73813         Problem reported by Martin Neitzel via Mark D. Baushke.
73814
73815 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73816
73817         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73818         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73819         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73820         regex.c, sha1.c, version-etc.c, yesno.c:
73821         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73822         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73823         the includer's responsibility.
73824
73825         Sync from coreutils.
73826
73827         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73828         points to the start of a string, as the C Standard says the
73829         resulting behavior is undefined.
73830
73831         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73832         simple -> simple_backups, numbered_existing ->
73833         numbered_existing_backups, numbered -> numbered_backups
73834         to avoid shadowing problems.  All uses changed.
73835         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73836         * lib/backupfile.c (check_extension, numbered_backup):
73837         Rename locals to avoid shadowing 'basename'.
73838         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73839         once.
73840
73841         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73842         * lib/.cvsignore: Add getopt.h.
73843
73844 2004-10-04  Bruno Haible  <bruno@clisp.org>
73845
73846         * modules/README: New file.
73847         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73848         not a module.
73849
73850 2004-10-02  Jim Meyering  <jim@meyering.net>
73851
73852         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73853
73854 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73855
73856         * modules/strsep: New file.
73857
73858 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73859
73860         * m4/strsep.m4: New file.
73861
73862 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73863
73864         * lib/strsep.h: New file.
73865         * lib/strsep.c: New file.
73866
73867 2004-10-01  Simon Josefsson  <jas@extundo.com>
73868
73869         * lib/snprintf.c (snprintf): Handle size==0.
73870
73871 2004-10-01  Simon Josefsson  <jas@extundo.com>
73872             Bruno Haible  <bruno@clisp.org>
73873
73874         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
73875         (snprintf): Declare 'args'.
73876
73877 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
73878
73879         * lib/snprintf.c: Remove comments as to why each header is needed.
73880
73881 2004-10-01  Bruno Haible  <bruno@clisp.org>
73882
73883         * MODULES.html.sh: Add strsep.
73884
73885 2004-09-30  Simon Josefsson  <jas@extundo.com>
73886
73887         * modules/snprintf: New file.
73888
73889 2004-09-30  Simon Josefsson  <jas@extundo.com>
73890
73891         * m4/snprintf.m4: New file.
73892
73893 2004-09-30  Simon Josefsson  <jas@extundo.com>
73894
73895         * lib/snprintf.h, lib/snprintf.c: New files.
73896
73897 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73898
73899         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
73900         (hol_entry_help): Never translate an empty string.
73901         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
73902         * lib/argp.h (OPTION_NO_TRANS): New option.
73903
73904 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73905
73906         * modules/argp (Maintainer): Replace Simon Josefsson
73907         by Sergey Poznyakoff.
73908
73909 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73910
73911         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
73912         changes merged back into glibc.
73913
73914 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73915
73916         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
73917
73918 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73919
73920         * lib/xvasprintf.c: Include xalloc.h.
73921         (xvasprintf): Use xalloc_die, not xmalloc_die.
73922
73923 2004-09-29  Bruno Haible  <bruno@clisp.org>
73924
73925         * modules/alloca-opt: New file, derived from modules/alloca.
73926         * modules/allocsa: Depend on alloca-opt instead of alloca.
73927         * modules/setenv: Likewise.
73928         * modules/vasnprintf: Likewise.
73929         * MODULES.html.sh: Add alloca-opt.
73930
73931 2004-09-28  Simon Josefsson  <jas@extundo.com>
73932
73933         * gnulib-tool: New parameter --lgpl, to asseert that modules are
73934         LGPL, and to replace license template from GPL to LGPL.
73935
73936 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73937
73938         * modules/dummy: Change license to LGPL.
73939
73940 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73941
73942         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
73943
73944 2004-09-24  Simon Josefsson  <jas@extundo.com>
73945
73946         * modules/minmax (License): Change from GPL to LGPL.
73947
73948 2004-09-23  Simon Josefsson  <jas@extundo.com>
73949
73950         * gnulib-tool (--import): Typo.
73951
73952 2004-09-23  Simon Josefsson  <jas@extundo.com>
73953
73954         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
73955
73956 2004-09-22  Bruno Haible  <bruno@clisp.org>
73957
73958         * modules/*: Add 'License' field.
73959         * gnulib-tool: Accept --extract-license option.
73960         (func_get_license): New function.
73961
73962 2004-09-21  Bruno Haible  <bruno@clisp.org>
73963
73964         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
73965         Reported by Simon Josefsson.
73966
73967 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73968
73969         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
73970         gl_AC_TYPE_LONG_LONG.
73971
73972 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73973
73974         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
73975
73976 2004-09-18  Simon Josefsson  <jas@extundo.com>
73977         and  Paul Eggert  <eggert@cs.ucla.edu>
73978
73979         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
73980         calls with autoreconf.  Define GL_LIB.
73981
73982 2004-09-14  Karl Berry  <karl@gnu.org>
73983
73984         * config/srclist.txt: unsync setenv.c, sigh.
73985
73986 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73987
73988         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
73989         Problem reported by Bruno Haible in:
73990         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
73991
73992 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73993
73994         * config/srclist.txt: Comment out argp-pvh.c.
73995
73996 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
73997
73998         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
73999         in case some system header has #define'd it.  Problem reported by
74000         Soeren D. Schulze in
74001         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
74002
74003 2004-09-09  Karl Berry  <karl@gnu.org>
74004
74005         * regex.[ch]: delete from the root.  These were supposed to be
74006                 synced with emacs cvs, but this has not happened for about
74007                 a year, and anyway nothing else uses emacs regex.[ch].
74008                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
74009                 lib/regex[.ch] is untouched.
74010
74011 2004-09-09  Bruno Haible  <bruno@clisp.org>
74012
74013         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
74014
74015 2004-09-09  Bruno Haible  <bruno@clisp.org>
74016
74017         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
74018         modifications.
74019         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
74020
74021 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74022
74023         * modules/xvasprintf: New file.
74024         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
74025
74026 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74027
74028         * lib/xvasprintf.h: New file.
74029         * lib/xvasprintf.c: New file.
74030         * lib/xasprintf.c: New file.
74031
74032 2004-09-08  Bruno Haible  <bruno@clisp.org>
74033
74034         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
74035
74036 2004-09-08  Bruno Haible  <bruno@clisp.org>
74037
74038         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
74039         length is > INT_MAX.
74040         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
74041         more.
74042
74043 2004-09-08  Bruno Haible  <bruno@clisp.org>
74044
74045         * lib/stdint_.h: New file, taken from GNU clisp.
74046
74047 2004-09-08  Bruno Haible  <bruno@clisp.org>
74048             Oskar Liljeblad  <oskar@osk.mine.nu>
74049
74050         * modules/stdint: New file.
74051         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
74052
74053 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74054
74055         Import from coreutils.
74056         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
74057         strings on unbounded length.  alloca's performance benefits aren't
74058         that important here.
74059         (V_STRDUP): Remove.
74060         (parse_with_separator): New function, with most of the internals
74061         of the old parse_user_spec.  Allow user to omit both user and group,
74062         for compatibility with FreeBSD.
74063         Clone only the user name, not the entire spec.
74064         Do not set *uid, *gid unless entirely successful.
74065         Avoid memory leak in some failing cases.
74066         Fix regression for USER.GROUP reported by Dmitry V. Levin in
74067         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
74068         (parse_user_spec): Rewrite to use parse_with_separator.
74069
74070 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74071
74072         * modules/userspec: Don't depend on alloca.
74073
74074 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74075
74076         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
74077
74078 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74079
74080         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
74081         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
74082         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
74083
74084 2004-08-16  Simon Josefsson  <jas@extundo.com>
74085
74086         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
74087         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
74088         Add --dry-run for --import.
74089         Let user provided command line parameters override configure.ac
74090         settings.
74091
74092 2004-08-12  Simon Josefsson  <jas@extundo.com>
74093
74094         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
74095         as discussed with Paul Eggert in threads rooted at
74096         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
74097         and
74098         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
74099         Before, the test was empty, and relied on ELIDE_CODE in source
74100         code.)
74101         (gl_PREREQ_GETOPT): New macro.
74102         (gl_GETOPT): Use them.
74103
74104 2004-08-12  Simon Josefsson  <jas@extundo.com>
74105
74106         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
74107         * lib/getopt_.h: Renamed from getopt.h.
74108
74109 2004-08-12  Simon Josefsson  <jas@extundo.com>
74110
74111         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
74112         Change default library name from libfoo to libgnu.
74113         Now, if you have a configure.ac that says:
74114                 gl_SOURCE_BASE(gl)
74115                 gl_M4_BASE(gl/m4)
74116                 gl_MODULES(error getopt etcetera)
74117                 gl_INIT
74118         you can import all you need by running:
74119                 ../gnulib/gnulib-tool --import
74120
74121         * modules/getopt (Files): Rename getopt.h to getopt_.h.
74122         (Makefile.am): Rewrite, use logic from argz.
74123         (Include): Use <getopt.h> instead of "getopt.h".
74124
74125 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74126
74127         * modules/argp (Files): Add m4/unlocked-io.m4.
74128         (Depends-on): Add extensions.
74129
74130 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74131
74132         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
74133         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
74134         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
74135         Check for program_invocation_name, program_invocation_short_name,
74136         flockfile, funlockfile, features.h, _getopt_long_only_r.
74137
74138 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74139
74140         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
74141         its complicated substitute.
74142         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
74143         and program_invocation_name.
74144         (__argp_basename) [!_LIBC]: Remove; the only use was
74145         replaced by its body.
74146         (__argp_short_program_name): Change condition from
74147         !defined __argp_short_program_name to
74148         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
74149         to match argp-namefrob.h.
74150         (__argp_failure): Don't assume strerror_r returns char *.
74151         * lib/argp-parse.c (N_): Define unconditionally.
74152         (argp_default_options): Fill out initializers with 0 to avoid
74153         gcc warnings.
74154
74155 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74156
74157         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
74158         getopt1.c.
74159
74160 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74161
74162         Merge from coreutils.
74163
74164         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
74165
74166         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
74167         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
74168
74169 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         Merge from coreutils.
74172
74173         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
74174         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
74175         for Reliant Unix 5.43.
74176
74177         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
74178         (union fooround): Use uintmax_t, not long int.
74179         The rest is a merge from libc:
74180         [defined _LIBC]: Include <shlib-compat.h>.
74181         (_obstack) [defined _LIBC]: Remove after 2.3.4.
74182
74183         * lib/settime.c (settime): Recode to avoid warning with
74184         Sun Forte C 6U2.
74185
74186         * lib/strverscmp.c: Convert to UTF-8.
74187
74188 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74189
74190         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74191         m4/uintmax_t.m4.
74192
74193 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74194
74195         * modules/xalloc-die: New file.
74196         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
74197
74198         * modules/md5 (Files): Add m4/uint32_t.m4.
74199         * modules/sha1: Renamed from modules/sha.
74200         (Files):
74201         Rename lib/sha.h to lib/sha1.h.
74202         Rename lib/sha.c to lib/sha1.c.
74203         Rename m4/sha.m4 to m4/sha1.m4.
74204         (lib_SOURCES): Likewise.
74205         (configure.ac): Rename gl_SHA to gl_SHA1.
74206         (Include): sha.h -> sha1.h.
74207
74208 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74209
74210         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
74211         * m4/sha1.m4: Renamed from sha.m4.
74212         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
74213
74214 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74215
74216         * lib/obstack.h (obstack_empty_p):
74217         Don't assume that chunk->contents is suitably aligned.
74218         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
74219         Likewise. Problem reported by Benno in
74220         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
74221
74222         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
74223         readable.  This could be improved further but it'd take some work.
74224
74225 2004-08-08  Simon Josefsson  <jas@extundo.com>
74226
74227         * modules/xgethostname (Depends-on): Remove exit and error (not
74228         used).
74229
74230         * modules/getpass-gnu: Add getpass.h.
74231         (Depends-on): Add stdbool.
74232         * modules/getpass: Add getpass.h.
74233
74234 2004-08-08  Simon Josefsson  <jas@extundo.com>
74235
74236         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
74237         Check getpass declaration.
74238
74239 2004-08-08  Simon Josefsson  <jas@extundo.com>
74240
74241         * lib/xgethostname.c: Don't include error.h (not used).
74242
74243         * lib/getpass.h: Add.
74244         * lib/getpass.c: Include getpass.h first.
74245
74246 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
74247
74248         * lib/xalloc-die.c: New file.
74249         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
74250         All uses removed.
74251         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
74252         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
74253         xalloc-die.c.
74254         (_, N_, xalloc_die): Move to xalloc-die.c.
74255         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
74256         so that we needn't mess with xalloc_msg_memory_exhausted.
74257
74258         * lib/sha1.h: Renamed from sha.h.
74259         (SHA1_H): Renamed from _SHA_H.
74260         (sha1_ctx): Renamed from sha_ctx.
74261         (sha1_init_ctx): Renamed from sha_init_ctx.
74262         (sha1_process_block): Renamed from sha_process_block.
74263         (sha1_process_bytes): Renamed from sha_process_bytes.
74264         (sha1_finish_ctx): Renamed from sha_finish_ctx.
74265         (sha1_read_ctx): Renamed from sha_read_ctx.
74266         (sha1_stream): Renamed from sha_stream.
74267         (sha1_buffer): Renamed from sha_buffer.
74268         * lib/sha1.c: Likewise; renamed from sha.c.
74269         Do not include <sys/types.h>.
74270         Include <stddef.h> rather than <stdlib.h>.
74271
74272 2004-08-08  Bruno Haible  <bruno@clisp.org>
74273
74274         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
74275         FILESYSTEM_PREFIX_LEN.
74276         * lib/progreloc.c: Likewise.
74277         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
74278
74279 2004-08-06  Simon Josefsson  <jas@extundo.com>
74280
74281         * modules/progname (Depends-on): Don't depend on stdbool.
74282
74283 2004-08-06  Simon Josefsson  <jas@extundo.com>
74284
74285         * modules/getsubopt: New file.
74286         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74287         getsubopt.
74288
74289 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74290
74291         More merge from coreutils.
74292
74293         * m4/utimens.m4, m4/utimecmp.m4: New files.
74294         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
74295         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74296         prereq.m4, sha.m4: Import changes from coreutils.
74297
74298 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74299
74300         More merge from coreutils.
74301         * modules/raise, modules/readtokens0, modules/utimens:
74302         * modules/utimecmp, module/xnanosleep: New files.
74303         * modules/strftime: Add lib/strftime.h.
74304         Change include from <time.h> to "strftime.h".
74305         * modules/yesno: Add lib/yesno.h.
74306         * modules/backupfile: Remove lib/addext.c.
74307         * modules/euidaccess: Add stat-macros.h.
74308         * modules/canonicalize, modules/euidaccess,
74309         modules/filemode, modules/lchown, modules/makepath,
74310         modules/rmdir, modules/stat: Likewise.
74311
74312 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74313
74314         Merge from tar.
74315         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74316         SIZE_MAX is a valid preprocessor constant.
74317         (__argp_basename): Change from "#ifndef _LIBC"
74318         to "#ifndef __argp_short_program_name", so that
74319         we don't compile these functions for tar.
74320
74321         More merges from coreutils.
74322         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74323         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74324         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74325         * lib/addext.c: Remove; no longer needed.
74326         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74327         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74328         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74329         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74330         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74331         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74332         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74333         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74334         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74335         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74336         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74337         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74338         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74339         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74340         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74341         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74342         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74343         Import changes from coreutils.
74344
74345 2004-08-05  Simon Josefsson  <jas@extundo.com>
74346
74347         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74348
74349 2004-08-05  Simon Josefsson  <jas@extundo.com>
74350
74351         * m4/getsubopt.m4: New file.
74352
74353 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74354
74355         Merge from coreutils.
74356
74357         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74358         * m4/getcwd-path-max.m4: New files.
74359
74360         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74361         FILESYSTEM_PREFIX_LEN ->
74362         FILE_SYSTEM_PREFIX_LEN.
74363         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74364         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74365         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74366         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74367
74368         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74369         prerequisite modules now handle the DOS stuff.
74370         Don't check for unistd.h.
74371
74372 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74373
74374         Merge from coreutils.
74375
74376         * lib/.gdb-history: Remove; this doesn't belong here.
74377
74378         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74379         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74380         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74381         * lib/getcwd.c: New files.
74382
74383         * lib/dirname.h: Include <stdbool.h>.
74384         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74385         for consistency with POSIX terminology.  All uses changed.
74386         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74387         (strip_trailing_slashes): Use bool for booleans.
74388         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74389
74390         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74391         sometimes returns a positive errno value even when it succeeds.
74392         (print_errno_message) [!LIBC]: Fall back on strerror if
74393         __strerror_r fails.
74394
74395         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74396         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74397         (longest_relative_suffix): New function.
74398         (path_concat): Use it.  Assume first argument is not NULL.
74399         Port to DOS.  Omit redundant separators.
74400         Report an error instead of returning NULL.
74401         Use mempcpy instead of memcpy.
74402         (xpath_concat): Remove: not declared or used.
74403
74404         * lib/same.h: Include <stdbool.h>
74405         (same_name): Return bool, not int.
74406         * lib/same.c (same_name): Likewise.
74407         (errno): Don't declare; we assume C89 or better now.
74408
74409         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74410         if not already defined.
74411
74412         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74413         * lib/dup-safer.c (errno): Likewise.
74414
74415 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74416
74417         Merge from coreutils.
74418         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74419         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74420         * modules/path-concat: Don't depend on strdup.
74421
74422 2004-08-03  Simon Josefsson  <jas@extundo.com>
74423
74424         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74425         * lib/progname.h: Don't include stdbool.h.
74426
74427 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74428
74429         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74430         * MODULES.html.sh (func_all_modules): Remove fatal.
74431
74432 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74433
74434         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74435
74436 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74437
74438         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74439         working.
74440
74441 2004-08-02  Simon Josefsson  <jas@extundo.com>
74442
74443         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74444         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74445         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74446
74447 2004-08-01  Simon Josefsson  <jas@extundo.com>
74448
74449         * lib/xgetdomainname.c: Include stdlib.h, for free().
74450
74451 2004-07-19  Bruno Haible  <bruno@clisp.org>
74452
74453         * MODULES.html.sh (func_all_modules): Add dummy.
74454
74455 2004-07-16  Simon Josefsson  <jas@extundo.com>
74456
74457         * modules/dummy: New file.
74458
74459 2004-07-16  Simon Josefsson  <jas@extundo.com>
74460
74461         * lib/dummy.c: New file.
74462
74463 2004-07-16  Bruno Haible  <bruno@clisp.org>
74464
74465         * lib/backupfile.h: Add extern "C" for C++.
74466         * lib/closeout.h: Likewise.
74467         * lib/copy-file.h: Likewise.
74468         * lib/findprog.h: Likewise.
74469         * lib/full-write.h: Likewise.
74470         * lib/pathname.h: Likewise.
74471         * lib/progname.h: Likewise.
74472         * lib/stpcpy.h: Likewise.
74473         * lib/stpncpy.h: Likewise.
74474         * lib/strcase.h: Likewise.
74475         * lib/strstr.h: Likewise.
74476         * lib/xalloc.h: Likewise.
74477
74478         * lib/mbswidth.h: Add extern "C" for C++.
74479         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74480
74481 2004-07-13  Robert Millan  <robertmh@gnu.org>
74482
74483         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74484
74485 2004-07-09  Simon Josefsson  <jas@extundo.com>
74486
74487         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74488         failed without this.)
74489
74490 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74491
74492         * modules/chown (Files): Add lib/fchown-stub.c, since
74493         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74494
74495 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74496
74497         * lib/fchown-stub.c: New file.
74498
74499 2004-06-24  Jim Meyering  <jim@meyering.net>
74500
74501         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74502
74503 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74504
74505         * modules/argz: Omit "#include".
74506
74507         * MODULES.html.sh (func_all_modules): Add calloc, to match
74508         2004-06-01 addition of calloc module.
74509
74510 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74511
74512         * m4/argz.m4: New file, which is autoupdated from libtool.
74513
74514 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74515
74516         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74517         libtool.
74518
74519 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74520
74521         * config/srclist-update: Don't insist on "USA." before the
74522         close-comment, as libtool omits the period and puts the */ on a
74523         separate line.
74524         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74525         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74526
74527 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74528
74529         * modules/argz: New file.
74530         * MODULES.html.sh (func_all_modules): Add argz.
74531
74532 2004-06-12  Jim Meyering  <jim@meyering.net>
74533         and  Paul Eggert  <eggert@cs.ucla.edu>
74534
74535         * modules/hash (Files): Add lib/xalloc.h.
74536         * modules/pipe (Depends-on): Add wait-process.
74537         * modules/stat (Depends-on): Add xalloc.
74538         * modules/userspec (Files): Add lib/userspec.h.
74539         * modules/xstrto
74540
74541         Upgrade from gettext-0.13.
74542         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74543         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74544         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74545
74546 2004-06-10  Jim Meyering  <jim@meyering.net>
74547
74548         * lib/calloc.c: New file.
74549
74550 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74551
74552         * lib/getdate.y (yylex): Allow space between sign and number.
74553         Problem reported by Dan Jacobson.
74554
74555 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74556
74557         Merge from coreutils CVS.
74558
74559         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74560         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74561         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74562         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74563         xstrtol.m4: Fix copyright date and/or serial number.
74564
74565         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74566         See if we need an fchown replacement.
74567         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74568         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74569         and use the replacement function if we detect either defect.
74570
74571         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74572         gl_UTIMECMP.
74573
74574 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74575         and  Jim Meyering  <jim@meyering.net>
74576
74577         Merge from coreutils CVS.
74578
74579         * lib/stat-macros.h: New file, with contents from file-type.h
74580         and coreutils' system.h.
74581         * lib/file-type.c: Include "stat-macros.h".
74582         * lib/file-type.h (file_type): Move all macro definitions to new file,
74583         stat-macros.h.
74584
74585         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74586         Wrap old code with this conditional.
74587         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74588         function that does not dereference symlinks.
74589         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74590
74591         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74592         dependency problems.
74593         (xreadlink): Accept new arg SIZE, for efficiency.
74594         All decls and uses changed.
74595         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74596
74597         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74598         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74599
74600         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74601         sysexits.h.
74602
74603 2004-06-01  Jim Meyering  <jim@meyering.net>
74604
74605         * m4/calloc.m4: New file.
74606
74607 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74608
74609         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74610         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74611         Also, fix a typo in a diagnostic.
74612
74613 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74614
74615         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74616         or AC_FUNC_REALLOC.
74617
74618 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74619
74620         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74621         macros to be defined.
74622         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74623         the allocator returns NULL because the requested size is zero.
74624
74625 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74626
74627         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74628         var.  Add comment explaining why libc still defines it.  This
74629         merges the following patch from glibc:
74630         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74631
74632 2004-05-20  Andreas Schwab  <schwab@suse.de>
74633
74634         * m4/free.m4: Replace free if it not known to work, not the other
74635         way round.
74636
74637 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74638
74639         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74640         present in glibc since revision 1.1 of this file.
74641         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74642         obstack_alignment_mask, obstack_alloc, obstack_base,
74643         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74644         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74645         obstack_grow0, obstack_init, obstack_int_grow,
74646         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74647         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74648         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74649         nonexistent functions.
74650
74651 2004-05-18  Karl Berry  <karl@gnu.org>
74652
74653         * config/srclist.txt: break link for vasnprintf.c.
74654
74655 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74656
74657         Port obstack to the AS/400, where pointers are 16 bytes wide and
74658         you cannot cast an integer to a valid pointer.  This patch is
74659         currently waiting to be integrated into glibc; see
74660         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74661
74662         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74663         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74664         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74665         (struct obstack): temp member is now a union of a pointer and
74666         an integer, instead of an integer.  All integer uses changed.
74667         This does not affect the physical layout of struct obstack,
74668         except on hosts (like the AS/400) where the size or alignment of
74669         void * is greater than that of ptrdiff_t.
74670         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74671         __STDC__)]: Store temporary in pointer member of union, not
74672         integer member.
74673         * lib/obstack.c: Include <stddef.h>, for offsetof.
74674         (struct fooalign): Remove; it doesn't need a name.
74675         (union fooround): Change double to long double, and add void *.
74676         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74677         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74678         not a macro.  Hence the values are always int; so remove all
74679         casts-to-int in uses.
74680
74681 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74682
74683         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74684         we can get this patch merged into glibc.
74685
74686 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74687             Paul Eggert  <eggert@cs.ucla.edu>
74688
74689         * m4/argp: Depend on alloca.
74690
74691 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74692             Paul Eggert  <eggert@cs.ucla.edu>
74693
74694         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74695         freecoding.
74696
74697 2004-05-17  Bruno Haible  <bruno@clisp.org>
74698
74699         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74700         precision that consists of a '.' followed by an empty digit string.
74701         Patch by Tor Lillqvist <tml@iki.fi>.
74702
74703 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74704
74705         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74706         for backward compatibility with older code.  We need our own
74707         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74708         it under some other name, and our alloca.h will define it.
74709
74710 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74711             Derek Price  <derek@ximbiot.com>
74712
74713         * lib/alloca.c: Include <alloca.h>, to get our interface.
74714         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74715         include <alloca.h> first.  Use C89 prototype for alloca; this
74716         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74717         Use #elif for simplicity, since we can assume C89 now.
74718         Don't try to source the system alloca.h since it will not be found
74719         and to prevent recursively including its replacement.
74720         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74721         * lib/regex.c: Likewise.
74722
74723 2004-05-16  Derek Price  <derek@ximbiot.com>
74724             Paul Eggert  <eggert@cs.ucla.edu>
74725
74726         getline cleanup.  This changes the getndelim2 API: both order of
74727         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74728         no delimiter).
74729
74730         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74731         interface does that.
74732         (getline): Always use getdelim, so that we don't have two
74733         copies of this code.
74734         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74735         if available.
74736         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74737         (GETNDELIM2_MAXIMUM): New macro.
74738         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74739         instead of the old practice of delim2==0.  All callers changed.
74740         Return -1 on overflow, instead of returning junk.
74741         Do not set *linesize unless allocation succeeds.
74742         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74743         that we include sys/types.h.
74744         * lib/getnline.h: Likewise.
74745         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74746         (getndelim2): Reorder arguments.
74747         * lib/getnline.c (getnline, getndelim):
74748         Don't discard the NMAX argument.
74749         (getnline): Invoke getndelim, to avoid code duplication.
74750         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74751         of (size_t) -1 by callers of the getnline family.
74752
74753 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74754
74755         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74756         Check for gettimeofday.
74757         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74758         Check for settimeofday, stime.
74759
74760 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74761
74762         * lib/nanosleep.c (suspended): Change its type from int to
74763         sig_atomic_t volatile.
74764         (first_call): Make it private to rpl_nanosleep, and have it
74765         be zero initially as that's a bit faster.
74766         (my_usleep): Round up fractional times instead of truncating them,
74767         as this is the usual meaning for 'sleep'.
74768
74769         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74770         doesn't work.
74771         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74772         (ENOSYS): Define if not defined.
74773         (settime): Fall back on stime if it exists and settimeofday fails.
74774         But don't bother with fallbacks if a method fails with errno == EPERM.
74775
74776 2004-05-11  Jim Meyering  <jim@meyering.net>
74777
74778         Prior to this change, the save_cwd caller required read access to the
74779         current directory on most systems (ones with the fchdir function).
74780
74781         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74782         fails, try write-only, and finally, resort to using xgetcwd.
74783
74784 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74785
74786         * lib/obstack.c, obstack.h: Import changes from libc.
74787
74788 2004-04-28  Bruno Haible  <bruno@clisp.org>
74789
74790         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74791         also implicitly appends .exe to executables.
74792         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74793         accepts Windows pathnames.
74794         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74795         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74796         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74797         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74798         Reported by Derek Robert Price <derek@ximbiot.com>.
74799
74800 2004-04-21  Karl Berry  <karl@gnu.org>
74801
74802         * config/srclist.txt (localcharset.c): break sync.
74803
74804 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74805
74806         * m4/host-os.m4: Add a copyright notice.
74807
74808 2004-04-20  Jim Meyering  <jim@meyering.net>
74809
74810         Change UTILS_ to gl_ in AC_DEFINE'd names.
74811         Change utils_- and jm_-prefixed variables, too.
74812         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74813         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74814         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74815
74816         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74817         Don't emit trailing blanks.
74818         Also rename jm_-prefixed variables to have gl_ prefix.
74819
74820         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74821         Also rename jm_-prefixed variables to have gl_ prefix.
74822
74823         * m4/jm-macros.m4: Reflect the renamings.
74824         * m4/prereq.m4: Likewise.
74825
74826 2004-04-20  Jim Meyering  <jim@meyering.net>
74827
74828         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74829         memory.
74830
74831 2004-04-20  Jim Meyering  <jim@meyering.net>
74832             Bruno Haible  <bruno@clisp.org>
74833
74834         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74835         memory when realloc fails.
74836
74837 2004-04-19  Jim Meyering  <jim@meyering.net>
74838
74839         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74840         now that readutmp.c may call `free (0)'.
74841
74842 2004-04-19  Bruno Haible  <bruno@clisp.org>
74843
74844         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74845         * m4/inttypes_h.m4: Likewise.
74846         * m4/stdint_h.m4: Likewise.
74847         * m4/intmax_t.m4: Likewise.
74848         * m4/uintmax_t.m4: Likewise.
74849
74850 2004-04-18  Jim Meyering  <jim@meyering.net>
74851
74852         * m4/prereq.m4: Don't forbid jm_ prefix.
74853
74854         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74855         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74856         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74857         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74858         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74859         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74860         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74861         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74862         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74863         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74864         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74865         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74866         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74867         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74868         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
74869         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
74870         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
74871         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
74872         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
74873
74874 2004-04-18  Jim Meyering  <jim@meyering.net>
74875
74876         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
74877         failure, don't leak memory and do call END_UTMP_ENT.
74878
74879 2004-04-16  Jim Meyering  <jim@meyering.net>
74880
74881         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
74882         coreutils' stat program.
74883         (gl_PREREQ): Don't require jm_PREREQ_STAT.
74884
74885 2004-04-11  Paul Eggert  <eggert@twinsun.com>
74886
74887         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
74888         C89.
74889         (CHAR_BIT): Remove, since we assume C89.
74890         Include <stdint.h> if available, as per current Autoconf CVS advice.
74891
74892 2004-03-31  Jim Meyering  <jim@meyering.net>
74893
74894         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
74895         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
74896         * m4/xalloc.m4: Likewise.
74897
74898 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74899
74900         Merge from coreutils.
74901
74902         * m4/inttostr.m4: New file.
74903         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
74904         Require AM_STDBOOL_H and gl_TIMESPEC instead.
74905         Require gl_CLOCK_TIME.
74906         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
74907
74908 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74909
74910         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
74911         not bool, to be more consistent with Unix conventions.
74912         Suggested by Bruno Haible.
74913
74914         Merge from coreutils.
74915
74916         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
74917         * lib/umaxtostr.c: New files.
74918
74919         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
74920         the usual <time.h> dance.
74921         (get_date): Change signature to support fractional time stamps.
74922         All callers changed.
74923         * lib/getdate.y: Include "getdate.h" first, as we can now
74924         assume C89 and don't need to worry about 'const'.
74925         Similarly, include "unlocked-io.h" near start, not in middle.
74926         Include <limits.h>.
74927         (textint.value): Use long int rather than int.
74928         (textint.digits): Use size_t rather than int.
74929         (BILLION, LOG10_BILLION): New constants.
74930         (parser_control): New member rel_ns.  Members day_ordinal,
74931         time_zone, month, day, hour, minutes, rel_year, rel_month,
74932         rel_day, rel_hour, rel_minutes, rel_seconds
74933         are now long int, not int.  Member seconds is now struct timespec,
74934         not int.  New member timespec_seen.  Members dates_seen, days_seen,
74935         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
74936         not int.
74937         (%union.intval): Now long int, not int.
74938         New member timespec.
74939         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
74940         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
74941         (spec): Now is a timespec or an item list.
74942         (timespec, items): New nonterminals.
74943         (time, rel, relunit, number, get_date):
74944         Add support for fractional seconds.
74945         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
74946         (gmtime, localtime, mktime): Remove decls; not needed with C89.
74947         (to_hour): First arg is now long int, not int.
74948         (to_year): Returns long int, not int.
74949         Don't treat year -70 like 70.
74950         (tm_diff): Returns long int, not int.
74951         (lookup_word): Use bool instead of int when appropriate.
74952         (yylex): Use size_t for count, not int.
74953         Detect overflow when parsing large integer constants.
74954         Add support for fractions.
74955         (get_date): Make pointers 'const' if possible.
74956         Use more-portable code to detect integer overflow.
74957         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
74958         Don't use ctime; it's not reliable if the year has >4 digits.
74959
74960         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
74961         This is for compatibility with BSD.
74962
74963         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
74964         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
74965         From coreutils' system.h.
74966
74967         * lib/userspec.c: Don't include "posixver.h".
74968         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
74969         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
74970         compatible extension.  Simplify code by removing a boolean int
74971         that was always nonzero if a string was nonnull.
74972
74973 2004-03-30  Jim Meyering  <jim@meyering.net>
74974
74975         Merge from coreutils.
74976
74977         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
74978         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
74979         on some systems one must include <grp.h> before it.
74980         Reported by Christian Krackowizer.
74981
74982 2004-03-30  Jim Meyering  <jim@meyering.net>
74983
74984         Merge from coreutils.
74985
74986         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
74987
74988         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
74989         an empty input stream.
74990
74991         * lib/readtokens.c: Include <stdbool.h>.
74992         (readtoken): Use `size_t' rather than int/long.
74993         All callers adjusted.
74994         Use `bool' rather than `int' where appropriate.
74995         Use memset rather than an explicit loop.
74996         Use x2nrealloc rather than xrealloc.
74997         Allow the use of `\0' as a delimiter.
74998         (readtokens): Likewise.
74999         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
75000
75001 2004-03-30  Jim Meyering  <jim@meyering.net>
75002
75003         * m4/realloc.m4: Remove file, since now it does no more than
75004         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
75005         the `configure.ac' section of module/realloc.
75006         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
75007
75008 2004-03-30  Bruno Haible  <bruno@clisp.org>
75009
75010         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
75011         nonnull.
75012
75013 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75014
75015         Merge changes to getloadavg.c from coreutils and Emacs.
75016
75017         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
75018         Define to an expression, not to the empty string.
75019         Include cloexec.h and xalloc.h.
75020         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
75021         Use set_cloexec_flag rather than rolling our own.
75022         * lib/cloexec.c, lib/cloexec.h: New files.
75023
75024 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75025
75026         * m4/cloexec.m4: New file.
75027
75028 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75029
75030         * lib/getopt.h: Sync with libc CVS.
75031
75032 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75033             Bruno Haible  <bruno@clisp.org>
75034
75035         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
75036         mbswidth.
75037
75038 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75039             Bruno Haible  <bruno@clisp.org>
75040
75041         * lib/mbswidth.h: Include <wchar.h> only if
75042         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
75043         <wchar.h>.
75044         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
75045
75046 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75047
75048         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
75049         Sync with libc CVS.
75050         * lib/getopt_int.h: New file, also synced from libc.
75051
75052 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75053
75054         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
75055         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
75056         Bring back getopt.c, getopt.h, getopt1.c.
75057
75058 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75059
75060         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
75061         All uses changed.  Check for sa_sigaction member; this fixes
75062         a bug first reported by Jason Andrade in
75063         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75064
75065 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75066
75067         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
75068         '#if' expressions.  Unlike the code it replaces, it does not
75069         depend on (defined _SC_PAGESIZE).  However, it does depend on
75070         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
75071         first reported by Jason Andrade in
75072         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75073
75074 2004-02-25  Simon Josefsson  <jas@extundo.com>
75075
75076         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
75077
75078 2004-02-25  Simon Josefsson  <jas@extundo.com>
75079
75080         * lib/strdup.h: New file.
75081         * lib/strdup.c: Include it.
75082         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
75083         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
75084
75085 2004-02-23  Karl Berry  <karl@gnu.org>
75086
75087         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
75088         (from fencepost.gnu.org:/gd/gnuorg).
75089
75090 2004-02-23  Karl Berry  <karl@gnu.org>
75091
75092         * config/srclistvars.sh (GNUORG) [karl]: redefine.
75093         * config/srclist.txt: add maintain/standards documents.
75094
75095 2004-02-18  Bruno Haible  <bruno@clisp.org>
75096
75097         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
75098         Reported by Derek Robert Price <derek@ximbiot.com>.
75099
75100 2004-02-16  Karl Berry  <karl@gnu.org>
75101
75102         * config/mkinstalldirs, install-sh: update from automake.
75103
75104 2004-02-06  Karl Berry  <karl@gnu.org>
75105
75106         * m4/po.m4: update from gettext 0.14.1.
75107
75108 2004-02-06  Karl Berry  <karl@gnu.org>
75109
75110         * lib/config.charset: update from gettext 0.14.1.
75111
75112 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75113
75114         Add comments and code, prompted by suggestions from Bruno Haible
75115         for sh-quote.
75116         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75117         describing the enum quoting_style values.
75118         * lib/quotearg.c (quotearg_alloc): New function.
75119         (quotearg_buffer_restyled): Treat lone { and } as special.
75120         Treat = as special.  Work around bug with older shells
75121         that "see" a '\' that is really the 2nd byte of a multibyte char.
75122         Quote empty string with shell_quoting_style.
75123
75124 2004-02-03  Bruno Haible  <bruno@clisp.org>
75125
75126         * m4/pipe.m4: New file, from GNU gettext.
75127
75128 2004-02-03  Bruno Haible  <bruno@clisp.org>
75129
75130         * lib/pipe.h: New file, from GNU gettext.
75131         * lib/pipe.c: New file, from GNU gettext.
75132
75133 2004-01-27  Bruno Haible  <bruno@clisp.org>
75134
75135         * m4/execute.m4: New file, from GNU gettext.
75136
75137 2004-01-27  Bruno Haible  <bruno@clisp.org>
75138
75139         * lib/execute.h: New file, from GNU gettext.
75140         * lib/execute.c: New file, from GNU gettext.
75141         * lib/w32spawn.h: New file, from GNU gettext.
75142
75143 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75144
75145         Merge from diffutils.
75146
75147         * lib/file-type.c (file_type): Add typed memory objects.
75148         * lib/file-type.h (S_TYPEISTMO): New macro.
75149
75150         * lib/c-stack.h (c_stack_action): Remove argv argument.
75151         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
75152         (die): Don't calculate message unless segv_action returns.
75153         (get_stack_location, min_address_from_argv, max_address_from_argv,
75154         volatile stack_base, volatile_stack_size): Remove.
75155         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
75156         that every segmentation violation is a stack overflow.  (Ouch!)
75157         See Debian bug 136249 (still outstanding) for more info about why
75158         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
75159
75160 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75161
75162         Exit-status fix from coreutils.
75163
75164         Use exit_failure consistently in place of EXIT_FAILURE,
75165         so that program exit statuses are consistent on failure.
75166
75167         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
75168         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
75169         * lib/argmatch.h: Comment fix to match the above.
75170         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
75171         Now a macro referring to exit_failure, instead of a separate
75172         variable.  Include "exitfail.h" to get it.
75173         * lib/xstrtol.h: Include "exitfail.h".
75174         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
75175
75176         * lib/long-options.c (parse_long_options): Use prototype
75177         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
75178         for clarity.
75179
75180 2004-01-21  Jim Meyering  <jim@meyering.net>
75181
75182         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
75183         so as not to conflict with a different-sized __mktime_internal
75184         function in GNU libc.
75185         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
75186         Problem building statically-linked `ls' reported by Michael Brunnbauer.
75187
75188 2004-01-20  Karl Berry  <karl@gnu.org>
75189
75190         * config/config.guess: update from config.
75191
75192         * config/srclistvars.sh: GNUWWWLICENSES for karl.
75193
75194 2004-01-20  Bruno Haible  <bruno@clisp.org>
75195
75196         Safer stack allocation.
75197         * lib/setenv.c: Include allocsa.h.
75198         (alloca): Remove fallback definition.
75199         (freea): Remove macro.
75200         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
75201         instead of freea.
75202
75203 2004-01-20  Bruno Haible  <bruno@clisp.org>
75204
75205         * m4/eealloc.m4: New file, from GNU gettext.
75206
75207 2004-01-20  Bruno Haible  <bruno@clisp.org>
75208
75209         * m4/allocsa.m4: New file, from GNU gettext.
75210
75211 2004-01-20  Bruno Haible  <bruno@clisp.org>
75212
75213         * lib/xallocsa.h: New file, from GNU gettext.
75214         * lib/xallocsa.c: New file, from GNU gettext.
75215
75216 2004-01-20  Bruno Haible  <bruno@clisp.org>
75217
75218         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
75219
75220 2004-01-20  Bruno Haible  <bruno@clisp.org>
75221
75222         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
75223         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
75224         specially.
75225
75226 2004-01-20  Bruno Haible  <bruno@clisp.org>
75227
75228         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
75229         patch.
75230
75231 2004-01-20  Bruno Haible  <bruno@clisp.org>
75232
75233         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
75234
75235 2004-01-20  Bruno Haible  <bruno@clisp.org>
75236
75237         * lib/eealloc.h: New file.
75238
75239 2004-01-20  Bruno Haible  <bruno@clisp.org>
75240
75241         * lib/binary-io.h: Avoid warnings on Cygwin.
75242
75243 2004-01-20  Bruno Haible  <bruno@clisp.org>
75244
75245         * lib/allocsa.h: New file, from GNU gettext.
75246         * lib/allocsa.c: New file, from GNU gettext.
75247
75248 2004-01-18  Karl Berry  <karl@gnu.org>
75249
75250         * doc/gpl.texi, doc/lgpl.texi: new files.
75251
75252 2004-01-18  Karl Berry  <karl@gnu.org>
75253
75254         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
75255         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
75256
75257 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75258
75259         Merge from coreutils.
75260
75261         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
75262         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
75263         (gl_DEFAULT_POSIX2_VERSION): Move
75264         the documentation from 'configure' into 'config.hin',
75265         so that 'configure --help' isn't burdened by it and
75266         we don't have to worry about its formatting there.
75267         Reword the documentation so that it's more succinct
75268         and can be run together into a single paragraph.
75269         * m4/same.m4 (gl_SAME): Check for pathconf.
75270
75271 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75272
75273         Merge from coreutils.
75274
75275         * lib/posixver.c: Include posixver.h.
75276
75277         * lib/same.c: Include <stdbool.h>, <limits.h>.
75278         (_POSIX_NAME_MAX): Define if not defined.
75279         (MIN): New macro.
75280         (same_name): If file names are silently truncated, report
75281         that the file names are the same if they are the same after
75282         the silent truncation.
75283
75284         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
75285         conversion function.
75286         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
75287         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
75288         longer needed.
75289
75290 2004-01-15  Jim Meyering  <jim@meyering.net>
75291
75292         Merge from coreutils.
75293
75294         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
75295         if no library is required.
75296         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75297         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75298         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75299         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75300         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75301         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75302         value, $ac_cv_search_crypt, if it's "none required".
75303         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75304         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75305         not gl_FUNC_GETLOADAVG.
75306         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75307         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75308
75309 2004-01-15  Jim Meyering  <jim@meyering.net>
75310
75311         Merge from coreutils.
75312
75313         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75314         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75315         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75316
75317         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75318         optional configure-time default.
75319
75320         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75321
75322         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75323
75324 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75325
75326         Merge from coreutils.
75327
75328         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75329         value, $ac_cv_search_nanosleep, if it's "none required".
75330
75331 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75332
75333         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75334         with like-named macro in fnmatch.c.
75335         (EXT): Use an internal constant instead.
75336
75337         Merge fnmatch patches from glibc.
75338         * lib/fnmatch.c (mbsinit): Remove define.
75339         Add libc_hidden_ver (__fnmatch, fnmatch).
75340         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75341         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75342
75343 2004-01-14  Karl Berry  <karl@gnu.org>
75344
75345         * config/install-sh: update from automake.
75346
75347 2004-01-13  Karl Berry  <karl@gnu.org>
75348
75349         * config/install-sh: update from automake.
75350
75351 2004-01-09  Karl Berry  <karl@gnu.org>
75352
75353         * config/install-sh: update from automake.
75354
75355 2004-01-05  Karl Berry  <karl@gnu.org>
75356
75357         * config/config.{sub,guess}: update from config.
75358
75359 2003-12-31  Karl Berry  <karl@gnu.org>
75360
75361         * config/depcomp: update from automake.
75362
75363 2003-12-14  Karl Berry  <karl@gnu.org>
75364
75365         * lib/config.charset: update from gettext-runtime.
75366
75367 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75368
75369         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75370         Bug reported by Alfred M. Szmidt.
75371
75372 2003-12-03  Bruno Haible  <bruno@clisp.org>
75373
75374         * m4/gettext.m4: Upgrade from gettext-0.13.
75375         * m4/po.m4: Upgrade from gettext-0.13.
75376         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75377         * m4/intmax.m4: New file, from gettext-0.13.
75378         * m4/printf-posix.m4: New file, from gettext-0.13.
75379
75380 2003-11-29  Karl Berry  <karl@gnu.org>
75381
75382         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75383
75384 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75385             Bruno Haible  <bruno@clisp.org>
75386
75387         * lib/printf-parse.h: Don't include sys/types.h.
75388         (ARG_NONE): New macro.
75389         (char_directive): Change type of *arg_index fields to size_t.
75390         * lib/printf-parse.c: Don't include sys/types.h.
75391         (SSIZE_MAX): Remove macro.
75392         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75393         Remove unnecessary overflow check.
75394         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75395         fields.
75396
75397 2003-11-25  Bruno Haible  <bruno@clisp.org>
75398
75399         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75400
75401 2003-11-25  Bruno Haible  <bruno@clisp.org>
75402
75403         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75404         gt_TYPE_SSIZE_T.
75405
75406 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75407
75408         * modules/alloca: Remove dependency on xalloc.
75409
75410 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75411
75412         * lib/alloca.c: Remove dependency on xalloc module.
75413         (xalloc_die): Remove.
75414         (memory_full) [!defined emacs]: New macro.
75415         [!defined emacs]: Don't include xalloc.h.
75416         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75417         address arithmetic overflows.  Change datatypes a bit to avoid
75418         unnecessary casts.
75419
75420 2003-11-22  Jim Meyering  <jim@meyering.net>
75421
75422         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75423         s/size/size_t/.
75424
75425 2003-11-21  Karl Berry  <karl@gnu.org>
75426
75427         * config/config.{sub,guess}: update from config.
75428
75429 2003-11-18  Karl Berry  <karl@gnu.org>
75430
75431         * config/config.{sub,guess}: update from config.
75432
75433         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75434
75435 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75436
75437         * README: Mention that S+T cannot overflow if S is the size of
75438         an existing object and T is sufficiently small.
75439
75440 2003-11-17  Jim Meyering  <jim@meyering.net>
75441
75442         On systems without utime and without a utimes function capable of
75443         dealing with a NULL struct utimbuf* argument, this utime replacement
75444         could -- in unusual circumstances -- leak a file descriptor.
75445         * lib/utime.c: Include <unistd.h> and <errno.h>.
75446         (utime_null): Be sure to close `fd' and to preserve errno.
75447         Reported by Geoff Collyer via Arnold Robbins.
75448
75449 2003-11-17  Bruno Haible  <bruno@clisp.org>
75450
75451         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75452         (Depends-on): Add xsize.
75453
75454 2003-11-17  Bruno Haible  <bruno@clisp.org>
75455
75456         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75457
75458 2003-11-17  Bruno Haible  <bruno@clisp.org>
75459
75460         * lib/vasnprintf.c (alloca): Remove fallback definition.
75461         (freea): Remove definition.
75462         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75463         Reported by Paul Eggert.
75464
75465 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75466             Bruno Haible  <bruno@clisp.org>
75467
75468         Protect against address arithmetic overflow.
75469         * lib/printf-args.h: Include stddef.h.
75470         (arguments): Change type of field 'count' to size_t.
75471         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75472         'unsigned int' where appropriate.
75473         * lib/printf-parse.h: Include sys/types.h.
75474         (char_directive): Change type of *arg_index fields to ssize_t.
75475         (char_directives): Change type of fields 'count', max_*_length to
75476         size_t.
75477         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75478         (SSIZE_MAX): Define fallback value.
75479         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75480         instead of 'int' where appropriate. Check a_allocated, d_allocated
75481         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75482         * lib/vasnprintf.c: Include xsize.h.
75483         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75484         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75485         overflow. Avoid wraparound when converting a width or precision from
75486         decimal to binary.
75487
75488 2003-11-16  Bruno Haible  <bruno@clisp.org>
75489
75490         Update from GNU gettext.
75491         * lib/printf-parse.c: Generalize to it can be compiled for wide
75492         strings.
75493         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75494         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75495         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75496         SNPRINTF): New macros.
75497         Don't include <alloca.h> if the file is used inside libintl.
75498         (local_wcslen): New function, for Solaris 2.5.1.
75499         (VASNPRINTF): Use it instead of wcslen.
75500
75501 2003-11-16  Bruno Haible  <bruno@clisp.org>
75502
75503         * lib/xsize.h (xmax): New function.
75504         (xsum, xsum3, xsum4): Declare as "pure" functions.
75505
75506 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75507
75508         * modules/xalloc (Files): Undo latest change, since xalloc.h
75509         no longer needs SIZE_MAX or PTRDIFF_MAX.
75510
75511 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75512
75513         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75514         gl_PTRDIFF_MAX.
75515
75516 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75517
75518         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75519         "return", to pacify some unknown compiler.  Problem reported
75520         by Joerg Schilling.
75521
75522 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75523
75524         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75525         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75526         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75527         heuristic is just as accurate as far as we know, and it removes a
75528         dependency on size_max.m4 and ptrdiff_max.m4.
75529
75530 2003-11-11  Bruno Haible  <bruno@clisp.org>
75531
75532         * modules/xsize (Files): Add m4/size_max.m4.
75533         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75534
75535 2003-11-11  Bruno Haible  <bruno@clisp.org>
75536
75537         * m4/size_max.m4: New file.
75538         * m4/ptrdiff_max.m4: New file.
75539         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75540         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75541         (gl_XALLOC): Invoke it.
75542
75543 2003-11-11  Bruno Haible  <bruno@clisp.org>
75544
75545         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75546         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75547         defined.
75548
75549 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75550
75551         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75552         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75553         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75554         From Bruno Haible.
75555         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75556         not (size_t) -1, since it's defined here.
75557
75558 2003-11-09  Karl Berry  <karl@gnu.org>
75559
75560         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75561
75562 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75563
75564         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75565         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75566         Reject sizes of exactly SIZE_MAX bytes.
75567         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75568         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75569
75570 2003-11-05  Bruno Haible  <bruno@clisp.org>
75571
75572         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75573         SIZE_MAX defined in <limits.h> on Solaris.
75574
75575 2003-11-04  Jim Meyering  <jim@meyering.net>
75576
75577         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75578         variable names, rather than @VAR@.
75579         * modules/poll: Likewise.
75580
75581 2003-11-04  Bruno Haible  <bruno@clisp.org>
75582
75583         * modules/xsize: New file.
75584         * modules/linebreak: Depend on xsize.
75585         * MODULES.html.sh (func_all_modules): Add xsize.
75586
75587 2003-11-04  Bruno Haible  <bruno@clisp.org>
75588
75589         * m4/xsize.m4: New file.
75590
75591 2003-11-04  Bruno Haible  <bruno@clisp.org>
75592
75593         * lib/xsize.h: New file.
75594         * lib/linebreak.c: Include xsize.h.
75595         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75596         argument for overflow.
75597         Suggested by Paul Eggert.
75598
75599 2003-11-03  Karl Berry  <karl@gnu.org>
75600
75601         * config/config.{guess,sub}: update from config.
75602
75603 2003-11-03  Jim Meyering  <jim@meyering.net>
75604
75605         * modules/userspec (lib_SOURCES): Add userspec.h.
75606         (Include): Add "userspec.h".
75607         Improve description.
75608
75609 2003-11-03  Jim Meyering  <jim@meyering.net>
75610
75611         * lib/userspec.c: Include "userspec.h".
75612         * lib/userspec.h: New file.
75613
75614 2003-11-03  Bruno Haible  <bruno@clisp.org>
75615
75616         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75617
75618 2003-11-03  Bruno Haible  <bruno@clisp.org>
75619
75620         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75621         available, to avoid (extremely rare) race condition.
75622         Suggested by Paul Eggert.
75623
75624 2003-11-02  Karl Berry  <karl@gnu.org>
75625
75626         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75627
75628 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75629
75630         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75631         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75632         (read_filesystem_list): Set and use me_type_malloced.
75633         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75634         whatever the type happens to be), for brevity and consistency.
75635         Check for size calculation overflow on Alphas running OSF/1.
75636
75637 2003-10-31  Jim Meyering  <jim@meyering.net>
75638
75639         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75640
75641         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75642
75643 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75644             Bruno Haible  <bruno@clisp.org>
75645
75646         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75647         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75648
75649 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75650
75651         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75652         netbsd*-gnu*.  Suggested by Robert Millan.
75653
75654 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75655
75656         * modules/group-member: Depend on stdbool.
75657
75658 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75659
75660         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75661
75662 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75663
75664         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75665         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75666         after the 'gnu' in these cases.  This fixes some bugs in the
75667         previous change, and is based on suggestions by Robert Millan.
75668
75669 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75670
75671         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75672         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75673         no longer needed.
75674         * lib/quotearg.c (quotearg_n_options): Use it.
75675         * lib/group-member.c: Include <stdbool.h>.
75676         (free_group_info): Arg is now const *; don't free arg.
75677         (get_group_info): Now returns bool and accepts struct group_info *,
75678         rather than returning a malloc'ed struct group_info *.
75679         All uses changed.  Check for overflow in internal size calculation.
75680
75681         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75682         rather than xmalloc/xrealloc.
75683         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75684         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75685         conformance bug: the old code used a pointer after freeing the
75686         storage that it addressed.
75687         * lib/hash.c (hash_initialize): Simplify the code by using
75688         xalloc_oversized rather than doing it by hand.
75689         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75690         the buffer preserved.  Use free and xmalloc instead.
75691         * lib/quotearg.c (quotearg_n_options): Likewise.
75692         Use a simpler test for size overflow.  Don't use xalloc_oversized
75693         because unsigned int might be wider than size_t (!); this suggests
75694         that we should switch from unsigned int to size_t for slot numbers.
75695
75696 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75697
75698         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75699         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75700         NetBSD kernels.  Requested by Richard Stallman.
75701
75702 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75703
75704         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75705         to allocate the returned structure.  Do not allocate a subarray,
75706         as x2nrealloc will do that.
75707         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75708         instead of xnrealloc.
75709         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75710
75711 2003-10-27  Bruno Haible  <bruno@clisp.org>
75712
75713         * lib/stdbool_.h: Better support for BeOS.
75714
75715 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75716
75717         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75718         now uses inline.
75719
75720 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75721
75722         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75723         callers that want to do their own size-overflow checking.  Include
75724         <stdbool.h>, since xalloc_oversized returns bool.
75725         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75726         to use xalloc_oversized.
75727
75728         Add two functions x2realloc, x2nrealloc, for programs that grow
75729         arrays dynamically by doubling their sizes.
75730         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75731         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75732         New functions.
75733
75734         Port to C99 semantics for 'inline' of external functions.
75735         Bug reported by Bruno Haible.
75736         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75737         with the old contents of xnmalloc.
75738         (xnmalloc, xmalloc): Use it.
75739         (xnrealloc_inline): New static inline function,
75740         with the old contents of xnrealloc.
75741         (xnrealloc, xrealloc): Use it.
75742
75743         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75744         that.
75745
75746 2003-10-26  Karl Berry  <karl@gnu.org>
75747
75748         * config/srclist.txt (COPYING.DOC): no longer available from
75749         /gd/gnuorg; don't know where the ultimate source is.
75750
75751 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75752
75753         Fix several address-calculation bugs in the hash modules,
75754         plus some minor code cleanup.
75755
75756         * lib/hash.h: Include <stdbool.h>, for bool.
75757         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75758         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75759         hash_get_n_entries, hash_get_max_bucket_length,
75760         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75761         hash_rehash): Use size_t rather than unsigned.
75762         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75763         hash_get_n_buckets_used, hash_get_n_entries,
75764         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75765         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75766         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75767         Likewise.
75768         (SIZE_MAX): Define if not defined.
75769         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75770         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75771         hash_print):
75772         Use const * when possible.
75773         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75774         (check_tuning): Fix bug: if tuning parameters were very close to
75775         0 or 1, rounding errors could have caused subscript violations.
75776         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75777         (hash_initialize): Add 'fail:' label
75778         to free table and return NULL, and use it to simplify code.
75779         Use calloc rather than clearing the storage ourself.
75780         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75781         buffer size calculations.
75782         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75783         Include <stddef.h>, for size_t.
75784         * lib/hash-pjw.c (hash_pjw): Likewise.
75785         Switch to method described by Bruno Haible.
75786         Include <limits.h>, for CHAR_BIT.
75787         (SIZE_BITS): New macro.
75788
75789 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75790
75791         * m4/getline.m4 (AM_FUNC_GETLINE):
75792         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75793         hosts.  Problem reported by Derek Robert Price in
75794         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75795         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75796         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75797
75798 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75799
75800         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75801         ceiling the allocation at NMAX bytes rather than silently
75802         discarding input bytes before NMAX is reached.  This makes
75803         a difference only if NMAX exceeds SIZE_MAX / 2.
75804
75805         * lib/obstack.c: Merge from glibc.
75806         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75807         Add libc_hidden_def (_obstack_newchunk).
75808         (_obstack_free) [! defined _LIBC]: Remove.
75809         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75810         a clone of the function body.
75811         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75812         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75813
75814         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75815         glibc.
75816         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75817         arg to memcpy.
75818
75819         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75820         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75821         Don't use lvalue casts, as GCC plans to remove support for them
75822         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75823         was also present in the non-GCC version, indicating that this
75824         code had always been buggy and had never been widely used.
75825         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75826         Use the fast variant of each macro, rather than copying the
75827         definiens of the fast variant; that way, we'll be more likely to
75828         catch future bugs in the fast variants.
75829
75830 2003-10-20  Bruno Haible  <bruno@clisp.org>
75831
75832         * modules/wait-process: New file.
75833         * MODULES.html.sh (func_all_modules): Add wait-process.
75834
75835 2003-10-20  Bruno Haible  <bruno@clisp.org>
75836
75837         * m4/wait-process.m4: New file.
75838
75839 2003-10-20  Bruno Haible  <bruno@clisp.org>
75840
75841         * lib/wait-process.h: New file, from GNU gettext.
75842         * lib/wait-process.c: New file, from GNU gettext.
75843
75844 2003-10-19  Jim Meyering  <jim@meyering.net>
75845
75846         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75847         HPUX 10.20.
75848
75849 2003-10-18  Karl Berry  <karl@gnu.org>
75850
75851         * config/config.guess: update from config.
75852
75853 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75854
75855         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75856         (getgroups): First arg is int, not size_t.
75857         Don't let 'free' mangle errno.
75858
75859 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75860
75861         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75862
75863 2003-10-16  Karl Berry  <karl@gnu.org>
75864
75865         * config/config.{guess,sub}: update from config.
75866
75867 2003-10-16  Jim Meyering  <jim@meyering.net>
75868
75869         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
75870         memcpy.
75871
75872 2003-10-15  Paul Eggert  <eggert@twinsun.com>
75873
75874         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
75875         (SIZE_MAX): Remove.
75876         (new_exclude, add_exclude_file): Initial size no longer needs to
75877         be a power of 2.
75878         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
75879         our own address arithmetic overflow checking.
75880
75881         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
75882         (fnmatch): Do not alloca more than 2000 wide characters;
75883         instead, use malloc for large buffers.
75884         Check for address arithmetic overflow, and return -1
75885         with errno set to ENOMEM in that case.
75886         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
75887         (NEW_PATTERN): Do not alloca more than 8000 bytes;
75888         instead, return -1.  Check for address arithmetic overflow.
75889
75890 2003-10-14  Paul Eggert  <eggert@twinsun.com>
75891
75892         Handle invalid suffixes and overflow independently, so that
75893         callers can treat them independently as needed.  Fix some bugs in
75894         suffix handling, e.g., "100k@" was not diagnosed as an invalid
75895         suffix for a human-readable blocksize.  The major caller-visible
75896         change is the addition of a new
75897         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
75898         that both overflow and suffix chars were found.
75899
75900         * lib/human.c (humblock): Don't check separately for invalid suffix
75901         char; that is xstrtoumax's job (now that its bug is fixed).
75902         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
75903         INTMAX_MAX]: New macros.
75904         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
75905         TYPE_MAXIMUM): New macros.
75906         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
75907         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
75908         if overflow occurs, as it's what __strtol does and it's more useful
75909         in practice.
75910         (__xstrtol): If __strtol reports some error other than ERANGE,
75911         reflect it to the caller as LONGINT_INVALID.  If it reports
75912         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
75913         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
75914         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
75915         value.
75916         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
75917         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
75918         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
75919         [defined UINTMAX_MAX]: New macros.
75920
75921 2003-10-14  Bruno Haible  <bruno@clisp.org>
75922
75923         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
75924
75925 2003-10-14  Bruno Haible  <bruno@clisp.org>
75926
75927         * m4/sig_atomic_t: New file, from GNU gettext.
75928         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
75929
75930 2003-10-14  Bruno Haible  <bruno@clisp.org>
75931
75932         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
75933         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
75934         Also use volatile where needed.
75935
75936 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75937
75938         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
75939         Change maintainer from Bruno Haible to 'all'.
75940
75941 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75942
75943         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
75944
75945 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75946
75947         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
75948         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
75949         and define in terms of the other primitives.
75950         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
75951         (SIZE_MAX): Define if not already defined.
75952         (array_size_overflow): New function.
75953         (xalloc_die): Abort instead of exiting if 'error' returns.
75954         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
75955         (xmalloc, xrealloc): Use them.
75956         (xcalloc): Check for address arithmetic overflow.
75957         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
75958         a bit faster than strcpy.
75959
75960 2003-10-10  Simon Josefsson  <jas@extundo.com>
75961
75962         * modules/argp (Depends-on): Add restrict and strcase.
75963
75964 2003-10-10  Simon Josefsson  <jas@extundo.com>
75965
75966         * m4/argp.m4: Add AC_C_INLINE.
75967
75968 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75969
75970         Merge getpass from libc, plus a few fixes.
75971
75972         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
75973         Include <stdbool.h>.
75974         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
75975         __fsetlocking to empty.
75976         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
75977         do include <bits/libc-lock.h>.
75978         Do not include <fcntl.h>; not needed.
75979         [_LIBC]: Include <wchar.h>.
75980         (NOTCANCEL_MODE): New macro.
75981         (flockfile, funlockfile) [_LIBC]: New macros.
75982         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
75983         [!_LIBC]: New macros.
75984         (call_fclose): New function.
75985         (getpass): Use it.  Save tty stream separately; this simplifies the
75986         code and makes it more reliable if stdin happens to equal stdout.
75987         Invoke __fsetlocking on tty.
75988         Handle thread cancellation if needed.
75989         Namespace cleanup (use __tcgetattr, __getline).
75990         Use bool for Booleans.
75991         [USE_IN_LIBIO]: Handle wide streams.
75992         [!_LIBC]: Unconditionally do the fseek, since we don't know what
75993         stream might go where.
75994
75995         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
75996         doesn't have to include <stdio.h> before us.
75997         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
75998         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
75999         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
76000         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
76001         if not declared, so that we can use getpass.c code from libc without
76002         rewriting it.
76003         (flockfile, ftrylockfile, funlockfile): New macros.
76004
76005 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76006
76007         * modules/getpass: Depend on stdbool.
76008
76009 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76010
76011         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
76012
76013 2003-10-07  Karl Berry  <karl@gnu.org>
76014
76015         * config/config.{guess,sub}: update from config.
76016
76017 2003-10-06  Jim Meyering  <jim@meyering.net>
76018             Bruno Haible  <bruno@clisp.org>
76019
76020         This lets translators provide better translations for the
76021         "Written by ..." part of --version output.
76022         * lib/version-etc.h: Include stdarg.h.
76023         (version_etc_copyright): Declare as readonly.
76024         (version_etc): Make this function variadic with a NULL-terminated list
76025         of author name strings.
76026         (version_etc_va): New declaration.
76027         * lib/version-etc.c: Include stdarg.h, stdlib.h.
76028         (version_etc_copyright): Declare as readonly.
76029         (version_etc_va): New function. Provide a different translatable string
76030         for each possible number of authors < 10. Abbreviate when there are 10
76031         authors or more.
76032         (version_etc): Make this function variadic. Call version_etc_va.
76033         Suggestion from Gary V. Vaughan.
76034
76035         * lib/long-options.h (parse_long_options): Change prototype: the
76036         authors string is moved to the end and becomes variadic.
76037         * lib/long-options.c: Include stdarg.h.
76038         (parse_long_options): Make this function variadic, too.
76039         Call version_etc_va, not version_etc.
76040
76041 2003-10-06  Bruno Haible  <bruno@clisp.org>
76042
76043         * modules/version-etc-2: Remove file.
76044         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
76045
76046 2003-10-06  Bruno Haible  <bruno@clisp.org>
76047
76048         * modules/fatal-signal: New file.
76049         * MODULES.html.sh (func_all_modules): Add fatal-signal.
76050
76051 2003-10-06  Bruno Haible  <bruno@clisp.org>
76052
76053         * m4/fatal-signal.m4: New file.
76054         * m4/signalblocking.m4: New file, from GNU gettext.
76055
76056 2003-10-06  Bruno Haible  <bruno@clisp.org>
76057
76058         * lib/version-etc-2.h: Remove file.
76059         * lib/version-etc-2.c: Remove file.
76060
76061 2003-10-06  Bruno Haible  <bruno@clisp.org>
76062
76063         * lib/fatal-signal.h: New file, from GNU gettext.
76064         * lib/fatal-signal.c: New file, from GNU gettext.
76065
76066 2003-10-05  Paul Eggert  <eggert@twinsun.com>
76067
76068         * README: Rework advice for preventing empty .o files.
76069         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
76070         not <sys/types.h>.
76071
76072 2003-10-04  Karl Berry  <karl@gnu.org>
76073
76074         * lib/argp*: update from libc.
76075
76076 2003-10-04  Karl Berry  <karl@gnu.org>
76077
76078         * config/config.{guess,sub}: update from config.
76079
76080 2003-10-02  Bruno Haible  <bruno@clisp.org>
76081
76082         * modules/lchown (Include): Add lchown.h.
76083         * modules/time_r (Include): Use "..." syntax.
76084         * modules/xgetdomainname (Include): Add xgetdomainname.h.
76085
76086 2003-10-01  Simon Josefsson  <jas@extundo.com>
76087
76088         * MODULES.html.sh (func_all_modules): Move gethostname from section
76089         'based on' to section 'lacking' POSIX:2001.
76090
76091 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
76092
76093         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
76094         to output mode on the same stream.
76095
76096 2003-09-29  Paul Eggert  <eggert@twinsun.com>
76097
76098         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
76099         Fix arg typo in previous patch.
76100
76101 2003-09-28  Jim Meyering  <jim@meyering.net>
76102
76103         * lib/error.c: Correct cpp indentation.
76104
76105 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76106
76107         * modules/free: New file.
76108
76109 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76110
76111         * m4/free.m4: New file.
76112
76113 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76114
76115         * lib/minmax.h (MIN, MAX)
76116         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76117         Omit the special code that used __typeof__, since we worry that
76118         it could be more trouble than it's worth.  See:
76119         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
76120         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
76121
76122         * lib/free.c: New file.
76123
76124 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
76125
76126         Trivial fixes to Makefile.am parts of module listings.
76127         * modules/strstr: Append strstr.h to lib_SOURCES.
76128         * modules/strcase: Likewise, for strcase.h.
76129
76130 2003-09-27  Karl Berry  <karl@gnu.org>
76131
76132         * config/mkinstalldirs: update from automake.
76133
76134 2003-09-26  Paul Eggert  <eggert@twinsun.com>
76135
76136         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
76137         (error_tail): Do not loop, reallocating temporary buffer, since
76138         the output cannot contain more wide characters than the input
76139         contains bytes, the size must be big enough already.  This avoids
76140         one potential size overflow calculation.  Check for size overflow
76141         when calculating temporary buffer size.  Free temporary buffer
76142         when done, if it was allocated with malloc; this plugs a memory
76143         leak.  Remove casts from void * to pointers, that are no longer
76144         needed now that we're assuming C89 or better.
76145
76146         Merge error changes from glibc.
76147
76148         * lib/error.c, error.h: Update copyright notice header to match glibc.
76149         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
76150         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
76151         Disable cancellation while printing error.
76152         * lib/error.h: Prepend __ to parameter names.
76153
76154 2003-09-26  Jim Meyering  <jim@meyering.net>
76155
76156         * lib/error.c (error_tail): Move some declarations
76157         into inner scope where the local variables are used.
76158
76159 2003-09-26  Bruno Haible  <bruno@clisp.org>
76160
76161         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
76162         stpncpy().
76163         Don't define stpncpy through config.h; it's now done through stpncpy.h.
76164
76165 2003-09-26  Bruno Haible  <bruno@clisp.org>
76166
76167         * lib/stpncpy.h (gnu_stpncpy): New declaration.
76168         (stpncpy): Define as alias for gnu_stpncpy.
76169         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
76170
76171 2003-09-25  Simon Josefsson  <jas@extundo.com>
76172
76173         * lib/xgetdomainname.h: New file.
76174         * lib/xgetdomainname.c: New file.
76175
76176 2003-09-25  Simon Josefsson  <jas@extundo.com>
76177             Bruno Haible  <bruno@clisp.org>
76178
76179         * modules/getdomainname: New file.
76180         * modules/xgetdomainname: New file.
76181         * MODULES.html.sh (func_all_modules): Add getdomainname,
76182         xgetdomainname.
76183
76184 2003-09-25  Simon Josefsson  <jas@extundo.com>
76185             Bruno Haible  <bruno@clisp.org>
76186
76187         * m4/getdomainname.m4: New file.
76188
76189 2003-09-25  Simon Josefsson  <jas@extundo.com>
76190             Bruno Haible  <bruno@clisp.org>
76191
76192         * lib/getdomainname.h: New file.
76193         * lib/getdomainname.c: New file.
76194
76195 2003-09-25  Karl Berry  <karl@gnu.org>
76196
76197         * lib/argp-fmtstream.c, argp-help.c: update from libc.
76198
76199 2003-09-25  Karl Berry  <karl@gnu.org>
76200
76201         * config/install-sh: update from automake.
76202
76203 2003-09-25  Bruno Haible  <bruno@clisp.org>
76204
76205         * modules/version-etc-2: New file, from modules/version-etc with
76206         modifications.
76207         * MODULES.html.sh (func_all_modules): Add version-etc-2.
76208
76209 2003-09-25  Bruno Haible  <bruno@clisp.org>
76210
76211         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
76212         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
76213
76214 2003-09-24  Simon Josefsson  <jas@extundo.com>
76215
76216         * modules/xgethostname: Add xgethostname.h.
76217
76218 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76219
76220         * lib/linebuffer.c (freebuffer): Don't free the argument, just
76221         the buffer associated with the argument.  Bug reported by
76222         Simon Josefsson.
76223
76224 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76225
76226         * README: Document assumptions that 'int' is at least 32 bits
76227         wide, that integer arithmetic is 2's complement without overflow,
76228         that there are no holes in integer values, that adding sizes of
76229         two nonoverlapping objects can't overflow, and that all-bits-zero
76230         yields scalar zero.  Fix spelling and capitalization typos.
76231
76232 2003-09-19  Karl Berry  <karl@gnu.org>
76233
76234         * lib/argp.h: update from libc.
76235
76236 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76237
76238         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
76239         to avoid spurious warnings like "AC_RUN_IFELSE was called before
76240         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
76241
76242 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76243
76244         * gnulib-tool: Use "test -h", not "test -L", for portability
76245         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
76246         (tags_regexp): Remove, since \| doesn't conform to POSIX.
76247         (sed_extract_prog): Issue s commands one-by-one, rather than
76248         using \| in one s command.
76249
76250 2003-09-16  Paul Eggert  <eggert@twinsun.com>
76251
76252         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
76253         input error, instead of returning NULL the next time we are called
76254         (and therefore losing track of errno).
76255
76256 2003-09-16  Bruno Haible  <bruno@clisp.org>
76257
76258         * gnulib-tool (func_create_testdir): Warn about duplicated
76259         dependencies.
76260
76261 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76262
76263         * modules/argmatch, modules/fatal, modules/obstack,
76264         modules/xalloc, modules/xgethostname: Sort dependencies by
76265         importance, not alphabetically.
76266
76267 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76268
76269         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
76270         fails, so that the caller gets the proper errno.
76271
76272         * lib/readutmp.c (read_utmp): Likewise.
76273         Check for fstat error.  Close stream and free storage
76274         when failing.
76275
76276 2003-09-14  Karl Berry  <karl@gnu.org>
76277
76278         * config/srclist.txt (strdup.c): disable for c89 changes.
76279
76280 2003-09-14  Jim Meyering  <jim@meyering.net>
76281
76282         * lib/getloadavg.c: Correct cpp indentation.
76283         * lib/strdup.c: Likewise.
76284         * lib/vasnprintf.c: Likewise.
76285
76286 2003-09-14  Bruno Haible  <bruno@clisp.org>
76287
76288         * modules/fwriteerror: New file.
76289         * MODULES.html.sh (func_all_modules): Add fwriteerror.
76290
76291 2003-09-14  Bruno Haible  <bruno@clisp.org>
76292
76293         * lib/fwriteerror.h: New file.
76294         * lib/fwriteerror.c: New file.
76295
76296 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76297
76298         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76299         modules/xgethostname, modules/xalloc: Depend on exit.
76300
76301 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76302
76303         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76304
76305         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76306         and AC_MINIX, too, so that their extensions are available.
76307
76308         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76309         This macro has been superseded by gl_BACKUPFILE.
76310
76311         More patches to assume C89 or better.
76312
76313         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76314
76315         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76316         unconditionally.
76317         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76318         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76319         Include <string.h>, <stdlib.h> unconditionally.
76320         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76321         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76322         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76323         headers or for string.h.
76324         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76325         or strtoul.
76326
76327         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76328         headers.
76329         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76330         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76331         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76332         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76333         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76334         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76335         memcpy, memset.
76336         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76337         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76338         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76339         strtol.
76340         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76341         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76342         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76343         strtoul.
76344
76345 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76346
76347         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76348         * lib/obstack.c [!defined _LIBC]: Likewise.
76349         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76350         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76351         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76352
76353         More changes to assume C89 or better.
76354
76355         * lib/error.c (error_tail): Assume vprintf.
76356
76357         * lib/argmatch.c (getenv): Remove decl.
76358         * lib/progreloc.c (get_full_program_name): Define via prototype.
76359         * lib/setenv.c (clearenv): Likewise.
76360         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76361         needed.
76362         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76363         (malloc, memcpy): Remove decls.
76364         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76365         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76366         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76367         (memcpy): Remove macro.
76368         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76369         (__P): Remove.  All uses removed.
76370         (PTR): Remove.  All uses changed to void *.
76371         (CHAR_BIT, NULL): Remove.
76372         (spaces, zeros, memset_space, memset_zero)
76373         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76374         Remove.
76375         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76376         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76377         Define with prototype.
76378         Remove now-unnecessary prototype decl.
76379         (extra_args_spec): Assume ANSI C.  All uses changed.
76380         (extra_args_spec_iso): Remove.
76381         (my_strftime, emacs_strftimeu): Define via prototype.
76382         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76383         unconditionally.
76384         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76385         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76386         (strtoul, strtol): Remove decls.
76387         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76388         LONG_MAX): Remove.
76389         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76390         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76391         (LOCALE_PARAM_PROTO): New macro.
76392         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76393         (INTERNAL (strtol), strtol): Define with a prototype.
76394         (PARAMS): Remove.  All uses removed.
76395         * lib/tempname.c: Include <string.h> unconditionally.
76396         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76397         * lib/xgethostname.c (main): Define with a prototype.
76398         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76399         Include <stdlib.h> unconditionally.
76400         (calloc, malloc, realloc, free): Remove decls.
76401         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76402         Include <stdlib.h> unconditionally.  Sort include file names.
76403         (strtod): Remove.
76404         (xstrtod): Define with a prototype.
76405         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76406         (strtol, strtoul): Remove decls.
76407
76408 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76409
76410         More patches to assume C89 or better.
76411         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76412         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76413         string.h, memchr, STDC_HEADERS.
76414
76415 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76416
76417         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76418         Include <stdlib.h>, <string.h> unconditionally.
76419         Remove now-unnecessary cast to char *.
76420         * lib/strnlen.c: Include <string.h> unconditionally.
76421         * lib/yesno.c (yesno): Define with a prototype.
76422
76423 2003-09-11  Bruno Haible  <bruno@clisp.org>
76424
76425         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76426
76427 2003-09-10  Jim Meyering  <jim@meyering.net>
76428
76429         * lib/error.c: Correct indentation of cpp directives.
76430
76431 2003-09-10  Bruno Haible  <bruno@clisp.org>
76432
76433         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76434         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76435         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76436         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76437         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76438         <stdlib.h> and <string.h> checks.
76439         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76440         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76441
76442 2003-09-10  Bruno Haible  <bruno@clisp.org>
76443
76444         * lib/strcspn.c: Include <string.h> unconditionally.
76445         * lib/strpbrk.c: Include <string.h> unconditionally.
76446         * lib/strstr.c: Include <string.h> unconditionally.
76447         * lib/unicodeio.c: Include <string.h> unconditionally.
76448         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76449         * lib/unsetenv.c: Likewise.
76450         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76451         * lib/yesno.c: Include <stdlib.h> unconditionally.
76452         (rpmatch): Add prototype.
76453
76454 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76455
76456         More patches to assume C89 or better.
76457         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76458         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76459         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76460         or for string.h.
76461         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76462         stdlib.h.
76463         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76464         C headers.
76465         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76466         string.h.
76467         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76468         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76469         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76470         or for string.h.
76471         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76472         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76473         C headers.
76474         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76475         memcpy.
76476         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76477         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76478         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76479         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76480         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76481         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76482         string.h, free.
76483         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76484         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76485         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76486         C headers, or for string.h.
76487         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76488         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76489         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76490         headers, memory.h, stdlib.h, string.h, strings.h.
76491         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76492         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76493         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76494         strchr.
76495         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76496         headers, memory.h, string.h.
76497         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76498         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76499         free.
76500         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76501         headers.
76502         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76503         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76504         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76505         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76506         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76507
76508 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76509
76510         More K&R removal.
76511
76512         * lib/acosl.c (main): Use a prototype.
76513         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76514         tanl.c: Likewise.
76515
76516         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76517
76518         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76519         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76520         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76521         with a prototype.
76522         * lib/getopt.c (const): Remove macro.
76523         Include <string.h> unconditionally.
76524         (my_index): Remove; all uses changed to strchr.
76525         (strlen): Remove decl.
76526         (exchange): Remove forward decl; no longer needed.
76527         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76528         Define with prototype.
76529         * lib/getopt1.c (const): Remove macro.
76530         (getopt_long, getopt_long_only, main): Define with prototype.
76531
76532         * lib/getugroups.c: Include <string.h> unconditionally.
76533
76534         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76535         (getusershell, setusershell, endusershell, readname, main):
76536         Define with prototypes.
76537
76538         * lib/group-member.c: Include group-member.h first.
76539         Include <stdlib.h> unconditionally.
76540
76541         * lib/hard-locale.c: Include hard-locale.h first.
76542         Include <stdlib.h>, <string.h> unconditionally.
76543
76544         * lib/hash.c (free, malloc): Remove decls.
76545         Include <stdlib.h> unconditionally.
76546
76547         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76548         (getenv): Do not declare.
76549
76550         * lib/idcache.c: Include <string.h> unconditionally.
76551
76552         * lib/long-options.c: Include long-options.h first, to test interface.
76553         Include <stdlib.h> unconditionally.
76554
76555         * lib/makepath.c: Include makepath.h first, to test interface.
76556         Include <stdlib.h> and <string.h> unconditionally.
76557
76558         * lib/linebuffer.c: Include <stdlib.h>.
76559         (free): Remove decl.
76560
76561         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76562         stddef.h. rpl_malloc returns void *, not char *.
76563         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76564         prototype.
76565
76566         * lib/md5.h: Include <limits.h> unconditionally.
76567         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76568         (__P): Remove; all uses removed.
76569         * lib/md5.c: Include "md5.h" first.
76570         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76571         md5_buffer, md5_process_bytes, md5_process_block):
76572         Define with prototypes.
76573         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76574         * lib/sha.c: Include "sha.h" first.
76575         Include <stdlib.h>, <string.h> unconditionally.
76576
76577         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76578         * lib/memcmp.c (__ptr_t): Likewise.
76579         * lib/memrchr.c (__ptr_t): Likewise.
76580         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76581         Include <string.h> unconditionally.
76582         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76583         * lib/memchr.c: Include <stdlib.h> unconditionally.
76584         * lib/memchr.c (LONG_MAX): Remove.
76585         * lib/memrchr.c (LONG_MAX): Likewise.
76586         * lib/memchr.c (__memchr): Define via a prototype.
76587         * lib/memrchr.c (__memrchr): Likewise.
76588         * lib/memcmp.c (__P): Remove, and remove all uses.
76589         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76590         Remove forward decls; no longer needed.
76591         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76592         Use types required by C89 in prototype.
76593
76594         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76595         * lib/savedir.c: Likewise.
76596         * lib/mkdir.c (free): Remove decl.
76597         * lib/rmdir.c (rmdir): Define with a prototype.
76598         * lib/savedir.c: Include savedir.h first, to test interface.
76599
76600         * lib/mktime.c (STDC_HEADERS): Remove.
76601         Include <stdlib.h>, <string.h> unconditionally.
76602
76603         * lib/modechange.c: Include <stdlib.h> unconditionally.
76604         (malloc): Remove decl.
76605
76606         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76607         (free): Remove decl.
76608
76609         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76610         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76611         (This type really should be intptr_t, but that's a C99ism.)
76612         (_obstack_memcpy): Remove: all uses changed to memcpy.
76613         Include <string.h> unconditionally.
76614         (struct obstack): Assume __STDC__ for types of members
76615         chunkfun, freefun, extra_arg.
76616         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76617         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76618         obstack_begin, obstack_specify_allocation,
76619         obstack_specify_allocation_with_arg, obstack_chunkfun,
76620         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76621         Remove unprototyped decls and the macros that use them.
76622         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76623         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76624         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76625         (defined __STDC__ && __STDC__)]:
76626         Remove nonprototyped code.
76627         Include <stdlib.h> unconditionally.
76628         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76629         _obstack_allocated_p, _obstack_free, obstack_free,
76630         _obstack_memory_used, print_and_abort):
76631         Define using prototypes.
76632         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76633         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76634         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76635         obstack_next_free, obstack_object_size, obstack_room) [0]:
76636         Remove unused, unprototyped code.
76637
76638         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76639
76640         * lib/physmem.c (physmem_total, physmem_available, main): Define
76641         with prototypes.
76642
76643         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76644         (main): Define with a prototype.
76645
76646         * lib/posixver.c (getenv): Remove decl.
76647
76648         * lib/putenv.c (malloc): Returns void *, not char *.
76649         Include <string.h> unconditionally.
76650         (strchr, memcpy, NULL): Do not define.
76651
76652         * lib/readtokens.c: Include readtokens.h first, to test interface.
76653         Include <stdlib.h>, <string.h> unconditionally.
76654         (init_tokenbuffer): Define with a prototype.
76655
76656         * lib/regex.c (PARAMS): Remove.  All uses removed.
76657         All uses of _RE_ARGS removed, too.
76658         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76659         unconditionally.
76660         (bzero): Assume memset exists.
76661         (memcmp, memcpy, NULL): Remove.
76662         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76663         char, or assignments to local vars of type signed char.
76664         (init_syntax_once, PREFIX(extract_number_and_incr),
76665         PREFIX(print_partial_compiled_pattern),
76666         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76667         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76668         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76669         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76670         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76671         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76672         wcs_compile_range, byte_compile_range, truncate_wchar,
76673         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76674         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76675         count_mbs_length, wcs_re_match_2_internal,
76676         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76677         PREFIX(alt_match_null_string_p),
76678         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76679         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76680         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76681         now-unnecessary declaration, if any.
76682         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76683         regcomp, regexec):
76684         Remove now-unnecessary casts among pointer types.
76685         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76686
76687         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76688         (free): Remove decl.
76689
76690         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76691
76692         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76693         (free): Remove decl.
76694
76695         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76696         * lib/xgetcwd.c: Likewise.
76697
76698         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76699         (free): Remove decl.
76700
76701         * lib/strchrnul.c (strchrnul): Define with a prototype.
76702         Fix bug: c_in was not converted to char before searching.
76703
76704         The following changes are not K&R related:
76705
76706         * lib/group-member.h: Include <sys/types.h>, so that this file is
76707         self-contained.
76708         * lib/makepath.h: Likewise.
76709
76710         * lib/getusershell.c (readname, default_index, line_size, readname):
76711         Use size_t, not int, for sizes.
76712         (readname): If the size overflows, report an error instead of
76713         looping forever.
76714
76715 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76716
76717         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76718         libc.
76719
76720 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76721
76722         * README: New section: portability guidelines.
76723
76724 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76725
76726         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76727         C89 spec.
76728
76729 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76730
76731         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76732
76733 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76734
76735         Assume C89 or better; remove K&R cruft.
76736         A few of these changes were first proposed by Derek Robert Price
76737         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76738
76739         * lib/addext.c: Include <string.h> unconditionally.
76740         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76741         Don't declare getenv or malloc.
76742
76743         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76744         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76745         (NULL): Remove.
76746         (find_stack_direction, alloca): Use prototypes.
76747
76748         * lib/atexit.c (atexit): Define using a prototype.
76749
76750         * lib/basename.c, dirname.c, stripslash.c:
76751         Include <string.h> unconditionally.
76752
76753         * lib/bcopy.c: Include <stddef.h>.
76754         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76755
76756         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76757
76758         * lib/error.h (error, error_at_line, error_print_progname)
76759         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76760         * lib/error.c: Include error.h first, to check interface.
76761         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76762         (VA_START): Remove; all uses changeed to va_start.
76763         (exit, strerror): Remove decls.
76764         (error_print_progname): Prototype uncondionally.
76765         Don't include <errno.h>; no longer needed.
76766         (private_strerror): Remove.
76767         (error_tail): Always define.
76768         (error, error_at_line): Assume C89 or better; always use prototypes.
76769         * lib/fatal.c: Include "fatal.h" first, to test interface.
76770         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76771         (VA_START): Remove; all uses changed to va_start.
76772         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76773         this case.
76774         (exit): Remove decl.
76775         (fatal): Prototype unconditionally.  Assume va_start works.
76776         Abort at end, to pacify gcc.
76777
76778         * lib/euidaccess.c (main): Define with a prototype.
76779
76780         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76781
76782         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76783
76784         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76785         prototypes.
76786         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76787         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76788         (getenv): Remove decl.
76789         (fnmatch): Define using a prototype.
76790         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76791         (FCT): Define using a prototype.
76792
76793         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76794
76795         * lib/gethostname.c: Include <stddef.h>.
76796         (gethostname): Define with prototype.  Length is size_t, not int.
76797
76798 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76799
76800         Assume C89 or better; remove K&R cruft.
76801         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76802         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76803         string.h, getenv, malloc.
76804         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76805         headers.
76806         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76807         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76808         do not check for strerror.
76809         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76810         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76811         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76812         do not check for doprnt or vprintf.
76813         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76814         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76815
76816 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76817
76818         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76819         getversion.c should have been removed then, but was accidentally
76820         preserved.
76821
76822         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76823         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76824
76825 2003-09-08  Karl Berry  <karl@gnu.org>
76826
76827         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76828                 config, forget about prep.
76829
76830         * config/depcomp, missing: update from automake.
76831
76832 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76833
76834         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76835         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76836
76837 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76838
76839         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76840         copy_tm_result.  Bug reported by Simon Josefsson in
76841         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76842
76843 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76844
76845         * m4/time_r.m4: New file.
76846         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76847         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76848         is. Check for timegm declaration.
76849         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76850         Do not check for gmtime_r.
76851         Replace mktime if __mktime_internal does not exist and if mktime
76852         hasn't been replaced already.
76853
76854 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76855
76856         * lib/time_r.c, lib/time_r.h: New files.
76857
76858         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76859         __localtime_r.
76860         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76861         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76862
76863         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76864         __gmtime_r.
76865         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76866         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76867         Include <time_r.h>.
76868
76869         * lib/timegm.c: Switch to glibc implementation, with the following
76870         changes:
76871         [defined HAVE_CONFIG_H]: Include <config.h>.
76872         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
76873         (__mktime_internal) [!defined _LIBC]: New decl.
76874         (__gmtime_r) [!defined _LIBC]: New macro and function.
76875         (timegm): Use a prototype, since gnulib assumes C89.
76876         Do not bother declaring tmp to be const, as it's not really usefu.
76877         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
76878         (timegm): Declare only if HAVE_DECL_TIMEGM.
76879
76880 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76881
76882         * MODULES.html.sh (func_all_modules): Add time_r.
76883         * modules/time_r: New file.
76884         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
76885         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
76886
76887 2003-09-03  Paul Eggert  <eggert@twinsun.com>
76888
76889         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
76890         Bug reported by Lute Kamstra in
76891         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
76892
76893         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
76894         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
76895         course with correspondingly smaller numbers for tomorrow and
76896         yesterday.  From Tadayoshi Funaba.  Originally installed into
76897         sh-utils on 1999-08-07, but the patch got lost (I guess during the
76898         coreutils merge?).
76899
76900 2003-08-31  Simon Josefsson  <jas@extundo.com>
76901
76902         * modules/timegm: New file.
76903         * MODULES.html.sh (func_all_modules): Add timegm.
76904
76905 2003-08-31  Simon Josefsson  <jas@extundo.com>
76906
76907         * m4/timegm.m4: New file.
76908
76909 2003-08-31  Simon Josefsson  <jas@extundo.com>
76910
76911         * lib/timegm.h: New file.
76912         * lib/timegm.c: New file.  Based on
76913         wget-1.8.2/src/http.c:mktime_from_utc.
76914
76915 2003-08-31  Karl Berry  <karl@gnu.org>
76916
76917         * lib/argp.h: update from libc.
76918
76919 2003-08-28  Bruno Haible  <bruno@clisp.org>
76920
76921         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
76922         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
76923         followed by '#define fnmatch fnmatch_posix' gives an error.
76924
76925 2003-08-28  Bruno Haible  <bruno@clisp.org>
76926
76927         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
76928         warning on QNX, which defines O_BINARY to 000000.
76929
76930 2003-08-27  Jim Meyering  <jim@meyering.net>
76931
76932         * m4/mkstemp.m4: Require that the system mkstemp be able to create
76933         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
76934         would fail after 32.  Reported by Danny Levinson.  Details here:
76935         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
76936
76937 2003-08-24  Bruno Haible  <bruno@clisp.org>
76938
76939         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
76940         MSVC7 <stdio.h> is included later.
76941
76942 2003-08-22  Simon Josefsson  <jas@extundo.com>
76943
76944         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
76945
76946 2003-08-20  Karl Berry  <karl@gnu.org>
76947
76948         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
76949
76950 2003-08-20  Bruno Haible  <bruno@clisp.org>
76951
76952         * modules/progname: New file.
76953         * MODULES.html.sh (func_all_modules): Add progname.
76954
76955 2003-08-20  Bruno Haible  <bruno@clisp.org>
76956
76957         * lib/progname.h: New file, from GNU gettext.
76958         * lib/progname.c: New file, from GNU gettext.
76959         * lib/progreloc.c: New file, from GNU gettext.
76960
76961 2003-08-19  Jim Meyering  <jim@meyering.net>
76962
76963         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
76964         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
76965
76966 2003-08-19  Bruno Haible  <bruno@clisp.org>
76967
76968         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
76969         more.
76970
76971 2003-08-19  Bruno Haible  <bruno@clisp.org>
76972
76973         * lib/xstrdup.c: Assume <string.h> exists.
76974
76975 2003-08-18  Paul Eggert  <eggert@twinsun.com>
76976
76977         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
76978         in makefile rules.
76979
76980 2003-08-18  Jim Meyering  <jim@meyering.net>
76981
76982         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
76983         * m4/lib-ld.m4: Likewise.
76984
76985 2003-08-18  Jim Meyering  <jim@meyering.net>
76986
76987         * lib/setenv.h: Indent nested cpp directive.
76988         * lib/vasnprintf.c: Remove trailing blanks.
76989
76990 2003-08-17  Simon Josefsson  <jas@extundo.com>
76991
76992         * modules/xstrndup: New file.
76993         * MODULES.html.sh (func_all_modules): Add xstrndup.
76994
76995 2003-08-17  Simon Josefsson  <jas@extundo.com>
76996
76997         * modules/argp: Fix autoconf macro name. Add more dependencies.
76998
76999 2003-08-17  Simon Josefsson  <jas@extundo.com>
77000
77001         * m4/xstrndup.m4: New file.
77002
77003 2003-08-17  Simon Josefsson  <jas@extundo.com>
77004
77005         * m4/argp.m4: New file.
77006
77007 2003-08-17  Simon Josefsson  <jas@extundo.com>
77008             Bruno Haible  <bruno@clisp.org>
77009
77010         * lib/xstrndup.h: New file.
77011         * lib/xstrndup.c: New file.
77012
77013 2003-08-17  Bruno Haible  <bruno@clisp.org>
77014
77015         * modules/strndup (Files, Include): Add lib/strndup.h.
77016
77017 2003-08-17  Bruno Haible  <bruno@clisp.org>
77018
77019         * modules/euidaccess (Files): Add lib/euidaccess.h.
77020
77021 2003-08-17  Bruno Haible  <bruno@clisp.org>
77022
77023         * lib/strndup.h: New file.
77024
77025 2003-08-17  Bruno Haible  <bruno@clisp.org>
77026
77027         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
77028         like AC_GNU_SOURCE.
77029         * modules/extensions (configure.ac): Comment out the invocation of
77030         gl_USE_SYSTEM_EXTENSIONS.
77031
77032 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77033
77034         Merges from coreutils, etc.
77035         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
77036         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
77037         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
77038         fixing a typo.
77039         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
77040         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
77041
77042 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77043
77044         Document merge from coreutils.
77045         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
77046         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
77047         * modules/utime: Add m4/utimes-null.m4.
77048
77049 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77050
77051         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
77052         space, undoing this 2003-08-12 change:
77053         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77054
77055 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77056
77057         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
77058         strtoul.c from libc, undoing this 2003-08-12 change:
77059         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77060
77061 2003-08-16  Jim Meyering  <jim@meyering.net>
77062
77063         Merges from coreutils.
77064         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
77065         prefix.  Adjust cache variables similarly.  Create 500 rather than
77066         just 300 files, to exercise bug on Darwin6.5, too.
77067         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
77068         $missing_dir.
77069         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
77070         AM_SYS_POSIX_TERMIOS.
77071         Reported by mkc@mathdogs.com.
77072         Also change use of $am_cv_sys_posix_termios
77073         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
77074         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
77075         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
77076         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
77077         in /proc/mounts until it finds one with matching device number.  This
77078         is unnecessary when the FILE argument *is* a mount point.  No stat call
77079         is necessary in that case.  So, disable the statvfs-testing code on
77080         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
77081         as RedHat bug# 84846.
77082         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77083         to 1MB, so as not to render systems with no stack size limit (e.g.,
77084         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77085         Include <unistd.h>.  On some systems,
77086         it is required for the definition of _SC_PAGESIZE.
77087
77088 2003-08-16  Jim Meyering  <jim@meyering.net>
77089
77090         Merge from coreutils.
77091         * lib/xstrtoimax.c: #else #if -> #elif.
77092         * lib/xstrtoumax.c: Likewise.
77093
77094 2003-08-16  Jim Meyering  <jim@meyering.net>
77095
77096         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
77097         * m4/utimes.m4: Removed.
77098         * m4/utimes-null.m4: Renamed from utimes.m4.
77099
77100         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77101         to 1MB, so as not to render systems with no stack size limit (e.g.,
77102         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77103         Include <unistd.h>.  On some systems,
77104         it is required for the definition of _SC_PAGESIZE.
77105
77106 2003-08-16  Jim Meyering  <jim@meyering.net>
77107         and Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         Merges from coreutils, etc.
77110
77111         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
77112         using the latest version from cvs.  This avoids problems with #line
77113         directives using a vendor (Sun) compiler.
77114         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77115         Don't set GETGROUPS_LIB here; now it's
77116         done via getgroups.m4's wrapper function.
77117         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77118         rather than just in sh-util/configure.in, so that the
77119         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
77120         same.
77121         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
77122         AC_FUNC_GETLOADAVG where to find getloadavg.c.
77123         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
77124         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
77125         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
77126         Remove code that is now done by the newly-required macros.
77127         Append $(EXEEXT) to DF_PROG.
77128         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
77129         Do not invoke or require the following here,
77130         since prereq.m4 or some gnulib .m4 now does this for us:
77131         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
77132         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
77133         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
77134         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
77135         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
77136         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
77137         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
77138         AC_FUNC_OBSTACK.
77139         Do not replace the following functions, as this is now the job
77140         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
77141         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
77142         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
77143         atexit getpass, strdup, getpagesize.
77144         Replace 'raise'.
77145         Do not check for the following functions, as this is now the job
77146         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
77147         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
77148         setregid.
77149         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
77150         Check for sys/sysctl.h.
77151         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
77152         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
77153         of checking for ssize_t ourselves.
77154
77155         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
77156         Require every macro that gnulib/modules/* suggests for us.
77157         (jm_PREREQ_ADDEXT): New macro.
77158         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
77159         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
77160
77161         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
77162         (gl_PHYSMEM): Use it.
77163         Also check for `table' function.
77164         Check for new headers and functions.
77165         Add check for sys/sysmp.h.
77166         With suggestions from Kaveh Ghazi.
77167         Ignore headers that are present but cannot be compiled.  This
77168         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
77169         C 5.4.
77170
77171 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77172
77173         Document merge from coreutils.
77174         * modules/userspec: Depend on posixver.
77175         * modules/strftime: Depend on tzset.
77176
77177 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77178
77179         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
77180         rather than tab, after '#' in shell-script copyright notices.
77181         Suggested by Bruno Haible.
77182
77183 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77184
77185         * config/srclist-update: Use three spaces, rather than tab, after '#'
77186         in shell-script copyright notices.  Suggested by Bruno Haible.
77187         Remove unnecessary parenthesization in regular expression.
77188
77189 2003-08-15  Jim Meyering  <jim@meyering.net>
77190
77191         Merge from coreutils.
77192         * lib/xgethostname.c: Include <stdlib.h>.
77193         (xghostname): Don't exit for anything other than memory-related
77194         failure; just return NULL.
77195         * lib/userspec.c: Include "posixver.h".
77196         (parse_user_spec): Accept `.' as a separator only
77197         in pre-POSIX-200112 mode.
77198         * lib/strtoimax.c: Use #elif rather than #else #if.
77199         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
77200         Remove function, now that we can rely on a working tzset function.
77201         [!_LIBC]: Ensure that the required autoconf test has been run.
77202         [!defined _NL_CURRENT && HAVE_STRFTIME]:
77203         Use underlying_strftime for %r.
77204         * lib/sha.c: Merge in some clean-up and optimization changes from
77205         glibc.
77206         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
77207         Ensure that it is a multiple of 64.
77208         Rearrange loop exit tests so as to avoid performing an
77209         additional fread after encountering an error or EOF.
77210         * lib/realloc.c: Update copyright date.
77211
77212 2003-08-15  Jim Meyering  <jim@meyering.net>
77213         and Paul Eggert  <eggert@twinsun.com>
77214
77215         Merge from coreutils.
77216         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
77217         member but strut utmpx does not.  Needed for AIX 4.3.3.
77218         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
77219
77220 2003-08-15  Jim Meyering  <jim@meyering.net>
77221         and Paul Eggert  <eggert@cs.ucla.edu>
77222
77223         Merges from coreutils, etc.
77224         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
77225         Require gl_FUNC_TZSET_CLOBBER.
77226         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
77227         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
77228         members.
77229
77230 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77231
77232         Help the merge from coreutils.
77233         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
77234         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
77235         * m4/tzset.m4: Use it too.
77236
77237 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77238
77239         * modules/tzset: New file.
77240
77241 2003-08-14  Jim Meyering  <jim@meyering.net>
77242
77243         Merges from coreutils.
77244         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
77245         variable names, rather than @FNMATCH_H@.
77246         * modules/alloca: Likewise for $(ALLOCA_H).
77247
77248         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
77249         the three copies of the literal target, `fnmatch.h'.
77250         * modules/alloca (alloca.h): Likewise.
77251
77252 2003-08-14  Jim Meyering  <jim@meyering.net>
77253
77254         Merge from coreutils.
77255         * m4/tzset.m4: New file.
77256         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
77257         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
77258         otherwise, AIX 5.1 systems would end up using the latter.
77259         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
77260         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
77261         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
77262         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
77263
77264 2003-08-14  Jim Meyering  <jim@meyering.net>
77265
77266         Merge from coreutils.
77267         * lib/obstack.h: Whitespace changes.
77268         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
77269         and xcalloc return values.
77270         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
77271         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
77272         hang on OSF/1 5.1 for DIR on both local and remote file systems.
77273         Reported by (and fix confirmed by) Nelson H. F. Beebe.
77274         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77275         error from mntctl.
77276         Use mntctl's return value to drive the entry-processing loop, since
77277         we can't rely on the value of the vmt_length member in the last
77278         entry.  On some systems doing so could result in exhausting
77279         virtual memory.  Based in part on a patch from Mike Jetzer.
77280
77281 2003-08-14  Jim Meyering  <jim@meyering.net>
77282         and Paul Eggert  <eggert@twinsun.com>
77283
77284         Merges from coreutils, plus other fixes.
77285         * lib/physmem.c: Merge in portability changes from gcc/libiberty
77286         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
77287         for credits and details.  Thanks to Kaveh Ghazi for helping
77288         to keep these files in sync.
77289         (ARRAY_SIZE): Define it.
77290         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
77291         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
77292         (memcasecmp): Don't assume size_t fits in unsigned int.
77293         Remove casts and duplicate code.
77294         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
77295         (memcpy): Remove definition.
77296         Merge in some clean-up and optimization changes from glibc.
77297         [BLOCKSIZE]: Move definition to top of file.
77298         Ensure that it is a multiple of 64.
77299         Rearrange loop exit tests so as to avoid performing an
77300         additional fread after encountering an error or EOF.
77301         * lib/md5.h (md5_uintptr): Define.
77302         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77303         return to the initial working directory.  Preserve errno
77304         for caller.
77305         * lib/idcache.c: Include "xalloc.h".
77306         (xmalloc, xrealloc): Remove decls.
77307         (getuser): Remove casts no longer required in C89.
77308         * lib/human.c: Include stdio.h, for sprintf.
77309         * lib/group-member.c: Include "xalloc.h".
77310         (xmalloc, xrealloc): Remove decls.
77311         (get_group_info): Remove casts no longer required in C89.
77312         * lib/getusershell.c (readname): Remove casts no longer required in
77313         C89.
77314         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77315         * lib/getline.c: Whitespace fix, from coreutils.
77316
77317 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77318
77319         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77320         Check for isascii.
77321
77322         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77323         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77324         Undo previous (whitespace-only) change.
77325
77326 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77327
77328         * lib/exclude.c: Include <ctype.h>
77329         (IN_CTYPE_DOMAIN): New macro.
77330         (is_space): New fn.
77331         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77332         and empty lines.
77333
77334         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77335         Undo previous (whitespace-only) change.
77336
77337 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77338
77339         * config/srclist-update: Change update back to the old behavior,
77340         leaving whitespace alone.  Use one 'sed' command rather than a
77341         pipeline.
77342         (fixlicense): Now a variable, not a function.
77343         (remove_trailing_blanks): Remove.
77344         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77345         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77346         Undo previous (whitespace-only) change.
77347
77348 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77349
77350         Merge from coreutils.
77351         * modules/euidaccess: Add lib_SOURCES, include for new
77352         file euidaccess.h
77353
77354 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77355
77356         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77357         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77358         Normalize leading white space and remove trailing white space.
77359
77360         Merge from coreutils
77361         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77362
77363         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77364         0.12.1.  These files are now being upgraded automatically by
77365         ../config/srclist-update.
77366
77367 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77368
77369         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77370         Normalize leading white space and remove trailing white space.
77371         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77372         notice, as per ../config/srclist-update.
77373
77374         Merge from coreutils.
77375         * lib/euidaccess.h: New file.
77376         * lib/euidaccess.c: Include it.
77377         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77378         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77379         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77380
77381 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77382
77383         * config/srclist-update: Add copyright notice.
77384         (remove_id_lines, remove_trailing_blanks): New constants.
77385         (fixfile): Use them to normalize spacing a bit in copied files.
77386         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77387         Normalize leading white space and remove trailing white space.
77388
77389         * config/texinfo.tex: Sync with texinfo.
77390
77391         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77392         strtoul.c from libc, to merge coreutils whitespace changes.
77393
77394         * config/srclist.txt: Get the following m4 files from gettext:
77395         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77396         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77397         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77398         wint_t.m4.
77399
77400 2003-08-12  Karl Berry  <karl@gnu.org>
77401
77402         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77403         been made.
77404
77405 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77406
77407         * modules/gnu-source, m4/gnu-source.m4:
77408         Remove; we're assuming Autoconf 2.54 or later now.
77409         Suggested by Bruno Haible.
77410         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77411
77412 2003-08-11  Bruno Haible  <bruno@clisp.org>
77413
77414         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77415
77416 2003-08-11  Bruno Haible  <bruno@clisp.org>
77417
77418         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77419         (vasnprintf): Use it instead of wcslen.
77420
77421 2003-08-11  Bruno Haible  <bruno@clisp.org>
77422
77423         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77424         value to ensure that _Bool promotes to int. Use #define for _Bool when
77425         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77426
77427 2003-08-10  Karl Berry  <karl@gnu.org>
77428
77429         * lib/regex.h: update from libc (whitespace fix).
77430
77431 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77432
77433         Merge some files from coreutils.  These changes were
77434         originally made by Jim Meyering.
77435         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77436         many older Unixes require this.
77437         * lib/alloca.c (alloca): Remove cast to argument of free;
77438         no longer needed in C89.
77439         * lib/alloca_.h, regex.h: Fix white space to match
77440         what GNU indent does.
77441
77442 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77443
77444         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77445         apparently Emacs's Unicode mode got confused before my 2003-08-05
77446         checkin.
77447
77448 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77449
77450         * m4/extensions.m4: New file.
77451         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77452         Require gl_USE_SYSTEM_EXTENSIONS.
77453         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77454         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77455
77456 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77457
77458         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77459         * modules/extensions, modules/gnu-source: New files.
77460         * modules/timespec, modules/unlocked-io: Depend on extensions.
77461
77462 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77463
77464         * modules/restrict: New file.
77465         * MODULES.html.sh (func_all_modules): Add restrict.
77466         * modules/regex: Depend on restrict.
77467
77468 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77469
77470         * m4/restrict.m4: New file.
77471         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77472
77473 2003-08-07  Bruno Haible  <bruno@clisp.org>
77474
77475         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77476         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77477
77478 2003-08-07  Bruno Haible  <bruno@clisp.org>
77479
77480         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77481         makes the module 'getndelim2' compatible with the module 'getline'.
77482
77483 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77484
77485         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77486         byte with "\201" to avoid glitches when editing that source file
77487         with multi-gnome-terminal.
77488
77489 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77490
77491         * lib/bumpalloc.h: Remove.
77492
77493 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77494
77495         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77496         * modules/bumpalloc: Remove.
77497
77498 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77499
77500         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77501         GNU coding style.
77502
77503         Merge from coreutils.
77504         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77505         1. From glibc.
77506         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77507         from Karl Berry, implemented by Jim Meyering.
77508         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77509         from Dmitry V. Levin.
77510         Remove anachronistic cast of xrealloc.
77511         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77512         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77513         type. Otherwise, it wouldn't compile with at least /bin/cc on
77514         ymp-cray-unicos9.0.2.X.
77515         Combine two mostly-identical uses of alloca into one.
77516         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77517
77518 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77519
77520         [From Emacs.]
77521
77522         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77523         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77524         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77525         obsolete NLIST_NAME_UNION.
77526         [__GNU__]: Undef BSD and FSCALE.
77527         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77528
77529 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77530
77531         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77532         an enum type, so that it's guaranteed to promote to int.  See:
77533         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77534
77535 2003-08-03  Karl Berry  <karl@gnu.org>
77536
77537         * config/depcomp: update from automake.
77538
77539 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77540
77541         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77542         (strerror): Don't assume that a printable int fits in 14 bytes.
77543
77544 2003-07-31  Bruno Haible  <bruno@clisp.org>
77545
77546         * modules/getpass-gnu: New file.
77547         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77548
77549 2003-07-31  Bruno Haible  <bruno@clisp.org>
77550
77551         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77552
77553 2003-07-24  Karl Berry  <karl@gnu.org>
77554
77555         * config/missing: update from automake.
77556
77557 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77558             Bruno Haible  <bruno@clisp.org>
77559
77560         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77561         * lib/getline.c (getline, getdelim): Likewise.
77562         Remove _GNU_SOURCE define; now it's defined in config.h through
77563         m4/getline.m4.
77564
77565 2003-07-23  Karl Berry  <karl@gnu.org>
77566
77567         * config/config.sub: update from prep.
77568
77569 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77570
77571         * modules/xalloc (Depends-on): Add exitfail.
77572         * modules/xmemcoll: Likewise.
77573
77574 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77575
77576         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77577         over-parenthesization in macros.
77578
77579         Sync with coreutils.
77580
77581         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77582         required by C99.
77583
77584         Use `exit_failure' for xalloc and xmemcoll instead of their own
77585         private exit-failure variables.
77586         * lib/xalloc.h (xalloc_exit_failure): Remove.
77587         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77588         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77589         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77590         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77591         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77592
77593 2003-07-20  Jim Meyering  <jim@meyering.net>
77594
77595         * modules/closeout (Depends-on): Add exitfail.
77596         Suggestion from Bruno Haible.
77597
77598 2003-07-19  Karl Berry  <karl@gnu.org>
77599
77600         * config/config.sub: update from prep.
77601
77602 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77603
77604         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77605         Remove.
77606         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77607         to test that it can stand by itself.  Include "exitfail.h".
77608         Clients should set exit_failure instead.
77609         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77610
77611 2003-07-18  Bruno Haible  <bruno@clisp.org>
77612
77613         * modules/getndelim2: New file.
77614         * modules/getline: Share files with module getndelim2.
77615         * modules/getnline: Depend on getndelim2 instead of sharing files with
77616         it. Add getnline.c to lib_SOURCES.
77617         * MODULES.html.sh (func_all_modules): Add getndelim2.
77618
77619 2003-07-18  Bruno Haible  <bruno@clisp.org>
77620
77621         * m4/getndelim2.m4: New file.
77622         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77623         invoke gl_PREREQ_GETNDELIM2.
77624         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77625         gl_PREREQ_GETNDELIM2.
77626         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77627         gl_GETNDELIM2.
77628
77629 2003-07-18  Bruno Haible  <bruno@clisp.org>
77630
77631         * lib/getndelim2.h: New file.
77632         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77633         getndelim2.h.
77634         (getndelim2): Make non-static. Change return type to ssize_t.
77635         * lib/getline.h: Change argument names.
77636         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77637         * lib/getnline.c: Include getndelim2.h.
77638
77639 2003-07-18  Andreas Schwab  <schwab@suse.de>
77640
77641         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77642
77643 2003-07-17  Karl Berry  <karl@gnu.org>
77644
77645         * config/config.sub: update from prep.
77646
77647 2003-07-17  Bruno Haible  <bruno@clisp.org>
77648
77649         * modules/getnline: New file.
77650         * modules/getline: Add lib/getndelim2.c to source file list.
77651         * MODULES.html.sh (func_all_modules): Add getnline.
77652
77653 2003-07-17  Bruno Haible  <bruno@clisp.org>
77654
77655         * m4/getnline.m4: New file.
77656
77657 2003-07-17  Bruno Haible  <bruno@clisp.org>
77658
77659         * m4/Makefile.am.in: Remove file.
77660         * m4/Makefile.am: Remove file.
77661         * m4/Makefile.in: Remove file.
77662
77663 2003-07-17  Bruno Haible  <bruno@clisp.org>
77664
77665         * lib/getnline.h: New file.
77666         * lib/getnline.c: New file.
77667         * lib/getndelim2.c: New file, extracted from getline.c.
77668         (getndelim2): Renamed from getdelim2, with added nmax argument.
77669         * lib/getline.c: Include getndelim2.c.
77670         (getdelim2): Moved out to getndelim2.c.
77671         (getline, getdelim): Update.
77672
77673 2003-07-17  Bruno Haible  <bruno@clisp.org>
77674
77675         * lib/Makefile.am: Remove file.
77676         * lib/Makefile.in: Remove file.
77677
77678 2003-07-17  Bruno Haible  <bruno@clisp.org>
77679
77680         * configure.in: Remove file.
77681         * Makefile.in: Remove file.
77682
77683 2003-07-17  Bruno Haible  <bruno@clisp.org>
77684
77685         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77686
77687 2003-07-16  Karl Berry  <karl@gnu.org>
77688
77689         * config/srclist-update: was running fixlicense twice, which caused
77690                 texinfo.tex to be nullified for some reason.  Simplify,
77691                 $gplsrc is no longer needed as far as I can see?
77692
77693 2003-07-16  Jim Meyering  <jim@meyering.net>
77694
77695         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77696
77697 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77698
77699         * config/srclist.txt: Get the following files from gettext-runtime/intl
77700         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77701         ref-del.sin.  From Bruno Haible.
77702         * config/srclist-update (fixfile): Change grep pattern again, since the
77703         previous fix didn't work (there was another trailing $).  Use
77704         '[$]' to escape the $s.
77705
77706 2003-07-15  Karl Berry  <karl@gnu.org>
77707
77708         * lib/vasnprintf.c: update from gettext.
77709
77710 2003-07-15  Karl Berry  <karl@gnu.org>
77711
77712         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77713         gets expanded when surrounded by '$'.
77714
77715 2003-07-15  Jim Meyering  <jim@meyering.net>
77716
77717         * modules/save-cwd: Don't depend on error.  From Derek Price.
77718
77719 2003-07-15  Jim Meyering  <jim@meyering.net>
77720
77721         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77722
77723 2003-07-14  Simon Josefsson  <jas@extundo.com>
77724
77725         * modules/mempcpy: New file.
77726         * MODULES.html.sh (func_all_modules): Add mempcpy.
77727
77728 2003-07-14  Simon Josefsson  <jas@extundo.com>
77729
77730         * m4/mempcpy.m4: New file.
77731
77732 2003-07-14  Simon Josefsson  <jas@extundo.com>
77733
77734         * lib/mempcpy.h: New file.
77735         * lib/mempcpy.c: New file.
77736
77737 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77738
77739         * modules/getdate, modules/posixtm: Depend on mktime.
77740
77741 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77742
77743         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77744         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77745         unicodeio.c, unicodeio.h, unlocked-io.h:
77746         Switch from LGPL to GPL.
77747
77748 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77749
77750         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77751         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77752         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77753         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77754         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77755         updated automatically by ../config/srclist-update.  This changes
77756         their license from LPGL to GPL.
77757
77758 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77759
77760         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77761         assumed to refer to the root of the most recent stable gettext version.
77762         * config/srclistvars.sh: Add defaults for eggert.
77763         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77764         Match "This program" as well as "The program".  This is needed
77765         for gettext.
77766
77767 2003-07-14  Jim Meyering  <jim@meyering.net>
77768
77769         Don't emit diagnostics.  Let callers do that.
77770         * lib/save-cwd.c: Don't include "error.h".
77771         (save_cwd): Don't call error.  Ensure that errno is valid
77772         when returning nonzero.
77773
77774         * lib/save-cwd.h (restore_cwd): Update prototype.
77775         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77776         Simplify.  Don't call error upon failure.  Let callers do that.
77777         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77778         when auditing is enabled.  But don't bother updating the #if.
77779
77780 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77781
77782         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77783         it breaks C++ compilation.
77784         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77785
77786 2003-07-10  Simon Josefsson  <jas@extundo.com>
77787
77788         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77789
77790 2003-07-10  Jim Meyering  <jim@meyering.net>
77791
77792         * m4/clock_time.m4: Remove trailing blank.
77793         * m4/intmax_t.m4: Likewise.
77794
77795 2003-07-10  Jim Meyering  <jim@meyering.net>
77796
77797         * lib/vasnprintf.c: Remove trailing blanks.
77798         Make cpp indentation consistent.
77799
77800 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77801
77802         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77803         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77804         Switch from LGPL to GPL.
77805
77806 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77807
77808         * config/srclist.txt: Sort sublists.  Add
77809         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77810         that differ from gnulib for one reason or another; we'd like this list
77811         to be smaller but for now let's document what we have.
77812
77813 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77814
77815         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77816         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77817         and sweeter "eval x=$x".
77818         * config/srclist.txt: Get lib/argp* from glibc.
77819
77820 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77821
77822         * lib/mktime.c: Fix some boundary cases and remove need for floating
77823         point.
77824
77825         Issue a compile-time diagnostic if time_t is floating point, or if
77826         two's complement arithmetic is not in effect, or if arithmetic
77827         right shift does not propagate the sign.  These assumptions were
77828         all in the original code but they weren't checked.
77829
77830         (TIME_T_MIDPOINT, verify): New macros.
77831         (__isleap): Remove; it has integer overflow problems.
77832         (leapyear): New function, without those problems.
77833         (ydhms_tm_diff): Remove; splitting into two parts.
77834         (ydhms_diff): New function, containing the arithmetic part of
77835         the old ydhms_tm_diff function.  Issue a compile-time
77836         diagnostic if we are not using C99 integer division.
77837         Avoid casts when possible.
77838         (guess_time_tm): New function, containing the checking part of
77839         the old ydhms_tm_diff function.  Return the new value, rather than
77840         the difference between it and the old.  Accept a new argument T
77841         so that *T specifies the old value.  Check for overflow in the result.
77842
77843         (__mktime_internal): Use a time_t offset, not a long int offset.
77844         This undoes the 2003-06-04 change, which is no longer needed now
77845         that we have better overflow checking.
77846         (localtime_offset): Likewise.
77847
77848         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77849         and long are 64-bit but int is only 32-bit.
77850         (ydhms_diff): Use long int to store year1 and yday1.
77851         Issue a compile-time diagnostic if long int is not wide enough.
77852
77853         (__mktime_internal): Use long int to store adjusted year and yday.
77854         Use plain C rather than preprocessor commands, if that doesn't
77855         affect efficiency.
77856         Check for overflow (and try to repair) after each probe
77857         rather than checking only at the very end.  This avoids some bugs
77858         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77859         does not equal GMT offset at maximum time).
77860         Use integer to check for overflow rather than floating point; this
77861         is more portable to non-IEEE hosts, and is a tad faster.
77862         When we detect that we are oscillating between two values,
77863         don't check whether tm_isdst has the requested value, since
77864         we already know the answer.  When tm_isdst has the wrong value,
77865         use a different heuristic to find the right one, based on the
77866         extreme values actually observed in practice in tz2003a,
77867         rather than the (overly optimistic) "previous 3 calendar quarters".
77868
77869         (not_equal_tm, print_tm, check_result): Use "const T" rather than
77870         "T const" to accommodate glibc style.
77871         (check_result): Use less-confusing report format.  "long" -> "long int.
77872         (main): Likewise.
77873         Don't loop if the iteration overflows time_t.
77874         Allow a negative step in the iteration.
77875
77876 2003-07-06  Karl Berry  <karl@gnu.org>
77877
77878         * config/depcomp: update from automake.
77879         * config/config.sub: update from prep.
77880
77881 2003-07-03  Karl Berry  <karl@gnu.org>
77882
77883         * config/config.guess: update from prep.
77884
77885 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77886
77887         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
77888         xreadlink.c now includes it unconditionally.
77889
77890 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77891
77892         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
77893         having it depend on HAVE_SYS_TYPES_H.
77894
77895 2003-07-01  Bruno Haible  <bruno@clisp.org>
77896
77897         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
77898         <sys/types.h> should be sufficient.
77899         Reported by Paul Eggert.
77900
77901 2003-06-26  Karl Berry  <karl@gnu.org>
77902
77903         * config/depcomp: update from automake.
77904
77905 2003-06-26  Bruno Haible  <bruno@clisp.org>
77906
77907         * modules/human: Depend on module stdbool.
77908
77909 2003-06-25  Bruno Haible  <bruno@clisp.org>
77910
77911         * modules/readlink: New file.
77912         * modules/xreadlink: Depend on it.
77913         * MODULES.html.sh (func_all_modules): Add readlink.
77914
77915 2003-06-25  Bruno Haible  <bruno@clisp.org>
77916
77917         * m4/readlink.m4: New file.
77918
77919 2003-06-25  Bruno Haible  <bruno@clisp.org>
77920
77921         * lib/readlink.c: New file.
77922
77923 2003-06-22  Karl Berry  <karl@gnu.org>
77924
77925         * config/srclist.txt: update mkinstalldirs from automake.
77926         * config/mkinstalldirs: update.
77927
77928 2003-06-22  Bruno Haible  <bruno@clisp.org>
77929
77930         Portability to mingw32.
77931         * m4/ssize_t.m4: New file, from GNU gettext.
77932         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
77933         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
77934
77935 2003-06-22  Bruno Haible  <bruno@clisp.org>
77936
77937         * modules/safe-read: Add m4/ssize_t.m4.
77938         * modules/xreadlink: Add m4/ssize_t.m4.
77939
77940 2003-06-20  Bruno Haible  <bruno@clisp.org>
77941
77942         Assume C89, so PARAMS isn't needed.
77943         * lib/unicodeio.h (PARAMS): Remove.
77944         * lib/unicodeio.c: Don't use PARAMS.
77945
77946 2003-06-18  Karl Berry  <karl@gnu.org>
77947
77948         * config/config.{guess,sub}: update from prep.
77949
77950 2003-06-18  Jim Meyering  <jim@meyering.net>
77951
77952         Merge changes from coreutils.
77953         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
77954         Remove explicit declarations of xmalloc and realloc.
77955         Include xalloc.h.
77956         (read_utmp): Remove anachronistic cast of xmalloc.
77957
77958 2003-06-17  Paul Eggert  <eggert@twinsun.com>
77959
77960         Assume C89, so PARAMS isn't needed.
77961         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
77962         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
77963         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
77964         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
77965         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
77966         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
77967         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
77968         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
77969         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
77970         lib/xstrtod.h, lib/xstrtol.h: Likewise.
77971         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
77972         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
77973         no longer needed. Anyway, config.h should always be included before any
77974         other file.
77975
77976 2003-06-11  Simon Josefsson  <jas@extundo.com>
77977
77978         * modules/sysexits: New file.
77979         * MODULES.html.sh (func_all_modules): Add sysexits.
77980
77981 2003-06-11  Simon Josefsson  <jas@extundo.com>
77982
77983         * lib/sysexit_.h: New file.
77984
77985 2003-06-11  Derek Price  <derek@ximbiot.com>
77986
77987         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
77988         necessary.
77989
77990 2003-06-11  Bruno Haible  <bruno@clisp.org>
77991
77992         * m4/sysexits.m4: New file.
77993
77994 2003-06-10  Simon Josefsson  <jas@extundo.com>
77995
77996         * lib/argp.h: New file, from glibc.
77997         * lib/argp-ba.c: New file, from glibc.
77998         * lib/argp-eexst.c: New file, from glibc.
77999         * lib/argp-fmtstream.c: New file, from glibc.
78000         * lib/argp-fmtstream.h: New file, from glibc.
78001         * lib/argp-fs-xinl.c: New file, from glibc.
78002         * lib/argp-help.c: New file, from glibc.
78003         * lib/argp-namefrob.h: New file, from glibc.
78004         * lib/argp-parse.c: New file, from glibc.
78005         * lib/argp-pv.c: New file, from glibc.
78006         * lib/argp-pvh.c: New file, from glibc.
78007         * lib/argp-xinl.c: New file, from glibc.
78008
78009 2003-06-10  Simon Josefsson  <jas@extundo.com>
78010
78011         * modules/strchrnul: New file.
78012
78013 2003-06-10  Simon Josefsson  <jas@extundo.com>
78014
78015         * modules/argp: New file.
78016
78017 2003-06-10  Simon Josefsson  <jas@extundo.com>
78018
78019         * m4/strchrnul.m4: New file.
78020
78021 2003-06-10  Simon Josefsson  <jas@extundo.com>
78022
78023         * lib/strchrnul.h: New file.
78024         * lib/strchrnul.c: New file.
78025
78026 2003-06-10  Bruno Haible  <bruno@clisp.org>
78027
78028         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
78029
78030 2003-06-07  Karl Berry  <karl@gnu.org>
78031
78032         * config/config.{guess,sub}: update from prep.
78033
78034 2003-06-07  Jim Meyering  <jim@meyering.net>
78035
78036         * modules/strtod: Use $(...) notation, not @...@ for
78037         AC_REPLACE'd variables.
78038         * modules/localcharset: Likewise.
78039
78040 2003-06-07  Jim Meyering  <jim@meyering.net>
78041
78042         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
78043         in place of my name in the copyright comment.
78044         Remove definition and uses of __P.
78045
78046         From coreutils.
78047         * lib/stat.c: Don't declare xmalloc explicitly.
78048         Instead, include "xalloc.h".
78049         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
78050         xrealloc, and xcalloc return values.
78051         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
78052         Improve comment.
78053         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
78054
78055 2003-06-07  Bruno Haible  <bruno@clisp.org>
78056
78057         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
78058         avoid AC_CONFIG_LINKS.
78059         * modules/fnmatch (Makefile.am): Use explicit creation rule for
78060         fnmatch.h, to avoid AC_CONFIG_LINKS.
78061         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
78062
78063 2003-06-07  Bruno Haible  <bruno@clisp.org>
78064
78065         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
78066         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
78067         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78068         directory.
78069         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
78070         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78071         directory.
78072
78073 2003-06-06  Jim Meyering  <jim@meyering.net>
78074
78075         Merge from coreutils.
78076         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
78077         Consolidate declarations and initializations of *_base* locals.
78078
78079         Merge from coreutils.
78080         This avoids a core dump on systems without GNU putenv,
78081         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
78082         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
78083         (unsetenv): New static function, from GNU libc.
78084         (rpl_putenv): Use it.
78085
78086         * lib/modechange.c: Remove trailing blanks.
78087
78088         Merge from coreutils.
78089         * lib/fsusage.c: Remove declaration of statfs.
78090         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
78091
78092         * lib/posixtm.c: Include <stdbool.h> unconditionally.
78093
78094 2003-06-06  Jim Meyering  <jim@meyering.net>
78095
78096         * lib/stdbool_.h: Renamed from stdbool.h.in.
78097
78098 2003-06-06  Jim Meyering  <jim@meyering.net>
78099             Bruno Haible  <bruno@clisp.org>
78100
78101         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
78102         Adjust Makefile.am snippet not to redirect directly to target.
78103         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
78104
78105 2003-06-05  Paul Eggert  <eggert@twinsun.com>
78106
78107         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
78108         mismatch, look in future quarters as well as past.  This fixes a
78109         bug when processing fall-backwards gaps immediately after a long
78110         period of daylight-saving time.
78111
78112         * lib/mktime.c: Assume freestanding C89 or better.
78113         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78114         (__P): Remove; not used.
78115         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78116         (mktime, not_equal_tm, print_tm, check_result,
78117         main): Use prototypes.  Use const * where appropriate.
78118         (main): Fix typo in testing code that uncovered by above changes.
78119         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
78120
78121 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78122
78123         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
78124         locale.h, localeconv.  This merges changes from coreutils.
78125
78126         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
78127         It can be removed after the next Autoconf is released.
78128         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
78129         needed.
78130
78131 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78132
78133         * lib/mktime.c: Fix Debian bug 177940
78134         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
78135         (localtime_offset): Now long int, not time_t, because we want it
78136         to be guaranteed to be signed.  All uses changed.
78137         (__mktime_internal): If overflow would occur when adding offset,
78138         don't add it.
78139
78140         Merge 'human' changes from coreutils.  Rewrite to support
78141         locale-specific notations like thousands separators.
78142         * lib/human.c: Simplify authorship notice.
78143         Include human.h immediately after config.h.
78144         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
78145         <limits.h>: Do not include, since human.h does.
78146         (SIZE_MAX, UINTMAX_MAX): New macros.
78147         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
78148         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
78149         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
78150         (power_letter): Renamed from suffixes.
78151         (generate_suffix_backwards): Remove.
78152         (adjust_value): Now takes int style (because of human.h changes)
78153         and long double value (for greater precision on some platforms).
78154         (group_number): New function.
78155         (human_readable): Use it.  Use integer options, not enum.
78156         Put the options before the sizes in the arg list.
78157         Support all the new options.
78158         The old human_readable function has been removed;
78159         use inttostr.h instead.
78160         (human_readable, default_block_size, humblock):
78161         Use uintmax_t, not int, for block sizes.
78162         (human_readable_inexact, block_size_types): Remove.
78163         (block_size_opts): New constant.
78164         (human_options): Renamed from human_block_size, with new signature
78165         that allows block sizes up to UINTMAX_MAX.  All callers changed.
78166         * lib/human.h: Add copyright and authorship notice.
78167         Include <limits.h> and <stdbool.h> unconditionally.
78168         (PARAMS): Remove.  All uses removed.
78169         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
78170         (enum human_inexact_style): Remove tag; now a nameless enum.
78171         (human_floor, human_ceiling, human_round_to_even): Now have
78172         values 2, 0, 1 rather than -1, 1, 0.
78173         (human_group_digits, human_suppress_point_zero, human_autoscale,
78174         human_base_1024, human_SI, human_B): New constants.
78175         (human_readable_inexact, human_block_size): Remove.
78176         (human_readable): Size args are now uintmax_t, not int.
78177         (human_options): New decl.
78178
78179         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
78180         unnecessary now that we assume C89 or better.  This change
78181         imported from coreutils.
78182
78183         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78184         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
78185         in the 2003-05-30 sync from glibc.
78186
78187         .h files should stand alone, but we shouldn't include <sys/types.h>
78188         if we can get away with just <stddef.h>.
78189
78190         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
78191         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
78192         rather than <sys/types.h>, as we merely need size_t.
78193         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
78194         to get size_t.
78195         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
78196         Include <stdio.h>, to get FILE.
78197         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
78198         memcasecmp.h has included <stddef.h> and all we need is size_t.
78199         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
78200         our interface, instead of including <sys/types.h>
78201
78202 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78203
78204         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
78205         now, as glibc mktime is buggy on non-glibc systems.
78206
78207 2003-06-03  Karl Berry  <karl@gnu.org>
78208
78209         * config/config.sub: update from prep.
78210
78211 2003-06-02  Paul Eggert  <eggert@twinsun.com>
78212
78213         [from coreutils]
78214         Fix some minor time-related bugs with POSIX time arguments.
78215         Some valid time stamps were being rejected (notably -1, and
78216         time stamps before 1900 on 64-bit hosts).  And some invalid
78217         time stamps were being accepted, e.g. September 31.
78218
78219         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
78220         that we can return (time_t) -1 successfully.
78221         * lib/posixtm.c: Likewise.
78222         [HAVE_STDBOOL_H]: Include <stdbool.h>.
78223         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
78224         (t): Remove static var.
78225         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
78226         of static var.  All uses changed.
78227         (year): Do not reject years before 1900; they can occur with
78228         64-bit time_t.
78229         (posix_time_parse): Do not check for out-of-range components;
78230         that is now the caller's responsibility, since our checks were
78231         only approximations.
78232         (posixtime): Use mktime to check for out-of-range components,
78233         since it knows them exactly.
78234         If mktime returns (time_t) -1, check whether an error actually occurred
78235         by invoking localtime on -1.
78236         (main) [TEST_POSIXTIME]: Check for input data errors, and report
78237         posixtime failures better.
78238         Improve the test data (in comments only).
78239
78240 2003-06-02  Karl Berry  <karl@gnu.org>
78241
78242         * config/mkinstalldirs (version): new variable.
78243         (--version): new option.
78244         (usage): improve message.
78245
78246 2003-05-30  Karl Berry  <karl@gnu.org>
78247
78248         * lib/mktime.c: update from libc.
78249
78250 2003-05-30  Bruno Haible  <bruno@clisp.org>
78251
78252         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
78253         * config/config.rpath: Upgrade to gettext-0.12.1.
78254
78255 2003-05-30  Bruno Haible  <bruno@clisp.org>
78256
78257         * m4/gettext.m4: Upgrade to gettext-0.12.1.
78258         * m4/nls.m4: New file, from gettext-0.12.1.
78259         * m4/po.m4: New file, from gettext-0.12.1.
78260         * m4/progtest.m4: Upgrade to gettext-0.12.1.
78261
78262 2003-05-30  Bruno Haible  <bruno@clisp.org>
78263
78264         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
78265         * lib/localcharset.h: Likewise.
78266         * lib/localcharset.c: Likewise.
78267
78268 2003-05-29  Karl Berry  <karl@gnu.org>
78269
78270         * config/config.rpath: update from gettext.
78271
78272 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78273
78274         Assume the headers required for C89 freestanding compilers.
78275         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
78276         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
78277         * m4/human.m4 (gl_HUMAN): Likewise.
78278         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
78279         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
78280         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78281         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
78282         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78283         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
78284
78285 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78286
78287         Assume the headers required for C89 freestanding compilers.
78288         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
78289         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
78290         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
78291         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
78292         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
78293         define, since <limits.h> is guaranteed to do that.
78294         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
78295         * lib/exclude.c: Include <stdbool.h> unconditionally.
78296         * lib/tempname.c: Include <stddef.h> unconditionally.
78297         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78298         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78299         <stddef.h> does that.
78300         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78301         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78302         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78303         needed.
78304         * lib/xstrtol.c: Likewise.
78305         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78306         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78307
78308         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78309         warnings on some platforms.
78310
78311         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78312         arbitrarily.
78313
78314 2003-05-26  Jim Meyering  <jim@meyering.net>
78315
78316         Merge in a change from coreutils:
78317         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78318         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78319         that condition, rather than `-1' which is slightly misleading.
78320         Change the name of the cache variable to have the gl_ prefix.
78321         Prompted by a patch from Richard Dawe for DJGPP.
78322
78323 2003-05-24  Karl Berry  <karl@gnu.org>
78324
78325         * config/config.guess: update from prep.
78326
78327 2003-05-22  Karl Berry  <karl@gnu.org>
78328
78329         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78330
78331 2003-05-20  Karl Berry  <karl@gnu.org>
78332
78333         * config/config.guess: update from prep.
78334
78335 2003-05-18  Karl Berry  <karl@gnu.org>
78336
78337         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78338         might actually be set by the user.
78339
78340         * config/depcomp, install-sh, mdate-sh: update from automake.
78341
78342 2003-05-17  Bruno Haible  <bruno@clisp.org>
78343
78344         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78345         invalid expansion for AC_EGREP_CPP.
78346         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78347         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78348         Suggested by Akim Demaille <akim@epita.fr> in
78349         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78350
78351 2003-05-12  Jim Meyering  <jim@meyering.net>
78352
78353         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78354         the space-padded-by-default conversion specifiers, %e, %k, %l.
78355
78356 2003-05-12  Bruno Haible  <bruno@clisp.org>
78357
78358         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78359         the string is longer than 4 KB.
78360
78361 2003-05-11  Karl Berry  <karl@gnu.org>
78362
78363         * config/config.{guess,sub}: update from prep.
78364
78365 2003-05-09  Bruno Haible  <bruno@clisp.org>
78366
78367         * modules/error: Add m4/strerror_r.m4 to file list.
78368
78369 2003-05-03  Bruno Haible  <bruno@clisp.org>
78370
78371         Upgrade to Unicode-4.0.
78372         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78373         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78374         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78375         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78376         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78377         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78378         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78379         Change width of U+E0100..U+E01EF from 1 to 0.
78380
78381 2003-04-25  Jim Meyering  <jim@meyering.net>
78382
78383         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78384         of type size_t, not int.
78385
78386 2003-04-25  Bruno Haible  <bruno@clisp.org>
78387
78388         * lib/copy-file.c: Include <stddef.h>, for size_t.
78389
78390 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78391
78392         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78393         code which expansion is under static control.  Patch imported from
78394         Akim Demaille's patch to Bison; see
78395         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78396
78397 2003-04-14  Bruno Haible  <bruno@clisp.org>
78398
78399         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78400
78401 2003-04-11  Jim Meyering  <jim@meyering.net>
78402
78403         Merge changes from Coreutils.
78404
78405         2003-03-22  Jim Meyering  <jim@meyering.net>
78406
78407         * lib/strftime.c (widen): Cast alloca return value to proper type.
78408
78409         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78410
78411         From GNU libc.
78412         * lib/strftime.c (my_strftime): Handle very large width
78413         specifications for numeric values correctly.  Improve checks for
78414         overflow.
78415
78416         2003-01-19  Jim Meyering  <jim@meyering.net>
78417
78418         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78419         definitions.
78420         (nl_get_alt_digit) [! defined my_strftime]: Define.
78421         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78422         _nl_get_alt_digit and _nl_get_walt_digit.
78423
78424         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78425         libc. These changes have no effect outside of _LIBC.
78426
78427 2003-04-10  Bruno Haible  <bruno@clisp.org>
78428
78429         * modules/findprog: New file.
78430         * MODULES.html.sh (func_all_modules): Add it.
78431
78432 2003-04-10  Bruno Haible  <bruno@clisp.org>
78433
78434         * m4/findprog.m4: New file.
78435         * m4/eaccess.m4: New file.
78436
78437 2003-04-10  Bruno Haible  <bruno@clisp.org>
78438
78439         * lib/findprog.h: New file, from GNU gettext.
78440         * lib/findprog.c: New file, from GNU gettext.
78441
78442 2003-04-05  Jim Meyering  <jim@meyering.net>
78443
78444         Merge changes from Coreutils.
78445
78446         * lib/exclude.h (PARAMS): Remove definition and uses.
78447         * lib/exclude.c: Remove uses of `PARAMS'.
78448
78449         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78450         Add test-cases for DOS filenames. Declare program_name.
78451         (main): Set up program_name.  Patch by Rich Dawe.
78452
78453         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78454         error from mntctl.
78455         Use mntctl's return value to drive the entry-processing loop, since
78456         we can't rely on the value of the vmt_length member in the last
78457         entry.  On some systems doing so could result in exhausting
78458         virtual memory.  Based in part on a patch from Mike Jetzer.
78459
78460 2003-04-04  Bruno Haible  <bruno@clisp.org>
78461
78462         * modules/linebreak: New file.
78463         * MODULES.html.sh (func_all_modules): Add it.
78464
78465 2003-04-04  Bruno Haible  <bruno@clisp.org>
78466
78467         * m4/linebreak.m4: New file.
78468
78469 2003-04-04  Bruno Haible  <bruno@clisp.org>
78470
78471         * lib/linebreak.h: New file, from GNU gettext.
78472         * lib/linebreak.c: New file, from GNU gettext with slight
78473         modifications.
78474         * lib/lbrkprop.h: New file, from GNU gettext.
78475
78476 2003-04-03  Bruno Haible  <bruno@clisp.org>
78477
78478         * modules/utf8-ucs4: New file.
78479         * modules/utf16-ucs4: New file.
78480         * modules/ucs4-utf8: New file.
78481         * modules/ucs4-utf16: New file.
78482         * MODULES.html.sh (func_all_modules): Add them.
78483
78484 2003-04-03  Bruno Haible  <bruno@clisp.org>
78485
78486         * m4/utf-ucs4.m4: New file.
78487         * m4/ucs4-utf.m4: New file.
78488
78489 2003-04-03  Bruno Haible  <bruno@clisp.org>
78490
78491         * lib/utf8-ucs4.h: New file, from GNU gettext.
78492         * lib/utf16-ucs4.h: New file, from GNU gettext.
78493         * lib/ucs4-utf8.h: New file, from GNU gettext.
78494         * lib/ucs4-utf16.h: New file, from GNU gettext.
78495
78496 2003-04-02  Bruno Haible  <bruno@clisp.org>
78497
78498         * modules/binary-io: New file.
78499         * MODULES.html.sh (func_all_modules): Add it.
78500
78501 2003-04-02  Bruno Haible  <bruno@clisp.org>
78502
78503         * lib/binary-io.h: New file, from GNU gettext.
78504
78505 2003-04-01  Bruno Haible  <bruno@clisp.org>
78506
78507         * modules/pathname: New file.
78508         * MODULES.html.sh (func_all_modules): Add it.
78509
78510 2003-04-01  Bruno Haible  <bruno@clisp.org>
78511
78512         * lib/pathname.h: New file, from GNU gettext.
78513         * lib/concatpath.c: New file, from GNU gettext.
78514
78515 2003-03-30  Bruno Haible  <bruno@clisp.org>
78516
78517         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78518
78519 2003-03-30  Bruno Haible  <bruno@clisp.org>
78520
78521         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78522         function chown() doesn't exist.
78523
78524 2003-03-28  Bruno Haible  <bruno@clisp.org>
78525
78526         * modules/copy-file: New file.
78527         * MODULES.html.sh (func_all_modules): Add it.
78528
78529 2003-03-28  Bruno Haible  <bruno@clisp.org>
78530
78531         * m4/copy-file.m4: New file.
78532
78533 2003-03-28  Bruno Haible  <bruno@clisp.org>
78534
78535         * lib/copy-file.h: New file, from GNU gettext.
78536         * lib/copy-file.c: New file, from GNU gettext.
78537
78538 2003-03-18  Jim Meyering  <jim@meyering.net>
78539
78540         * lib/quote.c (quote_n): Fix typo in comment.
78541
78542 2003-03-18  Bruno Haible  <bruno@clisp.org>
78543
78544         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78545         checking.
78546         * m4/onceonly_2_57.m4: Likewise.
78547
78548 2003-03-17  Bruno Haible  <bruno@clisp.org>
78549
78550         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78551         (m4_quote): Remove macro.
78552         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78553
78554 2003-03-14  Jim Meyering  <jim@meyering.net>
78555
78556         Merge changes from Coreutils.
78557         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78558         to be const, in order to avoid warnings.
78559         (obstack_room): Likewise.
78560         (obstack_empty_p): Likewise.
78561
78562 2003-03-14  Bruno Haible  <bruno@clisp.org>
78563
78564         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78565         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78566
78567 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78568
78569         Merge changes from Bison.
78570         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78571         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78572         when compiling Bison 1.875's `bitset bset = obstack_alloc
78573         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78574         * lib/hash.c: Include <stdbool.h> unconditionally.
78575
78576 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78577
78578         * m4/onceonly.m4 (m4_quote): New macro.
78579         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78580         Quote AC_FOREACH variable-expansions properly.
78581
78582 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78583
78584         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78585
78586 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78587
78588         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78589         Reported by Bruce Becker; see:
78590         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78591
78592 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78593             Bruno Haible  <bruno@clisp.org>
78594
78595         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78596         Reported by John Hughes, see
78597         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78598
78599 2003-02-20  Bruno Haible  <bruno@clisp.org>
78600
78601         * MODULES.html.sh (func_all_modules): Add poll.
78602
78603 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78604
78605         * modules/poll: New file.
78606
78607 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78608
78609         * lib/poll_.h: New file.
78610         * lib/poll.c: New file.
78611
78612 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78613
78614         * m4/poll.m4: New file.
78615
78616 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78617
78618         * modules/mathl: New file.
78619
78620 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78621
78622         * lib/mathl.h: New file.
78623         * lib/acosl.c: New file.
78624         * lib/asinl.c: New file.
78625         * lib/atanl.c: New file.
78626         * lib/ceill.c: New file.
78627         * lib/cosl.c: New file.
78628         * lib/expl.c: New file.
78629         * lib/floorl.c: New file.
78630         * lib/frexpl.c: New file.
78631         * lib/ldexpl.c: New file.
78632         * lib/logl.c: New file.
78633         * lib/sincosl.c: New file.
78634         * lib/sinl.c: New file.
78635         * lib/sqrtl.c: New file.
78636         * lib/tanl.c: New file.
78637         * lib/trigl.c: New file.
78638         * lib/trigl.h: New file.
78639
78640 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78641
78642         * m4/mathl.m4: New file.
78643
78644 2003-02-18  Bruno Haible  <bruno@clisp.org>
78645
78646         * MODULES.html.sh (func_all_modules): Add mathl.
78647
78648 2003-02-17  Bruno Haible  <bruno@clisp.org>
78649
78650         * modules/mkdtemp: New module.
78651         * MODULES.html.sh (func_all_modules): Add it.
78652
78653 2003-02-17  Bruno Haible  <bruno@clisp.org>
78654
78655         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78656
78657 2003-02-17  Bruno Haible  <bruno@clisp.org>
78658
78659         * lib/mkdtemp.h: New file, from GNU gettext.
78660         * lib/mkdtemp.c: New file, from GNU gettext.
78661
78662 2003-02-02  Jim Meyering  <jim@meyering.net>
78663
78664         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78665         e.g. glibc-2.2.93.
78666
78667 2003-01-31  Bruno Haible  <bruno@clisp.org>
78668
78669         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78670         'rpl_rename'.
78671         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78672         'rpl_strnlen'.
78673         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78674         'rpl_strtod'.
78675         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78676         'rpl_utime'.
78677
78678 2003-01-31  Bruno Haible  <bruno@clisp.org>
78679
78680         * lib/rename.c: #undef rename before defining rpl_rename.
78681         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78682
78683 2003-01-30  Bruno Haible  <bruno@clisp.org>
78684
78685         * modules/vasnprintf, modules/vasprintf: New modules.
78686         * MODULES.html.sh (func_all_modules): Add them.
78687
78688 2003-01-30  Bruno Haible  <bruno@clisp.org>
78689
78690         * m4/signed.m4: New file, from GNU gettext.
78691         * m4/longdouble.m4: New file, from GNU gettext.
78692         * m4/wchar_t.m4: New file, from GNU gettext.
78693         * m4/wint_t.m4: New file, from GNU gettext.
78694         * m4/vasnprintf.m4: New file.
78695         * m4/vasprintf.m4: New file.
78696
78697 2003-01-30  Bruno Haible  <bruno@clisp.org>
78698
78699         * lib/printf-args.h: New file, from GNU gettext.
78700         * lib/printf-args.c: New file, from GNU gettext.
78701         * lib/printf-parse.h: New file, from GNU gettext.
78702         * lib/printf-parse.c: New file, from GNU gettext.
78703         * lib/vasnprintf.h: New file, from GNU gettext.
78704         * lib/vasnprintf.c: New file, from GNU gettext.
78705         * lib/asnprintf.c: New file, from GNU gettext.
78706         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78707         * lib/vasprintf.c: New file, from GNU gettext.
78708         * lib/asprintf.c: New file, from GNU gettext.
78709
78710 2003-01-29  Bruno Haible  <bruno@clisp.org>
78711
78712         * modules/stpncpy: New module.
78713         * MODULES.html.sh (func_all_modules): Add it.
78714
78715 2003-01-29  Bruno Haible  <bruno@clisp.org>
78716
78717         * m4/stpncpy.m4: New file.
78718
78719 2003-01-29  Bruno Haible  <bruno@clisp.org>
78720
78721         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78722         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78723
78724 2003-01-28  Bruno Haible  <bruno@clisp.org>
78725
78726         * modules/c-ctype: New module.
78727         * MODULES.html.sh (func_all_modules): Add it.
78728
78729 2003-01-28  Bruno Haible  <bruno@clisp.org>
78730
78731         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78732         Paul Eggert.
78733         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78734         Paul Eggert.
78735
78736 2003-01-27  Bruno Haible  <bruno@clisp.org>
78737
78738         * modules/xsetenv: New module.
78739         * MODULES.html.sh (func_all_modules): Add it.
78740
78741 2003-01-27  Bruno Haible  <bruno@clisp.org>
78742
78743         * lib/xsetenv.h: New file, from GNU gettext.
78744         * lib/xsetenv.c: New file, from GNU gettext.
78745
78746 2003-01-23  Jim Meyering  <jim@meyering.net>
78747
78748         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78749         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78750
78751 2003-01-23  Bruno Haible  <bruno@clisp.org>
78752
78753         * modules/minmax: New module.
78754         * MODULES.html.sh (func_all_modules): Add it.
78755
78756 2003-01-23  Bruno Haible  <bruno@clisp.org>
78757
78758         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78759         Eggert.
78760
78761 2003-01-22  Bruno Haible  <bruno@clisp.org>
78762
78763         * modules/exit: New module.
78764         * MODULES.html.sh (func_all_modules): Add it.
78765
78766 2003-01-22  Bruno Haible  <bruno@clisp.org>
78767
78768         * lib/exit.h: New file, from GNU gettext.
78769
78770 2003-01-19  Bruno Haible  <bruno@clisp.org>
78771
78772         * gnulib-tool: Recognize option --extract-maintainer.
78773         (func_get_maintainer): New function.
78774         * modules/*: Add Maintainer entry.
78775
78776 2003-01-16  Jim Meyering  <jim@meyering.net>
78777
78778         * m4/regex.m4: The `regex' struct is both input and output.
78779         Initialize it before each use.  Patch by Tim Waugh.
78780
78781 2003-01-16  Bruno Haible  <bruno@clisp.org>
78782
78783         * MODULES.html.sh: Add a table of contents. Add the module name as
78784         leftmost column. Add hyperlinks.
78785
78786 2003-01-15  Bruno Haible  <bruno@clisp.org>
78787
78788         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78789
78790 2003-01-15  Bruno Haible  <bruno@clisp.org>
78791
78792         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78793         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78794         suffix.
78795
78796 2003-01-15  Bruno Haible  <bruno@clisp.org>
78797
78798         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78799
78800 2003-01-15  Bruno Haible  <bruno@clisp.org>
78801
78802         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78803         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78804
78805 2003-01-14  Jim Meyering  <jim@meyering.net>
78806
78807         * lib/same.c (same_name): Tweak a comment.
78808
78809 2003-01-14  Bruno Haible  <bruno@clisp.org>
78810
78811         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78812         when a string comparison is sufficient.
78813
78814 2003-01-14  Bruno Haible  <bruno@clisp.org>
78815
78816         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78817         'unsigned int'.
78818
78819 2003-01-14  Bruno Haible  <bruno@clisp.org>
78820
78821         * lib/hash-pjw.c: Add comment about low quality of this function.
78822
78823 2003-01-13  Bruno Haible  <bruno@clisp.org>
78824
78825         * modules/stpcpy: Distribute lib/stpcpy.h.
78826         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78827
78828 2003-01-13  Bruno Haible  <bruno@clisp.org>
78829
78830         * modules/*: Add a description.
78831         * modules/strpbrk: Fix Makefile.am snippet.
78832         * modules/strtoimax: Fix dependencies.
78833         * modules/strtoumax: Likewise.
78834
78835 2003-01-13  Bruno Haible  <bruno@clisp.org>
78836
78837         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78838         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78839         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78840
78841 2003-01-13  Bruno Haible  <bruno@clisp.org>
78842
78843         * gnulib-tool (func_create_testdir): Store config/* files in the main
78844         directory.
78845         * config.rpath: Move to ...
78846         * config/config.rpath: ... here.
78847         * modules/gettext: Contains config/config.rpath, not config.rpath.
78848         * modules/iconv: Likewise.
78849
78850 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78851
78852         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78853         to avoid collisions with libcurses and libreadline.
78854
78855         * m4/getstr.m4: Remove.
78856         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78857
78858 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78859
78860         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78861         to avoid collisions with libcurses and libreadline.
78862
78863         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78864         * lib/getstr.h, getstr.c: Remove.
78865         * lib/getline.c: Include "getline.h", to check interface.
78866         Move body of old getstr.c here: this defines MIN_CHUNK and
78867         declares getdelim2, which is renamed from getstr.
78868         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
78869
78870         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
78871         All uses changed.
78872         * lib/linebuffer.h: Likewise.
78873         (readline): Remove backward-compatibility macro.
78874
78875 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78876
78877         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78878         to avoid collisions with libcurses and libreadline.
78879         * getstr: Remove.
78880         * MODULES.html.sh: Remove getstr.
78881         * modules/getline: Depend on unlocked-io, not getstr.
78882
78883 2003-01-12  Jim Meyering  <jim@meyering.net>
78884
78885         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
78886
78887 2003-01-10  Bruno Haible  <bruno@clisp.org>
78888
78889         * modules/alloca: Change Makefile.am requirements. Simplify Include
78890         requirements. Add lib/alloca_.h to file list.
78891
78892 2003-01-10  Bruno Haible  <bruno@clisp.org>
78893
78894         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
78895
78896 2003-01-10  Bruno Haible  <bruno@clisp.org>
78897
78898         * lib/alloca_.h: New file.
78899         * lib/getdate.y: Unconditionally include alloca.h.
78900         * lib/makepath.c: Likewise.
78901         * lib/setenv.c: Likewise.
78902         * lib/userspec.c: Likewise.
78903
78904 2003-01-09  Karl Berry  <karl@gnu.org>
78905
78906         * MODULES.html.sh: include `dirname $0` in PATH, to find
78907         gnulib-tool.
78908
78909 2003-01-09  Bruno Haible  <bruno@clisp.org>
78910
78911         * modules/stdbool: Change configure.ac, Makefile.am requirements.
78912         Simplify Include requirements. Add lib/stdbool.h.in to file list.
78913
78914 2003-01-09  Bruno Haible  <bruno@clisp.org>
78915
78916         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
78917
78918 2003-01-09  Bruno Haible  <bruno@clisp.org>
78919
78920         * lib/stdbool.h.in: New file.
78921
78922 2003-01-09  Bruno Haible  <bruno@clisp.org>
78923
78924         * gnulib-tool (func_all_modules): Ignore files ending in ~.
78925         * MODULES.html.sh: Likewise.
78926
78927 2003-01-08  Jim Meyering  <jim@meyering.net>
78928
78929         * lib/full-write.c: Undefine and define-away `const' after inclusion
78930         of errno.h, not before.  Suggestion from Bruno Haible.
78931
78932 2003-01-08  Bruno Haible  <bruno@clisp.org>
78933
78934         * modules/full-read: Depend on full-write.
78935
78936 2003-01-08  Bruno Haible  <bruno@clisp.org>
78937
78938         * lib/safe-read.c: Include specification header first, to ensure its
78939         selfcontainedness.
78940         * lib/full-write.c: Likewise.
78941
78942 2003-01-07  Jim Meyering  <jim@meyering.net>
78943
78944         * lib/full-write.c: Rework so that it may serve to define full_read,
78945         too.
78946         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
78947
78948 2003-01-07  Bruno Haible  <bruno@clisp.org>
78949
78950         * lib/strtoimax.c: Include <stdint.h> as an alternative to
78951         <inttypes.h>.
78952         * lib/xstrtol.h: Likewise.
78953         * lib/xstrtoimax.c: Likewise.
78954         * lib/xstrtoumax.c: Likewise.
78955         * lib/human.h: Likewise.
78956
78957         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
78958         on systems that have <inttypes.h> but not <stdint.h>.
78959
78960 2003-01-07  Bruno Haible  <bruno@clisp.org>
78961
78962         * MODULES.html.sh: Add copyright notice.
78963         (missed_files): Omit CVS directory entries.
78964         (func_module): Make it work with sed-3.02.
78965         * MODULES.txt: Remove file.
78966
78967 2003-01-06  Jim Meyering  <jim@meyering.net>
78968
78969         * lib/version-etc.c: Update year in translatable copyright string.
78970
78971 2003-01-03  Karl Berry  <karl@gnu.org>
78972
78973         * config/config.{guess,sub}: update from prep.
78974
78975 2003-01-02  Karl Berry  <karl@gnu.org>
78976
78977         * doc/COPYING.DOC: belatedly updated to 1.2.
78978
78979 2003-01-01  Karl Berry  <karl@gnu.org>
78980
78981         * gnulib-tool (func_verify_module): report module name $module in
78982         error message, not $1.
78983         * gnulib-tool (create-testdir): don't complain if destdir couldn't
78984         be created, only if it doesn't exist.
78985         * gnulib-tool (last_checkin_date): don't expand the $Date here.
78986
78987 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78988
78989         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
78990
78991 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78992
78993         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
78994         memcmp if strcoll doesn't work.
78995
78996 2002-12-31  Bruno Haible  <bruno@clisp.org>
78997
78998         * lib/utime.c (utime_null): No need to call ftruncate if the file was
78999         nonempty.
79000
79001 2002-12-31  Bruno Haible  <bruno@clisp.org>
79002
79003         * lib/memcoll.c (STRCOLL): New macro.
79004         (memcoll): Use it.
79005
79006 2002-12-31  Bruno Haible  <bruno@clisp.org>
79007
79008         * lib/localcharset.h: New file.
79009         * lib/localcharset.c: Include it.
79010         * lib/unicodeio.c: Likewise.
79011
79012 2002-12-31  Bruno Haible  <bruno@clisp.org>
79013
79014         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
79015         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
79016
79017 2002-12-31  Bruno Haible  <bruno@clisp.org>
79018
79019         * lib/getline.h: Include <stddef.h>, for size_t.
79020
79021         * lib/unicodeio.h: Include <stddef.h>, for size_t.
79022         * lib/unicodeio.c: Don't include <stddef.h>.
79023
79024 2002-12-31  Bruno Haible  <bruno@clisp.org>
79025
79026         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
79027         HAVE_TM_ZONE.
79028
79029 2002-12-24  Karl Berry  <karl@gnu.org>
79030
79031         * config/config.guess: update from prep.
79032
79033 2002-12-24  Bruno Haible  <bruno@clisp.org>
79034
79035         General infrasructure.
79036         * m4/README: Rewritten.
79037         * m4/onceonly.m4: New file.
79038         * m4/onceonly_2_57.m4: New file.
79039
79040         Module atexit.
79041         * m4/atexit.m4: New file.
79042
79043         Module strtod.
79044         * m4/strtod.m4: New file.
79045
79046         Module strtol.
79047         * m4/strtol.m4: New file.
79048
79049         Module strtoul.
79050         * m4/strtoul.m4: New file.
79051
79052         Module memchr.
79053         * m4/memchr.m4: New file.
79054
79055         Module memcmp.
79056         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
79057         (jm_FUNC_MEMCMP): Invoke it.
79058
79059         Module memcpy.
79060         * m4/memcpy.m4: New file.
79061
79062         Module memmove.
79063         * m4/memmove.m4: New file.
79064
79065         Module memset.
79066         * m4/memset.m4: New file.
79067
79068         Module strcspn.
79069         * m4/strcspn.m4: New file.
79070
79071         Module strpbrk.
79072         * m4/strpbrk.m4: New file.
79073
79074         Module strstr.
79075         * m4/strstr.m4: New file.
79076
79077         Module strerror.
79078         * m4/strerror.m4: New file.
79079
79080         Module mktime.
79081         * m4/mktime.m4: Renamed from jm-mktime.m4.
79082         (gl_PREREQ_MKTIME): New macro.
79083         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
79084
79085         Module malloc.
79086         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
79087         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
79088         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
79089
79090         Module realloc.
79091         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
79092         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
79093         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
79094
79095         Module strftime.
79096         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
79097         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
79098         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
79099         gl_TM_GMTOFF.
79100         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
79101
79102         Module xalloc.
79103         * m4/xalloc.m4: New file.
79104
79105         Module alloca.
79106         * m4/alloca.m4: New file.
79107
79108         Module putenv.
79109         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
79110         (jm_FUNC_PUTENV): Invoke it.
79111
79112         Module setenv.
79113         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79114         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79115         when invoked twice.
79116         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79117         gt_FUNC_SETENV.
79118
79119         Module memrchr.
79120         * m4/memrchr.m4: New file.
79121
79122         Module stpcpy.
79123         * m4/stpcpy.m4: New file.
79124
79125         Module strcase.
79126         * m4/strcase.m4: New file.
79127
79128         Module strdup.
79129         * m4/strdup.m4: New file.
79130
79131         Module strnlen.
79132         * m4/strnlen.m4: New file.
79133
79134         Module strndup.
79135         * m4/strndup.m4: New file.
79136
79137         Module xstrtod.
79138         * m4/xstrtod.m4: New file.
79139
79140         Module xstrtol.
79141         * m4/xstrtol.m4: New file.
79142
79143         Module getdate.
79144         * m4/getdate.m4: New file.
79145
79146         Module unlocked-io.
79147         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
79148         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
79149         * m4/jm-glibc-io.m4n: Remove file.
79150
79151         Module long-options.
79152         * m4/long-options.m4: New file.
79153
79154         Module md5.
79155         * m4/md5.m4: New file.
79156
79157         Module sha.
79158         * m4/sha.m4: New file.
79159
79160         Module getstr.
79161         * m4/getstr.m4: New file.
79162
79163         Module getline.
79164         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
79165         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
79166         <sys/types.h>, for size_t. Use the function name gnu_getline, not
79167         simply getline. Infoke gl_PREREQ_GETLINE.
79168
79169         Module obstack.
79170         * m4/obstack.m4: New file.
79171
79172         Module hash.
79173         * m4/hash.m4: New file.
79174
79175         Module readtokens.
79176         * m4/readtokens.m4: New file.
79177
79178         Module strverscmp.
79179         * m4/strverscmp.m4: New file.
79180
79181         Module stdbool.
79182         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
79183         OSF/1.
79184
79185         Module strtoll.
79186         * m4/strtoll.m4: New file.
79187
79188         Module strtoull.
79189         * m4/strtoull.m4: New file.
79190
79191         Module strtoimax.
79192         * m4/strtoimax.m4: New file.
79193
79194         Module strtoumax.
79195         * m4/strtoumax.m4: New file.
79196
79197         Module xstrtoimax.
79198         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
79199         jm_AC_PREREQ_XSTRTOIMAX.
79200         Moved the strtol prerequisites to strtol.m4.
79201         Moved the strtoll prerequisites to strtoll.m4.
79202         Moved the strtoimax prerequisites to strtoimax.m4.
79203
79204         Module xstrtoumax.
79205         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
79206         jm_AC_PREREQ_XSTRTOUMAX.
79207         Moved the strtoul prerequisites to strtoul.m4.
79208         Moved the strtoull prerequisites to strtoull.m4.
79209         Moved the strtoumax prerequisites to strtoumax.m4.
79210
79211         Module chown.
79212         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
79213         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
79214
79215         Module dup2.
79216         * m4/dup2.m4: New file.
79217
79218         Module ftruncate.
79219         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
79220         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
79221
79222         Module getgroups.
79223         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
79224         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
79225
79226         Module gettimeofday.
79227         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
79228         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
79229         gl_PREREQ_GETTIMEOFDAY.
79230
79231         Module mkdir.
79232         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
79233         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
79234
79235         Module mkstemp.
79236         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
79237         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
79238         jm_AC_TYPE_UINTMAX_T.
79239         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
79240
79241         Module stat.
79242         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
79243         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
79244
79245         Module lstat.
79246         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
79247         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
79248
79249         Module timespec.
79250         * m4/timespec.m4 (gl_TIMESPEC): New macro.
79251         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
79252         * m4/st_mtim.m4: Indentation.
79253
79254         Module nanosleep.
79255         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
79256         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
79257         gl_PREREQ_NANOSLEEP.
79258
79259         Module regex.
79260         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
79261         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
79262         (gl_REGEX): New macro.
79263
79264         Module rename.
79265         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
79266         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
79267
79268         Module rmdir.
79269         * m4/rmdir.m4: New file.
79270
79271         Module utime.
79272         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
79273         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
79274         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
79275
79276         Module dirname.
79277         * m4/dirname.m4: New file.
79278
79279         Module getopt.
79280         * m4/getopt.m4: New file.
79281
79282         Module unistd-safer.
79283         * m4/unistd-safer.m4: New file.
79284
79285         Module fnmatch.
79286         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
79287         declaration.
79288         (gl_PREREQ_FNMATCH_EXTRA): New macro.
79289         (gl_FUNC_FNMATCH_POSIX): New macro.
79290         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
79291         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
79292         simply fnmatch.
79293
79294         Module exclude.
79295         * m4/exclude.m4: New file.
79296
79297         Module human.
79298         * m4/human.m4: New file.
79299
79300         Module acl.
79301         * m4/acl.m4: Nop.
79302
79303         Module backupfile.
79304         * m4/backupfile.m4: New file.
79305         * m4/d-ino.m4: Indentation.
79306
79307         Module fsusage.
79308         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79309         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79310         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79311
79312         Module dirfd.
79313         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79314         requirements.
79315
79316         Module euidaccess.
79317         * m4/euidaccess.m4: New file.
79318
79319         Module file-type.
79320         * m4/file-type.m4: New file.
79321
79322         Module fileblocks.
79323         * m4/fileblocks.m4: New file.
79324
79325         Module filemode.
79326         * m4/filemode.m4: New file.
79327
79328         Module isdir.
79329         * m4/isdir.m4: New file.
79330
79331         Module lchown.
79332         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79333         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79334
79335         Module makepath.
79336         * m4/makepath.m4: New file.
79337
79338         Module modechange.
79339         * m4/modechange.m4: New file.
79340
79341         Module mountlist.
79342         * m4/mountlist.m4: New file.
79343         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79344         Indentation.
79345
79346         Module path-concat.
79347         * m4/path-concat.m4: New file.
79348
79349         Module pathmax.
79350         * m4/pathmax.m4: New file.
79351
79352         Module same.
79353         * m4/same.m4: New file.
79354
79355         Module save-cwd.
79356         * m4/save-cwd.m4: New file.
79357
79358         Module savedir.
79359         * m4/savedir.m4: New file.
79360
79361         Module xgetcwd.
79362         * m4/xgetcwd.m4: New file.
79363         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79364
79365         Module xreadlink.
79366         * m4/xreadlink.m4: New file.
79367
79368         Module safe-read.
79369         * m4/safe-read.m4: New file.
79370
79371         Module safe-write.
79372         * m4/safe-write.m4: New file.
79373
79374         Module closeout.
79375         * m4/closeout.m4: New file.
79376
79377         Module stdio-safer.
79378         * m4/stdio-safer.m4: New file.
79379
79380         Module getpass.
79381         * m4/getpass.m4: New file.
79382
79383         Module getugroups.
79384         * m4/getugroups.m4: New file.
79385
79386         Module group-member.
79387         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79388         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79389
79390         Module idcache.
79391         * m4/idcache.m4: New file.
79392
79393         Module userspec.
79394         * m4/userspec.m4: New file.
79395
79396         Module gettime.
79397         * m4/clock_time.m4: New file.
79398         * m4/gettime.m4: New file.
79399
79400         Module settime.
79401         * m4/settime.m4: New file.
79402
79403         Module posixtm.
79404         * m4/posixtm.m4: New file.
79405
79406         Module gethostname.
79407         * m4/gethostname.m4: New file.
79408
79409         Module canon-host.
79410         * m4/canon-host.m4: New file.
79411
79412         Module gettext.
79413         * m4/codeset.m4: New file, from gettext-0.11.5.
79414         * m4/gettext.m4: New file, from gettext-0.11.5.
79415         * m4/glibc21.m4: New file, from gettext-0.11.5.
79416         * m4/iconv.m4: New file, from gettext-0.11.5.
79417         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79418         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79419         * m4/inttypes.m4: New file, from gettext-0.11.5.
79420         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79421         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79422         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79423         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79424         * m4/lib-link.m4: New file, from gettext-0.11.5.
79425         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79426         * m4/progtest.m4: New file, from gettext-0.11.5.
79427         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79428         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79429         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79430
79431         Module localcharset.
79432         * m4/localcharset.m4: New file.
79433
79434         Module hard-locale.
79435         * m4/hard-locale.m4: New file.
79436
79437         Module mbswidth.
79438         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79439         onceonly macros.
79440         * m4/mbrtowc.m4: Add comment.
79441
79442         Module memcasecmp.
79443         * m4/memcasecmp.m4: New file.
79444
79445         Module memcoll.
79446         * m4/memcoll.m4: New file.
79447
79448         Module unicodeio.
79449         * m4/unicodeio.m4: New file.
79450
79451         Module rpmatch.
79452         * m4/rpmatch.m4: New file.
79453
79454         Module yesno.
79455         * m4/yesno.m4: New file.
79456
79457         Module exitfail.
79458         * m4/exitfail.m4: New file.
79459
79460         Module c-stack.
79461         * m4/c-stack.m4 (gl_C_STACK): New macro.
79462         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79463
79464         Module error.
79465         * m4/error.m4 (gl_ERROR): New macro.
79466         (jm_PREREQ_ERROR): Use onceonly macros.
79467
79468         Module fatal.
79469         * m4/fatal.m4: New file.
79470
79471         Module getloadavg.
79472         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79473         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79474
79475         Module getpagesize.
79476         * m4/getpagesize.m4: New file.
79477
79478         Module getusershell.
79479         * m4/getusershell.m4: New file.
79480
79481         Module physmem.
79482         * m4/physmem.m4: New file.
79483
79484         Module posixver.
79485         * m4/posixver.m4: New file.
79486
79487         Module quotearg.
79488         * m4/quotearg.m4: New file.
79489
79490         Module quote.
79491         * m4/quote.m4: New file.
79492
79493         Module readutmp.
79494         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79495
79496         Module sig2str.
79497         * m4/sig2str.m4: New file.
79498
79499         Other.
79500         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79501         ulonglong.m4.
79502         * m4/intmax_t.m4: New file.
79503         * m4/d-type.m4: Indentation.
79504         * m4/jm-macros.m4: Update.
79505         * m4/prereq.m4 (jm_PREREQ): Update.
79506         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79507         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79508         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79509         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79510         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79511         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79512         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79513         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79514         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79515         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79516         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79517         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79518         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79519         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79520         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79521         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79522         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79523         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79524         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79525
79526 2002-12-24  Bruno Haible  <bruno@clisp.org>
79527
79528         * MODULES.txt: Update according to m4/ changes.
79529
79530         Module gettext.
79531         * config.rpath: New file, from gettext-0.11.5.
79532
79533         * modules/*: New module descriptions.
79534         * gnulib-tool: New file.
79535         * MODULES.html.sh: New file.
79536
79537 2002-12-21  Karl Berry  <karl@gnu.org>
79538
79539         * doc/fdl.texi: update to version 1.2.
79540
79541 2002-12-19  Karl Berry  <karl@gnu.org>
79542
79543         * config/config.guess: update from prep.
79544
79545 2002-12-18  Bruno Haible  <bruno@clisp.org>
79546
79547         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79548         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79549
79550 2002-12-17  Bruno Haible  <bruno@clisp.org>
79551
79552         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79553         stdlib.h, string.h.
79554
79555 2002-12-17  Bruno Haible  <bruno@clisp.org>
79556
79557         * lib/canon-host.c (strdup): Remove unused declaration.
79558
79559         * lib/fsusage.c: Include full_read.h.
79560         (get_fs_usage): Use full_read instead of safe_read.
79561
79562         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79563
79564 2002-12-12  Karl Berry  <karl@gnu.org>
79565
79566         * config/config.guess: update from prep.
79567
79568 2002-12-11  Bruno Haible  <bruno@clisp.org>
79569
79570         * m4/setenv.m4: New file, from gettext-0.11.5.
79571
79572 2002-12-11  Bruno Haible  <bruno@clisp.org>
79573
79574         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79575         not unsetenv().
79576         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79577         modifications:
79578
79579         2002-12-11  Bruno Haible  <bruno@clisp.org>
79580
79581                 * setenv.c (alloca): Fall back to malloc.
79582                 (freea): New macro.
79583                 (setenv): Use freea() to free memory allocated with alloca().
79584
79585         2002-11-13  Bruno Haible  <bruno@clisp.org>
79586
79587                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79588                 function declarations.
79589                 * unsetenv.c (unsetenv): Likewise.
79590
79591         2002-03-04  Bruno Haible  <bruno@clisp.org>
79592
79593                 Portability to AIX 4.3.3.
79594                 * unsetenv.c: New file, extracted from setenv.c.
79595                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79596
79597         2001-12-20  Bruno Haible  <bruno@clisp.org>
79598
79599                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79600                 use malloc instead. For SunOS 4.
79601
79602         2001-12-11  Bruno Haible  <bruno@clisp.org>
79603
79604                 * setenv.c: Declare alloca.
79605                 (compar_fn_t): New typedef.
79606                 (KNOWN_VALUE, STORE_VALUE): Use it.
79607
79608         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79609         setenv.h.
79610
79611 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79612
79613         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79614         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79615         Choose values that are less likely to collide with system fnmatch
79616         options.
79617         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79618         defined (e.g., a pure POSIX system).
79619         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79620         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79621
79622 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79623
79624         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79625         a pain in practice to deal with generated m4 files.  This change
79626         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79627
79628         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79629         and jm-glibc-io.m4, as they are no longer a special case.
79630         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79631         kludge and the auto-generation stuff.  Check only whether the
79632         functions are declared, not whether they exist, since older hosts
79633         that don't declare the functions can't use the optimization anyway.
79634
79635 2002-12-06  Jim Meyering  <jim@meyering.net>
79636
79637         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79638
79639         Merge in changes from libc's misc/error.c, in preparation
79640         for the merge of gnulib's changes back into libc.
79641
79642         * lib/error.c (_): Define only if not already defined.
79643         Move definition to follow all #include directives.
79644         Include unlocked-io.h only if !_LIBC.
79645         [_LIBC]: Include <libio/libioP.h>.
79646         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79647         (fflush): Tweak definition to use INTUSE.
79648         (putc): Define.
79649
79650 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79651
79652         * lib/alloca.c [defined emacs]: Include "lisp.h".
79653         (xalloc_die) [defined emacs]: New macro.
79654         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79655         [! defined emacs]: Include <xalloc.h>.
79656         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79657         (pointer): Typedef to POINTER_TYPE *.
79658         (malloc): Remove decl; we now always use xmalloc.
79659         (alloca): Use old-style definition, since Emacs needs this.
79660         Check for arithmetic overflow when computing combined size.
79661
79662 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79663
79664         Do not generate unlocked-io.h automatically, since it's easier to
79665         maintain it by hand.
79666
79667         * lib/unlocked-io.h: New file, from GNU diffutils,
79668         but with proper copyright notice and attribution.
79669         * lib/gen-uio: Remove.
79670         * lib/Makefile.am: Add copyright notice.
79671         (libfetish_a_SOURCES): Add unlocked-io.h.
79672         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79673         (DISTCLEANFILES, io_functions): Remove macros.
79674         (EXTRA_DIST): Remove gen_uio.
79675         (unlocked-io.h): Remove rule.
79676
79677 2002-12-04  Jim Meyering  <jim@meyering.net>
79678
79679         Reflect the fact that stat.c and lstat.c are no longer generated.
79680         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79681         (DISTCLEANFILES): Likewise.
79682         (EXTRA_DIST): Likewise.
79683         (all_local): Don't depend on stat.c or lstat.c.
79684         (stat.c, lstat.c): Remove rules.
79685         (EXTRA_DIST): Remove xstat.in.
79686
79687         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79688         * lib/stat.c: New file.  Contents mostly from xstat.in.
79689         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79690         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79691
79692         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79693         too.
79694         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79695
79696 2002-12-03  Jim Meyering  <jim@meyering.net>
79697
79698         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79699         but not semantics, to minimize the differences between these two files.
79700         (safe_read): Change comment to mention SAFE_READ_ERROR.
79701
79702         * lib/safe-read.c (IS_EINTR): Define.
79703         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79704
79705 2002-12-02  Jim Meyering  <jim@meyering.net>
79706
79707         * lib/safe-read.c (EINTR): Define.
79708         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79709         (INT_MAX): Provide fallback.
79710         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79711
79712         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79713
79714 2002-12-02  Bruno Haible  <bruno@clisp.org>
79715
79716         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79717         Define, taken from safe-read.c.
79718         (INT_MAX): Provide fallback.
79719         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79720         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79721
79722         * lib/safe-read.c (EINTR): Remove definition.
79723         (safe_read): Don't use EINTR if it is absent.
79724
79725 2002-12-01  Jim Meyering  <jim@meyering.net>
79726
79727         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79728         zero.
79729         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79730
79731 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79732
79733         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79734         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79735         with `if (! (value < limit)) abort ();', for readability.
79736
79737 2002-11-26  Karl Berry  <karl@gnu.org>
79738
79739         * lib/strdup.c: copy from libc again, with jim's ok.
79740         * lib/.cppi-disable: re-add strdup.c
79741
79742 2002-11-25  Karl Berry  <karl@gnu.org>
79743
79744         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79745         instead of "strtol.c".
79746
79747 2002-11-25  Karl Berry  <karl@gnu.org>
79748
79749         * config/install-sh: update from automake for variable quoting, $0 in
79750         error msgs, etc.
79751
79752         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79753         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79754         entry.
79755
79756 2002-11-25  Jim Meyering  <jim@meyering.net>
79757
79758         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79759
79760 2002-11-24  Karl Berry  <karl@gnu.org>
79761
79762         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79763         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79764
79765 2002-11-24  Jim Meyering  <jim@meyering.net>
79766
79767         Update from coreutils:
79768
79769         * lib/mktime.c: Merge in changes from libc.
79770
79771         Avoid a link-time failure on some Linux systems.
79772         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79773         (otherwise).
79774         (__mon_yday): Declare with the STATIC attribute.
79775         (__mktime_internal): Likewise.
79776         Based on a report from Greg Schafer.
79777
79778 2002-11-23  Jim Meyering  <jim@meyering.net>
79779
79780         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79781         Use `unsigned', not `int', as type of index.
79782
79783         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79784
79785         * lib/fsusage.c: Remove unneeded parentheses around operands of
79786         `defined'.
79787
79788 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79789
79790         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79791         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79792         so that we can be included first.
79793         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79794         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79795         No need to include stddef.h or sys/types.h any more.
79796         Surround local include files with "", not "<>".
79797         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79798         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79799         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79800         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79801         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79802         (ISPRINT): Remove; no longer needed now that we assume C89.
79803
79804         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79805         Preserve errno.
79806
79807         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79808         quotearg_char): Use SIZE_MAX rather than
79809         (size_t) -1 when we are talking about "infinity".
79810
79811         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79812
79813 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79814
79815         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79816         hint that one should use `if (! x) abort ();' rather than `assert
79817         (x);', and anyway it's one less thing to worry about configuring.
79818         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79819         hash_rehash, hash_insert): Use abort rather than assert.
79820
79821 2002-11-22  Bruno Haible  <bruno@clisp.org>
79822
79823         * lib/safe-read.h: Assume C89. Add comments.
79824         (safe_read): Change return type to size_t.
79825         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79826         byte counts > SSIZE_MAX correctly.
79827         * lib/safe-write.h: New file.
79828         * lib/safe-write.c: New file.
79829         * lib/full-read.h: New file.
79830         * lib/full-read.c: New file.
79831         * lib/full-write.h: Assume C89. Add comments.
79832         * lib/full-write.c: Include safe-write.h.
79833         (full_write): Rewritten to use safe_write.
79834         Suggested by Jim Meyering and Paul Eggert.
79835
79836 2002-11-21  Jim Meyering  <jim@meyering.net>
79837
79838         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79839
79840         Merge in changes from the coreutils.
79841
79842         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79843         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79844         <stdint.h>.
79845         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79846         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79847         int.  Work more efficiently if X is the same width as uintmax_t.
79848         Do not compare X to -1, to avoid bogus compiler warning.
79849         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79850         Don't assume that f_frsize and f_bsize are the same type.
79851
79852         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79853         warning on FreeBSD.
79854
79855         * lib/makepath.c (make_path): Restore umask *before* creating the final
79856         component.
79857         (make_path): Minor reformatting.
79858
79859         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79860         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79861         HAVE_MALLOC/HAVE_REALLOC.
79862
79863         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79864         dummy ones.  At least on GNU/Linux systems, `auto' means something
79865         else.
79866         From Michael Stone.
79867
79868 2002-11-21  Bruno Haible  <bruno@clisp.org>
79869
79870         Remove case insensitive option matching.
79871         * lib/argmatch.h (argcasematch): Remove declaration.
79872         (ARGCASEMATCH): Remove macro.
79873         (__xargmatch_internal): Remove case_sensitive argument.
79874         (XARGMATCH): Update.
79875         (XARGCASEMATCH): Remove macro.
79876         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
79877         case_sensitive argument.
79878         (argcasematch): Remove function.
79879         (__xargmatch_internal): Remove case_sensitive argument.
79880         (main): Use XARGMATCH instead of XARGCASEMATCH.
79881
79882         * lib/xmalloc.c: Change compile-time error message. Add comment about
79883         required autoconf version.
79884
79885 2002-11-20  Paul Eggert  <eggert@twinsun.com>
79886
79887         Merge argmatch cleanups from Bison.  Assume C89.
79888
79889         * lib/argmatch.c: Include config.h here, not in argmatch.h.
79890         Include stdlib.h, for EXIT_FAILURE.
79891         Always include <string.h>, since we assume C89.
79892         (EXIT_FAILURE): Remove pre-C89 bug workaround.
79893         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
79894         Include <stddef.h> instead, since it's all we need for size_t.
79895         (PARAMS): Remove.  All uses removed.
79896         (ARRAY_CARDINALITY): Do not bother to #undef.
79897         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
79898         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79899         Remove unnecessary parentheses.
79900         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79901         Insert necessary parentheses.
79902         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
79903         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
79904
79905 2002-11-19  Bruno Haible  <bruno@clisp.org>
79906
79907         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
79908         * lib/mbswidth.h: Include <stddef.h>, for size_t.
79909
79910         * lib/mbswidth.h (PARAMS): Remove macro.
79911         (mbswidth, mbsnwidth): Use ANSI C function declarations.
79912         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
79913
79914         * lib/gcd.h (PARAMS): Remove macro.
79915         (gcd): Use ANSI C function declarations.
79916         * lib/gcd.c (gcd): Likewise.
79917
79918 2002-11-15  Bruno Haible  <bruno@clisp.org>
79919
79920         * lib/strcspn.c: Include <stddef.h>.
79921         (strcspn): Use ANSI C function declaration. Change return type to
79922         size_t. Use NULL.
79923         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
79924         (strpbrk): Use NULL.
79925         * lib/strpbrk.h (PARAMS): Remove macro.
79926         (strpbrk): Use ANSI C function declaration.
79927         * lib/strstr.c: Don't include <sys/types.h>.
79928         * lib/strstr.h (PARAMS): Remove macro.
79929         (strstr): Use ANSI C function declarations.
79930
79931 2002-11-14  Karl Berry  <karl@gnu.org>
79932
79933         * config/mkinstalldirs: `do' on separate line, instead of
79934         `for var; do'.
79935
79936 2002-11-06  Bruno Haible  <bruno@clisp.org>
79937
79938         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
79939         * lib/gcd.c (gcd): Likewise.
79940
79941 2002-11-05  Bruno Haible  <bruno@clisp.org>
79942
79943         * lib/gcd.h: New file, from gettext-0.11.5.
79944         * lib/gcd.c: New file, from gettext-0.11.5.
79945
79946 2002-11-05  Bruno Haible  <bruno@clisp.org>
79947
79948         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79949         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79950         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79951         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79952
79953         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
79954         <libintl.h>.
79955         * lib/makepath.c: Include gettext.h instead of <locale.h> and
79956         <libintl.h>.
79957
79958         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
79959         * lib/human.c: Include gettext.h instead of <libintl.h>.
79960         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
79961         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
79962         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
79963         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
79964         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
79965         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
79966         (textdomain): Remove definition.
79967         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
79968
79969         * lib/long-options.c: Remove include of <libintl.h> and definition of
79970         _.
79971         * lib/same.c: Remove include of <libintl.h> and definition of _.
79972
79973 2002-11-04  Owen Taylor  <otaylor@redhat.com>
79974
79975         * lib/config.charset: A few additions for Solaris.
79976
79977 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79978
79979         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
79980         * lib/localcharset.c (locale_charset): Declare as extern "C".
79981
79982 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79983
79984         * lib/config.charset: msdos in uk_UA uses CP1125.
79985
79986 2002-11-04  Bruno Haible  <bruno@clisp.org>
79987
79988         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
79989         * lib/strcase.h: New file, from GNU gettext-0.11.5.
79990         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
79991         * lib/strstr.h: New file, from GNU gettext-0.11.5.
79992         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
79993
79994 2002-11-04  Bruno Haible  <bruno@clisp.org>
79995
79996         * lib/localcharset.c (locale_charset): Don't return an empty string.
79997
79998 2002-11-04  Bruno Haible  <bruno@clisp.org>
79999
80000         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
80001         aliases.
80002
80003 2002-11-04  Bruno Haible  <bruno@clisp.org>
80004
80005         * lib/config.charset: Update for newest glibc. Add canonical names
80006         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
80007
80008 2002-11-04  Bruno Haible  <bruno@clisp.org>
80009
80010         * lib/config.charset: Add support for NetBSD.
80011
80012 2002-11-04  Bruno Haible  <bruno@clisp.org>
80013
80014         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
80015
80016 2002-11-01  Bruno Haible  <bruno@clisp.org>
80017
80018         * configure.in: Add AC_CONFIG_AUX_DIR call.
80019         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
80020         test/Makefile.
80021         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
80022
80023 2002-09-28  Karl Berry  <karl@gnu.org>
80024
80025         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
80026         installed automake until the next release, since changes have been
80027         made.
80028
80029 2002-09-25  Karl Berry  <karl@gnu.org>
80030
80031         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
80032         * lib/getopt*: copy from libc/posix.
80033         * lib/gettext.h: copy from gettext.
80034         * lib/.cppi-disable: add strdup.c, gettext.h.
80035
80036 2002-09-25  Karl Berry  <karl@gnu.org>
80037
80038         * config/srclist.txt: enable gettext.h check.
80039         * config/config.{guess,sub}: update from prep.
80040         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
80041                 from automake 1.6.3.
80042         See srclist*.
80043
80044 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
80045
80046         * regex.c (PATFETCH): Remove the translating fetch.
80047         (PATFETCH_RAW): Rename to PATFETCH.
80048         (set_image_of_range): New fun.
80049         (SET_RANGE_TABLE_WORK_AREA): Use it.
80050         (regex_compile): Don't translate the pattern chars so eagerly.
80051         Only do it when inserting an `exactn' bytecode or when handling
80052         a char-range.
80053         (mutually_exclusive_p): Avoid empty statement.
80054
80055 2002-07-06  Jim Meyering  <meyering@lucent.com>
80056
80057         * m4/README: Don't mention Makefile.am.in.
80058         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
80059
80060 2002-07-01  Jim Meyering  <meyering@lucent.com>
80061
80062         * lib/c-stack.c: Include sys/time.h.
80063         From Volker Borchert.
80064
80065 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80066
80067         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
80068
80069 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80070
80071         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
80072         New macro.  Use it uniformly instead of
80073         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
80074         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
80075         reported by Vin Shelton.
80076
80077 2002-06-22  Paul Eggert  <eggert@twinsun.com>
80078
80079         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
80080         Do not assume SA_SIGINFO behavior.
80081         Bug reported by Jim Meyering on NetBSD 1.5.2.
80082
80083 2002-06-22  Jim Meyering  <meyering@lucent.com>
80084
80085         * m4/c-stack.m4: New file, from diffutils-2.8.2.
80086         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
80087
80088         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
80089         now that configure.ac uses AC_GNU_SOURCE.
80090         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
80091         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
80092
80093         Update to latest tools.  Suggestions from Paul Eggert.
80094         * m4/stdbool.m4: New file, from diffutils-2.8.2.
80095         * m4/gnu-source.m4: Update from diffutils-2.8.2.
80096         * m4/fnmatch.m4: Likewise.
80097         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
80098         to AC_HEADER_STDBOOL
80099
80100 2002-06-22  Jim Meyering  <meyering@lucent.com>
80101
80102         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
80103         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
80104
80105 2002-06-22  Jim Meyering  <meyering@lucent.com>
80106
80107         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
80108
80109         * lib/exitfail.c, exitfail.h: Likewise.
80110         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
80111
80112         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80113         of fnmatch.h.
80114         (EXTRA_DIST): Add fnmatch_loop.c.
80115         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80116
80117         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80118         * lib/fnmatch.c: Update from diffutils-2.8.2.
80119         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
80120         * lib/fnmatch.h: Remove file.
80121
80122 2002-06-21  Jim Meyering  <meyering@lucent.com>
80123
80124         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
80125         * m4/mbrtowc.m4: Likewise.
80126
80127         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
80128         * m4/mbswidth.m4: Reflect name change:
80129         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
80130         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80131
80132         * m4/lib-link.m4: Update from gettext-0.11.2.
80133         * m4/gettext.m4: Likewise.
80134
80135         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
80136         From Alfred M. Szmidt.
80137
80138 2002-06-18  Paul Eggert  <eggert@twinsun.com>
80139
80140         * lib/file-type.h: Report an error if neither S_ISREG nor
80141         S_IFREG is defined, instead of using a test specific to glibc
80142         2.2.  This should be safe, since POSIX requires S_ISREG and
80143         Unix Version 7 had S_IFREG.  We don't need to check for
80144         <sys/types.h> since we don't use any symbols that it defines.
80145
80146 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
80147
80148         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
80149         $@-t, so that each temporary file name is unique and valid in the first
80150         8 characters, for operation under DOS.
80151
80152 2002-06-15  Paul Eggert  <eggert@twinsun.com>
80153
80154         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
80155
80156 2002-06-15  Jim Meyering  <meyering@lucent.com>
80157
80158         Work even with DJGPP 2.03, which lacks support for symlinks.
80159         From Richard Dawe.
80160         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
80161         is defined.
80162         * lib/lchown.c (S_ISLNK): Likewise.
80163
80164 2002-06-15  Jim Meyering  <meyering@lucent.com>
80165
80166         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
80167         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
80168         have been included before this file.
80169
80170 2002-06-14  Jim Meyering  <meyering@lucent.com>
80171
80172         * lib/file-type.h: Use the version from diffutils-2.8.2.
80173         * lib/file-type.c: Likewise.
80174
80175 2002-06-07  Jim Meyering  <meyering@lucent.com>
80176
80177         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
80178         They're needed at least for NetBSD 1.5.2.
80179         ($statxfs_includes): Include those same headers.
80180         ($statxfs_includes): Include sys/vfs.h if available.
80181         ($statxfs_includes): Likewise for sys/statvfs.h.
80182         Check for the following members in both structs statfs and statvfs:
80183         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
80184
80185 2002-06-01  Jim Meyering  <meyering@lucent.com>
80186
80187         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
80188         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
80189
80190 2002-05-28  Jim Meyering  <meyering@lucent.com>
80191
80192         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
80193         Reported by Volker Borchert.
80194
80195 2002-05-27  Jim Meyering  <meyering@lucent.com>
80196
80197         Fix a problem seen only on nonconforming systems whereby ls.c's
80198         use of localtime, and then of gettimeofday would cause trouble:
80199         the localtime call used to initialize rpl_gettimeofday's save
80200         mechanism would clobber ls's current local time information so
80201         that in any long listing the first file would always be listed
80202         with date 1970-01-01.  Analysis by Volker Borchert.
80203
80204         * lib/gettimeofday.c (localtime): Undefine.
80205         (rpl_localtime): New function.
80206
80207 2002-05-27  Jim Meyering  <meyering@lucent.com>
80208
80209         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
80210         localtime.
80211
80212         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
80213         use the replacement function; it wouldn't resolve at link time.
80214         Reported by Volker Borchert.
80215
80216 2002-05-22  Jim Meyering  <meyering@lucent.com>
80217
80218         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
80219         file-type.h.
80220         * lib/file-type.h: New file.
80221         * lib/file-type.c (file_type): New file/function.  Extracted from
80222         diffutils.
80223
80224 2002-04-30  Jim Meyering  <meyering@lucent.com>
80225
80226         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
80227
80228 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80229
80230         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
80231
80232 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80233
80234         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
80235         Do not check for alloca.h (no longer used) or stdbool.h (was never
80236         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
80237
80238 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80239
80240         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
80241
80242 2002-04-29  Jim Meyering  <meyering@lucent.com>
80243
80244         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
80245         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
80246         Use AC_FUNC_STRNLEN here instead.
80247
80248         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
80249         With autoconf-2.53a, it's part of AC_PROG_CC.
80250
80251 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80252
80253         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
80254         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
80255
80256 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80257
80258         * lib/sig2str.h, lib/sig2str.c: New files.
80259         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
80260
80261 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80262
80263         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
80264         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
80265         of 127, since 64 is the largest conceivable number for ancient
80266         nonstandard hosts.
80267         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
80268
80269 2002-04-28  Jim Meyering  <meyering@lucent.com>
80270
80271         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
80272
80273 2002-04-24  Jim Meyering  <meyering@lucent.com>
80274
80275         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
80276         (jm_PREREQ): Use it.
80277
80278         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
80279         mach/mach.h fcntl.h.
80280         Check for this function: setlocale.
80281
80282 2002-04-24  Jim Meyering  <meyering@lucent.com>
80283
80284         * lib/gettext.h: New file, from Gettext.
80285         * lib/Makefile.am (INCLUDES): Remove -I../intl.
80286         (libfetish_a_SOURCES): Add gettext.h.
80287
80288 2002-04-16  Jim Meyering  <meyering@lucent.com>
80289
80290         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
80291         ut_pid, ut_id, ut_exit.
80292
80293 2002-04-16  Jim Meyering  <meyering@lucent.com>
80294
80295         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80296         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80297         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80298
80299 2002-04-12  Jim Meyering  <meyering@lucent.com>
80300
80301         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80302         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80303         existence of the getmntinfo function.  Needed for Darwin 5.3.
80304
80305         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80306         This is necessary at least on Darwin 5.3.
80307
80308         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80309         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80310         strnlen.o in the library, and that makes some versions of ranlib
80311         object.
80312
80313 2002-04-12  Jim Meyering  <meyering@lucent.com>
80314
80315         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80316
80317 2002-04-09  Jim Meyering  <meyering@lucent.com>
80318
80319         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80320         to be more precise.  Rather than saying we're checking whether the
80321         function `works', say what we're testing.
80322         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80323         Reported by Bruno Haible.
80324
80325 2002-03-10  Jim Meyering  <meyering@lucent.com>
80326
80327         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80328         Suggestion from Santiago Vila.
80329
80330 2002-03-08  Jim Meyering  <meyering@lucent.com>
80331
80332         * lib/rename.c: Mention that this wrapper is needed also on
80333         mips-dec-ultrix4.4 systems.
80334
80335 2002-03-02  Jim Meyering  <meyering@lucent.com>
80336
80337         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80338         not HAVE_CLOCK_SETTIME.
80339
80340 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80341
80342         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80343         Check for clock_settime.
80344
80345 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80346
80347         * lib/nanosleep.h: Rename to....
80348         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80349
80350         * lib/gettime.c: New file.
80351         * lib/settime.c: New file.
80352         * lib/stime.c: Remove.
80353
80354         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80355         timespec.h.  Remove nanosleep.h.
80356
80357 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80358
80359         * m4/acl.m4: New file.
80360         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80361         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80362
80363 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80364
80365         * lib/acl.c, lib/acl.h: New files.
80366         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80367
80368 2002-02-24  Jim Meyering  <meyering@lucent.com>
80369
80370         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80371         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80372         cause trouble.  Reported by Nelson Beebe.
80373
80374 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80375
80376         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80377         compilers that don't know that xalloc_die never returns.
80378
80379 2002-02-20  Jim Meyering  <meyering@lucent.com>
80380
80381         * lib/getdate.c: Regenerate using bison-1.33.
80382
80383 2002-02-17  Jim Meyering  <meyering@lucent.com>
80384
80385         * config/config.guess (main): Don't use `head -1'; it's no longer
80386         portable. Use `sed 1q' instead.
80387
80388 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80389
80390         * m4/codeset.m4: Upgrade to gettext-0.11.
80391         * m4/gettext.m4: Upgrade to gettext-0.11.
80392         * m4/glibc21.m4: Upgrade to gettext-0.11.
80393         * m4/iconv.m4: Upgrade to gettext-0.11.
80394         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80395         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80396         * m4/lib-ld.m4: New file, from gettext-0.11.
80397         * m4/lib-link.m4: New file, from gettext-0.11.
80398         * m4/lib-prefix.m4: New file, from gettext-0.11.
80399         * m4/progtest.m4: Upgrade to gettext-0.11.
80400
80401 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80402
80403         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80404         (jm_PREREQ): Use it.
80405
80406 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80407
80408         * lib/posixver.c, lib/posixver.h: New files.
80409         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80410
80411 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80412             Bruno Haible  <bruno@clisp.org>
80413
80414         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80415         (fwrite_success_callback): New declaration.
80416         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80417         print_unicode_char. Call failure callback instead of error.
80418         (fwrite_success_callback): New function.
80419         (exit_failure_callback): New function.
80420         (fallback_failure_callback): New function.
80421         (print_unicode_char): Call unicode_to_mb.
80422
80423 2002-01-26  Jim Meyering  <meyering@lucent.com>
80424
80425         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80426         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80427
80428 2002-01-26  Jim Meyering  <meyering@lucent.com>
80429
80430         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80431
80432 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80433
80434         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80435
80436 2002-01-22  Jim Meyering  <meyering@lucent.com>
80437
80438         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80439         Otherwise, some versions of automake would omit the rule that makes
80440         Makefile from Makefile.in.
80441
80442 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80443
80444         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80445         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80446         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80447         (memcoll): Set errno to zero if there is no error.
80448
80449         * lib/quotearg.c (quotearg_buffer_restyled):
80450         Fix bug with quoting buffers containing NUL when backslashing escapes.
80451         This bug was exposed by the other changes in this patch.
80452         (quotearg_n_options): New arg ARGSIZE.
80453         All callers changed.
80454         (quoting_options_from_style): New function.
80455         (quotearg_n_style): Use it.
80456         (quotearg_n_style_mem): New function.
80457
80458         * lib/quotearg.h (quotearg_n_style_mem): New function.
80459
80460 2002-01-19  Jim Meyering  <meyering@lucent.com>
80461
80462         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80463         Remove useless quotes: DF_PROG="df".
80464         * m4/strnlen.m4: New file.
80465
80466 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80467
80468         * lib/backupfile.c (ISDIGIT): Comment fix.
80469         * lib/getdate.y (ISDIGIT): Likewise.
80470         * lib/posixtm.c (ISDIGIT, year): Likewise.
80471         * lib/strverscmp.c (ISDIGIT): Likewise.
80472         * lib/userspec.c (ISDIGIT): Likewise.
80473
80474 2002-01-16  Jim Meyering  <meyering@lucent.com>
80475
80476         * lib/getdate.y: Add three semicolons, each just before a closing
80477         brace. Bison (as of version 1.31) no longer papers over that mistake.
80478
80479 2002-01-05  Jim Meyering  <meyering@lucent.com>
80480
80481         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80482
80483 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80484
80485         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80486         not silently exit merely because the output buffer happens to
80487         have nothing pending.
80488
80489 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80490
80491         See the big note in ../ChangeLog.
80492         * lib/human.c (suffixes): Prefer K to k for 1024.
80493         (generate_suffix_backwards): New function.
80494         (human_readable_inexact): Use it.
80495         * lib/xstrtol.c (__xstrtol): If there is no number but there
80496         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80497         Accept 'K' as well as 'k'.
80498
80499 2001-12-15  Jim Meyering  <meyering@lucent.com>
80500
80501         * lib/regex.h (__restrict_arr): Update from libc.
80502
80503         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80504         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80505         (STREQ): Define.
80506
80507 2001-12-14  Jim Meyering  <meyering@lucent.com>
80508
80509         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80510         Suggestion from Bruno Haible.
80511
80512 2001-12-10  Jim Meyering  <meyering@lucent.com>
80513
80514         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80515         xrealloc, Instead, include "xalloc.h".
80516         (initbuffer): Don't cast xmalloc return value to char*.
80517         (readline): Reword comment.
80518         Don't cast xrealloc return value to char*
80519         Return NULL, not 0.
80520
80521 2001-12-09  Jim Meyering  <meyering@lucent.com>
80522
80523         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80524         about `signed and unsigned type in conditional expression'.
80525         * lib/posixtm.c (posix_time_parse): Likewise.
80526
80527         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80528
80529         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80530         to avoid a pedantic warning.
80531
80532         * lib/getstr.c: Don't include assert.h.
80533         (getstr): Remove warning-evoking assertions.
80534         Return -1 if offset parameter is out of bounds.
80535         Change the type of a local from int to size_t.
80536
80537         * lib/strftime.c (my_strftime_localtime_r): Include this function
80538         definition in the `#if ! HAVE_TM_GMTOFF' block.
80539
80540         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80541         Include xalloc.h instead.
80542
80543 2001-12-02  Jim Meyering  <meyering@lucent.com>
80544
80545         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80546         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80547         included.
80548
80549         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80550         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80551
80552 2001-11-30  Akim Demaille  <akim@epita.fr>
80553
80554         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80555         before being defined.
80556
80557 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80558
80559         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80560         First arg is int, not unsigned.
80561         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80562         (SIZE_MAX, UINT_MAX): New macros.
80563         (quotearg_n_options): Abort if N is negative.
80564         Avoid overflow check on hosts where size_t is 64 bits and int
80565         is 32 bits, as overflow is impossible there.
80566         Fix off-by-one typo that caused unnecessary reallocation.
80567
80568 2001-11-27  Jim Meyering  <meyering@lucent.com>
80569
80570         * lib/tempname.c: Merge with version from libc.
80571         * lib/regex.c: Likewise.
80572
80573         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80574         systems for which STDC_HEADERS is 0, it was not included, resulting in
80575         a warning about an integer-to-pointer conversion problem with getenv.
80576         Reported by Volker Borchert.
80577
80578 2001-11-26  Jim Meyering  <meyering@lucent.com>
80579
80580         * lib/gtod.h: Remove file.
80581         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80582         * lib/gettimeofday.c: Don't include gtod.h.
80583         (GTOD_init): Remove function.
80584         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80585         Suggestion from Volker Borchert.
80586
80587 2001-11-23  Jim Meyering  <meyering@lucent.com>
80588
80589         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80590         it.
80591         * lib/hash.c (struct hash_table): Define it here instead.
80592
80593 2001-11-22  Jim Meyering  <meyering@lucent.com>
80594
80595         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80596
80597 2001-11-20  Jim Meyering  <meyering@lucent.com>
80598
80599         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80600         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80601
80602 2001-11-19  Jim Meyering  <meyering@lucent.com>
80603
80604         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80605         directory.  Use "conftestXXXXXX" as the template.
80606         Suggestion from Paul Eggert.
80607
80608         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80609         immediately, so the test doesn't mistakenly hit the max-open-files
80610         limit.
80611
80612 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80613
80614         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80615         (TEMPORARIES): New macro.
80616         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80617         removes an artificial limitation (e.g. HP-UX 10.20, where
80618         TMP_MAX is 17576).
80619
80620 2001-11-18  Jim Meyering  <meyering@lucent.com>
80621
80622         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80623
80624 2001-11-18  Jim Meyering  <meyering@lucent.com>
80625
80626         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80627         on SunOS 4.
80628
80629         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80630         files will be created before anything else.
80631
80632 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80633
80634         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80635         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80636
80637 2001-11-17  Jim Meyering  <meyering@lucent.com>
80638
80639         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80640         Prompted by a report from Bob Proulx.
80641
80642         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80643         Instead, require UTILS_FUNC_MKSTEMP.
80644
80645 2001-11-17  Jim Meyering  <meyering@lucent.com>
80646
80647         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80648         Now, that's done as part of AC_FUNC_STRTOD.
80649
80650 2001-11-17  Jim Meyering  <meyering@lucent.com>
80651
80652         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80653         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80654         rather than group writable.  Patch by Juan F. Codagnone.
80655
80656         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80657         xrealloc, Instead, include "xalloc.h".
80658
80659         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80660         Remove explicit declarations of xmalloc, xrealloc,
80661         and xstrdup.  Instead, include "xalloc.h".
80662
80663         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80664         unlocked-io.h.
80665         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80666         Likewise.
80667         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80668
80669         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80670         Reported by Padraig Brady.
80671
80672         * lib/mkstemp.c: #undef mkstemp.
80673         Include config.h.
80674         (rpl_mkstemp): Rename from mkstemp.
80675         Protoize.
80676
80677 2001-11-16  Jim Meyering  <meyering@lucent.com>
80678
80679         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80680         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80681         determine the amount of total physical memory, use pstat_getstatic.
80682         HPUX-11 doesn't define _SC_PHYS_PAGES.
80683         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80684         If sysconf couldn't be used to determine the amount of available
80685         physical memory, use both pstat_getstatic and pstat_getdynamic.
80686         Based on a patch from Bob Proulx.
80687
80688 2001-11-10  Jim Meyering  <meyering@lucent.com>
80689
80690         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80691         (jm_PREREQ): Use it.
80692
80693 2001-11-09  Jim Meyering  <meyering@lucent.com>
80694
80695         * m4/jm-macros.m4: Require autoconf-2.52f.
80696         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80697         Use these AC_-prefixed names, not the AM_-prefixed ones.
80698
80699         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80700
80701 2001-11-05  Jim Meyering  <meyering@lucent.com>
80702
80703         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80704
80705 2001-11-04  Jim Meyering  <meyering@lucent.com>
80706
80707         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80708         $DEFS.
80709
80710 2001-11-03  Jim Meyering  <meyering@lucent.com>
80711
80712         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80713         of AC_DEFUN.
80714
80715         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80716         know the name of the variable in the macro definition.
80717
80718 2001-11-03  Jim Meyering  <meyering@lucent.com>
80719
80720         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80721         in argmatch_to_argument call.
80722
80723         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80724         argument.
80725
80726         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80727         e.g., a fault due to an attempt to free a NULL pointer.
80728
80729 2001-11-01  Jim Meyering  <meyering@lucent.com>
80730
80731         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80732         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80733
80734 2001-11-01  Jim Meyering  <meyering@lucent.com>
80735
80736         * lib/dirfd.c, lib/dirfd.h: New files.
80737         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80738
80739         * lib/hash.c (hash_print) [TESTING]: Clean up.
80740
80741 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80742
80743         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80744         to avoid a warning if -Wall.
80745
80746 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80747
80748         * README: New file
80749         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80750         (per RMS's instructions, this is now the canonical source)
80751         * lgpl/, gpl/: New directories.
80752
80753 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80754
80755         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80756
80757 2001-10-21  Jim Meyering  <meyering@lucent.com>
80758
80759         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80760         this code would end up calling gettext even in packages built
80761         with --disable-nls.
80762         * lib/getopt.c (_): Likewise.
80763         * lib/regex.c (_): Likewise.
80764
80765 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80766
80767         * m4/error.m4 (jm_PREREQ_ERROR):
80768         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80769         AC_FUNC_STRERROR_R does that.
80770         Check for strerror declaration.
80771
80772         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80773         are supposed to have them these days.
80774         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80775         Merge changes from latest Autoconf CVS.
80776         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80777         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80778         POSIX decided to standardize on the int flavor of strerror_r.
80779
80780 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80781
80782         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80783         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80784         Use strerror_r that is only a macro, even if it is not a function.
80785         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80786         (private_strerror): Use prototypes, not old-style function definition.
80787         (print_errno_message): New function.
80788         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80789         char*-flavored one.
80790         (error_tail, error, error_at_line): Use it.
80791
80792 2001-10-11  Jim Meyering  <meyering@lucent.com>
80793
80794         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80795         and quote_n (1, ... to avoid clobbering a buffer.
80796
80797 2001-10-05  Jim Meyering  <meyering@lucent.com>
80798
80799         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80800         hash-pjw.h.
80801         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80802         * lib/hash-pjw.h: New file.
80803
80804 2001-09-30  Jim Meyering  <meyering@lucent.com>
80805
80806         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80807         `struct fsstat' has the `f_fstypename' member.
80808         Use that to define FS_TYPE, which is now used to make
80809         the getfsstat link test tighter.
80810
80811 2001-09-30  Jim Meyering  <meyering@lucent.com>
80812
80813         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80814         Include <sys/ucred.h>, for Apple Darwin.
80815         Include sys/mount.h and sys/fs_types.h only if available.
80816         (FS_TYPE): Define.
80817         (read_filesystem_list): Use FS_TYPE.
80818
80819 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80820
80821         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80822         a boolean context.
80823
80824 2001-09-29  Jim Meyering  <meyering@lucent.com>
80825
80826         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80827         [one-argument getmntent function]): Include stdio.h before mntent.h.
80828         SunOS 4.1.x needs it for the declaration of `FILE'.
80829         Patch by Volker Borchert.
80830
80831         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80832         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80833         sys/fs_types.h, and make the link-test for getfsstat guard #include
80834         directives with appropriate #if HAVE_*_H tests so that we can
80835         detect getfsstat on Apple Darwin1.3.7 systems.
80836         Reported by Nelson Beebe.
80837         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80838
80839 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80840
80841         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80842         #defines strtoimax.  Also treat the other strto* functions
80843         like strtoimax.
80844
80845         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80846         Check for strtoul and strtoumax,
80847         as those declarations are made even in the signed case.
80848         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80849         Likewise, for strtol and strtoimax.
80850
80851 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80852
80853         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80854         #defines strtoimax.  Also treat the other strto* functions
80855         like strtoimax.
80856
80857         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80858         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80859         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80860
80861 2001-09-26  Jim Meyering  <meyering@lucent.com>
80862
80863         Most macros in unlocked-io.h had the wrong number of arguments.
80864         * lib/gen-uio: New script.
80865         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80866         * lib/unlocked-io.hin: Remove file.
80867         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80868         rather than trying to embed it here.
80869         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
80870         Reported by Padraig Brady.
80871
80872 2001-09-25  Volker Borchert  <bt@teknon.de>
80873
80874         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
80875         `result'.
80876
80877 2001-09-24  Jim Meyering  <meyering@lucent.com>
80878
80879         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
80880
80881 2001-09-23  Jim Meyering  <meyering@lucent.com>
80882
80883         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
80884         instead of the mere test for existence of mntent.h.  The latter
80885         would get a false-positive on AIX 3.4 systems.
80886         In the outer getmntent if-block, don't die if neither of the getmntent
80887         tests succeeds.  Instead, just fall through and continue with the
80888         remaining tests.
80889
80890 2001-09-23  Jim Meyering  <meyering@lucent.com>
80891
80892         * lib/mountlist.c: Remove useless parentheses in #if directives.
80893         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
80894         the deprecated MOUNTED symbol is no longer defined in mntent.h.
80895
80896 2001-09-22  Jim Meyering  <meyering@lucent.com>
80897
80898         * m4/gettext.m4: New file.  From gettext.
80899         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
80900         * m4/progtest.m4: Likewise
80901         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
80902         * m4/glibc21.m4: Likewise.
80903
80904         * m4/libintl.m4: Remove.  No longer used.
80905
80906 2001-09-22  Jim Meyering  <meyering@lucent.com>
80907
80908         * lib/localcharset.c: Update from latest gettext.
80909         * lib/config.charset: Likewise.
80910
80911 2001-09-20  Jim Meyering  <meyering@lucent.com>
80912
80913         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
80914         strtoimax.
80915         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
80916         strtoumax.
80917
80918 2001-09-20  Jim Meyering  <meyering@lucent.com>
80919
80920         * lib/xstrtol.c (strtoimax): Guard declaration with
80921         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
80922         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
80923         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
80924         (strtoumax): Likewise, for completeness (it wasn't necessary).
80925
80926 2001-09-17  Paul Eggert  <eggert@twinsun.com>
80927
80928         * lib/strtoimax.c (HAVE_LONG_LONG):
80929         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
80930         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
80931         to work around bug in IBM C compiler.
80932
80933 2001-09-17  Jim Meyering  <meyering@lucent.com>
80934
80935         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
80936         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
80937         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
80938         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
80939         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
80940         whenever the right hand side need not be expanded by the shell.
80941
80942 2001-09-16  Paul Eggert  <eggert@twinsun.com>
80943
80944         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
80945         library.  It's not correct, as some older glibcs are buggy.
80946         fnmatch wasn't fixed until glibc 2.2.
80947
80948         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
80949         special shell magic here.
80950
80951 2001-09-16  Jim Meyering  <meyering@lucent.com>
80952
80953         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
80954         * m4/jm-macros.m4: Require it.
80955
80956 2001-09-16  Jim Meyering  <meyering@lucent.com>
80957
80958         * lib/mkdir.c: New file.
80959
80960 2001-09-15  Jim Meyering  <meyering@lucent.com>
80961
80962         * m4/jm-macros.m4: Check for help2man.
80963
80964 2001-09-11  Jim Meyering  <meyering@lucent.com>
80965
80966         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
80967         The body, by Paul Eggert, was moved here from configure.in.
80968         * m4/jm-macros.m4: Require UTILS_HOST_OS.
80969
80970 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80971
80972         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
80973         (jm_PREREQ): Use it.
80974
80975 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80976
80977         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
80978         Use ssize_t, not int, to store result of readlink.
80979         Check for ssize_t overflow as well as size_t overflow,
80980         as POSIX says the result of readlink is implementation-defined
80981         when ssize_t overflows.
80982         Remove unnecessary cast to char*.
80983         Use free+malloc instead of realloc, as the storage doesn't need
80984         to be preserved and it's clearer and can be more efficient that way.
80985         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
80986         * lib/xreadlink.h (xreadlink): Update prototype.
80987
80988 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80989
80990         * lib/xgetcwd.c: Revert some of the previous change; intead,
80991         fix the HAVE_GETCWD_NULL code to behave more like the
80992         !HAVE_GETCWD_NULL code used to.
80993
80994         Include "xalloc.h".
80995         (xgetcwd): Do not return NULL when memory is exhausted; instead,
80996         invoke xalloc_die.
80997
80998 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80999
81000         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
81001         sys/param.h, as pathmax.h includes them.
81002
81003 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81004
81005         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
81006         (jm_PREREQ_XGETCWD): New macro.
81007
81008         * m4/getcwd.m4: New file.
81009
81010 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81011
81012         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
81013         like the HAVE_GETCWD_NULL code.
81014         Include pathmax.h if not HAVE_GETCWD.
81015         Do not include xalloc.h.
81016         (INITIAL_BUFFER_SIZE): New symbol.
81017         Do not use xmalloc / xrealloc, since the caller is responsible for
81018         handling errors.  Preserve errno around `free' during failure.
81019         Do not overrun buffer when using getwd.
81020
81021 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81022
81023         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
81024         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
81025         getcwd (NULL, 0).
81026
81027 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81028
81029         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
81030         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
81031         spotted by Jim Meyering.
81032
81033 2001-09-03  Jim Meyering  <meyering@lucent.com>
81034
81035         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
81036         failure.
81037
81038 2001-09-02  Jim Meyering  <meyering@lucent.com>
81039
81040         * lib/error.c: Update from GNU libc.
81041
81042 2001-09-01  Jim Meyering  <meyering@lucent.com>
81043
81044         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
81045         Used by df.
81046
81047 2001-09-01  Jim Meyering  <meyering@lucent.com>
81048
81049         * lib/xreadlink.c: New file.
81050         * lib/xreadlink.h: New file.
81051         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
81052         xreadlink.h.
81053
81054         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
81055         doesn't conflict with sparc Solaris 7's definition in
81056         /usr/include/sys/int_types.h.
81057
81058         * lib/exclude.c: Use `""', not `<>' to #include non-system header
81059         files.
81060         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
81061         and strncasecmp as r-values.  Unixware didn't have declarations.
81062
81063 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81064
81065         * lib/xstrtol.h: Add copyright notice.
81066         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
81067         LONGINT_INVALID_SUFFIX_CHAR.
81068
81069 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81070
81071         * lib/xstrtol.c (strtoimax): New decl.
81072
81073 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81074
81075         * lib/xgetcwd.c: Don't include pathmax.h.
81076         Include stdlib.h and unistd.h if available.
81077         Include xalloc.h.
81078         (xmalloc, xstrdup, free): Remove decls.
81079         (xgetcwd): Don't assume sizes fit in unsigned.
81080         Check for overflow when computing sizes.
81081         Simplify reallocation code.
81082
81083 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81084
81085         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
81086         a directory's st_size can have an arbitrary value, so the old
81087         usage could waste an arbitrary amount of memory.  All uses
81088         changed.
81089         * lib/savedir.h: Update prototype.
81090
81091 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81092
81093         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
81094
81095         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
81096         old strtoimax.c.
81097
81098         Also, make the following further changes to make this file's
81099         configuration more similar to that of strtol.c:
81100         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
81101         (strtoumax, uintmax_t, strtoull, strtol): Remove.
81102         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
81103         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
81104         changed to signed values.
81105
81106         And make the following changes as well:
81107         Fix copyright notice, as 1999 was missing.
81108         (verify): New macro.
81109         (strtoimax): Check sizes at compile-time, not run-time.
81110         Prefer strtol to strtoll if both work.
81111         (main): Remove; it was not that useful and was a pain to maintain.
81112
81113         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81114
81115 2001-08-31  Jim Meyering  <meyering@lucent.com>
81116
81117         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81118         Use an initial, malloc'd, buffer of length 128 rather than
81119         a statically allocated one of length 1024.
81120
81121 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81122
81123         Simplify code, partly by assuming autoconf 2.52 semantics.
81124
81125         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
81126
81127         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
81128         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
81129         All uses removed.
81130         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
81131         Move AC_REQUIRE to next-to-top level, to avoid confusion.
81132         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
81133         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
81134         jm_AC_HEADER_INTTYPES_H.
81135         * m4/jm-macros.m4 (jm_MACROS): Likewise.
81136
81137         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
81138
81139         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81140         Quote first arg of AC_DEFUN.
81141         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
81142         since they are needed to parse the include file even if we need
81143         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
81144         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
81145         but with opposite signedness.
81146
81147 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81148
81149         Merge 'exclude' changes from tar 1.13.22.
81150         This fixes one or two unlikely storage allocation overflow bugs,
81151         but doesn't change user-visible behavior otherwise.
81152
81153 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81154
81155         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
81156         (jm_PREREQ_EXCLUDE): New macro.
81157
81158 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81159
81160         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
81161         tm to be declared.
81162
81163 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81164
81165         * lib/hash.c: Remove '2001' from copyright notice.
81166
81167 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81168
81169         * lib/full-write.h: New file.
81170         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
81171         * lib/full-write.c: Correct credits, as cccp.c no longer
81172         exists and anyway it was so heavily changed from the old cccp
81173         code as to be unrecognizable.  Include full-write.h.
81174         (full_write): Return size_t, with short writes meaning failure.
81175         All callers changed.  This fixes a bug with large buffers
81176         on 64-bit hosts.
81177         * lib/utime.c: Include full-write.h.
81178
81179 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81180
81181         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
81182         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
81183         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
81184         Include if available.
81185         (<xalloc.h>): Include
81186         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
81187         (verify): New macro.  Use it to verify that EXCLUDE macros do not
81188         collide with FNM macros.
81189         (struct patopts): New struct.
81190         (struct exclude): Use it, as exclude patterns now come with options.
81191         (new_exclude): Support above changes.
81192         (new_exclude, add_exclude_file):
81193         Initial size must now be a power of two to simplify overflow checking.
81194         (free_exclude, fnmatch_no_wildcards): New function.
81195         (excluded_filename): No longer requires options arg, as the options
81196         are determined by add_exclude.  Now returns bool, not int.
81197         (excluded_filename, add_exclude):
81198         Add support for the fancy new exclusion options.
81199         (add_exclude, add_exclude_file): Now takes int options arg.
81200         Check for arithmetic overflow when computing sizes.
81201         (add_exclude_file): xrealloc might modify errno, so don't
81202         realloc until after errno might be used.
81203
81204         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
81205         New macros.
81206         (free_exclude): New decl.
81207         (add_exclude, add_exclude_file): Now takes int options arg.
81208         (excluded_filename): No longer requires options arg, as the options
81209         are determined by add_exclude.  Now returns bool, not int.
81210
81211 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81212
81213         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
81214
81215 2001-08-27  Jim Meyering  <meyering@lucent.com>
81216
81217         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
81218
81219         * lib/version-etc.c (N_): Remove definition.
81220         Revert most of last change.
81221         Instead, simply don't mark the `Copyright...' string for translation.
81222         Based on advice from Paul Eggert.
81223
81224         * lib/strtoxmax.c: Tweak comment.
81225
81226 2001-08-26  Jim Meyering  <meyering@lucent.com>
81227
81228         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
81229
81230         * m4/xstrtoimax.m4: New file.
81231         * m4/xstrtoumax.m4: Add comments explaining why we
81232         AC_REPLACE_FUNCS(strtol).
81233
81234 2001-08-26  Jim Meyering  <meyering@lucent.com>
81235
81236         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
81237         of copyright with `%s' so translators don't get an untranslated
81238         message in 2002.
81239         (COPYRIGHT_YEAR): Define.
81240         (version_etc): Use fprintf rather than fputs.
81241         Suggestion from Ulrich Drepper.
81242
81243         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
81244
81245         * lib/strtoll.c: New file, from GNU libc.
81246         * lib/xstrtoimax.c: New file.
81247
81248         * lib/xstrtol.h: Add xstrtoimax.
81249         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
81250         * lib/strtoimax.c: New file.  Likewise, but first define
81251         STRTOUXMAX_SIGNED.
81252
81253         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
81254         ...
81255         * lib/strtoxmax.c: ... then renamed to this.
81256
81257 2001-08-18  Paul Eggert  <eggert@twinsun.com>
81258
81259         * m4/inttypes.m4: Add AC_PREREQ(2.13).
81260         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
81261         (jm_AC_TYPE_INTMAX_T): New macro.
81262         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
81263
81264         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
81265
81266         * m4/longlong.m4: Renamed from ulonglong.m4.
81267         * m4/inttypes.m4: Renamed from inttypes_h.m4.
81268         * m4/uintmax_t.m4: Removed.
81269
81270 2001-08-13  Paul Eggert  <eggert@twinsun.com>
81271
81272         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
81273         Port to Solaris 8, where 'sed' requires a space after the 'r'
81274         command, and where sh dislikes "$/".  Clean up the spacing a bit.
81275         Redirect output to $tmp just once.
81276
81277 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
81278
81279         * lib/addext.c (<errno.h>): Include.
81280         (errno): Declare if not defined.
81281         (addext): Work correctly when pathconf returns -1 and leaves
81282         errno alone because there is no limit.  Also, work even if
81283         pathconf returns a value greater than SIZE_MAX.
81284
81285 2001-08-12  Jim Meyering  <meyering@lucent.com>
81286
81287         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
81288         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
81289         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
81290         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
81291         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
81292         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
81293         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
81294         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
81295         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81296         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81297         utime.m4, utimes.m4, xstrtoumax.m4:
81298         Quote the first argument in each use of AC_DEFUN.
81299
81300 2001-08-12  Jim Meyering  <meyering@lucent.com>
81301
81302         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81303         Simply `return getcwd (NULL, 0);'.
81304         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81305         Use 1300 as initial value for length, not PATH_MAX.
81306
81307         * lib/pathmax.h: Clean up cpp syntax.
81308
81309 2001-08-12  Jim Meyering  <meyering@lucent.com>
81310
81311         * lib/gettimeofday.c: New file.
81312         * lib/gtod.h: New file.
81313         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81314
81315 2001-08-05  Jim Meyering  <meyering@lucent.com>
81316
81317         * m4/jm-macros.m4: Require autoconf-2.52.
81318
81319 2001-08-04  Jim Meyering  <meyering@lucent.com>
81320
81321         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81322         stmt, to get in sync with glibc.
81323
81324 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81325
81326         The following changes are from gettext 0.10.39 as maintained by
81327         Bruno Haible.
81328
81329         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81330         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81331         with inverted sense.  All uses changed.
81332
81333         * lib/mbswidth.c: Don't include <limits.h>.
81334         Include <stdlib.h> and <string.h> unconditionally.
81335         (iswcntrl, mbsinit, ISCNTRL): New macros.
81336         (mbsnwidth): Use K&R style function declarations.
81337         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81338         can optimize it when MB_CUR_MAX == 1.
81339         The width of control characters is zero, not 1.
81340
81341 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81342
81343         The following changes are from gettext 0.10.39 as maintained by
81344         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81345
81346         * m4/codeset.m4: Upgrade to serial AM1.
81347         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81348         all uses changed.  Quote first arg of AC_DEFUN.
81349         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81350
81351         * m4/iconv.m4: Upgrade to serial AM2.
81352         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81353         Add --with-libconv-prefix.
81354         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81355         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81356         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81357         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81358         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81359
81360         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81361         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81362         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81363         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81364         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81365         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81366         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81367         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81368         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81369
81370         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81371         string.h any more.
81372
81373         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81374         not the default value.
81375
81376         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81377         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81378         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81379         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81380         Also check for iswcntrl, used for wcwidth fallback.
81381         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81382         to Autoconf 2.13.
81383
81384 2001-08-03  Jim Meyering  <meyering@lucent.com>
81385
81386         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81387         as it was in the original.  Reported by Paul Eggert.
81388
81389 2001-07-16  Jim Meyering  <meyering@lucent.com>
81390
81391         * m4/gettimeofday.m4: New file.
81392         Prompted by a report from Bernhard Baehr.
81393
81394 2001-07-15  Jim Meyering  <meyering@lucent.com>
81395
81396         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81397         stuff. Now it's in ../Makefile.cfg.
81398
81399 2001-07-15  Jim Meyering  <meyering@lucent.com>
81400
81401         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81402         (BUILT_SOURCES): Add unlocked-io.h.
81403         (io_functions): Define.
81404         (unlocked-io.h): New rule.
81405         (DISTCLEANFILES): Add unlocked-io.h.
81406         (all-local): Depend on unlocked-io.h, to ensure it is created.
81407
81408         * lib/unlocked-io.hin: New file
81409
81410         * lib/regex.c: Update from glibc.
81411
81412 2001-07-05  Jim Meyering  <meyering@lucent.com>
81413
81414         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81415         recommendation.
81416         (libfetish_a_SOURCES): Put all .h files here instead.
81417         Remove a thus-exposed (better checks in automake) duplicate and
81418         two unnecessary .h files.
81419
81420 2001-07-04  Jim Meyering  <meyering@lucent.com>
81421
81422         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81423         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81424         distcheck failure.
81425
81426 2001-07-02  Jim Meyering  <meyering@lucent.com>
81427
81428         The following changes were prompted by suggestions from Bruno Haible.
81429
81430         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81431         is now generated.
81432         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81433         definition of EXTRA_DIST.
81434         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81435         ensure that the generated file is created/updated whenever the list
81436         of $(unlocked_functions) is changed.
81437         (jm-glibc-io.m4): New rule.
81438         (unlocked-io.h): New rule -- currently unused.
81439
81440 2001-06-24  Jim Meyering  <meyering@lucent.com>
81441
81442         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81443         unmatched right bracket, rather than kludging it with an extra,
81444         falsely-matching quote in a comment.  Patch by Akim Demaille.
81445
81446 2001-06-11  Jim Meyering  <meyering@lucent.com>
81447
81448         * lib/regex.c: Update from GNU libc.
81449
81450 2001-05-27  Jim Meyering  <meyering@lucent.com>
81451
81452         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81453         Check for ut_type in struct utmp.
81454
81455 2001-05-27  Jim Meyering  <meyering@lucent.com>
81456
81457         * lib/readutmp.h (UT_TYPE): Define.
81458
81459 2001-05-24  Jim Meyering  <meyering@lucent.com>
81460
81461         * lib/argmatch.c: Include "quote.h".
81462         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81463         quote function.  Reported by Göran Uddeborg.
81464
81465 2001-05-22  Jim Meyering  <meyering@lucent.com>
81466
81467         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81468         now that we use the package-supplied version unconditionally.
81469         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81470
81471 2001-05-21  Jim Meyering  <meyering@lucent.com>
81472
81473         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81474         shell syntax errors.
81475
81476 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81477
81478         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81479
81480 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81481
81482         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81483         Don't bother to check library strftime, since
81484         we'll be using our own my_strftime function anyway.
81485         Define my_strftime instead of strftime.
81486
81487 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81488
81489         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81490         which is not yet declared.
81491
81492 2001-05-15  Jim Meyering  <meyering@lucent.com>
81493
81494         * m4/regex.m4: Use proper quoting so brackets appear in the test
81495         program.
81496         Reported by, and with help from, Bruno Haible.
81497
81498 2001-05-13  Jim Meyering  <meyering@lucent.com>
81499
81500         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81501         undefined.
81502
81503 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81504
81505         dirname code cleanup.  base_name now behaves more compatibly
81506         with POSIX basename when given file names that have trailing
81507         slashes, and similarly for dir_name.  Add new primitives
81508         base_len and dir_len.  Put the directory-name-related decls
81509         into dirname.h.
81510
81511         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81512         * lib/backupfile.c (base_name): Likewise.
81513         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81514         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81515         * lib/makepath.c (strip_trailing_slashes): Likewise.
81516         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81517         ISSLASH): Likewise.
81518         * lib/rename.c (strip_trailing_slashes): Likewise.
81519         * lib/same.c (base_name): Likewise.
81520         * lib/stripslash.c (ISSLASH): Likewise.
81521
81522         * lib/addext.c: Include <dirname.h> after size_t is defined.
81523         * lib/backupfile.c: Likewise.
81524
81525         * lib/addext.c (addext): Use base_len to trim redundant
81526         trailing slashes instead of doing it ourselves.
81527         But do not trim the last slash if it is not redundant.
81528
81529         * lib/backupfile.c (find_backup_file_name,
81530         max_backup_version): Use base_len instead of rolling it ourselves.
81531         Handle the case of "" and (on DOS) "C:" correctly.
81532
81533         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81534         needed. Include <string.h>, <dirname.h>.
81535         (base_name): Allow file names ending in slashes, other than names
81536         that are all slashes.  In this case, return the basename followed
81537         by the slashes.  This is more general, and can be used in places
81538         where the original base_name purposely had an assertion failure.
81539         (base_len): New function.
81540
81541         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81542         Do not include <assert.h>; no longer needed.
81543         Include xalloc.h.
81544         (memrchr): Remove decl.
81545         (dir_name_r): Remove.
81546         (dir_len): Renamed from dirlen.  All callers changed.
81547         Rewrite in terms of base_name, for simplicity and consistency.
81548         (dir_name): Never return NULL.  All callers changed.
81549         Do not include <stdlib.h> in test program; no longer needed.
81550         return 0; is fine for test program.
81551
81552         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81553         New macros.
81554         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81555
81556         * lib/path-concat.c (path_concat): Use base_len to compute
81557         base length, not strlen; this means we cannot rely on memcpy
81558         to null-terminate.
81559
81560         * lib/same.c (STREQ): Remove.
81561         (same_name): Handle the case where the basename ends in trailing '/'.
81562
81563         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81564         a slash was stripped.  Do not strip the last slash after a
81565         file system prefix.
81566
81567 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81568
81569         * lib/Makefile.am (libfetish_a_SOURCES):
81570         Add strftime.c, since we now compile it on all hosts.
81571
81572         * lib/strftime.c (my_strftime):
81573         Define to nstrftime if emacs, but only if my_strftime is not defined.
81574         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81575         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81576         Add one more extra argument: a nanoseconds value.
81577         All uses changed.
81578         (ns): New macro.
81579         (my_strftime function): Add %N format.
81580         (emacs_strftimeu): Renamed from emacs_strftime,
81581         with extra ut argument.
81582
81583 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81584
81585         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81586
81587 2001-04-21  Jim Meyering  <meyering@lucent.com>
81588
81589         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81590         doesn't interfere.
81591
81592 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81593
81594         * m4/ftruncate.m4: Check for chsize.
81595         Link with ftruncate.o unconditionally if ftruncate is missing.
81596         This was required when cross-compiling to i586-mingw32msvc.
81597
81598 2001-04-08  Jim Meyering  <meyering@lucent.com>
81599
81600         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81601         recomputed; that's necessary when the offset spans a DST transition.
81602         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81603
81604 2001-04-02  Jim Meyering  <meyering@lucent.com>
81605
81606         * lib/regex.h, regex.c: Update from GNU libc.
81607
81608 2001-03-24  Jim Meyering  <meyering@lucent.com>
81609
81610         * m4/jm-macros.m4: Require autoconf-2.49d.
81611
81612 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81613
81614         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81615
81616 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81617
81618         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81619
81620 2001-03-17  Jim Meyering  <meyering@lucent.com>
81621
81622         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81623         now that the version in autoconf is equivalent.
81624         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81625
81626         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81627         Suggestion from Akim Demaille.
81628
81629         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81630         (jm_PREREQ_TEMPNAME): New function.
81631
81632 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81633
81634         * lib/tempname.c (uint64_t): Define to uintmax_t if
81635         not defined, and if UINT64_MAX is not defined.
81636         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81637         Reported by John David Anglin.
81638
81639 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81640
81641         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81642         resolve alias if codeset is empty.
81643         * lib/config.charset (BeOS): Use wildcard syntax.
81644
81645 2001-03-13  Jim Meyering  <meyering@lucent.com>
81646
81647         * lib/path-concat.c (path_concat)
81648         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81649         concatenating e.g., `C:' and `foo'.
81650         From Bruno Haible.
81651
81652 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81653
81654         * lib/localcharset.c (locale_charset): Don't use
81655         setlocale(LC_CTYPE,NULL). Don't return NULL.
81656         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81657
81658 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81659
81660         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81661         support for DOS/DJGPP.
81662
81663 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81664
81665         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81666         lacks mkstemp.  Compile our own tempname.c if we compile our own
81667         mkstemp.c, as mkstemp relies on tempname.
81668
81669 2001-03-01  Jim Meyering  <meyering@lucent.com>
81670
81671         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81672         AH_VERBATIM really does output its argument verbatim.
81673
81674 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81675
81676         * lib/Makefile.am (libfetish_a_SOURCES):
81677         Add dup-safer.c, fopen-safer.c.
81678         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81679
81680         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81681         * lib/unistd-safer.h: New files.
81682
81683 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81684
81685         The mkstemp replacement is taken from glibc 2.2.2, with some
81686         portability fixes for use outside glibc, as follows:
81687
81688         * lib/tempname.c (struct_stat64): New macro.
81689         (direxists, __gen_tempname): Use it.
81690         This avoids a portability problem with Solaris 8.
81691
81692         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81693         (<stddef.h>, <stdint.h>, <string.h>):
81694         Include only if STDC_HEADERS || _LIBC.
81695         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81696         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81697         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81698         (__set_errno): Define this macro if <errno.h> doesn't.
81699         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81700         Define these macros if <stdio.h> doesn't.
81701         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81702         Define these macros if <sys/stat.h>
81703         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81704         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81705         __xstat64): Define if not _LIBC.
81706         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81707         (__gen_tempname): Invoke gettimeofday only if
81708         HAVE_GETTIMEOFDAY || _LIBC;
81709         otherwise, fall back on plain "time".
81710         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81711
81712         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81713
81714         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81715
81716 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81717
81718         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81719
81720 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81721
81722         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81723         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81724         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81725         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81726
81727 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81728
81729         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81730         Remove workaround macros for hosts that have mbrtowc but not
81731         mbstate_t, as we now insist on proper declarations for both
81732         before using mbrtowc.
81733
81734 2001-02-17  Jim Meyering  <meyering@lucent.com>
81735
81736         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81737         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81738         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81739         UnixWare 7.1.1.
81740
81741         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81742         rather than AC_CACHE_VAL.
81743
81744 2001-02-17  Jim Meyering  <meyering@lucent.com>
81745
81746         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81747         around included file name.
81748
81749         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81750
81751         * lib/strftime.c: Update from GNU libc (the only changes were to
81752         comments).
81753
81754 2001-02-17  Jim Meyering  <meyering@lucent.com>
81755
81756         * lib/regex.c: Update from libc.
81757
81758 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81759
81760         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81761         clash.
81762
81763 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81764
81765         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81766         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81767         Reported by Mark Hounschell via Paul Eggert.
81768
81769 2001-02-07  Jim Meyering  <meyering@lucent.com>
81770
81771         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81772
81773 2001-02-05  Jim Meyering  <meyering@lucent.com>
81774
81775         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81776         it includes the patch required for `large file' support with at least
81777         HP-UX's 10.20 /bin/cc.
81778
81779 2001-02-03  Jim Meyering  <meyering@lucent.com>
81780
81781         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81782         AS_IF, now that it works once again (mysteriously).
81783         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81784
81785 2001-01-30  Jim Meyering  <meyering@lucent.com>
81786
81787         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81788         * m4/chown.m4: Rename conftestchown to conftest.chown.
81789         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81790         s/conftestdir2/conftest.d2/.
81791         * m4/utimes.m4: s/conftestdata/conftest.data/
81792         Inspired by Pavel Roskin's change in autoconf.
81793
81794 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81795
81796         * lib/config.charset: Update for FreeBSD 4.2.
81797
81798 2001-01-27  Jim Meyering  <meyering@lucent.com>
81799
81800         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81801         a use of AS_IF.
81802         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81803
81804 2001-01-26  Jim Meyering  <meyering@lucent.com>
81805
81806         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81807         quotearg.c includes it.
81808
81809 2001-01-26  Jim Meyering  <meyering@lucent.com>
81810
81811         * lib/quotearg.c: Include stddef.h.
81812         * lib/quote.c: Include stddef.h.
81813         Reported by Axel Kittenberger.
81814
81815         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81816         line in double quotes so that it evokes a better diagnostic.
81817         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81818         Reported by Axel Kittenberger.
81819
81820 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81821
81822         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81823         as if it was a `charset'.
81824
81825 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81826
81827         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81828         has const.
81829
81830 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81831
81832         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81833         to avoid a warning.  Add back 'const' to inptr.
81834
81835 2001-01-20  Jim Meyering  <meyering@lucent.com>
81836
81837         Be sure that headers are checked before used in code compiled
81838         for the type checks.
81839         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81840         In place of that, invoke jm_CHECK_ALL_TYPES.
81841         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81842         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81843         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81844         The check for ssize_t was mistakenly run before the test for unistd.h.
81845
81846         The configure-time check for stdbool.h was missing.
81847         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81848         (jm_PREREQ_HASH): New function.
81849
81850 2001-01-17  Jim Meyering  <meyering@lucent.com>
81851
81852         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81853         for autoconf-2.49c.
81854         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81855
81856 2001-01-16  Jim Meyering  <meyering@lucent.com>
81857
81858         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81859         From Bruno Haible.
81860
81861 2001-01-14  Jim Meyering  <meyering@lucent.com>
81862
81863         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81864         foo and bar.  Create conftestdir/ in the script, not in the C code.
81865         Remove directories in the script, not in the C code.
81866         Remove conftestdir{,2} before trying to create the directory.
81867         Make the entire configure script fail if the mkdir fails.
81868
81869 2001-01-14  Jim Meyering  <meyering@lucent.com>
81870
81871         * lib/rename.c: New file.  From Volker Borchert.
81872         Include stdlib.h, string.h or strings.h, and xalloc.h.
81873         Use strip_trailing_slashes rather than open-coding it.
81874
81875 2001-01-03  Paul Eggert  <eggert@twinsun.com>
81876
81877         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
81878
81879 2001-01-03  Jim Meyering  <meyering@lucent.com>
81880
81881         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
81882         of local `inptr' to avoid warning with some system declarations of
81883         iconv.
81884
81885 2001-01-02  Volker Borchert  <bt@teknon.de>
81886
81887         * m4/rename.m4: New file.
81888         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
81889
81890 2001-01-01  Jim Meyering  <meyering@lucent.com>
81891
81892         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
81893         even on systems with utmpx.h.  It's necessary for the declaration of
81894         utmp's ut_user member.  Reported by Andreas Jaeger.
81895
81896         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
81897         available. They are required for the declarations of getgrgid and
81898         getpwuid resp.
81899         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
81900         Reported by Andreas Jaeger.
81901
81902 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
81903
81904         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
81905         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
81906         so `make install' also works in VPATH builds.
81907
81908 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
81909
81910         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
81911         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
81912         can be used in subdirectories.
81913
81914 2000-12-29  Paul Eggert  <eggert@twinsun.com>
81915
81916         * lib/modechange.c: Do not assume that mode_t uses the
81917         traditional octal encoding.  E.g. "chmod 1 FOO" should set
81918         the other-execute bit of FOO even if S_IXOTH != 1.
81919
81920         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
81921         WOTH, XOTH, ALLM): New macros.
81922         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
81923          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
81924         Use them.
81925         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
81926         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
81927         (mode_compile):
81928         No need to use uintmax_t; unsigned long is long enough.
81929         Don't bother to get suffix since we don't use it.
81930
81931 2000-12-26  Jim Meyering  <meyering@lucent.com>
81932
81933         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
81934         better with autoheader.
81935
81936 2000-12-24  Jim Meyering  <meyering@lucent.com>
81937
81938         * lib/hash.c (is_prime): Return explicit boolean values.
81939         (hash_get_first): Return NULL to appease Irix5.6's 89.
81940         Reported by Nelson Beebe.
81941
81942 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
81943
81944         * lib/localcharset.c (locale_charset): Add support for Win32.
81945
81946 2000-12-18  Paul Eggert  <eggert@twinsun.com>
81947
81948         * lib/physmem.h, lib/physmem.c: New files.
81949
81950         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
81951         (noinst_HEADERS): Add physmem.h.
81952
81953         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
81954         't' for compatibility with Solaris 8 sort.
81955
81956 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
81957
81958         * lib/config.charset: Add support for BeOS.
81959
81960 2000-12-17  Jim Meyering  <meyering@lucent.com>
81961
81962         * m4/dos.m4 (jm_AC_DOS): New file and macro.
81963         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
81964
81965 2000-12-16  Jim Meyering  <meyering@lucent.com>
81966
81967         This bug had a serious impact on chown: `chown N:M FILE' (for integer
81968         N and M) would have treated it like `chown N:N FILE'.
81969
81970         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
81971
81972 2000-12-16  Jim Meyering  <meyering@lucent.com>
81973
81974         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
81975         SHELLS_FILE to a file name that's useful on djgpp systems.
81976         Include stdlib.h.
81977         (ADDITIONAL_DEFAULT_SHELLS): Define.
81978         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
81979         Based mostly on a patch from Prashant TR.
81980
81981 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
81982
81983         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
81984         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
81985         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
81986
81987 2000-12-08  Andreas Schwab  <schwab@suse.de>
81988
81989         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
81990         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
81991
81992 2000-12-07  Jim Meyering  <meyering@lucent.com>
81993
81994         * lib/stripslash.c (ISSLASH): Define.
81995         (strip_trailing_slashes): Use ISSLASH rather than comparing against
81996         `/'.
81997         From Prashant TR.
81998
81999         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
82000         (dir_name_r): Declare this function as static.
82001         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
82002         manifest itself on a name containing a mix of slashes and
82003         backslashes.
82004         Make this function work with names starting with a DOS-style
82005         drive letter and colon prefix.
82006         (dir_name): Append `.' if necessary.
82007         Based mostly on patches from Prashant TR and Eli Zaretskii.
82008
82009         * lib/dirname.h (dir_name_r): Remove prototype.
82010
82011 2000-12-06  Paul Eggert  <eggert@twinsun.com>
82012
82013         * m4/off_t-format.m4: Remove this file.
82014         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
82015
82016 2000-12-06  Jim Meyering  <meyering@lucent.com>
82017
82018         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
82019         replacement strtoull, we may well need the replacement strtoul, too.
82020         Check for declarations of strtoul and strtoull.
82021         Check for strtol.  Mainly as a cue to cause automake to include
82022         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
82023         Check for limits.h -- strtol.c needs it.
82024
82025 2000-12-05  Jim Meyering  <meyering@lucent.com>
82026
82027         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
82028
82029 2000-12-04  Jim Meyering  <meyering@lucent.com>
82030
82031         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
82032         Also include memory.h, stdlib.h, unistd.h if appropriate.
82033         Reported by Andreas Jaeger (conflicting declaration of malloc).
82034
82035 2000-12-02  Jim Meyering  <meyering@lucent.com>
82036
82037         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
82038         * m4/jm-macros.m4 (jm_MACROS): require it.
82039
82040 2000-12-02  Jim Meyering  <meyering@lucent.com>
82041
82042         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
82043
82044 2000-12-01  Paul Eggert  <eggert@twinsun.com>
82045
82046         * lib/memrchr.c: Include <config.h> before any system include file.
82047
82048 2000-11-30  Jim Meyering  <meyering@lucent.com>
82049
82050         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
82051
82052 2000-11-30  Jim Meyering  <meyering@lucent.com>
82053
82054         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
82055
82056 2000-11-29  Paul Eggert  <eggert@twinsun.com>
82057
82058         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
82059
82060 2000-11-26  Jim Meyering  <meyering@lucent.com>
82061
82062         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
82063
82064 2000-11-22  Paul Eggert  <eggert@twinsun.com>
82065
82066         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
82067         size of (size_t) -1; it's not portable.
82068
82069 2000-11-17  Jim Meyering  <meyering@lucent.com>
82070
82071         * lib/strstr.c: Update from GNU libc.
82072
82073 2000-11-17  Akim Demaille  <akim@epita.fr>
82074
82075         * lib/obstack.h: Formatting changes.
82076         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
82077         prevent type checking.
82078         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
82079         cast the value to (void *): assigning a `foo *' to a `void *'
82080         variable is valid.
82081         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
82082
82083 2000-11-16  Jim Meyering  <meyering@lucent.com>
82084
82085         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
82086
82087 2000-11-11  Jim Meyering  <meyering@lucent.com>
82088
82089         * lib/error.c: Add a couple #includes, merging from GNU libc version.
82090
82091 2000-11-10  Jim Meyering  <meyering@lucent.com>
82092
82093         * lib/obstack.h: Update from GNU libc.
82094         * lib/obstack.c: Likewise.
82095
82096 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
82097
82098         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
82099
82100 2000-11-06  Paul Eggert  <eggert@twinsun.com>
82101
82102         * lib/getusershell.c (setusershell): Use rewind rather than
82103         fseek/fseeko, to avoid configuration hassles with fseeko.
82104         Don't bother opening SHELLS_FILE if shellstream is NULL;
82105         it's not necessary.
82106
82107 2000-11-05  Jim Meyering  <meyering@lucent.com>
82108
82109         * lib/makepath.h (make_dir): Declare.
82110         * lib/makepath.c (make_dir): Remove `static' attribute.
82111         Tweak a comment.
82112
82113 2000-11-04  Jim Meyering  <meyering@lucent.com>
82114
82115         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82116
82117 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82118
82119         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
82120         last one in a bucket, advance to the next bucket.
82121
82122 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
82123
82124         * lib/fnmatch.c: Do not comment out all the code if we are using
82125         the GNU C library, because in some cases we are replacing buggy
82126         code in the GNU C library itself.
82127
82128 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
82129
82130         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
82131         (regex_compile): Catch bogus \(\1\).
82132
82133 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82134
82135         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
82136         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
82137         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
82138
82139 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82140
82141         * lib/error.h, getline.h, modechange.h:
82142         Remove "2000" from Copyright line, as the file hasn't been
82143         changed this year other than in the copyright notice.
82144
82145         * lib/xalloc.h: Add "2000" to Copyright line, as this file
82146         was changed this year.
82147
82148 2000-10-29  Jim Meyering  <meyering@lucent.com>
82149
82150         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
82151         renaming.
82152         * m4/ls-mntd-fs.m4: Likewise
82153
82154 2000-10-29  Jim Meyering  <meyering@lucent.com>
82155
82156         * lib/xstat.in: Fix grammar in comment.
82157
82158 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
82159
82160         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
82161         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
82162         doesn't define __restrict_arr.
82163
82164 2000-10-28  Jim Meyering  <meyering@lucent.com>
82165
82166         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
82167         (jm_PREREQ_MEMCHR): New function.
82168
82169 2000-10-28  Jim Meyering  <meyering@lucent.com>
82170
82171         * lib/memchr.c: Update from libc.
82172         Adjust for portability:
82173         [HAVE_STDLIB_H]: Include stdlib.h.
82174         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
82175         Undef __memchr, too.
82176         [!weak_alias]: Define __memchr to memchr.
82177
82178         * lib/regex.c: Update from libc.
82179         * lib/regex.h: Likewise.
82180         * lib/getopt1.c: Likewise.
82181         * lib/memcmp.c: Likewise.
82182
82183         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
82184         Avoid using fseek, when possible -- it's broken by design.
82185         Patch by Ulrich Drepper.
82186
82187 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
82188
82189         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
82190         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
82191         Giving in to popular pressure to shut up the compiler with casts.
82192
82193 2000-10-26  Jim Meyering  <meyering@lucent.com>
82194
82195         * lib/strftime.c: Update from libc.
82196
82197 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
82198
82199         * regex.c: More `unsigned char' -> `re_char' changes.
82200         Also change several `int' into `re_wchar_t'.
82201         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
82202         (PUSH_FAILURE_POINTER): Don't cast any more.
82203         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
82204         We want GCC to complain, since this piece of code makes
82205         re_match non-reentrant, which *should* be fixed.
82206         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
82207         (EXTEND_BUFFER): Use RETALLOC.
82208         (SET_LIST_BIT): Don't cast.
82209         (re_wchar_t): New type.
82210         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
82211         that those two functions will always properly return.
82212         (IMMEDIATE_QUIT_CHECK): Cast to void.
82213         (analyse_first): Use recursion rather than an explicit stack.
82214         (re_compile_fastmap): Can't fail anymore.
82215         (re_search_2): Don't check re_compile_fastmap for failure.
82216         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
82217         Now also sets the new value (passed in a new argument).
82218         (re_match_2_internal): Use it.
82219         Also, use a new var `reg' of type size_t when looping through regs
82220         rather than reuse the inappropriate `mcnt'.
82221
82222 2000-10-25  Jim Meyering  <meyering@lucent.com>
82223
82224         * lib/obstack.c: Update from libc.
82225
82226 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
82227
82228         * regex.c (regex_compile): Change the way of handling a range from
82229         a char less than 256 to a char not less than 256.
82230
82231 2000-10-24  Andrew Innes  <andrewi@gnu.org>
82232
82233         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
82234         NT-Emacs only.
82235         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
82236         so that re_search functions only quit when callers expect them to.
82237
82238 2000-10-23  Jim Meyering  <meyering@lucent.com>
82239
82240         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
82241         wrong.  That set_locale call must not have any side effects.
82242         From Paul Eggert.
82243
82244 2000-10-22  Jim Meyering  <meyering@lucent.com>
82245
82246         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
82247         [CYCLIC]: Remove now-unused definition.
82248
82249         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
82250         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
82251         Suggestion from Ulrich Drepper.
82252
82253 2000-10-21  Jim Meyering  <meyering@lucent.com>
82254
82255         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
82256         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
82257         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
82258
82259 2000-10-21  Jim Meyering  <meyering@lucent.com>
82260
82261         * lib/dirname.c (memrchr): Declare if necessary.
82262         (dir_name): Remove the restriction that there be no
82263         trailing slashes.  Now, this code skips past them, effectively
82264         ignoring them.
82265         [TEST_DIRNAME] (main): New unit tests.
82266
82267         * lib/memrchr.c: New file from GNU libc.
82268         Undef __memrchr, too.
82269         [!weak_alias]: Define __memrchr to memrchr.
82270         Guard weak_alias use with `#ifdef weak_alias'.
82271
82272 2000-10-21  Jim Meyering  <meyering@lucent.com>
82273
82274         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
82275         (dir_name): Use dir_name_r.
82276         * lib/dirname.h (dir_name_r): Declare it.
82277
82278 2000-10-17  Jim Meyering  <meyering@lucent.com>
82279
82280         * lib/quote.h (PARAMS): Define and use.
82281         Reported by Akim Demaille.
82282
82283         * lib/getopt.c: Update from libc.
82284
82285 2000-10-16  Jim Meyering  <meyering@lucent.com>
82286
82287         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
82288         setlocale.
82289         From Jan Fedak.
82290
82291 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
82292
82293         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
82294
82295 2000-09-25  Jim Meyering  <meyering@lucent.com>
82296
82297         * lib/md5.h (rol): Define (from GnuPG).
82298
82299         * lib/sha.c: Give credit (GnuPG) where due.
82300         (M): Use rol rather than open-coding it.
82301         Add a FIXME comment.
82302
82303 2000-09-21  Jim Meyering  <meyering@lucent.com>
82304
82305         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82306         Reported by Michael Stone.
82307
82308 2000-09-20  Jim Meyering  <meyering@lucent.com>
82309
82310         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82311         (noinst_HEADERS): Add sha.h.
82312         Based on code from Scott G. Miller and from GnuPG.
82313
82314 2000-09-18  Jim Meyering  <meyering@lucent.com>
82315
82316         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82317         LIBS. Otherwise, everyone ends up linking with -lelf for some
82318         configurations.
82319         Reported by Mike Stone.
82320
82321 2000-09-15  Jim Meyering  <meyering@lucent.com>
82322
82323         * lib/regex.c: Update from libc.
82324
82325 2000-09-10  Jim Meyering  <meyering@lucent.com>
82326
82327         * lib/getopt.c (_getopt_internal): Update from glibc.
82328
82329 2000-09-09  Jim Meyering  <meyering@lucent.com>
82330
82331         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82332         think it should be used as a general replacement for isascii.
82333         * lib/fnmatch.c: Likewise.
82334         * lib/mbswidth.c: Likewise
82335         * lib/regex.c: Likewise.
82336
82337         Don't use atoi.
82338         * lib/userspec.c: Include sys/param.h and limits.h.
82339         Include xstrtol.h.
82340         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82341         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82342         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82343         UID, GID.  Check range.
82344
82345 2000-09-06  Jim Meyering  <meyering@lucent.com>
82346
82347         * lib/getopt.c (_getopt_internal): Update from glibc.
82348
82349 2000-08-30  Jim Meyering  <meyering@lucent.com>
82350
82351         * lib/strftime.c: Merge in changes from GNU libc.
82352
82353 2000-08-26  Jim Meyering  <meyering@lucent.com>
82354
82355         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82356         * m4/fpending.m4: New file.
82357
82358 2000-08-26  Jim Meyering  <meyering@lucent.com>
82359
82360         * lib/closeout.c: Include "__fpending.h".
82361         (close_stdout_status): Return right away if there's nothing to flush.
82362
82363         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82364         * lib/__fpending.c: New file.
82365         * lib/__fpending.h: New file.
82366
82367 2000-08-20  Jim Meyering  <meyering@lucent.com>
82368
82369         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82370         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82371         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82372
82373 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82374
82375         Improve fileutils installation on systems where running
82376         programs (like install) can't be unlinked.
82377         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82378         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82379
82380 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82381
82382         Standardize on "memory exhausted" instead of "Memory exhausted"
82383         or "virtual memory exhausted".
82384         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82385         "virtual memory exhausted".
82386         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82387         our own message.
82388         * lib/userspec.c (parse_user_spec): Likewise.
82389         * lib/bumpalloc.h: comment fix
82390         * lib/same.c, userspec.c: Include xalloc.h.
82391
82392         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82393         not char *const and pointing to a constant array.
82394         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82395         (xrealloc): Comment fix.
82396
82397         * lib/userspec.c (parse_user_spec):
82398         Don't translate a message until just before returning,
82399         to avoid unnecessary translation.
82400
82401 2000-08-07  Jim Meyering  <meyering@lucent.com>
82402
82403         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82404         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82405         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82406         getgroups.c, gethostname.c, getopt.h, group-member.c,
82407         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82408         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82409         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82410         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82411         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82412         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82413         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82414         yesno.c: Back out Copyright date changes for each file with no change
82415         this year.  This eases coordination with other programs using the same
82416         source code modules.  From Paul Eggert.
82417
82418 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82419
82420         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82421         not char, for compatibility with glibc 2.1.3 strftime.c.
82422
82423 2000-08-03  Greg McGary  <greg@mcgary.org>
82424
82425         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82426         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82427         (EXTEND_BUFFER): Use them.
82428
82429 2000-08-01  Jim Meyering  <meyering@lucent.com>
82430
82431         * lib/dirname.c (ISSLASH): Define.
82432         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82433         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82434         both `\' and `/' may be use as path separators.
82435         Based on a patch from Prashant TR.
82436
82437 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82438
82439         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82440         slot vector a constant, since it might get modified.
82441
82442 2000-07-31  Jim Meyering  <meyering@lucent.com>
82443
82444         * lib/xmalloc.c: Use `virtual memory exhausted', not
82445         `Memory exhausted'.
82446         * lib/obstack.c (print_and_abort): Likewise.
82447
82448 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82449
82450         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82451         buffer, so that the caller can always quote one small
82452         component of a "memory exhausted" message in slot 0.
82453         From a suggestion by Jim Meyering.
82454
82455 2000-07-30  Jim Meyering  <meyering@lucent.com>
82456
82457         * lib/makepath.c (make_path): Quote the other instance, too.
82458
82459         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82460         (STATIC_BUF_SIZE): Define.
82461         (quotearg_n_options): Use only statically allocated storage when
82462         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82463         than STATIC_BUF_SIZE.
82464
82465 2000-07-29  Jim Meyering  <meyering@lucent.com>
82466
82467         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82468         * lib/dirname.c (dir_name): Likewise.
82469
82470         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82471         `/'.
82472
82473         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82474         (dir_name): Assert that there are no trailing slashes.
82475
82476 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82477
82478         * lib/mbswidth.h (mbswidth): Add a flags argument.
82479         (mbswidth): New declaration.
82480         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82481         * lib/mbswidth.c (mbswidth): Add a flags argument.
82482         (mbsnwidth): New function.
82483
82484 2000-07-24  Jim Meyering  <meyering@lucent.com>
82485
82486         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82487
82488 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82489
82490         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82491
82492 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82493
82494         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82495         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82496         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82497         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82498         invoke multibyte primitives.
82499
82500 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82501
82502         * lib/quotearg.c:
82503         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82504         so that mbstate_t is always defined.
82505
82506         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82507         be 1 in at least one GCC installation, and this configuration
82508         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82509         performance on hosts that have mbrtowc but have only unibyte
82510         locales, but I assume these hosts are rare.
82511
82512 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82513
82514         * lib/mbswidth.c (_XOPEN_SOURCE):
82515         Don't define; this causes problems on Solaris 7.
82516         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82517
82518 2000-07-23  Jim Meyering  <meyering@lucent.com>
82519
82520         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82521         too: getgrgid, getpwuid, getuid.
82522
82523 2000-07-23  Jim Meyering  <meyering@lucent.com>
82524
82525         * lib/basename.c (base_name): Add an assertion.
82526
82527 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82528
82529         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82530         shadow its mbsinit function.
82531
82532 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82533
82534         * lib/mbswidth.h: New file.
82535         * lib/mbswidth.c: New file.
82536         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82537         (noinst_HEADERS): Add mbswidth.h.
82538
82539 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82540
82541         * lib/config.charset: Add support for FreeBSD. Improve support for
82542         HP-UX and IRIX 6.
82543
82544 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82545
82546         * m4/mbswidth.m4: New file.
82547         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82548
82549 2000-07-15  Jim Meyering  <meyering@lucent.com>
82550
82551         * lib/makepath.c: Include quote.h.
82552         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82553         corresponding argument in a `quote (...)' call.
82554         Give better diagnostics.
82555
82556         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82557         (noinst_HEADERS): Add quote.h.
82558
82559         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82560         from tar's src/misc.c.
82561         * lib/quote.h: New file.  Prototypes for same.
82562
82563 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82564
82565         From a suggestion by Bruno Haible.
82566         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82567         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82568         to decide whether to define the BeOS workaround macro;
82569         this adjusts to the change to AC_MBSTATE_T.
82570
82571 2000-07-14  Jim Meyering  <meyering@lucent.com>
82572
82573         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82574         jm_AC_TYPE_UINTMAX_T.
82575
82576 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82577
82578         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82579
82580         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82581         quotearg_buffer_restyled): Add support for
82582         clocale_quoting_style.  Undo previous change to
82583         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82584         and "{RIGHT QUOTATION MARK}" msgids.
82585
82586 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82587
82588         From a suggestion by Bruno Haible.
82589         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82590         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82591         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82592         and mbstate_t, to a single-part test that simply defines mbstate_t.
82593         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82594         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82595
82596 2000-07-10  Jim Meyering  <meyering@lucent.com>
82597
82598         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82599
82600         * m4/gnu-source.m4: Output to confdefs.h directly.
82601         Suggestion from Akim Demaille.
82602
82603 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82604
82605         The old behavior of quoting `like this' doesn't look good with
82606         newer, ISO-style fonts.  See:
82607         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82608
82609         Instead, quote "like this" by default.  Let the translator
82610         tailor the locale-specific quoting behavior by providing
82611         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82612
82613         * lib/quotearg.c (N_): New macro.
82614         (gettext_default): New function.
82615         (quotearg_buffer_restyled): Use
82616         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82617         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82618
82619 2000-07-09  Jim Meyering  <meyering@lucent.com>
82620
82621         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82622         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82623
82624         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82625         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82626
82627 2000-07-09  Jim Meyering  <meyering@lucent.com>
82628
82629         * lib/Most files: Update copyright dates to include 2000.
82630
82631 2000-07-08  Jim Meyering  <meyering@lucent.com>
82632
82633         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82634         if not defined.
82635         (xgethostname): Remove now-unnecessary #ifdef.
82636         Move declaration of `err' into loop where it's used.
82637
82638 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82639         and Bruno Haible  <haible@clisp.cons.org>
82640
82641         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82642         only if the test for an object-type mbstate_t fails.  This
82643         prevents us from mistakenly reporting that mbstate_t is a
82644         system object type after we "#define mbstate_t int" to work
82645         around its lack.
82646
82647 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82648         and Bruno Haible  <haible@clisp.cons.org>
82649
82650         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82651
82652 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82653
82654         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82655         to strerror_r.
82656         Include <ctype.h> for use of isalpha.
82657
82658 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82659
82660         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82661         by allocating a larger buffer. Test the gethostname return value for
82662         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82663         returns an error and ENAMETOOLONG isn't defined.
82664
82665 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82666
82667         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82668         dimension.
82669
82670 2000-07-04  Jim Meyering  <meyering@lucent.com>
82671
82672         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82673         of the deprecated AC_CHECKING.
82674
82675 2000-07-04  Jim Meyering  <meyering@lucent.com>
82676
82677         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82678         Reported by Bruno Haible.
82679
82680 2000-07-04  Jim Meyering  <meyering@lucent.com>
82681
82682         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82683         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82684         lacks mbrtowc.
82685
82686 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82687
82688         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82689         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82690
82691 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82692         and Bruno Haible  <haible@clisp.cons.org>
82693
82694         * lib/quotearg.c (mbrtowc):
82695         Assign to *pwc, and return 1 only if result is nonzero.
82696         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82697
82698 2000-07-03  Jim Meyering  <meyering@lucent.com>
82699
82700         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82701
82702 2000-07-03  Jim Meyering  <meyering@lucent.com>
82703
82704         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82705         This is necessary to get a definition of e.g., UTMP_FILE on
82706         HP-UX 10.20.
82707         From Bob Proulx.
82708
82709 2000-07-02  Jim Meyering  <meyering@lucent.com>
82710
82711         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82712
82713         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82714         AC_LIBOBJ(function_name).
82715         * m4/chown.m4: Likewise.
82716         * m4/fnmatch.m4: Likewise.
82717         * m4/ftruncate.m4: Likewise.
82718         * m4/getgroups.m4: Likewise.
82719         * m4/getline.m4: Likewise.
82720         * m4/group-member.m4: Likewise.
82721         * m4/jm-macros.m4: Likewise.
82722         * m4/lstat.m4: Likewise.
82723         * m4/malloc.m4: Likewise.
82724         * m4/memcmp.m4: Likewise.
82725         * m4/nanosleep.m4: Likewise.
82726         * m4/putenv.m4: Likewise.
82727         * m4/realloc.m4: Likewise.
82728         * m4/regex.m4: Likewise.
82729         * m4/stat.m4: Likewise.
82730         * m4/strftime.m4: Likewise.
82731
82732 2000-07-02  Jim Meyering  <meyering@lucent.com>
82733
82734         * lib/quotearg.c (mbstate_t): Don't define here.
82735
82736 2000-07-02  Jim Meyering  <meyering@lucent.com>
82737
82738         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82739
82740 2000-07-01  Jim Meyering  <meyering@lucent.com>
82741
82742         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82743
82744 2000-07-01  Jim Meyering  <meyering@lucent.com>
82745
82746         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82747         problem.
82748
82749 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82750
82751         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82752         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82753
82754 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82755
82756         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82757         per change in ../m4/ls-mntd-fs.m4.
82758         (read_filesystem_list): Ignore symbolic links.
82759
82760 2000-06-29  Jim Meyering  <meyering@lucent.com>
82761
82762         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82763         for declaration of strcmp.
82764
82765         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82766
82767         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82768         Avoid warning by casting result to `char *' to remove `const'.
82769
82770 2000-06-28  Jim Meyering  <meyering@lucent.com>
82771
82772         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82773         included by quotearg.c, for which we perform this test.  From
82774         Bruno Haible.
82775
82776 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82777
82778         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82779         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82780         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82781
82782 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82783
82784         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82785
82786 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82787
82788         savedir now sets errno on failure and invokes xmalloc to get memory.
82789         Fix a couple of other minor bugs while we're at it.
82790
82791         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82792         (NAMLEN): Remove macro.
82793         (malloc, realloc): Remove decls.
82794         (stpcpy): Likewise.
82795         ("xalloc.h"): Include.
82796         (NAME_SIZE_DEFAULT): New macro.
82797         (savedir): Use xmalloc / xrealloc to allocate memory.
82798         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82799         Skip "" directory entries.
82800         Use strlen to calculate directory entry length, since the old method
82801         is rarely used these days and isn't worth supporting.
82802         Don't use a pointer after freeing it.
82803         Check for integer overflow when calculating allocation size.
82804         Use memcpy to copy entries, instead of stpcpy.
82805         Set errno properly when returning NULL.
82806         Check for readdir error.
82807
82808 2000-06-26  Jim Meyering  <meyering@lucent.com>
82809
82810         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82811
82812 2000-06-25  Jim Meyering  <meyering@lucent.com>
82813
82814         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82815         Linux header bug when _XOPEN_SOURCE is defined to 500.
82816
82817 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82818
82819         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82820         deficiency.
82821
82822 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82823
82824         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82825         Include xalloc.h.
82826         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82827
82828 2000-06-24  Jim Meyering  <meyering@lucent.com>
82829
82830         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82831         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82832         for which strerror does return char*, but which lacks a conveniently
82833         accessible declaration of the function.  If the compile-test says
82834         strerror_r doesn't work, then resort to a `run'-test that works on
82835         BeOS and segfaults on DEC Unix.
82836
82837 2000-06-24  Jim Meyering  <meyering@lucent.com>
82838
82839         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82840
82841 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82842
82843         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82844         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82845
82846 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82847
82848         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82849         (mbrtowc, mbstate_t): Define substitutes if
82850         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82851         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82852         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82853
82854 2000-06-23  Jim Meyering  <meyering@lucent.com>
82855
82856         * m4/afs.m4: Add missing AC_MSG_RESULT.
82857         Reported by Bruno Haible.
82858
82859         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82860         Suggestion from Bruno Haible.
82861
82862 2000-06-23  Jim Meyering  <meyering@lucent.com>
82863
82864         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82865
82866 2000-06-21  Jim Meyering  <meyering@lucent.com>
82867
82868         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
82869
82870 2000-06-21  Jim Meyering  <meyering@lucent.com>
82871
82872         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
82873         (noinst_HEADERS): Add getstr.h.
82874
82875         * lib/getline.c (getstr): Move into a separate file.
82876         * lib/getstr.c (getstr): New file, extracted from getline.c, with
82877         the following changes: new parameter, delim2; both delim[12]
82878         parameters have type `int', not `char'.  The latter would lose
82879         with 8-bit delimiters.
82880         * lib/getstr.h: New file.
82881
82882 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82883
82884         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
82885         than 1024, return a memory chunk of least possible size, instead
82886         of size PATH_MAX + 2. In the loop, increment the size proportionally.
82887         Use free/xmalloc instead of xrealloc to avoid copying for very long
82888         paths.
82889
82890 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82891
82892         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
82893         the empty string.
82894
82895 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82896
82897         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
82898         address, not strdup.  Include <stdlib.h> and don't declare free().
82899
82900 2000-06-19  Jim Meyering  <meyering@lucent.com>
82901
82902         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
82903
82904 2000-06-18  Jim Meyering  <meyering@lucent.com>
82905
82906         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
82907
82908         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
82909         `checking whether...' message to be consistent with that of the
82910         lstat test.
82911
82912 2000-06-18  Jim Meyering  <meyering@lucent.com>
82913
82914         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
82915         Besides, these days every porting target provides a mkdir function.
82916
82917         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
82918         needed. (this snippet comes from src/system.h).
82919
82920 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
82921
82922         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
82923
82924 2000-06-15  Paul Eggert  <eggert@twinsun.com>
82925
82926         * lib/human.c (adjust_value): New function.
82927         (human_readable_inexact): Apply rounding style even when
82928         printing approximate values.
82929
82930 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82931
82932         * lib/human.c (human_readable_inexact): Allow an input block
82933         size that is not a multiple of the output block size, and vice versa.
82934         Reported by Piergiorgio Sartor.
82935
82936 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82937
82938         * lib/getdate.y (get_date): Apply relative times after time
82939         zone indicator, not before.  Reported by Todd A. Jacobs.
82940
82941 2000-06-13  Jim Meyering  <meyering@lucent.com>
82942
82943         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
82944
82945         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
82946
82947 2000-06-12  Paul Eggert  <eggert@twinsun.com>
82948
82949         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
82950
82951 2000-06-12  Jim Meyering  <meyering@lucent.com>
82952
82953         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
82954         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
82955         optional argument.
82956         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
82957         the optional argument, `lib'.
82958
82959 2000-06-08  Jim Meyering  <meyering@lucent.com>
82960
82961         * m4/largefile.m4: Remove file (now that it's part of autoconf).
82962
82963 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82964
82965         Rewrite largefile configuration so that we don't need to run
82966         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
82967         AC_CANONICAL_HOST in configure.in -- jmm]
82968
82969         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
82970         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
82971         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
82972         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
82973         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
82974         All uses changed.
82975         Instead of inspecting the output of getconf, try to compile the
82976         test program without and with the macro definition.
82977         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
82978         for getconf.  Instead, check for the needed flags by compiling
82979         test programs.
82980
82981 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82982
82983         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
82984
82985 2000-06-04  Jim Meyering  <meyering@lucent.com>
82986
82987         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
82988         SunOS 4.1.4 for which gid_t is an unsigned type.
82989
82990 2000-06-03  Jim Meyering  <meyering@lucent.com>
82991
82992         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
82993         now that autoconf requires that.
82994
82995         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
82996         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
82997         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
82998
82999 2000-06-03  Jim Meyering  <meyering@lucent.com>
83000
83001         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
83002
83003 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83004
83005         * m4/glibc21.m4: New file.
83006         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
83007
83008 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83009
83010         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
83011         newer, don't install charset.alias.
83012         * lib/config.charset: Change the Linux/glibc rules so they become empty
83013         on glibc-2.1 or newer.
83014
83015 2000-06-02  Jim Meyering  <meyering@lucent.com>
83016
83017         * lib/mountlist.c: Back out last change.  Instead, do this...
83018         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
83019         me_dummy member using the same `ignore'-testing code.
83020         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
83021         fs_type strings.
83022         From Mark D. Roth.
83023
83024 2000-05-29  Jim Meyering  <meyering@lucent.com>
83025
83026         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
83027         mounts with the `ignore' attribute.  Based on a patch from
83028         Mark D. Roth.
83029
83030 2000-05-28  Jim Meyering  <meyering@lucent.com>
83031
83032         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
83033         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83034         * m4/stat.m4: Likewise.
83035         * m4/lstat.m4: Likewise.
83036         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
83037
83038         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
83039         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
83040
83041 2000-05-26  Jim Meyering  <meyering@lucent.com>
83042
83043         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
83044
83045 2000-05-24  Jim Meyering  <meyering@lucent.com>
83046
83047         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
83048         autoconf requires that.
83049         * m4/lib-check.m4: Likewise.
83050         * m4/jm-macros.m4: Likewise.
83051         * m4/strftime.m4: Likewise.
83052
83053         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
83054         AC_CHECK_DECLS, now that autoconf requires that.
83055
83056 2000-05-22  Jim Meyering  <meyering@lucent.com>
83057
83058         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83059         * m4/lstat.m4: Likewise.
83060
83061 2000-05-22  Jim Meyering  <meyering@lucent.com>
83062
83063         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
83064
83065 2000-05-20  Jim Meyering  <meyering@lucent.com>
83066
83067         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
83068         (jm_PREREQ): Use it.
83069
83070 2000-05-18  Jim Meyering  <meyering@lucent.com>
83071
83072         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
83073         back, too, since it may have been modified by allocate_entry.
83074         (hash_delete): Rewrite to use neither the assignment operator
83075         nor the comma operator in an if-expression.
83076
83077 2000-05-15  Paul Eggert  <eggert@twinsun.com>
83078
83079         * lib/closeout.c:
83080         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
83081         Remove; no longer needed.
83082         "quotearg.h": Add include.
83083         (file_name): Do not bother to explicitly initialize to NULL; it's less
83084         efficient on some hosts.
83085         (close_stdout_status): Remove test as to whether stdout was already
83086         closed; it breaks for the case "echo x | sort >&-".
83087         Quote file name colons.
83088         Do not assume that _("write error") lacks format strings.
83089
83090 2000-05-15  Jim Meyering  <meyering@lucent.com>
83091
83092         * lib/version-etc.c (version_etc_copyright): Update the copyright
83093         string used in all --version output.
83094
83095 2000-05-14  Jim Meyering  <meyering@lucent.com>
83096
83097         * lib/closeout.c (close_stdout_set_file_name): New function.
83098         (close_stdout_status): Use new file-scoped global.
83099         Return right away if fstat says the stdout file descriptor is invalid.
83100         * lib/closeout.h (close_stdout_set_file_name): Declare.
83101
83102 2000-05-10  Jim Meyering  <meyering@lucent.com>
83103
83104         * lib/closeout.c [default_exit_status]: New file-scoped variable.
83105         (close_stdout_set_status): New function.
83106         * lib/closeout.h (close_stdout_set_status): Declare.
83107
83108 2000-05-09  Jim Meyering  <meyering@lucent.com>
83109
83110         * m4/gettext.m4: Rename this...
83111         * m4/libintl.m4: ...to this.
83112
83113 2000-05-08  Jim Meyering  <meyering@lucent.com>
83114
83115         * lib/long-options.c: Don't include closeout.h.
83116         (parse_long_options): Don't call close_stdout for --version.
83117
83118 2000-05-06  Paul Eggert  <eggert@twinsun.com>
83119
83120         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
83121         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
83122         2.1.3 bug.  This avoids a clash when files like regex.c define
83123         _GNU_SOURCE.
83124
83125 2000-05-06  Jim Meyering  <meyering@lucent.com>
83126
83127         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
83128         (AC_REPLACE_FUNCS): Add strnlen.
83129
83130         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
83131         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
83132
83133         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
83134         AC_SEARCH_LIBS call for nanosleep.
83135         (LIB_NANOSLEEP): Set and AC_SUBST.
83136
83137 2000-05-06  Jim Meyering  <meyering@lucent.com>
83138
83139         * lib/strnlen.c: Undefine __strnlen and strnlen.
83140         [!weak_alias]: Define __strnlen to strnlen.
83141
83142         * lib/atexit.c: New file, from libiberty.
83143
83144 2000-05-06  Jim Meyering  <meyering@lucent.com>
83145
83146         * lib/closeout.c (close_stdout_status): Also check for errors on the
83147         stderr stream.
83148
83149 2000-05-05  Jim Meyering  <meyering@lucent.com>
83150
83151         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
83152         AC_SEARCH_LIBS call for clock_gettime.
83153         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
83154
83155         * m4/search-libs.m4: Update from autoconf.
83156
83157         su doesn't work on Solaris 2.6.
83158         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
83159         <shadow.h>.  Reported by Dragos Harabor.
83160
83161 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
83162
83163         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
83164         memcpy instead of xmalloc, xrealloc, path_concat.
83165         (locale_charset): Treat empty environment variables as absent.
83166         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
83167
83168 2000-05-04  Jim Meyering  <meyering@lucent.com>
83169
83170         * lib/getopt.c: Update from glibc.
83171         * lib/obstack.c: Likewise.
83172         * lib/obstack.h: Likewise.
83173         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
83174         file
83175
83176         * lib/regex.h: Likewise.
83177         * lib/strndup.c: Likewise.
83178         * lib/strnlen.c: New file, from glibc.
83179
83180 2000-05-03  Jim Meyering  <meyering@lucent.com>
83181
83182         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
83183
83184 2000-05-02  Paul Eggert  <eggert@twinsun.com>
83185
83186         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
83187         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
83188         compile-time test, rather than inspecting host and OS, to
83189         decide whether to define _LARGEFILE_SOURCE.
83190
83191 2000-05-01  Jim Meyering  <meyering@lucent.com>
83192
83193         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
83194
83195         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
83196         Based on a patch from Bruno Haible.
83197
83198 2000-05-01  Jim Meyering  <meyering@lucent.com>
83199
83200         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
83201
83202 2000-04-29  Jim Meyering  <meyering@lucent.com>
83203
83204         * lib/path-concat.c: Declare strdup only if it's not defined.
83205         * lib/canon-host.c: Likewise.
83206
83207 2000-04-28  Jim Meyering  <meyering@lucent.com>
83208
83209         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
83210         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
83211         is included first, then limits.h is included by locale.h by libintl.h.
83212         From John David Anglin.
83213
83214 2000-04-25  Jim Meyering  <meyering@lucent.com>
83215
83216         * lib/makepath.c (S_IRWXUGO): Define.
83217         (make_path): Always perform explicit chmod if MODE specifies any
83218         of the `special' permission bits.  Prompted by a bug report against
83219         install from Mate Wierdl and Joost van Baal.
83220
83221 2000-04-18  Jim Meyering  <meyering@lucent.com>
83222
83223         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
83224         (jm_PREREQ): Use it.
83225
83226 2000-04-18  Jim Meyering  <meyering@lucent.com>
83227
83228         * lib/README: New file.
83229
83230         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
83231         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
83232
83233 2000-04-17  Jim Meyering  <meyering@lucent.com>
83234
83235         Get it right :-)
83236         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
83237         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
83238         Suggestion from Akim Demaille.
83239
83240 2000-04-17  Jim Meyering  <meyering@lucent.com>
83241
83242         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
83243         the definition of it to rpl_strftime also defined-away the system's
83244         declaration.
83245
83246 2000-04-15  Jim Meyering  <meyering@lucent.com>
83247
83248         Use `C' to denote so-called `contiguous' files, the same way
83249         that tar does.
83250         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
83251         (ftypelet): Use S_ISCTG.
83252         From Michael Deutschmann.
83253
83254 2000-04-14  Jim Meyering  <meyering@lucent.com>
83255
83256         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
83257         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
83258         clobbered.
83259
83260 2000-04-14  Jim Meyering  <meyering@lucent.com>
83261
83262         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
83263
83264 2000-04-13  Jim Meyering  <meyering@lucent.com>
83265
83266         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
83267         AH_VERBATIM to insert required #ifndef into config.h.in.
83268         Suggestion from Akim Demaille.
83269
83270 2000-04-12  Jim Meyering  <meyering@lucent.com>
83271
83272         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
83273         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
83274         Christian Krackowizer.
83275
83276         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
83277         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
83278         (AC_SYS_LARGEFILE): Require.
83279         (AM_C_PROTOTYPES): Require.
83280
83281 2000-04-08  Jim Meyering  <meyering@lucent.com>
83282
83283         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
83284         names don't conflict.  Reported by Eli Zaretskii.
83285
83286 2000-04-07  Jim Meyering  <meyering@lucent.com>
83287
83288         * lib/putenv.c: Move inclusion of errno.h so it follows that of
83289         sys/types.h, to work around system header problems on AIX 3.2.5.
83290         From Bruno Haible.
83291
83292 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
83293
83294         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
83295         bug.  Deal with the different error behavior of Irix iconv.
83296
83297 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83298
83299         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83300         IRIX if the installer said otherwise.
83301
83302 2000-04-05  Jim Meyering  <meyering@lucent.com>
83303
83304         Portability tweaks required for ultrix4.3.
83305         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83306         (jm_CHECK_DECLS): Add getutent to the list of functions.
83307         (_jm_DECL_HEADERS): Add utmpx.h.
83308         From John David Anglin.
83309
83310         * m4/strftime.m4: Back out the 2000-04-02 change.
83311         Instead of that change, simply undefine putenv in the test program.
83312
83313 2000-04-05  Jim Meyering  <meyering@lucent.com>
83314
83315         Portability tweaks required for ultrix4.3.
83316         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83317         getutent.
83318         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83319         * lib/canon-host.c: Declare strdup.
83320         * lib/path-concat.c: Likewise.
83321         From John David Anglin.
83322
83323 2000-04-04  Jim Meyering  <meyering@lucent.com>
83324
83325         Be more DOS 8.3-friendly.
83326         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83327         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83328         * lib/Makefile.am: Reflect renaming.
83329         Reported by Eli Zaretskii.
83330
83331         Use a temporary file name that won't clash with `charset.alias'
83332         in the DOS 8.3 name space.
83333         * lib/Makefile.am (charset_tmp): Define.
83334         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83335         (uninstall-local): Likewise.
83336         Reported by Eli Zaretskii.
83337
83338 2000-04-03  Jim Meyering  <meyering@lucent.com>
83339
83340         * m4/gettext.m4: Fix typo in comment.
83341
83342         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83343         textutils/configure.in).  Suggestion from Paul Eggert.
83344         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83345
83346 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83347
83348         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83349         variable in the shell rather than using putenv, which isn't
83350         portable.  This avoids the configure-time inter-test dependency
83351         on the potentially-renamed putenv function.
83352
83353 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83354
83355         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83356         before checking struct stat.st_blksize, so that
83357         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83358
83359 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83360
83361         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83362         since strftime.c uses HAVE_STRFTIME to decide whether to use
83363         the underlying strftime.
83364
83365 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83366
83367         * lib/time/strftime.c (my_strftime): Make sure we call the system
83368         strftime, not ourselves, when invoking the underlying strftime.
83369
83370 2000-03-24  Jim Meyering  <meyering@lucent.com>
83371
83372         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83373         (charset_alias): Define.
83374         (install-exec-local): Factor out common code.
83375         (uninstall-local): Split lines longer than 80.
83376         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83377         (SUFFIXES): Define.
83378         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83379         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83380
83381 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83382
83383         * lib/config.charset: Output a line containing "Packages using this
83384         file".
83385         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83386         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83387         ref-del.sed): New rules.
83388
83389 2000-03-17  Jim Meyering  <meyering@lucent.com>
83390
83391         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83392         Otherwise, include <strings.h>
83393
83394 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83395
83396         * lib/unicodeio.c (utf8_wctomb): New function.
83397         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83398         format instead of in UCS-4 with platform dependent endianness.
83399
83400 2000-03-10  Jim Meyering  <meyering@lucent.com>
83401
83402         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83403         From Marco Franzen.
83404
83405 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83406
83407         * lib/savedir.c (savedir): Work even if directory size is
83408         negative; this can happen with some screwy NFS configurations.
83409
83410 2000-03-06  Jim Meyering  <meyering@lucent.com>
83411
83412         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83413         if it's NULL (because we ran out of memory).  From Bruno Haible.
83414
83415 2000-03-05  Jim Meyering  <meyering@lucent.com>
83416
83417         * lib/localcharset.c ("path-concat.h"): Include.
83418         (get_charset_aliases): Use path_concat instead of ANSI string
83419         concatenation.
83420
83421         * lib/unicodeio.h (PARAMS): Define.
83422         Use it to guard prototype.
83423
83424 2000-03-04  Jim Meyering  <meyering@lucent.com>
83425
83426         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83427         for lib/localcharset.c.
83428
83429 2000-03-04  Jim Meyering  <meyering@lucent.com>
83430
83431         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83432         installing into it.
83433         (uninstall-local): Uncomment this rule so `make distcheck' works
83434         once again.
83435
83436         * lib/unicodeio.c (<errno.h>): Include it.
83437         (errno): Declare if not defined.
83438
83439         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83440
83441         * lib/config.charset: New version, incorporating remarks from a linux
83442         i18n mailing list.  From Bruno Haible.
83443
83444 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83445
83446         * m4/codeset.m4: New file.
83447         * m4/iconv.m4: New file.
83448         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83449
83450 2000-03-03  Jim Meyering  <meyering@lucent.com>
83451
83452         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83453
83454 2000-03-02  Jim Meyering  <meyering@lucent.com>
83455
83456         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83457         the messages come out on separate lines.
83458
83459         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83460         rather than jm_CHECK_DECLARATIONS.
83461         * m4/decl.m4: Remove now-unused file.
83462
83463         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83464         geteuid.
83465
83466 2000-03-02  Jim Meyering  <meyering@lucent.com>
83467
83468         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83469
83470 2000-03-01  Jim Meyering  <meyering@lucent.com>
83471
83472         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83473         * lib/unicodeio.c: Likewise.
83474
83475 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83476
83477         * lib/config.charset: New file.
83478         * lib/localcharset.c: New file.
83479         * lib/unicodeio.h, lib/unicodeio.c: New files.
83480         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83481         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83482         (noinst_HEADERS): Add unicodeio.h.
83483         (all-local, install-exec-local, charset.alias): New targets.
83484
83485 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83486
83487         * lib/quotearg.c (ALERT_CHAR): New macro.
83488         (quotearg_buffer_restyled): Use it.
83489
83490 2000-02-27  Jim Meyering  <meyering@lucent.com>
83491
83492         * m4/check-decl.m4: Add getenv to the list.
83493
83494 2000-02-27  Jim Meyering  <meyering@lucent.com>
83495
83496         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83497         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83498
83499         * lib/backupfile.c: Guard inclusion of stdlib.h with
83500         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83501         Declare malloc if needed.
83502
83503         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83504         `#ifndef HAVE_DECL..'
83505         now that autoconf always defines the HAVE_DECL_ symbols.
83506         * lib/human.c: Likewise.
83507         * lib/same.c: Likewise.
83508         * lib/strtoumax.c: Likewise.
83509
83510         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83511         declaration check was not run.
83512         * lib/hash.c: Likewise.
83513         * lib/human.c: Likewise.
83514         * lib/same.c: Likewise.
83515         * lib/strtoumax.c: Likewise.
83516
83517         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83518         `.', then first look up the entire `.'-containing string as a login
83519         name.
83520
83521 2000-02-23  Jim Meyering  <meyering@lucent.com>
83522
83523         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83524         in place of my hack.
83525
83526 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83527
83528         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83529         (textint): New typedef.
83530         (parser_control): Member year changed from int to textint.
83531         All uses changed.
83532         (YYSTYPE): Removed; replaced by %union with int and textint members.
83533         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83534         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83535         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83536         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83537         (date, number, to_year): Use width of number in digits, not its value,
83538         to determine whether it's a 2-digit year, or a 2-digit time.
83539         (yylex): Store number of digits of numeric tokens.
83540         Reported by John Kendall.
83541
83542         (parser_control): Changed from struct parser_control to typedef (for
83543         consistency).  All uses changed.
83544
83545         (tID): Removed; not used.
83546         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83547
83548 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83549
83550         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83551         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83552
83553 2000-02-12  Jim Meyering  <meyering@lucent.com>
83554
83555         * lib/userspec.c (ISDIGIT): Define it.
83556         (isdigit): Remove definition.
83557         (is_number): Use ISDIGIT, not isdigit.
83558         <libintl.h>: Include.
83559         (_ and N_): Define.
83560         (parse_user_spec): Mark translatable strings.
83561
83562 2000-02-10  Jim Meyering  <meyering@lucent.com>
83563
83564         With these changes, nanosleep.[ch] are finally enough like the other
83565         lib/* replacement files to compile on a few more losing systems.
83566
83567         * lib/nanosleep.h: Don't include config.h.
83568         Remove prototype from declaration of nanosleep.
83569         (PARAMS): Remove now-unneeded definition.
83570         * lib/nanosleep.c: #undef nanosleep.
83571         (rpl_nanosleep): Rename from nanosleep.
83572
83573 2000-02-10  Jim Meyering  <meyering@lucent.com>
83574
83575         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83576         gnu_nanosleep to rpl_nanosleep.
83577
83578 2000-02-09  Jim Meyering  <meyering@lucent.com>
83579
83580         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83581         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83582
83583 2000-02-08  Akim Demaille  <akim@epita.fr>
83584
83585         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83586         `[' and `]' and remove uses of `changequote'.
83587         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83588         (AC_SYS_LARGEFILE): Likewise.
83589         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83590         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83591         of changequote.
83592         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83593         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83594         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83595         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83596
83597 2000-02-05  Jim Meyering  <meyering@lucent.com>
83598
83599         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83600         Remove explicit use of AC_HEADER_TIME.  It is required by
83601         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83602         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83603         in autoconf whereby the expansion of the latter ended up preceding
83604         the expansion of its prerequisite, AC_HEADER_TIME.
83605         Reported by Volker Borchert.
83606
83607 2000-02-03  Jim Meyering  <meyering@lucent.com>
83608
83609         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83610
83611 2000-02-03  Jim Meyering  <meyering@lucent.com>
83612
83613         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83614         rather than with `#if HAVE_UTMPNAME'.
83615
83616 2000-02-02  Jim Meyering  <meyering@lucent.com>
83617
83618         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83619         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83620         Reported by Eli Zaretskii.
83621
83622 2000-02-01  Jim Meyering  <meyering@lucent.com>
83623
83624         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83625
83626 2000-01-31  Jim Meyering  <meyering@lucent.com>
83627
83628         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83629         functions.  Add the time.h and sys/time.h headers along with the
83630         AC_REQUIRE'ment of AC_HEADER_TIME.
83631
83632 2000-01-31  Jim Meyering  <meyering@lucent.com>
83633
83634         * lib/nanosleep.h (nanosleep): Guard declaration with
83635         `#if ! HAVE_DECL_NANOSLEEP'.
83636         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83637         the declaration in that vendor's sys/timers.h.
83638         Reported by Christian Krackowizer.
83639
83640         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83641         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83642         (ISPRINT): Likewise.
83643         Reported by Tom Tromey.
83644
83645 2000-01-30  Jim Meyering  <meyering@lucent.com>
83646
83647         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83648
83649         * m4/prereq.m4 (utmp_includes): Define.
83650         Check for ut_user and ut_name members in both struct utmpx
83651         and struct utmp.
83652
83653 2000-01-30  Jim Meyering  <meyering@lucent.com>
83654
83655         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83656         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83657         header files where only utmpx.ut_user is declared.
83658
83659         * lib/readutmp.h (UT_USER): Define.
83660
83661 2000-01-29  Jim Meyering  <meyering@lucent.com>
83662
83663         * m4/lib-check.m4: New file containing library-related checks from
83664         fileutils and sh-utils (textutils had none).
83665
83666 2000-01-28  Jim Meyering  <meyering@lucent.com>
83667
83668         * m4/perl.m4: Change format of warning message to look more like that
83669         from the missing script.  Suggestion from François Pinard.
83670
83671 2000-01-25  Jim Meyering  <meyering@lucent.com>
83672
83673         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83674         well as time.h in the compile check.
83675         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83676         Fix typo in cross-compiling case: s/yes/no/.
83677
83678 2000-01-23  Jim Meyering  <meyering@lucent.com>
83679
83680         * m4/jm-macros.m4: Move df-related tests here from
83681         fileutils/configure.in
83682
83683         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83684         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83685
83686         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83687         s/space/ac_fsusage_space/.
83688         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83689
83690         * m4/ftruncate.m4: New file (derived from part of
83691         fileutils/configure.in).
83692         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83693         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83694
83695         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83696         AC_SUBST these here, rather than just in sh-util/configure.in, so
83697         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83698         all the same.
83699         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83700         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83701         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83702         (AC_SUBST(POW_LIBM)): Likewise.
83703         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83704
83705 2000-01-23  Jim Meyering  <meyering@lucent.com>
83706
83707         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83708         obstack.c.
83709
83710 2000-01-22  Jim Meyering  <meyering@lucent.com>
83711
83712         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83713
83714         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83715
83716         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83717         configure.in
83718         (AC_CHECK_HEADERS): Likewise for sh-utils.
83719         (AC_CHECK_HEADERS): Likewise for textutils.
83720         Merge the three lists of headers.
83721
83722         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83723         from fileutils' configure.in.
83724
83725         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83726         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83727         check-decl.m4.
83728
83729         * m4/check-decl.m4: Use #if rather than #ifdef.
83730         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83731         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83732         (_jm_DECL_HEADERS): Define new function.
83733         (jm_CHECK_DECLARATIONS): Require it.
83734
83735 2000-01-22  Jim Meyering  <meyering@lucent.com>
83736
83737         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83738         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83739         Required for some AIX systems.  Reported by Christian Krackowizer.
83740         [TESTING] (main): New function.
83741
83742         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83743         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83744         letters.
83745
83746         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83747         iswprint.
83748
83749         * lib/strverscmp.c (ISDIGIT): Define.
83750         (strverscmp): Use ISDIGIT, not isdigit.
83751
83752 2000-01-19  Jim Meyering  <meyering@lucent.com>
83753
83754         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83755         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83756         defines `struct timespec' in <sys/time.h>
83757
83758         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83759         Thanks to Akim for explaining.
83760
83761 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83762
83763         * lib/nanosleep.c (nanosleep):
83764         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83765         POSIX.1 doesn't require SA_INTERRUPT and some systems
83766         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83767         it's been part of POSIX.1 since day 1 (in 1988).
83768
83769 2000-01-17  Jim Meyering  <meyering@lucent.com>
83770
83771         * lib/interlock: Remove unused file.  Reported by François Pinard.
83772
83773 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83774
83775         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83776         alert, backslash, formfeed, and vertical tab unnecessarily in
83777         shell quoting style.
83778
83779 2000-01-16  Jim Meyering  <meyering@lucent.com>
83780
83781         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83782         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83783         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83784         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83785
83786 2000-01-16  Jim Meyering  <meyering@lucent.com>
83787
83788         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83789         because the latter didn't work.
83790
83791 2000-01-15  Jim Meyering  <meyering@lucent.com>
83792
83793         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83794         (AC_REPLACE_FUNCS): Add memcpy and memset.
83795         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83796         Add strpbrk.
83797         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83798
83799 2000-01-12  Jim Meyering  <meyering@lucent.com>
83800
83801         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83802         (jm_PREREQ): Use it.
83803         (jm_PREREQ_READUTMP): New macro.
83804         (jm_PREREQ): Use it.
83805
83806 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83807
83808         Quote multibyte characters correctly.
83809         * m4/c-bs-a.m4: New file.
83810         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83811         (jm_PREREQ): Use it.
83812
83813 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83814
83815         * m4/uintmax_t.m4: Port to autoconf 2.13.
83816
83817 2000-01-08  Jim Meyering  <meyering@ascend.com>
83818
83819         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83820         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83821
83822 2000-01-04  Jim Meyering  <meyering@ascend.com>
83823
83824         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83825         jm_STRUCT_DIRENT_D_TYPE.
83826         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83827         jm_STRUCT_DIRENT_D_INO.
83828         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83829         jm_STRUCT_UTIMBUF.
83830         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83831         renamings.
83832         * m4/utime.m4: Likewise.
83833
83834         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83835         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83836
83837 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83838
83839         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83840         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83841
83842 2000-01-02  Jim Meyering  <meyering@ascend.com>
83843
83844         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83845         remember if this is necessary.
83846
83847 1999-12-26  Jim Meyering  <meyering@ascend.com>
83848
83849         * m4/jm-macros.m4: Use it here.
83850         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83851
83852 1999-12-23  Jim Meyering  <meyering@ascend.com>
83853
83854         * m4/jm-macros.m4: Check for clock_gettime (moved from
83855         fileutils/configure.in)
83856         Check for gettimeofday.
83857
83858 1999-12-20  Jim Meyering  <meyering@ascend.com>
83859
83860         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83861         autoconf-2.14a-1999-12-20.
83862
83863 1999-12-19  Jim Meyering  <meyering@ascend.com>
83864
83865         * m4/lstat-slash.m4: New file.
83866         * m4/jm-macros.m4: Use the new macro:
83867         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83868
83869 1999-12-07  Jim Meyering  <meyering@ascend.com>
83870
83871         * m4/perl.m4: Require that File::Compare be available, too.
83872         Too many systems seem to lack it.
83873
83874         * m4/strftime.m4: Add checks for most of the cpp macros tested in
83875         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
83876
83877 1999-11-18  Paul Eggert  <eggert@twinsun.com>
83878
83879         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
83880         problem with the QNX 4.25 shell, which doesn't propagate exit
83881         status of failed commands inside shell assignments.
83882
83883 1999-11-17  Jim Meyering  <meyering@ascend.com>
83884
83885         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
83886
83887 1999-11-07  Jim Meyering  <meyering@ascend.com>
83888
83889         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
83890
83891 1999-11-06  Jim Meyering  <meyering@ascend.com>
83892
83893         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
83894         * m4/jm-macros.m4 (jm_MACROS): Use it here.
83895
83896 1999-11-05  Jim Meyering  <meyering@ascend.com>
83897
83898         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
83899         configure.in of textutils, fileutils, and sh-utils into this one
83900         (shared between those packages) file.
83901         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
83902         AC_STRUCT_ST_BLKSIZE.
83903
83904 1999-11-03  Jim Meyering  <meyering@ascend.com>
83905
83906         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
83907         of AC_CHECK_TYPE checks includes unistd.h.
83908         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
83909         Suggestion from Akim Demaille.
83910
83911 1999-10-30  Jim Meyering  <meyering@ascend.com>
83912
83913         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
83914         m4-quoted string.
83915         * m4/ls-mntd-fs.m4: Likewise.
83916         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
83917         * m4/jm-winsz1.m4: Likewise.
83918
83919         * m4/const.m4: Remove file, since the fix made it into the experimental
83920         version of autoconf.
83921         * m4/mktime.m4: Likewise.
83922
83923         * m4/check-type.m4: Remove file, now that the latest version of
83924         AC_CHECK_TYPE takes a third arg to specify additional #includes.
83925
83926         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
83927         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
83928         AC_CHECK_TYPE.
83929
83930 1999-10-04  Jim Meyering  <meyering@ascend.com>
83931
83932         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
83933
83934 1999-09-22  Paul Eggert  <eggert@twinsun.com>
83935
83936         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
83937         2.95.1 bug with HP-UX 10.20.
83938
83939 1999-09-17  Jim Meyering  <meyering@ascend.com>
83940
83941         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
83942         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
83943         due to missing strdup (against sh-utils-2.0).
83944
83945 1999-08-29  Jim Meyering  <meyering@ascend.com>
83946
83947         * m4/jm-macros.m4: Require jm_BISON.
83948         * m4/bison.m4: New file.
83949
83950 1999-08-17  Paul Eggert  <eggert@twinsun.com>
83951
83952         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
83953         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
83954
83955 1999-08-05  Jim Meyering  <meyering@ascend.com>
83956
83957         * m4/getline.m4: Rename test file from conftestdata to conftest.data
83958         to avoid conflicts with `conftest' on 8+3 filesystems.
83959         Suggestion from Eli Zaretskii.
83960
83961 1999-08-04  Jim Meyering  <meyering@ascend.com>
83962
83963         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
83964         fileutils and sh-utils (textutils's getline test was inadequate).
83965         (AM_FUNC_GETLINE): Run this test.
83966         (AC_CHECK_FUNCS): Check for getdelim.
83967         Reported by Bob Proulx.
83968
83969 1999-08-02  Jim Meyering  <meyering@ascend.com>
83970
83971         * m4/jm-macros.m4: Add a comment.
83972
83973 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83974
83975         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
83976         <inttypes.h> defines strtoumax as a macro (and not as a
83977         function).
83978
83979 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83980
83981         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
83982         that we can shift, multiply and divide unsigned long long
83983         values; Ultrix cc can't do it.
83984
83985 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83986
83987         * m4/mktime.m4: New file, which is a preview of what should appear
83988         in the next public autoconf release.
83989
83990 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83991
83992         * m4/lfs.m4: Remove this file.
83993         * m4/largefile.m4: New file.  It contains the old contents of
83994         lfs.m4, except that all names with prefix AC_LFS have been
83995         changed to use the prefix AC_SYS_LARGEFILE instead, to be
83996         compatible with future autoconf versions.  Also, some minor m4
83997         quoting problems have been fixed.
83998
83999 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84000
84001         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
84002         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
84003         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
84004         and simplify the shell code.
84005
84006 1999-08-01  Jim Meyering  <meyering@ascend.com>
84007
84008         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
84009         m4.
84010
84011 1999-07-20  Jim Meyering  <meyering@ascend.com>
84012
84013         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
84014
84015 1999-07-15  Jim Meyering  <meyering@ascend.com>
84016
84017         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
84018
84019 1999-05-22  Jim Meyering  <meyering@ascend.com>
84020
84021         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
84022
84023 1999-05-20  Jim Meyering  <meyering@ascend.com>
84024
84025         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
84026         Add a colon after each `then' in case $4 is empty.
84027
84028 1999-05-16  Jim Meyering  <meyering@ascend.com>
84029
84030         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
84031
84032 1999-05-10  Jim Meyering  <meyering@ascend.com>
84033
84034         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
84035
84036         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
84037         AC_FUNC_MKTIME.
84038
84039 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
84040
84041         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
84042
84043 1999-05-04  Paul Eggert  <eggert@twinsun.com>
84044
84045         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
84046         not CPPFLAGS, so that linking works correctly in IRIX.
84047
84048 1999-04-30  Paul Eggert  <eggert@twinsun.com>
84049
84050         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
84051
84052 1999-04-20  Paul Eggert  <eggert@twinsun.com>
84053
84054         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
84055         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
84056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
84057         jm_AC_TYPE_UNSIGNED_LONG_LONG.
84058         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
84059
84060         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
84061
84062 1999-04-20  Jim Meyering  <meyering@ascend.com>
84063
84064         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
84065         AC_REPLACE xstroull if necessary.  From Paul Eggert.
84066         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
84067
84068 1999-04-18  Jim Meyering  <meyering@ascend.com>
84069
84070         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
84071         * m4/jm-macros.m4: Use it.
84072
84073 1999-04-06  Jim Meyering  <meyering@ascend.com>
84074
84075         * m4/strftime.m4: Remove test for %f.
84076
84077 1999-03-29  Jim Meyering  <meyering@ascend.com>
84078
84079         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
84080         superset of the AC_TYPE_* checks in the textutils, fileutils,
84081         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
84082         AC_TYPE_PID_T.
84083
84084 1999-03-28  Jim Meyering  <meyering@ascend.com>
84085
84086         * m4/jm-macros.m4: Define GNU_PACKAGE here.
84087         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
84088         replaced e.g., in the *.sh files of the sh-utils.
84089
84090 1999-03-20  Jim Meyering  <meyering@ascend.com>
84091
84092         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
84093         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
84094         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
84095
84096 1999-03-19  Jim Meyering  <meyering@ascend.com>
84097
84098         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
84099
84100 1999-03-12  Jim Meyering  <meyering@ascend.com>
84101
84102         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
84103
84104 1999-03-07  Jim Meyering  <meyering@ascend.com>
84105
84106         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
84107         declared.
84108
84109 1999-02-17  Jim Meyering  <meyering@ascend.com>
84110
84111         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
84112         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84113
84114 1999-02-07  Jim Meyering  <meyering@ascend.com>
84115
84116         * m4/group-member.m4: New file -- extracted from sh-utils'
84117         configure.in.
84118
84119         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
84120         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
84121
84122 1999-02-06  Jim Meyering  <meyering@ascend.com>
84123
84124         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
84125         * m4/fnmatch.m4: Likewise.
84126         * m4/getgroups.m4: Likewise.
84127         * m4/lstat.m4: Likewise.
84128         * m4/malloc.m4: Likewise.
84129         * m4/putenv.m4: Likewise.
84130         * m4/realloc.m4: Likewise.
84131         * m4/regex.m4: Likewise.
84132         * m4/stat.m4: Likewise.
84133         * m4/strftime.m4: Likewise.
84134         Suggestion from Alain Magloire.
84135
84136         * m4/chown.m4: Use `.$ac_objext', not `.o'.
84137         * m4/fnmatch.m4: Likewise.
84138         * m4/getgroups.m4: Likewise.
84139         * m4/getline.m4: Likewise.
84140         * m4/lstat.m4: Likewise.
84141         * m4/malloc.m4: Likewise.
84142         * m4/memcmp.m4: Likewise.
84143         * m4/putenv.m4: Likewise.
84144         * m4/realloc.m4: Likewise.
84145         * m4/regex.m4: Likewise.
84146         * m4/stat.m4: Likewise.
84147         * m4/strftime.m4: Likewise.
84148         Suggestion from Alain Magloire.
84149
84150         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
84151         an argument.
84152
84153         * m4/regex.m4: Add a run-time Test for proper operation of
84154         re_compile_pattern.
84155
84156 1999-01-31  Jim Meyering  <meyering@ascend.com>
84157
84158         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
84159
84160 1999-01-30  Jim Meyering  <meyering@ascend.com>
84161
84162         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
84163
84164         * m4/jm-mktime.m4: Make this a wrapper around the official
84165         AM_FUNC_MKTIME rather than my private copy, now that the official one
84166         is up to date.
84167         * m4/mktime.m4: Remove file.
84168
84169         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
84170         * m4/uptime.m4: Likewise.
84171         * m4/uintmax_t.m4: Likewise.
84172
84173 1999-01-28  Jim Meyering  <meyering@ascend.com>
84174
84175         * m4/jm-macros.m4: Use jm_AFS.
84176         * m4/afs.m4: New file (from fileutils' configure.in).
84177
84178         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
84179         * m4/chown.m4: Likewise.
84180         * m4/d-ino.m4: Likewise.
84181         * m4/d-type.m4: Likewise.
84182         * m4/fnmatch.m4: Likewise.
84183         * m4/getgroups.m4: Likewise.
84184         * m4/gettext.m4: Likewise.
84185         * m4/jm-mktime.m4: Likewise.
84186         * m4/jm-winsz2.m4: Likewise.
84187         * m4/lcmessage.m4: Likewise.
84188         * m4/ls-mntd-fs.m4: Likewise.
84189         * m4/malloc.m4: Likewise.
84190         * m4/memcmp.m4: Likewise.
84191         * m4/putenv.m4: Likewise.
84192         * m4/realloc.m4: Likewise.
84193         * m4/st_mtim.m4: Likewise.
84194         * m4/strftime.m4: Likewise.
84195
84196 1999-01-16  Jim Meyering  <meyering@ascend.com>
84197
84198         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
84199         (ARGMATCH_DIE_DECL): Define.
84200
84201 1999-01-12  Jim Meyering  <meyering@ascend.com>
84202
84203         * m4/Makefile.am.in: Rewrite to avoid using fmt.
84204         Reported by Lars Hecking.
84205
84206 1999-01-10  Jim Meyering  <meyering@ascend.com>
84207
84208         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
84209         gross kludge.
84210         * m4/inttypes_h.m4: Likewise.
84211         * m4/lstat.m4: Likewise.
84212         * m4/malloc.m4: Likewise.
84213         * m4/readdir.m4: Likewise.
84214         * m4/realloc.m4: Likewise.
84215         * m4/st_dm_mode.m4: Likewise.
84216         * m4/stat.m4: Likewise.
84217         * m4/utimbuf.m4: Likewise.
84218         * m4/utimes.m4: Likewise.
84219
84220         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
84221         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
84222         comments in config.h.in are meaningful.
84223
84224         * m4/jm-macros.m4: Require autoconf-2.13 here.
84225
84226         * m4/regex.m4: By default, don't use the included regex.c on systems
84227         with glibc 2.  Suggestion from Uli Drepper.
84228
84229 1999-01-02  Jim Meyering  <meyering@ascend.com>
84230
84231         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
84232
84233 1998-12-18  Jim Meyering  <meyering@ascend.com>
84234
84235         * m4/Makefile.am.in (Makefile.am): Simplify rule.
84236         Based on a suggestion from Lars Hecking.
84237
84238 1998-11-16  Paul Eggert  <eggert@twinsun.com>
84239
84240         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
84241
84242 1998-11-16  Jim Meyering  <meyering@ascend.com>
84243
84244         * m4/lfs.m4: Double-quote the `uname...` expression.
84245
84246 1998-11-14  Jim Meyering  <meyering@ascend.com>
84247
84248         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
84249         * m4/stat.m4: Likewise.
84250
84251 1998-11-03  Jim Meyering  <meyering@ascend.com>
84252
84253         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
84254         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
84255
84256 1998-10-18  Jim Meyering  <meyering@ascend.com>
84257
84258         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
84259
84260 1998-10-17  Jim Meyering  <meyering@ascend.com>
84261
84262         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
84263         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
84264         calls for those previously hard-coded headers.  Instead, take a new
84265         parameter.
84266         (jm_CHECK_DECLARATIONS): Reflect interface change.
84267         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
84268         (jm_CHECK_DECL_LOCALTIME_R): New macro.
84269
84270         * m4/mktime.m4: Test for spring-forward gap before long-running test.
84271
84272 1998-10-14  Jim Meyering  <meyering@ascend.com>
84273
84274         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
84275         instead of "TZ=America/Vancouver".  From Paul Eggert.
84276
84277 1998-10-11  Jim Meyering  <meyering@ascend.com>
84278
84279         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
84280         This adds a test for a recently added compatibility fix for mktime.c.
84281         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
84282
84283 1998-09-27  Jim Meyering  <meyering@ascend.com>
84284
84285         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
84286
84287         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
84288         ../configure.in, including a change from Gordon Matzigkeit to allow
84289         cross-compiling for the Hurd.
84290
84291         * m4/glibc.m4: New file/macro to test for the GNU C Library
84292         versions 1 and 2.  From Gordon Matzigkeit.
84293         Indent.
84294
84295 1998-09-21  Jim Meyering  <meyering@ascend.com>
84296
84297         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84298
84299 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84300
84301         Port nanosecond-resolution times to UnixWare 2.1.2 and
84302         pedantic Solaris 2.6.
84303
84304         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84305         AC_STRUCT_ST_MTIM.
84306         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84307         Generate name of ns member, instead of just 1 or undef.
84308         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84309
84310 1998-08-15  Jim Meyering  <meyering@ascend.com>
84311
84312         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84313         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84314         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84315         instead of jm_TYPE_SSIZE_T.
84316
84317 1998-08-12  Jim Meyering  <meyering@ascend.com>
84318
84319         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84320
84321 1998-08-02  Jim Meyering  <meyering@ascend.com>
84322
84323         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84324         in acconfig.h manually.
84325
84326 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84327
84328         * m4/st_mtim.m4: New file.
84329
84330 1998-07-28  Jim Meyering  <meyering@ascend.com>
84331
84332         * m4/utimes.m4: Undef stat.
84333
84334 1998-07-25  Jim Meyering  <meyering@ascend.com>
84335
84336         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84337         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84338
84339 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84340
84341         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84342         uid and gid actually remain unchanged.
84343
84344 1998-07-07  Jim Meyering  <meyering@ascend.com>
84345
84346         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84347
84348 1998-07-04  Jim Meyering  <meyering@ascend.com>
84349
84350         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84351         to prove that this macro can be used in packages without regex.c.
84352
84353 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84354
84355         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84356         is to be used.
84357
84358 1998-07-03  Jim Meyering  <meyering@ascend.com>
84359
84360         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84361
84362         * m4/gettext.m4: New file -- from gettext-0.10.35.
84363         * m4/lcmessage.m4: Likewise.
84364         * m4/progtest.m4: Likewise.
84365
84366         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84367         * m4/jm-macros.m4: Require the new macro.
84368
84369 1998-06-29  Jim Meyering  <meyering@ascend.com>
84370
84371         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84372         for the definition of NGROUPS (used in a system header included
84373         by sys/mount.h).
84374
84375 1998-06-28  Jim Meyering  <meyering@ascend.com>
84376
84377         * m4/ls-mntd-fs.m4: New file.
84378         * m4/fstypename.m4: New file.
84379
84380         * m4/jm-macros.m4: Require the new macro.
84381         * m4/jm-glibc-io.m4: New file.
84382
84383 1998-05-19  Jim Meyering  <meyering@ascend.com>
84384
84385         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84386         * m4/lchown.m4: New file.
84387
84388         * m4/Makefile.am.in: New file.
84389         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84390
84391 1998-05-14  Jim Meyering  <meyering@ascend.com>
84392
84393         * m4/Makefile.am (EXTRA_DIST): Add them.
84394         * m4/jm-macros.m4: New file.
84395         * m4/utimbuf.m4: New file.
84396
84397 1998-05-12  Jim Meyering  <meyering@ascend.com>
84398
84399         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84400
84401 1998-05-11  Jim Meyering  <meyering@ascend.com>
84402
84403         * m4/isc-posix.m4: New file.
84404
84405 1998-05-10  Jim Meyering  <meyering@ascend.com>
84406
84407         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84408
84409 1998-05-09  Jim Meyering  <meyering@ascend.com>
84410
84411         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84412         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84413         with automake.
84414
84415         * m4/ssize_t.m4: New file.
84416         * m4/mktime.m4: Remove file -- the new automake has this now.
84417
84418 1998-04-26  Jim Meyering  <meyering@ascend.com>
84419
84420         * m4/assert.m4: New file.
84421         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84422
84423 1998-04-05  Jim Meyering  <meyering@ascend.com>
84424
84425         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84426         (jm_PREREQ): Use it here.
84427
84428 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84429
84430         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84431         in acconfig.h.
84432
84433 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84434
84435         * m4/prereq.m4: New file.
84436         * m4/error.m4: New file.
84437         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84438
84439 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84440
84441         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84442         cache-check for the same variable -- that defeated the purpose of
84443         the test; the test program was never run.  This was a problem only
84444         on systems with losing getline functions -- HP-UX 10.20 is one.
84445         Reported by Bjorn Helgaas.
84446
84447 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84448
84449         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84450
84451 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84452
84453         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84454
84455         * m4/const.m4: New file.  Use an initializer in this declaration
84456         typedef int charset[2]; const charset x;
84457         Reported by Bob Glickstein.
84458
84459 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84460
84461         * m4/chown.m4: Fix reversed types on -1 args to chown.
84462         From Kaveh Ghazi.
84463
84464 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84465
84466         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84467         Add lseek and memchr.
84468
84469         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84470         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84471         have a 20-character limit on names.
84472
84473 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84474
84475         * m4/inttypes_h.m4: New file.
84476         * m4/uintmax_t.m4: New file.
84477         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84478
84479
84480         -----
84481
84482         Local Variables:
84483         coding: utf-8
84484         End:
84485
84486         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84487
84488         Copying and distribution of this file, with or without
84489         modification, are permitted provided the copyright notice
84490         and this notice are preserved.