1a30ae807036c91532daa87f2c4aec6c83bd6e50
[gnulib.git] / ChangeLog
1 2011-07-12  Bruno Haible  <bruno@clisp.org>
2
3         regex: Depend on module 'strcase'.
4         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5
6 2011-07-12  Jim Meyering  <meyering@redhat.com>
7
8         warn-on-use: fix typo in file name
9         * modules/snippet/warn-on-use (Files): Correct file name:
10         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11
12 2011-07-12  Bruno Haible  <bruno@clisp.org>
13
14         strings: Document module.
15         * doc/posix-headers/strings.texi: Mention module 'strings'.
16
17 2011-07-12  Bruno Haible  <bruno@clisp.org>
18
19         Rename module '_Noreturn' to 'snippet/_Noreturn'.
20         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
21         (Files, Makefile.am): Update.
22         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
23         * modules/stdlib (Depends-on): Update.
24
25 2011-07-12  Bruno Haible  <bruno@clisp.org>
26
27         * NEWS: Mention the changes.
28
29         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
30         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
31         (Files, Makefile.am): Update.
32         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
33         * modules/arpa_inet (Depends-on): Update.
34         * modules/ctype (Depends-on): Update.
35         * modules/dirent (Depends-on): Update.
36         * modules/fcntl-h (Depends-on): Update.
37         * modules/glob (Depends-on): Update.
38         * modules/iconv-h (Depends-on): Update.
39         * modules/inttypes-incomplete (Depends-on): Update.
40         * modules/langinfo (Depends-on): Update.
41         * modules/locale (Depends-on): Update.
42         * modules/math (Depends-on): Update.
43         * modules/netdb (Depends-on): Update.
44         * modules/poll-h (Depends-on): Update.
45         * modules/pty (Depends-on): Update.
46         * modules/search (Depends-on): Update.
47         * modules/signal (Depends-on): Update.
48         * modules/spawn (Depends-on): Update.
49         * modules/stdio (Depends-on): Update.
50         * modules/stdlib (Depends-on): Update.
51         * modules/string (Depends-on): Update.
52         * modules/strings (Depends-on): Update.
53         * modules/sys_file (Depends-on): Update.
54         * modules/sys_ioctl (Depends-on): Update.
55         * modules/sys_select (Depends-on): Update.
56         * modules/sys_socket (Depends-on): Update.
57         * modules/sys_stat (Depends-on): Update.
58         * modules/sys_time (Depends-on): Update.
59         * modules/sys_times (Depends-on): Update.
60         * modules/sys_utsname (Depends-on): Update.
61         * modules/sys_wait (Depends-on): Update.
62         * modules/termios (Depends-on): Update.
63         * modules/time (Depends-on): Update.
64         * modules/unistd (Depends-on): Update.
65         * modules/wchar (Depends-on): Update.
66         * modules/wctype-h (Depends-on): Update.
67         * MODULES.html.sh (Support for building libraries and executables):
68         Update.
69
70         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
71         * modules/snippet/unused-parameter: Renamed from
72         modules/unused-parameter.
73         (Files, Makefile.am): Update.
74         * build-aux/snippet/unused-parameter.h: Renamed from
75         build-aux/unused-parameter.h.
76         * modules/selinux-h (Depends-on): Update.
77         * modules/unistr/base (Depends-on): Update.
78         * MODULES.html.sh (Core language properties): Update.
79
80         Rename module 'link-warning' to 'snippet/link-warning'.
81         * modules/snippet/link-warning: Renamed from modules/link-warning.
82         (Files, Makefile.am): Update.
83         * build-aux/snippet/link-warning.h: Renamed from
84         build-aux/link-warning.h.
85         * MODULES.html.sh (Support for building libraries and executables):
86         Update.
87
88         Rename module 'c++defs' to 'snippet/c++defs'.
89         * modules/snippet/c++defs: Renamed from modules/c++defs.
90         (Files, Makefile.am): Update.
91         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
92         * modules/arpa_inet (Depends-on): Update.
93         * modules/ctype (Depends-on): Update.
94         * modules/dirent (Depends-on): Update.
95         * modules/fcntl-h (Depends-on): Update.
96         * modules/glob (Depends-on): Update.
97         * modules/iconv-h (Depends-on): Update.
98         * modules/langinfo (Depends-on): Update.
99         * modules/locale (Depends-on): Update.
100         * modules/math (Depends-on): Update.
101         * modules/netdb (Depends-on): Update.
102         * modules/poll-h (Depends-on): Update.
103         * modules/pty (Depends-on): Update.
104         * modules/search (Depends-on): Update.
105         * modules/signal (Depends-on): Update.
106         * modules/spawn (Depends-on): Update.
107         * modules/stdio (Depends-on): Update.
108         * modules/stdlib (Depends-on): Update.
109         * modules/string (Depends-on): Update.
110         * modules/strings (Depends-on): Update.
111         * modules/sys_ioctl (Depends-on): Update.
112         * modules/sys_select (Depends-on): Update.
113         * modules/sys_socket (Depends-on): Update.
114         * modules/sys_stat (Depends-on): Update.
115         * modules/sys_time (Depends-on): Update.
116         * modules/sys_wait (Depends-on): Update.
117         * modules/termios (Depends-on): Update.
118         * modules/time (Depends-on): Update.
119         * modules/unistd (Depends-on): Update.
120         * modules/wchar (Depends-on): Update.
121         * modules/wctype-h (Depends-on): Update.
122
123         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
124         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
125         (Files, Makefile.am): Update.
126         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
127         * modules/argv-iter (Depends-on): Update.
128         * modules/arpa_inet (Depends-on): Update.
129         * modules/dirent (Depends-on): Update.
130         * modules/fcntl-h (Depends-on): Update.
131         * modules/fnmatch (Depends-on): Update.
132         * modules/getopt-posix (Depends-on): Update.
133         * modules/glob (Depends-on): Update.
134         * modules/iconv-h (Depends-on): Update.
135         * modules/inttypes-incomplete (Depends-on): Update.
136         * modules/locale (Depends-on): Update.
137         * modules/math (Depends-on): Update.
138         * modules/netdb (Depends-on): Update.
139         * modules/search (Depends-on): Update.
140         * modules/signal (Depends-on): Update.
141         * modules/spawn (Depends-on): Update.
142         * modules/stdio (Depends-on): Update.
143         * modules/stdlib (Depends-on): Update.
144         * modules/string (Depends-on): Update.
145         * modules/strings (Depends-on): Update.
146         * modules/sys_socket (Depends-on): Update.
147         * modules/sys_stat (Depends-on): Update.
148         * modules/sys_time (Depends-on): Update.
149         * modules/sys_times (Depends-on): Update.
150         * modules/sys_utsname (Depends-on): Update.
151         * modules/time (Depends-on): Update.
152         * modules/unistd (Depends-on): Update.
153         * modules/wchar (Depends-on): Update.
154         * MODULES.html.sh (Support for building libraries and executables):
155         Update.
156
157 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
158
159         Improvements on _Noreturn and related modules.
160
161         modules/_Exit-tests: test _Noreturn too
162         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
163         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
164         (main): Use them.
165
166         stdnoreturn, stdnoreturn-tests: remove modules
167         They're not needed here and a bit premature for use elsewhere.  See
168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
169         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
170         * tests/test-stdnoreturn.c: Remove files.
171         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
172         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
173         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
174         and using noreturn.
175         * modules/openat, modules/sigpipe-die, modules/xalloc:
176         * modules/xmemdup0, modules/xstrtol:
177         Remove dependency on stdnoreturn.
178
179         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
180         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
181         Reparenthesize to avoid GCC warning.
182         Support Microsoft's syntax.
183         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
184
185         _Noreturn-tests: remove module
186         * modules/_Noreturn-tests: Remove.
187         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
188         * tests/test-_Noreturn.c: Remove.
189         * tests/test-stdnoreturn.c: Merge from the old
190         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
191
192 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
193
194         _Noreturn, stdnoreturn, and related modules.
195
196         * top/maint.mk: Adjust to new noreturn support.
197         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
198         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
199
200         xalloc: use stdnoreturn.h
201         * lib/xalloc.h: Include <stdnoreturn.h>.
202         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
203         * modules/xalloc (Depends-on): Add stdnoreturn.
204
205         xstrtol: use stdnoreturn.h
206         * lib/xstrtol.h: Include <stdnoreturn.h>.
207         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
208         * modules/xstrtol (Depends-on): Add stdnoreturn.
209
210         xmemdup0: use stdnoreturn.h
211         * lib/xmemdup0.h: Include <stdnoreturn.h>.
212         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
213         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
214
215         sigpipe-die: use stdnoreturn.h
216         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
217         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
218         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
219
220         openat: use stdnoreturn.h
221         * lib/openat.h: Include <stdnoreturn.h>.
222         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
223         * modules/openat (Depends-on): Add stdnoreturn.
224
225         * lib/openat-die.c (openat_save_fail): Modernize comment.
226
227         * lib/xalloc-die.c (xalloc_die): Modernize comment.
228
229         * lib/glthread/thread.h: Modernize comment.
230
231         obstack: use _Noreturn
232         * lib/obstack.c (__attribute__): Remove macro.
233         (print_and_abort): Use _Noreturn.
234
235         c-stack: use _Noreturn
236         * lib/c-stack.c (die, overflow_handler, segv_handler):
237         Use _Noreturn rather than __attribute__((noreturn)).
238
239         argmatch-tests, exclude_tests: use _Noreturn
240         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
241         Remove.
242         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
243
244         stdlib: use _Noreturn
245         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
246         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
247         * modules/stdlib (Depends-on): Add _Noreturn.
248         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
249
250         stdnoreturn-tests: new module
251         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
252
253         stdnoreturn: new module
254         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
255         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
256
257         _Noreturn-tests: new module
258         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
259
260         _Noreturn: new module
261         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
262         New section, mentioning it.
263         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
264
265         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
266
267 2011-07-11  Eric Blake  <eblake@redhat.com>
268
269         ffs: new module
270         * modules/ffs: New file.
271         * m4/ffs.m4: Likewise.
272         * lib/ffs.c: Likewise.
273         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
274         * modules/strings (Makefile.am): Substitute witness.
275         (Depends-on): Add c++defs.
276         * lib/strings.in.h (ffs): Declare.
277         * modules/ffs-tests: New test file.
278         * tests/test-ffs.c: Test new module.
279         * MODULES.html.sh (Integer arithmetic functions): Mention it.
280         * doc/posix-functions/ffs.texi (ffs): Likewise.
281
282         regex: avoid compiler warning
283         * lib/regex.c (includes): Include <strings.h>, for use of
284         strcasecmp in regcomp.c.
285         Reported by Joachim Schmitz.
286
287 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
288
289         stdint: respect system's intmax_t if INTMAX_MAX
290         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
291         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
292         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
293         long but int64_t is long long, and where we will clash with the
294         system intmax_t if we override it.  See
295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
296         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
297         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
298         similarly for UINTMAX_C.
299
300 2011-07-08  Bruno Haible  <bruno@clisp.org>
301
302         pthread_sigmask tests: Avoid a compiler warning.
303         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
304         non-zero.
305
306         sigprocmask tests: A better way to avoid a compiler warning.
307         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
308         (main): Complain if system() returns non-zero.
309         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
310
311 2011-07-08  Bruno Haible  <bruno@clisp.org>
312
313         pthread_sigmask: Work around IRIX bug.
314         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
315         bug.
316         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
317         there may be unblocked pending signals.
318         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
319
320 2011-07-08  Bruno Haible  <bruno@clisp.org>
321
322         pthread_sigmask: Work around Cygwin bug.
323         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
324         bug.
325         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
326         the system's pthread_sigmask function.
327         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
328
329 2011-07-08  Bruno Haible  <bruno@clisp.org>
330
331         pthread_sigmask: Work around bug in single-threaded implementation.
332         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
333         FreeBSD, HP-UX, Solaris bug.
334         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
335         * lib/pthread_sigmask.c: Include <stddef.h>.
336         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
337         the system's pthread_sigmask function.
338         * modules/pthread_sigmask (configure.ac): Invoke
339         gl_PREREQ_PTHREAD_SIGMASK.
340         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
341         HP-UX, Solaris.
342
343 2011-07-08  Eric Blake  <eblake@redhat.com>
344
345         test-sigprocmask: avoid compiler warning
346         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
347         * tests/test-sigprocmask.c (main): Use it to silence warning.
348         Reported by Jim Meyering.
349
350         test-snprintf: avoid compiler warning
351         * tests/test-snprintf.c (main): Avoid shadowed declaration.
352         * tests/test-vsnprintf.c (main): Likewise.
353         Reported by Jim Meyering.
354
355 2011-07-08  Bruno Haible  <bruno@clisp.org>
356
357         Tests for module 'pthread_sigmask'.
358         * modules/pthread_sigmask-tests: New file.
359         * tests/test-pthread_sigmask1.c: New file, based on
360         tests/test-sigprocmask.c.
361         * tests/test-pthread_sigmask2.c: New file.
362
363 2011-07-08  Jim Meyering  <meyering@redhat.com>
364
365         test-getopt.h: avoid warning about an unused variable
366         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
367
368 2011-07-07  Jim Meyering  <meyering@redhat.com>
369
370         maint: reduce list of files exempt from sc_prohibit_leading_TABs
371         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
372         now that it no longer contains leading TABs.
373         Remove unused "url=FIXME" statement.
374
375 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
376
377         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
378         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
379         When gl_THREADLIB is not in use, assume that the POSIX sematics
380         are desired.  This is better for Emacs, which uses POSIX semantics
381         on GNUish and/or POSIXish platforms, and does not use threads at
382         all otherwise.
383
384         pthread_sigmask: fix typo when testing for libraries
385         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
386         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
387
388 2011-07-08  Eric Blake  <eblake@redhat.com>
389
390         fts: introduce FTS_NOATIME
391         * lib/fts_.h (FTS_NOATIME): New bit flag.
392         (FTS_OPTIONMASK): Adjust.
393         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
394         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
395
396 2011-07-08  Bruno Haible  <bruno@clisp.org>
397
398         Tests for module 'thread'.
399         * modules/thread-tests: New file.
400         * tests/test-thread_self.c: New file.
401         * tests/test-thread_create.cc: New file.
402
403 2011-07-08  Bruno Haible  <bruno@clisp.org>
404
405         thread: Avoid gcc warnings when using gl_thread_self().
406         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
407         'void *'.
408         (gl_thread_self_pointer): Update.
409
410 2011-07-07  Bruno Haible  <bruno@clisp.org>
411
412         signal-c++-tests: Check declaration of pthread_sigmask.
413         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
414         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
415         $(LIB_PTHREAD_SIGMASK).
416
417 2011-07-07  Bruno Haible  <bruno@clisp.org>
418
419         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
420         * lib/signal.in.h (pthread_sigmask): Override if
421         REPLACE_PTHREAD_SIGMASK is 1.
422         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
423         REPLACE_PTHREAD_SIGMASK.
424         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
425         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
426         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
427         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
428         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
429
430 2011-07-07  Bruno Haible  <bruno@clisp.org>
431
432         pthread_sigmask: Ensure declaration in <signal.h>.
433         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
434         include <pthread.h>.
435         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
436         problem.
437
438 2011-07-07  Bruno Haible  <bruno@clisp.org>
439
440         pthread_sigmask: Document the module.
441         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
442
443 2011-07-07  Bruno Haible  <bruno@clisp.org>
444
445         pthread_sigmask: Follow gnulib conventions.
446         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
447         gl_PTHREAD_SIGMASK.
448         * modules/pthread_sigmask (configure.ac): Update.
449
450 2011-07-07  Bruno Haible  <bruno@clisp.org>
451
452         pthread_sigmask: Make declaration C++ safe.
453         * lib/signal.in.h: In two special conditions, just do an #include_next.
454         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
455         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
456         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
457         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
458         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
459         not REPLACE_PTHREAD_MASK.
460         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
461         not REPLACE_PTHREAD_MASK.
462         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
463
464 2011-07-07  Bruno Haible  <bruno@clisp.org>
465
466         pthread_sigmask: Fix return value.
467         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
468         * lib/pthread_sigmask.c: New file.
469         * modules/pthread_sigmask (Files): Add it.
470         (configure.ac): Invoke AC_LIBOBJ.
471
472 2011-07-07  Eric Blake  <eblake@redhat.com>
473
474         getopt: more portable argv creation
475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
476         const, use char arrays rather than strings.
477         Suggested by Paul Eggert.
478
479 2011-07-07  Bruno Haible  <bruno@clisp.org>
480
481         Tests for module 'sigprocmask'.
482         * modules/sigprocmask-tests: New file.
483         * tests/test-sigprocmask.c: New file.
484
485 2011-07-07  Bruno Haible  <bruno@clisp.org>
486
487         float tests: Tweak.
488         * tests/test-float.c (main): Tweak skip message.
489
490 2011-07-07  Eric Blake  <eblake@redhat.com>
491
492         getopt: avoid compiler warning during configure
493         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
494         assigning string literals to non-const pointer.
495
496         getopt-gnu: avoid crash in glibc getopt
497         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
498         * tests/test-getopt.h (test_getopt): Enhance test.
499         * tests/test-getopt_long.h (test_getopt_long): Likewise.
500         * doc/posix-functions/getopt.texi (getopt): Document it.
501         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
502         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
503         Likewise.
504
505 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
506
507         getopt: handle W; without long options in getopt [BZ #12922]
508         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
509         but no long options are defined, just return 'W'.
510
511 2011-07-07  Bruno Haible  <bruno@clisp.org>
512
513         Avoid literal tabs.
514         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
515         variable containing a tab instead of a literal tab.
516         Reported by Jim Meyering.
517
518 2011-07-07  Bruno Haible  <bruno@clisp.org>
519
520         Comments.
521         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
522
523 2011-07-06  Bruno Haible  <bruno@clisp.org>
524
525         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
526         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
527         <winsock2.h>.
528         (rpl_fd_isset, FD_ISSET): New definitions, copied from
529         lib/sys_socket.in.h.
530         (close, gethostname): Hide declarations from <winsock2.h>.
531         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
532         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
533         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
534         (select): Don't override if gnulib's <sys/select.h> was already
535         included.
536         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
537         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
538         setsockopt, shutdown, select): Tweak indentation.
539
540 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
541
542         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
543         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
544         in an application that does not use the sys_select module.
545
546 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
547
548         poll: do not return 0 on timeout=-1
549         * lib/poll.c: Loop with yield if no events occured
550
551 2011-07-06  Eric Blake  <eblake@redhat.com>
552
553         pthread_sigmask: always replace when not using pthread
554         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
555         replacement when using some threading other than pthread.  Fix
556         logic bug.
557
558 2011-07-06  Bruno Haible  <bruno@clisp.org>
559
560         Comments.
561         * m4/printf.m4: Update comments about mingw.
562
563 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
564
565         sys_select: define sigset_t more portably
566         * lib/sys_select.in.h: Always include <sys/types.h>, since
567         we now need sigset_t and mingw defines it there.
568         Include <signal.h> before split inclusion guard, to avoid
569         mishaps on Solaris, whose <signal.h> eventually includes us.
570         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
571         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
572         which come from ...
573         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
574         gl_CHECK_TYPE_SIGSET_T.
575         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
576         does the real work.
577         * modules/sys_select (Depends-on): Add 'signal'.
578
579         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
580         Suggested by Bruno Haible.
581
582         pselect: Use pthread_sigmask, not sigprocmask.
583         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
584         multithreaded apps better than sigprocmask does.
585         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
586         sigprocmask directly.
587
588 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
589
590         * lib/pselect.c (pselect): Use plain name, without "rpl_".
591         Don't #undef,  since we don't need any underlying pselect.
592         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
593         (Depends-on): Add select.
594         (Link): Add $(LIBSOCKET).
595         These changes suggested by Bruno Haible.
596
597         pselect: document better
598         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
599         * doc/posix-functions/pselect.texi (pselect): Document new module.
600
601         pthread_sigmask: new module
602         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
603         * doc/posix-functions/pthread_sigmask.texi: Document new module.
604         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
605         This is done only as a macro; I don't know how well that'll
606         work for C++.  Move <sys/types.h> include before the include_next,
607         to avoid mishap on Solaris.
608         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
609         * modules/signal (Makefile.am): Substitute the check's results.
610         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
611
612         test-pselect: new module
613         * modules/pselect-tests, tests/test-pselect.c: New files.
614         * tests/test-select.c, tests/test-sys_select-c++.cc:
615         If TEST_PSELECT is defined, test pselect instead of testing select.
616
617         * tests/test-sys_select.c (sigset_t): Test for it, too.
618         Suggested by Bruno Haible.
619
620 2011-07-05  Eric Blake  <eblake@redhat.com>
621
622         snprintf: guarantee %1$d, for libintl
623         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
624         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
625         * doc/posix-functions/snprintf.texi (snprintf): Update.
626         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
627         * tests/test-snprintf.c (main): Enhance test.
628         * tests/test-vsnprintf.c (main): Likewise.
629
630 2011-07-05  Jim Meyering  <meyering@redhat.com>
631
632         maint: exempt stdio-read.c and stdio-write.c from the cppi check
633         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
634         per Bruno's request, to accommodate this idiom (no space after "#")
635         even when the function is inside an #if block:
636         char *
637         gets (char *s)
638         #undef gets
639         {
640           ...
641         }
642
643 2011-07-04  Jim Meyering  <meyering@redhat.com>
644
645         maint: indent with spaces, not TABs, and add a rule to check this
646         * tests/test-userspec.c: Indent with spaces, not TABs.
647         * tests/test-argp.c: Likewise.
648         * tests/test-c-stack2.sh: Likewise.
649         * tests/test-parse-duration.sh: Likewise
650         * m4/strtod.m4: Likewise.
651         * m4/alloca.m4: Likewise.
652         * m4/pselect.m4: Likewise.
653         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
654
655 2011-07-03  Jim Meyering  <meyering@redhat.com>
656
657         maint.mk: correct omissions in prohibit_argmatch_without_use check
658         This rule would mistakenly report that argmatch.h is included without
659         use even when both the argmatch and invalid_arg macro were used.
660         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
661         of argmatch and invalid_arg.
662
663 2011-07-03  Bruno Haible  <bruno@clisp.org>
664
665         Comments about EINTR.
666         * lib/safe-read.h: Explain the purpose of this module.
667         * lib/safe-write.h: Likewise.
668         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
669         module.
670         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
671         module.
672         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
673
674 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
675
676         xnanosleep: Rewrite to use new dtotimespec module.
677         It has the conversion code that used to be in xnanosleep.
678         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
679         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
680         (TIME_T_MAX): Remove.
681         (xnanosleep): Rewrite in terms of dtotimespec.
682         * modules/xnanosleep (Depends-on): Add dtotimespec.
683         Remove intprops, stdbool.
684
685         timespec-add, timespec-sub: new modules
686         * lib/timespec.h (timespec_add, timespec_sub): New decls.
687         * lib/timespec-add.c, lib/timespec-sub.c:
688         * modules/timespec-add, modules/timespec-sub: New files.
689
690         dtotimespec: new module
691         * lib/timespec.h (dtotimespec): New decl.
692         * lib/dtotimespec.c, modules/dtotimespec: New files.
693
694         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
695
696         pselect: new module
697         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
698         (pselect): New decls.
699         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
700         since the standard pselect decl uses 'restrict'.
701         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
702         HAVE_PSELECT, REPLACE_PSELECT.
703         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
704         HAVE_PSELECT, REPLACE_PSELECT.
705         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
706
707         sys_select: don't depend on sys_socket
708         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
710         This fix works on GNU and GNU-like platforms, but has not been tested
711         on native Windows.
712         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
713         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
714         gl_HEADER_SYS_SOCKET.
715         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
716         gl_PREREQ_SYS_H_WINSOCK2.
717
718 2011-06-29  Eric Blake  <eblake@redhat.com>
719
720         pipe2: fix C89 compile problem
721         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
722         Reported by Bruno Haible.
723
724         pipe, pipe2: don't corrupt fd on error
725         * lib/pipe.c (pipe): Leave fd unchanged on error.
726         * lib/pipe2.c (pipe2): Likewise.
727         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
728         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
729
730 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
731
732         mmap-anon: do not use regular expressions inadvertently
733         * m4/mmap-anon.m4: Remove trailing period from strings sought
734         in the output.
735
736 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
737
738         nanosleep: fix integer overflow problem
739         * lib/nanosleep.c (my_usleep): Don't assume signed integer
740         arithmetic wraps around on overflow.
741
742         nanosleep: simplify carrying
743         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
744         first call to the underyling nanosleep, not for the last one.
745         This doesn't fix any bugs, but it simplifies the computation of
746         the remaining delay.  Found while auditing integer overflow issues.
747
748         dup2: remove test for existence of fcntl
749         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
750         "#if HAVE_FCNTL", in the configure-time test program.
751         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
752         and therefore speeds up "configure" a bit.  Found while
753         adding the dup2 module to Emacs.
754
755 2011-06-24  Eric Blake  <eblake@redhat.com>
756
757         maint.mk: enhance useless header checks
758         * top/maint.mk (_sc_header_without_use): Check both include
759         styles.
760         (sc_prohibit_assert_without_use)
761         (sc_prohibit_close_stream_without_use)
762         (sc_prohibit_getopt_without_use)
763         (sc_prohibit_quotearg_without_use)
764         (sc_prohibit_quote_without_use)
765         (sc_prohibit_long_options_without_use)
766         (sc_prohibit_inttostr_without_use)
767         (sc_prohibit_ignore_value_without_use)
768         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
769         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
770         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
771         (sc_prohibit_hash_pjw_without_use)
772         (sc_prohibit_safe_read_without_use)
773         (sc_prohibit_argmatch_without_use)
774         (sc_prohibit_canonicalize_without_use)
775         (sc_prohibit_root_dev_ino_without_use)
776         (sc_prohibit_openat_without_use)
777         (sc_prohibit_c_ctype_without_use)
778         (sc_prohibit_signal_without_use)
779         (sc_prohibit_stdio--_without_use)
780         (sc_prohibit_stdio-safer_without_use)
781         (sc_prohibit_strings_without_use)
782         (sc_prohibit_intprops_without_use)
783         (sc_prohibit_stddef_without_use)
784         (sc_prohibit_xfreopen_without_use): Update clients.
785
786 2011-06-24  Jim Meyering  <meyering@redhat.com>
787
788         syntax-check: keep one maint.mk rule in sync with its header
789         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
790         of the bug Eric has just fixed, with today's commit 25e4c2ec.
791         I prefer to avoid temporary files here, so use <(...), but that
792         is not supported by /bin/sh, so...
793         (SHELL): Define to /bin/bash.
794
795 2011-06-24  Eric Blake  <eblake@redhat.com>
796
797         maint.mk: update sc_prohibit_intprops_without_use
798         * top/maint.mk (_intprops_names): Match recent changes.
799
800 2011-06-24  Bruno Haible  <bruno@clisp.org>
801
802         strerror-override: No-op tweak.
803         * lib/strerror-override.h (strerror_override): Reorder conditions,
804         for consistency with lib/strerror-override.c.
805
806 2011-06-23  Eric Blake  <eblake@redhat.com>
807
808         maint.mk: test further PATH_MAX issues
809         * top/maint.mk (sc_prohibit_path_max_array): Rename...
810         (sc_prohibit_path_max_allocation): ...and also test alloca.
811         Suggested by Jim Meyering.
812
813 2011-06-22  Eric Blake  <eblake@redhat.com>
814
815         maint.mk: add syntax-check to avoid char[PATH_MAX]
816         * top/maint.mk (sc_prohibit_path_max_array): New rule.
817
818         stat: be robust to PATH_MAX definition
819         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
820         * modules/stat (Depends-on): Add verify.
821
822         link: work around IRIX bug
823         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
824         * lib/link.c (rpl_link): Work around it.
825         * tests/test-link.h (test_link): Enhance test.
826         * doc/posix-functions/link.texi (link): Document the bug.
827
828         getopt: silence clang warning
829         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
830         dereference.
831         Reported by Gustavo Martin Domato.
832
833 2011-06-22  Jim Meyering  <meyering@redhat.com>
834
835         bootstrap: do not insert a blank line into each .gitignore file
836         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
837
838 2011-06-21  Eric Blake  <eblake@redhat.com>
839
840         perror: test for output mismatch
841         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
842         perror on IRIX.
843
844         strerror_r: fix OpenBSD behavior on out-of-range
845         * lib/strerror_r.c (strerror_r): Always use maximal string.
846         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
847
848         strerror_r: fix OpenBSD behavior on 0
849         * lib/strerror-override.c (strerror_override): Also override 0
850         when needed.
851         * lib/strerror-override.h (strerror_override): Likewise.
852         * lib/strerror.c (strerror): Simplify, now that 0 override is done
853         earlier.
854         * lib/strerror_r.c (strerror_r): Likewise.
855         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
856         behavior...
857         (gl_FUNC_STRERROR_0): ...into new macro.
858         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
859         is overridden.
860         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
861         * modules/strerror-override (Files): Add strerror.m4.
862         (configure.ac): Also provide override for 0 when needed.
863         * doc/posix-functions/strerror.texi (strerror): Document this.
864         * doc/posix-functions/perror.texi (perror): Likewise.
865
866         perror: adjust array size
867         * modules/perror (Depends-on): Add strerror-override.
868         * lib/perror.c (perror): Use it to avoid magic number.
869
870         strerror-override: reduce size
871         * lib/strerror-override.c (strerror_override): Use fewer lines.
872
873 2011-06-20  Bruno Haible  <bruno@clisp.org>
874
875         pathmax: Ensure correct value for PATH_MAX on HP-UX.
876         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
877
878 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
879
880         alloca: port to compilers that can optimize like GCC 4.6.0
881         * lib/alloca.c (find_stack_direction): New signature, taken from
882         Autoconf git.  This works with GCC 4.6.0.  This code should never
883         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
884         be used with other compilers that optimize as well as GCC 4.6.0 does.
885         (alloca): Adjust to new signature.
886         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
887         New macro, which patches Autoconf in a similar way.
888
889         c-stack: stop worrying about stack direction
890         * lib/c-stack.c (find_stack_direction): Remove.
891         (segv_handler): Don't worry about stack direction growth, as it's
892         too much of a pain to configure this correctly, given how compilers
893         are optimizing-away our stack-growth detection code.  Instead, assume
894         that any access to just before or just after the stack is OK.
895         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
896         Don't require AC_FUNC_ALLOCA; no longer needed.
897
898 2011-06-20  Eric Blake  <eblake@redhat.com>
899
900         test-stat: don't allocate PATH_MAX bytes
901         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
902         PATH_MAX-sized buffer.
903         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
904         * modules/stat-tests (Depends-on): Likewise.
905         * tests/test-fstatat.c (includes): Drop pathmax.h.
906         * tests/test-stat.c (includes): Likewise.
907         Reported by Bruno Haible.
908
909 2011-06-20  Bruno Haible  <bruno@clisp.org>
910
911         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
912         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
913         * lib/float.c: New file.
914         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
915         REPLACE_FLOAT_LDBL.
916         * modules/float (Files): Add lib/float.c.
917         (configure.ac): Invoke AC_LIBOBJ.
918         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
919
920 2011-06-20  Bruno Haible  <bruno@clisp.org>
921
922         Tests for module 'float'.
923         * modules/float-tests: New file.
924         * tests/test-float.c: New file.
925
926 2011-06-19  Bruno Haible  <bruno@clisp.org>
927
928         isinf: Coding style.
929         * lib/isinf.c: Use GNU coding style.
930
931 2011-06-19  Bruno Haible  <bruno@clisp.org>
932
933         linkat test: Avoid test failure on AIX 7.1.
934         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
935         * tests/test-link.h (test_link): Likewise.
936
937 2011-06-19  Bruno Haible  <bruno@clisp.org>
938
939         pread test: Avoid test failure on OpenBSD 4.9.
940         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
941
942 2011-06-19  Bruno Haible  <bruno@clisp.org>
943
944         sprintf-posix: Fix test failure on AIX 7.1.
945         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
946         * doc/posix-functions/dprintf.texi: Mention limited precision problem
947         on AIX.
948         * doc/posix-functions/fprintf.texi: Likewise.
949         * doc/posix-functions/printf.texi: Likewise.
950         * doc/posix-functions/snprintf.texi: Likewise.
951         * doc/posix-functions/sprintf.texi: Likewise.
952         * doc/posix-functions/vdprintf.texi: Likewise.
953         * doc/posix-functions/vfprintf.texi: Likewise.
954         * doc/posix-functions/vprintf.texi: Likewise.
955         * doc/posix-functions/vsnprintf.texi: Likewise.
956         * doc/posix-functions/vsprintf.texi: Likewise.
957
958 2011-06-19  Bruno Haible  <bruno@clisp.org>
959
960         roundl-ieee: Fix test failure on AIX 7.1.
961         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
962         * doc/posix-functions/roundl.texi: Mention problem with negative
963         arguments.
964
965 2011-06-19  Bruno Haible  <bruno@clisp.org>
966
967         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
968         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
969         * doc/posix-functions/round.texi: Mention problem with negative
970         arguments.
971         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
972
973 2011-06-19  Bruno Haible  <bruno@clisp.org>
974
975         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
976         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
977         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
978         * doc/posix-functions/roundf.texi: Mention problem with negative
979         arguments.
980         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
981
982 2011-06-19  Bruno Haible  <bruno@clisp.org>
983
984         ceilf-ieee: Work around bug on MacOS X 10.5.
985         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
986
987         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
988         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
989         IEEE compliant, avoid compiler optimizations.
990         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
991         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
992         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
993         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
994         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
995         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
996         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
997         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
998         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
999         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1000
1001 2011-06-19  Bruno Haible  <bruno@clisp.org>
1002
1003         ceilf-ieee: Work around bug on AIX 7.1.
1004         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
1005         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
1006
1007 2011-06-19  Bruno Haible  <bruno@clisp.org>
1008
1009         ceil-ieee: Work around bug on AIX 7.1.
1010         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
1011         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
1012
1013 2011-06-18  Bruno Haible  <bruno@clisp.org>
1014
1015         fsync test: Avoid test failure on MacOS X and AIX.
1016         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
1017         EINVAL.
1018
1019 2011-06-18  Bruno Haible  <bruno@clisp.org>
1020
1021         openat, fdopendir tests: Fix link errors.
1022         * modules/openat-tests (Depends-on): Add progname.
1023         * modules/fdopendir-tests (Depends-on): Likewise.
1024         * tests/test-fchownat.c: Include progname.h.
1025         (main): Call set_program_name.
1026         * tests/test-fstatat.c: Include progname.h.
1027         (main): Call set_program_name.
1028         * tests/test-mkdirat.c: Include progname.h.
1029         (main): Call set_program_name.
1030         * tests/test-openat.c: Include progname.h.
1031         (main): Call set_program_name.
1032         * tests/test-unlinkat.c: Include progname.h.
1033         (main): Call set_program_name.
1034         * tests/test-fdopendir.c: Include progname.h.
1035         (main): Call set_program_name.
1036
1037 2011-06-18  Bruno Haible  <bruno@clisp.org>
1038
1039         Doc update.
1040         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
1041         HP-UX.
1042         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
1043
1044 2011-06-18  Bruno Haible  <bruno@clisp.org>
1045
1046         getcwd tests: Avoid compilation error on HP-UX 11.31.
1047         * modules/getcwd-tests (Depends-on): Add pathmax.
1048         * tests/test-getcwd.c: Include pathmax.h.
1049
1050 2011-06-18  Bruno Haible  <bruno@clisp.org>
1051
1052         isfinite, isinf: Fix link error on AIX 6 and 7.
1053         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
1054         needed, also test the macro with a 'float' argument.
1055         * m4/isinf.m4 (gl_ISINF): Likewise.
1056
1057 2011-06-18  Bruno Haible  <bruno@clisp.org>
1058
1059         getloadavg: Don't clobber LIBS. Regression from previous commit.
1060         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
1061         AC_CHECK_LIB from here...
1062         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
1063         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
1064         gl_func_getloadavg_done.
1065         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1066
1067 2011-06-18  Bruno Haible  <bruno@clisp.org>
1068
1069         clean-temp: Improve documentation.
1070         * lib/clean-temp.h: Explain better how to use this module.
1071         Reported by John Darrington <john@darrington.wattle.id.au>.
1072
1073 2011-06-17  Bruno Haible  <bruno@clisp.org>
1074
1075         pread, pwrite: Avoid cc warning on AIX.
1076         * lib/unistd.in.h (pread): Undefine before defining as a macro.
1077         (pwrite): Likewise.
1078
1079 2011-06-17  Bruno Haible  <bruno@clisp.org>
1080
1081         spawn-pipe tests: Fix link error.
1082         * tests/test-spawn-pipe-child.c: Undefine fprintf.
1083         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1084
1085 2011-06-17  Bruno Haible  <bruno@clisp.org>
1086
1087         Tests: Remove unnecessary dependency.
1088         * modules/canonicalize-tests (Depends-on): Remove progname.
1089         * modules/chown-tests (Depends-on): Likewise.
1090         * modules/dirname-tests (Depends-on): Likewise.
1091         * modules/fdopendir-tests (Depends-on): Likewise.
1092         * modules/fdutimensat-tests (Depends-on): Likewise.
1093         * modules/hash-tests (Depends-on): Likewise.
1094         * modules/lchown-tests (Depends-on): Likewise.
1095         * modules/linkat-tests (Depends-on): Likewise.
1096         * modules/renameat-tests (Depends-on): Likewise.
1097         * modules/spawn-pipe-tests (Depends-on): Likewise.
1098         * modules/utimensat-tests (Depends-on): Likewise.
1099
1100 2011-06-17  Bruno Haible  <bruno@clisp.org>
1101
1102         spawn-pipe tests: Fix link error.
1103         * tests/test-spawn-pipe-child.c: Undefine fflush.
1104
1105 2011-06-17  Bruno Haible  <bruno@clisp.org>
1106
1107         Fix tests link errors.
1108         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
1109         * modules/chown-tests (Makefile.am): Don't link test-chown with
1110         LIBINTL.
1111         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
1112         LIBINTL.
1113         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
1114         LIBINTL.
1115         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
1116         LIBINTL.
1117
1118 2011-06-16  Bruno Haible  <bruno@clisp.org>
1119
1120         crypto/gc-sha1: Fix recent regression.
1121         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
1122         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
1123
1124         crypto/gc-md5: Fix recent regression.
1125         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
1126
1127         crypto/gc-md4: Fix recent regression.
1128         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
1129         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
1130
1131         crypto/gc-arctwo: Fix recent regression.
1132         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
1133         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
1134
1135         crypto/gc-rijndael: Fix recent regression.
1136         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
1137         (configure.ac): Invoke AC_LIBOBJ here.
1138         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
1139         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1140
1141         crypto/gc-hmac-sha1: Fix recent regression.
1142         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
1143         (configure.ac): Invoke AC_LIBOBJ here.
1144         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
1145         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1146
1147         crypto/gc-hmac-md5: Fix recent regression.
1148         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
1149         (configure.ac): Invoke AC_LIBOBJ here.
1150         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
1151         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1152
1153         crypto/gc-des: Fix recent regression.
1154         * modules/crypto/gc-des (Files): Remove m4/des.m4.
1155         (configure.ac): Invoke AC_LIBOBJ here.
1156         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
1157         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1158
1159         crypto/gc-arcfour: Fix recent regression.
1160         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
1161         (configure.ac): Invoke AC_LIBOBJ here.
1162         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
1163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1164
1165 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1166
1167         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
1168         After the 2011-05-21 change, this macro requires
1169         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
1170         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1171
1172 2011-06-16  Bruno Haible  <bruno@clisp.org>
1173
1174         fprintftime: Move AC_LIBOBJ invocations to module description.
1175         * m4/fprintftime.m4: Remove file.
1176         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
1177         (configure.ac): Remove gl_FPRINTFTIME call.
1178         (Makefile.am): Augment lib_SOURCES.
1179         Reported by Jim Meyering.
1180
1181 2011-06-16  Bruno Haible  <bruno@clisp.org>
1182
1183         tmpfile-safer: Finish 2011-05-23 commit.
1184         * m4/stdio-safer.m4: Really remove file.
1185         Reported by Jim Meyering.
1186
1187 2011-06-16  Bruno Haible  <bruno@clisp.org>
1188
1189         syntax-check: Fix typo.
1190         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
1191         printf-posix.m4.
1192         Reported by Jim Meyering.
1193
1194 2011-06-13  Jim Meyering  <meyering@redhat.com>
1195
1196         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
1197         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
1198
1199 2011-05-23  Bruno Haible  <bruno@clisp.org>
1200
1201         yesno: Move AC_LIBOBJ invocations to module description.
1202         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
1203         * modules/yesno (Makefile.am): Augment lib_SOURCES.
1204
1205 2011-05-23  Bruno Haible  <bruno@clisp.org>
1206
1207         xstrtol: Move AC_LIBOBJ invocations to module description.
1208         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1209         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1210
1211 2011-05-23  Bruno Haible  <bruno@clisp.org>
1212
1213         xstrtold: Move AC_LIBOBJ invocations to module description.
1214         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1215         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1216
1217 2011-05-23  Bruno Haible  <bruno@clisp.org>
1218
1219         xstrtod: Move AC_LIBOBJ invocations to module description.
1220         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1221         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1222
1223 2011-05-23  Bruno Haible  <bruno@clisp.org>
1224
1225         xnanosleep: Move AC_LIBOBJ invocations to module description.
1226         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1227         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1228
1229 2011-05-23  Bruno Haible  <bruno@clisp.org>
1230
1231         xgetcwd: Move AC_LIBOBJ invocations to module description.
1232         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1233         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1234
1235 2011-05-23  Bruno Haible  <bruno@clisp.org>
1236
1237         xalloc: Move AC_LIBOBJ invocations to module description.
1238         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1239         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1240
1241 2011-05-23  Bruno Haible  <bruno@clisp.org>
1242
1243         write-any-file: Move AC_LIBOBJ invocations to module description.
1244         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1245         invocation.
1246         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1247
1248 2011-05-23  Bruno Haible  <bruno@clisp.org>
1249
1250         utimens: Move AC_LIBOBJ invocations to module description.
1251         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1252         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1253
1254 2011-05-23  Bruno Haible  <bruno@clisp.org>
1255
1256         utimecmp: Move AC_LIBOBJ invocations to module description.
1257         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1258         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1259
1260 2011-05-23  Bruno Haible  <bruno@clisp.org>
1261
1262         userspec: Move AC_LIBOBJ invocations to module description.
1263         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1264         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1265
1266 2011-05-23  Bruno Haible  <bruno@clisp.org>
1267
1268         unlinkdir: Move AC_LIBOBJ invocations to module description.
1269         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1270         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1271
1272 2011-05-23  Bruno Haible  <bruno@clisp.org>
1273
1274         unistd-safer: Move AC_LIBOBJ invocations to module description.
1275         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1276         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1277
1278 2011-05-23  Bruno Haible  <bruno@clisp.org>
1279
1280         tempname: Move AC_LIBOBJ invocations to module description.
1281         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1282         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1283
1284 2011-05-23  Bruno Haible  <bruno@clisp.org>
1285
1286         strftime: Move AC_LIBOBJ invocations to module description.
1287         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1288         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1289
1290 2011-05-23  Bruno Haible  <bruno@clisp.org>
1291
1292         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1293         * m4/stdlib-safer.m4: Remove file.
1294         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1295         (configure.ac): Remove gl_STDLIB_SAFER call.
1296         (Makefile.am): Augment lib_SOURCES.
1297
1298 2011-05-23  Bruno Haible  <bruno@clisp.org>
1299
1300         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1301         * m4/stdio-safer.m4: Remove file.
1302         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1303         (configure.ac): Remove gl_TMPFILE_SAFER call.
1304         (Makefile.am): Augment lib_SOURCES.
1305
1306 2011-05-23  Bruno Haible  <bruno@clisp.org>
1307
1308         popen-safer: Move AC_LIBOBJ invocations to module description.
1309         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1310         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1311         (configure.ac): Remove gl_POPEN_SAFER call.
1312         (Makefile.am): Augment lib_SOURCES.
1313
1314 2011-05-23  Bruno Haible  <bruno@clisp.org>
1315
1316         freopen-safer: Move AC_LIBOBJ invocations to module description.
1317         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1318         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1319         (configure.ac): Remove gl_FREOPEN_SAFER call.
1320         (Makefile.am): Augment lib_SOURCES.
1321
1322 2011-05-23  Bruno Haible  <bruno@clisp.org>
1323
1324         fopen-safer: Move AC_LIBOBJ invocations to module description.
1325         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1326         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1327         (configure.ac): Remove gl_FOPEN_SAFER call.
1328         (Makefile.am): Augment lib_SOURCES.
1329
1330 2011-05-23  Bruno Haible  <bruno@clisp.org>
1331
1332         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1333         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1334         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1335
1336 2011-05-23  Bruno Haible  <bruno@clisp.org>
1337
1338         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1339         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1340         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1341
1342 2011-05-23  Bruno Haible  <bruno@clisp.org>
1343
1344         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1345         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1346         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1347
1348 2011-05-23  Bruno Haible  <bruno@clisp.org>
1349
1350         settime: Move AC_LIBOBJ invocations to module description.
1351         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1352         * modules/settime (Makefile.am): Augment lib_SOURCES.
1353
1354 2011-05-23  Bruno Haible  <bruno@clisp.org>
1355
1356         savedir: Move AC_LIBOBJ invocations to module description.
1357         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1358         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1359
1360 2011-05-23  Bruno Haible  <bruno@clisp.org>
1361
1362         save-cwd: Move AC_LIBOBJ invocations to module description.
1363         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1364         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1365
1366 2011-05-23  Bruno Haible  <bruno@clisp.org>
1367
1368         same: Move AC_LIBOBJ invocations to module description.
1369         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1370         * modules/same (Makefile.am): Augment lib_SOURCES.
1371
1372 2011-05-23  Bruno Haible  <bruno@clisp.org>
1373
1374         safe-write: Move AC_LIBOBJ invocations to module description.
1375         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1376         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1377         instead of gl_SAFE_WRITE.
1378         (Makefile.am): Augment lib_SOURCES.
1379
1380 2011-05-23  Bruno Haible  <bruno@clisp.org>
1381
1382         safe-read: Move AC_LIBOBJ invocations to module description.
1383         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1384         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1385         of gl_SAFE_READ.
1386         (Makefile.am): Augment lib_SOURCES.
1387
1388 2011-05-23  Bruno Haible  <bruno@clisp.org>
1389
1390         safe-alloc: Move AC_LIBOBJ invocations to module description.
1391         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1392         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1393
1394 2011-05-23  Bruno Haible  <bruno@clisp.org>
1395
1396         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1397         * m4/rijndael.m4: Remove file.
1398         * modules/crypto/rijndael (Files): Remove it.
1399         (configure.ac): Remove gl_RIJNDAEL call.
1400         (Makefile.am): Augment lib_SOURCES.
1401
1402 2011-05-23  Bruno Haible  <bruno@clisp.org>
1403
1404         readtokens: Move AC_LIBOBJ invocations to module description.
1405         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1406         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1407
1408 2011-05-23  Bruno Haible  <bruno@clisp.org>
1409
1410         read-file: Move AC_LIBOBJ invocations to module description.
1411         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1412         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1413         of gl_FUNC_READ_FILE.
1414         (Makefile.am): Augment lib_SOURCES.
1415
1416 2011-05-23  Bruno Haible  <bruno@clisp.org>
1417
1418         quotearg: Move AC_LIBOBJ invocations to module description.
1419         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1420         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1421
1422 2011-05-23  Bruno Haible  <bruno@clisp.org>
1423
1424         quote: Move AC_LIBOBJ invocations to module description.
1425         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1426         * modules/quote (Makefile.am): Augment lib_SOURCES.
1427
1428 2011-05-23  Bruno Haible  <bruno@clisp.org>
1429
1430         posixver: Move AC_LIBOBJ invocations to module description.
1431         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1432         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1433
1434 2011-05-23  Bruno Haible  <bruno@clisp.org>
1435
1436         posixtm: Move AC_LIBOBJ invocations to module description.
1437         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1438         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1439
1440 2011-05-23  Bruno Haible  <bruno@clisp.org>
1441
1442         physmem: Move AC_LIBOBJ invocations to module description.
1443         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1444         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1445
1446 2011-05-23  Bruno Haible  <bruno@clisp.org>
1447
1448         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1449         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1450         invocation.
1451         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1452
1453 2011-05-23  Bruno Haible  <bruno@clisp.org>
1454
1455         mpsort: Move AC_LIBOBJ invocations to module description.
1456         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1457         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1458
1459 2011-05-23  Bruno Haible  <bruno@clisp.org>
1460
1461         modechange: Move AC_LIBOBJ invocations to module description.
1462         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1463         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1464
1465 2011-05-23  Bruno Haible  <bruno@clisp.org>
1466
1467         mkdir-p: Move AC_LIBOBJ invocations to module description.
1468         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1469         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1470
1471 2011-05-23  Bruno Haible  <bruno@clisp.org>
1472
1473         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1474         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1475         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1476
1477 2011-05-23  Bruno Haible  <bruno@clisp.org>
1478
1479         mgetgroups: Move AC_LIBOBJ invocations to module description.
1480         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1481         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1482
1483 2011-05-23  Bruno Haible  <bruno@clisp.org>
1484
1485         memxor: Move AC_LIBOBJ invocations to module description.
1486         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1487         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1488
1489 2011-05-23  Bruno Haible  <bruno@clisp.org>
1490
1491         memcoll: Move AC_LIBOBJ invocations to module description.
1492         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1493         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1494
1495 2011-05-23  Bruno Haible  <bruno@clisp.org>
1496
1497         memcasecmp: Move AC_LIBOBJ invocations to module description.
1498         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1499         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1500
1501 2011-05-23  Bruno Haible  <bruno@clisp.org>
1502
1503         crypto/md5: Move AC_LIBOBJ invocations to module description.
1504         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1505         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1506
1507 2011-05-23  Bruno Haible  <bruno@clisp.org>
1508
1509         crypto/md4: Move AC_LIBOBJ invocations to module description.
1510         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1511         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1512
1513 2011-05-23  Bruno Haible  <bruno@clisp.org>
1514
1515         crypto/md2: Move AC_LIBOBJ invocations to module description.
1516         * m4/md2.m4: Remove file.
1517         * modules/crypto/md2 (Files): Remove it.
1518         (configure.ac): Remove gl_MD2 call.
1519         (Makefile.am): Augment lib_SOURCES.
1520
1521 2011-05-23  Bruno Haible  <bruno@clisp.org>
1522
1523         long-options: Move AC_LIBOBJ invocations to module description.
1524         * m4/long-options.m4: Remove file.
1525         * modules/long-options (Files): Remove it.
1526         (configure.ac): Remove gl_LONG_OPTIONS call.
1527         (Makefile.am): Augment lib_SOURCES.
1528
1529 2011-05-23  Bruno Haible  <bruno@clisp.org>
1530
1531         i-ring: Move AC_LIBOBJ invocations to module description.
1532         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1533         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1534
1535 2011-05-23  Bruno Haible  <bruno@clisp.org>
1536
1537         idcache: Move AC_LIBOBJ invocations to module description.
1538         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1539         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1540
1541 2011-05-23  Bruno Haible  <bruno@clisp.org>
1542
1543         human: Move AC_LIBOBJ invocations to module description.
1544         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1545         * modules/human (Makefile.am): Augment lib_SOURCES.
1546
1547 2011-05-23  Bruno Haible  <bruno@clisp.org>
1548
1549         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1550         * m4/hmac-sha1.m4: Remove file.
1551         * modules/crypto/hmac-sha1 (Files): Remove it.
1552         (configure.ac): Remove gl_HMAC_SHA1 call.
1553         (Makefile.am): Augment lib_SOURCES.
1554
1555 2011-05-23  Bruno Haible  <bruno@clisp.org>
1556
1557         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1558         * m4/hmac-md5.m4: Remove file.
1559         * modules/crypto/hmac-md5 (Files): Remove it.
1560         (configure.ac): Remove gl_HMAC_MD5 call.
1561         (Makefile.am): Augment lib_SOURCES.
1562
1563 2011-05-23  Bruno Haible  <bruno@clisp.org>
1564
1565         hash: Move AC_LIBOBJ invocations to module description.
1566         * m4/hash.m4: Remove file.
1567         * modules/hash (Files): Remove it.
1568         (configure.ac): Remove gl_HASH call.
1569         (Makefile.am): Augment lib_SOURCES.
1570
1571 2011-05-23  Bruno Haible  <bruno@clisp.org>
1572
1573         hard-locale: Move AC_LIBOBJ invocations to module description.
1574         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1575         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1576
1577 2011-05-23  Bruno Haible  <bruno@clisp.org>
1578
1579         getugroups: Move AC_LIBOBJ invocations to module description.
1580         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1581         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1582
1583 2011-05-23  Bruno Haible  <bruno@clisp.org>
1584
1585         gettime: Move AC_LIBOBJ invocations to module description.
1586         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1587         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1588
1589 2011-05-23  Bruno Haible  <bruno@clisp.org>
1590
1591         getndelim2: Move AC_LIBOBJ invocations to module description.
1592         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1593         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1594
1595 2011-05-23  Bruno Haible  <bruno@clisp.org>
1596
1597         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1598         * m4/gc-pbkdf2-sha1.m4: Remove file.
1599         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1600         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1601         (Makefile.am): Augment lib_SOURCES.
1602
1603 2011-05-23  Bruno Haible  <bruno@clisp.org>
1604
1605         fts: Move AC_LIBOBJ invocations to module description.
1606         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1607         * modules/fts (configure.ac): ... to here.
1608
1609 2011-05-23  Bruno Haible  <bruno@clisp.org>
1610
1611         file-type: Move AC_LIBOBJ invocations to module description.
1612         * m4/file-type.m4: Remove file.
1613         * modules/file-type (Files): Remove it.
1614         (configure.ac): Remove gl_FILE_TYPE call.
1615         (Makefile.am): Augment lib_SOURCES.
1616
1617 2011-05-23  Bruno Haible  <bruno@clisp.org>
1618
1619         filenamecat*: Respect rules for use of AC_LIBOBJ.
1620         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1621         Remove AC_LIBOBJ invocation.
1622         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1623         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1624
1625 2011-05-23  Bruno Haible  <bruno@clisp.org>
1626
1627         filemode: Move AC_LIBOBJ invocations to module description.
1628         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1629         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1630
1631 2011-05-23  Bruno Haible  <bruno@clisp.org>
1632
1633         openat-safer: Move AC_LIBOBJ invocations to module description.
1634         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1635         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1636
1637 2011-05-23  Bruno Haible  <bruno@clisp.org>
1638
1639         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1640         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1641         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1642
1643 2011-05-23  Bruno Haible  <bruno@clisp.org>
1644
1645         exclude: Move AC_LIBOBJ invocations to module description.
1646         * m4/exclude.m4: Remove file.
1647         * modules/exclude (Files): Remove it.
1648         (configure.ac): Remove gl_EXCLUDE call.
1649         (Makefile.am): Augment lib_SOURCES.
1650
1651 2011-05-23  Bruno Haible  <bruno@clisp.org>
1652
1653         dirname*: Respect rules for use of AC_LIBOBJ.
1654         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1655         invocations.
1656         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1657         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1658
1659 2011-05-23  Bruno Haible  <bruno@clisp.org>
1660
1661         dirent-safer: Move AC_LIBOBJ invocations to module description.
1662         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1663         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1664
1665 2011-05-23  Bruno Haible  <bruno@clisp.org>
1666
1667         crypto/des: Move AC_LIBOBJ invocations to module description.
1668         * m4/des.m4: Remove file.
1669         * modules/crypto/des (Files): Remove it.
1670         (configure.ac): Remove gl_DES call.
1671         (Makefile.am): Augment lib_SOURCES.
1672
1673 2011-05-23  Bruno Haible  <bruno@clisp.org>
1674
1675         cycle-check: Move AC_LIBOBJ invocations to module description.
1676         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1677         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1678
1679 2011-05-23  Bruno Haible  <bruno@clisp.org>
1680
1681         c-strtold: Move AC_LIBOBJ invocations to module description.
1682         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1683         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1684
1685 2011-05-23  Bruno Haible  <bruno@clisp.org>
1686
1687         c-strtod: Move AC_LIBOBJ invocations to module description.
1688         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1689         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1690
1691 2011-05-23  Bruno Haible  <bruno@clisp.org>
1692
1693         crc: Move AC_LIBOBJ invocations to module description.
1694         * m4/crc.m4: Remove file.
1695         * modules/crc (Files): Remove it.
1696         (configure.ac): Remove gl_CRC call.
1697         (Makefile.am): Augment lib_SOURCES.
1698
1699 2011-05-23  Bruno Haible  <bruno@clisp.org>
1700
1701         close-stream: Move AC_LIBOBJ invocations to module description.
1702         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1703         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1704
1705 2011-05-23  Bruno Haible  <bruno@clisp.org>
1706
1707         closeout: Move AC_LIBOBJ invocations to module description.
1708         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1709         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1710
1711 2011-05-23  Bruno Haible  <bruno@clisp.org>
1712
1713         closein: Move AC_LIBOBJ invocations to module description.
1714         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1715         * modules/closein (Makefile.am): Augment lib_SOURCES.
1716
1717 2011-05-23  Bruno Haible  <bruno@clisp.org>
1718
1719         cloexec: Move AC_LIBOBJ invocations to module description.
1720         * m4/cloexec.m4: Remove file.
1721         * modules/cloexec (Files): Remove it.
1722         (configure.ac): Remove gl_CLOEXEC call.
1723         (Makefile.am): Augment lib_SOURCES.
1724
1725 2011-05-23  Bruno Haible  <bruno@clisp.org>
1726
1727         check-version: Move AC_LIBOBJ invocations to module description.
1728         * m4/check-version.m4: Remove file.
1729         * modules/check-version (Files): Remove it.
1730         (configure.ac): Remove gl_CHECK_VERSION call.
1731         (Makefile.am): Augment lib_SOURCES.
1732
1733 2011-05-23  Bruno Haible  <bruno@clisp.org>
1734
1735         chdir-safer: Move AC_LIBOBJ invocations to module description.
1736         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1737         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1738
1739 2011-05-23  Bruno Haible  <bruno@clisp.org>
1740
1741         canonicalize: Move AC_LIBOBJ invocations to module description.
1742         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1743         AC_LIBOBJ invocation.
1744         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1745
1746 2011-05-23  Bruno Haible  <bruno@clisp.org>
1747
1748         canon-host: Move AC_LIBOBJ invocations to module description.
1749         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1750         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1751         instead of gl_CANON_HOST.
1752         (Makefile.am): Augment lib_SOURCES.
1753
1754 2011-05-23  Bruno Haible  <bruno@clisp.org>
1755
1756         backupfile: Move AC_LIBOBJ invocations to module description.
1757         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1758         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1759
1760 2011-05-23  Bruno Haible  <bruno@clisp.org>
1761
1762         argmatch: Move AC_LIBOBJ invocations to module description.
1763         * m4/argmatch.m4: Remove file.
1764         * modules/argmatch (Files): Remove it.
1765         (configure.ac): Remove gl_ARGMATCH call.
1766         (Makefile.am): Augment lib_SOURCES.
1767
1768 2011-05-23  Bruno Haible  <bruno@clisp.org>
1769
1770         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1771         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1772         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1773
1774 2011-05-23  Bruno Haible  <bruno@clisp.org>
1775
1776         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1777         * m4/arcfour.m4: Remove file.
1778         * modules/crypto/arcfour (Files): Remove it.
1779         (configure.ac): Remove gl_ARCFOUR call.
1780         (Makefile.am): Augment lib_SOURCES.
1781
1782 2011-05-22  Bruno Haible  <bruno@clisp.org>
1783
1784         write: Move AC_LIBOBJ invocations to module description.
1785         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
1786         * modules/write (configure.ac): ... to here.
1787
1788 2011-05-22  Bruno Haible  <bruno@clisp.org>
1789
1790         wmemset: Move AC_LIBOBJ invocations to module description.
1791         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
1792         here...
1793         * modules/wmemset (configure.ac): ... to here.
1794
1795 2011-05-22  Bruno Haible  <bruno@clisp.org>
1796
1797         wmemmove: Move AC_LIBOBJ invocations to module description.
1798         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
1799         here...
1800         * modules/wmemmove (configure.ac): ... to here.
1801
1802 2011-05-22  Bruno Haible  <bruno@clisp.org>
1803
1804         wmemcpy: Move AC_LIBOBJ invocations to module description.
1805         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
1806         here...
1807         * modules/wmemcpy (configure.ac): ... to here.
1808
1809 2011-05-22  Bruno Haible  <bruno@clisp.org>
1810
1811         wmemcmp: Move AC_LIBOBJ invocations to module description.
1812         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
1813         here...
1814         * modules/wmemcmp (configure.ac): ... to here.
1815
1816 2011-05-22  Bruno Haible  <bruno@clisp.org>
1817
1818         wmemchr: Move AC_LIBOBJ invocations to module description.
1819         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
1820         here...
1821         * modules/wmemchr (configure.ac): ... to here.
1822
1823 2011-05-22  Bruno Haible  <bruno@clisp.org>
1824
1825         wcswidth: Move AC_LIBOBJ invocations to module description.
1826         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
1827         here...
1828         * modules/wcswidth (configure.ac): ... to here.
1829
1830 2011-05-22  Bruno Haible  <bruno@clisp.org>
1831
1832         wcwidth: Respect rules for use of AC_LIBOBJ.
1833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
1834         invocation from here...
1835         * modules/wcwidth (configure.ac): ... to here.
1836         (Depends-on): Update conditions.
1837
1838 2011-05-22  Bruno Haible  <bruno@clisp.org>
1839
1840         wctype: Move AC_LIBOBJ invocations to module description.
1841         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
1842         invocation from here...
1843         * modules/wctype (configure.ac): ... to here.
1844         (Depends-on): Update conditions.
1845
1846 2011-05-22  Bruno Haible  <bruno@clisp.org>
1847
1848         wctrans: Move AC_LIBOBJ invocations to module description.
1849         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
1850         invocation from here...
1851         * modules/wctrans (configure.ac): ... to here.
1852
1853 2011-05-22  Bruno Haible  <bruno@clisp.org>
1854
1855         wctomb: Move AC_LIBOBJ invocations to module description.
1856         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
1857         invocations from here...
1858         * modules/wctomb (configure.ac): ... to here.
1859
1860 2011-05-22  Bruno Haible  <bruno@clisp.org>
1861
1862         wctob: Move AC_LIBOBJ invocations to module description.
1863         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
1864         gl_PREREQ_WCTOB invocations from here...
1865         * modules/wctob (configure.ac): ... to here.
1866         (Depends-on): Update conditions.
1867
1868 2011-05-22  Bruno Haible  <bruno@clisp.org>
1869
1870         wcsxfrm: Move AC_LIBOBJ invocations to module description.
1871         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
1872         here...
1873         * modules/wcsxfrm (configure.ac): ... to here.
1874
1875 2011-05-22  Bruno Haible  <bruno@clisp.org>
1876
1877         wcstok: Move AC_LIBOBJ invocations to module description.
1878         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
1879         * modules/wcstok (configure.ac): ... to here.
1880
1881 2011-05-22  Bruno Haible  <bruno@clisp.org>
1882
1883         wcsstr: Move AC_LIBOBJ invocations to module description.
1884         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
1885         * modules/wcsstr (configure.ac): ... to here.
1886
1887 2011-05-22  Bruno Haible  <bruno@clisp.org>
1888
1889         wcsspn: Move AC_LIBOBJ invocations to module description.
1890         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
1891         * modules/wcsspn (configure.ac): ... to here.
1892
1893 2011-05-22  Bruno Haible  <bruno@clisp.org>
1894
1895         wcsrtombs: Move AC_LIBOBJ invocations to module description.
1896         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
1897         gl_PREREQ_WCSRTOMBS invocations from here...
1898         * modules/wcsrtombs (configure.ac): ... to here.
1899
1900 2011-05-22  Bruno Haible  <bruno@clisp.org>
1901
1902         wcsrchr: Move AC_LIBOBJ invocations to module description.
1903         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
1904         here...
1905         * modules/wcsrchr (configure.ac): ... to here.
1906
1907 2011-05-22  Bruno Haible  <bruno@clisp.org>
1908
1909         wcspbrk: Move AC_LIBOBJ invocations to module description.
1910         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
1911         here...
1912         * modules/wcspbrk (configure.ac): ... to here.
1913
1914 2011-05-22  Bruno Haible  <bruno@clisp.org>
1915
1916         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
1917         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
1918         gl_PREREQ_WCSNRTOMBS invocations from here...
1919         * modules/wcsnrtombs (configure.ac): ... to here.
1920
1921 2011-05-22  Bruno Haible  <bruno@clisp.org>
1922
1923         wcsnlen: Move AC_LIBOBJ invocations to module description.
1924         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
1925         here...
1926         * modules/wcsnlen (configure.ac): ... to here.
1927
1928 2011-05-22  Bruno Haible  <bruno@clisp.org>
1929
1930         wcsncpy: Move AC_LIBOBJ invocations to module description.
1931         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
1932         here...
1933         * modules/wcsncpy (configure.ac): ... to here.
1934
1935 2011-05-22  Bruno Haible  <bruno@clisp.org>
1936
1937         wcsncmp: Move AC_LIBOBJ invocations to module description.
1938         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
1939         here...
1940         * modules/wcsncmp (configure.ac): ... to here.
1941
1942 2011-05-22  Bruno Haible  <bruno@clisp.org>
1943
1944         wcsncat: Move AC_LIBOBJ invocations to module description.
1945         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
1946         here...
1947         * modules/wcsncat (configure.ac): ... to here.
1948
1949 2011-05-22  Bruno Haible  <bruno@clisp.org>
1950
1951         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
1952         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
1953         from here...
1954         * modules/wcsncasecmp (configure.ac): ... to here.
1955
1956 2011-05-22  Bruno Haible  <bruno@clisp.org>
1957
1958         wcslen: Move AC_LIBOBJ invocations to module description.
1959         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
1960         * modules/wcslen (configure.ac): ... to here.
1961
1962 2011-05-22  Bruno Haible  <bruno@clisp.org>
1963
1964         wcsdup: Move AC_LIBOBJ invocations to module description.
1965         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
1966         * modules/wcsdup (configure.ac): ... to here.
1967
1968 2011-05-22  Bruno Haible  <bruno@clisp.org>
1969
1970         wcscspn: Move AC_LIBOBJ invocations to module description.
1971         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
1972         here...
1973         * modules/wcscspn (configure.ac): ... to here.
1974
1975 2011-05-22  Bruno Haible  <bruno@clisp.org>
1976
1977         wcscpy: Move AC_LIBOBJ invocations to module description.
1978         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
1979         * modules/wcscpy (configure.ac): ... to here.
1980
1981 2011-05-22  Bruno Haible  <bruno@clisp.org>
1982
1983         wcscoll: Move AC_LIBOBJ invocations to module description.
1984         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
1985         here...
1986         * modules/wcscoll (configure.ac): ... to here.
1987
1988 2011-05-22  Bruno Haible  <bruno@clisp.org>
1989
1990         wcscmp: Move AC_LIBOBJ invocations to module description.
1991         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
1992         * modules/wcscmp (configure.ac): ... to here.
1993
1994 2011-05-22  Bruno Haible  <bruno@clisp.org>
1995
1996         wcschr: Move AC_LIBOBJ invocations to module description.
1997         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
1998         * modules/wcschr (configure.ac): ... to here.
1999
2000 2011-05-22  Bruno Haible  <bruno@clisp.org>
2001
2002         wcscat: Move AC_LIBOBJ invocations to module description.
2003         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
2004         * modules/wcscat (configure.ac): ... to here.
2005
2006 2011-05-22  Bruno Haible  <bruno@clisp.org>
2007
2008         wcscasecmp: Move AC_LIBOBJ invocations to module description.
2009         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
2010         here...
2011         * modules/wcscasecmp (configure.ac): ... to here.
2012
2013 2011-05-22  Bruno Haible  <bruno@clisp.org>
2014
2015         wcrtomb: Move AC_LIBOBJ invocations to module description.
2016         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
2017         invocations from here...
2018         * modules/wcrtomb (configure.ac): ... to here.
2019
2020 2011-05-22  Bruno Haible  <bruno@clisp.org>
2021
2022         wcpncpy: Move AC_LIBOBJ invocations to module description.
2023         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2024         here...
2025         * modules/wcpncpy (configure.ac): ... to here.
2026
2027 2011-05-22  Bruno Haible  <bruno@clisp.org>
2028
2029         wcpcpy: Move AC_LIBOBJ invocations to module description.
2030         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
2031         * modules/wcpcpy (configure.ac): ... to here.
2032
2033 2011-05-22  Bruno Haible  <bruno@clisp.org>
2034
2035         waitpid: Move AC_LIBOBJ invocations to module description.
2036         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
2037         invocation from here...
2038         * modules/waitpid (configure.ac): ... to here.
2039
2040 2011-05-22  Bruno Haible  <bruno@clisp.org>
2041
2042         utimensat: Move AC_LIBOBJ invocations to module description.
2043         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
2044         here...
2045         * modules/utimensat (configure.ac): ... to here.
2046
2047 2011-05-22  Bruno Haible  <bruno@clisp.org>
2048
2049         usleep: Move AC_LIBOBJ invocations to module description.
2050         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
2051         here...
2052         * modules/usleep (configure.ac): ... to here.
2053
2054 2011-05-22  Bruno Haible  <bruno@clisp.org>
2055
2056         unlockpt: Move AC_LIBOBJ invocations to module description.
2057         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
2058         gl_PREREQ_UNLOCKPT invocations from here...
2059         * modules/unlockpt (configure.ac): ... to here.
2060
2061 2011-05-22  Bruno Haible  <bruno@clisp.org>
2062
2063         unlink: Respect rules for use of AC_LIBOBJ.
2064         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
2065         * modules/unlink (configure.ac): ... to here.
2066
2067 2011-05-22  Bruno Haible  <bruno@clisp.org>
2068
2069         uname: Move AC_LIBOBJ invocations to module description.
2070         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
2071         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
2072         here...
2073         * modules/uname (configure.ac): ... to here.
2074
2075 2011-05-22  Bruno Haible  <bruno@clisp.org>
2076
2077         ttyname_r: Move AC_LIBOBJ invocations to module description.
2078         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
2079         gl_PREREQ_TTYNAME_R invocations from here...
2080         * modules/ttyname_r (configure.ac): ... to here.
2081
2082 2011-05-22  Bruno Haible  <bruno@clisp.org>
2083
2084         tsearch: Move AC_LIBOBJ invocations to module description.
2085         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
2086         invocations from here...
2087         * modules/tsearch (configure.ac): ... to here.
2088
2089 2011-05-22  Bruno Haible  <bruno@clisp.org>
2090
2091         towctrans: Move AC_LIBOBJ invocations to module description.
2092         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
2093         AC_LIBOBJ invocation from here...
2094         * modules/towctrans (configure.ac): ... to here.
2095
2096 2011-05-22  Bruno Haible  <bruno@clisp.org>
2097
2098         tmpfile: Move AC_LIBOBJ invocations to module description.
2099         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
2100         invocations from here...
2101         * modules/tmpfile (configure.ac): ... to here.
2102
2103 2011-05-22  Bruno Haible  <bruno@clisp.org>
2104
2105         times: Move AC_LIBOBJ invocations to module description.
2106         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
2107         * modules/times (configure.ac): ... to here.
2108
2109 2011-05-22  Bruno Haible  <bruno@clisp.org>
2110
2111         time_r: Move AC_LIBOBJ invocations to module description.
2112         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
2113         invocations from here...
2114         * modules/time_r (configure.ac): ... to here.
2115
2116 2011-05-22  Bruno Haible  <bruno@clisp.org>
2117
2118         timegm: Move AC_LIBOBJ invocations to module description.
2119         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
2120         invocations from here...
2121         * modules/timegm (configure.ac): ... to here.
2122
2123 2011-05-22  Bruno Haible  <bruno@clisp.org>
2124
2125         tcgetsid: Move AC_LIBOBJ invocations to module description.
2126         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
2127         and gl_PREREQ_TCGETSID invocations from here...
2128         * modules/tcgetsid (configure.ac): ... to here.
2129         (Depends-on): Update conditions.
2130
2131 2011-05-22  Bruno Haible  <bruno@clisp.org>
2132
2133         symlinkat: Move AC_LIBOBJ invocations to module description.
2134         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
2135         here...
2136         * modules/symlinkat (configure.ac): ... to here.
2137
2138 2011-05-22  Bruno Haible  <bruno@clisp.org>
2139
2140         symlink: Move AC_LIBOBJ invocations to module description.
2141         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
2142         here...
2143         * modules/symlink (configure.ac): ... to here.
2144
2145 2011-05-22  Bruno Haible  <bruno@clisp.org>
2146
2147         strverscmp: Move AC_LIBOBJ invocations to module description.
2148         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
2149         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
2150         from here...
2151         * modules/strverscmp (configure.ac): ... to here.
2152
2153 2011-05-22  Bruno Haible  <bruno@clisp.org>
2154
2155         strtok_r: Move AC_LIBOBJ invocations to module description.
2156         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
2157         and gl_PREREQ_STRTOK_R invocations from here...
2158         * modules/strtok_r (configure.ac): ... to here.
2159         (Depends-on): Update conditions.
2160
2161 2011-05-22  Bruno Haible  <bruno@clisp.org>
2162
2163         strtoumax: Move AC_LIBOBJ invocations to module description.
2164         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
2165         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
2166         from here...
2167         * modules/strtoumax (configure.ac): ... to here.
2168
2169 2011-05-22  Bruno Haible  <bruno@clisp.org>
2170
2171         strtoimax: Move AC_LIBOBJ invocations to module description.
2172         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
2173         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
2174         from here...
2175         * modules/strtoimax (configure.ac): ... to here.
2176
2177 2011-05-22  Bruno Haible  <bruno@clisp.org>
2178
2179         strtoull: Move AC_LIBOBJ invocations to module description.
2180         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
2181         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
2182         from here...
2183         * modules/strtoull (configure.ac): ... to here.
2184
2185 2011-05-22  Bruno Haible  <bruno@clisp.org>
2186
2187         strtoll: Move AC_LIBOBJ invocations to module description.
2188         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
2189         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
2190         here...
2191         * modules/strtoll (configure.ac): ... to here.
2192
2193 2011-05-22  Bruno Haible  <bruno@clisp.org>
2194
2195         strtoul: Move AC_LIBOBJ invocations to module description.
2196         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
2197         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2198         * modules/strtoul (configure.ac): ... to here.
2199
2200 2011-05-22  Bruno Haible  <bruno@clisp.org>
2201
2202         strtol: Move AC_LIBOBJ invocations to module description.
2203         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
2204         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2205         * modules/strtol (configure.ac): ... to here.
2206
2207 2011-05-22  Bruno Haible  <bruno@clisp.org>
2208
2209         strtod: Move AC_LIBOBJ invocations to module description.
2210         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2211         invocations from here...
2212         * modules/strtod (configure.ac): ... to here.
2213
2214 2011-05-22  Bruno Haible  <bruno@clisp.org>
2215
2216         strstr*: Move AC_LIBOBJ invocations to module description.
2217         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2218         invocations from here...
2219         * modules/strstr-simple (configure.ac): ... to here.
2220         * modules/strstr (configure.ac): ... and here.
2221
2222 2011-05-22  Bruno Haible  <bruno@clisp.org>
2223
2224         strsignal: Move AC_LIBOBJ invocations to module description.
2225         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2226         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2227         * modules/strsignal (configure.ac): ... to here.
2228         (Depends-on): Update conditions.
2229
2230 2011-05-22  Bruno Haible  <bruno@clisp.org>
2231
2232         strsep: Move AC_LIBOBJ invocations to module description.
2233         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2234         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2235         here...
2236         * modules/strsep (configure.ac): ... to here.
2237
2238 2011-05-22  Bruno Haible  <bruno@clisp.org>
2239
2240         strptime: Move AC_LIBOBJ invocations to module description.
2241         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2242         gl_PREREQ_STRPTIME invocations from here...
2243         * modules/strptime (configure.ac): ... to here.
2244
2245 2011-05-22  Bruno Haible  <bruno@clisp.org>
2246
2247         strpbrk: Move AC_LIBOBJ invocations to module description.
2248         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2249         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2250         here...
2251         * modules/strpbrk (configure.ac): ... to here.
2252
2253 2011-05-22  Bruno Haible  <bruno@clisp.org>
2254
2255         strnlen: Move AC_LIBOBJ invocations to module description.
2256         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2257         invocations from here...
2258         * modules/strnlen (configure.ac): ... to here.
2259
2260 2011-05-22  Bruno Haible  <bruno@clisp.org>
2261
2262         strndup: Move AC_LIBOBJ invocations to module description.
2263         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2264         invocations from here...
2265         * modules/strndup (configure.ac): ... to here.
2266         (Depends-on): Update conditions.
2267
2268 2011-05-22  Bruno Haible  <bruno@clisp.org>
2269
2270         strncat: Move AC_LIBOBJ invocations to module description.
2271         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2272         invocations from here...
2273         * modules/strncat (configure.ac): ... to here.
2274
2275 2011-05-22  Bruno Haible  <bruno@clisp.org>
2276
2277         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2278         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2279         invocations from here...
2280         * modules/strdup (configure.ac): ... to here.
2281         * modules/strdup-posix (configure.ac): ... and here.
2282
2283 2011-05-22  Bruno Haible  <bruno@clisp.org>
2284
2285         strcspn: Move AC_LIBOBJ invocations to module description.
2286         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2287         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2288         here...
2289         * modules/strcspn (configure.ac): ... to here.
2290
2291 2011-05-22  Bruno Haible  <bruno@clisp.org>
2292
2293         strchrnul: Move AC_LIBOBJ invocations to module description.
2294         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2295         gl_PREREQ_STRCHRNUL invocations from here...
2296         * modules/strchrnul (configure.ac): ... to here.
2297
2298 2011-05-22  Bruno Haible  <bruno@clisp.org>
2299
2300         strcasestr*: Move AC_LIBOBJ invocations to module description.
2301         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2302         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2303         * modules/strcasestr-simple (configure.ac): ... to here.
2304         * modules/strcasestr (configure.ac): ... and here.
2305
2306 2011-05-22  Bruno Haible  <bruno@clisp.org>
2307
2308         strcase: Move AC_LIBOBJ invocations to module description.
2309         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2310         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2311         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2312         gl_PREREQ_STRNCASECMP invocations from here...
2313         * modules/strcase (configure.ac): ... to here.
2314
2315 2011-05-22  Bruno Haible  <bruno@clisp.org>
2316
2317         stpncpy: Move AC_LIBOBJ invocations to module description.
2318         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2319         here...
2320         * modules/stpncpy (configure.ac): ... to here.
2321
2322 2011-05-22  Bruno Haible  <bruno@clisp.org>
2323
2324         stpcpy: Move AC_LIBOBJ invocations to module description.
2325         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2326         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2327         here...
2328         * modules/stpcpy (configure.ac): ... to here.
2329
2330 2011-05-21  Bruno Haible  <bruno@clisp.org>
2331
2332         stat: Move AC_LIBOBJ invocations to module description.
2333         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2334         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2335         here...
2336         * modules/stat (configure.ac): ... to here.
2337
2338 2011-05-21  Bruno Haible  <bruno@clisp.org>
2339
2340         sleep: Move AC_LIBOBJ invocations to module description.
2341         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2342         * modules/sleep (configure.ac): ... to here.
2343
2344 2011-05-21  Bruno Haible  <bruno@clisp.org>
2345
2346         signbit: Move AC_LIBOBJ invocations to module description.
2347         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2348         * modules/signbit (configure.ac): ... to here.
2349
2350 2011-05-21  Bruno Haible  <bruno@clisp.org>
2351
2352         sigprocmask: Move AC_LIBOBJ invocations to module description.
2353         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2354         gl_PREREQ_SIGPROMASK invocations from here...
2355         * modules/sigprocmask (configure.ac): ... to here.
2356
2357 2011-05-21  Bruno Haible  <bruno@clisp.org>
2358
2359         sigaction: Move AC_LIBOBJ invocations to module description.
2360         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2361         gl_PREREQ_SIGACTION invocations from here...
2362         * modules/sigaction (configure.ac): ... to here.
2363
2364 2011-05-21  Bruno Haible  <bruno@clisp.org>
2365
2366         sig2str: Move AC_LIBOBJ invocations to module description.
2367         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2368         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2369         here...
2370         * modules/sig2str (configure.ac): ... to here.
2371
2372 2011-05-21  Bruno Haible  <bruno@clisp.org>
2373
2374         setlocale: Move AC_LIBOBJ invocations to module description.
2375         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2376         gl_PREREQ_SETLOCALE invocations from here...
2377         * modules/setlocale (configure.ac): ... to here.
2378
2379 2011-05-21  Bruno Haible  <bruno@clisp.org>
2380
2381         unsetenv: Move AC_LIBOBJ invocations to module description.
2382         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2383         and gl_PREREQ_UNSETENV invocations from here...
2384         * modules/unsetenv (configure.ac): ... to here.
2385         (Depends-on): Update.
2386
2387 2011-05-21  Bruno Haible  <bruno@clisp.org>
2388
2389         setenv: Move AC_LIBOBJ invocations to module description.
2390         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2391         here...
2392         * modules/setenv (configure.ac): ... to here.
2393
2394 2011-05-21  Bruno Haible  <bruno@clisp.org>
2395
2396         selinux-h: Move AC_LIBOBJ invocations to module description.
2397         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2398         AC_LIBOBJ invocation from here...
2399         * modules/selinux-h (configure.ac): ... to here.
2400
2401 2011-05-21  Bruno Haible  <bruno@clisp.org>
2402
2403         select: Respect rules for use of AC_LIBOBJ.
2404         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2405         here...
2406         * modules/select (configure.ac): ... to here.
2407
2408 2011-05-21  Bruno Haible  <bruno@clisp.org>
2409
2410         scandir: Move AC_LIBOBJ invocations to module description.
2411         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2412         invocations from here...
2413         * modules/scandir (configure.ac): ... to here.
2414
2415 2011-05-21  Bruno Haible  <bruno@clisp.org>
2416
2417         rpmatch: Move AC_LIBOBJ invocations to module description.
2418         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2419         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2420         here...
2421         * modules/rpmatch (configure.ac): ... to here.
2422
2423 2011-05-21  Bruno Haible  <bruno@clisp.org>
2424
2425         rmdir: Respect rules for use of AC_LIBOBJ.
2426         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2427         * modules/rmdir (configure.ac): ... to here.
2428
2429 2011-05-21  Bruno Haible  <bruno@clisp.org>
2430
2431         renameat: Move AC_LIBOBJ invocations to module description.
2432         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2433         here...
2434         * modules/renameat (configure.ac): ... to here.
2435
2436 2011-05-21  Bruno Haible  <bruno@clisp.org>
2437
2438         rename: Respect rules for use of AC_LIBOBJ.
2439         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2440         here...
2441         * modules/rename (configure.ac): ... to here.
2442
2443 2011-05-21  Bruno Haible  <bruno@clisp.org>
2444
2445         remove: Move AC_LIBOBJ invocations to module description.
2446         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2447         here...
2448         * modules/remove (configure.ac): ... to here.
2449
2450 2011-05-21  Bruno Haible  <bruno@clisp.org>
2451
2452         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2453         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2454         macro.
2455         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2456         * modules/relocatable-lib (configure.ac): ... to here.
2457         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2458         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2459
2460 2011-05-21  Bruno Haible  <bruno@clisp.org>
2461
2462         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2463         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2464         here...
2465         * modules/relocatable-prog (configure.ac): ... to here.
2466
2467 2011-05-21  Bruno Haible  <bruno@clisp.org>
2468
2469         regex: Move AC_LIBOBJ invocations to module description.
2470         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2471         invocations from here...
2472         * modules/regex (configure.ac): ... to here.
2473
2474 2011-05-21  Bruno Haible  <bruno@clisp.org>
2475
2476         realloc-*: Move AC_LIBOBJ invocations to module description.
2477         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2478         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2479         AC_LIBOBJ invocations from here...
2480         * modules/realloc-gnu (configure.ac): ... to here.
2481         * modules/realloc-posix (configure.ac): ... and here.
2482
2483 2011-05-21  Bruno Haible  <bruno@clisp.org>
2484
2485         readutmp: Move AC_LIBOBJ invocations to module description.
2486         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2487         * modules/readutmp (configure.ac): ... to here.
2488
2489 2011-05-21  Bruno Haible  <bruno@clisp.org>
2490
2491         readlinkat: Move AC_LIBOBJ invocations to module description.
2492         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2493         here...
2494         * modules/readlinkat (configure.ac): ... to here.
2495
2496 2011-05-21  Bruno Haible  <bruno@clisp.org>
2497
2498         readlink: Move AC_LIBOBJ invocations to module description.
2499         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2500         gl_PREREQ_READLINK invocations from here...
2501         * modules/readlink (configure.ac): ... to here.
2502
2503 2011-05-21  Bruno Haible  <bruno@clisp.org>
2504
2505         readline: Move AC_LIBOBJ invocations to module description.
2506         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2507         gl_PREREQ_READLINE invocations from here...
2508         * modules/readline (configure.ac): ... to here.
2509
2510 2011-05-21  Bruno Haible  <bruno@clisp.org>
2511
2512         read: Move AC_LIBOBJ invocations to module description.
2513         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2514         * modules/read (configure.ac): ... to here.
2515
2516 2011-05-21  Bruno Haible  <bruno@clisp.org>
2517
2518         rawmemchr: Move AC_LIBOBJ invocations to module description.
2519         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2520         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2521         from here...
2522         * modules/rawmemchr (configure.ac): ... to here.
2523
2524 2011-05-21  Bruno Haible  <bruno@clisp.org>
2525
2526         random_r: Move AC_LIBOBJ invocations to module description.
2527         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2528         gl_PREREQ_RANDOM_R invocations from here...
2529         * modules/random_r (configure.ac): ... to here.
2530
2531 2011-05-21  Bruno Haible  <bruno@clisp.org>
2532
2533         pwrite: Move AC_LIBOBJ invocations to module description.
2534         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2535         * modules/pwrite (configure.ac): ... to here.
2536
2537 2011-05-21  Bruno Haible  <bruno@clisp.org>
2538
2539         putenv: Move AC_LIBOBJ invocations to module description.
2540         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2541         * modules/putenv (configure.ac): ... to here.
2542
2543 2011-05-21  Bruno Haible  <bruno@clisp.org>
2544
2545         login_tty: Move AC_LIBOBJ invocations to module description.
2546         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2547         * modules/login_tty (configure.ac): ... to here.
2548
2549 2011-05-21  Bruno Haible  <bruno@clisp.org>
2550
2551         openpty: Move AC_LIBOBJ invocations to module description.
2552         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2553         * modules/openpty (configure.ac): ... to here.
2554
2555 2011-05-21  Bruno Haible  <bruno@clisp.org>
2556
2557         forkpty: Move AC_LIBOBJ invocations to module description.
2558         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2559         * modules/forkpty (configure.ac): ... to here.
2560
2561 2011-05-21  Bruno Haible  <bruno@clisp.org>
2562
2563         ptsname: Move AC_LIBOBJ invocations to module description.
2564         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2565         invocations from here...
2566         * modules/ptsname (configure.ac): ... to here.
2567
2568 2011-05-21  Bruno Haible  <bruno@clisp.org>
2569
2570         pread: Move AC_LIBOBJ invocations to module description.
2571         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2572         * modules/pread (configure.ac): ... to here.
2573
2574 2011-05-21  Bruno Haible  <bruno@clisp.org>
2575
2576         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2577         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2578         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2579         * modules/posix_spawn (configure.ac): ... to here.
2580         * modules/posix_spawnp (configure.ac): ... and here.
2581
2582 2011-05-21  Bruno Haible  <bruno@clisp.org>
2583
2584         popen: Move AC_LIBOBJ invocations to module description.
2585         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2586         invocations from here...
2587         * modules/popen (configure.ac): ... to here.
2588
2589 2011-05-21  Bruno Haible  <bruno@clisp.org>
2590
2591         poll: Move AC_LIBOBJ invocations to module description.
2592         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2593         invocations from here...
2594         * modules/poll (configure.ac): ... to here.
2595
2596 2011-05-21  Bruno Haible  <bruno@clisp.org>
2597
2598         pipe-posix: Move AC_LIBOBJ invocations to module description.
2599         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2600         * modules/pipe-posix (configure.ac): ... to here.
2601
2602 2011-05-21  Bruno Haible  <bruno@clisp.org>
2603
2604         openat: Respect rules for use of AC_LIBOBJ.
2605         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2606         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2607         * modules/openat (configure.ac): ... to here.
2608
2609 2011-05-21  Bruno Haible  <bruno@clisp.org>
2610
2611         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2612         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2613         invocation from here...
2614         * modules/obstack-printf (configure.ac): ... to here.
2615         * modules/obstack-printf-posix (configure.ac): ... and here.
2616
2617 2011-05-21  Bruno Haible  <bruno@clisp.org>
2618
2619         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2620         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2621         from here...
2622         * modules/nl_langinfo (configure.ac): ... to here.
2623
2624 2011-05-21  Bruno Haible  <bruno@clisp.org>
2625
2626         nanosleep: Move AC_LIBOBJ invocations to module description.
2627         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2628         gl_PREREQ_NANOSLEEP invocations from here...
2629         * modules/nanosleep (configure.ac): ... to here.
2630
2631 2011-05-21  Bruno Haible  <bruno@clisp.org>
2632
2633         mountlist: Move AC_LIBOBJ invocations to module description.
2634         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2635         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2636         * modules/mountlist (configure.ac): ... to here.
2637
2638 2011-05-21  Bruno Haible  <bruno@clisp.org>
2639
2640         mktime: Respect rules for use of AC_LIBOBJ.
2641         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2642         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2643         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2644         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2645         * modules/mktime (configure.ac): ... to here.
2646         * modules/mktime-internal (configure.ac): ... and here.
2647         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2648
2649 2011-05-21  Bruno Haible  <bruno@clisp.org>
2650
2651         mkstemps: Move AC_LIBOBJ invocations to module description.
2652         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2653         here...
2654         * modules/mkstemps (configure.ac): ... to here.
2655
2656 2011-05-21  Bruno Haible  <bruno@clisp.org>
2657
2658         mkstemp: Move AC_LIBOBJ invocations to module description.
2659         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2660         gl_PREREQ_MKSTEMP invocations from here...
2661         * modules/mkstemp (configure.ac): ... to here.
2662
2663 2011-05-21  Bruno Haible  <bruno@clisp.org>
2664
2665         mkostemps: Move AC_LIBOBJ invocations to module description.
2666         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2667         here...
2668         * modules/mkostemps (configure.ac): ... to here.
2669
2670 2011-05-21  Bruno Haible  <bruno@clisp.org>
2671
2672         mkostemp: Move AC_LIBOBJ invocations to module description.
2673         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2674         gl_PREREQ_MKOSTEMP invocations from here...
2675         * modules/mkostemp (configure.ac): ... to here.
2676
2677 2011-05-21  Bruno Haible  <bruno@clisp.org>
2678
2679         mknod: Move AC_LIBOBJ invocations to module description.
2680         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2681         * modules/mknod (configure.ac): ... to here.
2682
2683 2011-05-21  Bruno Haible  <bruno@clisp.org>
2684
2685         mkfifoat: Move AC_LIBOBJ invocations to module description.
2686         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2687         here...
2688         * modules/mkfifoat (configure.ac): ... to here.
2689
2690 2011-05-21  Bruno Haible  <bruno@clisp.org>
2691
2692         mkfifo: Respect rules for use of AC_LIBOBJ.
2693         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2694         here...
2695         * modules/mkfifo (configure.ac): ... to here.
2696
2697 2011-05-21  Bruno Haible  <bruno@clisp.org>
2698
2699         mkdtemp: Move AC_LIBOBJ invocations to module description.
2700         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2701         invocations from here...
2702         * modules/mkdtemp (configure.ac): ... to here.
2703
2704 2011-05-21  Bruno Haible  <bruno@clisp.org>
2705
2706         mkdir: Move AC_LIBOBJ invocations to module description.
2707         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2708         * modules/mkdir (configure.ac): ... to here.
2709
2710 2011-05-21  Bruno Haible  <bruno@clisp.org>
2711
2712         memset: Move AC_LIBOBJ invocations to module description.
2713         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2714         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2715         here...
2716         * modules/memset (configure.ac): ... to here.
2717
2718 2011-05-21  Bruno Haible  <bruno@clisp.org>
2719
2720         memrchr: Move AC_LIBOBJ invocations to module description.
2721         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2722         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2723         here...
2724         * modules/memrchr (configure.ac): ... to here.
2725
2726 2011-05-21  Bruno Haible  <bruno@clisp.org>
2727
2728         mempcpy: Move AC_LIBOBJ invocations to module description.
2729         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2730         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2731         here...
2732         * modules/mempcpy (configure.ac): ... to here.
2733
2734 2011-05-21  Bruno Haible  <bruno@clisp.org>
2735
2736         memmove: Move AC_LIBOBJ invocations to module description.
2737         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2738         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2739         here...
2740         * modules/memmove (configure.ac): ... to here.
2741
2742 2011-05-21  Bruno Haible  <bruno@clisp.org>
2743
2744         memmem*: Move AC_LIBOBJ invocations to module description.
2745         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2746         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2747         here...
2748         (gl_FUNC_MEMMEM): ... and here...
2749         * modules/memmem-simple (configure.ac): ... to here.
2750         * modules/memmem (configure.ac): ... and here.
2751
2752 2011-05-21  Bruno Haible  <bruno@clisp.org>
2753
2754         memcpy: Move AC_LIBOBJ invocations to module description.
2755         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2756         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2757         here...
2758         * modules/memcpy (configure.ac): ... to here.
2759
2760 2011-05-21  Bruno Haible  <bruno@clisp.org>
2761
2762         memcmp: Simplify autoconf macro.
2763         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2764         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2765         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2766
2767 2011-05-21  Bruno Haible  <bruno@clisp.org>
2768
2769         memcmp: Move AC_LIBOBJ invocations to module description.
2770         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2771         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2772         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2773         * modules/memcmp (configure.ac): ... to here.
2774         (Depends-on): Update conditions.
2775
2776 2011-05-21  Bruno Haible  <bruno@clisp.org>
2777
2778         memchr: Respect rules for use of AC_LIBOBJ.
2779         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
2780         invocations from here...
2781         * modules/memchr (configure.ac): ... to here.
2782
2783 2011-05-21  Bruno Haible  <bruno@clisp.org>
2784
2785         mbtowc: Move AC_LIBOBJ invocations to module description.
2786         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
2787         invocations from here...
2788         * modules/mbtowc (configure.ac): ... to here.
2789
2790 2011-05-21  Bruno Haible  <bruno@clisp.org>
2791
2792         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
2793         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
2794         gl_PREREQ_MBSRTOWCS invocations from here...
2795         * modules/mbsrtowcs (configure.ac): ... to here.
2796
2797 2011-05-21  Bruno Haible  <bruno@clisp.org>
2798
2799         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
2800         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
2801         gl_PREREQ_MBSNRTOWCS invocations from here...
2802         * modules/mbsnrtowcs (configure.ac): ... to here.
2803
2804 2011-05-21  Bruno Haible  <bruno@clisp.org>
2805
2806         mbsinit: Move AC_LIBOBJ invocations to module description.
2807         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
2808         invocations from here...
2809         * modules/mbsinit (configure.ac): ... to here.
2810
2811 2011-05-21  Bruno Haible  <bruno@clisp.org>
2812
2813         mbrlen: Move AC_LIBOBJ invocations to module description.
2814         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
2815         invocations from here...
2816         * modules/mbrlen (configure.ac): ... to here.
2817
2818 2011-05-21  Bruno Haible  <bruno@clisp.org>
2819
2820         mbrtowc: Respect rules for use of AC_LIBOBJ.
2821         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
2822         invocations from here...
2823         * modules/mbrtowc (configure.ac): ... to here.
2824
2825 2011-05-21  Bruno Haible  <bruno@clisp.org>
2826
2827         malloc-*: Move AC_LIBOBJ invocations to module description.
2828         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
2829         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
2830         AC_LIBOBJ invocations from here...
2831         * modules/malloc-gnu (configure.ac): ... to here.
2832         * modules/malloc-posix (configure.ac): ... and here.
2833
2834 2011-05-21  Bruno Haible  <bruno@clisp.org>
2835
2836         lstat, openat: Respect rules for use of AC_LIBOBJ.
2837         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
2838         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
2839         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
2840         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
2841         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
2842         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
2843         here.
2844         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2845
2846 2011-05-21  Bruno Haible  <bruno@clisp.org>
2847
2848         lseek: Move AC_LIBOBJ invocations to module description.
2849         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
2850         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2851         * modules/lseek (configure.ac): ... to here.
2852
2853 2011-05-21  Bruno Haible  <bruno@clisp.org>
2854
2855         linkat: Move AC_LIBOBJ invocations to module description.
2856         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
2857         here...
2858         * modules/linkat (configure.ac): ... to here.
2859
2860 2011-05-21  Bruno Haible  <bruno@clisp.org>
2861
2862         link: Respect rules for use of AC_LIBOBJ.
2863         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
2864         * modules/link (configure.ac): ... to here.
2865
2866 2011-05-21  Bruno Haible  <bruno@clisp.org>
2867
2868         lchown: Move AC_LIBOBJ invocations to module description.
2869         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2870         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2871         * modules/lchown (configure.ac): ... to here.
2872
2873 2011-05-21  Bruno Haible  <bruno@clisp.org>
2874
2875         iswctype: Move AC_LIBOBJ invocations to module description.
2876         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
2877         here...
2878         * modules/iswctype (configure.ac): ... to here.
2879
2880 2011-05-21  Bruno Haible  <bruno@clisp.org>
2881
2882         iswblank: Move AC_LIBOBJ invocations to module description.
2883         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
2884         here...
2885         * modules/iswblank (configure.ac): ... to here.
2886
2887 2011-05-21  Bruno Haible  <bruno@clisp.org>
2888
2889         atanl: Move AC_LIBOBJ invocations to module description.
2890         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
2891         * modules/atanl (configure.ac): ... to here.
2892
2893 2011-05-21  Bruno Haible  <bruno@clisp.org>
2894
2895         acosl: Move AC_LIBOBJ invocations to module description.
2896         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
2897         * modules/acosl (configure.ac): ... to here.
2898
2899 2011-05-21  Bruno Haible  <bruno@clisp.org>
2900
2901         asinl: Respect rules for use of AC_LIBOBJ.
2902         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
2903         * modules/asinl (configure.ac): ... to here.
2904
2905 2011-05-21  Bruno Haible  <bruno@clisp.org>
2906
2907         tanl: Move AC_LIBOBJ invocations to module description.
2908         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
2909         * modules/tanl (configure.ac): ... to here.
2910
2911 2011-05-21  Bruno Haible  <bruno@clisp.org>
2912
2913         cosl: Move AC_LIBOBJ invocations to module description.
2914         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
2915         * modules/cosl (configure.ac): ... to here.
2916
2917 2011-05-21  Bruno Haible  <bruno@clisp.org>
2918
2919         sinl: Move AC_LIBOBJ invocations to module description.
2920         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
2921         * modules/sinl (configure.ac): ... to here.
2922
2923 2011-05-21  Bruno Haible  <bruno@clisp.org>
2924
2925         logl: Move AC_LIBOBJ invocations to module description.
2926         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
2927         * modules/logl (configure.ac): ... to here.
2928
2929 2011-05-21  Bruno Haible  <bruno@clisp.org>
2930
2931         expl: Move AC_LIBOBJ invocations to module description.
2932         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
2933         * modules/expl (configure.ac): ... to here.
2934
2935 2011-05-21  Bruno Haible  <bruno@clisp.org>
2936
2937         roundl: Move AC_LIBOBJ invocations to module description.
2938         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
2939         * modules/roundl (configure.ac): ... to here.
2940
2941 2011-05-21  Bruno Haible  <bruno@clisp.org>
2942
2943         round: Move AC_LIBOBJ invocations to module description.
2944         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
2945         * modules/round (configure.ac): ... to here.
2946
2947 2011-05-21  Bruno Haible  <bruno@clisp.org>
2948
2949         roundf: Move AC_LIBOBJ invocations to module description.
2950         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
2951         * modules/roundf (configure.ac): ... to here.
2952
2953 2011-05-21  Bruno Haible  <bruno@clisp.org>
2954
2955         truncl: Move AC_LIBOBJ invocations to module description.
2956         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
2957         * modules/truncl (configure.ac): ... to here.
2958
2959 2011-05-21  Bruno Haible  <bruno@clisp.org>
2960
2961         trunc: Move AC_LIBOBJ invocations to module description.
2962         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
2963         * modules/trunc (configure.ac): ... to here.
2964
2965 2011-05-21  Bruno Haible  <bruno@clisp.org>
2966
2967         truncf: Move AC_LIBOBJ invocations to module description.
2968         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
2969         * modules/truncf (configure.ac): ... to here.
2970
2971 2011-05-21  Bruno Haible  <bruno@clisp.org>
2972
2973         ceill: Move AC_LIBOBJ invocations to module description.
2974         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
2975         * modules/ceill (configure.ac): ... to here.
2976
2977 2011-05-21  Bruno Haible  <bruno@clisp.org>
2978
2979         ceil: Move AC_LIBOBJ invocations to module description.
2980         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
2981         * modules/ceil (configure.ac): ... to here.
2982
2983 2011-05-21  Bruno Haible  <bruno@clisp.org>
2984
2985         ceilf: Move AC_LIBOBJ invocations to module description.
2986         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
2987         * modules/ceilf (configure.ac): ... to here.
2988
2989 2011-05-21  Bruno Haible  <bruno@clisp.org>
2990
2991         floorl: Respect rules for use of AC_LIBOBJ.
2992         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
2993         * modules/floorl (configure.ac): ... to here.
2994
2995 2011-05-21  Bruno Haible  <bruno@clisp.org>
2996
2997         floor: Respect rules for use of AC_LIBOBJ.
2998         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
2999         * modules/floor (configure.ac): ... to here.
3000
3001 2011-05-21  Bruno Haible  <bruno@clisp.org>
3002
3003         floorf: Move AC_LIBOBJ invocations to module description.
3004         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
3005         * modules/floorf (configure.ac): ... to here.
3006
3007 2011-05-20  Bruno Haible  <bruno@clisp.org>
3008
3009         sqrtl: Respect rules for use of AC_LIBOBJ.
3010         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
3011         * modules/sqrtl (configure.ac): ... to here.
3012
3013 2011-05-20  Bruno Haible  <bruno@clisp.org>
3014
3015         ldexpl: Respect rules for use of AC_LIBOBJ.
3016         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
3017         * modules/ldexpl (configure.ac): ... to here.
3018
3019 2011-05-20  Bruno Haible  <bruno@clisp.org>
3020
3021         frexpl*: Respect rules for use of AC_LIBOBJ.
3022         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
3023         invocation from here...
3024         * modules/frexpl (configure.ac): ... to here.
3025         * modules/frexpl-nolibm (configure.ac): ... and here.
3026
3027 2011-05-20  Bruno Haible  <bruno@clisp.org>
3028
3029         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
3030         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
3031         invocation from here...
3032         * modules/frexp (configure.ac): ... to here.
3033         * modules/frexp-nolibm (configure.ac): ... and here.
3034
3035 2011-05-20  Bruno Haible  <bruno@clisp.org>
3036
3037         isnan: Respect rules for use of AC_LIBOBJ.
3038         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
3039         invocations here.
3040         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
3041         REPLACE_ISNAN.
3042         * modules/isnand (configure.ac): Likewise.
3043         * modules/isnanl (configure.ac): Likewise.
3044
3045 2011-05-20  Bruno Haible  <bruno@clisp.org>
3046
3047         isnanl*: Respect rules for use of AC_LIBOBJ.
3048         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
3049         invocation from here...
3050         * modules/isnanl (configure.ac): ... to here.
3051         * modules/isnanl-nolibm (configure.ac): ... and here.
3052
3053 2011-05-20  Bruno Haible  <bruno@clisp.org>
3054
3055         isnand*: Move AC_LIBOBJ invocations to module description.
3056         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
3057         invocation from here...
3058         * modules/isnand (configure.ac): ... to here.
3059         * modules/isnand-nolibm (configure.ac): ... and here.
3060
3061 2011-05-20  Bruno Haible  <bruno@clisp.org>
3062
3063         isnanf*: Move AC_LIBOBJ invocations to module description.
3064         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
3065         invocation from here...
3066         * modules/isnanf (configure.ac): ... to here.
3067         * modules/isnanf-nolibm (configure.ac): ... and here.
3068
3069 2011-05-20  Bruno Haible  <bruno@clisp.org>
3070
3071         isnan*: Separate the AC_LIBOBJ invocations.
3072         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
3073         AC_LIBOBJ invocation.
3074         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
3075         here.
3076         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
3077         AC_LIBOBJ invocation.
3078         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
3079         here.
3080         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
3081         AC_LIBOBJ invocation.
3082         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
3083         here.
3084         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
3085
3086 2011-05-08  Bruno Haible  <bruno@clisp.org>
3087
3088         isinf: Move AC_LIBOBJ invocations to module description.
3089         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
3090         * modules/isinf (configure.ac): ... to here.
3091
3092 2011-05-08  Bruno Haible  <bruno@clisp.org>
3093
3094         isfinite: Move AC_LIBOBJ invocations to module description.
3095         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
3096         * modules/isfinite (configure.ac): ... to here.
3097
3098 2011-05-08  Bruno Haible  <bruno@clisp.org>
3099
3100         isblank: Move AC_LIBOBJ invocations to module description.
3101         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
3102         here...
3103         * modules/isblank (configure.ac): ... to here.
3104
3105 2011-05-08  Bruno Haible  <bruno@clisp.org>
3106
3107         isapipe: Move AC_LIBOBJ invocations to module description.
3108         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
3109         gl_PREREQ_ISAPIPE invocations from here...
3110         * modules/isapipe (configure.ac): ... to here.
3111         (Depends-on): Update condition.
3112
3113 2011-05-08  Bruno Haible  <bruno@clisp.org>
3114
3115         ioctl: Move AC_LIBOBJ invocations to module description.
3116         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
3117         invocations from here...
3118         * modules/ioctl (configure.ac): ... to here.
3119         (Depends-on): Update condition.
3120
3121 2011-05-08  Bruno Haible  <bruno@clisp.org>
3122
3123         imaxdiv: Move AC_LIBOBJ invocations to module description.
3124         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
3125         invocations from here...
3126         * modules/imaxdiv (configure.ac): ... to here.
3127
3128 2011-05-08  Bruno Haible  <bruno@clisp.org>
3129
3130         imaxabs: Move AC_LIBOBJ invocations to module description.
3131         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
3132         invocations from here...
3133         * modules/imaxabs (configure.ac): ... to here.
3134
3135 2011-05-08  Bruno Haible  <bruno@clisp.org>
3136
3137         getaddrinfo: Move AC_LIBOBJ invocations to module description.
3138         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
3139         AC_LIBOBJ invocations from here...
3140         * modules/getaddrinfo (configure.ac): ... to here.
3141         (Depends-on): Add conditions.
3142
3143 2011-05-08  Bruno Haible  <bruno@clisp.org>
3144
3145         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3146         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
3147         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3148         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
3149         (gl_PREREQ_INET_PTON): ... from here.
3150         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
3151         gl_PREREQ_INET_PTON here.
3152         (Depends-on): Update condition.
3153
3154 2011-05-08  Bruno Haible  <bruno@clisp.org>
3155
3156         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3157         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
3158         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3159         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
3160         (gl_PREREQ_INET_NTOP): ... from here.
3161         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
3162         gl_PREREQ_INET_NTOP here.
3163         (Depends-on): Update condition.
3164
3165 2011-05-08  Bruno Haible  <bruno@clisp.org>
3166
3167         iconv_open: Move AC_LIBOBJ invocations to module description.
3168         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
3169         AC_LIBOBJ invocations from here...
3170         * modules/iconv_open (configure.ac): ... to here.
3171
3172 2011-05-08  Bruno Haible  <bruno@clisp.org>
3173
3174         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
3175         If module 'iconv_open' is among the main modules and module
3176         'iconv_open-utf' is among the tests dependencies, then
3177         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
3178         return the special iconv_t values. Therefore iconv() and iconv_close()
3179         must support these special iconv_t values, already in lib, not only in
3180         tests.
3181         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
3182         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
3183         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
3184         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
3185         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
3186         (Depends-on): Add the dependencies of iconv_open-utf.
3187         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
3188         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
3189         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
3190
3191 2011-05-08  Bruno Haible  <bruno@clisp.org>
3192
3193         group-member: Move AC_LIBOBJ invocations to module description.
3194         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
3195         gl_PREREQ_GROUP_MEMBER invocations from here...
3196         * modules/group-member (configure.ac): ... to here.
3197
3198 2011-05-08  Bruno Haible  <bruno@clisp.org>
3199
3200         grantpt: Move AC_LIBOBJ invocations to module description.
3201         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
3202         invocations from here...
3203         * modules/grantpt (configure.ac): ... to here.
3204
3205 2011-05-08  Bruno Haible  <bruno@clisp.org>
3206
3207         glob: Move AC_LIBOBJ invocations to module description.
3208         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3209         from here...
3210         * modules/glob (configure.ac): ... to here.
3211
3212 2011-05-08  Bruno Haible  <bruno@clisp.org>
3213
3214         getusershell: Move AC_LIBOBJ invocations to module description.
3215         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3216         Move AC_LIBOBJ invocation from here...
3217         * modules/getusershell (configure.ac): ... to here.
3218         (Depends-on): Update condition.
3219
3220 2011-05-08  Bruno Haible  <bruno@clisp.org>
3221
3222         gettimeofday: Move AC_LIBOBJ invocations to module description.
3223         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3224         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3225         gl_PREREQ_GETTIMEOFDAY invocations from here...
3226         * modules/gettimeofday (configure.ac): ... to here.
3227
3228 2011-05-08  Bruno Haible  <bruno@clisp.org>
3229
3230         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3231         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3232         just gl_FUNC_TZSET.
3233         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3234         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3235         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3236         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3237
3238 2011-05-08  Bruno Haible  <bruno@clisp.org>
3239
3240         getsubopt: Move AC_LIBOBJ invocations to module description.
3241         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3242         gl_PREREQ_GETSUBOPT invocations from here...
3243         * modules/getsubopt (configure.ac): ... to here.
3244
3245 2011-05-08  Bruno Haible  <bruno@clisp.org>
3246
3247         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3248         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3249         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3250         * modules/getpass-gnu (configure.ac): ... to here.
3251
3252 2011-05-08  Bruno Haible  <bruno@clisp.org>
3253
3254         getpass: Move AC_LIBOBJ invocations to module description.
3255         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3256         gl_PREREQ_GETPASS invocations from here...
3257         * modules/getpass (configure.ac): ... to here.
3258
3259 2011-05-08  Bruno Haible  <bruno@clisp.org>
3260
3261         getpagesize: Move AC_LIBOBJ invocations to module description.
3262         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3263         from here...
3264         * modules/getpagesize (configure.ac): ... to here.
3265
3266 2011-05-08  Bruno Haible  <bruno@clisp.org>
3267
3268         getopt: Move AC_LIBOBJ invocations to module description.
3269         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3270         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3271         invocations from here...
3272         * modules/getopt-gnu (configure.ac): ... to here.
3273         * modules/getopt-posix (configure.ac): ... and here.
3274         (Depends-on): Update condition.
3275
3276 2011-05-08  Bruno Haible  <bruno@clisp.org>
3277
3278         getopt, argp: Respect rules for use of AC_LIBOBJ.
3279         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3280         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3281         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3282         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3283
3284 2011-05-08  Bruno Haible  <bruno@clisp.org>
3285
3286         getlogin_r: Move AC_LIBOBJ invocations to module description.
3287         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3288         gl_PREREQ_GETLOGIN_R invocations from here...
3289         * modules/getlogin_r (configure.ac): ... to here.
3290
3291 2011-05-08  Bruno Haible  <bruno@clisp.org>
3292
3293         getlogin: Move AC_LIBOBJ invocations to module description.
3294         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3295         here...
3296         * modules/getlogin (configure.ac): ... to here.
3297
3298 2011-05-08  Bruno Haible  <bruno@clisp.org>
3299
3300         getloadavg: Move AC_LIBOBJ invocations to module description.
3301         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3302         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3303         * modules/getloadavg (configure.ac): ... to here.
3304
3305 2011-05-08  Bruno Haible  <bruno@clisp.org>
3306
3307         gethrxtime: Move AC_LIBOBJ invocations to module description.
3308         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3309         LIB_GETHRXTIME from here...
3310         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3311         invocations from here...
3312         * modules/gethrxtime (configure.ac): ... to here.
3313
3314 2011-05-08  Bruno Haible  <bruno@clisp.org>
3315
3316         gethostname: Move AC_LIBOBJ invocations to module description.
3317         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3318         gl_PREREQ_GETHOSTNAME invocations from here...
3319         * modules/gethostname (configure.ac): ... to here.
3320
3321 2011-05-08  Bruno Haible  <bruno@clisp.org>
3322
3323         getgroups: Move AC_LIBOBJ invocations to module description.
3324         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3325         here...
3326         * modules/getgroups (configure.ac): ... to here.
3327
3328 2011-05-08  Bruno Haible  <bruno@clisp.org>
3329
3330         getdtablesize: Move AC_LIBOBJ invocations to module description.
3331         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3332         invocation from here...
3333         * modules/getdtablesize (configure.ac): ... to here.
3334
3335 2011-05-08  Bruno Haible  <bruno@clisp.org>
3336
3337         getdomainname: Move AC_LIBOBJ invocations to module description.
3338         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3339         gl_PREREQ_GETDOMAINNAME invocations from here...
3340         * modules/getdomainname (configure.ac): ... to here.
3341
3342 2011-05-08  Bruno Haible  <bruno@clisp.org>
3343
3344         getline: Move AC_LIBOBJ invocations to module description.
3345         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3346         invocations from here...
3347         * modules/getline (configure.ac): ... to here.
3348
3349 2011-05-08  Bruno Haible  <bruno@clisp.org>
3350
3351         getline: Simplify.
3352         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3353         It's already handled through the module dependency.
3354
3355 2011-05-08  Bruno Haible  <bruno@clisp.org>
3356
3357         getdelim: Move AC_LIBOBJ invocations to module description.
3358         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3359         and gl_PREREQ_GETDELIM invocations from here...
3360         * modules/getdelim (configure.ac): ... to here.
3361         (Depends-on): Fix condition.
3362
3363 2011-05-08  Bruno Haible  <bruno@clisp.org>
3364
3365         getcwd: Move AC_LIBOBJ invocations to module description.
3366         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3367         invocations from here...
3368         * modules/getcwd (configure.ac): ... to here.
3369
3370 2011-05-08  Bruno Haible  <bruno@clisp.org>
3371
3372         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3373         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3374         here...
3375         * modules/getcwd-lgpl (configure.ac): ... to here.
3376
3377 2011-05-07  Bruno Haible  <bruno@clisp.org>
3378
3379         crypto/gc: Move AC_LIBOBJ invocations to module description.
3380         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3381         * modules/crypto/gc (configure.ac): ... to here.
3382
3383 2011-05-07  Bruno Haible  <bruno@clisp.org>
3384
3385         fwriting: Move AC_LIBOBJ invocations to module description.
3386         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3387         here...
3388         * modules/fwriting (configure.ac): ... to here.
3389
3390 2011-05-07  Bruno Haible  <bruno@clisp.org>
3391
3392         fwritable: Move AC_LIBOBJ invocations to module description.
3393         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3394         here...
3395         * modules/fwritable (configure.ac): ... to here.
3396
3397 2011-05-07  Bruno Haible  <bruno@clisp.org>
3398
3399         futimens: Move AC_LIBOBJ invocations to module description.
3400         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3401         here...
3402         * modules/futimens (configure.ac): ... to here.
3403
3404 2011-05-07  Bruno Haible  <bruno@clisp.org>
3405
3406         ftruncate: Move AC_LIBOBJ invocations to module description.
3407         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3408         gl_PREREQ_FTRUNCATE invocations from here...
3409         * modules/ftruncate (configure.ac): ... to here.
3410
3411 2011-05-07  Bruno Haible  <bruno@clisp.org>
3412
3413         fsync: Move AC_LIBOBJ invocations to module description.
3414         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3415         invocations from here...
3416         * modules/fsync (configure.ac): ... to here.
3417
3418 2011-05-07  Bruno Haible  <bruno@clisp.org>
3419
3420         fsusage: Move AC_LIBOBJ invocations to module description.
3421         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3422         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3423         * modules/fsusage (configure.ac): ... to here.
3424
3425 2011-05-07  Bruno Haible  <bruno@clisp.org>
3426
3427         freopen: Move AC_LIBOBJ invocations to module description.
3428         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3429         invocations from here...
3430         * modules/freopen (configure.ac): ... to here.
3431
3432 2011-05-07  Bruno Haible  <bruno@clisp.org>
3433
3434         free: Move AC_LIBOBJ invocations to module description.
3435         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3436         invocations from here...
3437         * modules/free (configure.ac): ... to here.
3438
3439 2011-05-07  Bruno Haible  <bruno@clisp.org>
3440
3441         freadable: Move AC_LIBOBJ invocations to module description.
3442         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3443         here...
3444         * modules/freadable (configure.ac): ... to here.
3445
3446 2011-05-07  Bruno Haible  <bruno@clisp.org>
3447
3448         fpurge: Move AC_LIBOBJ invocations to module description.
3449         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3450         invocations from here...
3451         * modules/fpurge (configure.ac): ... to here.
3452
3453 2011-05-07  Bruno Haible  <bruno@clisp.org>
3454
3455         fpending: Move AC_LIBOBJ invocations to module description.
3456         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3457         gl_FUNC_FPENDING.
3458         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3459         invocations from here...
3460         * modules/fpending (configure.ac): ... to here.
3461
3462 2011-05-07  Bruno Haible  <bruno@clisp.org>
3463
3464         fopen: Move AC_LIBOBJ invocations to module description.
3465         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3466         invocations from here...
3467         * modules/fopen (configure.ac): ... to here.
3468
3469 2011-05-07  Bruno Haible  <bruno@clisp.org>
3470
3471         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3472         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3473         gl_FUNC_FNMATCH_POSIX.
3474         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3475         invocations from here...
3476         * modules/fnmatch (configure.ac): ... to here.
3477         * modules/fnmatch-gnu (configure.ac): ... and here.
3478
3479 2011-05-07  Bruno Haible  <bruno@clisp.org>
3480
3481         flock: Move AC_LIBOBJ invocations to module description.
3482         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3483         invocations from here...
3484         * modules/flock (configure.ac): ... to here.
3485
3486 2011-05-07  Bruno Haible  <bruno@clisp.org>
3487
3488         fileblocks: Move AC_LIBOBJ invocations to module description.
3489         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3490         gl_PREREQ_FILEBLOCKS invocations from here...
3491         * modules/fileblocks (configure.ac): ... to here.
3492
3493 2011-05-06  Bruno Haible  <bruno@clisp.org>
3494
3495         fflush: Move AC_LIBOBJ invocations to module description.
3496         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3497         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3498         invocations from here...
3499         * modules/fflush (configure.ac): ... to here.
3500
3501 2011-05-06  Bruno Haible  <bruno@clisp.org>
3502
3503         fdopendir: Move AC_LIBOBJ invocations to module description.
3504         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3505         here...
3506         * modules/fdopendir (configure.ac): ... to here.
3507         (Depends-on): Improve conditions.
3508
3509 2011-05-06  Bruno Haible  <bruno@clisp.org>
3510
3511         _Exit: Move AC_LIBOBJ invocations to module description.
3512         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3513         invocations from here...
3514         * modules/_Exit (configure.ac): ... to here.
3515
3516 2011-05-21  Bruno Haible  <bruno@clisp.org>
3517
3518         euidaccess: Respect rules for use of AC_LIBOBJ.
3519         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3520         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3521         from here...
3522         * modules/euidaccess (configure.ac): ... to here.
3523
3524 2011-05-06  Bruno Haible  <bruno@clisp.org>
3525
3526         error: Move AC_LIBOBJ invocations to module description.
3527         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3528         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3529         invocations from here...
3530         * modules/error (configure.ac): ... to here.
3531
3532 2011-05-06  Bruno Haible  <bruno@clisp.org>
3533
3534         duplocale: Move AC_LIBOBJ invocations to module description.
3535         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3536         gl_PREREQ_DUPLOCALE invocations from here...
3537         * modules/duplocale (configure.ac): ... to here.
3538
3539 2011-05-05  Bruno Haible  <bruno@clisp.org>
3540
3541         dirfd: Move AC_LIBOBJ invocations to module description.
3542         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3543         gl_FUNC_DIRFD.
3544         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3545         here...
3546         * modules/dirfd (configure.ac): ... to here.
3547         (Depends-on): Fix condition.
3548
3549 2011-05-05  Bruno Haible  <bruno@clisp.org>
3550
3551         chown: Respect rules for use of AC_LIBOBJ.
3552         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3553         * modules/chown (configure.ac): ... to here.
3554
3555 2011-05-05  Bruno Haible  <bruno@clisp.org>
3556
3557         chdir-long: Move AC_LIBOBJ invocations to module description.
3558         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3559         gl_PREREQ_CHDIR_LONG invocations from here...
3560         * modules/chdir-long (configure.ac): ... to here.
3561
3562 2011-05-05  Bruno Haible  <bruno@clisp.org>
3563
3564         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3565         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3566         from here...
3567         * modules/canonicalize-lgpl (configure.ac): ... to here.
3568
3569 2011-05-05  Bruno Haible  <bruno@clisp.org>
3570
3571         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3572         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3573         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3574         REPLACE_CALLOC.
3575         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3576         * modules/calloc-gnu (configure.ac): Likewise.
3577
3578 2011-05-05  Bruno Haible  <bruno@clisp.org>
3579
3580         btowc: Move AC_LIBOBJ invocations to module description.
3581         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3582         invocations from here...
3583         * modules/btowc (configure.ac): ... to here.
3584
3585 2011-05-21  Bruno Haible  <bruno@clisp.org>
3586
3587         atexit: Move AC_LIBOBJ invocations to module description.
3588         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3589         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3590         here...
3591         * modules/atexit (configure.ac): ... to here.
3592
3593 2011-05-05  Bruno Haible  <bruno@clisp.org>
3594
3595         atoll: Move AC_LIBOBJ invocations to module description.
3596         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3597         invocations from here...
3598         * modules/atoll (configure.ac): ... to here.
3599
3600 2011-05-05  Bruno Haible  <bruno@clisp.org>
3601
3602         argz: Move AC_LIBOBJ invocations to module description.
3603         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3604         * modules/argz (configure.ac): ... to here.
3605
3606 2011-05-05  Bruno Haible  <bruno@clisp.org>
3607
3608         alphasort: Move AC_LIBOBJ invocations to module description.
3609         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3610         gl_PREREQ_ALPHASORT invocations from here...
3611         * modules/alphasort (configure.ac): ... to here.
3612
3613 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3614
3615         verify: new macro verify_expr; verify_true deprecated
3616         * NEWS: Mention this.
3617         * doc/verify.texi (Compile-time Assertions): Document this.
3618         * lib/verify.h (verify_true): Deprecate.
3619         (verify_expr): New macro.
3620         * tests/test-verify.c (function): Test verify_expr.
3621
3622 2011-06-14  Jim Meyering  <meyering@redhat.com>
3623
3624         init.sh: give more portable redirection-related advice in a comment
3625         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3626         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3627         for lots of discussion.  Stefano Lattarini suggested the solution
3628         of putting "9>&2" after the command.  Reported by Bruno Haible.
3629
3630 2011-06-13  Bruno Haible  <bruno@clisp.org>
3631
3632         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3633         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3634         'none'.
3635
3636 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3637
3638         ftoastr: use strtof only if HAVE_STRTOF
3639         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3641         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3642         * modules/ftoastr (configure.ac): Check for strtof.
3643
3644 2011-06-13  Bruno Haible  <bruno@clisp.org>
3645
3646         gnulib-tool: Addendum to 2011-06-08 commit.
3647         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3648         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3649
3650 2011-06-13  Bruno Haible  <bruno@clisp.org>
3651
3652         fseeko: Provide a non-inline replacement of fseek().
3653         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3654         * modules/fseeko (Depends-on): Add fseek.
3655         * modules/fseek (License): Change to LGPLv2+.
3656
3657 2011-06-13  Bruno Haible  <bruno@clisp.org>
3658
3659         ftello: Provide a non-inline replacement of ftell().
3660         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3661         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3662         not have ftello() (such as on mingw).
3663         * modules/ftello (Depends-on): Add ftell.
3664         * modules/ftell (License): Change to LGPLv2+.
3665
3666 2011-05-07  Bruno Haible  <bruno@clisp.org>
3667
3668         ftell: Move AC_LIBOBJ invocations to module description.
3669         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3670         * modules/ftell (configure.ac): ... to here.
3671
3672 2011-05-07  Bruno Haible  <bruno@clisp.org>
3673
3674         ftello: Respect rules for use of AC_LIBOBJ.
3675         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3676         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3677         here...
3678         * modules/ftello (configure.ac): ... to here.
3679
3680 2011-05-07  Bruno Haible  <bruno@clisp.org>
3681
3682         fseeko: Simplify.
3683         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3684         (gl_FUNC_FSEEKO): Inline it here.
3685
3686 2011-05-07  Bruno Haible  <bruno@clisp.org>
3687
3688         fseek: Move AC_LIBOBJ invocations to module description.
3689         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3690         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3691         * modules/fseek (configure.ac): ... to here.
3692
3693 2011-05-07  Bruno Haible  <bruno@clisp.org>
3694
3695         fseek: Respect rules for use of AC_LIBOBJ.
3696         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3697         here...
3698         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3699
3700 2011-05-07  Bruno Haible  <bruno@clisp.org>
3701
3702         fseeko: Respect rules for use of AC_LIBOBJ.
3703         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3704         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3705         here...
3706         * modules/fseeko (configure.ac): ... to here.
3707
3708 2011-06-13  Bruno Haible  <bruno@clisp.org>
3709
3710         gnulib-tool: Allow comments in the 'Depends-on' section.
3711         * doc/gnulib.texi (Module description): Mention comment syntax in the
3712         Depends-on section.
3713         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3714
3715 2011-06-13  Bruno Haible  <bruno@clisp.org>
3716
3717         file-set.h: guard __attibute__ use, now that it's not always defined
3718         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3719         versions that support it.  This fixes a coreutils build failure with
3720         the vendor cc on HP-UX 11.31.
3721
3722 2011-06-12  Bruno Haible  <bruno@clisp.org>
3723
3724         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3725         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3726         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3727         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3728         (acl, aclsort): New declarations.
3729         (aclv_nontrivial): New declaration.
3730         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3731         (file_has_acl): Read also the second kind of HP-UX ACLs.
3732         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3733         kind of HP-UX ACLs if the first kind fails.
3734         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3735         second kind of HP-UX ACLs.
3736         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3737         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3738         agree.
3739         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3740         hpuxjfs.
3741         Handle hpuxjfs.
3742         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3743         hpuxjfs.
3744         Handle hpuxjfs.
3745         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3746         (func_test_same_acls): Use both lsacl and getacl.
3747         Handle hpuxjfs.
3748         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3749         (func_test_same_acls): Use both lsacl and getacl.
3750         Handle hpuxjfs.
3751
3752 2011-06-12  Bruno Haible  <bruno@clisp.org>
3753
3754         acl: Complete the 2010-08-10 fix.
3755         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3756         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3757         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3758         explicitly.
3759         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3760         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3761
3762 2011-06-12  Bruno Haible  <bruno@clisp.org>
3763
3764         spawn-pipe tests: Comments.
3765         * tests/test-spawn-pipe-child.c (main): Update comment.
3766         Reported by James Youngman <jay@gnu.org>.
3767
3768 2011-06-11  James Youngman  <jay@gnu.org>
3769
3770         New module 'stat-size'.
3771         * modules/stat-size: New module.  Provides macros for accessing
3772         file size information in instances of struct stat.  Depends on the
3773         fileblocks module because it calls st_blocks.
3774         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3775         * doc/gnulib.texi: Include stat-size.texi.
3776         * doc/stat-size.texi: Documentation for this module.
3777         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3778         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3779         AC_STRUCT_ST_BLOCKS.
3780
3781 2011-06-09  Bruno Haible  <bruno@clisp.org>
3782
3783         thread: Support pthreads-win32.
3784         * lib/glthread/thread.h (gl_thread_self): Define differently on
3785         pthreads-win32.
3786         (gl_null_thread): New declaration.
3787         (gl_thread_self_pointer): New macro.
3788         * lib/glthread/thread.c (gl_null_thread): New constant.
3789         * tests/test-lock.c: Use gl_thread_self_pointer instead of
3790         gl_thread_self.
3791         * tests/test-tls.c: Likewise.
3792         Suggested by Paul Eggert. Reported by Eric Blake.
3793
3794 2011-06-09  Bruno Haible  <bruno@clisp.org>
3795
3796         thread: Fix confusion between NULL and 0.
3797         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
3798         Reported by Paul Eggert.
3799
3800 2011-06-09  Bruno Haible  <bruno@clisp.org>
3801
3802         spawn-pipe tests: Avoid test failure on HP-UX 11.
3803         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
3804         is closed.
3805
3806 2011-06-09  Bruno Haible  <bruno@clisp.org>
3807
3808         acl tests: Fix compilation error on HP-UX 11.
3809         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
3810
3811 2011-06-09  Bruno Haible  <bruno@clisp.org>
3812
3813         rmdir: Avoid test failure on HP-UX 10.20.
3814         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
3815         EEXIST.
3816
3817 2011-06-08  Eric Blake  <eblake@redhat.com>
3818
3819         perror: fix test on mingw
3820         * modules/perror-tests (Depends-on): Add dup2.
3821
3822         strerror_r-posix: fix on MacOS
3823         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
3824         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
3825         logic bug.
3826         * lib/strerror_r.c (strerror_r): Fix the bug.
3827         * lib/strerror.c (strerror): Likewise.
3828         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3829         problem.
3830         * doc/posix-functions/strerror.texi (strerror): Likewise.
3831         * doc/posix-functions/perror.texi (perror): Likewise.
3832         * tests/test-strerror.c (main): Enhance test.
3833         * tests/test-strerror_r.c (main): Likewise.
3834
3835 2011-06-08  Bruno Haible  <bruno@clisp.org>
3836
3837         gnulib-tool: Better isolation between different gnulib-tool invocations.
3838         * gnulib-tool: New option --witness-c-macro.
3839         (witness_c_macro): New variable.
3840         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
3841         AM_CPPFLAGS define it as a C macro.
3842         (func_emit_tests_Makefile_am): Likewise.
3843         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
3844         read it from there.
3845         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
3846         m4_define, not AC_DEFUN.
3847         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
3848         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
3849         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
3850         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
3851         s|...|...|, to substitute the values of the GNULIB_* module indicator
3852         variables.
3853         * modules/dirent (Makefile.am): Likewise.
3854         * modules/fcntl-h (Makefile.am): Likewise.
3855         * modules/iconv-h (Makefile.am): Likewise.
3856         * modules/langinfo (Makefile.am): Likewise.
3857         * modules/locale (Makefile.am): Likewise.
3858         * modules/math (Makefile.am): Likewise.
3859         * modules/netdb (Makefile.am): Likewise.
3860         * modules/poll-h (Makefile.am): Likewise.
3861         * modules/pty (Makefile.am): Likewise.
3862         * modules/search (Makefile.am): Likewise.
3863         * modules/signal (Makefile.am): Likewise.
3864         * modules/spawn (Makefile.am): Likewise.
3865         * modules/stdio (Makefile.am): Likewise.
3866         * modules/stdlib (Makefile.am): Likewise.
3867         * modules/string (Makefile.am): Likewise.
3868         * modules/sys_ioctl (Makefile.am): Likewise.
3869         * modules/sys_select (Makefile.am): Likewise.
3870         * modules/sys_socket (Makefile.am): Likewise.
3871         * modules/sys_stat (Makefile.am): Likewise.
3872         * modules/sys_times (Makefile.am): Likewise.
3873         * modules/sys_utsname (Makefile.am): Likewise.
3874         * modules/sys_wait (Makefile.am): Likewise.
3875         * modules/termios (Makefile.am): Likewise.
3876         * modules/time (Makefile.am): Likewise.
3877         * modules/unistd (Makefile.am): Likewise.
3878         * modules/wchar (Makefile.am): Likewise.
3879
3880 2011-06-08  Eric Blake  <eblake@redhat.com>
3881
3882         strerror: simplify replacement
3883         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
3884         * modules/strerror (configure.ac): No prereqs needed here...
3885         * modules/strerror-override (configure.ac): ...but this needs it.
3886         (Files): Add file for needed prereq macro.
3887
3888 2011-06-08  Bruno Haible  <bruno@clisp.org>
3889
3890         strerror_r-posix: Tweaks.
3891         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
3892         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
3893         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
3894         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
3895         (gl_FUNC_STRERROR_R): ... to here.
3896         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
3897
3898 2011-06-07  Eric Blake  <eblake@redhat.com>
3899
3900         perror: document fixed bugs
3901         * doc/posix-functions/perror.texi (perror): Document recent
3902         patches.
3903
3904 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3905
3906         stat-time: get_stat_birthtime failure is better-defined
3907         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
3908         return a timestamp whose tv_sec and tv_nsec values are both -1.
3909         Previously, the spec said only that the tv_nsec value was negative.
3910         This upward-compatible change simplifies GNU tar a bit.
3911
3912 2011-06-07  Eric Blake  <eblake@redhat.com>
3913
3914         strerror_r-posix: work around cygwin 1.7.9
3915         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
3916         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
3917         bug without replacing strerror_r.
3918         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
3919         strerror_r is buggy, but without requiring strerror_r compilation.
3920         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
3921
3922         test-perror: relax test to ignore cygwin bug
3923         * tests/test-perror2.c (main): Relax test on requiring detection
3924         of stream errors, and use unbuffered stream.
3925         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
3926         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
3927         * doc/posix-functions/fputc.texi (fputc): Likewise.
3928         * doc/posix-functions/fputs.texi (fputs): Likewise.
3929         * doc/posix-functions/fputws.texi (fputws): Likewise.
3930         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
3931         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
3932         * doc/posix-functions/getopt.texi (getopt): Likewise.
3933         * doc/posix-functions/perror.texi (perror): Likewise.
3934         * doc/posix-functions/printf.texi (printf): Likewise.
3935         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
3936         * doc/posix-functions/psignal.texi (psignal): Likewise.
3937         * doc/posix-functions/putc.texi (putc): Likewise.
3938         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
3939         Likewise.
3940         * doc/posix-functions/putchar.texi (putchar): Likewise.
3941         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
3942         Likewise.
3943         * doc/posix-functions/puts.texi (puts): Likewise.
3944         * doc/posix-functions/putwc.texi (putwc): Likewise.
3945         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3946         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3947         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3948         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
3949         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3950         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3951         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
3952         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
3953
3954 2011-05-22  Bruno Haible  <bruno@clisp.org>
3955
3956         strerror: Move AC_LIBOBJ invocations to module description.
3957         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
3958         gl_PREREQ_STRERROR invocations from here...
3959         * modules/strerror (configure.ac): ... to here.
3960
3961 2011-05-21  Bruno Haible  <bruno@clisp.org>
3962
3963         perror: Use common idiom.
3964         * modules/perror (configure.ac): Reorder statements.
3965
3966 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3967
3968         tests: fix usage message in 'mktempd_'
3969         * tests/init.sh (mktempd_): In the usage message, use literal
3970         'mktempd_', not '$ME' (which is even undefined), as the name of
3971         the subroutine.
3972
3973 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3974
3975         tests init: new function 'fatal_', for hard errors
3976         Before this patch, the only way offered by tests/init.sh to
3977         properly signal a hard error was the `framework_failure_'
3978         function.  But the error message issued by that function,
3979         as its name would suggest, refers to a set-up failure in the
3980         testsuite, while hard errors can obviously also be due to
3981         other reasons.  The best way to fix this inconsistency is to
3982         introduce a new function with a more general error message.
3983         * tests/init.sh (fatal_): New function.
3984
3985 2011-06-06  Eric Blake  <eblake@redhat.com>
3986
3987         canonicalize-lgpl: use common idiom
3988         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
3989         over newer POSIX -Rf.
3990         Reported by Bruno Haible.
3991
3992         canonicalize-lgpl: work around AIX realpath bug
3993         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
3994         * doc/posix-functions/realpath.texi (realpath): Document it.
3995         Reported by Bruno Haible.
3996
3997         strerror: work around FreeBSD bug
3998         * lib/strerror.c (strerror): Special case 0.
3999         Reported by Bruno Haible.
4000
4001         strerror-override: avoid bloating errno module
4002         * modules/errno (Files, configure.ac): Move replacement strings...
4003         * modules/strerror-override: ...to new module.
4004         * modules/strerror (Depends-on): Add strerror-override.
4005         * modules/strerror_r-posix (Depends-on): Likewise.
4006         * MODULES.html.sh: Document new module.
4007         Reported by Bruno Haible.
4008
4009 2011-06-06  Bruno Haible  <bruno@clisp.org>
4010
4011         spawn-pipe tests: Rename program.
4012         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
4013         * tests/test-spawn-pipe-child.c: Update comment.
4014         * tests/test-spawn-pipe.sh: Update.
4015         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
4016
4017         spawn-pipe tests: Link the child program only against libc.
4018         * tests/test-spawn-pipe-child.c: New file, extracted from
4019         tests/test-spawn-pipe.c.
4020         (main): Expect only one argument.
4021         (is_open): New function, copied from tests/test-pipe.c.
4022         * tests/test-spawn-pipe.c: Don't include <errno.h>.
4023         (child_main): Remove function.
4024         (test_pipe): Pass only one argument to the child program.
4025         (main): Remove child process code. Expect the child program's name as
4026         first argument.
4027         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4028         argument.
4029         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
4030         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
4031         test-spawn-pipe-child against no libraries.
4032
4033 2011-06-06  Bruno Haible  <bruno@clisp.org>
4034
4035         careadlinkat: Avoid mismatch between ssize_t and int.
4036         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
4037         * lib/careadlinkat.c (careadlinkatcwd): Define always.
4038
4039 2011-06-06  Jim Meyering  <meyering@redhat.com>
4040
4041         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
4042         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
4043         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
4044
4045 2011-06-05  Bruno Haible  <bruno@clisp.org>
4046
4047         ansi-c++-opt: Interoperability with libtool.
4048         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
4049         set the variable to "no", not to ":".
4050         * NEWS: Mention the change.
4051
4052 2011-06-05  Bruno Haible  <bruno@clisp.org>
4053
4054         acl: Fix test failure on AIX 7.
4055         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
4056         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
4057
4058 2011-06-05  Bruno Haible  <bruno@clisp.org>
4059
4060         pipe-filter-ii: Fix test failure on AIX and IRIX.
4061         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
4062         with EAGAIN, retry with a smaller buffer size.
4063
4064 2011-06-05  Bruno Haible  <bruno@clisp.org>
4065
4066         localename: Fix link dependencies.
4067         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
4068         * modules/localename-tests (Makefile.am): Link test-localename with
4069         $(LIBTHREAD).
4070
4071 2011-06-05  Bruno Haible  <bruno@clisp.org>
4072
4073         error: Avoid gcc warning.
4074         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
4075
4076 2011-06-05  Bruno Haible  <bruno@clisp.org>
4077
4078         unsetenv: Avoid gcc warning.
4079         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
4080
4081 2011-06-05  Bruno Haible  <bruno@clisp.org>
4082
4083         setenv: Avoid gcc warning.
4084         * lib/setenv.c (setenv): Provide declaration if system lacks it.
4085
4086 2011-06-05  Bruno Haible  <bruno@clisp.org>
4087
4088         sys_select: Ensure memset is declared also on AIX 7.
4089         * lib/sys_select.in.h: Include <string.h> also on AIX.
4090         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
4091         self-contained also on AIX 7.1.
4092
4093 2011-06-04  Jim Meyering  <meyering@redhat.com>
4094
4095         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
4096         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
4097         function name, "error".
4098         (_gl_translatable_diag_func_re): New configurable variable.
4099
4100 2011-06-04  Bruno Haible  <bruno@clisp.org>
4101
4102         getopt: Avoid gcc warning.
4103         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
4104
4105 2011-06-04  Bruno Haible  <bruno@clisp.org>
4106
4107         strerror_r: Fix comments.
4108         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
4109         commit.
4110
4111 2011-06-04  Bruno Haible  <bruno@clisp.org>
4112
4113         perror: Fix compilation error.
4114         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
4115         Undefine fprintf, not sprintf.
4116         * modules/perror (Depends-on): Remove intprops, verify.
4117
4118 2011-06-04  Bruno Haible  <bruno@clisp.org>
4119
4120         setlocale: Enable replacement on Cygwin 1.5.
4121         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
4122         Cygwin 1.5.x.
4123         * doc/posix-functions/setlocale.texi: Mention that the problem with the
4124         LC_CTYPE category also exists on Cygwin 1.5.x.
4125
4126 2011-06-04  Bruno Haible  <bruno@clisp.org>
4127
4128         strerror-override: Don't disable symbol renamings.
4129         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
4130         * lib/strerror-override.c: Include config.h.
4131         (strerror_override): Don't undefine.
4132
4133 2011-06-03  Bruno Haible  <bruno@clisp.org>
4134
4135         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
4136         * lib/localename.h: Update copyright header.
4137         * lib/localename.c: Likewise.
4138         * lib/relocatable.h: Likewise.
4139         * lib/relocatable.c: Likewise.
4140
4141 2011-06-02  Bruno Haible  <bruno@clisp.org>
4142
4143         doc: Fix a module name.
4144         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
4145
4146 2011-06-02  Bruno Haible  <bruno@clisp.org>
4147
4148         pipe2: Remove dependency on 'nonblocking' module.
4149         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
4150         O_NONBLOCK is defined by gnulib.
4151         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
4152         is zero.
4153         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
4154         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
4155         defined by gnulib.
4156         (get_nonblocking_flag): New function.
4157         (main): Test O_NONBLOCK flag only if it is nonzero.
4158         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
4159
4160 2011-06-03  Jim Meyering  <meyering@redhat.com>
4161
4162         maint: three new prohibit-header-without-use rules
4163         Prohibit use of cloexec.h, posixver.h, same.h without use.
4164         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
4165         (sc_prohibit_posixver_without_use): Likewise.
4166         (sc_prohibit_same_without_use): Likewise.
4167
4168 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4169
4170         allocator: 'die' routine is now given requested size
4171         * lib/allocator.h (struct allocator.die): New size arg.
4172         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
4173         If the actual problem is an ssize_t limitation, not a size_t or
4174         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
4175
4176 2011-06-01  Eric Blake  <eblake@redhat.com>
4177
4178         strerror: drop strerror_r dependency
4179         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
4180         * lib/strerror-override.c (strerror_override): ...to new file.
4181         * lib/strerror-override.h: Add prototype.
4182         * lib/strerror-impl.h: Delete.
4183         * lib/strerror.c (strerror): New implementation.
4184         * modules/errno (Files): Add new files.
4185         (configure.ac): Compile new file as appropriate.
4186         * modules/strerror (Files): Drop unused file.
4187         (Depends-on): Drop strerror_r-posix.
4188         * MODULES.html.sh: Document strerror_r-posix.
4189         Requested by Sam Steingold.
4190
4191         perror: call strerror_r directly
4192         * modules/perror (Files): Drop strerror-impl.h.
4193         * lib/perror.c (perror): Use our own stack buffer, rather than
4194         calling a wrapper that uses static storage.
4195         * doc/posix-functions/perror.texi (perror): Document a limitation
4196         of our replacement.
4197
4198         strerror_r: fix includes for FreeBSD
4199         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
4200         since we use abort on some platforms.
4201         Reported by Matthias Bolte.
4202
4203 2011-05-31  Bruno Haible  <bruno@clisp.org>
4204
4205         Fix link errors in tests: openat-die uses gettext-h.
4206         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4207         against $(LIBINTL).
4208         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4209         against $(LIBINTL).
4210         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4211         $(LIBINTL).
4212         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4213         against $(LIBINTL).
4214         * modules/linkat-tests (Makefile.am): Link test-linkat against
4215         $(LIBINTL).
4216         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4217         $(LIBINTL).
4218         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4219         against $(LIBINTL).
4220         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4221         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4222         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4223         $(LIBINTL).
4224         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4225         $(LIBINTL).
4226         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4227         $(LIBINTL).
4228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4229
4230 2011-05-31  Bruno Haible  <bruno@clisp.org>
4231
4232         Fix link errors in tests: wait-process uses gettext-h.
4233         * modules/nonblocking-pipe-tests (Makefile.am): Set
4234         test_nonblocking_pipe_main_LDADD.
4235         * modules/nonblocking-socket-tests (Makefile.am): Link
4236         test-nonblocking-socket-main against $(LIBINTL).
4237         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4238
4239 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4240
4241         assert-h: work around 'verify' incompatibility
4242         * lib/verify.h: Use @...@ directives, not ifdef.
4243         * modules/assert-h (assert.h): Implement the directives.
4244         (assert.h): Substitute the symbol-prefix more consistently.
4245
4246 2011-05-29  Jim Meyering  <meyering@redhat.com>
4247
4248         trim: remove three superfluous assignments
4249         * lib/trim.c (trim2): Remove three superfluous assignments
4250         and correct brace positioning.
4251
4252 2011-05-29  Bruno Haible  <bruno@clisp.org>
4253
4254         wctype-h: Avoid namespace pollution on Solaris 2.6.
4255         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4256         identifiers.
4257         * doc/posix-headers/wctype.texi: Mention the problem.
4258         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4259
4260 2011-05-28  Jim Meyering  <meyering@redhat.com>
4261
4262         parse-datetime.y: accommodate -Wstrict-overflow
4263         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4264         placate -Wstrict-overflow.
4265
4266         trim: avoid a warning from -O2 -Wstrict-overflow
4267         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4268
4269 2011-05-29  Bruno Haible  <bruno@clisp.org>
4270
4271         gnulib-tool: Fix bug in yesterday's commit.
4272         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4273         twice.
4274
4275 2011-05-29  Bruno Haible  <bruno@clisp.org>
4276
4277         Allow multiple gnulib generated include files to be combined.
4278         * gnulib-tool (func_compute_include_guard_prefix): New function.
4279         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4280         ${gl_include_guard_prefix} references.
4281         (func_import, func_create_testdir): Invoke
4282         func_compute_include_guard_prefix.
4283         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4284         * lib/ctype.in.h: Likewise.
4285         * lib/dirent.in.h: Likewise.
4286         * lib/errno.in.h: Likewise.
4287         * lib/fcntl.in.h: Likewise.
4288         * lib/float.in.h: Likewise.
4289         * lib/getopt.in.h: Likewise.
4290         * lib/iconv.in.h: Likewise.
4291         * lib/langinfo.in.h: Likewise.
4292         * lib/locale.in.h: Likewise.
4293         * lib/math.in.h: Likewise.
4294         * lib/netdb.in.h: Likewise.
4295         * lib/netinet_in.in.h: Likewise.
4296         * lib/poll.in.h: Likewise.
4297         * lib/pthread.in.h: Likewise.
4298         * lib/pty.in.h: Likewise.
4299         * lib/sched.in.h: Likewise.
4300         * lib/se-selinux.in.h: Likewise.
4301         * lib/search.in.h: Likewise.
4302         * lib/signal.in.h: Likewise.
4303         * lib/spawn.in.h: Likewise.
4304         * lib/stdarg.in.h: Likewise.
4305         * lib/stddef.in.h: Likewise.
4306         * lib/stdint.in.h: Likewise.
4307         * lib/stdio.in.h: Likewise.
4308         * lib/stdlib.in.h: Likewise.
4309         * lib/string.in.h: Likewise.
4310         * lib/strings.in.h: Likewise.
4311         * lib/sys_file.in.h: Likewise.
4312         * lib/sys_ioctl.in.h: Likewise.
4313         * lib/sys_select.in.h: Likewise.
4314         * lib/sys_socket.in.h: Likewise.
4315         * lib/sys_stat.in.h: Likewise.
4316         * lib/sys_time.in.h: Likewise.
4317         * lib/sys_times.in.h: Likewise.
4318         * lib/sys_uio.in.h: Likewise.
4319         * lib/sys_utsname.in.h: Likewise.
4320         * lib/sys_wait.in.h: Likewise.
4321         * lib/sysexits.in.h: Likewise.
4322         * lib/termios.in.h: Likewise.
4323         * lib/time.in.h: Likewise.
4324         * lib/unistd.in.h: Likewise.
4325         * lib/wchar.in.h: Likewise.
4326         * lib/wctype.in.h: Likewise.
4327         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4328         * modules/ctype (Makefile.am): Likewise.
4329         * modules/dirent (Makefile.am): Likewise.
4330         * modules/errno (Makefile.am): Likewise.
4331         * modules/fcntl-h (Makefile.am): Likewise.
4332         * modules/float (Makefile.am): Likewise.
4333         * modules/getopt-posix (Makefile.am): Likewise.
4334         * modules/iconv-h (Makefile.am): Likewise.
4335         * modules/langinfo (Makefile.am): Likewise.
4336         * modules/locale (Makefile.am): Likewise.
4337         * modules/math (Makefile.am): Likewise.
4338         * modules/netdb (Makefile.am): Likewise.
4339         * modules/netinet_in (Makefile.am): Likewise.
4340         * modules/poll-h (Makefile.am): Likewise.
4341         * modules/pthread (Makefile.am): Likewise.
4342         * modules/pty (Makefile.am): Likewise.
4343         * modules/sched (Makefile.am): Likewise.
4344         * modules/search (Makefile.am): Likewise.
4345         * modules/selinux-h (Makefile.am): Likewise.
4346         * modules/signal (Makefile.am): Likewise.
4347         * modules/spawn (Makefile.am): Likewise.
4348         * modules/stdarg (Makefile.am): Likewise.
4349         * modules/stddef (Makefile.am): Likewise.
4350         * modules/stdint (Makefile.am): Likewise.
4351         * modules/stdio (Makefile.am): Likewise.
4352         * modules/stdlib (Makefile.am): Likewise.
4353         * modules/string (Makefile.am): Likewise.
4354         * modules/strings (Makefile.am): Likewise.
4355         * modules/sys_file (Makefile.am): Likewise.
4356         * modules/sys_ioctl (Makefile.am): Likewise.
4357         * modules/sys_select (Makefile.am): Likewise.
4358         * modules/sys_socket (Makefile.am): Likewise.
4359         * modules/sys_stat (Makefile.am): Likewise.
4360         * modules/sys_time (Makefile.am): Likewise.
4361         * modules/sys_times (Makefile.am): Likewise.
4362         * modules/sys_uio (Makefile.am): Likewise.
4363         * modules/sys_utsname (Makefile.am): Likewise.
4364         * modules/sys_wait (Makefile.am): Likewise.
4365         * modules/sysexits (Makefile.am): Likewise.
4366         * modules/termios (Makefile.am): Likewise.
4367         * modules/time (Makefile.am): Likewise.
4368         * modules/unistd (Makefile.am): Likewise.
4369         * modules/wchar (Makefile.am): Likewise.
4370         * modules/wctype-h (Makefile.am): Likewise.
4371         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4372
4373 2011-05-29  Bruno Haible  <bruno@clisp.org>
4374
4375         assert-h: Allow multiple gnulib generated replacements to coexist.
4376         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4377
4378 2011-05-29  Bruno Haible  <bruno@clisp.org>
4379
4380         argp: Allow coexistence with strerror_r-posix module.
4381         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4382         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4383         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4384         not the glibc signature.
4385
4386 2011-05-28  Bruno Haible  <bruno@clisp.org>
4387
4388         gnulib-tool: Alternative structure of testdirs, similar to --import.
4389         * gnulib-tool: New option --single-configure.
4390         (func_usage): Document it.
4391         (single_configure): New variable.
4392         (func_modules_transitive_closure_separately,
4393         func_modules_transitive_closure_separately,
4394         func_determine_use_libtests, func_modules_add_dummy_separately,
4395         func_modules_to_filelist_separately): New functions, extracted from
4396         func_import.
4397         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4398         (func_import): Use the new functions.
4399         (func_create_testdir): Set final_modules. Handle $single_configure =
4400         true case.
4401
4402 2011-05-28  Bruno Haible  <bruno@clisp.org>
4403
4404         getloadavg: Remove an unreliable safety check.
4405         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4406         getloadavg.c is in place.
4407         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4408         Reported by Sam Steingold <sds@gnu.org>.
4409
4410 2011-05-28  Bruno Haible  <bruno@clisp.org>
4411
4412         doc: Cleanup yet another file produced by texinfo.tex.
4413         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4414
4415 2011-05-28  Bruno Haible  <bruno@clisp.org>
4416
4417         Finish the conditional dependencies mechanism.
4418         * gnulib-tool: New option --no-conditional-dependencies.
4419         (func_usage): Document it. Don't mark --conditional-dependencies as
4420         experimental.
4421         (cond_dependencies): The possible values can now be true, false, empty.
4422         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4423         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4424         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4425
4426 2011-05-28  Bruno Haible  <bruno@clisp.org>
4427
4428         doc: Use a recent texinfo.tex.
4429         * doc/Makefile (tex_opts): New variable.
4430         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4431
4432 2011-05-28  Jim Meyering  <meyering@redhat.com>
4433
4434         intprops.h: adjust comment to match code change
4435         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4436         only once, it *may* have side effects.  Also fix an unrelated typo.
4437         (_GL_INT_SIGNED): Likewise.
4438
4439 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4440
4441         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4442
4443 2011-05-26  Bruno Haible  <bruno@clisp.org>
4444
4445         mbsrchr: Avoid collision with system function on Interix.
4446         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4447         Reported by Markus Duft <mduft@gentoo.org>.
4448
4449 2011-05-15  James Youngman  <jay@gnu.org>
4450
4451         getopt: for ambiguous options, enumerate the possibilities.
4452         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4453         the ambiguous options when an ambiguous prefix is given. This was
4454         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4455         glibc change was
4456         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4457
4458 2011-05-25  Eric Blake  <eblake@redhat.com>
4459
4460         getcwd: work around mingw bug
4461         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4462         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4463         Reported by Matthias Bolte.
4464
4465 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4466
4467         test-intprops: disable -Wtype-limits diagnostics
4468         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4469         diagnostics.  Otherwise, the integer overflow macros generate many
4470         diagnostics.  Reported by Jim Meyering in
4471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4472
4473         intprops: shorten, to pacify gcc -Woverlength-strings
4474         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4475         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4476         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4477         likely to run afoul of C compiler limits for string constant lengths.
4478         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4479
4480 2011-05-24  Eric Blake  <eblake@redhat.com>
4481
4482         docs: document recently fixed glibc printf bug
4483         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4484         * doc/posix-functions/printf.texi (printf): Likewise.
4485         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4486         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4487
4488         closein-tests: convert to init.sh
4489         * modules/closein-tests (Files): Add init.sh
4490         * tests/test-closein.sh Use it.
4491
4492         yesno-tests: convert to init.sh
4493         * modules/yesno-tests (Files): Add init.sh.
4494         * tests/test-yesno.sh: Use it.
4495
4496         atexit-tests: ensure reliable exit status
4497         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4498         Reported by Bruno Haible.
4499
4500 2011-05-24  Bruno Haible  <bruno@clisp.org>
4501
4502         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4503         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4504         gl_PREREQ_STRERROR_R invocations from here...
4505         * modules/strerror_r-posix (configure.ac): ... to here.
4506
4507 2011-05-24  Eric Blake  <eblake@redhat.com>
4508
4509         strerror_r: fix missing header
4510         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4511
4512         strerror_r: fix AIX test failures
4513         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4514         ERANGE failure.
4515
4516         strerror_r: fix Solaris test failures
4517         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4518         failures.
4519         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4520
4521         strerror_r: enforce POSIX recommendations
4522         * lib/strerror_r.c (safe_copy): New helper method.
4523         (strerror_r): Guarantee a non-empty string.
4524         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4525         recent POSIX rulings and to match our strerror guarantees.
4526         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4527
4528 2011-05-24  Jim Meyering  <meyering@redhat.com>
4529
4530         test-perror2.c: avoid warning about unused variable
4531         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4532
4533 2011-05-24  Eric Blake  <eblake@redhat.com>
4534
4535         perror: avoid spurious test failure on HP-UX
4536         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4537
4538         tests: fix logic bug in init.sh
4539         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4540         shell.
4541
4542 2011-05-24  Jim Meyering  <meyering@redhat.com>
4543
4544         utimensat: do not reference an out-of-scope buffer
4545         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4546         declared in an inner scope, yet "times" would be dereferenced outside
4547         the scope in which "ts" was valid.
4548         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4549         of ts[2] "out/up", so that the use of aliased "times" (via
4550         "times = ts;") does not end up referencing an out-of-scope "ts"
4551
4552         opendir-safer.c: don't clobber errno; don't close negative FD
4553         * lib/opendir-safer.c (opendir_safer):
4554         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4555         file descriptor, and more importantly, don't clobber the
4556         offending errno value with EINVAL.  Before, upon failure
4557         of dup_safer, we would pass the negative file descriptor to
4558         fdopendir, which would clobber errno.
4559
4560 2011-05-23  Bruno Haible  <bruno@clisp.org>
4561
4562         idcache: Fix module description.
4563         * modules/idcache (Include): Set to "idcache.h".
4564
4565 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4566
4567         gnulib-tool: fix portability problem with MacOS sed
4568         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4569         before the "}".  Problem reported by Leo in
4570         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4571         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4572         sed_extract_condition1, sed_extract_condition2.
4573
4574 2011-05-23  Bruno Haible  <bruno@clisp.org>
4575
4576         hash: Simplify autoconf macro.
4577         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4578
4579 2011-05-23  Bruno Haible  <bruno@clisp.org>
4580
4581         getugroups: Fix module description.
4582         * modules/getugroups (Include): Set to "getugroups.h".
4583
4584 2011-05-23  Bruno Haible  <bruno@clisp.org>
4585
4586         linkat: Simplify autoconf macro.
4587         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4588
4589 2011-05-23  Bruno Haible  <bruno@clisp.org>
4590             Eric Blake  <eblake@redhat.com>
4591
4592         linkat, renameat: Update dependencies.
4593         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4594         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4595         symlinkat.
4596
4597 2011-05-23  Jim Meyering  <meyering@redhat.com>
4598
4599         maint.mk: more tight_scope improvements
4600         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4601         (_gl_TS_headers): Define only in if-0'd block.
4602         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4603         sometimes we must *not* use it.  Adjust uses accordingly.
4604         (sc_tight_scope): Use much simpler grep-based test to determine
4605         whether we skip this rule.
4606
4607         maint.mk: generalize/improve the tight-scope rule
4608         * top/maint.mk: Emit a warning when the test is skipped.
4609         (_gl_TS_dir): Add $(srcdir)/ prefix.
4610         (_gl_TS_function_match): Simplify, rather than trying
4611         to enumerate common types.  Otherwise, it would fail to match an
4612         "extern unsigned char const *" declaration in idutils.
4613         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4614         a way to support use of that type of macro.
4615         (_gl_TS_var_match): Simplify regexp.
4616         (_gl_TS_obj_files): New configurable variable.
4617         (_gl_TS_headers): Likewise.
4618
4619 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4620
4621         verify: fix bug when gnulib <assert.h> is also included
4622         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4623         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4624         Perhaps there's a better way, but this fixes the immediate problem.
4625         Problem reported by Bruno Haible in
4626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4627
4628 2011-05-22  Bruno Haible  <bruno@clisp.org>
4629
4630         xgetcwd: Simplify autoconf macro.
4631         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4632
4633 2011-05-22  Bruno Haible  <bruno@clisp.org>
4634
4635         New module 'mktime-internal'.
4636         * modules/mktime-internal: New file.
4637         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4638         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4639         mktime_internal as a C macro if libc has __mktime_internal.
4640         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4641         conditions.
4642         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4643
4644 2011-05-22  Bruno Haible  <bruno@clisp.org>
4645
4646         timegm: Correct mktime replacement statements.
4647         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4648         defining mktime as a C macro. This completes a 2009-07-28 commit.
4649
4650 2011-05-22  Bruno Haible  <bruno@clisp.org>
4651
4652         timegm: Simplify autoconf macro.
4653         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4654
4655 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4656
4657         clock-time: change to LGPLv2+.
4658         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4659         BSD-like but we have no mark for that; this is good enough for now.
4660
4661 2011-05-21  Bruno Haible  <bruno@clisp.org>
4662
4663         strerror_r: Fix comments.
4664         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4665
4666 2011-05-21  Bruno Haible  <bruno@clisp.org>
4667
4668         relocatable-prog-wrapper: Fix possible link error.
4669         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4670         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4671         (gl_FUNC_SETENV): ... to here.
4672         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4673         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4674
4675 2011-05-21  Bruno Haible  <bruno@clisp.org>
4676
4677         relocatable-prog-wrapper: Assume strerror() exists.
4678         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4679         m4/strerror.m4.
4680         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4681         * lib/relocwrapper.c: Remove mention of strerror module.
4682         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4683         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4684         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4685         C macro.
4686
4687 2011-05-21  Bruno Haible  <bruno@clisp.org>
4688
4689         select: Simplify replacement idiom.
4690         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4691         Win32 platforms.
4692         * lib/sys_select.in.h (select): Simplify accordingly.
4693         * modules/select (Depends-on): Likewise.
4694
4695 2011-05-21  Bruno Haible  <bruno@clisp.org>
4696
4697         mkdir-p: Simplify autoconf macro.
4698         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4699         gl_FUNC_LCHOWN.
4700
4701 2011-05-21  Eric Blake  <eblake@redhat.com>
4702
4703         strerror_r: avoid clobbering strerror on cygwin
4704         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4705         fall back instead to sys_errlist.
4706         * modules/strerror (configure.ac): Add witness.
4707         * tests/test-strerror_r.c (main): Enhance test.
4708         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4709         * tests/test-perror2.c (main): Free memory before exit.
4710
4711 2011-05-21  Bruno Haible  <bruno@clisp.org>
4712
4713         mkdtemp: Use gnulib naming conventions.
4714         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4715         * modules/mkdtemp (configure.ac): Update.
4716
4717 2011-05-20  Eric Blake  <eblake@redhat.com>
4718
4719         strerror_r: avoid corrupting errno on Solaris
4720         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4721         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4722
4723         strerror_r: avoid compiler warning
4724         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4725
4726         strerror_r: simplify AIX code
4727         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4728
4729         test-perror: avoid spurious failure on FreeBSD
4730         * modules/perror-tests (Depends-on): Add strerror, now that
4731         strerror_r no longer pulls it in.
4732
4733 2011-05-20  Bruno Haible  <bruno@clisp.org>
4734
4735         strerror_r-posix: Remove unused dependencies.
4736         * modules/strerror_r-posix (Depends-on): Remove strerror.
4737         Reported by Eric Blake.
4738
4739 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4740
4741         intprops: remove assumption about A|B representation
4742         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4743         is a valid integer if both A and B are.  Although this is true for
4744         all known practical hosts, the C standard doesn't guarantee it,
4745         and the code need not assume it.  Also, this change may work around
4746         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4748
4749 2011-05-20  Eric Blake  <eblake@redhat.com>
4750
4751         perror: work around FreeBSD bug
4752         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4753         is broken.  Move AC_LIBOBJ...
4754         * modules/perror (configure.ac): Here.
4755         * doc/posix-functions/perror.texi (perror): Document this.
4756         * tests/test-perror2.c (main): Enhance test.
4757
4758         test-perror: check for strerror interactions
4759         * tests/macros.h (STREQ): Add macro.
4760         * modules/perror-tests (Files): Add second test.
4761         * tests/test-perror2.c (main): New file.
4762         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4763
4764         test-perror: rewrite to use init script
4765         * modules/perror-tests (Files): Add init.sh.
4766         * tests/test-perror.sh: Use temporary directory.
4767
4768 2011-05-20  Jim Meyering  <meyering@redhat.com>
4769
4770         maint: replace misused "a" with "an"
4771         * doc/intprops.texi: "a integer"
4772         * doc/regex.texi: "a explanation"
4773         * lib/alignof.h: "a object"
4774         * lib/argmatch.h: "a explanation"
4775         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4776         * lib/stdint.in.h: "a integer"
4777         * lib/userspec.c: "a owner"
4778         * doc/gnulib.texi: Fix "a idea", and reword.
4779
4780 2011-05-19  Jim Meyering  <meyering@redhat.com>
4781
4782         maint: correct misuse of "a" and "an"
4783         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
4784         * lib/argp-help.c: "an docum...": s/an/a/
4785         * lib/argp-parse.c: "An vector": s/An/A/
4786         * lib/execute.c: "an native": s/an/a/
4787         * lib/spawn-pipe.c: Likewise.
4788         * lib/gc.h: "an Gc_rc": s/an/a/
4789         * lib/unigbrk.in.h: "an grapheme": s/an/a/
4790         * lib/fts.c: "an stat.st_dev": s/an/a/
4791
4792 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4793
4794         intprops-tests: work around HP-UX 11.23 cc bug with constants
4795         * tests/test-intprops.c (VERIFY): New macro.
4796         (main): Use it, instead of verify, to work around the compiler bug; see
4797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4798
4799         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
4800         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
4801         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
4802         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
4803         (_GL_REMAINDER_OVERFLOW): Use it.
4804
4805         intprops-tests: revert unsigned part of previous change
4806         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
4807         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
4808         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
4809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
4810
4811 2011-05-19  Bruno Haible  <bruno@clisp.org>
4812
4813         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
4814         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
4815         strerror_r() returned without filling the buffer.
4816         Reported by Eric Blake.
4817
4818 2011-05-19  Eric Blake  <eblake@redhat.com>
4819
4820         strerror_r: guarantee unchanged errno
4821         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
4822         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
4823         failure.
4824         * tests/test-strerror_r.c (main): Enhance test.
4825
4826 2011-05-19  Bruno Haible  <bruno@clisp.org>
4827
4828         strerror_r: Reorder #if blocks.
4829         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
4830         for consistency with the previous commit.
4831
4832 2011-05-19  Bruno Haible  <bruno@clisp.org>
4833
4834         perror: Avoid clobbering the strerror buffer when possible.
4835         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
4836         * lib/strerror.c: Include it.
4837         * modules/strerror (Files): Add lib/strerror-impl.h.
4838         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
4839         (my_strerror): New function, defined through lib/strerror-impl.h.
4840         (perror): Use it instead of strerror.
4841         * modules/perror (Files): Add lib/strerror-impl.h.
4842         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
4843
4844 2011-05-19  Eric Blake  <eblake@redhat.com>
4845
4846         strerror_r: fix on newer cygwin
4847         * lib/strerror_r.c (strerror_r): Cygwin now has
4848         __xpg_strerror_r, use it.
4849
4850 2011-05-19  Bruno Haible  <bruno@clisp.org>
4851
4852         strerror_r: Avoid clobbering the strerror buffer when possible.
4853         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
4854         (sys_nerr, sys_errlist): New declarations.
4855         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
4856         HP-UX, native Win32, IRIX, and 32-bit Solaris.
4857         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
4858
4859 2011-05-19  Bruno Haible  <bruno@clisp.org>
4860
4861         strerror_r: Fix test failure on mingw.
4862         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
4863         EXTEND_STRERROR_R.
4864         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
4865         macros from errno.in.h instead.
4866
4867 2011-05-19  Eric Blake  <eblake@redhat.com>
4868
4869         strerror: relax test for Solaris
4870         * tests/test-strerror.c (main): Permit Solaris behavior.
4871         * tests/test-strerror_r.c (main): Likewise.
4872
4873         strerror: enforce POSIX ruling on strerror(0)
4874         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
4875         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4876         * lib/strerror_r.c (rpl_strerror_r): Work around it.
4877         * doc/posix-functions/strerror.texi (strerror): Document it.
4878         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
4879         * tests/test-strerror.c (main): Strengthen test.
4880         * tests/test-strerror_r.c (main): Likewise.
4881
4882 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4883
4884         intprop-tests: port to older and more-pedantic compilers
4885         * modules/intprops-tests (Files): Add tests/macros.h.
4886         * tests/test-intprops.c: Include macros.h.
4887         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
4888         it's no longer documented to expand to an integer constant expression.
4889         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
4890         argument is floating point, as it's no longer documented to expand
4891         to an integer constant expression in that case.
4892         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
4893         compiler bugs reported by Bruno Haible.  See
4894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4895         (U0, U1): New constants, to work around the same bugs.  Also,
4896         in tests, use e.g., "(unsigned int) 39" rather than "39u".
4897
4898         intprops: work around C compiler bugs
4899         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
4900         bug in Sun C 5.11 2010/08/13 and other compilers; see
4901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4902
4903         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
4904         * doc/intprops.texi (Integer Type Determination): Fix
4905         documentation for TYPE_IS_INTEGER: it returns an constant
4906         expression, not an integer constant expression.  Fix doc for
4907         TYPE_SIGNED: it returns an integer constant expression only if its
4908         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
4909         hardly worth documented that way....)
4910
4911 2011-05-18  Bruno Haible  <bruno@clisp.org>
4912
4913         strerror_r: Avoid clobbering the strerror buffer when possible.
4914         * lib/strerror_r.c (strerror_r): Merge the three implementations.
4915         Handle gnulib defined errno values here. When strerror() returns NULL
4916         or an empty string, return EINVAL.
4917         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
4918         gnulib defined errno values here.
4919         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
4920
4921 2011-05-18  Eric Blake  <eblake@redhat.com>
4922
4923         fnmatch: avoid compiler warning
4924         * lib/fnmatch_loop.c (FCT): Use correct type.
4925         Reported by Matthias Bolte.
4926
4927 2011-05-13  Jim Meyering  <meyering@redhat.com>
4928
4929         maint.mk: three new prohibit_<HDR>_without_use rules
4930         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
4931         (sc_prohibit_stdio-safer_without_use): Likewise.
4932         (sc_prohibit_xfreopen_without_use): Likewise.
4933
4934 2011-05-17  Jim Meyering  <meyering@redhat.com>
4935
4936         announce-gen: fail if the NEWS delta is empty
4937         If there's nothing noteworthy in NEWS, then either you forgot
4938         or you shouldn't be releasing.
4939         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
4940
4941 2011-05-17  Pádraig Brady <P@draigBrady.com>
4942
4943         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
4944         reserved symbols starting with double underscore from the check.
4945
4946 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4947
4948         intprops: add doc
4949         * doc/intprops.texi: New file, documenting intprops.
4950         * doc/gnulib.texi (Particular Modules): Include it.
4951
4952         verify: add doc to gnulib manual and fix example
4953         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
4954         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
4955         (Compile-time Assertions): Fix example so it can't overflow.
4956
4957 2011-05-17  Jim Meyering  <meyering@redhat.com>
4958
4959         warnings.m4: don't usurp save_CPPFLAGS variable name
4960         * m4/warnings.m4: Prefix local temporary variable name with gl_.
4961
4962         doc: fix typo
4963         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
4964
4965 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4966             Bruno Haible  <bruno@clisp.org>
4967
4968         doc: Tweak recent change.
4969         * README (Portability guidelines): Tweak new text.
4970         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
4971         Interix 6.1.
4972
4973 2011-05-16  Eric Blake  <eblake@redhat.com>
4974
4975         inttypes: avoid autoconf warning
4976         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
4977         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4978
4979 2011-05-16  Sam Steingold <sds@gnu.org>
4980         and Eric Blake  <eblake@redhat.com>
4981
4982         vc-list-files: accept multiple directory operands
4983         * build-aux/vc-list-files: Iterate over all remaining operands.
4984
4985 2011-05-16  Bruno Haible  <bruno@clisp.org>
4986
4987         Fix confusion regarding deprecated modules.
4988         * modules/calloc (Status, Notice): Mark module as deprecated, not
4989         obsolete.
4990         * modules/fnmatch-posix (Status, Notice): Likewise.
4991         * modules/getdate (Status, Notice): Likewise.
4992         * modules/getopt (Status, Notice): Likewise.
4993         * modules/malloc (Status, Notice): Likewise.
4994         * modules/pipe (Status, Notice): Likewise.
4995         * modules/realloc (Status, Notice): Likewise.
4996         * modules/rename-dest-slash (Status, Notice): Likewise.
4997         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
4998         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
4999         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
5000         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
5001         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
5002
5003 2011-05-16  Bruno Haible  <bruno@clisp.org>
5004
5005         doc: List the target platforms.
5006         * doc/gnulib-intro.texi (Target Platforms): New section.
5007         * doc/gnulib.texi (Introduction): Update menu.
5008         * README (Portability guidelines): Refer to the new section. Update
5009         statement about oldest supported environment. Remove rationale why
5010         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
5011         unportable C89 function.
5012         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
5013         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
5014
5015 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5016
5017         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
5018
5019 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5020
5021         intprops-tests: new module
5022         * modules/intprops-tests, tests/test-intprops.c: New files.
5023
5024         intprops: add safe, portable integer overflow checking
5025         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5026         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5027         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5028         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5029         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
5030         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
5031         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
5032         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
5033         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5034         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
5035         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
5036
5037 2011-05-12  James Youngman  <jay@gnu.org>
5038
5039         Add a test for glibc's Bugzilla bug #12378.
5040         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
5041         doesn't allow the literal matching of a lone "[" (which is
5042         required by POSIX).
5043         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
5044
5045 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5046
5047         Sync glibc change fixing Bugzilla bug #12378.
5048         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
5049         beginning and fall back to matching as normal character if the
5050         string ends before the matching ']' is found.  This is what POSIX
5051         requires.
5052
5053 2011-05-13  Eric Blake  <eblake@redhat.com>
5054
5055         getcwd-lgpl: relax test for FreeBSD
5056         * doc/posix-functions/getcwd.texi (getcwd): Document portability
5057         issue.
5058         * tests/test-getcwd-lgpl.c (main): Relax test.
5059         Reported by Matthias Bolte.
5060
5061 2011-05-11  Eric Blake  <eblake@redhat.com>
5062
5063         test-fflush: silence compiler warning
5064         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
5065
5066 2011-05-11  Bruno Haible  <bruno@clisp.org>
5067
5068         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
5069         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
5070         * modules/canonicalize (Depends-on): Add 'nocrash'.
5071         * modules/canonicalize-lgpl (Depends-on): Likewise.
5072         * doc/posix-functions/realpath.texi: Update platforms list.
5073         Reported by Ryan Schmidt <ryandesign@macports.org>.
5074
5075 2011-05-11  Bruno Haible  <bruno@clisp.org>
5076
5077         group-member: Declare function in <unistd.h>.
5078         * lib/unistd.in.h (group_member): New declaration.
5079         * lib/group-member.h: Remove file.
5080         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
5081         * tests/test-unistd-c++.cc: Check signature of group_member.
5082         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
5083         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
5084         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
5085         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
5086         HAVE_GROUP_MEMBER.
5087         * modules/group-member (Files): Remove lib/group-member.h.
5088         (Depends-on): Add unistd. Specify conditions.
5089         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5090         (Include): Change to <unistd.h>.
5091         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
5092         HAVE_GROUP_MEMBER.
5093         * NEWS: Mention the change.
5094         * lib/euidaccess.c: Don't include group-member.h.
5095
5096 2011-05-11  Bruno Haible  <bruno@clisp.org>
5097
5098         group-member: Document module.
5099         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
5100         module.
5101
5102 2011-05-11  Bruno Haible  <bruno@clisp.org>
5103
5104         fclose: Fix mistake earlier today.
5105         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
5106
5107 2011-05-11  Eric Blake  <eblake@redhat.com>
5108
5109         fclose: preserve fflush errors
5110         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
5111         Reported by Jim Meyering.
5112
5113         bootstrap: support a prereq of 'rpcgen -' on RHEL5
5114         * build-aux/bootstrap (check_versions): When no specific version
5115         is required, merely check that the app produces an exit status
5116         that indicates its existence.
5117
5118         maint.mk: drop redundant check
5119         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
5120         the same but better.
5121
5122 2011-05-11  Bruno Haible  <bruno@clisp.org>
5123
5124         fclose: Fix possible link error.
5125         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
5126         unregister_shadow_fd. Improve comments.
5127         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
5128         Eric Blake.
5129
5130 2011-05-11  Jim Meyering  <meyering@redhat.com>
5131
5132         maint.mk: improve "can not" detection and generalize rule name
5133         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
5134         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
5135         Use the same technique as in sc_prohibit_doubled_word, so that
5136         we recognize "can not" also when the words are separated by a newline.
5137         Suggested by Eric Blake.
5138         (perl_filename_lineno_text_): Define.  Factored out of...
5139         (prohibit_doubled_word_): ...here.  Use the new definition.
5140         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
5141         (prohibit_undesirable_word_seq_RE_): New overridable variable.
5142         (ignore_undesirable_word_sequence_RE_): New overridable variable.
5143
5144 2011-05-10  Eric Blake  <eblake@redhat.com>
5145
5146         fclose: avoid double close race when possible
5147         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
5148         all but WINDOWS_SOCKETS.
5149
5150 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
5151
5152         openat: correct new comment
5153         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5154
5155 2011-05-10  Jim Meyering  <meyering@redhat.com>
5156
5157         openat: add comments
5158         * lib/openat-proc.c (openat_proc_name): Add comments,
5159         mostly from Eric Blake.
5160
5161 2011-05-09  Eric Blake  <eblake@redhat.com>
5162
5163         openat: reduce syscalls in first probe of /proc
5164         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
5165         be a directory.  Simplify the probe for .. bugs.
5166         * modules/openat (Depends-on): Drop same-inode.
5167         Reported by Bastien ROUCARIES.
5168
5169 2011-05-09  Jim Meyering  <meyering@redhat.com>
5170
5171         maint.mk: change semantics/name of tight_scope variables
5172         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
5173         Rename variables to align with semantics that make them more useful.
5174
5175         maint.mk: tweak new rule's name not to impinge
5176         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
5177         (sc_tight_scope): Use new rule name rather than $@-0.
5178
5179         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
5180         * top/maint.mk (sc_tight_scope): New rule.
5181         (sc_tight_scope-0): New rule, ifdef'd out.
5182         (_gl_TS_dir): Default.
5183         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
5184         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
5185
5186 2011-05-09  Simon Josefsson  <simon@josefsson.org>
5187
5188         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
5189         Haible <bruno@clisp.org>.
5190
5191 2011-05-08  Bruno Haible  <bruno@clisp.org>
5192
5193         Comments.
5194         * m4/isnanf.m4: Add comment.
5195         * m4/isnanl.m4: Likewise.
5196
5197 2011-05-08  Bruno Haible  <bruno@clisp.org>
5198
5199         glob: Remove obsolete macro.
5200         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
5201
5202 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5203
5204         intprops: Sun C 5.11 supports __typeof__
5205         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
5206         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5207         which is new.
5208         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5209
5210         intprops: switch to usual gnulib indenting and naming
5211         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5212         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5213
5214         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5215
5216 2011-05-08  Jim Meyering  <meyering@redhat.com>
5217
5218         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5219         * top/maint.mk (release-prep): Use make's --no-print-directory
5220         option when generating the announcement.  This eliminates the
5221         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5222         generated announcement template.
5223
5224 2011-05-08  Bruno Haible  <bruno@clisp.org>
5225
5226         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5227         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5228         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5229
5230 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5231
5232         ignore-value, verify: Omit include files from lib_SOURCES.
5233         * modules/ignore-value, modules/verify (Makefile.am):
5234         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5235         that leads Automake to duplicate use of am__objects_... variables
5236         in Makefile.in.  See
5237         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5238
5239 2011-05-07  Bruno Haible  <bruno@clisp.org>
5240
5241         fclose: Simplify autoconf macro.
5242         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5243         defined.
5244
5245 2011-05-07  Bruno Haible  <bruno@clisp.org>
5246
5247         canonicalize-lgpl: Fix autoconf macro ordering bug.
5248         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5249         gl_STDLIB_H_DEFAULTS.
5250
5251 2011-05-06  Eric Blake  <eblake@redhat.com>
5252
5253         maintainer-makefile: make sc_po_check easier to tune
5254         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5255         to probe for strings, such as an alternate location for gnulib.
5256
5257         fclose: guarantee behavior on seekable stdin
5258         * modules/fclose (Depends-on): Add fflush.
5259         * doc/posix-functions/fclose.texi (fclose): Document this.
5260         * tests/test-fclose.c (main): Make test for this unconditional.
5261
5262 2011-05-06  Bruno Haible  <bruno@clisp.org>
5263
5264         fflush, fpurge: Relicense under LGPLv2+.
5265         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5266         * modules/fpurge (License): Likewise.
5267         With permission from Eric Blake and Jim Meyering.
5268         Suggested by Eric Blake.
5269
5270 2011-05-06  Karl Berry  <karl@gnu.org>
5271
5272         * MODULES.html.sh (func_all_modules): remove exit.
5273
5274 2011-05-06  Jim Meyering  <meyering@redhat.com>
5275
5276         maint.mk: use info-gnu@ as the default only for a stable release
5277         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5278         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5279         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5280         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5281
5282 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5283
5284         assert-h: new module, which supports C1X-style static_assert
5285         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5286         * lib/verify.h: Revamp so that this can be copied into assert.h,
5287         while retaining the ability to use it standalone as before.
5288         Rename private identifiers so as not to encroach on the
5289         standard C namespace, since this is now used by assert.h.
5290         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5291         the old verify_true.
5292         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5293         the old verify_true.  Use _GL_VERIFY_TYPE.
5294         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5295         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5296         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5297         defined when this file is copied into the replacement assert.h.
5298         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5299         and _Static_assert is not built in.
5300         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5301         defined, and use the new macros mentioned above.
5302         * doc/posix-headers/assert.texi: Document this.
5303
5304 2011-05-05  Bruno Haible  <bruno@clisp.org>
5305
5306         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5307         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5308         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5309         gl_REPLACE_FCLOSE here.
5310         * modules/fflush (Depends-on): Remove fclose.
5311         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5312         combination with module 'fclose'.
5313
5314 2011-05-05  Bruno Haible  <bruno@clisp.org>
5315
5316         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5317         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5318         gl_FUNC_FFLUSH.
5319         (gl_FUNC_FFLUSH): Use it.
5320         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5321         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5322         gl_REPLACE_FSEEKO here.
5323
5324 2011-05-05  Bruno Haible  <bruno@clisp.org>
5325
5326         tzset: Relicense under LGPL.
5327         * modules/tzset (License): Change to LGPL.
5328         No agreement needed; it's a no-op.
5329
5330         strtoimax, strtoumax: Relicense under LGPL.
5331         * modules/strtoimax (License): Change to LGPL.
5332         * modules/strtoumax (License): Likewise.
5333         With permission from Jim Meyering, Paul Eggert:
5334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5336
5337         getgroups: Relicense under LGPL.
5338         * modules/getgroups (License): Change to LGPL.
5339         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5343
5344         nanosleep: Relicense under LGPL.
5345         * modules/nanosleep (License): Change to LGPL.
5346         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5347         Haible:
5348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5352
5353         futimens: Relicense under LGPL.
5354         * modules/futimens (License): Change to LGPL.
5355         With permission from Eric Blake:
5356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5357
5358         fflush: Relicense under LGPL.
5359         * modules/fflush (License): Change to LGPL.
5360         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5364
5365         tmpfile: Relicense under LGPL.
5366         * modules/tmpfile (License): Change to LGPL.
5367         With permission from Ben Pfaff:
5368         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5369
5370         isfinite: Relicense under LGPL.
5371         * modules/isfinite (License): Change to LGPL.
5372         With permission from Ben Pfaff, Bruno Haible:
5373         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5375
5376         acosl..tanl: Relicense under LGPL.
5377         * modules/acosl (License): Change to LGPL.
5378         * modules/asinl (License): Likewise.
5379         * modules/atanl (License): Likewise.
5380         * modules/cosl (License): Likewise.
5381         * modules/expl (License): Likewise.
5382         * modules/logl (License): Likewise.
5383         * modules/sinl (License): Likewise.
5384         * modules/sqrtl (License): Likewise.
5385         * modules/tanl (License): Likewise.
5386         Source code originally from glibc and Paolo Bonzini. Agreements:
5387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5389
5390 2011-05-05  Bruno Haible  <bruno@clisp.org>
5391
5392         signal: Define sighandler_t.
5393         * lib/signal.in.h (sighandler_t): New type.
5394         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5395         whether sighandler_t is defined.
5396         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5397         * modules/signal (Depends-on): Add extensions.
5398         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5399         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5400         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5401
5402 2011-05-05  Eric Blake  <eblake@redhat.com>
5403
5404         maint: remove useless REPLACE_*_H macros
5405         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5406         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5407         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5408         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5409         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5410         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5411         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5412         * m4/btowc.m4: Update callers.
5413         * m4/dirfd.m4: Likewise.
5414         * m4/duplocale.m4: Likewise.
5415         * m4/fchdir.m4: Likewise.
5416         * m4/fdopendir.m4: Likewise.
5417         * m4/inet_ntop.m4: Likewise.
5418         * m4/inet_pton.m4: Likewise.
5419         * m4/ioctl.m4: Likewise.
5420         * m4/mbrlen.m4: Likewise.
5421         * m4/mbrtowc.m4: Likewise.
5422         * m4/mbsinit.m4: Likewise.
5423         * m4/mbsnrtowcs.m4: Likewise.
5424         * m4/mbsrtowcs.m4: Likewise.
5425         * m4/poll.m4: Likewise.
5426         * m4/setlocale.m4: Likewise.
5427         * m4/wcrtomb.m4: Likewise.
5428         * m4/wcsnrtombs.m4: Likewise.
5429         * m4/wcsrtombs.m4: Likewise.
5430         * m4/wctob.m4: Likewise.
5431         * m4/wcwidth.m4: Likewise.
5432         * modules/posix_spawn: Likewise.
5433         * modules/posix_spawn_file_actions_addclose: Likewise.
5434         * modules/posix_spawn_file_actions_adddup2: Likewise.
5435         * modules/posix_spawn_file_actions_addopen: Likewise.
5436         * modules/posix_spawn_file_actions_destroy: Likewise.
5437         * modules/posix_spawn_file_actions_init: Likewise.
5438         * modules/posix_spawnattr_destroy: Likewise.
5439         * modules/posix_spawnattr_getflags: Likewise.
5440         * modules/posix_spawnattr_getpgroup: Likewise.
5441         * modules/posix_spawnattr_getschedparam: Likewise.
5442         * modules/posix_spawnattr_getschedpolicy: Likewise.
5443         * modules/posix_spawnattr_getsigdefault: Likewise.
5444         * modules/posix_spawnattr_getsigmask: Likewise.
5445         * modules/posix_spawnattr_init: Likewise.
5446         * modules/posix_spawnattr_setflags: Likewise.
5447         * modules/posix_spawnattr_setpgroup: Likewise.
5448         * modules/posix_spawnattr_setschedparam: Likewise.
5449         * modules/posix_spawnattr_setschedpolicy: Likewise.
5450         * modules/posix_spawnattr_setsigdefault: Likewise.
5451         * modules/posix_spawnattr_setsigmask: Likewise.
5452         * modules/posix_spawnp: Likewise.
5453
5454 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5455
5456         Add option to do-release-commit-and-tag to specify branch.
5457         * build-aux/do-release-commit-and-tag: Add --branch.
5458
5459 2011-05-03  Bruno Haible  <bruno@clisp.org>
5460
5461         Avoid unnecessary compilation units, through conditional dependencies.
5462         * modules/accept (Depends-on): Add conditions to the dependencies.
5463         * modules/acosl (Depends-on): Likewise.
5464         * modules/argz (Depends-on): Likewise.
5465         * modules/asinl (Depends-on): Likewise.
5466         * modules/atanl (Depends-on): Likewise.
5467         * modules/atoll (Depends-on): Likewise.
5468         * modules/bind (Depends-on): Likewise.
5469         * modules/btowc (Depends-on): Likewise.
5470         * modules/canonicalize-lgpl (Depends-on): Likewise.
5471         * modules/ceil (Depends-on): Likewise.
5472         * modules/ceilf (Depends-on): Likewise.
5473         * modules/ceill (Depends-on): Likewise.
5474         * modules/chdir-long (Depends-on): Likewise.
5475         * modules/chown (Depends-on): Likewise.
5476         * modules/close (Depends-on): Likewise.
5477         * modules/connect (Depends-on): Likewise.
5478         * modules/cosl (Depends-on): Likewise.
5479         * modules/dirfd (Depends-on): Likewise.
5480         * modules/dprintf (Depends-on): Likewise.
5481         * modules/dprintf-posix (Depends-on): Likewise.
5482         * modules/error (Depends-on): Likewise.
5483         * modules/euidaccess (Depends-on): Likewise.
5484         * modules/expl (Depends-on): Likewise.
5485         * modules/faccessat (Depends-on): Likewise.
5486         * modules/fchdir (Depends-on): Likewise.
5487         * modules/fclose (Depends-on): Likewise.
5488         * modules/fcntl (Depends-on): Likewise.
5489         * modules/fdopendir (Depends-on): Likewise.
5490         * modules/fflush (Depends-on): Likewise.
5491         * modules/floor (Depends-on): Likewise.
5492         * modules/floorf (Depends-on): Likewise.
5493         * modules/floorl (Depends-on): Likewise.
5494         * modules/fnmatch (Depends-on): Likewise.
5495         * modules/fopen (Depends-on): Likewise.
5496         * modules/fprintf-posix (Depends-on): Likewise.
5497         * modules/frexp (Depends-on): Likewise.
5498         * modules/frexp-nolibm (Depends-on): Likewise.
5499         * modules/frexpl (Depends-on): Likewise.
5500         * modules/frexpl-nolibm (Depends-on): Likewise.
5501         * modules/fseek (Depends-on): Likewise.
5502         * modules/fsusage (Depends-on): Likewise.
5503         * modules/ftell (Depends-on): Likewise.
5504         * modules/ftello (Depends-on): Likewise.
5505         * modules/futimens (Depends-on): Likewise.
5506         * modules/getcwd (Depends-on): Likewise.
5507         * modules/getcwd-lgpl (Depends-on): Likewise.
5508         * modules/getdelim (Depends-on): Likewise.
5509         * modules/getdomainname (Depends-on): Likewise.
5510         * modules/getgroups (Depends-on): Likewise.
5511         * modules/gethostname (Depends-on): Likewise.
5512         * modules/getline (Depends-on): Likewise.
5513         * modules/getlogin_r (Depends-on): Likewise.
5514         * modules/getopt-posix (Depends-on): Likewise.
5515         * modules/getpeername (Depends-on): Likewise.
5516         * modules/getsockname (Depends-on): Likewise.
5517         * modules/getsockopt (Depends-on): Likewise.
5518         * modules/getsubopt (Depends-on): Likewise.
5519         * modules/getusershell (Depends-on): Likewise.
5520         * modules/glob (Depends-on): Likewise.
5521         * modules/grantpt (Depends-on): Likewise.
5522         * modules/iconv_open (Depends-on): Likewise.
5523         * modules/iconv_open-utf (Depends-on): Likewise.
5524         * modules/inet_ntop (Depends-on): Likewise.
5525         * modules/inet_pton (Depends-on): Likewise.
5526         * modules/ioctl (Depends-on): Likewise.
5527         * modules/isapipe (Depends-on): Likewise.
5528         * modules/isfinite (Depends-on): Likewise.
5529         * modules/isinf (Depends-on): Likewise.
5530         * modules/lchown (Depends-on): Likewise.
5531         * modules/ldexpl (Depends-on): Likewise.
5532         * modules/link (Depends-on): Likewise.
5533         * modules/linkat (Depends-on): Likewise.
5534         * modules/listen (Depends-on): Likewise.
5535         * modules/logl (Depends-on): Likewise.
5536         * modules/lstat (Depends-on): Likewise.
5537         * modules/mbrlen (Depends-on): Likewise.
5538         * modules/mbrtowc (Depends-on): Likewise.
5539         * modules/mbsinit (Depends-on): Likewise.
5540         * modules/mbsnrtowcs (Depends-on): Likewise.
5541         * modules/mbsrtowcs (Depends-on): Likewise.
5542         * modules/mbtowc (Depends-on): Likewise.
5543         * modules/memcmp (Depends-on): Likewise.
5544         * modules/mkdir (Depends-on): Likewise.
5545         * modules/mkdtemp (Depends-on): Likewise.
5546         * modules/mkfifo (Depends-on): Likewise.
5547         * modules/mkfifoat (Depends-on): Likewise.
5548         * modules/mknod (Depends-on): Likewise.
5549         * modules/mkostemp (Depends-on): Likewise.
5550         * modules/mkostemps (Depends-on): Likewise.
5551         * modules/mkstemp (Depends-on): Likewise.
5552         * modules/mkstemps (Depends-on): Likewise.
5553         * modules/mktime (Depends-on): Likewise.
5554         * modules/nanosleep (Depends-on): Likewise.
5555         * modules/open (Depends-on): Likewise.
5556         * modules/openat (Depends-on): Likewise.
5557         * modules/perror (Depends-on): Likewise.
5558         * modules/poll (Depends-on): Likewise.
5559         * modules/popen (Depends-on): Likewise.
5560         * modules/posix_spawn (Depends-on): Likewise.
5561         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5562         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5563         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5564         * modules/posix_spawnp (Depends-on): Likewise.
5565         * modules/pread (Depends-on): Likewise.
5566         * modules/printf-posix (Depends-on): Likewise.
5567         * modules/ptsname (Depends-on): Likewise.
5568         * modules/putenv (Depends-on): Likewise.
5569         * modules/pwrite (Depends-on): Likewise.
5570         * modules/readline (Depends-on): Likewise.
5571         * modules/readlink (Depends-on): Likewise.
5572         * modules/readlinkat (Depends-on): Likewise.
5573         * modules/recv (Depends-on): Likewise.
5574         * modules/recvfrom (Depends-on): Likewise.
5575         * modules/regex (Depends-on): Likewise.
5576         * modules/remove (Depends-on): Likewise.
5577         * modules/rename (Depends-on): Likewise.
5578         * modules/renameat (Depends-on): Likewise.
5579         * modules/rmdir (Depends-on): Likewise.
5580         * modules/round (Depends-on): Likewise.
5581         * modules/roundf (Depends-on): Likewise.
5582         * modules/roundl (Depends-on): Likewise.
5583         * modules/rpmatch (Depends-on): Likewise.
5584         * modules/select (Depends-on): Likewise.
5585         * modules/send (Depends-on): Likewise.
5586         * modules/sendto (Depends-on): Likewise.
5587         * modules/setenv (Depends-on): Likewise.
5588         * modules/setlocale (Depends-on): Likewise.
5589         * modules/setsockopt (Depends-on): Likewise.
5590         * modules/shutdown (Depends-on): Likewise.
5591         * modules/sigaction (Depends-on): Likewise.
5592         * modules/signbit (Depends-on): Likewise.
5593         * modules/sigprocmask (Depends-on): Likewise.
5594         * modules/sinl (Depends-on): Likewise.
5595         * modules/sleep (Depends-on): Likewise.
5596         * modules/snprintf (Depends-on): Likewise.
5597         * modules/snprintf-posix (Depends-on): Likewise.
5598         * modules/socket (Depends-on): Likewise.
5599         * modules/sprintf-posix (Depends-on): Likewise.
5600         * modules/sqrtl (Depends-on): Likewise.
5601         * modules/stat (Depends-on): Likewise.
5602         * modules/strchrnul (Depends-on): Likewise.
5603         * modules/strdup-posix (Depends-on): Likewise.
5604         * modules/strerror (Depends-on): Likewise.
5605         * modules/strerror_r-posix (Depends-on): Likewise.
5606         * modules/strndup (Depends-on): Likewise.
5607         * modules/strnlen (Depends-on): Likewise.
5608         * modules/strptime (Depends-on): Likewise.
5609         * modules/strsep (Depends-on): Likewise.
5610         * modules/strsignal (Depends-on): Likewise.
5611         * modules/strstr-simple (Depends-on): Likewise.
5612         * modules/strtod (Depends-on): Likewise.
5613         * modules/strtoimax (Depends-on): Likewise.
5614         * modules/strtok_r (Depends-on): Likewise.
5615         * modules/strtoumax (Depends-on): Likewise.
5616         * modules/symlink (Depends-on): Likewise.
5617         * modules/symlinkat (Depends-on): Likewise.
5618         * modules/tanl (Depends-on): Likewise.
5619         * modules/tcgetsid (Depends-on): Likewise.
5620         * modules/tmpfile (Depends-on): Likewise.
5621         * modules/trunc (Depends-on): Likewise.
5622         * modules/truncf (Depends-on): Likewise.
5623         * modules/truncl (Depends-on): Likewise.
5624         * modules/uname (Depends-on): Likewise.
5625         * modules/unlink (Depends-on): Likewise.
5626         * modules/unlockpt (Depends-on): Likewise.
5627         * modules/unsetenv (Depends-on): Likewise.
5628         * modules/usleep (Depends-on): Likewise.
5629         * modules/utimensat (Depends-on): Likewise.
5630         * modules/vasprintf (Depends-on): Likewise.
5631         * modules/vdprintf (Depends-on): Likewise.
5632         * modules/vdprintf-posix (Depends-on): Likewise.
5633         * modules/vfprintf-posix (Depends-on): Likewise.
5634         * modules/vprintf-posix (Depends-on): Likewise.
5635         * modules/vsnprintf (Depends-on): Likewise.
5636         * modules/vsnprintf-posix (Depends-on): Likewise.
5637         * modules/vsprintf-posix (Depends-on): Likewise.
5638         * modules/wcrtomb (Depends-on): Likewise.
5639         * modules/wcscasecmp (Depends-on): Likewise.
5640         * modules/wcscspn (Depends-on): Likewise.
5641         * modules/wcsdup (Depends-on): Likewise.
5642         * modules/wcsncasecmp (Depends-on): Likewise.
5643         * modules/wcsnrtombs (Depends-on): Likewise.
5644         * modules/wcspbrk (Depends-on): Likewise.
5645         * modules/wcsrtombs (Depends-on): Likewise.
5646         * modules/wcsspn (Depends-on): Likewise.
5647         * modules/wcsstr (Depends-on): Likewise.
5648         * modules/wcstok (Depends-on): Likewise.
5649         * modules/wcswidth (Depends-on): Likewise.
5650         * modules/wctob (Depends-on): Likewise.
5651         * modules/wctomb (Depends-on): Likewise.
5652         * modules/wctype (Depends-on): Likewise.
5653         * modules/wcwidth (Depends-on): Likewise.
5654         * modules/write (Depends-on): Likewise.
5655
5656 2011-05-03  Bruno Haible  <bruno@clisp.org>
5657
5658         Support for conditional dependencies.
5659         * doc/gnulib.texi (Module description): Document the syntax of
5660         conditional dependencies.
5661         * gnulib-tool: New option --conditional-dependencies.
5662         (func_usage): Document it.
5663         (cond_dependencies): New variable.
5664         (func_get_automake_snippet_conditional,
5665         func_get_automake_snippet_unconditional): New functions, extracted from
5666         func_get_automake_snippet.
5667         (func_get_automake_snippet): Use them.
5668         (sed_first_32_chars): New variable.
5669         (func_module_shellfunc_name): New function.
5670         (func_module_shellvar_name): New function.
5671         (func_module_conditional_name): New function.
5672         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5673         func_cond_module_condition): New functions.
5674         (func_modules_transitive_closure): Add support for conditional
5675         dependencies.
5676         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5677         conditional automake snippet in an automake conditional.
5678         (func_emit_autoconf_snippets): Emit shell functions that contain the
5679         code for conditional modules.
5680         (func_import, func_create_testdir): Update specification.
5681
5682 2011-05-03  Eric Blake  <eblake@redhat.com>
5683
5684         test-getaddrinfo: report error information
5685         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5686
5687 2011-05-03  Jim Meyering  <meyering@redhat.com>
5688
5689         bootstrap: avoid build failure when $GZIP is set
5690         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5691         program name.  If defined at all, it is supposed to list gzip options.
5692         Reported by Alan Curry in http://debbugs.gnu.org/8609
5693
5694 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5695
5696         readme-release: new module with release instructions
5697         * modules/readme-release: New module.
5698         * top/README-release: New file, from coreutils, grep, diffutils.
5699         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5700
5701 2011-05-02  Eric Blake  <eblake@redhat.com>
5702
5703         fflush: also replace fclose when fixing fflush
5704         * modules/fflush (Depends-on): Add fclose.
5705         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5706         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5707         memstreams with no backing fd.
5708         * doc/posix-functions/fclose.texi (fclose): Document the use of
5709         fflush module to fix the bug.
5710         * tests/test-fclose.c (main): Relax test when fclose is used in
5711         isolation.
5712
5713         fclose: add some tests
5714         * modules/fclose-tests: New test module.
5715         * tests/test-fclose.c: New file.
5716         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5717
5718         fclose: reduced dependencies
5719         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5720         simpler lseek.
5721         * lib/fclose.c (rpl_fclose): Likewise.
5722         Reported by Simon Josefsson.
5723
5724         exit: drop remaining clients
5725         * modules/argmatch (Depends-on): Replace exit with stdlib.
5726         * modules/copy-file (Depends-on): Likewise.
5727         * modules/execute (Depends-on): Likewise.
5728         * modules/exitfail (Depends-on): Likewise.
5729         * modules/obstack (Depends-on): Likewise.
5730         * modules/pagealign_alloc (Depends-on): Likewise.
5731         * modules/pipe-filter-gi (Depends-on): Likewise.
5732         * modules/pipe-filter-ii (Depends-on): Likewise.
5733         * modules/savewd (Depends-on): Likewise.
5734         * modules/spawn-pipe (Depends-on): Likewise.
5735         * modules/wait-process (Depends-on): Likewise.
5736         * modules/xsetenv (Depends-on): Likewise.
5737         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5738         * modules/git-merge-changelog (Depends-on): Likewise.
5739         * modules/long-options (Depends-on): Likewise.
5740         * modules/pt_chown (Depends-on): Likewise.
5741         * modules/sysexits (Depends-on): Likewise.
5742
5743         freading: relax license from LGPLv3+ to LGPLv2+
5744         * modules/freading (License): Relax LGPL version.
5745
5746 2011-05-02  Bruno Haible  <bruno@clisp.org>
5747
5748         fchdir: Remove unused dependencies.
5749         * modules/fchdir (Depends-on): Remove include_next.
5750
5751 2011-05-02  Bruno Haible  <bruno@clisp.org>
5752
5753         gnulib-tool: Refactor.
5754         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5755         from func_emit_autoconf_snippets.
5756         (func_emit_autoconf_snippets): Use it.
5757
5758 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5759
5760         * NEWS: Document removal of 'exit'.
5761         * modules/exit: Remove file.
5762
5763 2011-05-01  Bruno Haible  <bruno@clisp.org>
5764
5765         Update DEPENDENCIES.
5766         * DEPENDENCIES (gettext): Recommend the newest release.
5767         Reported by Simon Josefsson.
5768
5769 2011-05-01  Bruno Haible  <bruno@clisp.org>
5770
5771         gnulib-tool: Reduce code duplication.
5772         * gnulib-tool (func_emit_autoconf_snippets): New function.
5773         (func_import, func_create_testdir): Use it.
5774
5775 2011-04-30  Eric Blake  <eblake@redhat.com>
5776
5777         fclose: don't fail on non-seekable input stream
5778         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5779         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
5780         since fflush is allowed to fail in that case.
5781
5782 2011-04-30  Bruno Haible  <bruno@clisp.org>
5783
5784         dup3: cleanup
5785         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
5786
5787 2011-04-30  Bruno Haible  <bruno@clisp.org>
5788
5789         netdb: Make it work in C++ mode.
5790         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
5791         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
5792         module.
5793         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
5794         gl_MODULE_INDICATOR_FOR_TESTS.
5795         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
5796         * modules/netdb-c++-tests: New file.
5797         * tests/test-netdb-c++.cc: New file.
5798
5799 2011-04-30  Bruno Haible  <bruno@clisp.org>
5800
5801         New modules 'vfscanf', 'vscanf'.
5802         * modules/vfscanf: New file.
5803         * modules/vscanf: New file.
5804         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
5805         here.
5806         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
5807         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
5808
5809 2011-04-30  Bruno Haible  <bruno@clisp.org>
5810
5811         passfd: Add comments.
5812         * lib/passfd.c: Add comments about platforms.
5813
5814 2011-04-30  Bruno Haible  <bruno@clisp.org>
5815
5816         sys_uio: Make <sys/uio.h> self-contained.
5817         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
5818         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
5819
5820 2011-04-30  Bruno Haible  <bruno@clisp.org>
5821
5822         sys_socket: Ensure 'struct iovec' definition.
5823         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
5824         <sys/socket.h>.
5825         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
5826
5827 2011-04-30  Bruno Haible  <bruno@clisp.org>
5828
5829         sys_uio: Protect definition of 'struct iovec'.
5830         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
5831         it as a C struct.
5832
5833 2011-04-30  Bruno Haible  <bruno@clisp.org>
5834
5835         manywarnings: fix indentation
5836         * m4/manywarnings.m4: Indent by 2 spaces consistently.
5837
5838 2011-04-30  Pádraig Brady <P@draigBrady.com>
5839
5840         manywarnings: add -Wno-missing-field-initializers if needed.
5841         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
5842         option if it's needed to allow initialization with { 0, }
5843
5844 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
5845
5846         announce-gen: cosmetic improvement
5847         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
5848
5849 2011-04-29  Jim Meyering  <meyering@redhat.com>
5850
5851         vc-list-files: indent with spaces, not TABs
5852         * build-aux/vc-list-files: Convert leading TABs to spaces,
5853         to match the style of most other files in gnulib.
5854
5855         announce-gen: indent with spaces, not TABs
5856         * build-aux/announce-gen: Convert all TABs to spaces, to match
5857         the style of most other files in gnulib.
5858
5859 2011-04-29  Eric Blake  <eblake@redhat.com>
5860
5861         quotearg: avoid uninitialized variable use
5862         * lib/quotearg.c (quoting_options_from_style): Initialize
5863         remaining fields, and ensure that custom styles are only used via
5864         quoting_options rather than quoting_style.
5865
5866 2011-04-29  Jim Meyering  <meyering@redhat.com>
5867
5868         maint.mk: remove unused VC-tag variable
5869         * top/maint.mk (VC-tag): Remove unused variable.
5870
5871 2011-04-29  Bruno Haible  <bruno@clisp.org>
5872
5873         netdb: fix gai_strerror replacements
5874         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
5875         * modules/netdb: Substitute it.
5876
5877 2011-04-29  Jim Meyering  <meyering@redhat.com>
5878
5879         test-getcwd.c: avoid new set-but-not-used warning
5880         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5881         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
5882         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
5883         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
5884
5885         test-hash.c: avoid a new shadowing warning
5886         * tests/test-hash.c (main): Don't shadow "dup".
5887
5888 2011-04-28  Eric Blake  <eblake@redhat.com>
5889
5890         getaddrinfo: fix gai_strerror signature
5891         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
5892         and work around mingw with UNICODE defined.
5893         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
5894         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
5895         * modules/netdb (Makefile.am): Substitute it.
5896         * lib/netdb.in.h (gai_strerror): Declare replacement.
5897         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
5898         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
5899         the fix.
5900
5901         getsockopt: avoid compiler warning
5902         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
5903         Reported by Matthias Bolte.
5904
5905         tests: drop unused link dependency
5906         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
5907         * modules/dirent-safer-tests (Makefile.am): Likewise.
5908         * modules/fdopendir-tests (Makefile.am): Likewise.
5909         * modules/mkfifoat-tests (Makefile.am): Likewise.
5910         * modules/openat-safer-tests (Makefile.am): Likewise.
5911         * modules/openat-tests (Makefile.am): Likewise.
5912         * modules/readlinkat-tests (Makefile.am): Likewise.
5913         * modules/symlinkat-tests (Makefile.am): Likewise.
5914         * modules/linkat-tests (Makefile.am): Likewise.
5915         (Depends-on): Switch to filenamecat-lgpl.
5916         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
5917         LIBINTL.
5918         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
5919         * tests/test-linkat.c (main): Don't require xalloc.
5920
5921         hash, mgetgroups: drop xalloc dependency
5922         * lib/hash.c (includes): Adjust includes.
5923         * lib/mgetgroups.c (includes): Likewise.
5924         (xgetgroups): Move...
5925         * lib/xgetgroups.c: ...to new file.
5926         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
5927         * modules/xgetgroups: New file, split from...
5928         * modules/mgetgroups: ...here.
5929         (Depends-on): Add xalloc-oversized.
5930         * modules/hash (Depends-on): Likewise.
5931         * modules/hash-tests (Depends-on): Drop xalloc.
5932         (test_hash_LDADD): Drop unused library.
5933         * tests/test-hash.c (main): Break xalloc dependency.
5934         (includes): Drop unused include.
5935
5936         xalloc-oversized: new module
5937         * modules/xalloc-oversized: New module.
5938         * modules/xalloc (Depends-on): Add it.
5939         * lib/xalloc.h (xalloc_oversized): Move...
5940         * lib/xalloc-oversized.h: ...into new file.
5941
5942         utimecmp: drop dependency on xmalloc
5943         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
5944         due to memory pressure.
5945         * modules/utimecmp (Depends-on): Drop xalloc.
5946
5947 2011-04-27  Eric Blake  <eblake@redhat.com>
5948
5949         getcwd: fix mingw bugs
5950         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
5951         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
5952         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
5953
5954 2011-04-27  Bruno Haible  <bruno@clisp.org>
5955
5956         mkstemps: Ensure declaration on MacOS X 10.5.
5957         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
5958         * doc/glibc-functions/mkstemps.texi: Document header file problem on
5959         MacOS X.
5960
5961 2011-04-27  Bruno Haible  <bruno@clisp.org>
5962
5963         mkstemp: More documentation.
5964         * doc/posix-functions/mkstemp.texi: Document header file problem on
5965         MacOS X.
5966
5967 2011-04-27  Bruno Haible  <bruno@clisp.org>
5968
5969         mkstemp: Tweak configure message when cross-compiling.
5970         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
5971         result as a guess.
5972
5973 2011-04-27  Bruno Haible  <bruno@clisp.org>
5974
5975         clean-temp: Clarify what it does.
5976         * lib/clean-temp.h: Add more comments.
5977         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
5978         module.
5979         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
5980         * doc/glibc-functions/mkstemps.texi: Likewise.
5981         * doc/glibc-functions/mkostemps.texi: Likewise.
5982
5983 2011-04-27  Eric Blake  <eblake@redhat.com>
5984
5985         fchdir: avoid extra chdir and fix test
5986         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
5987         getcwd-lgpl.
5988         * lib/fchdir.c (get_name): Any absolute name will do; it does not
5989         have to be canonical.
5990         (canonicalize_file_name): Drop unused macro.
5991         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
5992
5993         filenamecat-lgpl: fix licence
5994         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
5995         when it was first created.
5996
5997         linkat, renameat: add missing dependency
5998         * modules/linkat (Depends-on): Require getcwd-lgpl.
5999         * modules/renameat (Depends-on): Likewise.
6000
6001         tests: reduce dependencies
6002         * tests/test-linkat.c (main): Use lighter-weight getcwd.
6003         * tests/test-renameat.c (main): Likewise.
6004         * modules/linkat-tests (Depends-on): Relax dependency.
6005         * modules/renameat-tests (Depends-on): Likewise.
6006         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
6007         dependency explicit.
6008
6009         save-cwd: reduce default dependency
6010         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
6011         * lib/save-cwd.c: Update comments.
6012         * NEWS: Document the semantic change.
6013
6014         getcwd: enhance tests
6015         * tests/test-getcwd-lgpl.c: New file, taken from...
6016         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
6017         repeat long path stress tests from m4 probe.
6018         * modules/getcwd-lgpl-tests: New module.
6019         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
6020         * m4/getcwd-abort-bug.m4: Update comment.
6021         * m4/getcwd-path-max.m4: Likewise.
6022
6023         getcwd-lgpl: new module
6024         * modules/getcwd-lgpl: New module.
6025         * lib/getcwd-lgpl.c: New file.
6026         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6027         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6028         * modules/getcwd (configure.ac): Set C witness.
6029         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
6030
6031         getcwd: tweak comments
6032         * m4/getcwd-abort-bug.m4: Fix comments.
6033         * m4/getcwd-path-max.m4: Likewise.
6034         * m4/getcwd.m4: Likewise.
6035
6036 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6037         and Eric Blake  <eblake@redhat.com>
6038
6039         mkstemp: replace if system version uses wrong permissions
6040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6041         read/write mode bits set in file created by mkstemp.
6042         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
6043
6044 2011-04-27  Eric Blake  <eblake@redhat.com>
6045
6046         passfd: avoid compiler warning
6047         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
6048         Reported by Laine Stump.
6049
6050 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
6051
6052         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
6053         required by the NetBSD (and perhaps other 4.4BSD derived) join.
6054
6055 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6056         and Eric Blake  <eblake@redhat.com>
6057
6058         mkstemp: mention clean-temp module
6059         * lib/mkstemp.c: Add comment.
6060         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
6061
6062 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6063
6064         inttypes: also provide default values for 32-bit tests
6065         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
6066         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6067
6068 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6069
6070         strtoumax: remove dependency on strtoimax
6071         This is like the strtoull change of yesterday.
6072         * modules/strtoumax (Files): Add lib/strtoimax.c.
6073         (Depends-on): Remove strtoimax and add verify.
6074
6075         inttypes-incomplete: new module
6076         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
6077         all but the PRI* and SCN* parts of gl_INTTYPES_H.
6078         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
6079         of gl_INTTYPES_H.
6080         (gl_INTTYPES_H): Rewrite in terms of these new macros.
6081         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
6082         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
6083         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
6084         * modules/strtoumax, modules/xstrtol (Depends-on):
6085         Depend on inttypes-incomplete, not inttypes.
6086         * modules/inttypes-incomplete: New module, containing the contents
6087         of the old modules/inttypes module, except that the Files: section
6088         omits m4/inttypes-pri.m4, and the configure.ac section invokes
6089         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
6090         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
6091         (Depends-on): Depend only on inttypes-incomplete.
6092         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
6093
6094         inttypes: omit now-redundant strtoimax and strtoumax work
6095         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
6096         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
6097
6098         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
6099         This supports apps that need pointers to strtoimax and strtoumax,
6100         and ports to HP-UX 11.00 64.bit, which has macros that expand to
6101         nonexistent functions.  See
6102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
6103         et seq.
6104         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
6105         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
6106         a macro.
6107         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6108
6109 2011-04-25  Simon Josefsson  <simon@josefsson.org>
6110
6111         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
6112
6113 2011-04-25  Bruno Haible  <bruno@clisp.org>
6114
6115         strtol, strtoul: Mark modules as obsolete.
6116         * modules/strtol (Status, Notice): New sections.
6117         * modules/strtoul (Status, Notice): New sections.
6118
6119 2011-04-25  Bruno Haible  <bruno@clisp.org>
6120
6121         strtod: Remove check for strtod, unless supporting old platforms.
6122         * modules/strtod-obsolete: New file.
6123         * m4/strtod-obsolete.m4: New file.
6124         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
6125         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
6126         * modules/strtod (Depends-on): Add strtod-obsolete.
6127         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
6128
6129 2011-04-25  Bruno Haible  <bruno@clisp.org>
6130
6131         strcase: Make module obsolete.
6132         * modules/strcase (Status, Notice): New sections.
6133
6134 2011-04-25  Bruno Haible  <bruno@clisp.org>
6135
6136         dup2: Remove check for dup2, unless supporting old obsolete platforms.
6137         * modules/dup2-obsolete: New file.
6138         * m4/dup2-obsolete.m4: New file.
6139         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
6140         gl_FUNC_DUP2_OBSOLETE is not also defined.
6141         * modules/dup2 (Depends-on): Add dup2-obsolete.
6142         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
6143
6144 2011-04-25  Bruno Haible  <bruno@clisp.org>
6145
6146         strnlen: Avoid memchr related link error on old obsolete platforms.
6147         * modules/memchr-obsolete: New file.
6148         * m4/memchr-obsolete.m4: New file.
6149         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
6150         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
6151         * modules/memchr (Depends-on): Add memchr-obsolete.
6152         * modules/strnlen (Depends-on): Likewise.
6153         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
6154
6155 2011-04-25  Jim Meyering  <meyering@redhat.com>
6156
6157         maint.mk: makefile_at_at_check extend and clean up
6158         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
6159         in addition to */Makefile.am.
6160         Exempt legitimate uses of @VAR@ notation, e.g.,
6161         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
6162         Remove obsolete coreutils-specific comment.
6163         Prompted by discussion here:
6164         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
6165
6166 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6167
6168         strtoul: remove dependency on strtol
6169         This is so that 'configure' need not check for strtol merely because
6170         the application needs strtoul.
6171         * modules/strtoul (Files): Add lib/strtol.c.
6172         (Depends-on): Remove strtol.
6173
6174         strtoull: remove dependency on strtoul
6175         This is like the strtoll change.
6176         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
6177         (Depends-on): Remove strtoul.
6178
6179         strtoll: remove dependency on strtol
6180         This is so that 'configure' need not check for strtol merely because
6181         the application needs strtoll.
6182         * modules/strtoll (Files): Add lib/strtol.c.
6183         (Depends-on): Remove strtol.
6184
6185 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6186
6187         inttypes: Move some configure check to module 'imaxdiv'.
6188         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
6189         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
6190         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
6191
6192 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6193
6194         inttypes: Move some configure check to module 'imaxabs'.
6195         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
6196         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6197         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
6198
6199 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6200
6201         inttypes: Remove configure tests that are not needed since 2009-12-31.
6202         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
6203         gl_cv_header_working_inttypes_h.
6204
6205 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6206
6207         * modules/strnlen (Depends-on): Remove memchr.
6208         The strnlen implementation doesn't need the memchr module's fixes; see
6209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6210
6211         strtol: remove dependency on wchar
6212         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6213         * modules/strtol (Depends-on): Remove wchar.
6214
6215 2011-04-21  Eric Blake  <eblake@redhat.com>
6216
6217         passfd: fix test regression on Linux
6218         * modules/passfd-tests (configure.ac): Correct socketpair check.
6219
6220         passfd: speed up configure and drop unused code
6221         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6222         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6223         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6224         Instead of probing at configure for unix_scm_rights_bsd44_way,
6225         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6226         check to a struct member probe.
6227         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6228         (sendfd, recvfd): Update preprocessor checks.
6229         * modules/passfd (Files): Reflect rename, and drop unused file.
6230         (Depends-on): Drop unused dependency.
6231
6232         passfd: allow compilation on mingw
6233         * modules/sys_socket (Depends-on): Add sys_uio.
6234         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6235         iovec and a minimal struct msghdr.
6236         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6237         * tests/test-sys_socket.c (main): Enhance test.
6238         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6239         guaranteed to provide what we need.
6240         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6241         * modules/passfd-tests (Depends-on): Add sys_wait.
6242         * tests/test-passfd.c (main): Skip test on mingw, for now.
6243         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6244         partial 'struct msghdr' implementation.
6245
6246         sys_uio: new module
6247         * modules/sys_uio: New module.
6248         * modules/sys_uio-tests: Likewise.
6249         * lib/sys_uio.in.h: New file.
6250         * m4/sys_uio_h.m4: Likewise.
6251         * tests/test-sys_uio.c: Likewise.
6252         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6253         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6254
6255 2011-04-20  Jim Meyering  <meyering@redhat.com>
6256
6257         useless-if-before-free: avoid false-positive
6258         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6259         disjunct so that it too requires a terminating ";".  Without that,
6260         this script would identify as useless one statement from gcc that
6261         was not:
6262           if (aligned_ptr)
6263             free (((void **) aligned_ptr) [-1]);
6264
6265 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6266
6267         doc: update users.txt.
6268         * users.txt: Add barcode.
6269
6270 2011-04-19  Bruno Haible  <bruno@clisp.org>
6271
6272         ioctl: Remove link dependency on native Windows.
6273         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6274         (gl_close_fn, gl_ioctl_fn): New types.
6275         (struct fd_hook): Renamed from struct close_hook. Change type of
6276         private_close_fn field. Add private_ioctl_fn field.
6277         (close_hook_fn): Add parameter for primary close method.
6278         (execute_close_hooks, execute_all_close_hooks): Likewise.
6279         (ioctl_hook_fn): New type.
6280         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6281         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6282         argument.
6283         (unregister_fd_hook): Renamed from unregister_close_hook.
6284         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6285         Don't include <unistd.h>.
6286         (close): Remove undef.
6287         (anchor): Update.
6288         (execute_close_hooks): Add argument for primary close method.
6289         (execute_all_close_hooks): Likewise.
6290         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6291         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6292         argument. Allow each argument to be NULL.
6293         (unregister_fd_hook): Renamed from unregister_close_hook.
6294         * lib/close.c (rpl_close): Pass 'close' function pointer to
6295         execute_all_close_hooks.
6296         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6297         (primary_ioctl): New function.
6298         (ioctl): Don't call ioctlsocket here. Instead, call
6299         execute_all_ioctl_hooks.
6300         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6301         close method.
6302         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6303         (fd_sockets_hook): Renamed from close_sockets_hook.
6304         (gl_sockets_startup, gl_sockets_cleanup): Update.
6305         * modules/fd-hook: Renamed from modules/close-hook. Update.
6306         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6307         * modules/sockets (Depends-on): Likewise.
6308         * modules/ioctl (Depends-on): Add fd-hook.
6309         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6310         GNULIB_SOCKET.
6311
6312 2011-04-19  Bruno Haible  <bruno@clisp.org>
6313
6314         Move the support of O_NONBLOCK in open() to the 'open' module.
6315         * modules/nonblocking (Depends-on): Remove 'open'.
6316         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6317         gl_cv_have_open_O_NONBLOCK.
6318         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6319         O_NONBLOCK support.
6320         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6321
6322 2011-04-17  Bruno Haible  <bruno@clisp.org>
6323
6324         pipe2: Simplify code.
6325         * lib/pipe2.c (pipe2): Reduce code duplication.
6326
6327 2011-04-17  Bruno Haible  <bruno@clisp.org>
6328
6329         nonblocking: Add comment.
6330         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6331
6332 2011-04-17  Bruno Haible  <bruno@clisp.org>
6333
6334         nonblocking: Add tests for sockets.
6335         * tests/test-nonblocking-socket.sh: New file.
6336         * tests/test-nonblocking-socket-main.c: New file.
6337         * tests/test-nonblocking-socket-child.c: New file.
6338         * tests/test-nonblocking-socket.h: New file.
6339         * tests/socket-server.h: New file.
6340         * tests/socket-client.h: New file.
6341         * modules/nonblocking-socket-tests: New file.
6342         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6343
6344 2011-04-17  Bruno Haible  <bruno@clisp.org>
6345
6346         nonblocking: Add tests for pipes.
6347         * tests/test-nonblocking-pipe.sh: New file.
6348         * tests/test-nonblocking-pipe-main.c: New file.
6349         * tests/test-nonblocking-pipe-child.c: New file.
6350         * tests/test-nonblocking-pipe.h: New file.
6351         * tests/test-nonblocking-writer.h: New file.
6352         * tests/test-nonblocking-reader.h: New file.
6353         * tests/test-nonblocking-misc.h: New file.
6354         * modules/nonblocking-pipe-tests: New file.
6355         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6356
6357 2011-04-16  Bruno Haible  <bruno@clisp.org>
6358
6359         gettext: Clarify the needed programmer actions.
6360         * modules/gettext (Notice): New field.
6361         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6362
6363 2011-04-16  Bruno Haible  <bruno@clisp.org>
6364
6365         strchrnul: Tweak last commit.
6366         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6367         bug.
6368         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6369         as in _GL_FUNCDECL_SYS.
6370         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6371         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6372
6373 2011-04-15  Eric Blake  <eblake@redhat.com>
6374
6375         strchrnul: work around cygwin bug
6376         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6377         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6378         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6379         * modules/string (Makefile.am): Substitute it.
6380         * lib/string.in.h (strchrnul): Use it.
6381
6382 2011-04-15  Bruno Haible  <bruno@clisp.org>
6383
6384         Don't require lib/stdio-write.c when only module 'stdio' is used.
6385         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6386         invocation.
6387         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6388
6389 2011-04-14  Bruno Haible  <bruno@clisp.org>
6390
6391         Support non-blocking pipe I/O in read() on native Windows.
6392         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6393         (read): New declaration.
6394         * lib/read.c: New file.
6395         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6396         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6397         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6398         vscanf): New declarations.
6399         * lib/stdio-read.c: New file.
6400         * m4/read.m4: New file.
6401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6402         REPLACE_READ.
6403         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6404         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6405         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6406         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6407         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6408         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6409         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6410         * modules/read: New file.
6411         * modules/nonblocking (Files): Add lib/stdio-read.c.
6412         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6413         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6414         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6415         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6416         * modules/pread (Depends-on): Add read.
6417         * modules/safe-read (Depends-on): Likewise.
6418         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6419         gets, scanf, vfscanf, vscanf): Verify signatures.
6420         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6421         problem with non-blocking pipes.
6422         * doc/posix-functions/fgetc.texi: Likewise.
6423         * doc/posix-functions/fgets.texi: Likewise.
6424         * doc/posix-functions/fread.texi: Likewise.
6425         * doc/posix-functions/fscanf.texi: Likewise.
6426         * doc/posix-functions/getc.texi: Likewise.
6427         * doc/posix-functions/getchar.texi: Likewise.
6428         * doc/posix-functions/gets.texi: Likewise.
6429         * doc/posix-functions/scanf.texi: Likewise.
6430         * doc/posix-functions/vfscanf.texi: Likewise.
6431         * doc/posix-functions/vscanf.texi: Likewise.
6432
6433 2011-04-14  Bruno Haible  <bruno@clisp.org>
6434
6435         Support non-blocking pipe I/O in write() on native Windows.
6436         * lib/write.c (rpl_write): Split a write request that failed merely
6437         because the byte count was larger than the pipe buffer's size.
6438         * doc/posix-functions/write.texi: Mention the problem with large byte
6439         counts.
6440
6441 2011-04-14  Bruno Haible  <bruno@clisp.org>
6442
6443         wchar: Ensure that wchar_t gets defined on uClibc.
6444         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6445         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6446
6447 2011-04-13  Bruno Haible  <bruno@clisp.org>
6448
6449         safe-write, full-read: Avoid unnecessary compilation units.
6450         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6451         (Depends-on): Remove safe-read. Add ssize_t.
6452         * modules/full-read (Files): Add lib/full-write.c.
6453         (Depends-on): Add full-write.
6454
6455 2011-04-13  Bruno Haible  <bruno@clisp.org>
6456
6457         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6458         * modules/pwrite (Depends-on): Add 'write'.
6459
6460 2011-04-13  Bruno Haible  <bruno@clisp.org>
6461
6462         Support non-blocking pipe I/O in write() on native Windows.
6463         * lib/unistd.in.h (write): Enable replacement also if
6464         GNULIB_UNISTD_H_NONBLOCKING is 1.
6465         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6466         (rpl_write): When failing to write on a non-blocking pipe, change
6467         errno from ENOSPC to EAGAIN.
6468         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6469         putchar, puts, vfprintf, vprintf): Enable replacement also if
6470         GNULIB_STDIO_H_NONBLOCKING is 1.
6471         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6472         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6473         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6474         CALL_WITH_SIGPIPE_EMULATION.
6475         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6476         * m4/nonblocking.m4: New file.
6477         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6478         for non-blocking I/O support.
6479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6480         GNULIB_UNISTD_H_NONBLOCKING.
6481         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6482         required for non-blocking I/O support.
6483         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6484         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6485         lib/stdio-write.c, m4/asm-underscore.m4.
6486         (Depends-on): Add stdio, unistd.
6487         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6488         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6489         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6490         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6491         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6492         problem with non-blocking pipes.
6493         * doc/posix-functions/fputc.texi: Likewise.
6494         * doc/posix-functions/fputs.texi: Likewise.
6495         * doc/posix-functions/fwrite.texi: Likewise.
6496         * doc/posix-functions/printf.texi: Likewise.
6497         * doc/posix-functions/putc.texi: Likewise.
6498         * doc/posix-functions/putchar.texi: Likewise.
6499         * doc/posix-functions/puts.texi: Likewise.
6500         * doc/posix-functions/vfprintf.texi: Likewise.
6501         * doc/posix-functions/vprintf.texi: Likewise.
6502         * doc/posix-functions/write.texi: Likewise.
6503
6504 2011-04-10  Jim Meyering  <meyering@redhat.com>
6505
6506         maint.mk: prohibit doubled words
6507         Detect them also when they're separated by a newline.
6508         There are 3 ways to customize it:
6509           - disable the test on a per file basis, as usual with rules using
6510             $(VC_LIST_EXCEPT)
6511           - replace the default doubled-word-selecting regexp (affects all files)
6512           - ignore a particular file-vs-doubled-word match
6513         I nearly used that last one to ignore the "is is" match in
6514         coreutils' NEWS file, since the text was "ls -is is ..."
6515         To do that, I would have added this line to cfg.mk:
6516           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6517         but it would have ignored any "is is" match in NEWS.
6518         Low probability, but still...
6519         Instead, I changed the text, slightly:
6520           -  ls -is is now consistent with ls -lis in ignoring values returned
6521           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6522         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6523         (prohibit_doubled_word_): Define.
6524         (sc_prohibit_doubled_word): New rule.
6525         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6526
6527 2011-04-10  Jim Meyering  <meyering@redhat.com>
6528
6529         maint: fix doubled-word typo in comment
6530         * m4/gethostname.m4: s/is is/it is/
6531         * m4/getdomainname.m4: Likewise.
6532
6533 2011-04-10  Jim Meyering  <meyering@redhat.com>
6534
6535         maint: remove doubled word: s/it it/it/
6536         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6537
6538 2011-04-10  Jim Meyering  <meyering@redhat.com>
6539
6540         maint.mk: remove useless semicolon and backslash
6541         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6542         semicolon and backslash.
6543
6544 2011-04-10  Bruno Haible  <bruno@clisp.org>
6545
6546         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6547         * modules/stdint-tests (Depends-on): Add wchar.
6548
6549 2011-04-10  Jim Meyering  <meyering@redhat.com>
6550
6551         maint: remove doubled words in comments, e.g., s/a a/a/
6552         * lib/strptime.c (day_of_the_week): s/the the/the/
6553         * tests/test-chown.h (test_chown): s/a a/a/
6554
6555         test-chown.h: correct a cast
6556         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6557         when the destination is a stat.st_gid.
6558
6559 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6560
6561         getaddrinfo: Fix test for sa_len member.
6562         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6563         include <sys/types.h> before <sys/socket.h>.
6564
6565 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6566
6567         maint: change "can not" to "cannot"
6568         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6569         boundaries.
6570
6571 2011-04-09  Jim Meyering  <meyering@redhat.com>
6572
6573         maint: change "a a" to "a"
6574         * tests/test-lchown.h (test_lchown): s/a a/a/
6575
6576         maint.mk: prohibit \<the the\>
6577         * top/maint.mk (sc_prohibit_the_the): New rule.
6578
6579         maint: fix "the the" in comment
6580         * lib/count-one-bits.h: s/the the/the/
6581
6582         maint: change "can not" to "cannot"
6583         But do not change the occurrences in maintain.texi or in
6584         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6585         * doc/gnulib-tool.texi: s/can not/cannot/
6586         * doc/posix-functions/accept.texi (accept): Likewise.
6587         * doc/posix-functions/socket.texi (socket): Likewise.
6588         * lib/mbrtowc.c: Likewise.
6589
6590         maint.mk: prohibit use of "can not"
6591         * top/maint.mk (sc_prohibit_can_not): New rule.
6592         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6593
6594 2011-04-09  Bruno Haible  <bruno@clisp.org>
6595
6596         careadlinkat: Guard against misuse of careadlinkatcwd.
6597         * lib/careadlinkat.c: Include <stdlib.h>.
6598         (careadlinkatcwd): Check that the fd argument is as expected.
6599
6600 2011-04-09  Bruno Haible  <bruno@clisp.org>
6601
6602         careadlinkat: Use common coding style.
6603         * lib/careadlinkat.c: Move gnulib includes after system includes.
6604
6605 2011-04-09  Bruno Haible  <bruno@clisp.org>
6606
6607         careadlinkat: Clarify specification.
6608         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6609         (careadlinkatcwd): Add comment.
6610         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6611
6612 2011-04-09  Bruno Haible  <bruno@clisp.org>
6613
6614         areadlinkat: Avoid link error on many platforms.
6615         * modules/areadlinkat (Depends-on): Add areadlink.
6616
6617 2011-04-09  Bruno Haible  <bruno@clisp.org>
6618
6619         allocator, careadlinkat: Fix double-inclusion guard.
6620         * lib/allocator.h: Fix double-inclusion guard.
6621         * lib/careadlinkat.h: Likewise.
6622
6623 2011-04-09  Bruno Haible  <bruno@clisp.org>
6624
6625         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6626         * lib/relocwrapper.c: Update dependencies hierarchy.
6627         * build-aux/install-reloc: Update list of files to be compiled.
6628         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6629         lib/allocator.[hc].
6630
6631 2011-04-08  Eric Blake  <eblake@redhat.com>
6632
6633         strftime: silence gnulib-tool warning
6634         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6635
6636 2011-04-08  Bruno Haible  <bruno@clisp.org>
6637
6638         verify: Fix syntax error with GCC 4.6 in C++ mode.
6639         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6640         (HAVE_STATIC_ASSERT): New macro.
6641         (verify_true, verify): Use 'static_assert' if it is supported and
6642         '_Static_assert' is not supported.
6643
6644 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6645
6646         allocator: New module.
6647         * modules/allocator, lib/allocator.c: New files.
6648         * lib/allocator.h (stdlib_allocator): New decl.
6649         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6650         Remove.  Do not include <stdlib.h>.
6651         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6652         * modules/careadlinkat (Files): Remove lib/allocator.h.
6653         (Depends-on): Add allocator.
6654
6655         stdlib: let modules use system malloc, realloc
6656         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6657         if !_GL_USE_STDLIB_ALLOC.
6658         (malloc, realloc): Limit this change to a smaller scope.
6659
6660         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6661         (malloc, realloc): Don't #undef; no longer needed.
6662         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6663         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6664         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6665         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6666         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6667         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6668         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6669         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6670
6671         careadlinkat: rename members to avoid problem
6672         * lib/allocator.h (struct allocator): Rename members from
6673         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6674         and realloc are #define'd.  Reported by Eric Blake in
6675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6676         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6677
6678 2011-04-08  Eric Blake  <eblake@redhat.com>
6679
6680         nonblocking: reduce dependency
6681         * tests/test-nonblocking.c: Only test sockets when in use.
6682         * modules/nonblocking-tests (Depends-on): Drop socket.
6683         (Makefile.am): Link even if sockets are not present.
6684         * modules/pipe2-tests (Makefile.am): Likewise.
6685         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6686
6687         pipe2: fix O_NONBLOCK support on mingw
6688         * modules/pipe2 (Depends-on): Add nonblocking.
6689         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6690         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6691         * tests/test-nonblocking.c (main): Likewise.
6692         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6693
6694         fcntl-h: fix O_ACCMODE on cygwin
6695         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6696         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6697
6698         pipe-filter: drop O_NONBLOCK workarounds
6699         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6700         * modules/pipe-filter-ii (Depends-on): Likewise.
6701         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6702
6703         nonblocking: provide O_NONBLOCK for mingw
6704         * modules/nonblocking (Depends-on): Add open.
6705         (configure.ac): Set new witness macro.
6706         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6707         * modules/fcntl-h (Makefile.am): Substitute it.
6708         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6709         nonblocking module is in use.
6710         * lib/nonblocking.c: Adjust portability test.
6711         * lib/open.c (open): Don't let native open see gnulib flag.
6712         * tests/test-fcntl-h.c (main): Enhance test.
6713         * tests/test-open.h (test_open): Likewise.
6714         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6715
6716         careadlinkat: fix compilation error on mingw
6717         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6718         within struct allocator.
6719
6720 2011-04-06  Eric Blake  <eblake@redhat.com>
6721
6722         binary-io: relicense under LGPLv2+
6723         * modules/binary-io (License): Relax to LGPLv2+.
6724         Requested for libvirt, and required by pipe2.
6725
6726 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6727
6728         verify: use _Static_assert if available
6729         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6730         (verify_true, verify): Use it if available.  This generates better
6731         diagnostics with GCC 4.6.0 and later.
6732
6733 2011-04-05  Bruno Haible  <bruno@clisp.org>
6734
6735         Remove leftover generated .h files after config.status changed.
6736
6737         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6738         GL_GENERATE_ALLOCA_H.
6739         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6740         GL_GENERATE_ALLOCA_H evaluates to false.
6741
6742         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6743         GL_GENERATE_ARGZ_H.
6744         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6745         evaluates to false.
6746
6747         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6748         GL_GENERATE_BYTESWAP_H.
6749         * modules/byteswap (Makefile.am): Remove byteswap.h if
6750         GL_GENERATE_BYTESWAP_H evaluates to false.
6751
6752         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6753         GL_GENERATE_ERRNO_H.
6754         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6755         evaluates to false.
6756
6757         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6758         GL_GENERATE_FLOAT_H.
6759         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6760         evaluates to false.
6761
6762         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6763         GL_GENERATE_FNMATCH_H.
6764         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6765         GL_GENERATE_FNMATCH_H evaluates to false.
6766
6767         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6768         GL_GENERATE_GLOB_H.
6769         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6770         evaluates to false.
6771
6772         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6773         automake conditional GL_GENERATE_ICONV_H.
6774         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6775         evaluates to false.
6776
6777         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6778         GL_GENERATE_NETINET_IN_H.
6779         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
6780         GL_GENERATE_NETINET_IN_H evaluates to false.
6781
6782         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
6783         conditional GL_GENERATE_PTHREAD_H.
6784         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
6785         * modules/pthread (Makefile.am): Remove pthread.h if
6786         GL_GENERATE_PTHREAD_H evaluates to false.
6787
6788         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
6789         GL_GENERATE_SCHED_H.
6790         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
6791         evaluates to false.
6792
6793         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
6794         conditional GL_GENERATE_SELINUX_CONTEXT_H.
6795         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
6796         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
6797
6798         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
6799         GL_GENERATE_STDARG_H.
6800         * modules/stdarg (Makefile.am): Remove stdarg.h if
6801         GL_GENERATE_STDARG_H evaluates to false.
6802
6803         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
6804         GL_GENERATE_STDBOOL_H.
6805         * modules/stdbool (Makefile.am): Remove stdbool.h if
6806         GL_GENERATE_STDBOOL_H evaluates to false.
6807
6808         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
6809         conditional GL_GENERATE_STDDEF_H.
6810         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
6811         * modules/stddef (Makefile.am): Remove stddef.h if
6812         GL_GENERATE_STDDEF_H evaluates to false.
6813
6814         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
6815         GL_GENERATE_STDINT_H.
6816         * modules/stdint (Makefile.am): Remove stdint.h if
6817         GL_GENERATE_STDINT_H evaluates to false.
6818
6819         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
6820         GL_GENERATE_SYSEXITS_H.
6821         * modules/sysexits (Makefile.am): Remove sysexits.h if
6822         GL_GENERATE_SYSEXITS_H evaluates to false.
6823
6824         Reported by Karl Berry and Ralf Wildenhues.
6825
6826 2011-04-05  Bruno Haible  <bruno@clisp.org>
6827
6828         Ensure to rebuild generated .h files when config.status has changed.
6829         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
6830         config.status.
6831         * modules/ctype (Makefile.am): Likewise.
6832         * modules/dirent (Makefile.am): Likewise.
6833         * modules/errno (Makefile.am): Likewise.
6834         * modules/fcntl-h (Makefile.am): Likewise.
6835         * modules/float (Makefile.am): Likewise.
6836         * modules/getopt-posix (Makefile.am): Likewise.
6837         * modules/glob (Makefile.am): Likewise.
6838         * modules/iconv-h (Makefile.am): Likewise.
6839         * modules/inttypes (Makefile.am): Likewise.
6840         * modules/langinfo (Makefile.am): Likewise.
6841         * modules/locale (Makefile.am): Likewise.
6842         * modules/math (Makefile.am): Likewise.
6843         * modules/netdb (Makefile.am): Likewise.
6844         * modules/netinet_in (Makefile.am): Likewise.
6845         * modules/poll-h (Makefile.am): Likewise.
6846         * modules/pthread (Makefile.am): Likewise.
6847         * modules/pty (Makefile.am): Likewise.
6848         * modules/sched (Makefile.am): Likewise.
6849         * modules/search (Makefile.am): Likewise.
6850         * modules/selinux-h (Makefile.am): Likewise.
6851         * modules/signal (Makefile.am): Likewise.
6852         * modules/spawn (Makefile.am): Likewise.
6853         * modules/stdarg (Makefile.am): Likewise.
6854         * modules/stdbool (Makefile.am): Likewise.
6855         * modules/stddef (Makefile.am): Likewise.
6856         * modules/stdint (Makefile.am): Likewise.
6857         * modules/stdio (Makefile.am): Likewise.
6858         * modules/stdlib (Makefile.am): Likewise.
6859         * modules/string (Makefile.am): Likewise.
6860         * modules/strings (Makefile.am): Likewise.
6861         * modules/sys_file (Makefile.am): Likewise.
6862         * modules/sys_ioctl (Makefile.am): Likewise.
6863         * modules/sys_select (Makefile.am): Likewise.
6864         * modules/sys_socket (Makefile.am): Likewise.
6865         * modules/sys_stat (Makefile.am): Likewise.
6866         * modules/sys_time (Makefile.am): Likewise.
6867         * modules/sys_times (Makefile.am): Likewise.
6868         * modules/sys_utsname (Makefile.am): Likewise.
6869         * modules/sys_wait (Makefile.am): Likewise.
6870         * modules/sysexits (Makefile.am): Likewise.
6871         * modules/termios (Makefile.am): Likewise.
6872         * modules/time (Makefile.am): Likewise.
6873         * modules/unistd (Makefile.am): Likewise.
6874         * modules/wchar (Makefile.am): Likewise.
6875         * modules/wctype-h (Makefile.am): Likewise.
6876         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
6877
6878 2011-04-05  Bruno Haible  <bruno@clisp.org>
6879
6880         pipe2: Relicense under LGPLv2+.
6881         * modules/pipe2 (License): Change to LGPLv2+.
6882         Requested by Eric Blake, for libvirt.
6883
6884 2011-04-05  Bruce Korb  <bkorb@gnu.org>
6885
6886         bootstrap: compute gnulib_extra_files after updating build_aux
6887         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
6888         change build_aux or also supply gnulib_extra_files.  Handle correctly.
6889
6890 2011-04-05  Eric Blake  <eblake@redhat.com>
6891
6892         bootstrap: preserve git whitelist item sorting
6893         * build-aux/bootstrap (sort_patterns): New function.
6894         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
6895
6896 2011-04-05  Simon Josefsson  <simon@josefsson.org>
6897
6898         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
6899         sc_space_tab check.
6900
6901 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6902
6903         areadlink, areadlinkat: rewrite in terms of careadlinkat
6904         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
6905         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
6906         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
6907         (malloc, realloc): Remove #undefs.
6908         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
6909         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
6910         readlink, ssize_t, stdint, unistd.
6911         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
6912         areadlink, stdint.
6913
6914         careadlinkat: new module
6915         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
6916         * modules/careadlinkat: New files, written by me with
6917         a review and feedback from Ben Pfaff in
6918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
6919
6920 2011-04-01  Bruno Haible  <bruno@clisp.org>
6921
6922         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
6923         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
6924         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
6925         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
6926         Reported by Bruce Korb <bruce.korb@gmail.com>.
6927
6928 2011-04-01  Bruno Haible  <bruno@clisp.org>
6929
6930         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
6931         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
6932         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
6933         * modules/wcpcpy (Depends-on): Add extensions.
6934         * modules/wcpncpy (Depends-on): Likewise.
6935         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
6936         systems.
6937         * doc/posix-functions/wcpncpy.texi: Likewise.
6938         * doc/posix-functions/wcwidth.texi: Likewise.
6939
6940 2011-03-31  Eric Blake  <eblake@redhat.com>
6941
6942         nonblocking: fix mingw test failures
6943         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
6944         non-blocking flag on regular file.
6945         (get_nonblocking_flag): Set errno on invalid fd.
6946         * tests/test-nonblocking.c (main): Avoid test failure on
6947         directories if fchdir is not active.
6948         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
6949
6950 2011-03-31  Bruno Haible  <bruno@clisp.org>
6951
6952         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
6953         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
6954         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
6955         Reported by Simon Josefsson <simon@josefsson.org>.
6956
6957 2011-03-31  Bruno Haible  <bruno@clisp.org>
6958         and Eric Blake  <eblake@redhat.com>
6959
6960         nonblocking: new module
6961         * modules/nonblocking: New module.
6962         * modules/nonblocking-tests: Likewise.
6963         * lib/nonblocking.h: New file.
6964         * lib/nonblocking.c: Likewise.
6965         * tests/test-nonblocking.c: New test.
6966         * lib/ioctl.c (ioctl) [mingw]: Update comment.
6967
6968 2011-03-30  Bruno Haible  <bruno@clisp.org>
6969
6970         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
6971         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
6972         instead of 'printf' format for GCC >= 4.4.
6973         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
6974         (fprintf, printf, vfprintf, vprintf): Declare with
6975         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
6976         the system's vfprintf() function.
6977         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
6978
6979 2011-03-30  Eric Blake  <eblake@redhat.com>
6980
6981         passfd: fix scoping bug
6982         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
6983         before sendmsg/recvmsg.
6984
6985         passfd: standardize coding conventions
6986         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
6987         can be learned at compile time.
6988         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
6989         ifdefs.
6990         (sendfd, recvfd): Follow gnulib code conventions.
6991
6992         passfd: fix incorrect sendmsg arguments
6993         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
6994         incorrect msg_controllen value.
6995         * modules/passfd-tests (Depends-on): Check for alarm.
6996         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
6997         Reported by Bastien ROUCARIES.
6998
6999 2011-03-30  Bruno Haible  <bruno@clisp.org>
7000
7001         c-strcasestr: Relicense under LGPLv2+.
7002         * modules/c-strcasestr (License): Change to LGPLv2+.
7003         Requested by Eric Blake, for libvirt.
7004
7005 2011-03-30  Simon Josefsson  <simon@josefsson.org>
7006
7007         * users.txt: Add libidn2.  Fix libtasn1 link.
7008
7009 2011-03-30  Jim Meyering  <meyering@redhat.com>
7010
7011         tests: readlink* ("",... fails with EINVAL on newer kernels
7012         readlink and readlinkat have typically failed with ENOENT for
7013         the invalid, empty file name,  "".  However, with the advent
7014         of linux-2.6.39, they fail with EINVAL.
7015         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
7016         when operating on the empty file name.
7017         * tests/test-readlink.h (test_readlink): Likewise.
7018
7019 2011-03-29  Bruno Haible  <bruno@clisp.org>
7020
7021         Relicense some modules under LGPLv2+, for libidn2.
7022         * modules/array-mergesort (License): Change to LGPLv2+.
7023         * modules/c-strcaseeq (License): Likewise.
7024         * modules/striconveh (License): Likewise.
7025         * modules/striconveha (License): Likewise.
7026         * modules/uniconv/base (License): Likewise.
7027         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7028         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7029         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
7030         * modules/unictype/base (License): Likewise.
7031         * modules/unictype/bidiclass-of (License): Likewise.
7032         * modules/unictype/category-M (License): Likewise.
7033         * modules/unictype/category-none (License): Likewise.
7034         * modules/unictype/category-of (License): Likewise.
7035         * modules/unictype/category-test (License): Likewise.
7036         * modules/unictype/category-test-withtable (License): Likewise.
7037         * modules/unictype/combining-class (License): Likewise.
7038         * modules/unictype/joiningtype-of (License): Likewise.
7039         * modules/unictype/scripts (License): Likewise.
7040         * modules/uninorm/base (License): Likewise.
7041         * modules/uninorm/canonical-decomposition (License): Likewise.
7042         * modules/uninorm/composition (License): Likewise.
7043         * modules/uninorm/decompose-internal (License): Likewise.
7044         * modules/uninorm/decomposition-table (License): Likewise.
7045         * modules/uninorm/nfc (License): Likewise.
7046         * modules/uninorm/nfd (License): Likewise.
7047         * modules/uninorm/u32-normalize (License): Likewise.
7048         * modules/unistr/base (License): Likewise.
7049         * modules/unistr/u32-cpy (License): Likewise.
7050         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
7051         * modules/unistr/u32-to-u8 (License): Likewise.
7052         * modules/unistr/u32-uctomb (License): Likewise.
7053         * modules/unistr/u8-check (License): Likewise.
7054         * modules/unistr/u8-mblen (License): Likewise.
7055         * modules/unistr/u8-mbtouc (License): Likewise.
7056         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
7057         * modules/unistr/u8-mbtoucr (License): Likewise.
7058         * modules/unistr/u8-prev (License): Likewise.
7059         * modules/unistr/u8-strlen (License): Likewise.
7060         * modules/unistr/u8-to-u32 (License): Likewise.
7061         * modules/unistr/u8-uctomb (License): Likewise.
7062         * modules/unitypes (License): Likewise.
7063         Requested by Simon Josefsson.
7064
7065 2011-03-29  Simon Josefsson  <simon@josefsson.org>
7066
7067         lib-symbol-visibility: Add a notice.
7068         * modules/lib-symbol-visibility (Notice): New field.
7069
7070 2011-03-29  Bruno Haible  <bruno@clisp.org>
7071
7072         getaddrinfo: Doc fix.
7073         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
7074         section "fixed in Gnulib".
7075
7076 2011-03-28  Simon Josefsson  <simon@josefsson.org>
7077
7078         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
7079         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
7080
7081 2011-03-26  Bruno Haible  <bruno@clisp.org>
7082
7083         unictype/property-byname: Reduce the number of load-time relocations.
7084         * lib/unictype/pr_byname.c: Include <stdlib.h>.
7085         (UC_PROPERTY_INDEX_*): New enumeration values.
7086         (uc_property_byname): Convert an index from the lookup table to an
7087         uc_property_t.
7088         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
7089         values.
7090
7091 2011-03-26  Bruno Haible  <bruno@clisp.org>
7092
7093         unictype/property-byname: Allow omitted word separators and aliases.
7094         * lib/unictype/pr_byname.gperf: Add property names without word
7095         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
7096         for 'space'.
7097
7098 2011-03-26  Bruno Haible  <bruno@clisp.org>
7099
7100         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
7101         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
7102         also hyphens to space.
7103         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
7104         without spaces.
7105         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
7106
7107 2011-03-26  Bruno Haible  <bruno@clisp.org>
7108
7109         unictype/joiningtype-byname: Recognize long names as well.
7110         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
7111         a long name.
7112         * lib/unictype/joiningtype_byname.c: Include <string.h>,
7113         unictype/joiningtype_byname.h.
7114         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
7115         * lib/unictype/joiningtype_byname.gperf: New file.
7116         * modules/unictype/joiningtype-byname (Files): Add
7117         lib/unictype/joiningtype_byname.gperf.
7118         (Depends-on): Add gperf.
7119         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
7120         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
7121         long names.
7122
7123         Tests for module 'unictype/joiningtype-longname'.
7124         * modules/unictype/joiningtype-longname-tests: New file.
7125         * tests/unictype/test-joiningtype_longname.c: New file.
7126
7127         New module 'unictype/joiningtype-longname'.
7128         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
7129         * lib/unictype/joiningtype_longname.c: New file.
7130         * modules/unictype/joiningtype-longname: New file.
7131         * modules/unictype/joiningtype-all (Depends-on): Add
7132         unictype/joiningtype-longname.
7133
7134 2011-03-26  Bruno Haible  <bruno@clisp.org>
7135
7136         unictype/bidiclass-byname: Recognize long names as well.
7137         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
7138         name.
7139         * lib/unictype/bidi_byname.c: Include <string.h>,
7140         unictype/bidi_byname.h.
7141         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
7142         * lib/unictype/bidi_byname.gperf: New file.
7143         * modules/unictype/bidiclass-byname (Files): Add
7144         lib/unictype/bidi_byname.gperf.
7145         (Depends-on): Add gperf.
7146         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
7147         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
7148         long names.
7149
7150         Tests for module 'unictype/bidiclass-longname'.
7151         * modules/unictype/bidiclass-longname-tests: New file.
7152         * tests/unictype/test-bidi_longname.c: New file.
7153
7154         New module 'unictype/bidiclass-longname'.
7155         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
7156         * lib/unictype/bidi_longname.c: New file.
7157         * modules/unictype/bidiclass-longname: New file.
7158         * modules/unictype/bidiclass-all (Depends-on): Add
7159         unictype/bidiclass-longname.
7160
7161 2011-03-26  Bruno Haible  <bruno@clisp.org>
7162
7163         unictype/bidi*: Rename modules.
7164         * modules/unictype/bidiclass-all: Renamed from
7165         modules/unictype/bidicategory-all.
7166         * modules/unictype/bidiclass-name: Renamed from
7167         modules/unictype/bidiclass-name.
7168         (Description): Update.
7169         * modules/unictype/bidiclass-name-tests: Renamed from
7170         modules/unictype/bidicategory-name-tests.
7171         * modules/unictype/bidiclass-byname: Renamed from
7172         modules/unictype/bidicategory-byname.
7173         (Description): Update.
7174         * modules/unictype/bidiclass-byname-tests: Renamed from
7175         modules/unictype/bidicategory-byname-tests.
7176         * modules/unictype/bidiclass-of: Renamed from
7177         modules/unictype/bidicategory-of.
7178         (Description): Update.
7179         * modules/unictype/bidiclass-of-tests: Renamed from
7180         modules/unictype/bidicategory-of-tests.
7181         * modules/unictype/bidiclass-test: Renamed from
7182         modules/unictype/bidicategory-test.
7183         (Description): Update.
7184         * modules/unictype/bidiclass-test-tests: Renamed from
7185         modules/unictype/bidicategory-test-tests.
7186         * modules/unictype/bidicategory-all: New file, a simple redirection.
7187         * modules/unictype/bidicategory-name: Likewise.
7188         * modules/unictype/bidicategory-byname: Likewise.
7189         * modules/unictype/bidicategory-of: Likewise.
7190         * modules/unictype/bidicategory-test: Likewise.
7191         * modules/unictype/property-bidi-* (Dependencies): Update.
7192         * lib/unictype/bidi_*.c: Update comment.
7193
7194 2011-03-26  Bruno Haible  <bruno@clisp.org>
7195
7196         unictype/bidi*: Rename functions, part 2.
7197         * modules/unictype/bidicategory-name (configure.ac): Update required
7198         libunistring version.
7199         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7200
7201 2011-03-25  Bruno Haible  <bruno@clisp.org>
7202
7203         New module 'unictype/combining-class-all'.
7204         * modules/unictype/combining-class-all: New file.
7205
7206         Tests for module 'unictype/combining-class-byname'.
7207         * modules/unictype/combining-class-byname-tests: New file.
7208         * tests/unictype/test-combiningclass_byname.c: New file.
7209
7210         New module 'unictype/combining-class-byname'.
7211         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7212         * lib/unictype/combiningclass_byname.c: New file.
7213         * lib/unictype/combiningclass_byname.gperf: New file.
7214         * modules/unictype/combining-class-byname: New file.
7215
7216         Tests for module 'unictype/combining-class-longname'.
7217         * modules/unictype/combining-class-longname-tests: New file.
7218         * tests/unictype/test-combiningclass_longname.c: New file.
7219
7220         New module 'unictype/combining-class-longname'.
7221         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7222         * lib/unictype/combiningclass_longname.c: New file.
7223         * modules/unictype/combining-class-longname: New file.
7224
7225         Tests for module 'unictype/combining-class-name'.
7226         * modules/unictype/combining-class-name-tests: New file.
7227         * tests/unictype/test-combiningclass_name.c: New file.
7228
7229         New module 'unictype/combining-class-name'.
7230         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7231         * lib/unictype/combiningclass_name.c: New file.
7232         * modules/unictype/combining-class-name: New file.
7233
7234 2011-03-25  Bruno Haible  <bruno@clisp.org>
7235
7236         unictype/combining-class: Rename source files.
7237         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7238         of unictype/combining.h.
7239         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7240         Update.
7241         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7242         * modules/unictype/combining-class (Description): Fix.
7243         (Files, Makefile.am): Update.
7244         * tests/unictype/test-combiningclass.c: Renamed from
7245         tests/unictype/test-combining.c.
7246         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7247
7248 2011-03-25  Bruno Haible  <bruno@clisp.org>
7249
7250         unictype: Update list of canonical combining classes.
7251         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7252
7253 2011-03-25  Bruno Haible  <bruno@clisp.org>
7254
7255         unictype/category-byname: Recognize long names as well.
7256         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7257         a long name.
7258         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7259         unictype/categ_byname.h.
7260         (UC_CATEGORY_INDEX_*): New enumeration values.
7261         (uc_general_category_byname): Use uc_general_category_lookup and
7262         convert from index to value.
7263         * lib/unictype/categ_byname.gperf: New file.
7264         * modules/unictype/category-byname (Files): Add
7265         lib/unictype/categ_byname.gperf.
7266         (Depends-on): Add gperf.
7267         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7268         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7269         long names.
7270
7271         Tests for module 'unictype/category-longname'.
7272         * modules/unictype/category-longname-tests: New file.
7273         * tests/unictype/test-categ_longname.c: New file.
7274
7275         New module 'unictype/category-longname'.
7276         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7277         * lib/unictype/categ_longname.c: New file.
7278         * modules/unictype/category-longname: New file.
7279         * modules/unictype/category-all (Depends-on): Add it.
7280
7281 2011-03-25  Bruno Haible  <bruno@clisp.org>
7282
7283         Tests for module 'unictype/category-LC'.
7284         * modules/unictype/category-LC-tests: New file.
7285         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7286
7287         New module 'unictype/category-LC'.
7288         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7289         (UC_CATEGORY_LC): New declaration.
7290         (UC_CASED_LETTER): New macro.
7291         * lib/gen-uni-tables.c (is_category_LC): New function.
7292         (output_categories): Also handle category LC.
7293         (UC_CATEGORY_MASK_LC): New enumeration value.
7294         (general_category_byname): Also handle category LC.
7295         * lib/unictype/categ_LC.c: New file.
7296         * lib/unictype/categ_LC.h: New file, automatically generated.
7297         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7298         category LC.
7299         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7300         * modules/unictype/category-LC: New file.
7301         * modules/unictype/category-byname (Depends-on): Add
7302         unictype/category-LC.
7303         * modules/unictype/category-all (Depends-on): Likewise.
7304
7305 2011-03-25  Eric Blake  <eblake@redhat.com>
7306
7307         xmalloc: revert yesterday's regression
7308         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7309         realloc's underlying behavior (allowing allocation of zero-size
7310         objects, especially if malloc-gnu is also in use).
7311
7312 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7313
7314         maint.mk: add missing version to VC-tag
7315         * top/maint.mk: git tag was missing actual tag name; add it.
7316
7317         valgrind: do leak checking, and exit with code 1 on error (not 0)
7318         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7319         to VALGRIND.
7320
7321 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7322
7323         posix-modules: say what it does.
7324         * posix-modules: Add a line to the --help output saying what it does.
7325
7326 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7327
7328         xmalloc: Do not leak if underlying realloc is C99 compatible.
7329         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7330         This avoids a leak on C99-based systems.  See
7331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7332
7333 2011-03-24  Eric Blake  <eblake@redhat.com>
7334
7335         realloc: document portability problem
7336         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7337         passing 0 size to realloc.
7338
7339 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7340
7341         doc: update users.txt
7342         * users.txt: Add cvsps, tmpwatch
7343
7344 2011-03-23  Matt Rice  <ratmice@gmail.com>
7345
7346         doc: update users.txt
7347         * users.txt: Add gdb.
7348
7349 2011-03-23  Jim Meyering  <meyering@redhat.com>
7350
7351         doc: update users.txt
7352         Looking through matches up to the following URL (there are still
7353         several more pages), I found several projects that use gnulib:
7354         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7355         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7356         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7357
7358 2011-03-22  Bruno Haible  <bruno@clisp.org>
7359
7360         unictype/bidi*: Rename functions.
7361         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7362         uc_bidi_class, uc_is_bidi_class): New declarations.
7363         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7364         uc_bidi_category_byname.
7365         (uc_bidi_category_byname): New function.
7366         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7367         u_bidi_category_name.
7368         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7369         (uc_bidi_category_name): New function.
7370         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7371         uc_bidi_category.
7372         (uc_bidi_category): New function.
7373         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7374         uc_is_bidi_category. Invoke uc_bidi_class.
7375         (uc_is_bidi_category): New function.
7376         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7377         instead of uc_bidi_category_byname.
7378         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7379         instead of uc_bidi_category_name.
7380         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7381         uc_bidi_category.
7382         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7383         instead of uc_is_bidi_category.
7384
7385 2011-03-21  Bruno Haible  <bruno@clisp.org>
7386
7387         New module 'unictype/joininggroup-all'.
7388         * modules/unictype/joininggroup-all: New file.
7389
7390         Tests for module 'unictype/joininggroup-of'.
7391         * modules/unictype/joininggroup-of-tests: New file.
7392         * tests/unictype/test-joininggroup_of.c: New file.
7393         * tests/unictype/test-joininggroup_of.h: New file, automatically
7394         generated by gen-uni-tables.
7395
7396         New module 'unictype/joininggroup-of'.
7397         * modules/unictype/joininggroup-of: New file.
7398         * lib/unictype/joininggroup_of.c: New file.
7399         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7400         gen-uni-tables.
7401
7402         Tests for module 'unictype/joininggroup-byname'.
7403         * modules/unictype/joininggroup-byname-tests: New file.
7404         * tests/unictype/test-joininggroup_byname.c: New file.
7405
7406         New module 'unictype/joininggroup-byname'.
7407         * modules/unictype/joininggroup-byname: New file.
7408         * lib/unictype/joininggroup_byname.c: New file.
7409         * lib/unictype/joininggroup_byname.gperf: New file.
7410
7411         Tests for module 'unictype/joininggroup-name'.
7412         * modules/unictype/joininggroup-name-tests: New file.
7413         * tests/unictype/test-joininggroup_name.c: New file.
7414
7415         New module 'unictype/joininggroup-name'.
7416         * modules/unictype/joininggroup-name: New file.
7417         * lib/unictype/joininggroup_name.c: New file.
7418         * lib/unictype/joininggroup_name.h: New file.
7419
7420         New module 'unictype/joiningtype-all'.
7421         * modules/unictype/joiningtype-all: New file.
7422
7423         Tests for module 'unictype/joiningtype-of'.
7424         * modules/unictype/joiningtype-of-tests: New file.
7425         * tests/unictype/test-joiningtype_of.c: New file.
7426         * tests/unictype/test-joiningtype_of.h: New file, automatically
7427         generated by gen-uni-tables.
7428
7429         New module 'unictype/joiningtype-of'.
7430         * modules/unictype/joiningtype-of: New file.
7431         * lib/unictype/joiningtype_of.c: New file.
7432         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7433         gen-uni-tables.
7434
7435         Tests for module 'unictype/joiningtype-byname'.
7436         * modules/unictype/joiningtype-byname-tests: New file.
7437         * tests/unictype/test-joiningtype_byname.c: New file.
7438
7439         New module 'unictype/joiningtype-byname'.
7440         * modules/unictype/joiningtype-byname: New file.
7441         * lib/unictype/joiningtype_byname.c: New file.
7442
7443         Tests for module 'unictype/joiningtype-name'.
7444         * modules/unictype/joiningtype-name-tests: New file.
7445         * tests/unictype/test-joiningtype_name.c: New file.
7446
7447         New module 'unictype/joiningtype-name'.
7448         * modules/unictype/joiningtype-name: New file.
7449         * lib/unictype/joiningtype_name.c: New file.
7450
7451         unictype: Add support for Arabic shaping properties.
7452         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7453         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7454         declarations.
7455         (UC_JOINING_GROUP_*): New enumeration values.
7456         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7457         declarations.
7458         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7459         (unicode_joining_type): New variable.
7460         (UC_JOINING_GROUP_*): New enumeration values.
7461         (unicode_joining_group): New variable.
7462         (fill_arabicshaping, joining_type_as_c_identifier,
7463         output_joining_type_test, output_joining_type,
7464         joining_group_as_c_identifier, output_joining_group_test,
7465         output_joining_group): New functions.
7466         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7467         fill_arabicshaping and output_joining_type_test, output_joining_type,
7468         output_joining_group_test, output_joining_group.
7469         Reported by Simon Josefsson.
7470
7471 2011-03-21  Jim Meyering  <meyering@redhat.com>
7472
7473         strftime: fix a bug in yesterday's change
7474         * lib/strftime.c (add): Accommodate width's initial value of -1.
7475         Otherwise, nstrftime would copy uninitialized data into
7476         the result buffer.
7477
7478 2011-03-21  Jim Meyering  <meyering@redhat.com>
7479
7480         tests: add strftime-tests module
7481         * tests/test-strftime.c: New file.
7482         * modules/strftime-tests: New module.
7483
7484 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7485
7486         strftime: don't assume a byte count fits in 'int'
7487         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7488         found this problem by static analysis, using gcc -Wstrict-overflow
7489         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7490         on an integer overflow having undefined behavior, but it turns out
7491         that the argument is a size, which might not fit in 'int' anyway,
7492
7493 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7494
7495         stdio: don't require ignore_value around fwrite
7496
7497         This patch works around libc bug 11959
7498         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7499         Without this patch, applications must often write
7500         ignore_value (fwrite (...)) even though the ignore_value is
7501         not helpful here.  It's common to write many objects, using
7502         fwrite/printf/etc., and then use ferror to detect output error.
7503
7504         I considered making this patch optional, but decided against it,
7505         because libc is obviously being inconsistent here: there is no
7506         reason libc should insist that user code must inspect fwrite
7507         return's value without also insisting that it inspect printf's,
7508         putchar's, etc.  If user code wants to have a strict style where
7509         all these functions' values are checked (so that ferror need not
7510         be checked), we could add support for that style in a new gnulib
7511         module, but in the meantime it's better to be consistent and to
7512         support common usage.
7513
7514         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7515         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7516         that we are compiling in checking mode, and if not C++, and
7517         if not already wrapping fwrite for some other reason.
7518         (fwrite): #define to rpl_fwrite if the latter is defined.
7519
7520 2011-03-20  Bruno Haible  <bruno@clisp.org>
7521
7522         verror: Fix compilation error introduced on 2011-02-13.
7523         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7524         instead of __attribute__.
7525         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7526
7527 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7528             Bruno Haible  <bruno@clisp.org>
7529
7530         socklen: do not depend on sys_socket
7531         While trying to modify Emacs to use gnulib's socklen module,
7532         I discovered a circular dependency: socklen depends on sys_socket
7533         and vice versa.  Emacs can use socklen, but it does not need
7534         sys_socket because it has its own substitute for sys/socket.h.
7535         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7536         gl_TYPE_SOCKLEN_T.
7537         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7538         gl_PREREQ_SYS_H_SOCKET.
7539         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7540         gl_PREREQ_SYS_H_SOCKET.
7541         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7542         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7543         * modules/socklen (Depends-on): Do not depend on sys_socket.
7544         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7545
7546 2011-03-20  Jim Meyering  <meyering@redhat.com>
7547
7548         maint.mk: sort file names *after* new transformation
7549         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7550         prefix would have led to an unwarranted failure in GNU parted.
7551         Sort after that transformation.
7552
7553 2011-03-19  Jim Meyering  <meyering@redhat.com>
7554
7555         maint.mk: fix po-file syntax-check rule
7556         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7557         Patch by Bruno Haible.
7558
7559 2011-03-19  Bruno Haible  <bruno@clisp.org>
7560
7561         socklen: Update comment.
7562         * m4/socklen.m4: Update comment about platforms.
7563
7564 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7565             Bruno Haible  <bruno@clisp.org>
7566
7567         inet_ntop, inet_pton: Simplify.
7568         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7569         documented to provide socklen_t and we already depend on sys_socket.
7570         * modules/inet_pton (Depends-on): Likewise.
7571         * lib/arpa_inet.in.h: Adjust comment.
7572
7573 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7574             Bruno Haible  <bruno@clisp.org>
7575
7576         netdb: Simplify.
7577         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7578         documented to provide socklen_t and we already depend on sys_socket.
7579         * lib/netdb.in.h: Adjust comment.
7580
7581 2011-03-19  Bruno Haible  <bruno@clisp.org>
7582
7583         sys_socket, netdb: Document problem with socklen_t.
7584         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7585         platforms.
7586         * doc/posix-headers/netdb.texi: Likewise.
7587
7588 2011-03-18  Eric Blake  <eblake@redhat.com>
7589
7590         maint.mk: let po check work in VPATH build
7591         * top/maint.mk (po_file): Allow cfg.mk override.
7592         (sc_po_check): Allow VPATH use.
7593         Reported by Jiri Denemark.
7594
7595 2011-03-16  Jim Meyering  <meyering@redhat.com>
7596
7597         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7598         Before, you would have had to create one .x-sc_ file per rule in order
7599         to exempt offending files.  Now, you may instead use a Make variable --
7600         usually defined in cfg.mk -- whose name identifies the affected rule.
7601         * top/maint.mk (_sc_excl): Define.
7602         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7603         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7604
7605 2011-03-13  Bruno Haible  <bruno@clisp.org>
7606
7607         ignore-value tests: Avoid warnings.
7608         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7609         empty for gcc < 3.4.
7610
7611 2011-03-13  Bruno Haible  <bruno@clisp.org>
7612
7613         passfd: Fix link error on Solaris.
7614         * modules/passfd (Description): Correct.
7615         (Depends-on): Add socketlib.
7616         (Link): New section.
7617         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7618
7619 2011-03-13  Bruno Haible  <bruno@clisp.org>
7620
7621         passfd: Fix link error on AIX 5.2.
7622         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7623
7624 2011-03-13  Bruno Haible  <bruno@clisp.org>
7625
7626         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7627         * lib/sys_socket.in.h: Include <stddef.h>.
7628         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7629         CMSG_FIRSTHDR. Remove unused variable.
7630
7631 2011-03-13  Bruno Haible  <bruno@clisp.org>
7632
7633         passfd: Fix compilation error on OpenBSD.
7634         * lib/passfd.c: Include <sys/uio.h>.
7635
7636 2011-03-13  Bruno Haible  <bruno@clisp.org>
7637
7638         passfd test: Fix warnings.
7639         * tests/test-passfd.c: Include <sys/wait.h>.
7640         (main): Fix typo.
7641
7642 2011-03-13  Bruno Haible  <bruno@clisp.org>
7643
7644         passfd module, part 4, tweaks.
7645         * tests/test-passfd.c: Reorder includes.
7646         (main): Fix perror and printf calls.
7647
7648 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7649
7650         passfd module, part 4.
7651         * modules/passfd-tests: New file.
7652         * tests/test-passfd.c: New file.
7653
7654 2011-03-13  Jim Meyering  <meyering@redhat.com>
7655
7656         Makefile: rely on GNU make; derive syntax-check rule names
7657         Rather than requiring that each sc_ rule be listed as a dependent
7658         of "check", use features of GNU make to derive the list.
7659         * Makefile (syntax-check-rules): Define.
7660         (check): Depend on the new variable, not the hard-coded list.
7661
7662 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7663             Bruno Haible  <bruno@clisp.org>
7664
7665         passfd module, part 3.
7666         * lib/passfd.h (recvfd): Add a flags argument.
7667         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7668         (recvfd): Add a flags argument.
7669         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7670         exists.
7671         * modules/passfd (Depends-on): Add cloexec.
7672         Suggested by Eric Blake.
7673
7674 2011-03-13  Bruno Haible  <bruno@clisp.org>
7675
7676         passfd module, part 2, tweaks.
7677         * modules/passfd (Files): Reorder.
7678         (Depends-on): Remove errno.
7679         (Include): Remove <sys/socket.h>, <sys/un.h>.
7680         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7681         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7682         specification header. Include <sys/socket.h> always. Don't include
7683         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7684         (sendfd): Clarify that it sets errno when it fails.
7685         (recvfd): Fix specification.
7686
7687 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7688
7689         passfd module, part 2.
7690         * modules/passfd: New file.
7691         * lib/passfd.h: New file.
7692         * lib/passfd.c: New file.
7693
7694 2011-03-12  Bruno Haible  <bruno@clisp.org>
7695
7696         wcswidth, mbswidth: Avoid integer overflow.
7697         * lib/wcswidth.c: Include <limits.h>.
7698         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7699         * lib/mbswidth.c: Include <limits.h>.
7700         (mbsnwidth): Avoid 'int' overflow.
7701         Reported by Jim Meyering.
7702
7703 2011-03-12  Bruno Haible  <bruno@clisp.org>
7704
7705         futimens, utimensat: Avoid endless recursion on Solaris 10.
7706         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7707         Solaris.
7708         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7709         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7710
7711 2011-03-11  Jim Meyering  <meyering@redhat.com>
7712
7713         maint.mk: relax a regexp to accommodate other formatting styles
7714         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7715         between "ngettext" and the following "(".
7716
7717 2011-03-11  Pádraig Brady <P@draigBrady.com>
7718
7719         maint.mk: suppress a false positive warning
7720         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7721         diagnostics are marked with ngettext.
7722
7723 2011-03-10  Eric Blake  <eblake@redhat.com>
7724
7725         wchar: add explicit dependencies, for Tru64
7726         * modules/mbmemcasecoll (Depends-on): Add wchar.
7727         * modules/mbtowc (Depends-on): Likewise.
7728         * modules/vasnprintf (Depends-on): Likewise.
7729         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7730         * modules/wctomb (Depends-on): Likewise.
7731         Reported by Peter O'Gorman.
7732
7733 2011-03-08  Bruno Haible  <bruno@clisp.org>
7734
7735         passfd module, part 1, tweaks.
7736         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7737         Improve indentation. Improve AC_MSG_CHECKING messages.
7738         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7739         gl_SOCKET_FAMILIES.
7740
7741 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7742
7743         passfd module, part 1.
7744         * m4/afunix.m4: New file.
7745         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7746         sockets.
7747
7748 2011-03-08  Bruno Haible  <bruno@clisp.org>
7749
7750         regex-quote: New API.
7751         * lib/regex-quote.h: Include <stdbool.h>.
7752         (struct regex_quote_spec): New type.
7753         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7754         New declarations.
7755         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7756         'const struct regex_quote_spec *' argument.
7757         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7758         (pcre_special): New constant.
7759         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7760         New functions.
7761         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7762         'const struct regex_quote_spec *' argument.
7763         * modules/regex-quote (Depends-on): Add stdbool.
7764         * tests/test-regex-quote.c (check): Update for new API. Add test for
7765         anchored results.
7766         * NEWS: Mention the API change.
7767         Reported by Reuben Thomas and Eric Blake.
7768
7769 2011-03-06  Bruno Haible  <bruno@clisp.org>
7770
7771         regex-quote: Fix creation of POSIX extended regular expressions.
7772         * lib/regex-quote.c (ere_special): Add grouping and alternation
7773         operators.
7774
7775 2011-03-05  Bruno Haible  <bruno@clisp.org>
7776
7777         doc: Improve doc regarding autopoint vs. gnulib.
7778         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7779         disable autopoint while running autoreconf.
7780         Suggested by Ralf Wildenhues.
7781
7782 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7783
7784         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
7785         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
7786
7787 2011-03-03  Bruce Korb  <bkorb@gnu.org>
7788
7789         parse-duration: remove xalloc.h dependency
7790         * lib/parse-duration.c (parse_period): handle NULL return from
7791         strdup instead of calling xstrdup().
7792         * modules/parse-duration: remove "xalloc" dependency
7793
7794 2011-03-03  Matthew Booth  <mbooth@redhat.com>
7795
7796         bootstrap: honor m4_base when running aclocal
7797         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
7798
7799 2011-03-02  Jim Meyering  <meyering@redhat.com>
7800
7801         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
7802         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
7803         on request from Matt Booth.
7804
7805 2011-03-01  Eric Blake  <eblake@redhat.com>
7806
7807         test-link: work on Hurd
7808         * tests/test-link.h (test_link): Hurd rejects linking directories
7809         with EISDIR instead of the POSIX-mandated EPERM.
7810
7811 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
7812
7813         stdio: simplify by moving files to printf-posix, sigpipe
7814         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
7815         since this symbol is needed only if printf is replaced.
7816         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
7817         Require gl_ASM_SYMBOL_PREFIX.
7818         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
7819         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
7820         (Depends-on): Add 'raise'.
7821         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
7822         * modules/stdio (Files): Remove lib/stdio-write.c,
7823         m4/asm-underscore.m4.
7824         (Depends-on): Remove 'raise'.
7825
7826         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
7827         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
7828         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
7829         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
7830
7831 2011-02-28  Bruno Haible  <bruno@clisp.org>
7832
7833         localcharset: Assume ANSI C behaviour of free().
7834         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
7835         calling free().
7836         Suggested by Simon Josefsson <simon@josefsson.org>.
7837
7838 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
7839             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
7840             Bruno Haible  <bruno@clisp.org>  (tiny change)
7841
7842         On Cygwin, use /proc file system instead of win32 API.
7843         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
7844         Win32 file names.
7845         (DllMain): Simplify by removing Cygwin specific code.
7846         (find_shared_library_fullname): Use Linux specific implementation also
7847         for Cygwin.
7848         (get_shared_library_fullname): Update accordingly.
7849         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
7850         Win32 file names.
7851         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
7852         Cygwin specific code.
7853
7854 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
7855             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
7856
7857         Fix OpenMP flag detection for various Fortran compilers.
7858         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
7859         OpenMP-conditional compilation construct, to force compile
7860         failure with missing OpenMP flag.
7861         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
7862
7863 2011-02-25  Eric Blake  <eblake@redhat.com>
7864
7865         strstr: expand test coverage
7866         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
7867         compilation.
7868         * tests/test-memmem.c (main): Duplicate tests.
7869         * tests/test-strcasestr.c (main): Likewise.
7870         * tests/test-c-strcasestr.c (main): Likewise.
7871
7872 2011-02-25  Jim Meyering  <meyering@redhat.com>
7873
7874         maint.mk: detect missing-NL-at-EOF, too
7875         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
7876         it also detects when a file lacks a newline at EOF.
7877         (require_exactly_one_NL_at_EOF_): Renamed from
7878         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
7879         since people may well have .x-sc_... file names tied to the
7880         existing name.  Suggested by Eric Blake.
7881
7882 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7883
7884         dirname: move m4/dos.m4 functionality into lib/dosname.h
7885
7886         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
7887         extracts symbols from it, puts them into config.h; but it's much
7888         easier to use the symbols directly.  filename.h already does this,
7889         but it disagrees with dos.m4 in some respects.  This patch
7890         introduces a different include file dosname.h that packages up
7891         dos.m4, and then later we can work on merging filename.h and
7892         dosname.h.  Applications that need only the easy-to-configure
7893         symbols should consider including dosname.h rather than dirname.h.
7894         * NEWS: Mention incompatible changes.
7895         * m4/dos.m4: Remove.
7896         * lib/dosname.h, modules/dosname: New files.
7897         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
7898         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
7899         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
7900         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
7901         Include dosname.h, not dirname.h.
7902         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
7903         Include dosname.h, for definitions of symbols like ISSLASH
7904         that used to be in config.h.
7905         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
7906         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7907         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7908         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7909         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
7910         * modules/rmdir (Files): Likewise.
7911         * modules/stat (Files): Likewise.
7912         * modules/unlink (Files): Likewise.
7913         * modules/dirname-lgpl (Depends-on): Add dosname.
7914         * modules/lstat (Depends-on): Likewise.
7915         * modules/openat (Depends-on): Likewise.
7916         * modules/rmdir (Depends-on): Likewise.
7917         * modules/savewd (Depends-on): Likewise.
7918         * modules/stat (Depends-on): Likewise.
7919         * modules/unlink (Depends-on): Likewise.
7920         * modules/openat (Depends-on): Remove dirname-lgpl.
7921         * modules/savewd (Depends-on): Likewise.
7922         * tests/test-dirname.c: Do not use removed symbols like
7923         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
7924         the remaining symbols, e.g., ISSLASH ('\\').
7925
7926 2011-02-25  Eric Blake  <eblake@redhat.com>
7927
7928         strstr: revert patches that introduced bug and pessimization
7929         * lib/str-two-way.h: Add another reference.
7930         (two_way_short_needle, two_way_long_needle): Revert changes from
7931         2011-02-24; they pessimize search speed.
7932         (critical_factorization): Partially revert changes from
7933         2010-06-22; they violate the requirement that the left half of the
7934         needle be smaller than the period of the needle.
7935
7936 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7937
7938         filenamecat: remove unnecessary dependency on dirname-lgpl
7939         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
7940         is no direct dependency, just an indirect one via filenamecat-lgpl.
7941
7942         remove: remove unnecessary use of m4/dos.m4
7943         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
7944         * modules/remove (FILES): Remove m4/dos.m4.
7945
7946         * lib/openat-proc.c: Don't include dirname.h; not needed.
7947
7948         backupfile: remove unnecessary use of m4/dos.m4
7949         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
7950         of its symbols are used by the backupfile code.  backupfile.c does
7951         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
7952         for the rare case of programs that want all their backup file
7953         names to live within 8+3 limits, and dos.m4 doesn't address that.
7954         * modules/backupfile (Files): Remove m4/dos.m4.
7955
7956 2011-02-24  Jim Meyering  <meyering@redhat.com>
7957
7958         strstr: fix a bug whereby strstr would mistakenly return NULL
7959         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
7960         in period calculation.
7961         (two_way_long_needle): Likewise.
7962         The original problem was reported by Mike Stump in
7963         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
7964         Ralf Wildenhues provided the short needle and haystack.
7965         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
7966         Add a more involved test to trigger the bug in two_way_long_needle.
7967
7968 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7969
7970         gnulib-tool: remove use of bold display in help screen
7971         * gnulib-tool (func_usage): Do not use bold display anymore in the
7972         help screen.  That was just meant to be a temporary emphasis for a
7973         backward-incompatible change.
7974
7975 2011-02-23  Bruno Haible  <bruno@clisp.org>
7976
7977         Fix misindentation of preprocessor directives.
7978         * lib/argp-namefrob.h: Reindent preprocessor directives.
7979         * lib/getopt_int.h (struct _getopt_data): Likewise.
7980         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
7981         * lib/vasnprintf.c (decode_long_double): Likewise.
7982         * tests/test-argmatch.c: Insert blank lines, for clarity.
7983         * tests/test-exclude.c: Likewise.
7984
7985 2011-02-22  Bruno Haible  <bruno@clisp.org>
7986
7987         ioctl: Fix for MacOS X in 64-bit mode.
7988         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
7989         value.
7990         Suggested by Eric Blake.
7991         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
7992
7993 2011-02-22  Jim Meyering  <meyering@redhat.com>
7994
7995         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
7996         * Makefile (sc_cpp_indent_check): Don't limit the check to files
7997         in lib/.
7998
7999 2011-02-22  Eric Blake  <eblake@redhat.com>
8000
8001         maint: avoid any CDPATH issue
8002         * Makefile (sc_cpp_indent_check): Anchor cd argument.
8003
8004         maint: adjust cpp indentation for my modules, as well
8005         * Makefile (sc_cpp_indent_check): Add my name.
8006         * lib/fbufmode.c: Filter through cppi.
8007         * lib/fpurge.c: Likewise.
8008         * lib/freadable.c: Likewise.
8009         * lib/freading.c: Likewise.
8010         * lib/fwritable.c: Likewise.
8011         * lib/fwriting.c: Likewise.
8012         * lib/sigaction.c: Likewise.
8013
8014 2011-02-22  Jim Meyering  <meyering@redhat.com>
8015
8016         maint: adjust cpp indentation to reflect nesting depth
8017         I.e., in a block of code that begins with an unnested "#if",
8018         put one space between the "#" in column 1 and following token.
8019         For example,
8020         -#include <sys/vfs.h>
8021         +# include <sys/vfs.h>
8022         Do this only in .c files that are part of a module I maintain.
8023         * lib/linkat.c: Filter through cppi.
8024         * lib/nanosleep.c: Likewise.
8025         * lib/openat.c: Likewise.
8026         * lib/openat-die.c: Likewise.
8027         * lib/dup3.c: Likewise.
8028         * lib/fchownat.c: Likewise.
8029         * lib/flock.c: Likewise.
8030         * lib/fsync.c: Likewise.
8031         * lib/fts.c: Likewise.
8032         * lib/getpass.c: Likewise.
8033         * lib/gettimeofday.c: Likewise.
8034         * lib/userspec.c: Likewise.
8035         * Makefile (sc_cpp_indent_check): New rule, to check this.
8036
8037 2011-02-22  Bruno Haible  <bruno@clisp.org>
8038
8039         New module 'wctomb'.
8040         * lib/stdlib.in.h (wctomb): New declaration.
8041         * lib/wctomb.c: New file.
8042         * lib/wctomb-impl.h: New file.
8043         * m4/wctomb.m4: New file.
8044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
8045         REPLACE_WCTOMB.
8046         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
8047         REPLACE_WCTOMB.
8048         * modules/wctomb: New file.
8049         * tests/test-stdlib-c++.cc: Test signature of wctomb.
8050         * doc/posix-functions/wctomb.texi: Mention the new module.
8051         * modules/wctob (Depends-on): Add wctomb.
8052
8053 2011-02-22  Bruno Haible  <bruno@clisp.org>
8054
8055         New module 'mbtowc'.
8056         * lib/stdlib.in.h (mbtowc): New declaration.
8057         * lib/mbtowc.c: New file.
8058         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
8059         * m4/mbtowc.m4: New file.
8060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
8061         REPLACE_MBTOWC.
8062         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
8063         REPLACE_MBTOWC.
8064         * modules/mbtowc: New file.
8065         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
8066         * doc/posix-functions/mbtowc.texi: Mention the new module.
8067         * modules/btowc (Depends-on): Add mbtowc.
8068
8069 2011-02-22  Bruno Haible  <bruno@clisp.org>
8070
8071         wcrtomb: Add more tests for native Windows platforms.
8072         * tests/test-wcrtomb-w32-1.sh: New file.
8073         * tests/test-wcrtomb-w32-2.sh: New file.
8074         * tests/test-wcrtomb-w32-3.sh: New file.
8075         * tests/test-wcrtomb-w32-4.sh: New file.
8076         * tests/test-wcrtomb-w32-5.sh: New file.
8077         * tests/test-wcrtomb-w32.c: New file.
8078         * modules/wcrtomb-tests (Files): Add them.
8079         (Makefile.am): Arrange to run these tests.
8080         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
8081         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
8082
8083 2011-02-20  Bruno Haible  <bruno@clisp.org>
8084
8085         wcrtomb: Enhance test.
8086         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
8087
8088 2011-02-20  Bruno Haible  <bruno@clisp.org>
8089
8090         mbrtowc: Tiny optimization.
8091         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
8092
8093 2011-02-20  Jim Meyering  <meyering@redhat.com>
8094
8095         test-exclude.c: remove unmatched #endif
8096         * tests/test-exclude.c: Remove stray #endif, left over from
8097         the change of a week ago.
8098
8099 2011-02-19  Jim Meyering  <meyering@redhat.com>
8100
8101         git-version-gen: skip "-dirty" check when appropriate
8102         * build-aux/git-version-gen: Don't run any git commands when the
8103         version string comes from .tarball-version.  Prior to this, we
8104         would run git update-index --refresh even from a just-unpacked
8105         tarball directory, and that could affect a .git/ directory in a
8106         parent of the build directory.  Reported by Mike Frysinger.
8107
8108 2011-02-19  Bruno Haible  <bruno@clisp.org>
8109
8110         unictype/property-byname: Reduce the size of the 'data' segment.
8111         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
8112
8113 2011-02-19  Bruno Haible  <bruno@clisp.org>
8114
8115         unictype/scripts: Reduce the size of the 'data' segment.
8116         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
8117         '%pic'.
8118         * lib/unictype/scripts_byname.gperf: Regenerated.
8119
8120 2011-02-19  Bruno Haible  <bruno@clisp.org>
8121
8122         stdint: Update documentation.
8123         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
8124
8125 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8126
8127         stdint: omit redundant check for wchar.h
8128         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
8129         always tests whether wchar.h exists, so remove the now-redundant test.
8130
8131 2011-02-18  Bruno Haible  <bruno@clisp.org>
8132
8133         stdint: Cut dependency to module 'wchar'.
8134         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
8135         include the necessary prerequisites.
8136         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
8137         * modules/stdint (Depends-on): Remove wchar.
8138         (Makefile.am): Substitute HAVE_WCHAR_H.
8139         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
8140
8141 2011-02-18  Eric Blake  <eblake@redhat.com>
8142
8143         longlong: skip, rather than fail, on cross-compilation
8144         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
8145         when cross-compiling; regression from 2011-02-16.
8146
8147 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8148
8149         * NEWS: Mention 2011-02-08 change to stdlib.
8150
8151 2011-02-17  Bruno Haible  <bruno@clisp.org>
8152
8153         getloadavg: Add comments about platforms.
8154         * m4/getloadavg.m4: Add comment.
8155         * lib/getloadavg.c: Likewise.
8156
8157 2011-02-17  Bruno Haible  <bruno@clisp.org>
8158
8159         getloadavg: Fix link error on Solaris 2.6.
8160         * modules/getloadavg (Link): New section.
8161         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
8162         linking test-getloadavg.
8163         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
8164         getloadavg.
8165
8166 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8167
8168         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
8169         It was 'int', but this doesn't match the IRIX 6.5 manual.
8170         Suggested by Bruno Haible in
8171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
8172
8173 2011-02-17  Bruno Haible  <bruno@clisp.org>
8174
8175         havelib: Fix comments.
8176         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
8177         change.
8178
8179 2011-02-17  Bruno Haible  <bruno@clisp.org>
8180
8181         havelib: Update config.rpath.
8182         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
8183
8184 2011-02-17  Bruno Haible  <bruno@clisp.org>
8185
8186         getloadavg test: Add some plausibility checks.
8187         * tests/test-getloadavg.c (check_avg): Print a warning when the value
8188         is improbable.
8189
8190 2011-02-16  Eric Blake  <eblake@redhat.com>
8191
8192         maintainer-makefile: make syntax-check a no-op from tarballs
8193         * top/maint.mk (no-vc-detected): New rule.
8194         (local-checks-available): Use it to avoid hanging if someone tries
8195         'make syntax-check' from a tarball.  Also append to any non-syntax
8196         checks already defined in cfg.mk.
8197
8198 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8199
8200         longlong: tune, particularly for common case of c99
8201
8202         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
8203         or running anything if c99, or if unsigned long long int does not
8204         work.  In either case, we know the answer without further tests.
8205         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
8206         it at most once, and use its results for both long long int and
8207         unsigned long long int.  This is more likely to be efficient in
8208         the common case where the program wants to check for both long
8209         long int and unsigned long long int.
8210         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8211         since the answer is already known.
8212
8213 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8214
8215         getloadavg: set errno
8216         * lib/getloadavg.c: Set errno when returning -1.  If no other
8217         error number looks appropriate, set it to ENOSYS if the getloadavg
8218         looks like it can't possibly ever work, ENOTSUP otherwise.
8219         Suggested by Bruno Haible in
8220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8221
8222         getloadavg: trim unused parts and speed up 'configure'
8223         * NEWS: Document this.
8224         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8225         always compiled if getloadavg is absent.
8226         Move test code to ...
8227         * tests/test-getloadavg.c: New file, containing previous
8228         contents of test from lib/getloadavg.c.  It also contains
8229         suggestions by Bruno Haible in
8230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8231         * modules/getloadavg-tests: New file.
8232         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8233         Do tests in the same order as they're needed for getloadavg.c.
8234         Omit setgid-related tests that generate symbols KMEM_GROUP,
8235         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8236         Do only the tests that are needed to see whether the system has
8237         getloadavg, moving the other tests into ...
8238         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8239         NLIST_NAME_UNION; nobody should be using it.  Do not define
8240         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8241         relevant, as the user of this module shouldn't care how getloadavg
8242         is implemented.
8243
8244         getloadavg: omit unused var
8245         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8246
8247 2011-02-15  Jim Meyering  <meyering@redhat.com>
8248
8249         doc: update users.txt
8250         * users.txt: Update iwhd's URL.
8251
8252 2011-02-13  Bruno Haible  <bruno@clisp.org>
8253
8254         Consistent macro naming for macros that use GCC __attribute__.
8255         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8256         _ATTRIBUTE_NONNULL_.
8257         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8258         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8259         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8260         ATTRIBUTE_DEPRECATED.
8261         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8262         ATTRIBUTE_NORETURN.
8263         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8264         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8265         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8266         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8267         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8268         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8269         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8270         ATTRIBUTE_SENTINEL.
8271         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8272         ATTRIBUTE_RETURN_CHECK.
8273         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8274         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8275         ATTRIBUTE_NORETURN.
8276         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8277         Reported by Paul Eggert.
8278
8279 2011-02-13  Bruno Haible  <bruno@clisp.org>
8280
8281         Don't interfere with a program's definition of __attribute__.
8282         * lib/argp.h (__attribute__): Remove definition.
8283         (_GL_ATTRIBUTE_FORMAT): New macro.
8284         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8285         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8286         (_GL_ATTRIBUTE_FORMAT): New macro.
8287         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8288         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8289         GCC 3 or newer.
8290         * lib/error.h (__attribute__): Remove definition.
8291         (_GL_ATTRIBUTE_FORMAT): New macro.
8292         (error, error_at_line): Use it.
8293         * lib/hash.h (__attribute__): Remove definition.
8294         (ATTRIBUTE_WUR): Update definition. Define always.
8295         * lib/openat.h (__attribute__): Remove definition.
8296         (ATTRIBUTE_NORETURN): Update definition. Define always.
8297         * lib/sigpipe-die.h (__attribute__): Remove definition.
8298         (ATTRIBUTE_NORETURN): Update definition. Define always.
8299         * lib/vasnprintf.h (__attribute__): Remove definition.
8300         (_GL_ATTRIBUTE_FORMAT): New macro.
8301         (asnprintf, vasnprintf): Use it.
8302         * lib/xalloc.h (__attribute__): Remove definition.
8303         (ATTRIBUTE_NORETURN): Update definition. Define always.
8304         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8305         * lib/xmemdup0.h (__attribute__): Remove definition.
8306         (ATTRIBUTE_NORETURN): Update definition. Define always.
8307         * lib/xprintf.h (__attribute__): Remove definition.
8308         (_GL_ATTRIBUTE_FORMAT): New macro.
8309         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8310         * lib/xstrtol.h (__attribute__): Remove definition.
8311         (ATTRIBUTE_NORETURN): Update definition. Define always.
8312         * lib/xvasprintf.h (__attribute__): Remove definition.
8313         (_GL_ATTRIBUTE_FORMAT): New macro.
8314         (xasprintf, xvasprintf): Use it.
8315         * tests/test-argmatch.c (__attribute__): Remove definition.
8316         (ATTRIBUTE_NORETURN): Update definition. Define always.
8317         * tests/test-exclude.c (__attribute__): Remove definition.
8318         (ATTRIBUTE_NORETURN): Update definition. Define always.
8319         Reported by Paul Eggert.
8320
8321 2011-02-13  Bruno Haible  <bruno@clisp.org>
8322
8323         mbrtowc: Add more tests for native Windows platforms.
8324         * tests/test-mbrtowc-w32-1.sh: New file.
8325         * tests/test-mbrtowc-w32-2.sh: New file.
8326         * tests/test-mbrtowc-w32-3.sh: New file.
8327         * tests/test-mbrtowc-w32-4.sh: New file.
8328         * tests/test-mbrtowc-w32-5.sh: New file.
8329         * tests/test-mbrtowc-w32.c: New file.
8330         * modules/mbrtowc-tests (Files): Add them.
8331         (Makefile.am): Arrange to run these tests.
8332         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8333         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8334
8335 2011-02-13  Bruno Haible  <bruno@clisp.org>
8336
8337         mbrtowc: Work around native Windows bug.
8338         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8339         guess when no suitable locale for testing was found.
8340         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8341
8342 2011-02-13  Bruno Haible  <bruno@clisp.org>
8343
8344         mbsinit: Work around mingw bug.
8345         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8346         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8347         Windows.
8348         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8349
8350 2011-02-13  Bruno Haible  <bruno@clisp.org>
8351
8352         mbsinit: Don't crash for a NULL argument.
8353         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8354         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8355
8356 2011-02-13  Bruno Haible  <bruno@clisp.org>
8357
8358         Don't interfere with a program's definition of __attribute__.
8359         * lib/stdio.in.h (__attribute__): Remove definition.
8360         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8361         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8362         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8363         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8364         * lib/string.in.h (__attribute__): Remove definition.
8365         Reported by Paul Eggert.
8366
8367 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8368
8369         stdlib: don't get in the way of non-GCC __attribute__
8370         See thread starting at
8371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8372         Revert previous stdlib change, installing the following instead:
8373         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8374         to get in the way of a non-GCC compiler that supports __attribute__.
8375         (_GL_ATTRIBUTE_RETURN): New macro.
8376         (_Exit): Use it instead of __attribute__.
8377
8378 2011-02-12  Bruno Haible  <bruno@clisp.org>
8379
8380         quotearg test: Avoid test failure on mingw.
8381         * tests/test-quotearg.sh: Convert the locale identifier from native
8382         Windows syntax to Unix syntax.
8383
8384 2011-02-12  Bruno Haible  <bruno@clisp.org>
8385
8386         setlocale: Prefer gnulib's override over libintl's override.
8387         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8388         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8389         GNULIB_defined_setlocale is set.
8390
8391 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8392
8393         stdlib: support non-GCC __attribute__
8394
8395         Fix a serious and tricky problem encountered when attempting to
8396         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8397         5.5, but it crashed due to memory corruption on Solaris 10 with
8398         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8399         bits that are otherwise zero.  This tagging is optional inside
8400         Emacs but is preferred and is used when __attribute__ ((__aligned
8401         (8))) works, as it does with both recent-enough GCC and with Sun C
8402         5.11.  However, Sun C 5.11 is not GCC and does not #define
8403         __GNUC__ and __GNUC_MINOR__.
8404
8405         When I added the getloadavg module to Emacs, it brought in
8406         stdlib.in.h, which contained this fragment:
8407
8408            #ifndef __attribute__
8409            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8410            #  define __attribute__(Spec)   /* empty */
8411            # endif
8412            #endif
8413
8414         When files that include <stdlib.h> were compiled with Sun C 5.11,
8415         the above code disabled __attribute__ ((__aligned (8))), which
8416         caused variables to not be properly aligned, which eventually led
8417         to the pointer corruption mentioned above.  (This was a bit hard
8418         to diagnose, unfortunately.)
8419
8420         Several "#define __attribute__(X) /* empty */" code snippets need
8421         to be eradicated from Gnulib to work with non-GCC compilers that
8422         support __attribute__.  The Autoconf way to do this is to test for
8423         each kind of attribute that we want support for, and selectively
8424         enable that in source code.
8425
8426         Fix this problem just for stdlib.h, by adding a test for the
8427         __noreturn__ attribute, and change stdlib.in.h to use that test
8428         when needed.  This technique can be easily generalized to the
8429         other *.in.h files and attributes, and a similar technique can be
8430         used for *.h and *.c files.  This patch is enough to solve the
8431         problem for Emacs + getloadavg, and I thought I'd publish it for
8432         feedback before undertaking further, similar fixes in other
8433         modules.
8434
8435         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8436         because it's not needed for stdlib.h.  It merely substitutes the
8437         value directly into stdlib.h.  We may well need to #define it, or
8438         similar symbols, for other modules, but it's nice to also have an
8439         option to not #define it for applications like Emacs that do not
8440         need it.
8441
8442         * lib/stdlib.in.h (__attribute__): Do not #define.
8443         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8444         be defined only if the _Exit module is also used.
8445         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8447         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8448         platforms.
8449         * modules/_Exit (Files): Add m4/attribute.m4.
8450         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8451         * m4/attribute.m4: New file.
8452
8453 2011-02-12  Bruno Haible  <bruno@clisp.org>
8454
8455         wcsrtombs: Work around bug on native Windows.
8456         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8457         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8458         instead of len.
8459         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8460
8461 2011-02-12  Bruno Haible  <bruno@clisp.org>
8462
8463         mbsrtowcs: Work around bug on native Windows.
8464         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8465         against mingw bug.
8466         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8467
8468 2011-02-12  Bruno Haible  <bruno@clisp.org>
8469
8470         Avoid setlocale bugs in tests.
8471         * modules/btowc (Dependencies): Add setlocale.
8472         * modules/c-strcase (Dependencies): Likewise.
8473         * modules/mbmemcasecmp (Dependencies): Likewise.
8474         * modules/mbmemcasecoll (Dependencies): Likewise.
8475         * modules/mbrtowc (Dependencies): Likewise.
8476         * modules/mbscasecmp (Dependencies): Likewise.
8477         * modules/mbscasestr (Dependencies): Likewise.
8478         * modules/mbschr (Dependencies): Likewise.
8479         * modules/mbscspn (Dependencies): Likewise.
8480         * modules/mbsinit (Dependencies): Likewise.
8481         * modules/mbsncasecmp (Dependencies): Likewise.
8482         * modules/mbsnrtowcs (Dependencies): Likewise.
8483         * modules/mbspbrk (Dependencies): Likewise.
8484         * modules/mbspcasecmp (Dependencies): Likewise.
8485         * modules/mbsrchr (Dependencies): Likewise.
8486         * modules/mbsrtowcs (Dependencies): Likewise.
8487         * modules/mbsspn (Dependencies): Likewise.
8488         * modules/mbsstr (Dependencies): Likewise.
8489         * modules/nl_langinfo (Dependencies): Likewise.
8490         * modules/quotearg (Dependencies): Likewise.
8491         * modules/unicase/locale-language (Dependencies): Likewise.
8492         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8493         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8494         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8495         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8496         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8497         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8498         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8499         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8500         * modules/vasnprintf-posix (Dependencies): Likewise.
8501         * modules/wcrtomb (Dependencies): Likewise.
8502         * modules/wcsnrtombs (Dependencies): Likewise.
8503         * modules/wcsrtombs (Dependencies): Likewise.
8504
8505 2011-02-12  Bruno Haible  <bruno@clisp.org>
8506
8507         setlocale: Workaround native Windows bug.
8508         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8509         succeeds but sets LC_CTYPE to "C", report a failure.
8510         * tests/test-setlocale2.sh: New file.
8511         * tests/test-setlocale2.c: New file.
8512         * modules/setlocale-tests (Files): Add the new files.
8513         (Makefile.am): Enable test-setlocale2.sh test.
8514         * doc/posix-functions/setlocale.texi: Mention workaround.
8515
8516 2011-02-11  Bruno Haible  <bruno@clisp.org>
8517
8518         Tests for module 'setlocale'.
8519         * modules/setlocale-tests: New file.
8520         * tests/test-setlocale1.sh: New file.
8521         * tests/test-setlocale1.c: New file.
8522
8523         New module 'setlocale'.
8524         * lib/locale.in.h (setlocale): New declaration.
8525         * lib/setlocale.c: New file, based on
8526         gettext/gettext-runtime/intl/setlocale.c.
8527         * m4/setlocale.m4: New file.
8528         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8529         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8530         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8531         REPLACE_SETLOCALE.
8532         * modules/setlocale: New file.
8533         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8534         * doc/posix-functions/setlocale.texi: Mention the new module.
8535
8536 2011-02-11  Bruno Haible  <bruno@clisp.org>
8537
8538         Prepare for locale dependent tests on mingw.
8539         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8540         because it has the wrong locale encoding.
8541         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8542         French_France.1252 instead of "fr".
8543         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8544         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8545         because it has the wrong locale encoding.
8546         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8547         native Windows, try Turkish_Turkey.65001.
8548         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8549         Chinese_China.54936.
8550
8551         Prepare for locale dependent tests on mingw.
8552         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8553         differently.
8554         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8555         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8556         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8557         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8558
8559 2011-02-11  Eric Blake  <eblake@redhat.com>
8560
8561         strptime: avoid compiler warnings
8562         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8563         compiler warnings about dead code.
8564         Reported by Daniel P. Berrange.
8565
8566 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8567
8568         doc: update users.txt
8569         * users.txt: Add rcs.
8570
8571 2011-02-10  John W. Eaton  <jwe@gnu.org>
8572
8573         doc: update users.txt
8574         * users.txt: Add octave.
8575
8576 2011-02-10  Jim Meyering  <meyering@redhat.com>
8577
8578         doc: update users.txt
8579         * users.txt: Add iwhd.
8580
8581 2011-02-09  Bruno Haible  <bruno@clisp.org>
8582
8583         gnulib-tool: Make copyright notice adjustment more robust.
8584         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8585         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8586         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8587         License".
8588         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8589
8590 2011-02-06  Bruno Haible  <bruno@clisp.org>
8591
8592         New module 'towctrans'.
8593         * modules/towctrans: New file.
8594         * lib/wctype.in.h (towctrans): New declaration.
8595         * lib/towctrans.c: New file.
8596         * lib/towctrans-impl.h: New file.
8597         * m4/towctrans.m4: New file.
8598         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8599         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8600         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8601         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8602         * doc/posix-functions/towctrans.texi: Mention the new module.
8603
8604 2011-02-06  Bruno Haible  <bruno@clisp.org>
8605
8606         New module 'wctrans'.
8607         * modules/wctrans: New file.
8608         * lib/wctype.in.h (wctrans): New declaration.
8609         * lib/wctrans.c: New file.
8610         * lib/wctrans-impl.h: New file.
8611         * m4/wctrans.m4: New file.
8612         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8613         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8614         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8615         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8616         * doc/posix-functions/wctrans.texi: Mention the new module.
8617
8618 2011-02-06  Bruno Haible  <bruno@clisp.org>
8619
8620         New module 'iswctype'.
8621         * modules/iswctype: New file.
8622         * lib/wctype.in.h (iswctype): New declaration.
8623         * lib/iswctype.c: New file.
8624         * lib/iswctype-impl.h: New file.
8625         * m4/iswctype.m4: New file.
8626         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8627         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8628         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8629         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8630         * doc/posix-functions/iswctype.texi: Mention the new module and the
8631         HP-UX 11.00 problem.
8632
8633 2011-02-06  Bruno Haible  <bruno@clisp.org>
8634
8635         New module 'wctype'.
8636         * modules/wctype: Change to represent the wctype() substitute.
8637         * lib/wctype.in.h (wctype): New declaration.
8638         * lib/wctype.c: New file.
8639         * lib/wctype-impl.h: New file.
8640         * m4/wctype.m4: New file.
8641         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8642         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8643         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8644         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8645         * doc/posix-functions/wctype.texi: Mention the new module and the
8646         HP-UX 11.00 problem.
8647
8648 2011-02-06  Bruno Haible  <bruno@clisp.org>
8649
8650         wctype-h: Ensure wctype_t and wctrans_t are defined.
8651         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8652         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8653         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8654         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8655         HAVE_WCTRANS_T.
8656         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8657
8658 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8659
8660         flock: fix license typo
8661
8662         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8663         omitted.
8664
8665 2011-02-08  Bruno Haible  <bruno@clisp.org>
8666
8667         Split large sed scripts, for HP-UX sed.
8668         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8669         to avoid HP-UX limit of 99 commands, in the near future.
8670         * modules/stdlib (Makefile.am): Likewise.
8671         * modules/unistd (Makefile.am): Likewise.
8672         * modules/wchar (Makefile.am): Likewise.
8673         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8674         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8675         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8676
8677 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8678             Bruno Haible  <bruno@clisp.org>
8679
8680         stdlib: improve random_r modularization
8681         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8682         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8683         you also need the random_r module to get this material right.
8684         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8685         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8686         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8687
8688 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8689
8690         stdlib: don't depend on stdint
8691         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8692         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8693         be independent of whether stdint.h is needed.
8694         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8695         here, instead of ...
8696         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8697         struct random_data should be using the random_r module, not just
8698         the stdlib module (which wouldn't make sense: what package needs
8699         just struct random_data without also needing random_r?).
8700         * modules/stdlib (Depends-on): Remove stdint.
8701
8702         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8703         See the thread rooted at
8704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8705         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8706         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8707         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8708         __VMS)); previously it was always included (via fcntl--.h).
8709         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8710         hand; this is good enough for load averages.  Also, do not use
8711         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8712         flags directly if available and don't bother otherwise.  (Packages
8713         that need the extra reliability should use the modules that define
8714         these flags on older platforms that lack them.)
8715         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8716         fcntl-safer.
8717
8718 2011-02-08  Jim Meyering  <meyering@redhat.com>
8719
8720         di-set.h, ino-map.h: add multiple-inclusion guard
8721         Technically, the guard is required only for ino-map.h, due to its
8722         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8723         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8724         * lib/ino-map.h: Likewise.
8725
8726 2011-02-06  Bruno Haible  <bruno@clisp.org>
8727
8728         iswblank: Ensure declaration on glibc systems.
8729         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8730         * modules/iswblank (Dependencies): Add 'extensions'.
8731         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8732
8733 2011-02-06  Bruno Haible  <bruno@clisp.org>
8734
8735         New module 'iswblank'.
8736         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8737         * modules/iswblank: New file.
8738         * modules/wctype-h (Files): Remove lib/iswblank.c.
8739         (Makefile.am): Substitute GNULIB_ISWBLANK.
8740         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8741         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8742         (gl_WCTYPE_H_DEFAULTS): New macro.
8743         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8744         * modules/iswblank-tests: New file.
8745         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8746         * tests/test-wctype-h.c (main): Remove iswblank tests.
8747         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8748         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8749         of 'wctype-h'.
8750         * NEWS: Mention the change.
8751         * modules/mbchar (Depends-on): Add iswblank.
8752
8753 2011-02-08  Bruno Haible  <bruno@clisp.org>
8754
8755         di-set tests: Refactor.
8756         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8757         unnecessary includes.
8758         (ASSERT): Remove macro.
8759         (main): Make C90 compliant by avoiding variable declaration after
8760         statement.
8761         * modules/di-set-tests (Files): Add tests/macros.h.
8762
8763 2011-02-08  Bruno Haible  <bruno@clisp.org>
8764
8765         ino-map tests: Refactor.
8766         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8767         unnecessary includes.
8768         (ASSERT): Remove macro.
8769         (main): Make C90 compliant by avoiding variable declaration after
8770         statement.
8771         * modules/ino-map-tests (Files): Add tests/macros.h.
8772
8773 2011-02-08  Jim Meyering  <meyering@redhat.com>
8774
8775         di-set: add "const" to a cast
8776         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8777         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8778
8779 2011-02-06  Bruno Haible  <bruno@clisp.org>
8780
8781         Rename module 'wctype' to 'wctype-h'.
8782         * modules/wctype-h: Renamed from modules/wctype.
8783         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
8784         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
8785         (Files, Depends-on, Makefile.am): Update.
8786         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
8787         (Files, Makefile.am): Update.
8788         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
8789         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
8790         * doc/posix-headers/wctype.texi: Update.
8791         * doc/posix-functions/iswalnum.texi: Update.
8792         * doc/posix-functions/iswalpha.texi: Update.
8793         * doc/posix-functions/iswblank.texi: Update.
8794         * doc/posix-functions/iswcntrl.texi: Update.
8795         * doc/posix-functions/iswdigit.texi: Update.
8796         * doc/posix-functions/iswgraph.texi: Update.
8797         * doc/posix-functions/iswlower.texi: Update.
8798         * doc/posix-functions/iswprint.texi: Update.
8799         * doc/posix-functions/iswpunct.texi: Update.
8800         * doc/posix-functions/iswspace.texi: Update.
8801         * doc/posix-functions/iswupper.texi: Update.
8802         * doc/posix-functions/iswxdigit.texi: Update.
8803         * doc/posix-functions/towlower.texi: Update.
8804         * doc/posix-functions/towupper.texi: Update.
8805         * NEWS: Mention the change.
8806         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
8807         * modules/mbchar (Dependencies): Likewise.
8808         * modules/mbswidth (Dependencies): Likewise.
8809         * modules/quotearg (Dependencies): Likewise.
8810         * modules/regex (Dependencies): Likewise.
8811         * modules/wcscasecmp (Dependencies): Likewise.
8812         * modules/wcsncasecmp (Dependencies): Likewise.
8813         * modules/wcwidth (Dependencies): Likewise.
8814
8815 2011-02-06  Bruno Haible  <bruno@clisp.org>
8816
8817         New module 'wcswidth'.
8818         * modules/wcswidth: New file.
8819         * lib/wchar.in.h (wcswidth): New declaration.
8820         * lib/wcswidth.c: New file.
8821         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
8822         * m4/wcswidth.m4: New file.
8823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
8824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
8825         REPLACE_WCSWIDTH.
8826         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
8827         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
8828         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
8829         * doc/posix-functions/wcswidth.texi: Mention the new module.
8830
8831 2011-02-06  Bruno Haible  <bruno@clisp.org>
8832
8833         New module 'wcstok'.
8834         * modules/wcstok: New file.
8835         * lib/wchar.in.h (wcstok): New declaration.
8836         * lib/wcstok.c: New file.
8837         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
8838         * m4/wcstok.m4: New file.
8839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
8840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
8841         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
8842         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
8843         * doc/posix-functions/wcstok.texi: Mention the new module.
8844
8845 2011-02-06  Bruno Haible  <bruno@clisp.org>
8846
8847         New module 'wcsstr'.
8848         * modules/wcsstr: New file.
8849         * lib/wchar.in.h (wcsstr): New declaration.
8850         * lib/wcsstr.c: New file.
8851         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8852         * m4/wcsstr.m4: New file.
8853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
8854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
8855         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
8856         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
8857         * doc/posix-functions/wcsstr.texi: Mention the new module.
8858
8859 2011-02-06  Bruno Haible  <bruno@clisp.org>
8860
8861         New module 'wcspbrk'.
8862         * modules/wcspbrk: New file.
8863         * lib/wchar.in.h (wcspbrk): New declaration.
8864         * lib/wcspbrk.c: New file.
8865         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
8866         * m4/wcspbrk.m4: New file.
8867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
8868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
8869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
8870         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
8871         * doc/posix-functions/wcspbrk.texi: Mention the new module.
8872
8873 2011-02-06  Bruno Haible  <bruno@clisp.org>
8874
8875         New module 'wcsspn'.
8876         * modules/wcsspn: New file.
8877         * lib/wchar.in.h (wcsspn): New declaration.
8878         * lib/wcsspn.c: New file.
8879         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
8880         * m4/wcsspn.m4: New file.
8881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
8882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
8883         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
8884         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
8885         * doc/posix-functions/wcsspn.texi: Mention the new module.
8886
8887 2011-02-06  Bruno Haible  <bruno@clisp.org>
8888
8889         New module 'wcscspn'.
8890         * modules/wcscspn: New file.
8891         * lib/wchar.in.h (wcscspn): New declaration.
8892         * lib/wcscspn.c: New file.
8893         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
8894         * m4/wcscspn.m4: New file.
8895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
8896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
8897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
8898         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
8899         * doc/posix-functions/wcscspn.texi: Mention the new module.
8900
8901 2011-02-06  Bruno Haible  <bruno@clisp.org>
8902
8903         New module 'wcsrchr'.
8904         * modules/wcsrchr: New file.
8905         * lib/wchar.in.h (wcsrchr): New declaration.
8906         * lib/wcsrchr.c: New file.
8907         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
8908         * m4/wcsrchr.m4: New file.
8909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
8910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
8911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
8912         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
8913         * doc/posix-functions/wcsrchr.texi: Mention the new module.
8914
8915 2011-02-06  Bruno Haible  <bruno@clisp.org>
8916
8917         New module 'wcschr'.
8918         * modules/wcschr: New file.
8919         * lib/wchar.in.h (wcschr): New declaration.
8920         * lib/wcschr.c: New file.
8921         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
8922         * m4/wcschr.m4: New file.
8923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
8924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
8925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
8926         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
8927         * doc/posix-functions/wcschr.texi: Mention the new module.
8928
8929 2011-02-06  Bruno Haible  <bruno@clisp.org>
8930
8931         New module 'wcsdup'.
8932         * modules/wcsdup: New file.
8933         * lib/wchar.in.h (wcsdup): New declaration.
8934         * lib/wcsdup.c: New file.
8935         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
8936         * m4/wcsdup.m4: New file.
8937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
8938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
8939         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
8940         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
8941         * doc/posix-functions/wcsdup.texi: Mention the new module.
8942
8943 2011-02-06  Bruno Haible  <bruno@clisp.org>
8944
8945         New module 'wcsxfrm'.
8946         * modules/wcsxfrm: New file.
8947         * lib/wchar.in.h (wcsxfrm): New declaration.
8948         * lib/wcsxfrm.c: New file.
8949         * lib/wcsxfrm-impl.h: New file.
8950         * m4/wcsxfrm.m4: New file.
8951         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
8952         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
8953         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
8954         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
8955         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
8956
8957 2011-02-06  Bruno Haible  <bruno@clisp.org>
8958
8959         New module 'wcscoll'.
8960         * modules/wcscoll: New file.
8961         * lib/wchar.in.h (wcscoll): New declaration.
8962         * lib/wcscoll.c: New file.
8963         * lib/wcscoll-impl.h: New file.
8964         * m4/wcscoll.m4: New file.
8965         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
8966         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
8967         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
8968         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
8969         * doc/posix-functions/wcscoll.texi: Mention the new module.
8970
8971 2011-02-06  Bruno Haible  <bruno@clisp.org>
8972
8973         New module 'wcsncasecmp'.
8974         * modules/wcsncasecmp: New file.
8975         * lib/wchar.in.h (wcsncasecmp): New declaration.
8976         * lib/wcsncasecmp.c: New file.
8977         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
8978         * m4/wcsncasecmp.m4: New file.
8979         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
8980         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
8981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
8982         HAVE_WCSNCASECMP.
8983         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
8984         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
8985
8986 2011-02-06  Bruno Haible  <bruno@clisp.org>
8987
8988         New module 'wcscasecmp'.
8989         * modules/wcscasecmp: New file.
8990         * lib/wchar.in.h (wcscasecmp): New declaration.
8991         * lib/wcscasecmp.c: New file.
8992         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
8993         * m4/wcscasecmp.m4: New file.
8994         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
8995         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
8996         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
8997         HAVE_WCSCASECMP.
8998         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
8999         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
9000
9001 2011-02-05  Bruno Haible  <bruno@clisp.org>
9002
9003         New module 'wcsncmp'.
9004         * modules/wcsncmp: New file.
9005         * lib/wchar.in.h (wcsncmp): New declaration.
9006         * lib/wcsncmp.c: New file.
9007         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
9008         * m4/wcsncmp.m4: New file.
9009         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
9010         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
9011         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
9012         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
9013         * doc/posix-functions/wcsncmp.texi: Mention the new module.
9014
9015 2011-02-05  Bruno Haible  <bruno@clisp.org>
9016
9017         New module 'wcscmp'.
9018         * modules/wcscmp: New file.
9019         * lib/wchar.in.h (wcscmp): New declaration.
9020         * lib/wcscmp.c: New file.
9021         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
9022         * m4/wcscmp.m4: New file.
9023         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9024         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9025         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9026         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9027         * doc/posix-functions/wcscmp.texi: Mention the new module.
9028
9029 2011-02-05  Bruno Haible  <bruno@clisp.org>
9030
9031         New module 'wcsncat'.
9032         * modules/wcsncat: New file.
9033         * lib/wchar.in.h (wcsncat): New declaration.
9034         * lib/wcsncat.c: New file.
9035         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
9036         * m4/wcsncat.m4: New file.
9037         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
9038         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
9039         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
9040         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
9041         * doc/posix-functions/wcsncat.texi: Mention the new module.
9042
9043 2011-02-05  Bruno Haible  <bruno@clisp.org>
9044
9045         New module 'wcscat'.
9046         * modules/wcscat: New file.
9047         * lib/wchar.in.h (wcscat): New declaration.
9048         * lib/wcscat.c: New file.
9049         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
9050         * m4/wcscat.m4: New file.
9051         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
9052         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
9053         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
9054         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
9055         * doc/posix-functions/wcscat.texi: Mention the new module.
9056
9057 2011-02-05  Bruno Haible  <bruno@clisp.org>
9058
9059         New module 'wcpncpy'.
9060         * modules/wcpncpy: New file.
9061         * lib/wchar.in.h (wcpncpy): New declaration.
9062         * lib/wcpncpy.c: New file.
9063         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
9064         * m4/wcpncpy.m4: New file.
9065         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
9066         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
9067         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
9068         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
9069         * doc/posix-functions/wcpncpy.texi: Mention the new module.
9070
9071 2011-02-05  Bruno Haible  <bruno@clisp.org>
9072
9073         New module 'wcsncpy'.
9074         * modules/wcsncpy: New file.
9075         * lib/wchar.in.h (wcsncpy): New declaration.
9076         * lib/wcsncpy.c: New file.
9077         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
9078         * m4/wcsncpy.m4: New file.
9079         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
9080         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
9081         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
9082         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
9083         * doc/posix-functions/wcsncpy.texi: Mention the new module.
9084
9085 2011-02-05  Bruno Haible  <bruno@clisp.org>
9086
9087         New module 'wcpcpy'.
9088         * modules/wcpcpy: New file.
9089         * lib/wchar.in.h (wcpcpy): New declaration.
9090         * lib/wcpcpy.c: New file.
9091         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
9092         * m4/wcpcpy.m4: New file.
9093         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
9094         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
9095         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
9096         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
9097         * doc/posix-functions/wcpcpy.texi: Mention the new module.
9098
9099 2011-02-05  Bruno Haible  <bruno@clisp.org>
9100
9101         New module 'wcscpy'.
9102         * modules/wcscpy: New file.
9103         * lib/wchar.in.h (wcscpy): New declaration.
9104         * lib/wcscpy.c: New file.
9105         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
9106         * m4/wcscpy.m4: New file.
9107         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
9108         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
9109         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
9110         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
9111         * doc/posix-functions/wcscpy.texi: Mention the new module.
9112
9113 2011-02-05  Bruno Haible  <bruno@clisp.org>
9114
9115         New module 'wcsnlen'.
9116         * modules/wcsnlen: New file.
9117         * lib/wchar.in.h (wcsnlen): New declaration.
9118         * lib/wcsnlen.c: New file.
9119         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
9120         * m4/wcsnlen.m4: New file.
9121         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
9122         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
9123         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
9124         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
9125         * doc/posix-functions/wcsnlen.texi: Mention the new module.
9126
9127 2011-02-05  Bruno Haible  <bruno@clisp.org>
9128
9129         New module 'wcslen'.
9130         * modules/wcslen: New file.
9131         * lib/wchar.in.h (wcslen): New declaration.
9132         * lib/wcslen.c: New file.
9133         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
9134         * m4/wcslen.m4: New file.
9135         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
9136         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
9137         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
9138         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
9139         * doc/posix-functions/wcslen.texi: Mention the new module.
9140
9141 2011-02-05  Bruno Haible  <bruno@clisp.org>
9142
9143         New module 'wmemset'.
9144         * modules/wmemset: New file.
9145         * lib/wchar.in.h (wmemset): New declaration.
9146         * lib/wmemset.c: New file.
9147         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
9148         * m4/wmemset.m4: New file.
9149         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
9150         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
9151         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
9152         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
9153         * doc/posix-functions/wmemset.texi: Mention the new module.
9154
9155 2011-02-05  Bruno Haible  <bruno@clisp.org>
9156
9157         New module 'wmemmove'.
9158         * modules/wmemmove: New file.
9159         * lib/wchar.in.h (wmemmove): New declaration.
9160         * lib/wmemmove.c: New file.
9161         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
9162         * m4/wmemmove.m4: New file.
9163         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
9164         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
9165         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
9166         HAVE_WMEMMOVE.
9167         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
9168         * doc/posix-functions/wmemmove.texi: Mention the new module.
9169
9170 2011-02-05  Bruno Haible  <bruno@clisp.org>
9171
9172         New module 'wmemcpy'.
9173         * modules/wmemcpy: New file.
9174         * lib/wchar.in.h (wmemcpy): New declaration.
9175         * lib/wmemcpy.c: New file.
9176         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
9177         * m4/wmemcpy.m4: New file.
9178         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
9179         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
9180         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
9181         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
9182         * doc/posix-functions/wmemcpy.texi: Mention the new module.
9183
9184 2011-02-05  Bruno Haible  <bruno@clisp.org>
9185
9186         New module 'wmemcmp'.
9187         * modules/wmemcmp: New file.
9188         * lib/wchar.in.h (wmemcmp): New declaration.
9189         * lib/wmemcmp.c: New file.
9190         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
9191         * m4/wmemcmp.m4: New file.
9192         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
9193         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
9194         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
9195         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
9196         * doc/posix-functions/wmemcmp.texi: Mention the new module.
9197
9198 2011-02-07  Jim Meyering  <meyering@redhat.com>
9199
9200         di-set, ino-map: new modules, from coreutils
9201         * lib/di-set.c: New file.
9202         * lib/di-set.h: Likewise.
9203         * lib/ino-map.c: Likewise.
9204         * lib/ino-map.h: Likewise.
9205         * modules/di-set: Likewise.
9206         * modules/di-set-tests: Likewise.
9207         * modules/ino-map: Likewise.
9208         * modules/ino-map-tests: Likewise.
9209         * tests/test-di-set.c: Likewise.
9210         * tests/test-ino-map.c: Likewise.
9211
9212 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9213
9214         getloadavg: merge minor changes from Emacs
9215
9216         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9217         (getloadavg): Use memset, not bzero.
9218
9219         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9220         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9221         clash (bug#86).
9222
9223 2010-11-14  Bruno Haible  <bruno@clisp.org>
9224
9225         Allow multiple gnulib generated replacements to coexist.
9226         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9227         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9228         * lib/langinfo.in.h (nl_item): Likewise.
9229         * lib/math.in.h (_NaN, NAN): Likewise.
9230         * lib/netdb.in.h (struct addrinfo): Likewise.
9231         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9232         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9233         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9234         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9235         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9236         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9237         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9238         pthread_mutexattr_init, pthread_mutexattr_settype,
9239         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9240         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9241         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9242         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9243         * lib/sched.in.h (struct sched_param): Likewise.
9244         * lib/se-selinux.in.h (security_class_t, security_context_t,
9245         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9246         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9247         lsetfilecon, fsetfilecon, security_check_context,
9248         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9249         Likewise.
9250         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9251         Likewise.
9252         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9253         _gl_function_taking_int_returning_void_t, union sigval,
9254         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9255         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9256         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9257         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9258         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9259         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9260         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9261         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9262         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9263         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9264         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9265         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9266         socklen_t, rpl_fd_isset): Likewise.
9267         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9268         * lib/sys_time.in.h (struct timeval): Likewise.
9269         * lib/sys_times.in.h (struct tms): Likewise.
9270         * lib/sys_utsname.in.h (struct utsname):
9271         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9272         * lib/unistd.in.h (getpagesize): Likewise.
9273         * lib/wchar.in.h (mbstate_t): Likewise.
9274         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9275         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9276         towlower, towupper): Likewise.
9277         Reported by Sam Steingold <sds@gnu.org>.
9278
9279 2011-02-05  Eric Blake  <eblake@redhat.com>
9280
9281         unsetenv: work around Haiku issues
9282         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9283         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9284
9285 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9286
9287         libposix: avoid calling error() within libposix
9288         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9289         is defined.
9290
9291 2011-02-05  Eric Blake  <eblake@redhat.com>
9292
9293         strerror_r-posix: port to cygwin
9294         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9295         implementation.
9296         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9297         * tests/test-strerror_r.c (main): Fix test.
9298         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9299         issue.
9300
9301 2011-02-05  Bruno Haible  <bruno@clisp.org>
9302
9303         New module 'wmemchr'.
9304         * modules/wmemchr: New file.
9305         * lib/wchar.in.h (wmemchr): New declaration.
9306         * lib/wmemchr.c: New file.
9307         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9308         * m4/wmemchr.m4: New file.
9309         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9310         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9311         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9312         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9313         * doc/posix-functions/wmemchr.texi: Mention the new module.
9314
9315 2011-02-04  Eric Blake  <eblake@redhat.com>
9316
9317         fdopendir: detect FreeBSD bug
9318         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9319         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9320
9321 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9322
9323         stdbool: do not define HAVE_STDBOOL_H
9324         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9325         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9326         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9327         imported from the latest Autoconf git.  It was motivated by Emacs,
9328         which uses gnulib but does not need HAVE_STDBOOL_H.
9329
9330 2011-02-04  Bruno Haible  <bruno@clisp.org>
9331
9332         wcsnrtombs: Prepare for new module wwcsnrtombs.
9333         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9334         * lib/wcsnrtombs.c: Include it.
9335         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9336
9337         wcsrtombs: Prepare for new module wwcsrtombs.
9338         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9339         * lib/wcsrtombs.c: Include it.
9340         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9341
9342         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9343         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9344         * lib/mbsnrtowcs.c: Include it.
9345         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9346
9347         mbsrtowcs: Prepare for new module mbsrtowwcs.
9348         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9349         * lib/mbsrtowcs.c: Include it.
9350         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9351
9352 2011-02-04  Bruno Haible  <bruno@clisp.org>
9353
9354         vasnprintf: Reduce use of malloc for small format strings.
9355         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9356         (arguments): Add room for the first 7 arguments.
9357         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9358         (char_directives, u8_directives, u16_directives, u32_directives): Add
9359         room for the first 7 directives.
9360         * lib/printf-parse.c: Include <string.h>.
9361         (PRINTF_PARSE): Change memory handling code so that it uses the first
9362         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9363         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9364         Reported by Pádraig Brady <P@draigbrady.com>.
9365
9366 2011-01-31  Eric Blake  <eblake@redhat.com>
9367
9368         dup2: work around Haiku bug
9369         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9370         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9371         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9372         * tests/test-dup2.c (main): Enhance test.
9373
9374 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9375
9376         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9377         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9378         declared by eglibc 2.11.2.
9379         * lib/stdio.in.h: Likewise.
9380
9381 2011-01-31  Eric Blake  <eblake@redhat.com>
9382
9383         ignore-value: add missing test dependency
9384         * tests/test-ignore-value.c: Revert previous change; stdio.h
9385         provides off_t.
9386         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9387
9388 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9389
9390         mktime: clarify long_int width checking
9391         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9392         the top level, to make it clearer that the assumption about
9393         long_int width is being checked.  See
9394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9395
9396 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9397
9398         ignore-value: Fix self-test.
9399         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9400
9401 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9402
9403         TYPE_MAXIMUM: avoid theoretically undefined behavior
9404         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9405         negative number, which the C Standard says has undefined behavior.
9406         In practice this is not a problem, but might as well do it by the book.
9407         Reported by Rich Felker and Eric Blake; see
9408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9409         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9410         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9412         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9413         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9414         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9415
9416         mktime: #undef mktime before #defining it
9417         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9418
9419         mktime: systematically normalize tm_isdst comparisons
9420         * lib/mktime.c (isdst_differ): New function.
9421         (__mktime_internal): Use it systematically for all isdst comparisons.
9422         This completes the fix for libc BZ #6723, and removes the need for
9423         normalizing tm_isdst.  See
9424         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9425         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9426
9427         mktime: fix some integer overflow issues and sidestep the rest
9428
9429         This was prompted by a bug report by Benjamin Lindner for MinGW
9430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9431         His bug is due to signed integer overflow (0 - INT_MIN), and I
9432         I scanned through mktime.c looking for other integer overflow
9433         problems, fixing all the bugs I found.
9434
9435         Although the C Standard says the resulting code is still not safe
9436         in the presence of integer overflow, in practice it should be good
9437         enough for all real-world two's-complement implementations, except
9438         for debugging environments that deliberately trap on integer
9439         overflow (e.g., gcc -ftrapv).
9440
9441         * lib/mktime.c (WRAPV): New macro.
9442         (SHR): Also check that long_int and time_t shift right in the
9443         usual way, before using the fast-but-unportable method.
9444         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9445         used.  The code already assumed two's complement, so there's
9446         no need to test for alternatives.  All uses removed.
9447         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9448         the C standard.  Problem reported by Rich Felker in
9449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9450         (twos_complement_arithmetic): Also check long_int and time_t.
9451         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9452         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9453         (__mktime_internal): Avoid integer overflow with unary subtraction
9454         in two instances where -1 - X is an adequate replacement for -X,
9455         since the calculations are approximate.
9456
9457 2011-01-29  Eric Blake  <eblake@redhat.com>
9458
9459         mktime: avoid infinite loop
9460         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9461         type; behavior is still undefined but portable to all known targets.
9462         Reported by Rich Felker.
9463
9464 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9465
9466         rename, unlink, same-inode: Relicense.
9467         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9468         * modules/unlink (License): Likewise.
9469         * modules/same-inode (License): Likewise.
9470
9471 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9472
9473         mktime: avoid problems on NetBSD 5 / i386
9474         * lib/mktime.c (long_int): New type.  This works around a problem
9475         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9476         but time_t is 64 bits, and where I expect the existing code is
9477         wrong in some cases.
9478         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9479         (ydhms_diff): Bring back the compile-time check for wide-enough
9480         year and yday.
9481
9482         mktime: fix misspelling in comment
9483         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9484         This merges all recent glibc changes of importance.
9485
9486 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9487
9488         move-if-change: cope with concurrent mv of identical file.
9489         * build-aux/move-if-change (CMPPROG): Accept environment
9490         variable as an override for `cmp'.
9491         (usage): Document CMPPROG.
9492         Adjust comparison to drop stdout.  Cope with failure of mv if
9493         the target file exists and is identical to the source, for
9494         parallel builds.
9495         Report from H.J. Lu against binutils in PR binutils/12283.
9496
9497 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9498
9499         * users.txt: Mention sharutils.
9500
9501 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9502
9503         * users.txt: Mention OATH Toolkit.
9504
9505 2011-01-27  Bruno Haible  <bruno@clisp.org>
9506
9507         Prepare for supporting FreeBSD 10.
9508         * build-aux/config.libpath: Remove handling of freebsd1*.
9509
9510 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9511
9512         Prepare for supporting FreeBSD 10.
9513         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9514         match FreeBSD 10.0.
9515
9516 2011-01-27  Bruno Haible  <bruno@clisp.org>
9517
9518         vma-iter, get-rusage-as: Add OpenBSD support.
9519         * modules/vma-iter (configure.ac): Test for mquery.
9520         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9521         * lib/vma-iter.c: Include <sys/mman.h>.
9522         (vma_iterate): Add an implementation based on mquery().
9523         * lib/resource-ext.h (get_rusage_as): Update comments.
9524         * lib/get-rusage-as.c: Likewise.
9525         * lib/get-rusage-data.c: Likewise.
9526
9527 2011-01-26  Karl Berry  <karl@gnu.org>
9528
9529         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9530         variables to make it easier to override the makeinfo program used.
9531
9532 2011-01-26  Eric Blake  <eblake@redhat.com>
9533
9534         fcntl: work around Haiku F_DUPFD bugs
9535         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9536         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9537         cloexec bit on duplication.
9538         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9539
9540 2011-01-26  Bruno Haible  <bruno@clisp.org>
9541
9542         Enable memory leak tests on AIX.
9543         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9544         * tests/test-fprintf-posix3.c (main): Likewise.
9545
9546 2011-01-26  Bruno Haible  <bruno@clisp.org>
9547
9548         Tests for module 'get-rusage-data'.
9549         * modules/get-rusage-data-tests: New file.
9550         * tests/test-get-rusage-data.c: New file.
9551
9552         New module 'get-rusage-data'.
9553         * lib/resource-ext.h (get_rusage_data): New declaration.
9554         * lib/get-rusage-data.c: New file.
9555         * modules/get-rusage-data: New file.
9556
9557 2011-01-25  Bruno Haible  <bruno@clisp.org>
9558
9559         get-rusage-as: Allow for easier testing.
9560         * lib/resource-ext.h (get_rusage_as): Add comment.
9561         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9562         (main): New function for interactive testing.
9563
9564 2011-01-25  Bruno Haible  <bruno@clisp.org>
9565
9566         vma-iter: Treat Haiku like BeOS.
9567         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9568         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9569
9570 2011-01-25  Eric Blake  <eblake@redhat.com>
9571
9572         c-stack: fix regression on cygwin when libsigsegv is present
9573         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9574
9575 2011-01-24  Bruno Haible  <bruno@clisp.org>
9576
9577         vma-iter: Avoid empty intervals.
9578         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9579         on an empty interval.
9580
9581 2011-01-24  Jim Meyering  <meyering@redhat.com>
9582
9583         u64: remove unnecessary #include
9584         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9585
9586 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9587
9588         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9589         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9590
9591 2011-01-23  Bruno Haible  <bruno@clisp.org>
9592
9593         New module 'vma-iter'.
9594         * lib/vma-iter.h: New file.
9595         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9596         * modules/vma-iter: New file.
9597         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9598         for get_rusage_as_via_iterator.
9599         (vma_iterate_callback): New function.
9600         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9601         * modules/get-rusage-as (Depends-on): Add vma-iter.
9602
9603 2011-01-23  Bruno Haible  <bruno@clisp.org>
9604
9605         uninorm: Tweak includes.
9606         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9607         Reported by Jim Meyering.
9608
9609 2011-01-23  Bruno Haible  <bruno@clisp.org>
9610
9611         get-rusage-as: Improve on NetBSD.
9612         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9613         /proc, like on FreeBSD.
9614
9615 2011-01-23  Jim Meyering  <meyering@redhat.com>
9616
9617         xreadlink.h: remove unnecessary #include
9618         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9619
9620         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9621         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9622
9623 2011-01-23  Bruno Haible  <bruno@clisp.org>
9624
9625         get-rusage-as: Fix bug.
9626         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9627         original limit when aborting the first loop.
9628
9629 2011-01-23  Bruno Haible  <bruno@clisp.org>
9630
9631         wctype: Ensure valid C syntax.
9632         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9633         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9634
9635 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9636
9637         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9639         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9640         as they are needed only for configure's test case.
9641         This removes two unnecessary symbols from config.h.
9642
9643         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9644         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9646         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9647         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9648         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9649         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9650         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9651         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9652         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9653         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9654         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9655         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9656         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9657         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9658         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9659         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9660         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9661
9662 2011-01-21  Eric Blake  <eblake@redhat.com>
9663
9664         maintainer-makefile: work with older git for submodule check
9665         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9666         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9667         Reported by Matthias Bolte.
9668
9669         bootstrap: minor portability fixes
9670         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9671         (usage): Omit leading capital and trailing . on help phrases, per
9672         GNU Coding Standards.
9673         (check_versions, top level): Prefix messages with script name.
9674
9675 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9676
9677         bootstrap: support --no-git option
9678         * build-aux/bootstrap: Add --no-git option, to be used when
9679         --gnulib-srcdir points to the exact desired checkout.
9680
9681 2011-01-21  Eric Blake  <eblake@redhat.com>
9682
9683         strerror_r-posix: work with glibc 2.13
9684         * lib/strerror_r.c (strerror_r): Fix return type.
9685
9686 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9687             Bruno Haible  <bruno@clisp.org>
9688
9689         uN_strstr: New unit tests.
9690         * modules/unistr/u8-strstr-tests: New file.
9691         * modules/unistr/u16-strstr-tests: New file.
9692         * modules/unistr/u32-strstr-tests: New file.
9693         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9694         * tests/unistr/test-u8-strstr.c: New file.
9695         * tests/unistr/test-u16-strstr.c: New file.
9696         * tests/unistr/test-u32-strstr.c: New file.
9697
9698 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9699             Bruno Haible  <bruno@clisp.org>
9700
9701         Make uN_strstr functions O(n) worst-case.
9702         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9703         16-bit and 32-bit unit cases, use the unibyte algorithm from
9704         lib/mbsstr.c.
9705         * lib/unistr/u8-strstr.c: Include <string.h>.
9706         (UNIT_IS_UINT8_T): New macro.
9707         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9708         (U_STRLEN, U_STRNLEN): New macros.
9709         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9710         (U_STRLEN, U_STRNLEN): New macros.
9711         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9712         (configure.ac): Update required libunistring version.
9713         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9714         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9715         malloca.
9716         (configure.ac): Update required libunistring version.
9717         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9718         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9719         malloca.
9720         (configure.ac): Update required libunistring version.
9721
9722 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9723             Bruno Haible  <bruno@clisp.org>
9724
9725         Prepare for faster uN_strstr functions.
9726         * lib/str-kmp.h: Support definable UNITs.
9727         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9728         needle_len argument.
9729         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9730         * lib/mbscasestr.c (mbscasestr): Likewise.
9731
9732 2011-01-21  Pádraig Brady <P@draigBrady.com>
9733
9734         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9735         * tests/test-malloca.c (main): Unset the environment variable
9736         to greatly speed up the test.
9737         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9738         * modules/malloca-tests: Depend on unsetenv.
9739
9740 2011-01-21  Pádraig Brady <P@draigBrady.com>
9741
9742         ignore-value: remove stdint dependency
9743         * lib/ignore-value.h: Remove <stdint.h>
9744         * modules/ignore-value: Remove stdint dependency.
9745
9746 2011-01-21  Jim Meyering  <meyering@redhat.com>
9747
9748         maint.mk: adjust variable name to be consistent with other gl_ vars
9749         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9750         to be lower case.
9751
9752 2011-01-20  Jim Meyering  <meyering@redhat.com>
9753
9754         maint.mk: make "check" depend on public-submodule-commit by default
9755         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9756
9757 2011-01-20  Bruno Haible  <bruno@clisp.org>
9758
9759         mbfile, mbiter: Complete change from 2008-12-21.
9760         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9761         * m4/mbiter.m4 (gl_MBITER): Likewise.
9762
9763 2011-01-20  Jim Meyering  <meyering@redhat.com>
9764
9765         init.sh: insert space between each function name and "()"
9766         * tests/init.sh: Make it a little easier to see that a function's
9767         name is "warn_", and not "warn" when looking at the first part of
9768         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9769
9770 2011-01-20  Jim Meyering  <meyering@redhat.com>
9771
9772         mountlist: clean up code formatting
9773         * lib/mountlist.c (read_file_system_list): Split a long line,
9774         correct bracing style, use NULL in place of "(struct statfs *)0",
9775         don't parenthesize return value, add spaces around "=" and after
9776         ";-in-for-stmt".
9777
9778 2011-01-14  Markus Duft <mduft@gentoo.org>
9779
9780         mountlist: add support for Interix
9781         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
9782         Apply statvfs to all entries of /dev/fs.
9783         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
9784         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
9785
9786 2011-01-20  Jim Meyering  <meyering@redhat.com>
9787
9788         maint.mk: improve the public-submodule-commit rule
9789         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
9790         to suppress printing of its commands... unless V=1.
9791         Add git submodule's --quiet option to suppress printing of e.g.,
9792         "Entering gnulib" output.
9793         "cd" into $(srcdir) before running git submodule.
9794
9795 2011-01-20  Bruno Haible  <bruno@clisp.org>
9796
9797         include_next: Fix bug introduced on 2011-01-18.
9798         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
9799         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
9800         ac_cv_header_... variable if the second argument is not 'check'.
9801         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
9802         gl_NEXT_HEADERS_INTERNAL.
9803
9804 2011-01-20  Bruno Haible  <bruno@clisp.org>
9805
9806         Allow the user to avoid the GNULIB_TEST_* macros.
9807         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
9808         Suggested by Paul Eggert.
9809
9810 2011-01-14  Jim Meyering  <meyering@redhat.com>
9811
9812         bootstrap: avoid failure when there is no .gitmodules file
9813         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
9814         has been assigned to, even when its value is the empty string.
9815         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
9816         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
9817         Reported by John W. Eaton <jwe@gnu.org>.
9818
9819 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9820
9821         assume <ctype.h>, ..., <time.h> exist
9822         For years gnulib has been assuming the existence of the headers
9823         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
9824         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
9825         them, since they don't appear to be needed.
9826         * README (Portability guidelines): Document this.
9827         * lib/flock.c: Assume <fcntl.h> exists.
9828         * lib/regex_internal.h: Assume <locale.h> exists.
9829         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
9830         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
9831         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
9832         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
9833         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
9834         * m4/regex.m4 (gl_REGEX): Likewise.
9835         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
9836         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
9837         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
9838         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
9839         * tests/test-argp.c: Likewise.
9840         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
9841
9842         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
9843         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
9844         AA_APPLE_UNIVERSAL_BUILD.  See
9845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
9846         * NEWS: Document this.
9847
9848 2011-01-19  Eric Blake  <eblake@redhat.com>
9849
9850         c-stack: assume stack overflow if SA_SIGINFO unsupported
9851         * lib/c-stack.c (SIGACTION_WORKS): Rename...
9852         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
9853         sigaction will work.
9854         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
9855         behavior match Linux.
9856         * tests/test-c-stack.c (main): Prefer NULL for pointers.
9857
9858         stdbool-tests: accomodate Haiku
9859         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
9860
9861         binary-io: fix O_TEXT on Haiku
9862         * modules/binary-io (Depends-on): Add fcntl-h.
9863         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9864         than blindly undefining O_TEXT.
9865         Reported by Scott McCreary.
9866
9867 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9868
9869         include_next: do not check for standard headers like stddef.h
9870
9871         I found this problem when modifying Emacs to use gnulib.
9872         I noticed that it added HAVE_STDDEF_H to config.h, even though
9873         gnulib always assumes <stddef.h> exists as per README and this
9874         symbol is unnecessary.
9875         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
9876         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
9877         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
9878         faster for headers like stddef.h that are known to exist.
9879         (gl_CHECK_NEXT_HEADERS): Use it.
9880         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
9881         rather than gl_CHECK_NEXT_HEADERS.
9882         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
9883         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
9884
9885 2011-01-18  Eric Blake  <eblake@redhat.com>
9886
9887         ansi-c++-opt: skip C++ dependency style if C++ is unused
9888         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
9889         tests when we know C++ compilation is not desired.
9890         Reported by Scott McCreary.
9891
9892 2011-01-18  Bruno Haible  <bruno@clisp.org>
9893
9894         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
9895         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
9896         (main): Perform test also when getrlimit and setrlimit don't exist or
9897         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
9898         limiting the address space size using setrlimit, compare the address
9899         space size before and after the the test.
9900         * tests/test-dprintf-posix2.c: Likewise.
9901         * tests/test-fprintf-posix3.sh: Update skip messages.
9902         * tests/test-dprintf-posix2.sh: Likewise.
9903         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
9904         * modules/dprintf-posix-tests (Depends-on): Likewise.
9905         Reported by Bruce Korb <bkorb@gnu.org> and
9906         Gary V. Vaughan <gary@gnu.org>.
9907
9908 2011-01-18  Bruno Haible  <bruno@clisp.org>
9909
9910         get-rusage-as: Improvement for Cygwin.
9911         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
9912         areas that are merely reserved.
9913
9914 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9915
9916         strftime: remove dependencies on multibyte modules
9917
9918         strftime depended on mbrlen, mbsinit, and wchar, but these modules
9919         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
9920         only if __osf__ is defined, and I suspect OSF doesn't need these
9921         other modules.  If my guess is wrong, we'll need to come up with a
9922         variant of strftime that doesn't need the multibyte modules.
9923
9924         I discovered this problem when attempting modify Emacs to use the
9925         strftime module.  With the previous gnulib, this caused Emacs to
9926         need 31 new files, ranging from lib/config.charset to
9927         m4/wint_t.m4.  This was overkill and I expect would be offputting
9928         to the Emacs maintainers.  After this change, only 6 new files are
9929         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
9930         stdbool.m4, and tm_gmtoff.m4.
9931
9932         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
9933         Suggested by Bruno Haible in
9934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
9935         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
9936         and do not check for wchar.h.
9937         * modules/strftime (Files): Remove m4/mbstate_t.m4.
9938         (Depends-on): Remove mbrlen, mbsinit, wchar.
9939
9940 2011-01-18  Bruno Haible  <bruno@clisp.org>
9941
9942         Tests for module 'get-rusage-as'.
9943         * modules/get-rusage-as-tests: New file.
9944         * tests/test-get-rusage-as.c: New file.
9945
9946         New module 'get-rusage-as'.
9947         * modules/get-rusage-as: New file.
9948         * lib/resource-ext.h: New file.
9949         * lib/get-rusage-as.c: New file.
9950
9951 2011-01-17  Eric Blake  <eblake@redhat.com>
9952
9953         sigaction: relax license from LGPLv3+ to LGPLv2+
9954         * modules/sigaction (License): Relax to LGPLv2+.
9955
9956 2011-01-14  Bruno Haible  <bruno@clisp.org>
9957
9958         filemode: Make function declarations usable in C++ mode.
9959         * lib/filemode.h: Enclose function declarations in extern "C" block.
9960         Reported by John W. Eaton <jwe@gnu.org>.
9961
9962 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
9963
9964         save-cwd: no longer include "xgetcwd.h"
9965         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
9966         This avoids a compilation failure in projects that use save-cwd
9967         without also using the xgetcwd module.
9968
9969 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9970
9971         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
9972         This is so that a program like Emacs, which needs only dtoastr,
9973         does not have to bother with distributing and compiling ftoastr
9974         and ldtoastr.
9975         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
9976         * modules/dtoastr, modules/ldtoastr: New files.
9977         * modules/ftoastr: Now works just for 'float'.
9978         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
9979         (Makefile.am): Remove ftoastr.h (not needed and no effect),
9980         dtoastr.c, ldtoastr.c.
9981
9982 2011-01-11  Jim Meyering  <meyering@redhat.com>
9983
9984         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
9985         There is no need to work around the lack of the fchdir function,
9986         since gnulib can now provide a replacement when required.
9987         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
9988         * modules/save-cwd (Depends-on): Add fchdir.
9989
9990 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9991
9992         openat, save-cwd: avoid xmalloc
9993
9994         This removes a direct (but undocumented) dependency of openat on
9995         xalloc, along with an indirect dependency via save-cwd.  It also
9996         removes a dependency of save-cwd on xgetcwd, and thereby
9997         indirectly on xalloc.  This change causes the openat substitute
9998         to fall back on save_cwd when memory is tight, and for save_cwd to
9999         fail instead of dying when memory is tight, but that's good enough.
10000         Problem and initial idea for fix reported by Bastien Roucaries in
10001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
10002
10003         * lib/openat-proc.c: Include stdlib.h (for malloc), not
10004         xalloc.h (for xmalloc).
10005         (openat_proc_name): Use malloc, not xmalloc.
10006         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
10007         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
10008
10009         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
10010         This avoids heap allocation for file names whose lengths are in
10011         the range 512..1023, with the upper bound increasing to at most
10012         4031 depending on the platform's PATH_MAX.  (We do not want
10013         pathmax.h here as it might supply a non-constant PATH_MAX.)
10014         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
10015         Perhaps they should be moved to malloca.h?
10016         (OPENAT_BUFFER_SIZE): Use them.
10017
10018 2011-01-10  Bruno Haible  <bruno@clisp.org>
10019
10020         doc: Update users.txt.
10021         * users.txt: Add recutils.
10022
10023 2011-01-09  Karl Berry  <karl@gnu.org>
10024
10025         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10026
10027         * doc/configmake.texi: New file.
10028         * doc/gnulib.texi: Include it.
10029         * modules/configmake: Move documentation from here.
10030
10031 2011-01-09  Bruno Haible  <bruno@clisp.org>
10032
10033         Update to Unicode 6.0.0.
10034         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
10035         (get_lbp): Update for Unicode 6.0.0.
10036         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
10037         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
10038         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
10039         U+11001, U+11038..U+11046. Remove U+06DE.
10040         (uc_width): Fix bounds of planes.
10041         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10042         lib/uniwidth/width.c.
10043         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
10044         trailing whitespace removed.
10045         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
10046         without comments, but with the original copyright notice.
10047         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
10048         * lib/unicase/ignorable.h: Likewise.
10049         * lib/unicase/tocasefold.h: Likewise.
10050         * lib/unicase/tolower.h: Likewise.
10051         * lib/unicase/totitle.h: Likewise.
10052         * lib/unicase/toupper.h: Likewise.
10053         * lib/unictype/bidi_of.h: Likewise.
10054         * lib/unictype/blocks.h: Likewise.
10055         * lib/unictype/categ_C.h: Likewise.
10056         * lib/unictype/categ_Cn.h: Likewise.
10057         * lib/unictype/categ_L.h: Likewise.
10058         * lib/unictype/categ_Ll.h: Likewise.
10059         * lib/unictype/categ_Lm.h: Likewise.
10060         * lib/unictype/categ_Lo.h: Likewise.
10061         * lib/unictype/categ_Lu.h: Likewise.
10062         * lib/unictype/categ_M.h: Likewise.
10063         * lib/unictype/categ_Mc.h: Likewise.
10064         * lib/unictype/categ_Me.h: Likewise.
10065         * lib/unictype/categ_Mn.h: Likewise.
10066         * lib/unictype/categ_N.h: Likewise.
10067         * lib/unictype/categ_Nd.h: Likewise.
10068         * lib/unictype/categ_No.h: Likewise.
10069         * lib/unictype/categ_P.h: Likewise.
10070         * lib/unictype/categ_Po.h: Likewise.
10071         * lib/unictype/categ_S.h: Likewise.
10072         * lib/unictype/categ_Sc.h: Likewise.
10073         * lib/unictype/categ_Sk.h: Likewise.
10074         * lib/unictype/categ_Sm.h: Likewise.
10075         * lib/unictype/categ_So.h: Likewise.
10076         * lib/unictype/categ_of.h: Likewise.
10077         * lib/unictype/combining.h: Likewise.
10078         * lib/unictype/ctype_alnum.h: Likewise.
10079         * lib/unictype/ctype_alpha.h: Likewise.
10080         * lib/unictype/ctype_graph.h: Likewise.
10081         * lib/unictype/ctype_lower.h: Likewise.
10082         * lib/unictype/ctype_print.h: Likewise.
10083         * lib/unictype/ctype_punct.h: Likewise.
10084         * lib/unictype/ctype_upper.h: Likewise.
10085         * lib/unictype/decdigit.h: Likewise.
10086         * lib/unictype/digit.h: Likewise.
10087         * lib/unictype/numeric.h: Likewise.
10088         * lib/unictype/pr_alphabetic.h: Likewise.
10089         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10090         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10091         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10092         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10093         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10094         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10095         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10096         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10097         * lib/unictype/pr_case_ignorable.h: Likewise.
10098         * lib/unictype/pr_cased.h: Likewise.
10099         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
10100         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
10101         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
10102         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
10103         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
10104         * lib/unictype/pr_combining.h: Likewise.
10105         * lib/unictype/pr_composite.h: Likewise.
10106         * lib/unictype/pr_currency_symbol.h: Likewise.
10107         * lib/unictype/pr_decimal_digit.h: Likewise.
10108         * lib/unictype/pr_deprecated.h: Likewise.
10109         * lib/unictype/pr_format_control.h: Likewise.
10110         * lib/unictype/pr_grapheme_base.h: Likewise.
10111         * lib/unictype/pr_grapheme_extend.h: Likewise.
10112         * lib/unictype/pr_grapheme_link.h: Likewise.
10113         * lib/unictype/pr_id_continue.h: Likewise.
10114         * lib/unictype/pr_id_start.h: Likewise.
10115         * lib/unictype/pr_ideographic.h: Likewise.
10116         * lib/unictype/pr_lowercase.h: Likewise.
10117         * lib/unictype/pr_math.h: Likewise.
10118         * lib/unictype/pr_numeric.h: Likewise.
10119         * lib/unictype/pr_other_alphabetic.h: Likewise.
10120         * lib/unictype/pr_other_id_continue.h: Likewise.
10121         * lib/unictype/pr_other_math.h: Likewise.
10122         * lib/unictype/pr_punctuation.h: Likewise.
10123         * lib/unictype/pr_sentence_terminal.h: Likewise.
10124         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10125         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10126         * lib/unictype/pr_unified_ideograph.h: Likewise.
10127         * lib/unictype/pr_uppercase.h: Likewise.
10128         * lib/unictype/pr_xid_continue.h: Likewise.
10129         * lib/unictype/pr_xid_start.h: Likewise.
10130         * lib/unictype/scripts.h: Likewise.
10131         * lib/unictype/scripts_byname.gperf: Likewise.
10132         * lib/unictype/sy_java_ident.h: Likewise.
10133         * lib/unigbrk/gbrkprop.h: Likewise.
10134         * lib/unilbrk/lbrkprop1.h: Likewise.
10135         * lib/unilbrk/lbrkprop2.h: Likewise.
10136         * lib/uninorm/decomposition-table2.h: Likewise.
10137         * lib/uniwbrk/wbrkprop.h: Likewise.
10138         * tests/unicase/test-cased.c: Likewise.
10139         * tests/unicase/test-ignorable.c: Likewise.
10140         * tests/unicase/test-uc_tolower.c: Likewise.
10141         * tests/unicase/test-uc_totitle.c: Likewise.
10142         * tests/unicase/test-uc_toupper.c: Likewise.
10143         * tests/unictype/test-categ_C.c: Likewise.
10144         * tests/unictype/test-categ_Cn.c: Likewise.
10145         * tests/unictype/test-categ_L.c: Likewise.
10146         * tests/unictype/test-categ_Ll.c: Likewise.
10147         * tests/unictype/test-categ_Lm.c: Likewise.
10148         * tests/unictype/test-categ_Lo.c: Likewise.
10149         * tests/unictype/test-categ_Lu.c: Likewise.
10150         * tests/unictype/test-categ_M.c: Likewise.
10151         * tests/unictype/test-categ_Mc.c: Likewise.
10152         * tests/unictype/test-categ_Me.c: Likewise.
10153         * tests/unictype/test-categ_Mn.c: Likewise.
10154         * tests/unictype/test-categ_N.c: Likewise.
10155         * tests/unictype/test-categ_Nd.c: Likewise.
10156         * tests/unictype/test-categ_No.c: Likewise.
10157         * tests/unictype/test-categ_P.c: Likewise.
10158         * tests/unictype/test-categ_Po.c: Likewise.
10159         * tests/unictype/test-categ_S.c: Likewise.
10160         * tests/unictype/test-categ_Sc.c: Likewise.
10161         * tests/unictype/test-categ_Sk.c: Likewise.
10162         * tests/unictype/test-categ_Sm.c: Likewise.
10163         * tests/unictype/test-categ_So.c: Likewise.
10164         * tests/unictype/test-ctype_alnum.c: Likewise.
10165         * tests/unictype/test-ctype_alpha.c: Likewise.
10166         * tests/unictype/test-ctype_graph.c: Likewise.
10167         * tests/unictype/test-ctype_lower.c: Likewise.
10168         * tests/unictype/test-ctype_print.c: Likewise.
10169         * tests/unictype/test-ctype_punct.c: Likewise.
10170         * tests/unictype/test-ctype_upper.c: Likewise.
10171         * tests/unictype/test-decdigit.h: Likewise.
10172         * tests/unictype/test-digit.h: Likewise.
10173         * tests/unictype/test-numeric.h: Likewise.
10174         * tests/unictype/test-pr_alphabetic.c: Likewise.
10175         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10176         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10177         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10178         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10179         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10180         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10181         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10182         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10183         * tests/unictype/test-pr_case_ignorable.c: Likewise.
10184         * tests/unictype/test-pr_cased.c: Likewise.
10185         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
10186         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
10187         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
10188         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
10189         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
10190         * tests/unictype/test-pr_combining.c: Likewise.
10191         * tests/unictype/test-pr_composite.c: Likewise.
10192         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10193         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10194         * tests/unictype/test-pr_deprecated.c: Likewise.
10195         * tests/unictype/test-pr_format_control.c: Likewise.
10196         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10197         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10198         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10199         * tests/unictype/test-pr_id_continue.c: Likewise.
10200         * tests/unictype/test-pr_id_start.c: Likewise.
10201         * tests/unictype/test-pr_ideographic.c: Likewise.
10202         * tests/unictype/test-pr_lowercase.c: Likewise.
10203         * tests/unictype/test-pr_math.c: Likewise.
10204         * tests/unictype/test-pr_numeric.c: Likewise.
10205         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10206         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10207         * tests/unictype/test-pr_other_math.c: Likewise.
10208         * tests/unictype/test-pr_punctuation.c: Likewise.
10209         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10210         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10211         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10212         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10213         * tests/unictype/test-pr_uppercase.c: Likewise.
10214         * tests/unictype/test-pr_xid_continue.c: Likewise.
10215         * tests/unictype/test-pr_xid_start.c: Likewise.
10216         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10217         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10218         changes.
10219         * lib/unictype/categ_Cc.h: Likewise.
10220         * lib/unictype/categ_Cf.h: Likewise.
10221         * lib/unictype/categ_Co.h: Likewise.
10222         * lib/unictype/categ_Cs.h: Likewise.
10223         * lib/unictype/categ_Lt.h: Likewise.
10224         * lib/unictype/categ_Nl.h: Likewise.
10225         * lib/unictype/categ_Pc.h: Likewise.
10226         * lib/unictype/categ_Pd.h: Likewise.
10227         * lib/unictype/categ_Pe.h: Likewise.
10228         * lib/unictype/categ_Pf.h: Likewise.
10229         * lib/unictype/categ_Pi.h: Likewise.
10230         * lib/unictype/categ_Ps.h: Likewise.
10231         * lib/unictype/categ_Z.h: Likewise.
10232         * lib/unictype/categ_Zl.h: Likewise.
10233         * lib/unictype/categ_Zp.h: Likewise.
10234         * lib/unictype/categ_Zs.h: Likewise.
10235         * lib/unictype/ctype_blank.h: Likewise.
10236         * lib/unictype/ctype_cntrl.h: Likewise.
10237         * lib/unictype/ctype_digit.h: Likewise.
10238         * lib/unictype/ctype_space.h: Likewise.
10239         * lib/unictype/ctype_xdigit.h: Likewise.
10240         * lib/unictype/mirror.h: Likewise.
10241         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10242         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10243         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10244         * lib/unictype/pr_bidi_control.h: Likewise.
10245         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10246         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10247         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10248         * lib/unictype/pr_bidi_pdf.h: Likewise.
10249         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10250         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10251         * lib/unictype/pr_dash.h: Likewise.
10252         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10253         * lib/unictype/pr_diacritic.h: Likewise.
10254         * lib/unictype/pr_extender.h: Likewise.
10255         * lib/unictype/pr_hex_digit.h: Likewise.
10256         * lib/unictype/pr_hyphen.h: Likewise.
10257         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10258         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10259         * lib/unictype/pr_ignorable_control.h: Likewise.
10260         * lib/unictype/pr_iso_control.h: Likewise.
10261         * lib/unictype/pr_join_control.h: Likewise.
10262         * lib/unictype/pr_left_of_pair.h: Likewise.
10263         * lib/unictype/pr_line_separator.h: Likewise.
10264         * lib/unictype/pr_logical_order_exception.h: Likewise.
10265         * lib/unictype/pr_non_break.h: Likewise.
10266         * lib/unictype/pr_not_a_character.h: Likewise.
10267         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10268         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10269         * lib/unictype/pr_other_id_start.h: Likewise.
10270         * lib/unictype/pr_other_lowercase.h: Likewise.
10271         * lib/unictype/pr_other_uppercase.h: Likewise.
10272         * lib/unictype/pr_paired_punctuation.h: Likewise.
10273         * lib/unictype/pr_paragraph_separator.h: Likewise.
10274         * lib/unictype/pr_pattern_syntax.h: Likewise.
10275         * lib/unictype/pr_pattern_white_space.h: Likewise.
10276         * lib/unictype/pr_private_use.h: Likewise.
10277         * lib/unictype/pr_quotation_mark.h: Likewise.
10278         * lib/unictype/pr_radical.h: Likewise.
10279         * lib/unictype/pr_soft_dotted.h: Likewise.
10280         * lib/unictype/pr_space.h: Likewise.
10281         * lib/unictype/pr_titlecase.h: Likewise.
10282         * lib/unictype/pr_variation_selector.h: Likewise.
10283         * lib/unictype/pr_white_space.h: Likewise.
10284         * lib/unictype/pr_zero_width.h: Likewise.
10285         * lib/unictype/sy_c_ident.h: Likewise.
10286         * lib/unictype/sy_c_whitespace.h: Likewise.
10287         * lib/unictype/sy_java_whitespace.h: Likewise.
10288         * lib/uninorm/composition-table.gperf: Likewise.
10289         * lib/uninorm/decomposition-table1.h: Likewise.
10290         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10291         LB8.
10292         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10293         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10294         * modules/unictype/*: Bump version number of expected libunistring
10295         version.
10296
10297 2011-01-09  Bruno Haible  <bruno@clisp.org>
10298
10299         Update to Unicode 5.2.0.
10300         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10301         trailing whitespace removed.
10302
10303 2011-01-09  Bruno Haible  <bruno@clisp.org>
10304
10305         New Unicode character properties, from Unicode 5.2.0.
10306         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10307         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10308         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10309         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10310         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10311         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10312         uc_is_property_cased, uc_is_property_case_ignorable,
10313         uc_is_property_changes_when_lowercased,
10314         uc_is_property_changes_when_uppercased,
10315         uc_is_property_changes_when_titlecased,
10316         uc_is_property_changes_when_casefolded,
10317         uc_is_property_changes_when_casemapped): New declarations.
10318         * lib/unictype/pr_byname.gperf: Add the new properties.
10319         * modules/unictype/property-byname (Depends-on): Depend on the new
10320         properties modules.
10321         * modules/unictype/property-all (Depends-on): Likewise.
10322         * MODULES.html.sh (Unicode string functions): Add
10323         unictype/property-case-ignorable, unictype/property-cased,
10324         unictype/property-changes-when-casefolded,
10325         unictype/property-changes-when-casemapped,
10326         unictype/property-changes-when-lowercased,
10327         unictype/property-changes-when-titlecased,
10328         unictype/property-changes-when-uppercased.
10329
10330         New module 'unictype/property-changes-when-casemapped'.
10331         * modules/unictype/property-changes-when-casemapped: New file.
10332         * lib/unictype/pr_changes_when_casemapped.c: New file.
10333         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10334         generated by gen-uni-tables.
10335         * modules/unictype/property-changes-when-casemapped-tests: New file.
10336         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10337         automatically generated by gen-uni-tables.
10338
10339         New module 'unictype/property-changes-when-casefolded'.
10340         * modules/unictype/property-changes-when-casefolded: New file.
10341         * lib/unictype/pr_changes_when_casefolded.c: New file.
10342         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10343         generated by gen-uni-tables.
10344         * modules/unictype/property-changes-when-casefolded-tests: New file.
10345         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10346         automatically generated by gen-uni-tables.
10347
10348         New module 'unictype/property-changes-when-titlecased'.
10349         * modules/unictype/property-changes-when-titlecased: New file.
10350         * lib/unictype/pr_changes_when_titlecased.c: New file.
10351         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10352         generated by gen-uni-tables.
10353         * modules/unictype/property-changes-when-titlecased-tests: New file.
10354         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10355         automatically generated by gen-uni-tables.
10356
10357         New module 'unictype/property-changes-when-uppercased'.
10358         * modules/unictype/property-changes-when-uppercased: New file.
10359         * lib/unictype/pr_changes_when_uppercased.c: New file.
10360         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10361         generated by gen-uni-tables.
10362         * modules/unictype/property-changes-when-uppercased-tests: New file.
10363         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10364         automatically generated by gen-uni-tables.
10365
10366         New module 'unictype/property-changes-when-lowercased'.
10367         * modules/unictype/property-changes-when-lowercased: New file.
10368         * lib/unictype/pr_changes_when_lowercased.c: New file.
10369         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10370         generated by gen-uni-tables.
10371         * modules/unictype/property-changes-when-lowercased-tests: New file.
10372         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10373         automatically generated by gen-uni-tables.
10374
10375         New module 'unictype/property-case-ignorable'.
10376         * modules/unictype/property-case-ignorable: New file.
10377         * lib/unictype/pr_case_ignorable.c: New file.
10378         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10379         by gen-uni-tables.
10380         * modules/unictype/property-case-ignorable-tests: New file.
10381         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10382         generated by gen-uni-tables.
10383
10384         New module 'unictype/property-cased'.
10385         * modules/unictype/property-cased: New file.
10386         * lib/unictype/pr_cased.c: New file.
10387         * lib/unictype/pr_cased.h: New file, automatically generated by
10388         gen-uni-tables.
10389         * modules/unictype/property-cased-tests: New file.
10390         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10391         gen-uni-tables.
10392
10393 2011-01-09  Bruno Haible  <bruno@clisp.org>
10394
10395         Update to Unicode 5.2.0.
10396         * lib/gen-uni-tables.c (output_predicate, output_category,
10397         output_combclass, output_bidi_category, output_decimal_digit_test,
10398         output_decimal_digit, output_digit_test, output_digit,
10399         output_numeric_test, output_numeric, output_mirror, output_scripts,
10400         output_scripts_byname, output_blocks, output_ident_category): Fix
10401         comment header.
10402         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10403         get_wbp.
10404         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10405         items.
10406         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10407         Changes_When_Lowercased, Changes_When_Uppercased,
10408         Changes_When_Titlecased, Changes_When_Casefolded,
10409         Changes_When_Casemapped.
10410         (is_property_alphabetic, is_property_default_ignorable_code_point):
10411         Update for Unicode 5.2.0.
10412         (is_property_cased, is_property_case_ignorable,
10413         is_property_changes_when_lowercased,
10414         is_property_changes_when_uppercased,
10415         is_property_changes_when_titlecased,
10416         is_property_changes_when_casefolded,
10417         is_property_changes_when_casemapped): New functions.
10418         (output_properties): Output also the properties cased, case_ignorable,
10419         changes_when_lowercased, changes_when_uppercased,
10420         changes_when_titlecased, changes_when_casefolded,
10421         changes_when_casemapped.
10422         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10423         Unicode TR#11 revision 17 -> 19.
10424         (LBP_CP): New enumeration value.
10425         (LBP_*): Adjust values accordingly.
10426         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10427         TR#14 revision 22 -> 24.
10428         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10429         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10430         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10431         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10432         is_WBP_MIDLETTER.
10433         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10434         the code1 and code2 of each composition rule.
10435         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10436         * lib/unicase/ignorable.h: Likewise.
10437         * lib/unicase/tocasefold.h: Likewise.
10438         * lib/unicase/tolower.h: Likewise.
10439         * lib/unicase/totitle.h: Likewise.
10440         * lib/unicase/toupper.h: Likewise.
10441         * lib/unictype/bidi_of.h: Likewise.
10442         * lib/unictype/blocks.h: Likewise.
10443         * lib/unictype/categ_C.h: Likewise.
10444         * lib/unictype/categ_Cf.h: Likewise.
10445         * lib/unictype/categ_Cn.h: Likewise.
10446         * lib/unictype/categ_L.h: Likewise.
10447         * lib/unictype/categ_Ll.h: Likewise.
10448         * lib/unictype/categ_Lm.h: Likewise.
10449         * lib/unictype/categ_Lo.h: Likewise.
10450         * lib/unictype/categ_Lu.h: Likewise.
10451         * lib/unictype/categ_M.h: Likewise.
10452         * lib/unictype/categ_Mc.h: Likewise.
10453         * lib/unictype/categ_Mn.h: Likewise.
10454         * lib/unictype/categ_N.h: Likewise.
10455         * lib/unictype/categ_Nd.h: Likewise.
10456         * lib/unictype/categ_Nl.h: Likewise.
10457         * lib/unictype/categ_No.h: Likewise.
10458         * lib/unictype/categ_P.h: Likewise.
10459         * lib/unictype/categ_Pd.h: Likewise.
10460         * lib/unictype/categ_Po.h: Likewise.
10461         * lib/unictype/categ_S.h: Likewise.
10462         * lib/unictype/categ_Sc.h: Likewise.
10463         * lib/unictype/categ_So.h: Likewise.
10464         * lib/unictype/categ_of.h: Likewise.
10465         * lib/unictype/combining.h: Likewise.
10466         * lib/unictype/ctype_alnum.h: Likewise.
10467         * lib/unictype/ctype_alpha.h: Likewise.
10468         * lib/unictype/ctype_graph.h: Likewise.
10469         * lib/unictype/ctype_lower.h: Likewise.
10470         * lib/unictype/ctype_print.h: Likewise.
10471         * lib/unictype/ctype_punct.h: Likewise.
10472         * lib/unictype/ctype_upper.h: Likewise.
10473         * lib/unictype/decdigit.h: Likewise.
10474         * lib/unictype/digit.h: Likewise.
10475         * lib/unictype/numeric.h: Likewise.
10476         * lib/unictype/pr_alphabetic.h: Likewise.
10477         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10478         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10479         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10480         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10481         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10482         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10483         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10484         * lib/unictype/pr_combining.h: Likewise.
10485         * lib/unictype/pr_composite.h: Likewise.
10486         * lib/unictype/pr_currency_symbol.h: Likewise.
10487         * lib/unictype/pr_dash.h: Likewise.
10488         * lib/unictype/pr_decimal_digit.h: Likewise.
10489         * lib/unictype/pr_deprecated.h: Likewise.
10490         * lib/unictype/pr_diacritic.h: Likewise.
10491         * lib/unictype/pr_extender.h: Likewise.
10492         * lib/unictype/pr_grapheme_base.h: Likewise.
10493         * lib/unictype/pr_grapheme_extend.h: Likewise.
10494         * lib/unictype/pr_grapheme_link.h: Likewise.
10495         * lib/unictype/pr_id_continue.h: Likewise.
10496         * lib/unictype/pr_id_start.h: Likewise.
10497         * lib/unictype/pr_ideographic.h: Likewise.
10498         * lib/unictype/pr_ignorable_control.h: Likewise.
10499         * lib/unictype/pr_logical_order_exception.h: Likewise.
10500         * lib/unictype/pr_lowercase.h: Likewise.
10501         * lib/unictype/pr_numeric.h: Likewise.
10502         * lib/unictype/pr_other_alphabetic.h: Likewise.
10503         * lib/unictype/pr_punctuation.h: Likewise.
10504         * lib/unictype/pr_sentence_terminal.h: Likewise.
10505         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10506         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10507         * lib/unictype/pr_unified_ideograph.h: Likewise.
10508         * lib/unictype/pr_uppercase.h: Likewise.
10509         * lib/unictype/pr_xid_continue.h: Likewise.
10510         * lib/unictype/pr_xid_start.h: Likewise.
10511         * lib/unictype/pr_zero_width.h: Likewise.
10512         * lib/unictype/scripts.h: Likewise.
10513         * lib/unictype/scripts_byname.gperf: Likewise.
10514         * lib/unictype/sy_java_ident.h: Likewise.
10515         * lib/unigbrk/gbrkprop.h: Likewise.
10516         * lib/unilbrk/lbrkprop1.h: Likewise.
10517         * lib/unilbrk/lbrkprop2.h: Likewise.
10518         * lib/unilbrk/lbrktables.h: Likewise.
10519         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10520         LBP_CP. Implement rule LB30.
10521         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10522         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10523         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10524         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10525         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10526         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10527         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10528         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10529         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10530         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10531         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10532         bits instead of 16 bits in the code1 and code2 of each composition
10533         rule.
10534         (uc_composition): Update for Unicode 5.2.0.
10535         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10536         * lib/uninorm/decomposition-table2.h: Likewise.
10537         * lib/uniwbrk/wbrkprop.h: Likewise.
10538         * tests/unicase/test-cased.c: Likewise.
10539         * tests/unicase/test-ignorable.c: Likewise.
10540         * tests/unicase/test-uc_tolower.c: Likewise.
10541         * tests/unicase/test-uc_totitle.c: Likewise.
10542         * tests/unicase/test-uc_toupper.c: Likewise.
10543         * tests/unictype/test-categ_C.c: Likewise.
10544         * tests/unictype/test-categ_Cf.c: Likewise.
10545         * tests/unictype/test-categ_Cn.c: Likewise.
10546         * tests/unictype/test-categ_L.c: Likewise.
10547         * tests/unictype/test-categ_Ll.c: Likewise.
10548         * tests/unictype/test-categ_Lm.c: Likewise.
10549         * tests/unictype/test-categ_Lo.c: Likewise.
10550         * tests/unictype/test-categ_Lu.c: Likewise.
10551         * tests/unictype/test-categ_M.c: Likewise.
10552         * tests/unictype/test-categ_Mc.c: Likewise.
10553         * tests/unictype/test-categ_Mn.c: Likewise.
10554         * tests/unictype/test-categ_N.c: Likewise.
10555         * tests/unictype/test-categ_Nd.c: Likewise.
10556         * tests/unictype/test-categ_Nl.c: Likewise.
10557         * tests/unictype/test-categ_No.c: Likewise.
10558         * tests/unictype/test-categ_P.c: Likewise.
10559         * tests/unictype/test-categ_Pd.c: Likewise.
10560         * tests/unictype/test-categ_Po.c: Likewise.
10561         * tests/unictype/test-categ_S.c: Likewise.
10562         * tests/unictype/test-categ_Sc.c: Likewise.
10563         * tests/unictype/test-categ_So.c: Likewise.
10564         * tests/unictype/test-ctype_alnum.c: Likewise.
10565         * tests/unictype/test-ctype_alpha.c: Likewise.
10566         * tests/unictype/test-ctype_graph.c: Likewise.
10567         * tests/unictype/test-ctype_lower.c: Likewise.
10568         * tests/unictype/test-ctype_print.c: Likewise.
10569         * tests/unictype/test-ctype_punct.c: Likewise.
10570         * tests/unictype/test-ctype_upper.c: Likewise.
10571         * tests/unictype/test-decdigit.h: Likewise.
10572         * tests/unictype/test-digit.h: Likewise.
10573         * tests/unictype/test-numeric.h: Likewise.
10574         * tests/unictype/test-pr_alphabetic.c: Likewise.
10575         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10576         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10577         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10578         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10579         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10580         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10581         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10582         * tests/unictype/test-pr_combining.c: Likewise.
10583         * tests/unictype/test-pr_composite.c: Likewise.
10584         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10585         * tests/unictype/test-pr_dash.c: Likewise.
10586         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10587         * tests/unictype/test-pr_deprecated.c: Likewise.
10588         * tests/unictype/test-pr_diacritic.c: Likewise.
10589         * tests/unictype/test-pr_extender.c: Likewise.
10590         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10591         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10592         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10593         * tests/unictype/test-pr_id_continue.c: Likewise.
10594         * tests/unictype/test-pr_id_start.c: Likewise.
10595         * tests/unictype/test-pr_ideographic.c: Likewise.
10596         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10597         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10598         * tests/unictype/test-pr_lowercase.c: Likewise.
10599         * tests/unictype/test-pr_numeric.c: Likewise.
10600         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10601         * tests/unictype/test-pr_punctuation.c: Likewise.
10602         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10603         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10604         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10605         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10606         * tests/unictype/test-pr_uppercase.c: Likewise.
10607         * tests/unictype/test-pr_xid_continue.c: Likewise.
10608         * tests/unictype/test-pr_xid_start.c: Likewise.
10609         * tests/unictype/test-pr_zero_width.c: Likewise.
10610         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10611         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10612         changed behaviour: line breaking is now disallowed between a letter
10613         or '=' and '('.
10614         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10615         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10616         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10617         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10618         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10619         lib/uniwidth/width.c.
10620         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10621         without comments, but with the original copyright notice.
10622         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10623         changes.
10624         * lib/unictype/categ_Cc.h: Likewise.
10625         * lib/unictype/categ_Co.h: Likewise.
10626         * lib/unictype/categ_Cs.h: Likewise.
10627         * lib/unictype/categ_Lt.h: Likewise.
10628         * lib/unictype/categ_Me.h: Likewise.
10629         * lib/unictype/categ_Pc.h: Likewise.
10630         * lib/unictype/categ_Pe.h: Likewise.
10631         * lib/unictype/categ_Pf.h: Likewise.
10632         * lib/unictype/categ_Pi.h: Likewise.
10633         * lib/unictype/categ_Ps.h: Likewise.
10634         * lib/unictype/categ_Sk.h: Likewise.
10635         * lib/unictype/categ_Sm.h: Likewise.
10636         * lib/unictype/categ_Z.h: Likewise.
10637         * lib/unictype/categ_Zl.h: Likewise.
10638         * lib/unictype/categ_Zp.h: Likewise.
10639         * lib/unictype/categ_Zs.h: Likewise.
10640         * lib/unictype/ctype_blank.h: Likewise.
10641         * lib/unictype/ctype_cntrl.h: Likewise.
10642         * lib/unictype/ctype_digit.h: Likewise.
10643         * lib/unictype/ctype_space.h: Likewise.
10644         * lib/unictype/ctype_xdigit.h: Likewise.
10645         * lib/unictype/mirror.h: Likewise.
10646         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10647         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10648         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10649         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10650         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10651         * lib/unictype/pr_bidi_control.h: Likewise.
10652         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10653         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10654         * lib/unictype/pr_bidi_pdf.h: Likewise.
10655         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10656         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10657         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10658         * lib/unictype/pr_format_control.h: Likewise.
10659         * lib/unictype/pr_hex_digit.h: Likewise.
10660         * lib/unictype/pr_hyphen.h: Likewise.
10661         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10662         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10663         * lib/unictype/pr_iso_control.h: Likewise.
10664         * lib/unictype/pr_join_control.h: Likewise.
10665         * lib/unictype/pr_left_of_pair.h: Likewise.
10666         * lib/unictype/pr_line_separator.h: Likewise.
10667         * lib/unictype/pr_math.h: Likewise.
10668         * lib/unictype/pr_non_break.h: Likewise.
10669         * lib/unictype/pr_not_a_character.h: Likewise.
10670         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10671         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10672         * lib/unictype/pr_other_id_continue.h: Likewise.
10673         * lib/unictype/pr_other_id_start.h: Likewise.
10674         * lib/unictype/pr_other_lowercase.h: Likewise.
10675         * lib/unictype/pr_other_math.h: Likewise.
10676         * lib/unictype/pr_other_uppercase.h: Likewise.
10677         * lib/unictype/pr_paired_punctuation.h: Likewise.
10678         * lib/unictype/pr_paragraph_separator.h: Likewise.
10679         * lib/unictype/pr_pattern_syntax.h: Likewise.
10680         * lib/unictype/pr_pattern_white_space.h: Likewise.
10681         * lib/unictype/pr_private_use.h: Likewise.
10682         * lib/unictype/pr_quotation_mark.h: Likewise.
10683         * lib/unictype/pr_radical.h: Likewise.
10684         * lib/unictype/pr_soft_dotted.h: Likewise.
10685         * lib/unictype/pr_space.h: Likewise.
10686         * lib/unictype/pr_titlecase.h: Likewise.
10687         * lib/unictype/pr_variation_selector.h: Likewise.
10688         * lib/unictype/pr_white_space.h: Likewise.
10689         * lib/unictype/sy_c_ident.h: Likewise.
10690         * lib/unictype/sy_c_whitespace.h: Likewise.
10691         * lib/unictype/sy_java_whitespace.h: Likewise.
10692         * modules/uni*/*: Bump version number of expected libunistring version.
10693         Reported by Simon Josefsson.
10694
10695 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10696
10697         useless-if-before-free: fix typo in --help and make the internal,
10698         automatic version date update process work once again.
10699         --help output contained a NUL character instead of the
10700         backslash-zero that was intended.  Also, the "must lie within
10701         the first 8 lines" line is on line 9, and hence not getting
10702         automatically updated.
10703         * build-aux/useless-if-before-free: Fix the former by adding a
10704         backslash, and the latter by condensing the three lines of what-it-does
10705         to a single line, leaving one line of slack for the future.
10706
10707 2011-01-09  Bruno Haible  <bruno@clisp.org>
10708
10709         uniwidth/width: Fix width of U+1D173..U+1D17A.
10710         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10711         symbolic_width, output_width_property_test): New functions.
10712         (main): Invoke output_nonspacing_property, output_width_property_test.
10713         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10714         U+1D173..U+1D17A.
10715         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10716         1.
10717         * modules/uniwidth/*: Bump version number of expected libunistring
10718         version.
10719         * modules/unilbrk/*: Likewise.
10720
10721 2011-01-08  Bruno Haible  <bruno@clisp.org>
10722
10723         uninorm tests: Preserve copyright of Unicode data file.
10724         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10725         Mention modifications.
10726
10727 2011-01-08  Bruno Haible  <bruno@clisp.org>
10728
10729         gen-uni-tables: Prepare for Unicode 5.2.0.
10730         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10731         (debug_output_lbp, output_lbp): Update.
10732
10733 2011-01-08  Bruno Haible  <bruno@clisp.org>
10734
10735         unilbrk: Clarify gen-uni-tables.c code.
10736         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10737         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10738         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10739
10740 2011-01-07  Bruno Haible  <bruno@clisp.org>
10741
10742         strtod: Restore errno when successfully parsing Infinity or NaN.
10743         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10744         restore the original errno.
10745
10746 2011-01-07  Bruno Haible  <bruno@clisp.org>
10747
10748         remove test: Avoid failure on HP-UX 11.
10749         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10750
10751 2011-01-07  Bruno Haible  <bruno@clisp.org>
10752
10753         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10754         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10755         error code.
10756
10757 2011-01-07  Pádraig Brady <P@draigBrady.com>
10758
10759         ignore-value: fixup comments, and add Eric Blake
10760         as an author since he rewrote the macros.
10761         * lib/ignore-value.h (ignore_value):  State that
10762         we now support aggregates.  Also specify exactly
10763         when the GCC warn_unused_result feature was added.
10764
10765 2011-01-06  Eric Blake  <eblake@redhat.com>
10766
10767         ignore-value: support aggregate types
10768         * lib/ignore-value.h (ignore_value): Provide separate gcc
10769         definition.
10770         * modules/ignore-value-tests: New test module.
10771         * tests/test-ignore-value.c: New test.
10772
10773         maint.mk: improve sc_prohibit_strcmp regex
10774         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10775         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10776         definition of STRNEQ.
10777
10778         signal: work around Haiku issue with SIGBUS
10779         * lib/siglist.h: Add comment.
10780         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
10781         strsignal's favoring of SIGSEGV.
10782         * tests/test-signal.c (main): Avoid test failure.
10783         * doc/posix-headers/signal.texi (signal.h): Document the issue.
10784         Reported by Scott McCreary.
10785
10786         maint.mk: add pre-release check to ensure submodule commits are public
10787         * top/maint.mk (public-submodule-commit): New rule.
10788         (submodule-checks): New variable.
10789         (alpha beta stable): Depend on the variable.
10790
10791 2011-01-05  Pádraig Brady <P@draigBrady.com>
10792         and Jim Meyering  <meyering@redhat.com>
10793
10794         ignore-value: make ignore_value more generic; deprecate ignore_ptr
10795         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
10796         (ATTRIBUTE_DEPRECATED): Define.
10797         (_ignore_case): New function.
10798         (ignore_value): New macro, to replace the old function.
10799         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
10800         * modules/ignore-value (Depends-on): Add stdint.
10801
10802 2011-01-04  Eric Blake  <eblake@redhat.com>
10803
10804         doc: regenerate INSTALL
10805         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
10806         @firstparagraphindent support, now that autoconf dropped it.
10807         (INSTALL_PRELUDE): Reinstate old macro.
10808         * doc/install.texi: Resync from autoconf.
10809         * doc/INSTALL: Reflect recent autoconf update.
10810         * doc/INSTALL.ISO: Likewise.
10811         * doc/INSTALL.UTF-8: Likewise.
10812         Reported by Karl Berry.
10813
10814 2011-01-04  Bruce Korb  <address@hidden>
10815
10816         git-version-gen: avoid a sub-shell
10817         * build-aux/git-version-gen: Redirect stderr in `...` via
10818         "exec 2>...", rather than via an added sub-shell.
10819
10820 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
10821
10822         git-version-gen: use (...) rather than sh -c '...'
10823         * build-aux/git-version-gen: Rather than hard-coding a shell's name
10824         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
10825
10826 2011-01-03  Jim Meyering  <meyering@redhat.com>
10827
10828         git-version-gen: convert leading TABs to spaces
10829         * build-aux/git-version-gen: Expand leading TABs.
10830
10831         git-version-gen: handle failed "git rev-list"
10832         * build-aux/git-version-gen: Rather than leaking a "fatal" error
10833         from git and proceeding as if it had succeeded but printed no SHA1
10834         checksums, suppress the diagnostic and handle the failure.
10835         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
10836
10837         git-version-gen: include command name in one more diagnostic
10838         * build-aux/git-version-gen: When the required .tarball-version file
10839         was missing or unreadable, you might see the diagnostic from "cat",
10840         but no trace of the name of the invoking script.  Now, you still see
10841         the diagnostic from cat, but also get one from "git-version-gen: ".
10842         Inspired by a patch from Bruce Korb.
10843
10844         update-copyright: adjust test to match changed code
10845         * tests/test-update-copyright.sh: Change test's expected output
10846         to match new actual output.
10847
10848 2011-01-02  Bruno Haible  <bruno@clisp.org>
10849
10850         getlogin_r: Avoid test failure on HP-UX 11.
10851         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
10852         ERANGE when the second argument is zero.
10853         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
10854         portability problem.
10855
10856 2011-01-02  Bruce Korb  <bkorb@gnu.org>
10857
10858         * build-aux/update-copyright: doc Simon's changes
10859
10860 2011-01-02  Simon Josefsson  <simon@josefsson.org>
10861
10862         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
10863         environment variable.
10864
10865 2011-01-02  Bruno Haible  <bruno@clisp.org>
10866
10867         unigbrk: Avoid gcc warnings.
10868         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
10869         unused variable.
10870         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
10871         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
10872         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
10873         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
10874         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
10875         Change type of first argument to 'const char *'.
10876         (main): Remove unused variable.
10877         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
10878         type of first argument to 'const char *'.
10879         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
10880         Likewise.
10881         (main): Change type of variable 's'.
10882         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
10883         to 'int'.
10884
10885 2011-01-02  Bruno Haible  <bruno@clisp.org>
10886
10887         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
10888         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
10889         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
10890         bug.
10891         * lib/pwrite.c: Undo 2010-12-31 patch.
10892         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
10893
10894 2011-01-02  Bruno Haible  <bruno@clisp.org>
10895
10896         pread: Fix test whether it works.
10897         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
10898
10899 2011-01-02  Bruno Haible  <bruno@clisp.org>
10900
10901         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
10902         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
10903         ends in "6". Don't require a specific month name. Try also the locale
10904         names found on HP-UX 11 and Solaris 7.
10905
10906 2011-01-02  Bruno Haible  <bruno@clisp.org>
10907
10908         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
10909         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
10910         C linkage.
10911         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
10912
10913 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10914
10915         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
10916         for consistency, since the "cluster" term is not used elsewhere.
10917         * lib/unigbrk.in.h: Update name.
10918         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
10919         * lib/unigbrk/u16-grapheme-next.c: Update name.
10920         * lib/unigbrk/u16-grapheme-prev.c: Update name.
10921         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
10922         * lib/unigbrk/u32-grapheme-next.c: Update name.
10923         * lib/unigbrk/u32-grapheme-prev.c: Update name.
10924         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
10925         * lib/unigbrk/u8-grapheme-next.c: Update name.
10926         * lib/unigbrk/u8-grapheme-prev.c: Update name.
10927         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
10928         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
10929         Suggested by Bruno Haible.
10930
10931 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10932
10933         Remove module 'u8-grapheme-len' as too redundant with
10934         'u8-grapheme-next'.
10935         * modules/unigbrk/u8-grapheme-len: Delete file.
10936         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
10937         * lib/unigbrk.in.h: Remove prototype for deleted function.
10938         * lib/unigbrk/u8-grapheme-len.c: Delete file.
10939         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
10940
10941         Remove module 'u16-grapheme-len' as too redundant with
10942         'u16-grapheme-next'.
10943         * modules/unigbrk/u16-grapheme-len: Delete file.
10944         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
10945         * lib/unigbrk.in.h: Remove prototype for deleted function.
10946         * lib/unigbrk/u16-grapheme-len.c: Delete file.
10947         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
10948
10949         Remove module 'u32-grapheme-len' as too redundant with
10950         'u32-grapheme-next'.
10951         * modules/unigbrk/u32-grapheme-len: Delete file.
10952         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
10953         * lib/unigbrk.in.h: Remove prototype for deleted function.
10954         * lib/unigbrk/u32-grapheme-len.c: Delete file.
10955         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
10956
10957         Suggested by Bruno Haible.
10958
10959 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10960
10961         * unigbrk.in.h: Fix typo: "ben" => "been".
10962         Reported by Bruno Haible.
10963
10964 2011-01-01  Jim Meyering  <meyering@redhat.com>
10965
10966         maint: update almost all copyright ranges to include 2011
10967         Run the new "make update-copyright" rule.
10968
10969 2011-01-01  Jim Meyering  <meyering@redhat.com>
10970
10971         maint: update-copyright: exempt doc/INSTALL*
10972         * Makefile (update-copyright): Also exclude doc/INSTALL*,
10973         since they are generated.  Suggested by Bruno Haible.
10974
10975 2011-01-01  Jim Meyering  <meyering@redhat.com>
10976
10977         maint: refine the update-copyright rule
10978         * Makefile (update-copyright): Also exclude any file that includes
10979         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
10980         code that merely generates the comment.
10981
10982 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10983
10984         New module 'u8-grapheme-len'.
10985         * modules/unigbrk/u8-grapheme-len: New file.
10986         * modules/unigbrk/u8-grapheme-len-tests: New file.
10987         * lib/unigbrk.in.h: Add prototype for new function.
10988         * lib/unigbrk/u8-grapheme-len.c: New file.
10989         * tests/unigbrk/test-u8-grapheme-len.c: New file.
10990
10991         New module 'u16-grapheme-len'.
10992         * modules/unigbrk/u16-grapheme-len: New file.
10993         * modules/unigbrk/u16-grapheme-len-tests: New file.
10994         * lib/unigbrk.in.h: Add prototype for new function.
10995         * lib/unigbrk/u16-grapheme-len.c: New file.
10996         * tests/unigbrk/test-u16-grapheme-len.c: New file.
10997
10998         New module 'u32-grapheme-len'.
10999         * modules/unigbrk/u32-grapheme-len: New file.
11000         * modules/unigbrk/u32-grapheme-len-tests: New file.
11001         * lib/unigbrk.in.h: Add prototype for new function.
11002         * lib/unigbrk/u32-grapheme-len.c: New file.
11003         * tests/unigbrk/test-u32-grapheme-len.c: New file.
11004
11005         New module 'u8-grapheme-next'.
11006         * modules/unigbrk/u8-grapheme-next: New file.
11007         * modules/unigbrk/u8-grapheme-next-tests: New file.
11008         * lib/unigbrk.in.h: Add prototype for new function.
11009         * lib/unigbrk/u8-grapheme-next.c: New file.
11010         * tests/unigbrk/test-u8-grapheme-next.c: New file.
11011
11012         New module 'u16-grapheme-next'.
11013         * modules/unigbrk/u16-grapheme-next: New file.
11014         * modules/unigbrk/u16-grapheme-next-tests: New file.
11015         * lib/unigbrk.in.h: Add prototype for new function.
11016         * lib/unigbrk/u16-grapheme-next.c: New file.
11017         * tests/unigbrk/test-u16-grapheme-next.c: New file.
11018
11019         New module 'u32-grapheme-next'.
11020         * modules/unigbrk/u32-grapheme-next: New file.
11021         * modules/unigbrk/u32-grapheme-next-tests: New file.
11022         * lib/unigbrk.in.h: Add prototype for new function.
11023         * lib/unigbrk/u32-grapheme-next.c: New file.
11024         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11025
11026         New module 'u8-grapheme-prev'.
11027         * modules/unigbrk/u8-grapheme-prev: New file.
11028         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11029         * lib/unigbrk.in.h: Add prototype for new function.
11030         * lib/unigbrk/u8-grapheme-prev.c: New file.
11031         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
11032
11033         New module 'u16-grapheme-prev'.
11034         * modules/unigbrk/u16-grapheme-prev: New file.
11035         * modules/unigbrk/u16-grapheme-prev-tests: New file.
11036         * lib/unigbrk.in.h: Add prototype for new function.
11037         * lib/unigbrk/u16-grapheme-prev.c: New file.
11038         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
11039
11040         New module 'u32-grapheme-prev'.
11041         * modules/unigbrk/u32-grapheme-prev: New file.
11042         * modules/unigbrk/u32-grapheme-prev-tests: New file.
11043         * lib/unigbrk.in.h: Add prototype for new function.
11044         * lib/unigbrk/u32-grapheme-prev.c: New file.
11045         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
11046
11047         New module 'u8-grapheme-breaks'.
11048         * modules/unigbrk/u8-grapheme-breaks: New file.
11049         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
11050         * lib/unigbrk.in.h: Add prototype for new function.
11051         * lib/unigbrk/u8-grapheme-breaks.c: New file.
11052         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
11053
11054         New module 'u16-grapheme-breaks'.
11055         * modules/unigbrk/u16-grapheme-breaks: New file.
11056         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
11057         * lib/unigbrk.in.h: Add prototype for new function.
11058         * lib/unigbrk/u16-grapheme-breaks.c: New file.
11059         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
11060
11061         New module 'u32-grapheme-breaks'.
11062         * modules/unigbrk/u32-grapheme-breaks: New file.
11063         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
11064         * lib/unigbrk.in.h: Add prototype for new function.
11065         * lib/unigbrk/u32-grapheme-breaks.c: New file.
11066         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
11067
11068         New module 'ulc-grapheme-breaks'.
11069         * modules/unigbrk/ulc-grapheme-breaks: New file.
11070         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
11071         * m4/locale-ar.m4: New file.
11072         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
11073         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
11074         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
11075
11076 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11077
11078         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
11079         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
11080         modified how this file was generated before I initially submitted
11081         the module, but failed to regenerate it.  This meant that several
11082         of the level2 entries were wrong.
11083         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
11084         Remove the division-by-2 that is folded into the table now that
11085         gbrkprop.h has been regenerated properly.  Now -1 entries are
11086         handled correctly.
11087
11088         New module 'unigbrk/uc-gbrk-prop-tests'.
11089         * modules/unigbrk/uc-gbrk-prop-tests: New file.
11090         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
11091         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
11092         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
11093
11094 2011-01-01  Bruno Haible  <bruno@clisp.org>
11095
11096         Avoid use of hexadecimal escapes.
11097         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
11098         instead of hexadecimal escapes.
11099
11100 2011-01-01  Jim Meyering  <meyering@redhat.com>
11101
11102         maint: new rule to update copyright year ranges
11103         * Makefile (update-copyright): New rule.
11104
11105         maint: indent with TABs in Makefile
11106         * Makefile: Expand leading sequences of spaces to TABs
11107
11108         version-etc: update the copyright year it reports
11109         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
11110
11111 2010-12-31  Bruno Haible  <bruno@clisp.org>
11112
11113         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
11114         * lib/isfinite.c (zerof, zerod, zerol): New variables.
11115         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
11116         zero.
11117
11118 2010-12-31  Bruno Haible  <bruno@clisp.org>
11119
11120         pwrite: Work around HP-UX 11.11 bug.
11121         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
11122         works and set REPLACE_PWRITE if not.
11123         * lib/pwrite.c (pwrite): Add an implementation that uses the system
11124         function.
11125         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
11126
11127 2010-12-31  Bruno Haible  <bruno@clisp.org>
11128
11129         pread: Work around HP-UX 11 bugs.
11130         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
11131         and set REPLACE_PREAD if not.
11132         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
11133
11134 2010-12-31  Eric Blake  <eblake@redhat.com>
11135
11136         nl_langinfo: fix YESEXPR on Irix 6.5
11137         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
11138         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
11139         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
11140         it.
11141
11142 2010-12-31  Bruno Haible  <bruno@clisp.org>
11143
11144         iconv: Document HP-UX 11 bug.
11145         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
11146
11147 2010-12-31  Bruno Haible  <bruno@clisp.org>
11148
11149         ldexpl: Fix link error on HP-UX 11.
11150         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
11151         LDEXPL_LIBM, using $ISNANL_LIBM.
11152
11153 2010-12-31  Eric Blake  <eblake@redhat.com>
11154
11155         ftello: avoid compilation failure with SunStudio c89
11156         * lib/ftello.c (ftello): Use lseek, not llseek.
11157
11158         tests: avoid failing coreutils tests on cygwin
11159         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
11160         (create_exe_shims_): Return 0 when skipping.
11161
11162 2010-12-31  Bruno Haible  <bruno@clisp.org>
11163
11164         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
11165         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
11166
11167 2010-12-31  Bruno Haible  <bruno@clisp.org>
11168
11169         waitpid: Fix link error in C++ mode.
11170         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
11171
11172 2010-12-31  Bruno Haible  <bruno@clisp.org>
11173
11174         isnan: Use GCC built-ins when possible.
11175         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
11176         __builtin_isnan.
11177         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
11178         (isnan): Define using GCC built-ins for GCC >= 4.0.
11179
11180 2010-12-31  Bruno Haible  <bruno@clisp.org>
11181
11182         isnand: Fix mistake.
11183         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
11184         __builtin_isnand.
11185
11186 2010-12-31  Bruno Haible  <bruno@clisp.org>
11187
11188         open: Avoid C++ error on HP-UX 11.
11189         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
11190
11191 2010-12-31  Bruno Haible  <bruno@clisp.org>
11192
11193         time_r: Add missing declarations on HP-UX 11.
11194         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
11195         instead of HAVE_LOCALTIME_R.
11196         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
11197         HAVE_LOCALTIME_R always.
11198         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
11199         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
11200         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
11201         HAVE_LOCALTIME_R.
11202         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
11203         * doc/posix-functions/localtime_r.texi: Likewise.
11204
11205 2010-12-29  Eric Blake  <eblake@redhat.com>
11206
11207         mountlist: tweak previous commit
11208         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11209         Reported by Paul Eggert.
11210
11211         mountlist: fix local drive detection on cygwin
11212         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11213         that works for cygwin.
11214
11215 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11216
11217         ftoastr, snprintf: ftoastr + snprintf module
11218         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11219         since the snprintf module now should be good enough here.
11220         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11221         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11222         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11223         GNULIB_SNPRINTF only for the test directory, and the latter
11224         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11225         seems to suffice by itself.
11226
11227 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11228
11229         alloca: one step towards thread-safety
11230         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11231         need for a static variable.  All callers changed.  This does not
11232         make the alloca replacement thread-safe, but it's one step.
11233
11234         tests: minor indenting change
11235         * tests/init.sh: Sync from coreutils housekeeping patch
11236         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11237         to keep lines within 80 columns.
11238
11239 2010-12-28  Jim Meyering  <meyering@redhat.com>
11240
11241         regex: don't infloop on persistent failing calloc
11242         * lib/regexec.c (build_trtable): Return failure indication upon
11243         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11244         In glibc, this was fixed for version 2.13:
11245         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11246
11247 2010-12-28  Bruno Haible  <bruno@clisp.org>
11248             Paul Eggert <eggert@cs.ucla.edu>
11249
11250         linkat: Make implementation robust against system behaviour variations.
11251         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11252         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11253         way, and to -2 if it needs a generic runtime test.
11254         * lib/linkat.c (solaris_optimized_link_immediate,
11255         solaris_optimized_link_follow): New functions.
11256         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11257         (check_same_link): Use it.
11258
11259 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11260
11261         New module 'unigbrk/base'.
11262         * modules/unigbrk/base: New file.
11263         * lib/unigbrk.in.h: New file.
11264
11265         New module 'unigbrk/uc-gbrk-prop'.
11266         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11267         * modules/unigbrk/uc-gbrk-prop: New file.
11268         * lib/unigbrk/gbrkprop.h: New file.
11269         * lib/unigbrk/uc-gbrk-prop.c: New file.
11270
11271         New module 'unigbrk/uc-is-grapheme-break'.
11272         * modules/unigbrk/uc-is-grapheme-break: New file.
11273         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11274         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11275         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11276         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11277         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11278
11279         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11280
11281 2010-12-27  Bruno Haible  <bruno@clisp.org>
11282
11283         linkat test: Avoid failure on Solaris 11 2010-11.
11284         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11285
11286 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11287
11288         utimens: work around glibc rounding bug on more platforms
11289         * lib/utimens.c (fdutimens): Work around rounding bug even if
11290         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11291         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11292
11293 2010-12-27  Bruno Haible  <bruno@clisp.org>
11294
11295         select tests: Improve comments.
11296         * tests/test-select.c (do_select): Add comments.
11297
11298 2010-12-27  Bruno Haible  <bruno@clisp.org>
11299
11300         select tests: Safer way of handling timeout.
11301         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11302         at every invocation.
11303
11304 2010-12-27  Bruno Haible  <bruno@clisp.org>
11305
11306         select tests: Use 'bool' where appropriate.
11307         * tests/test-select.c (connect_to_socket): Change argument type to
11308         'bool'.
11309
11310 2010-12-27  Bruno Haible  <bruno@clisp.org>
11311
11312         select tests: Use existing modules.
11313         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11314         (configure.ac): Don't test for unistd.h.
11315         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11316         declared in <unistd.h>.
11317
11318 2010-12-27  Bruno Haible  <bruno@clisp.org>
11319
11320         mbrtowc: Work around a Solaris 7 bug.
11321         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11322         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11323         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11324         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11325         MBRTOWC_NULL_ARG1_BUG.
11326         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11327         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11328         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11329         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11330
11331 2010-12-27  Jim Meyering  <meyering@redhat.com>
11332
11333         read-file.c: tweak syntax
11334         * lib/read-file.c (fread_file): Remove space after "*" in function
11335         definitions.
11336
11337 2010-12-27  Bruno Haible  <bruno@clisp.org>
11338
11339         times test: Avoid gcc warnings on OSF/1.
11340         * tests/test-times.c (main): Cast printf arguments from clock_t to
11341         'long int'.
11342
11343 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11344
11345         utimens: work around glibc rounding bug on older Linux kernels
11346         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11347         on Linux with a glibc whose utimes might not work, then work
11348         around a longstanding glibc bug involving rounding rather than
11349         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11350         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11351
11352 2010-12-26  Bruno Haible  <bruno@clisp.org>
11353
11354         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11355         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11356         _GL_CXXALIAS_SYS.
11357         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11358
11359 2010-12-26  Bruno Haible  <bruno@clisp.org>
11360
11361         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11362         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11363         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11364         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11365         looking for the declaration.
11366         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11367         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11368         problem.
11369         * doc/posix-functions/inet_pton.texi: Likewise.
11370
11371 2010-12-26  Bruno Haible  <bruno@clisp.org>
11372
11373         arpa_inet: Use the common idioms with C++ support.
11374         * lib/arpa_inet.in.h: Include c++defs.h.
11375         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11376         support.
11377         * modules/arpa_inet (Depends-on): Add c++defs.
11378         (Makefile.am): Substitute the contents of c++defs.h.
11379         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11380         * modules/arpa_inet-c++-tests: New file.
11381         * tests/test-arpa_inet-c++.cc: New file.
11382
11383 2010-12-25  Bruno Haible  <bruno@clisp.org>
11384
11385         Fix more C++ link errors on Solaris 8.
11386         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11387         $(LIB_EACCESS).
11388         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11389         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11390         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11391         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11392         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11393
11394 2010-12-25  Bruno Haible  <bruno@clisp.org>
11395
11396         printf-posix: Fix link error when a non-GCC compiler is used.
11397         * lib/stdio.in.h (printf): When not using GCC, override printf
11398         correctly.
11399         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11400
11401 2010-12-25  Bruno Haible  <bruno@clisp.org>
11402
11403         strerror_r-posix: Update doc.
11404         * doc/posix-functions/strerror_r.texi: Update doc about the return
11405         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11406
11407 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11408
11409         utimens: simplify the logic of the previous change
11410         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11411         This should not affect whether the test succeeds or fails.
11412
11413         utimens: configure better on hosts with NFS clock skew
11414         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11415         uses the clock of the local host.  It might use the clock of the
11416         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11417         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11418
11419 2010-12-25  Bruno Haible  <bruno@clisp.org>
11420
11421         ptsname test: Avoid failure on Solaris.
11422         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11423         open a pseudo-terminal; don't use BSD-style ptys.
11424         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11425
11426 2010-12-25  Bruno Haible  <bruno@clisp.org>
11427
11428         ptsname: Avoid ERANGE failure on some systems.
11429         * lib/ptsname.c (buffer): Increase size.
11430
11431 2010-12-25  Bruno Haible  <bruno@clisp.org>
11432
11433         rename, renameat: Avoid test failures at NFS mounted locations.
11434         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11435         so that subsequent mkdir calls succeed.
11436
11437 2010-12-25  Bruno Haible  <bruno@clisp.org>
11438
11439         iswblank: Fix C++ link error on Solaris 8.
11440         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11441         _GL_FUNCDECL_SYS.
11442
11443 2010-12-25  Bruno Haible  <bruno@clisp.org>
11444
11445         unistd: Fix C++ link error on Solaris 8.
11446         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11447
11448 2010-12-25  Bruno Haible  <bruno@clisp.org>
11449
11450         readlink doc: Mention an old glibc bug.
11451         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11452
11453 2010-12-25  Bruno Haible  <bruno@clisp.org>
11454
11455         fcntl-h: Fix for use of C++ on glibc systems.
11456         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11457         also on glibc systems in C++ mode.
11458         Reported by Gary V. Vaughan <gary@gnu.org>.
11459
11460 2010-12-25  Bruno Haible  <bruno@clisp.org>
11461
11462         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11463         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11464
11465 2010-12-25  Bruno Haible  <bruno@clisp.org>
11466
11467         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11468         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11469         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11470         test whether truncl works according to ISO C 99 with IEC 60559.
11471         * m4/truncl-ieee.m4: New file.
11472         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11473         m4/signbit.m4.
11474         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11475
11476 2010-12-25  Bruno Haible  <bruno@clisp.org>
11477
11478         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11479         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11480         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11481         test whether ceill works according to ISO C 99 with IEC 60559.
11482         * m4/ceill-ieee.m4: New file.
11483         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11484         m4/signbit.m4.
11485         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11486
11487 2010-12-25  Bruno Haible  <bruno@clisp.org>
11488
11489         Ensure all prerequisites of <wchar.h> are included.
11490         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11491         before <wchar.h>.
11492         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11493         gl_MBRLEN_NUL_RETVAL): Likewise.
11494         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11495         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11496         AC_FUNC_MBRTOWC): Likewise.
11497         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11498         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11499         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11500         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11501         Likewise.
11502         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11503         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11504         (gl_WCHAR_H): Improve comments.
11505         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11506
11507 2010-12-25  Bruno Haible  <bruno@clisp.org>
11508
11509         strtok_r: Fix C syntax error in autoconf macro.
11510         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11511         characters in test program.
11512
11513 2010-12-24  Bruno Haible  <bruno@clisp.org>
11514
11515         ceil, trunc, round: Fix gcc warnings.
11516         * lib/ceil.c (MIN): Undefine before redefining.
11517         * lib/trunc.c (MIN): Likewise.
11518         * lib/round.c (MIN): Likewise.
11519         Include <math.h> first.
11520
11521 2010-12-24  Bruno Haible  <bruno@clisp.org>
11522
11523         select tests: Avoid failures on OSF/1 5.1.
11524         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11525         failure of closing the last socket; it may fail with ECONNRESET.
11526
11527 2010-12-24  Eric Blake  <eblake@redhat.com>
11528
11529         stdint: avoid HP-UX 10.20 preprocessor bug
11530         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11531         than #if.
11532         * tests/test-floor2.c (main): Likewise.
11533         Reported by Peter O'Gorman.
11534
11535         pipe: make obsoletion transition easier
11536         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11537         * modules/pipe (Files): Include revived file.
11538         (Include): Drop reference, to mirror getdate's behavior.
11539
11540 2010-12-24  Bruno Haible  <bruno@clisp.org>
11541
11542         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11543         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11544         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11545         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11546
11547 2010-12-24  Bruno Haible  <bruno@clisp.org>
11548
11549         gethostname: Ensure declaration on NonStop Kernel.
11550         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11551         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11552
11553 2010-12-24  Bruno Haible  <bruno@clisp.org>
11554
11555         sys_select: Ensure all necessary types on NonStop Kernel.
11556         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11557         include <sys/time.h>.
11558         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11559         NonStop Kernel.
11560         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11561
11562 2010-12-24  Bruno Haible  <bruno@clisp.org>
11563
11564         sys_select: Remove unneeded include.
11565         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11566         have <sys/select.h>.
11567
11568 2010-12-24  Bruno Haible  <bruno@clisp.org>
11569
11570         gethostname: Provide a fallback for HOST_NAME_MAX.
11571         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11572         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11573         instead.
11574         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11575
11576 2010-12-24  Bruno Haible  <bruno@clisp.org>
11577
11578         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11579         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11580         (SA_RESTART): Likewise.
11581         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11582
11583 2010-12-24  Bruno Haible  <bruno@clisp.org>
11584
11585         signal: Define NSIG.
11586         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11587         * tests/test-signal.c (nsig): New variable.
11588         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11589
11590 2010-12-24  Bruno Haible  <bruno@clisp.org>
11591
11592         rename, renameat: Avoid test failures on OSF/1 5.1.
11593         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11594         alternative error codes.
11595         * tests/test-renameat.c (main): Likewise.
11596
11597 2010-12-24  Bruno Haible  <bruno@clisp.org>
11598
11599         *printf: Detect large precisions bug on Solaris 10/SPARC.
11600         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11601         by Paul Eggert.
11602         * tests/test-snprintf-posix.h (test_function): Add this test code here
11603         too.
11604         * tests/test-sprintf-posix.h (test_function): Likewise.
11605         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11606         * tests/test-vasprintf-posix.c (test_function): Likewise.
11607         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11608         around by gnulib.
11609         * doc/posix-functions/printf.texi: Likewise.
11610         * doc/posix-functions/snprintf.texi: Likewise.
11611         * doc/posix-functions/sprintf.texi: Likewise.
11612         * doc/posix-functions/vfprintf.texi: Likewise.
11613         * doc/posix-functions/vprintf.texi: Likewise.
11614         * doc/posix-functions/vsnprintf.texi: Likewise.
11615         * doc/posix-functions/vsprintf.texi: Likewise.
11616         * doc/posix-functions/dprintf.texi: Undo last commit.
11617         * doc/posix-functions/vdprintf.texi: Likewise.
11618
11619 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11620
11621         tests: port test-fdutimensat.c to Solaris 8
11622         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11623         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11624         On Solaris 8, it fails with errno == ENOSYS, because there is no
11625         futimens (so it can't use the fd), and there is no lutimens (so it
11626         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11627
11628         vsnprintf: make more consistent with snprintf; doc fixes
11629
11630         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11631         the byte count return problem was promoted from the snprintf-posix
11632         to the snprintf module.
11633         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11634         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11635         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11636         * tests/test-snprintf.c (main): Check the byte count returned.
11637         * tests/test-vsnprintf.c (main): Likewise.
11638
11639 2010-12-23  Eric Blake  <eblake@redhat.com>
11640
11641         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11642         * modules/sigpipe (License): Relax license.
11643
11644 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11645
11646         doc: document Solaris printf bug with large float precisions
11647         * doc/posix-functions/dprintf.texi (dprintf):
11648         * doc/posix-functions/fprintf.texi (fprintf):
11649         * doc/posix-functions/printf.texi (printf):
11650         * doc/posix-functions/snprintf.texi (snprintf):
11651         * doc/posix-functions/sprintf.texi (sprintf):
11652         * doc/posix-functions/vdprintf.texi (vdprintf):
11653         * doc/posix-functions/vfprintf.texi (vfprintf):
11654         * doc/posix-functions/vprintf.texi (vprintf):
11655         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11656         * doc/posix-functions/vsprintf.texi (vsprintf):
11657         Mention that these functions mishandle large floating point
11658         precisions on Solaris 10.  The same bug is also present in Solaris
11659         8, and I assume earlier.  This causes "cd gnulib-tests; make
11660         check" to fail on Solaris 8 (and I assume, later) when building
11661         the latest coreutils, in test-vasprintf-posix's call to
11662         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11663         the wide flavors (e.g., wprintf) so this patch just updates the
11664         documentation for the narrow ones.
11665
11666         test-posixtm.c: add two tests
11667         * tests/test-posixtm.c: Add two tests, to highlight the
11668         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11669         around this bug; this is merely to document it.
11670
11671 2010-12-22  Bruno Haible  <bruno@clisp.org>
11672
11673         getlogin_r: Work around portability problem on OSF/1.
11674         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11675         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11676         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11677         test for a truncated result.
11678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11679         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11680         * modules/getlogin_r (Depends-on): Add memchr.
11681         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11682
11683 2010-12-22  Bruno Haible  <bruno@clisp.org>
11684
11685         ptsname: Avoid test failure on OSF/1 5.1.
11686         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11687         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11688         (same_slave): New function.
11689         (main): Use it to compare ptsname's result with the expected file name.
11690
11691 2010-12-22  Bruno Haible  <bruno@clisp.org>
11692
11693         Port extended stdio modules to HP NonStop Kernel.
11694         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11695         macros.
11696         * lib/fbufmode.c: Update comments.
11697         * lib/fflush.c: Likewise.
11698         * lib/fpurge.c: Likewise.
11699         * lib/freadable.c: Likewise.
11700         * lib/freadahead.c: Likewise.
11701         * lib/freading.c: Likewise.
11702         * lib/freadptr.c: Likewise.
11703         * lib/freadseek.c: Likewise.
11704         * lib/fseeko.c: Likewise.
11705         * lib/fseterr.c: Likewise.
11706         * lib/fwritable.c: Likewise.
11707         * lib/fwriting.c: Likewise.
11708         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11709
11710 2010-12-22  Bruno Haible  <bruno@clisp.org>
11711
11712         ttyname_r: Work around bug on OSF/1 5.1.
11713         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11714         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11715         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11716         present.
11717         * lib/ttyname_r.c (ttyname_r): Update comments.
11718
11719 2010-12-22  Bruno Haible  <bruno@clisp.org>
11720
11721         round: Implement result sign according to IEEE 754.
11722         * lib/round.c (MIN, MINUS_ZERO): New macros.
11723         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11724         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11725         * tests/test-round-ieee.c (main): Likewise.
11726         * tests/test-roundl-ieee.c (main): Likewise.
11727
11728         trunc: Implement result sign according to IEEE 754.
11729         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11730         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11731         * tests/test-trunc2.c: Include minus-zero.h.
11732         (MINUS_ZERO): New macro.
11733         (trunc_reference): Keep in sync with lib/trunc.c.
11734         * tests/test-truncf2.c: Include minus-zero.h.
11735         (MINUS_ZERO): New macro.
11736         (truncf_reference): Keep in sync with lib/trunc.c.
11737         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11738         * tests/test-trunc-ieee.c (main): Likewise.
11739         * tests/test-truncl-ieee.c (main): Likewise.
11740
11741         ceil: Implement result sign according to IEEE 754.
11742         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11743         (FUNC): Return -0.0 for -1 < x < 0.
11744         * tests/test-ceil2.c: Include minus-zero.h.
11745         (MINUS_ZERO): New macro.
11746         (ceil_reference): Keep in sync with lib/ceil.c.
11747         * tests/test-ceilf2.c: Include minus-zero.h.
11748         (MINUS_ZERO): New macro.
11749         (ceilf_reference): Keep in sync with lib/ceil.c.
11750         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11751         * tests/test-ceil-ieee.c (main): Likewise.
11752         * tests/test-ceill-ieee.c (main): Likewise.
11753
11754         floor: Implement result sign according to IEEE 754.
11755         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11756         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11757         * tests/test-floorf2.c (floorf_reference): Likewise.
11758         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11759         * tests/test-floor-ieee.c (main): Likewise.
11760         * tests/test-floorl-ieee.c (main): Likewise.
11761
11762 2010-12-22  Bruno Haible  <bruno@clisp.org>
11763
11764         getaddrinfo: Update doc.
11765         * doc/posix-functions/gai_strerror.texi: Return type is also different
11766         on AIX and HP-UX.
11767
11768 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11769
11770         getaddrinfo, inet_ntop: Update doc for Solaris.
11771         * doc/posix-functions/gai_strerror.texi: Return type is also an
11772         issue on Solaris 9 and earlier.
11773         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11774         on Solaris 10 and earlier.
11775
11776 2010-12-21  Bruno Haible  <bruno@clisp.org>
11777
11778         New module 'roundl-ieee'.
11779         * modules/roundl-ieee: New file.
11780         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
11781         test whether roundl works according to ISO C 99 with IEC 60559.
11782         * m4/roundl-ieee.m4: New file.
11783         * modules/roundl-ieee-tests: New file.
11784         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
11785         * tests/test-roundl.c (main): Remove signbit tests.
11786         * modules/roundl-tests (Depends-on): Remove signbit.
11787         * doc/posix-functions/roundl.texi: Mention the new module.
11788
11789 2010-12-21  Bruno Haible  <bruno@clisp.org>
11790
11791         New module 'truncl-ieee'.
11792         * modules/truncl-ieee: New file.
11793         * modules/truncl-ieee-tests: New file.
11794         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
11795         * tests/test-truncl.c (main): Remove signbit tests.
11796         * modules/truncl-tests (Depends-on): Remove signbit.
11797         * doc/posix-functions/truncl.texi: Mention the new module.
11798
11799 2010-12-21  Bruno Haible  <bruno@clisp.org>
11800
11801         New module 'ceill-ieee'.
11802         * modules/ceill-ieee: New file.
11803         * modules/ceill-ieee-tests: New file.
11804         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
11805         * tests/test-ceill.c (main): Remove signbit tests.
11806         * modules/ceill-tests (Depends-on): Remove signbit.
11807         * doc/posix-functions/ceill.texi: Mention the new module.
11808
11809 2010-12-21  Bruno Haible  <bruno@clisp.org>
11810
11811         New module 'floorl-ieee'.
11812         * modules/floorl-ieee: New file.
11813         * modules/floorl-ieee-tests: New file.
11814         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
11815         * tests/test-floorl.c (main): Remove signbit tests.
11816         * modules/floorl-tests (Depends-on): Remove signbit.
11817         * doc/posix-functions/floorl.texi: Mention the new module.
11818
11819 2010-12-21  Bruno Haible  <bruno@clisp.org>
11820
11821         New module 'round-ieee'.
11822         * modules/round-ieee: New file.
11823         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
11824         whether round works according to ISO C 99 with IEC 60559.
11825         * m4/round-ieee.m4: New file.
11826         * modules/round-ieee-tests: New file.
11827         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
11828         * tests/test-round1.c (main): Remove signbit tests.
11829         * modules/round-tests (Depends-on): Remove 'signbit'.
11830         * doc/posix-functions/round.texi: Mention the new module.
11831
11832 2010-12-21  Bruno Haible  <bruno@clisp.org>
11833
11834         New module 'trunc-ieee'.
11835         * modules/trunc-ieee: New file.
11836         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
11837         whether trunc works according to ISO C 99 with IEC 60559.
11838         * m4/trunc-ieee.m4: New file.
11839         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
11840         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
11841         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
11842         * modules/trunc-ieee-tests: New file.
11843         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
11844         * tests/test-trunc1.c (main): Remove signbit tests.
11845         * modules/trunc-tests (Depends-on): Remove 'signbit'.
11846         * doc/posix-functions/trunc.texi: Mention the new module.
11847
11848 2010-12-21  Bruno Haible  <bruno@clisp.org>
11849
11850         New module 'ceil-ieee'.
11851         * modules/ceil-ieee: New file.
11852         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
11853         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
11854         ISO C 99 with IEC 60559.
11855         * m4/ceil-ieee.m4: New file.
11856         * modules/ceil (Files): Add lib/ceil.c.
11857         (Depends-on): Add 'float'.
11858         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11859         * lib/math.in.h (ceil): New declaration.
11860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
11861         REPLACE_CEIL.
11862         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
11863         * modules/ceil-ieee-tests: New file.
11864         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
11865         * tests/test-math-c++.cc: Check the signature of 'ceil'.
11866         * doc/posix-functions/ceil.texi: Mention the new module.
11867
11868 2010-12-21  Bruno Haible  <bruno@clisp.org>
11869
11870         New module 'floor-ieee'.
11871         * modules/floor-ieee: New file.
11872         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
11873         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
11874         ISO C 99 with IEC 60559.
11875         * m4/floor-ieee.m4: New file.
11876         * modules/floor (Files): Add lib/floor.c.
11877         (Depends-on): Add 'float'.
11878         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11879         * lib/math.in.h (floor): New declaration.
11880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
11881         REPLACE_FLOOR.
11882         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
11883         * modules/floor-ieee-tests: New file.
11884         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
11885         * tests/test-math-c++.cc: Check the signature of 'floor'.
11886         * doc/posix-functions/floor.texi: Mention the new module.
11887
11888 2010-12-21  Bruno Haible  <bruno@clisp.org>
11889
11890         New module 'roundf-ieee'.
11891         * modules/roundf-ieee: New file.
11892         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
11893         test whether roundf works according to ISO C 99 with IEC 60559.
11894         * m4/roundf-ieee.m4: New file.
11895         * modules/roundf-ieee-tests: New file.
11896         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
11897         * tests/test-roundf1.c (main): Remove signbit tests.
11898         * modules/roundf-tests (Depends-on): Remove 'signbit'.
11899         * doc/posix-functions/roundf.texi: Mention the new module.
11900
11901 2010-12-21  Bruno Haible  <bruno@clisp.org>
11902
11903         New module 'truncf-ieee'.
11904         * modules/truncf-ieee: New file.
11905         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
11906         test whether truncf works according to ISO C 99 with IEC 60559.
11907         * m4/truncf-ieee.m4: New file.
11908         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
11909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
11910         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
11911         * modules/truncf-ieee-tests: New file.
11912         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
11913         * tests/test-truncf1.c (main): Remove signbit tests.
11914         * modules/truncf-tests (Depends-on): Remove 'signbit'.
11915         * doc/posix-functions/truncf.texi: Mention the new module.
11916
11917 2010-12-21  Bruno Haible  <bruno@clisp.org>
11918
11919         New module 'ceilf-ieee'.
11920         * modules/ceilf-ieee: New file.
11921         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
11922         test whether ceilf works according to ISO C 99 with IEC 60559.
11923         * m4/ceilf-ieee.m4: New file.
11924         * modules/ceilf-ieee-tests: New file.
11925         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
11926         * tests/test-ceilf1.c (main): Remove signbit tests.
11927         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
11928         * doc/posix-functions/ceilf.texi: Mention the new module.
11929
11930 2010-12-21  Bruno Haible  <bruno@clisp.org>
11931
11932         New module 'floorf-ieee'.
11933         * modules/floorf-ieee: New file.
11934         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
11935         test whether floorf works according to ISO C 99 with IEC 60559.
11936         * m4/floorf-ieee.m4: New file.
11937         * modules/floorf-ieee-tests: New file.
11938         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
11939         * tests/test-floorf1.c (main): Remove signbit tests.
11940         * modules/floorf-tests (Depends-on): Remove 'signbit'.
11941         * doc/posix-functions/floorf.texi: Mention the new module.
11942
11943 2010-12-21  Bruno Haible  <bruno@clisp.org>
11944
11945         Support for minus zero in autoconf macros.
11946         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
11947         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
11948         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
11949         * tests/minus-zero.h: Update comments.
11950
11951 2010-12-21  Bruno Haible  <bruno@clisp.org>
11952
11953         Tests for module 'ceil'.
11954         * modules/ceil-tests: New file.
11955         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
11956         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
11957
11958 2010-12-21  Bruno Haible  <bruno@clisp.org>
11959
11960         Tests for module 'floor'.
11961         * modules/floor-tests: New file.
11962         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
11963         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
11964
11965 2010-12-21  Bruno Haible  <bruno@clisp.org>
11966
11967         math: Fix indentation.
11968         * lib/math.in.h (floorf): Fix indentation.
11969
11970 2010-12-21  Bruno Haible  <bruno@clisp.org>
11971
11972         Fix cross-compilation guesses on Solaris.
11973         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
11974         not match "solaris2.10".
11975         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11976         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
11977         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11978
11979 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
11980
11981         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
11982         This fixes a problem observed with the latest coreutils snapshot
11983         that caused a test to fail on Solaris 8.  src/csplit.c's call
11984         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
11985         earlier, instead of returning the number of bytes that would have
11986         been generated; this causes csplit to incorrectly report memory
11987         exhaustion.
11988         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
11989         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
11990         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
11991         comments to match.
11992         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
11993         Fix typo in matching older versions of Solaris: "solaris2.10"
11994         is matched by the shell pattern "solaris2.[0-9]*".  This matters
11995         only for guessing while cross-compiling.
11996         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
11997
11998 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11999
12000         ftoastr: fix comment again
12001         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12002         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
12003         Also, simplify example a bit by using flags = 0.
12004
12005 2010-12-20  Bruno Haible  <bruno@clisp.org>
12006
12007         round*, trunc*: Update documentation regarding glibc.
12008         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
12009         * doc/posix-functions/round.texi: Likewise.
12010         * doc/posix-functions/roundl.texi: Likewise.
12011         * doc/posix-functions/truncf.texi: Likewise.
12012         * doc/posix-functions/trunc.texi: Likewise.
12013         * doc/posix-functions/truncl.texi: Likewise.
12014
12015 2010-12-20  Bruno Haible  <bruno@clisp.org>
12016
12017         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
12018         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
12019         * doc/posix-functions/round.texi: Likewise.
12020         * doc/posix-functions/roundl.texi: Likewise.
12021
12022 2010-12-20  Bruno Haible  <bruno@clisp.org>
12023
12024         ttyname_r: Add missing declaration on HP-UX 11.
12025         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12026         HAVE_TTYNAME_R.
12027         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12028         declared. Set HAVE_TTYNAME_R always.
12029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12030         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
12031         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
12032         HAVE_TTYNAME_R.
12033         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
12034
12035 2010-12-20  Bruno Haible  <bruno@clisp.org>
12036
12037         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
12038         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
12039         * doc/posix-functions/getlogin_r.texi: Likewise.
12040         * tests/test-getlogin.c: Include <errno.h>.
12041         (main): Avoid test failure on HP-UX 11.11.
12042         * tests/test-getlogin_r.c (main): Likewise.
12043
12044 2010-12-20  Bruno Haible  <bruno@clisp.org>
12045
12046         getlogin_r: Add missing declaration on HP-UX 11.
12047         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
12048         declared also when it exists as a function.
12049         * doc/posix-functions/getlogin_r.texi: Document this workaround.
12050
12051 2010-12-20  Bruno Haible  <bruno@clisp.org>
12052
12053         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
12054         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
12055         through wcrtomb.
12056
12057 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12058
12059         ftoastr: fix comment
12060         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12061         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
12062
12063 2010-12-19  Bruno Haible  <bruno@clisp.org>
12064
12065         isnan: Ensure it is a macro.
12066         * lib/math.in.h (isnan): Define as a macro if not already a macro.
12067         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
12068         Solaris.
12069
12070 2010-12-19  Bruno Haible  <bruno@clisp.org>
12071
12072         ldexpl test: Fix link error on OSF/1 5.1.
12073         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
12074
12075 2010-12-19  Bruno Haible  <bruno@clisp.org>
12076
12077         wctype: Make it work in C++ mode on OSF/1 5.1.
12078         * lib/wctype.in.h (iswblank): Declare but not define here.
12079         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
12080         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12081         * modules/wctype (Files): Add lib/iswblank.c.
12082
12083 2010-12-19  Bruno Haible  <bruno@clisp.org>
12084
12085         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
12086         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
12087         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
12088
12089 2010-12-19  Bruno Haible  <bruno@clisp.org>
12090
12091         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
12092         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
12093         _POSIX_PII_SOCKET.
12094         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
12095         * doc/posix-functions/recvfrom.texi: Likewise.
12096         * doc/posix-functions/send.texi: Likewise.
12097         * doc/posix-functions/sendto.texi: Likewise.
12098
12099 2010-12-19  Bruno Haible  <bruno@clisp.org>
12100
12101         tcgetsid: Add missing declaration on OSF/1 5.1.
12102         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
12103         HAVE_TCGETSID.
12104         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
12105         Don't set HAVE_TCGETSID.
12106         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
12107         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
12108         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
12109         HAVE_TCGETSID.
12110         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
12111
12112 2010-12-19  Bruno Haible  <bruno@clisp.org>
12113
12114         stdio: Fix problem with popen() declaration on OSF/1 5.1.
12115         * lib/stdio.in.h: During the include_next statement, let recursive
12116         includes of this file include only the system header file.
12117
12118 2010-12-19  Bruno Haible  <bruno@clisp.org>
12119
12120         iconv_open: Fix regression from 2010-12-04.
12121         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
12122         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
12123
12124 2010-12-19  Bruno Haible  <bruno@clisp.org>
12125
12126         stdbool test: Avoid a gcc warning.
12127         * tests/test-stdbool.c (main): Fail if e1 is false.
12128         Reported by Jim Meyering.
12129
12130 2010-12-19  Jim Meyering  <meyering@redhat.com>
12131
12132         setenv: restore to working order
12133         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
12134         mistakenly removed.
12135         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
12136         HAVE_SETENV.
12137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
12138         HAVE_SETENV.
12139
12140 2010-12-19  Bruno Haible  <bruno@clisp.org>
12141
12142         Document some different function declarations on OSF/1 5.1.
12143         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
12144         * doc/posix-functions/inet_ntop.texi: Likewise.
12145         * doc/posix-functions/gethostname.texi: Likewise.
12146         * lib/unistd.in.h (gethostname): Update comment.
12147
12148 2010-12-19  Bruno Haible  <bruno@clisp.org>
12149
12150         doc: Mention vasprintf-posix module.
12151         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
12152         the 'vasprintf-posix' module.
12153         * doc/glibc-functions/vasprintf.texi: Likewise.
12154
12155 2010-12-19  Bruno Haible  <bruno@clisp.org>
12156
12157         unsetenv: Add missing declaration on OSF/1 5.1.
12158         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
12159         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
12160         Don't set HAVE_UNSETENV. In the test program, set _BSD.
12161         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
12162         not HAVE_UNSETENV.
12163         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
12164         HAVE_UNSETENV.
12165         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
12166
12167 2010-12-19  Bruno Haible  <bruno@clisp.org>
12168
12169         setenv: Add missing declaration on OSF/1 5.1.
12170         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
12171         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
12172         declared. Don't set HAVE_SETENV.
12173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
12174         not HAVE_SETENV.
12175         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
12176         HAVE_SETENV.
12177         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
12178
12179 2010-12-19  Bruno Haible  <bruno@clisp.org>
12180
12181         nl_langinfo tests: Avoid gcc warning.
12182         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
12183
12184 2010-12-19  Bruno Haible  <bruno@clisp.org>
12185
12186         mknod: Avoid error in C++ mode on OSF/1 with GCC.
12187         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
12188         _GL_CXXALIAS_SYS.
12189
12190 2010-12-19  Bruno Haible  <bruno@clisp.org>
12191
12192         stdbool: Relax test.
12193         * tests/test-stdbool.c (e): Don't require that casts from a variable's
12194         address to 'bool' work in static initializer, for compilers other than
12195         GCC.
12196
12197 2010-12-19  Bruno Haible  <bruno@clisp.org>
12198
12199         ftello: Add missing declaration on OSF/1 5.1.
12200         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
12201         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
12202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
12203         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
12204         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
12205
12206 2010-12-19  Bruno Haible  <bruno@clisp.org>
12207
12208         fseeko: Add missing declaration on OSF/1 5.1.
12209         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12210         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12212         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12213         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12214
12215 2010-12-19  Bruno Haible  <bruno@clisp.org>
12216
12217         fchdir: Add missing declaration on OSF/1 5.1.
12218         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12221         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12222         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12223
12224 2010-12-19  Bruno Haible  <bruno@clisp.org>
12225
12226         relocatable-prog-wrapper: Separate from relocatable-prog.
12227         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12228         uninstall-relocwrapper rule here.
12229         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12230         Reported by Ian Beckwith <ianb@erislabs.net>.
12231
12232 2010-12-19  Bruno Haible  <bruno@clisp.org>
12233
12234         unistr/u8-mbsnlen: Add missing dependency.
12235         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12236         Reported by Ian Beckwith <ianb@erislabs.net>.
12237
12238 2010-12-19  Bruno Haible  <bruno@clisp.org>
12239
12240         iconv: Make it possible again to use this module without 'iconv-h'.
12241         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12242         if it is not defined.
12243         Reported by Ian Beckwith <ianb@erislabs.net>.
12244
12245 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12246
12247         acl: port to Solaris 8 when copying from tmpfs to ufs
12248         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12249         error number.  Problem observed on Solaris 8 with latest
12250         coreutils, with "mv A B", where A is on a tmpfs file system and B
12251         is on a ufs file system.  This caused coreutils' mv/part-symlink
12252         test to fail.
12253
12254         tests: set fail=0 at start
12255         * tests/init.sh (setup_): Move fail=0 initialization here ...
12256         (mktempd_): ... from here, so that tests can rely on fail being
12257         set to 0 initially.  This fixes a problem in coreutils; see:
12258         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12259
12260 2010-12-18  Bruno Haible  <bruno@clisp.org>
12261
12262         memmem-simple: Stylistic changes.
12263         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12264         Fix preprocessor directive indentation.
12265
12266 2010-12-15  Pádraig Brady <P@draigBrady.com>
12267
12268         memmem, memmem-simple: reorganize and expand empty needle check
12269         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12270         functional checks to memmem-simple so that one has a fully functional
12271         memmem by using just this module.
12272         Restrict the performance only check to the memmem module.
12273         Also expand the empty needle check to ensure the correct
12274         pointer is returned, not just a non NULL pointer.
12275         * doc/glibc-functions/memmem.texi: Rearrange the portability
12276         documentation to correlate with the rearranged checks.
12277         Clarify exactly how the memmem and memmem-simple modules
12278         relate to each other.
12279
12280 2010-12-15  Pádraig Brady <P@draigBrady.com>
12281             Bruno Haible  <bruno@clisp.org>
12282
12283         Improve cross-compilation guesses for uClibc.
12284         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12285         that uClibc does not have the glibc bug.
12286         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12287         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12288
12289 2010-12-14  Eric Blake  <eblake@redhat.com>
12290
12291         configmake: provide fallbacks for oldest supported autotools
12292         * m4/configmake.m4: New file.
12293         * modules/configmake (Files): Ship it.
12294         (configure.ac): Use it to guarantee fallbacks.
12295
12296 2010-12-13  Pádraig Brady <P@draigBrady.com>
12297
12298         read-file: Improve handling of large files
12299         * lib/read-file.c (fread_file): Minimize realloc()s
12300         for regular files, and better manage sizes around SIZE_MAX.
12301
12302 2010-12-13  Eric Blake  <eblake@redhat.com>
12303
12304         cloexec, fcntl: relax license
12305         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12306         consent from all contributors.
12307         * modules/fcntl (License): Likewise.
12308
12309 2010-12-10  Bruno Haible  <bruno@clisp.org>
12310
12311         Tests for module 'pipe-posix'.
12312         * modules/pipe-posix-tests: New file.
12313         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12314
12315 2010-12-10  Bruno Haible  <bruno@clisp.org>
12316
12317         pipe-posix: Make it work in C++ mode.
12318         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12319         (pipe): Use common idiom, not a macro definition.
12320         * lib/pipe.c: New file.
12321         * m4/pipe.m4: New file.
12322         * modules/pipe-posix (Description): Enhance.
12323         (Files): Add lib/pipe.c, m4/pipe.m4.
12324         (configure.ac): Invoke gl_FUNC_PIPE.
12325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12326         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12327         * tests/test-unistd-c++.cc: Check the signature of pipe.
12328
12329 2010-12-10  Bruno Haible  <bruno@clisp.org>
12330
12331         Rename module 'pipe' to 'spawn-pipe'.
12332         * modules/spawn-pipe: New file, renamed from modules/pipe.
12333         (Files, configure.ac, Makefile.am): Update.
12334         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12335         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12336         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12337         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12338         "spawn-pipe.h" instead of "pipe.h".
12339         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12340         to gl_SPAWN_PIPE.
12341         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12342         (Files, Makefile.am): Update.
12343         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12344         Update.
12345         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12346         Include "spawn-pipe.h" instead of "pipe.h".
12347         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12348         * lib/javacomp.c: Likewise.
12349         * lib/javaversion.c: Likewise.
12350         * lib/pipe-filter-gi.c: Likewise.
12351         * lib/pipe-filter-ii.c: Likewise.
12352         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12353         * modules/javacomp (Depends-on): Likewise.
12354         * modules/javaversion (Depends-on): Likewise.
12355         * modules/pipe-filter-gi (Depends-on): Likewise.
12356         * modules/pipe-filter-ii (Depends-on): Likewise.
12357         * MODULES.html.sh (Executing programs): Update.
12358         * NEWS: Mention the change.
12359
12360 2010-12-10  Eric Blake  <eblake@redhat.com>
12361
12362         pipe-posix: new module
12363         * modules/pipe-posix: New file.
12364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12365         (gl_UNISTD_H): Check for declaration.
12366         * modules/unistd (Makefile.am): Substitute it.
12367         * lib/unistd.in.h (pipe): Provide it for mingw.
12368         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12369         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12370
12371 2010-12-07  Bruno Haible  <bruno@clisp.org>
12372
12373         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12374         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12375         u8_strcmp_gnu.
12376         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12377
12378 2010-12-06  Bruno Haible  <bruno@clisp.org>
12379
12380         Update internal documentation.
12381         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12382
12383 2010-12-04  Bruno Haible  <bruno@clisp.org>
12384
12385         Put more information about failed tests into the test return codes.
12386         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12387         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12388         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12389         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12390         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12391         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12392         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12393         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12394         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12396         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12397         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12398         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12399         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12400         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12401         returns a bit mask.
12402         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12403         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12404         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12405         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12406         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12407         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12408         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12410         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12411         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12412         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12413         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12414         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12415         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12416         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12417         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12418         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12419         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12420         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12421         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12422         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12423         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12424         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12425         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12426         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12427         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12428         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12429         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12430         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12431         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12432         gl_PRINTF_PRECISION): Likewise.
12433         * m4/regex.m4 (gl_REGEX): Likewise.
12434         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12435         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12436         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12437         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12438         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12440         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12441         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12442         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12443         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12444         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12445         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12446         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12447         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12448         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12449         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12450         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12451         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12453         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12454         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12455         enumerated value.
12456         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12457
12458 2010-12-04  Bruno Haible  <bruno@clisp.org>
12459
12460         Update for Solaris 11 2010-11.
12461         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12462         Express, released in November 2010.
12463
12464 2010-12-04  Bruno Haible  <bruno@clisp.org>
12465
12466         nproc: Relax license.
12467         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12468         and Paul Eggert.
12469         Requested by Ludovic Courtès <ludo@gnu.org>.
12470
12471 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12472
12473         utimecmp: fine-grained src to nearby coarse-grained dest
12474
12475         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12476         and the source is on a file system with higher-resolution time
12477         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12478         not work, and the time stamps are close together, the algorithm to
12479         determine the exact resolution from the read-back mtime was buggy:
12480         it had a "!=" where it should have had an "==".  This bug has been
12481         in the code ever since it was introduced to gnulib.
12482         Problem reported by Dan Jacobson in
12483         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12484
12485 2010-11-30  Bruno Haible  <bruno@clisp.org>
12486
12487         strerror_r-posix: Fix autoconf test.
12488         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12489
12490 2010-11-28  Bruno Haible  <bruno@clisp.org>
12491             Paul Eggert  <eggert@cs.ucla.edu>
12492
12493         Tests for module 'getdomainname'.
12494         * modules/getdomainname-tests: New file.
12495         * tests/test-getdomainname.c: New file, based on
12496         tests/test-gethostname.c.
12497
12498 2010-11-28  Bruno Haible  <bruno@clisp.org>
12499             Paul Eggert  <eggert@cs.ucla.edu>
12500
12501         getdomainname: Use the system function when possible.
12502         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12503         (getdomainname): Replace if needed. Provide the declaration if it is
12504         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12505         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12506         (getdomainname): When the system has getdomainname, call the system
12507         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12508         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12509         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12510         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12511         the function if its second argument is of type 'int' or if it is found
12512         in libnsl.
12513         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12514         <sys/systeminfo.h> and sysinfo().
12515         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12517         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12518         HAVE_GETDOMAINNAME.
12519         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12520         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12521         * doc/glibc-functions/getdomainname.texi: Document the problems with
12522         the getdomainname declaration.
12523
12524 2010-11-28  Bruno Haible  <bruno@clisp.org>
12525
12526         sys_socket: Ensure ss_family field on AIX.
12527         * lib/sys_socket.in.h (ss_family): New macro definition.
12528         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12529         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12530         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12531         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12532         * modules/sys_socket (Makefile.am): Substitute
12533         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12534         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12535
12536 2010-11-27  Bruno Haible  <bruno@clisp.org>
12537
12538         readline: Improve configure output.
12539         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12540         "checking for readline..." result understandable.
12541
12542 2010-11-27  Bruno Haible  <bruno@clisp.org>
12543
12544         *printf-posix: Detect a bug on Solaris 10/x86.
12545         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12546         for floating-point output.
12547         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12548         directive.
12549         * tests/test-snprintf-posix.h (test_function): Likewise.
12550         * tests/test-sprintf-posix.h (test_function): Likewise.
12551         * tests/test-vasprintf-posix.c (test_function): Likewise.
12552         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12553         * doc/posix-functions/printf.texi: Likewise.
12554         * doc/posix-functions/snprintf.texi: Likewise.
12555         * doc/posix-functions/sprintf.texi: Likewise.
12556         * doc/posix-functions/vfprintf.texi: Likewise.
12557         * doc/posix-functions/vprintf.texi: Likewise.
12558         * doc/posix-functions/vsnprintf.texi: Likewise.
12559         * doc/posix-functions/vsprintf.texi: Likewise.
12560         * doc/glibc-functions/obstack_printf.texi: Likewise.
12561         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12562
12563 2010-11-27  Bruno Haible  <bruno@clisp.org>
12564
12565         Fix link error when module libunistring-optional is in use.
12566         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12567         * modules/striconveha-tests (Makefile.am): Likewise.
12568
12569 2010-11-27  Bruno Haible  <bruno@clisp.org>
12570
12571         regex: Mention link dependencies.
12572         * modules/regex (Link): New section.
12573         * modules/rpmatch (Link): Likewise.
12574         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12575
12576 2010-11-27  Bruno Haible  <bruno@clisp.org>
12577
12578         ftoastr: Fix compilation error on Solaris.
12579         * lib/ftoastr.c: Include <config.h>.
12580
12581 2010-11-27  Bruno Haible  <bruno@clisp.org>
12582
12583         getloadavg: Update documentation.
12584         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12585
12586 2010-11-27  Bruno Haible  <bruno@clisp.org>
12587
12588         sys_socket: Fix test whether the functions are declared.
12589         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12590         not <sys/select.h>.
12591
12592 2010-11-27  Bruno Haible  <bruno@clisp.org>
12593
12594         getpass: Make sure to get system declaration on some platforms.
12595         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12596         gl_USE_SYSTEM_EXTENSIONS.
12597         * modules/getpass (Depends-on): Add extensions.
12598
12599 2010-11-26  Bruno Haible  <bruno@clisp.org>
12600
12601         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12602         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12603         'iconv' module is present.
12604         (ICONV_CONST): New macro.
12605         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12606         ICONV_CONST.
12607         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12608         set ICONV_CONST.
12609         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12610         here.
12611         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12612         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12613         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12614         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12615         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12616         present.
12617
12618 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12619
12620         ftoastr: comment fix
12621         * lib/ftoastr.c: "little" -> "little or no" in comment
12622
12623 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12624
12625         stdint: port to GCC 4.3 + OSX + Octave
12626         On this platform, stdint.h is buggy and defines int64_t to long
12627         long int.  The replacement defined it to long int, causing
12628         problems with C++ style name mangling.  Instead, trust the system
12629         definition if INT64_MAX is defined, and likewise for the unsigned
12630         variant.   Problem reported by Jarno Rajahalme in
12631         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12632         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12633         and don't mess with int64_t and INT64_MAX in this case.
12634         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12635
12636 2010-11-24  Bruno Haible  <bruno@clisp.org>
12637
12638         doc: Corrections regarding MacOS X 10.4 and 10.5.
12639         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12640         MacOS X.
12641         Reported by Simon Josefsson.
12642
12643 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12644
12645         Uninstall ".bin" files installed by relocwrapper.
12646         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12647         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12648         unless it is already there.
12649
12650 2010-11-21  Bruno Haible  <bruno@clisp.org>
12651
12652         Update for NetBSD 5.0.
12653         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12654         NetBSD; the test fails on NetBSD 5.0.
12655         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12656         about NetBSD.
12657
12658 2010-11-21  Bruno Haible  <bruno@clisp.org>
12659
12660         Update for HP-UX 11.23 and HP-UX 11.31.
12661         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12662         HP-UX.
12663
12664 2010-11-21  Bruno Haible  <bruno@clisp.org>
12665
12666         Update for MacOS X 10.5.
12667         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12668         MacOS X; the test fails on MacOS X 10.5.8.
12669         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12670         about MacOS X.
12671
12672 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12673
12674         bootstrap: add bootstrap_sync option.
12675         See discussion at
12676         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12677         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12678         * build-aux/bootstrap: Accept --bootstrap-sync to update
12679         bootstrap if it is not identical to the local gnulib's
12680         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12681         enable this by default.  Accept --no-bootstrap-sync to disable
12682         it.
12683
12684 2010-11-20  Bruno Haible  <bruno@clisp.org>
12685
12686         Ensure that <features.h> is included before __GLIBC__ is tested.
12687         * lib/printf-parse.h: Include <features.h>.
12688         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12689         Reported by Mike Frysinger <vapier@gentoo.org>.
12690
12691         Ensure that <features.h> is included before __GLIBC__ is tested.
12692         * lib/wchar.in.h: Include <features.h>.
12693         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12694         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12695         Reported by Mike Frysinger <vapier@gentoo.org>.
12696
12697         Ensure that <features.h> is included before __GLIBC__ is tested.
12698         * lib/arpa_inet.in.h: Include <features.h>.
12699         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12700         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12701         Reported by Mike Frysinger <vapier@gentoo.org>.
12702
12703         Ensure that <features.h> is included before __GLIBC__ is tested.
12704         * build-aux/link-warning.h: Include <features.h>.
12705         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12706         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12707         Reported by Mike Frysinger <vapier@gentoo.org>.
12708
12709         Ensure that <features.h> is included before __GLIBC__ is tested.
12710         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12711         Reported by Mike Frysinger <vapier@gentoo.org>.
12712
12713 2010-11-20  Bruno Haible  <bruno@clisp.org>
12714
12715         memmem: Fix autoconf test.
12716         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12717
12718 2010-11-20  Bruno Haible  <bruno@clisp.org>
12719
12720         Port to uClibc.
12721         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12722         * lib/fcntl.in.h: Likewise.
12723         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12724         * lib/mbrtowc.c (mbrtowc): Likewise.
12725         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12726         * lib/strerror_r.c: Likewise.
12727         * lib/unistr/u8-strnlen.c: Likewise.
12728         * lib/vasnprintf.c (decimal_point_char): Likewise.
12729         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12730         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12731         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12732         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12733         * tests/test-sigaction.c (handler, main): Likewise.
12734         * lib/freading.h: Treat uClibc like a non-glibc platform.
12735         * lib/freading.c: Likewise.
12736         * lib/gettext.h: Likewise.
12737         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12738         Likewise.
12739         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12740         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12741         * lib/propername.c (proper_name_utf8): Likewise.
12742         * lib/spawn.in.h: Likewise.
12743         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12744         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12745         mem_cd_iconveh_internal): Likewise.
12746         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12747         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12748         strstr, strcasestr): Likewise.
12749         * lib/unicodeio.c (unicode_to_mb): Likewise.
12750         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12751         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12752         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12753         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12754         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12755         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12756         * lib/unistr/u8-stpncpy.c: Likewise.
12757         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12758         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12759         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12760         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12761         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12762         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12763         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12764         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12765         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12766         Likewise.
12767         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12768         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12769         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12770         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12771         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12772         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12773         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12774         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12775         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12776         * tests/test-striconveha.c (main): Likewise.
12777         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12778         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12779         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
12780         * doc/posix-functions/getline.texi: Likewise.
12781         Reported by Mike Frysinger <vapier@gentoo.org>.
12782
12783 2010-11-20  Bruno Haible  <bruno@clisp.org>
12784
12785         nproc: Fix condition.
12786         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
12787         HAVE_PTHREAD_AFFINITY_NP.
12788
12789 2010-11-20  Bruno Haible  <bruno@clisp.org>
12790
12791         Fix a comment.
12792         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
12793
12794 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12795
12796         ftoastr: don't assume snprintf
12797         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
12798         Implement a subset of snprintf here, by using sprintf safely.
12799         * modules/ftoastr (Depends-on): Remove snprintf.
12800
12801 2010-11-19  Jim Meyering  <meyering@redhat.com>
12802
12803         test-rename.h: fix compilation failure
12804         * tests/test-rename.h (test_rename): Add omitted "}".
12805
12806 2010-11-17  Jim Meyering  <meyering@redhat.com>
12807
12808         maint.mk: add a URL discussing the no-@acronym policy
12809         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
12810
12811 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12812
12813         ftoastr: depend on snprintf, improve comments
12814         * lib/ftoastr.c: Also mention Loitsch's draft.
12815         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
12816         needed in the current implementation, but it might simplify
12817         speeding up the code later.
12818         * modules/ftoastr: Depend on snprintf; this improves portability.
12819         Suggested by Bruno Haible in the same email.
12820
12821         ftoastr: port to hosts lacking strtof and strtold
12822         Problem reported by Bruno Haible in
12823         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
12824         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
12825         environment and strtold (and presumably strtof) are not available.
12826         * modules/ftoastr (Files): Add m4/c-strtod.m4.
12827         (configure.ac): Require gl_C99_STRTOLD.
12828
12829 2010-11-18  Bruno Haible  <bruno@clisp.org>
12830
12831         c-strtold: Avoid link error on AIX 7.
12832         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
12833         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
12834         (gl_C_STRTOLD): Test whether strtold_l exists.
12835         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12836
12837 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12838
12839         intprops: new macro INT_BITS_STRLEN_BOUND
12840         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
12841         ftoastr.h.  This exposes an internal of intprops.h that was formerly
12842         not exposed.  Also, it uses a slightly tighter bound than before;
12843         though this makes no practical difference, we might as well be as
12844         tight as we easily can.
12845
12846         ftoastr: new module, for lossless conversion of floats to short strings
12847         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
12848         * modules/ftoastr: New files.
12849
12850 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12851
12852         bootstrap: port to Solaris sed
12853         * build-aux/bootstrap (get_version): Port to Solaris sed.
12854         See Ralf Wildenhues's note in
12855         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
12856
12857 2010-11-14  Jim Meyering  <meyering@redhat.com>
12858
12859         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
12860         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
12861         and move definition closer to sole use.
12862
12863 2010-11-13  Jim Meyering  <meyering@redhat.com>
12864
12865         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
12866         Now we require at least autoconf-2.59, which means the work-around
12867         is no longer needed.
12868         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
12869         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12870         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12871         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12872         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12873
12874 2010-11-13  Bruno Haible  <bruno@clisp.org>
12875
12876         rename, renameat: Avoid test failures at NFS mounted locations.
12877         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
12878         functions.
12879         (test_rename): Use assert_nonexistent.
12880         * tests/test-rename.c: Include <dirent.h>.
12881         * tests/test-renameat.c: Likewise.
12882         Reported by Gary V. Vaughan <gary@gnu.org>.
12883
12884         rename, renameat: Document Linux bug with NFS
12885         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
12886         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
12887         * doc/posix-functions/renameat.texi: Likewise.
12888         Suggested by Eric Blake.
12889
12890 2010-11-13  Bruno Haible  <bruno@clisp.org>
12891
12892         rename test: Add comments.
12893         * tests/test-rename.h (test_rename): Add structure and comments.
12894
12895 2010-11-13  Eric Blake  <eblake@redhat.com>
12896
12897         maintainer-makefile: cover a few more files
12898         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
12899         scripts generated within C files, for libvirt.
12900
12901 2010-11-13  Bruno Haible  <bruno@clisp.org>
12902
12903         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
12904         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
12905         character, return the number of bytes that belong together, not always
12906         1.
12907         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
12908         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
12909         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
12910         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
12911         number of bytes of an invalid character.
12912         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
12913         (main): Invoke it.
12914         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
12915         results.
12916         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
12917         malformed byte sequences.
12918         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
12919         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
12920         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
12921         Reported by Ben Pfaff and Paolo Bonzini.
12922
12923 2010-11-13  Bruno Haible  <bruno@clisp.org>
12924
12925         openat: Work around glibc bug with fchownat() and empty file names.
12926         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
12927         (gl_FUNC_FCHOWNAT): Invoke it.
12928         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
12929         * doc/posix-functions/fchownat.texi: Document the glibc bug.
12930         Reported by Gary V. Vaughan <gary@gnu.org>.
12931
12932 2010-11-13  Bruno Haible  <bruno@clisp.org>
12933
12934         openat: Ensure autoconf macro ordering.
12935         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
12936         gl_USE_SYSTEM_EXTENSIONS.
12937         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
12938
12939 2010-11-13  Bruno Haible  <bruno@clisp.org>
12940
12941         Update comments.
12942         * lib/unistr/u8-check.c: Update file name in comments.
12943         * lib/unistr/u8-mblen.c: Likewise.
12944         * lib/unistr/u8-prev.c: Likewise.
12945         * lib/unistr/u8-strmblen.c: Likewise.
12946         * lib/unistr/u8-strmbtouc.c: Likewise.
12947
12948 2010-11-13  Jim Meyering  <meyering@redhat.com>
12949
12950         tests: avoid test failure on Solaris 10 due to lack of PATH export
12951         * tests/test-update-copyright.sh: Don't forget to export PATH.
12952
12953         init.sh: ensure that IFS is defined, just in case...
12954         * tests/init.sh (setup_): Ensure that IFS is defined,
12955         so that saving and restoring it works as expected.  This
12956         appears to be useful at least for an old version of dash
12957         from a long time ago (RH 6).  See here for details:
12958         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
12959
12960         maint.mk: tighten "test a == b" check
12961         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
12962         test to files that contain something like #!/bin/sh.
12963         Without this, coreutils would get two false positives in
12964         the comments of C source files.
12965
12966 2010-11-12  Eric Blake  <eblake@redhat.com>
12967
12968         bootstrap: fix typo in previous attempt
12969         * build-aux/bootstrap (buildreq): Correct the grouping.
12970         Reported by Paul Eggert.
12971
12972         maintainer-makefile: prohibit test x == x
12973         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
12974         Based on a report by Matthias Bolte.
12975
12976         bootstrap: allow FreeBSD gzip
12977         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
12978         which has no '.' and goes to stderr.
12979         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
12980         Reported by Matthias Bolte.
12981
12982         maintainer-makefile: check for i18n setup
12983         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
12984         will likely work.
12985
12986 2010-11-12  Bruno Haible  <bruno@clisp.org>
12987
12988         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
12989         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
12990         * lib/nanosleep.c (nanosleep): Likewise.
12991
12992 2010-11-11  Bruno Haible  <bruno@clisp.org>
12993
12994         fcntl-h: Fix for use of C++ on glibc systems.
12995         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12996         also on glibc systems in C++ mode.
12997         Reported by Gary V. Vaughan <gary@gnu.org>.
12998
12999 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13000
13001         mknod: avoid false failure with dash
13002         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
13003
13004 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13005
13006         unlink: Fix "is it should" typo in diagnostic.
13007         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
13008         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
13009
13010 2010-11-11  Bruno Haible  <bruno@clisp.org>
13011
13012         Tests for module 'strerror_r-posix'.
13013         * modules/strerror_r-posix-tests: New file.
13014         * tests/test-strerror_r.c: New file.
13015         * tests/test-string-c++.cc: Check the signature of strerror_r.
13016
13017         New module 'strerror_r-posix'.
13018         * lib/string.in.h (strerror_r): New declaration.
13019         * lib/strerror_r.c: New file.
13020         * m4/strerror_r.m4: New file.
13021         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
13022         of strerror_r.
13023         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13024         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13025         * modules/strerror_r-posix: New file.
13026         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13027         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13028         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13029         portability problems.
13030
13031 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
13032
13033         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
13034         line is also considered for output. Quoted function name in shell
13035         command, so temporary files for functions like MyClass::operator()
13036         are removed correctly without errors.
13037
13038 2010-11-09  Bruno Haible  <bruno@clisp.org>
13039
13040         * doc/posix-functions/strerror.texi: List more failing platforms.
13041
13042         * doc/posix-functions/strerror.texi: Add a comment.
13043
13044 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13045
13046         fdopendir: fix bug on MacOS X when low on file descriptors
13047
13048         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
13049         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
13050         All callers changed.
13051         (fdopendir): Invoke save_cwd at the top level, not after using
13052         multiple dup() calls to use up file descriptors.  Then retry
13053         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
13054         less than the maximum number of open file descriptors, because
13055         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
13056         on Mac OS X 10.6.4 for tar 1.24
13057         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
13058         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
13059         and for tar 1.25
13060         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
13061
13062 2010-11-07  Bruno Haible  <bruno@clisp.org>
13063
13064         vasnprintf: Support I flag on glibc systems.
13065         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
13066         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
13067         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
13068         snprintf function.
13069         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
13070         glibc systems.
13071         * tests/test-vasnprintf-posix3.c: New file.
13072         * modules/vasnprintf-posix-tests (Files): Add it.
13073         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13074
13075 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13076
13077         [html] Fix copy/paste bug: Use unique name for compiler warnings.
13078         * MODULES.html.sh: For compiler warnings, use name
13079         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
13080
13081 2010-11-05  Eric Blake  <eblake@redhat.com>
13082
13083         ceil, floor: avoid spurious failure with icc
13084         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
13085         [denormals-as-zero] when optimizing without -mieee-fp option.
13086         * tests/test-floorf2.c (floorf_reference): Likewise.
13087         * tests/test-ceilf1.c (dummy): New function.
13088         (main): Use it to outsmart icc's optimization.
13089         * tests/test-floorf1.c (dummy, main): Likewise.
13090
13091         tests: require working signbit
13092         * modules/ceilf-tests (Depends-on): Add signbit.
13093         * modules/ceill-tests (Depends-on): Likewise.
13094         * modules/floorf-tests (Depends-on): Likewise.
13095         * modules/floorl-tests (Depends-on): Likewise.
13096         * modules/round-tests (Depends-on): Likewise.
13097         * modules/roundf-tests (Depends-on): Likewise.
13098         * modules/roundl-tests (Depends-on): Likewise.
13099         * modules/trunc-tests (Depends-on): Likewise.
13100         * modules/truncf-tests (Depends-on): Likewise.
13101         * modules/truncl-tests (Depends-on): Likewise.
13102
13103         strtod: work around icc bug
13104         * lib/strtod.c (minus_zero): Define to working value.
13105         (strtod): Use it to avoid icc bug.
13106
13107         copysign: enhance tests
13108         * modules/copysign-tests (Files): Add minus-zero.h.
13109         * tests/test-copysign.c (main): Also test zeros.
13110
13111 2010-11-04  Eric Blake  <eblake@redhat.com>
13112
13113         ceil, floor, round, trunc: enhance tests of -0
13114         * tests/test-ceilf1.c (main): Ensure correct sign of result.
13115         * tests/test-ceill.c (main): Likewise.
13116         * tests/test-floorf1.c (main): Likewise.
13117         * tests/test-floorl.c (main): Likewise.
13118         * tests/test-round1.c (main): Likewise.
13119         * tests/test-roundf1.c (main): Likewise.
13120         * tests/test-roundl.c (main): Likewise.
13121         * tests/test-trunc1.c (main): Likewise.
13122         * tests/test-truncf1.c (main): Likewise.
13123         * tests/test-truncl.c (main): Likewise.
13124
13125 2010-11-04  Eric Blake  <eblake@redhat.com>
13126
13127         frexp, tests: work around ICC bug with -zero
13128         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
13129         works with more compilers.
13130         * tests/minus-zero.h: New file.
13131         * modules/ceilf-tests (Files): Include it.
13132         * modules/ceill-tests (Files): Likewise.
13133         * modules/floorf-tests (Files): Likewise.
13134         * modules/floorl-tests (Files): Likewise.
13135         * modules/frexp-nolibm-tests (Files): Likewise.
13136         * modules/frexp-tests (Files): Likewise.
13137         * modules/frexpl-nolibm-tests (Files): Likewise.
13138         * modules/frexpl-tests (Files): Likewise.
13139         * modules/isnan-tests (Files): Likewise.
13140         * modules/isnand-nolibm-tests (Files): Likewise.
13141         * modules/isnand-tests (Files): Likewise.
13142         * modules/isnanf-nolibm-tests (Files): Likewise.
13143         * modules/isnanf-tests (Files): Likewise.
13144         * modules/isnanl-nolibm-tests (Files): Likewise.
13145         * modules/isnanl-tests (Files): Likewise.
13146         * modules/round-tests (Files): Likewise.
13147         * modules/roundf-tests (Files): Likewise.
13148         * modules/roundl-tests (Files): Likewise.
13149         * modules/ldexpl-tests (Files): Likewise.
13150         * modules/signbit-tests (Files): Likewise.
13151         * modules/snprintf-posix-tests (Files): Likewise.
13152         * modules/sprintf-posix-tests (Files): Likewise.
13153         * modules/strtod-tests (Files): Likewise.
13154         * modules/trunc-tests (Files): Likewise.
13155         * modules/truncf-tests (Files): Likewise.
13156         * modules/truncl-tests (Files): Likewise.
13157         * modules/vsnprintf-posix-tests (Files): Likewise.
13158         * modules/vsprintf-posix-tests (Files): Likewise.
13159         * modules/vasnprintf-posix-tests (Files): Likewise.
13160         * modules/vasprintf-posix-tests (Files): Likewise.
13161         * tests/test-ceilf1.c (main): Use it.
13162         * tests/test-ceill.c (main): Likewise.
13163         * tests/test-floorf1.c (main): Likewise.
13164         * tests/test-floorl.c (main): Likewise.
13165         * tests/test-frexp.c (main): Likewise.
13166         * tests/test-frexpl.c (main): Likewise.
13167         * tests/test-isnan.c (main): Likewise.
13168         * tests/test-isnand.h (main): Likewise.
13169         * tests/test-isnanf.h (main): Likewise.
13170         * tests/test-isnanl.h (main): Likewise.
13171         * tests/test-ldexpl.c (main): Likewise.
13172         * tests/test-round.c (main): Likewise.
13173         * tests/test-roundf.c (main): Likewise.
13174         * tests/test-roundl.c (main): Likewise.
13175         * tests/test-signbit.c (test_signbitf, test_signbitd)
13176         (test_signbitl): Likewise.
13177         * tests/test-snprintf-posix.h (test_function): Likewise.
13178         * tests/test-sprintf-posix.h (test_function): Likewise.
13179         * tests/test-strtod.c (main): Likewise.
13180         * tests/test-trunc1.c (main): Likewise.
13181         * tests/test-truncf1.c (main): Likewise.
13182         * tests/test-truncl.c (main): Likewise.
13183
13184         isnanl: work around icc bug
13185         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
13186
13187 2010-11-03  Eric Blake  <eblake@redhat.com>
13188
13189         tests: fix compiler warnings
13190         * tests/test-getopt.h (test_getopt): Fix condition.
13191         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13192         * tests/test-pipe2.c (main): Likewise.
13193         * tests/test-quotearg-simple.c (main): Avoid icc warning.
13194
13195         utimens: fix broken m4 test
13196         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
13197
13198 2010-10-28  Bruno Haible  <bruno@clisp.org>
13199
13200         posix_spawn*, getdtablesize: Relax license.
13201         * modules/posix_spawn (License): Change to LGPLv2+.
13202         * modules/posix_spawnp (License): Likewise.
13203         * modules/posix_spawn-internal (License): Likewise.
13204         * modules/posix_spawnattr_init (License): Likewise.
13205         * modules/posix_spawnattr_getflags (License): Likewise.
13206         * modules/posix_spawnattr_setflags (License): Likewise.
13207         * modules/posix_spawnattr_getpgroup (License): Likewise.
13208         * modules/posix_spawnattr_setpgroup (License): Likewise.
13209         * modules/posix_spawnattr_getschedparam (License): Likewise.
13210         * modules/posix_spawnattr_setschedparam (License): Likewise.
13211         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13212         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13213         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13214         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13215         * modules/posix_spawnattr_getsigmask (License): Likewise.
13216         * modules/posix_spawnattr_setsigmask (License): Likewise.
13217         * modules/posix_spawnattr_destroy (License): Likewise.
13218         * modules/posix_spawn_file_actions_init (License): Likewise.
13219         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13220         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13221         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13222         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13223         * modules/getdtablesize (License): Likewise.
13224         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13225
13226 2010-10-26  Bruno Haible  <bruno@clisp.org>
13227
13228         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13229         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13230         Cygwin and mingw.
13231         Suggested by Eric Blake.
13232
13233 2010-10-26  Bruno Haible  <bruno@clisp.org>
13234
13235         stdio: Work around compilation error due to renameat() on Solaris 10.
13236         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13237         * lib/renameat.c: Don't include <unistd.h> here.
13238         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13239         Reported by Paul Eggert and Eric Blake.
13240
13241 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13242
13243         renameat: port to Solaris 10, which declares renameat in unistd.h
13244
13245         * lib/renameat.c: Include unistd.h before stdio.h, because
13246         Solaris 10 declares renameat in unistd.h.  Problem encountered
13247         when building GNU tar 1.24 on Solaris 10.
13248
13249 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13250
13251         fdopendir: fix C89 compilation
13252         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13253         compilers.
13254
13255 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13256
13257         inttostr: simplify by removing unnecessary redundancy
13258         * lib/anytostr.c: Don't include verify.h.
13259         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13260         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13261         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13262         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13263         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13264         Likewise.
13265         * modules/inttostr (Depends-on): Remove 'verify'.
13266
13267 2010-10-23  Bruno Haible  <bruno@clisp.org>
13268
13269         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13270         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13271         Reported by Eric Blake.
13272
13273 2010-10-23  Bruno Haible  <bruno@clisp.org>
13274
13275         Tests: Fix LOCALE_JA on MirBSD 10.
13276         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13277         to an UTF-8 locale.
13278         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13279         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13280         Reported by Eric Blake.
13281
13282 2010-10-21  Bruno Haible  <bruno@clisp.org>
13283
13284         nl_langinfo test: Avoid test failure on NetBSD 5.
13285         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13286         Reported by Eric Blake.
13287
13288 2010-10-21  Eric Blake  <eblake@redhat.com>
13289
13290         c-stack: work around libsigsegv 2.8 bug
13291         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13292         overflow on at least PowerPC64.
13293
13294 2010-10-17  Bruno Haible  <bruno@clisp.org>
13295
13296         userspec: Drop redundant file.
13297         * modules/userspec (Files): Remove lib/inttostr.h.
13298
13299 2010-10-17  Bruno Haible  <bruno@clisp.org>
13300
13301         nl_langinfo tests: Silence some warnings.
13302         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13303         Reported by Jim Meyering.
13304
13305 2010-10-17  Bruno Haible  <bruno@clisp.org>
13306
13307         Make use of GCC's attribute __alloc_size__.
13308         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13309         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13310         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13311         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13312         __alloc_size__.
13313         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13314         Suggested by Jim Meyering.
13315
13316 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13317
13318         bootstrap: anchor .gitignore entries.
13319         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13320         with...
13321         (insert_vc_ignore): ... this new function, which prepends `/' to
13322         all .gitignore entries before passing them to
13323         insert_sorted_if_absent.
13324
13325 2010-10-16  Bruno Haible  <bruno@clisp.org>
13326
13327         nextafter: Fix configure check.
13328         * modules/nextafter (configure.ac): Correct expected prototype.
13329
13330 2010-10-16  Bruno Haible  <bruno@clisp.org>
13331
13332         termios: Update documentation.
13333         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13334
13335 2010-10-16  Bruno Haible  <bruno@clisp.org>
13336
13337         tests: Make them compile with TinyCC.
13338         * tests/test-strstr.c (main): Remove parentheses around array
13339         initializer.
13340
13341 2010-10-15  Eric Blake  <eblake@redhat.com>
13342
13343         ignore-value: make header idempotent
13344         * lib/ignore-value.h: Add double-inclusion guards.
13345         Reported by Stefan Berger.
13346
13347 2010-10-15  Jim Meyering  <meyering@redhat.com>
13348
13349         GNUmakefile: handle "stable" target, not "major"
13350         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13351         lists in maint.mk and announce-gen.  Without this, "make stable"
13352         would fail to ensure that $(VERSION) is up to date.
13353
13354 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13355
13356         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13357         & co.
13358
13359 2010-10-14  Bruno Haible  <bruno@clisp.org>
13360
13361         vasnprintf: Don't set errno to 0.
13362         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13363         block that sets it to 0.
13364         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13365
13366 2010-10-14  Bruno Haible  <bruno@clisp.org>
13367
13368         socketlib: Fix.
13369         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13370         gl_PREREQ_SYS_H_WINSOCK2.
13371         Reported by Ian Beckwith <ianb@erislabs.net>.
13372
13373 2010-10-13  Jim Meyering  <meyering@redhat.com>
13374
13375         test-select-stdin.c: avoid warn_unused_result warnings
13376         * tests/test-select-stdin.c: Include "macros.h".
13377         ASSERT that read and fflush succeed.
13378
13379 2010-10-13  Jim Meyering  <meyering@redhat.com>
13380
13381         git-version-gen: do require git-VC'd files in cwd
13382         * build-aux/git-version-gen: Reject a git version string
13383         if there are no commits associated with the current directory.
13384         This avoids an unlikely false-positive (unrelated dir whose parent
13385         repository also contains a tag matching v*), as pointed out
13386         by Giuseppe Scrivano in
13387         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13388
13389 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13390
13391         argv-iter: omit nonconforming declaration
13392         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13393         enum arg_iter_err declaration, which doesn't conform to C99.
13394         Solaris 10 cc warns about this.
13395
13396 2010-10-13  Eric Blake  <eblake@redhat.com>
13397
13398         termios: fix compilation on mingw
13399         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13400         (gl_TERMIOS_H): Adjust it on mingw.
13401         * modules/termios (Makefile.am): Substitute new key.
13402         * lib/termios.in.h (includes): Make include_next conditional.
13403         * doc/posix-headers/termios.texi (termios.h): Update
13404         documentation.
13405         Reported by Daniel P. Berrange.
13406
13407 2010-10-13  Jim Meyering  <meyering@redhat.com>
13408
13409         git-version-gen: don't require that .git/ be in the current dir
13410         * build-aux/git-version-gen: Adjust this script so that it works
13411         when run from any working directory beneath the top-level .git/-
13412         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13413         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13414
13415         test-select: avoid warn_unused_result warnings
13416         * tests/test-select.c: Include "macros.h".
13417         ASSERT that each call to read, write, and pipe succeeds.
13418         While not technically required, also check each "close".
13419         * modules/select-tests (Files): Add tests/macros.h.
13420
13421         test-symlinkat: remove declaration of unused local
13422         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13423
13424         test-inttostr: avoid shadowing warnings
13425         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13426         and use malloc rather than the stack for the same reason as
13427         mentioned in the comment justifying the other allocation.
13428
13429 2010-10-11  Bruno Haible  <bruno@clisp.org>
13430
13431         stdlib: Allow multiple gnulib generated replacements to coexist.
13432         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13433         Reported by Sam Steingold <sds@gnu.org>.
13434
13435 2010-10-11  Jim Meyering  <meyering@redhat.com>
13436
13437         fix a documentation typo
13438         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13439
13440 2010-10-11  Eric Blake  <eblake@redhat.com>
13441
13442         futimens: work around Solaris 11 bug
13443         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13444         * tests/test-futimens.h (test_futimens): Enhance, rather than
13445         weaken test.
13446         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13447
13448 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13449
13450         Indentation.
13451         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13452         higher-level operators more to the left.
13453
13454 2010-10-11  Jim Meyering  <meyering@redhat.com>
13455
13456         test-futimens: avoid unwarranted test failure on Solaris 5.11
13457         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13458         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13459         because it tries to dereference the NULL name argument.
13460
13461 2010-10-11  Bruno Haible  <bruno@clisp.org>
13462
13463         Indentation.
13464         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13465         indentation.
13466
13467 2010-10-11  Jim Meyering  <meyering@redhat.com>
13468
13469         spawn.in.h: make indentation consistent with parentheses
13470         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13471         Make indentation consistent with parentheses.
13472
13473 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13474
13475         Fix mismatched parens in previous commit
13476         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13477         parens.
13478
13479 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13480
13481         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13482
13483         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13484         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13485         * lib/malloca.c: Include "verify.h".
13486         (verify1): Remove, replacing with a verify call.
13487         * lib/relocwrapper.c (verify1): Likewise.
13488         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13489         Likewise.
13490         * modules/malloca (Depends-on): Add 'verify'.
13491         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13492         * modules/vasnprintf (Depends-on): Add 'verify'.
13493         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13494         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13495         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13496         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13497         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13498         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13499         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13500
13501         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13502
13503         Formerly the style was sometimes 2*X - 1, because the C standard
13504         was wrongly thought to disallow ?: in integral constant expressions.
13505         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13506         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13507         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13508         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13509         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13510         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13511         verify that time_t cannot be floating.
13512
13513 2010-10-08  Eric Blake  <eblake@redhat.com>
13514
13515         time: enforce recent POSIX ruling that time_t is integral
13516         * lib/time.in.h (__time_t_must_be_integral): Detect any
13517         problematic systems, allowing the rest of gnulib to assume POSIX.
13518
13519 2010-10-08  Jim Meyering  <meyering@redhat.com>
13520
13521         fdopendir: fix a bug on systems lacking openat and /proc support
13522         OpenBSD 4.7 is one such system.  The most noticeable effect was
13523         failure of any application making nontrivial use of fts: rm, du,
13524         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13525           ./rm: traversal failed: `a': Bad file descriptor
13526         Debugging that, you see that even though FD 6 was closed just
13527         prior to the opendir call in fd_clone_opendir, its resulting
13528         dir->dd_fd was 8, rather than the expected value of 6:
13529
13530         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13531         93                close (fd);
13532         (gdb) n
13533         94                dir = fd_clone_opendir (dupfd);
13534         (gdb) n
13535         95                saved_errno = errno;
13536         (gdb) p dir->dd_fd
13537         $11 = 8
13538
13539         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13540         The problem is that on OpenBSD, fd_clone_opendir has to resort
13541         to using the old-style save/restore CWD mechanism, due to its
13542         lack of openat/proc support, and *that* would steal the FD (6)
13543         that opendir was supposed to use.
13544
13545         The fix is to squirrel away the desired FD so that save_cwd uses a
13546         different one, and then free the dest FD right before calling opendir.
13547         That guarantees opendir will use the required file descriptor.
13548
13549         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13550
13551 2010-10-08  Bruno Haible  <bruno@clisp.org>
13552
13553         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13554         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13555
13556 2010-10-08  Bruno Haible  <bruno@clisp.org>
13557
13558         nanosleep: Make replacement POSIX compliant.
13559         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13560         is out of range.
13561         Reported by Jim Meyering.
13562
13563 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13564
13565         bootstrap: add hook for altering gnulib.mk, for Bison
13566         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13567         the Bison bootstrapping process can rewrite file names and variables
13568         in this file before later parts of 'bootstrap' use the file.
13569         Bison wants to include lib/gnulib.mk from the top-level makefile,
13570         so it needs the file names in this file to be relative to the top
13571         level, not relative to lib; plus it needs variable names to be
13572         rewritten.
13573         (slurp): Use the new function.
13574
13575         bootstrap: reformat for readability
13576         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13577
13578 2010-10-08  Eric Blake  <eblake@redhat.com>
13579
13580         docs: update cygwin progress
13581         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13582         1.7.7.
13583         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13584         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13585         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13586         * doc/posix-functions/carg.texi (carg): Likewise.
13587         * doc/posix-functions/cargf.texi (cargf): Likewise.
13588         * doc/posix-functions/casin.texi (casin): Likewise.
13589         * doc/posix-functions/casinf.texi (casinf): Likewise.
13590         * doc/posix-functions/casinh.texi (casinh): Likewise.
13591         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13592         * doc/posix-functions/catan.texi (catan): Likewise.
13593         * doc/posix-functions/catanf.texi (catanf): Likewise.
13594         * doc/posix-functions/catanh.texi (catanh): Likewise.
13595         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13596         * doc/posix-functions/ccos.texi (ccos): Likewise.
13597         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13598         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13599         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13600         * doc/posix-functions/cexp.texi (cexp): Likewise.
13601         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13602         * doc/posix-functions/cimag.texi (cimag): Likewise.
13603         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13604         * doc/posix-functions/clog.texi (clog): Likewise.
13605         * doc/posix-functions/clogf.texi (clogf): Likewise.
13606         * doc/posix-functions/conj.texi (conj): Likewise.
13607         * doc/posix-functions/conjf.texi (conjf): Likewise.
13608         * doc/posix-functions/cpow.texi (cpow): Likewise.
13609         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13610         * doc/posix-functions/cproj.texi (cproj): Likewise.
13611         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13612         * doc/posix-functions/creal.texi (creal): Likewise.
13613         * doc/posix-functions/crealf.texi (crealf): Likewise.
13614         * doc/posix-functions/csin.texi (csin): Likewise.
13615         * doc/posix-functions/csinf.texi (csinf): Likewise.
13616         * doc/posix-functions/csinh.texi (csinh): Likewise.
13617         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13618         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13619         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13620         * doc/posix-functions/ctan.texi (ctan): Likewise.
13621         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13622         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13623         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13624         * doc/posix-headers/complex.texi (complex.h): Likewise.
13625
13626 2010-10-07  Jim Meyering  <meyering@redhat.com>
13627
13628         parse-datetime: avoid compilation failure on OpenBSD 4.7
13629         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13630         This works around a compilation failure on OpenBSD 4.7:
13631         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13632
13633 2010-10-07  Eric Blake  <eblake@redhat.com>
13634
13635         docs: update cygwin progress
13636         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13637         1.7.6.
13638         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13639         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13640         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13641         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13642         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13643         Likewise.
13644         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13645         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13646         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13647         Likewise.
13648         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13649         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13650         Likewise.
13651         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13652         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13653         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13654         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13655         Likewise.
13656         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13657         Likewise.
13658         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13659
13660         docs: update parse-datetime history
13661         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13662         documentation of this function's history and alternatives.
13663
13664         cygwin: use more robust version check
13665         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13666         exclude an eventual cygwin 1.9.1.
13667         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13668         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13669         (gl_FUNC_STRCASESTR): Likewise.
13670         Reported by Bruno Haible.
13671
13672 2010-10-06  Bruno Haible  <bruno@clisp.org>
13673
13674         string, sys_select: Avoid #including large headers unless necessary.
13675         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13676         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13677         OSF/1, BeOS, Haiku.
13678         Reported by Jim Meyering.
13679
13680 2010-10-05  Eric Blake  <eblake@redhat.com>
13681
13682         memmem, strstr, strcasestr: fix bug with long periodic needle
13683         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13684         periodic needle having false positive.
13685         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13686         and cygwin 1.7.7.
13687         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13688         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13689         (gl_FUNC_STRCASESTR): Likewise.
13690         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13691         * tests/test-memmem.c (main): Expose the bug.
13692         * tests/test-strcasestr.c (main): Likewise.
13693         * tests/test-strstr.c (main): Likewise.
13694         * tests/test-c-strcasestr.c (main): Likewise.
13695         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13696         * doc/posix-functions/strstr.texi (strstr): Likewise.
13697         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13698         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13699
13700 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13701
13702         parse-datetime: do some more renaming
13703         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13704         parse_datetime, not get_date.  Mention the renaming.
13705         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13706         in comments.
13707         * m4/bison.m4: Likewise.
13708
13709 2010-10-05  Eric Blake  <eblake@redhat.com>
13710
13711         parse-datetime: better name than get_date
13712         * NEWS: Reword the deprecation notice.
13713         * modules/get_date: Rename to modules/parse-datetime.
13714         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13715         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13716         * lib/get_date.y: Rename to lib/parse-datetime.y.
13717         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13718         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13719         * doc/getdate.texi: Provide fallback wrapper.
13720         * lib/getdate.h: Move guts, and wrap...
13721         * lib/parse-datetime.h: ...new file.
13722         * lib/parse-datetime.y (get_date): Rename...
13723         (parse_datetime): ...to this.
13724         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13725         (gl_PARSE_DATETIME): ...to this.
13726         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13727         documentation.
13728         * modules/getdate (Files): Provide fallback docs and header.
13729         (Notice, Depends-on): Update references.
13730         * tests/test-parse-datetime.c: Likewise.
13731         * DEPENDENCIES: Likewise.
13732         * MODULES.html.sh (Date and time <time.h>): Likewise.
13733         * doc/parse-datetime.texi (Date input formats)
13734         (Authors of parse_datetime): Likewise.
13735         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13736         (Include): Likewise.
13737         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13738         * gnulib-tool: Likewise.
13739         * m4/bison.m4 (gl_BISON): Likewise.
13740         Suggested by Bruno Haible.
13741
13742 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13743
13744         more ports to Solaris tr, which needs [] around ranges
13745         * gnulib-tool: Solaris tr needs [] around ranges.
13746         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13747         * tests/test-pipe-filter-gi1.c (main): Likewise.
13748         * tests/test-pipe-filter-ii1.c (main): Likewise.
13749
13750 2010-10-05  Eric Blake  <eblake@redhat.com>
13751
13752         bootstrap: fix Solaris regression
13753         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13754         around ranges.
13755         Reported by Pádraig Brady.
13756
13757         bootstrap: work with pkg-config
13758         * build-aux/bootstrap (check_versions): Also transliterate - in
13759         prerequisite name.
13760         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13761         prerequisites that were already found, to avoid confusion.
13762         Reported by Justin Clift.
13763
13764         faccessat: remove unused wrappers
13765         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13766         presence of these wrappers dragged in -lgen on Solaris.
13767         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13768
13769 2010-10-05  Jim Meyering  <meyering@redhat.com>
13770
13771         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13772         * Makefile (sc_pragma_columns): New syntax-check rule.
13773
13774 2010-10-04  Bruno Haible  <bruno@clisp.org>
13775
13776         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13777         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13778         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13779         Reported by Bruce Korb and Eric Blake.
13780
13781 2010-10-04  Bruno Haible  <bruno@clisp.org>
13782
13783         threadlib: Make option --with-libpth-prefix work.
13784         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
13785         use $LIBPTH, not just -lpth.
13786
13787 2010-10-04  Bruno Haible  <bruno@clisp.org>
13788
13789         Avoid line length limitation from HP NonStop system header files.
13790         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
13791         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
13792         * lib/ctype.in.h: Likewise.
13793         * lib/dirent.in.h: Likewise.
13794         * lib/errno.in.h: Likewise.
13795         * lib/fcntl.in.h: Likewise.
13796         * lib/float.in.h: Likewise.
13797         * lib/getopt.in.h: Likewise.
13798         * lib/iconv.in.h: Likewise.
13799         * lib/inttypes.in.h: Likewise.
13800         * lib/langinfo.in.h: Likewise.
13801         * lib/locale.in.h: Likewise.
13802         * lib/math.in.h: Likewise.
13803         * lib/netdb.in.h: Likewise.
13804         * lib/netinet_in.in.h: Likewise.
13805         * lib/poll.in.h: Likewise.
13806         * lib/pthread.in.h: Likewise.
13807         * lib/pty.in.h: Likewise.
13808         * lib/sched.in.h: Likewise.
13809         * lib/se-selinux.in.h: Likewise.
13810         * lib/search.in.h: Likewise.
13811         * lib/signal.in.h: Likewise.
13812         * lib/spawn.in.h: Likewise.
13813         * lib/stdarg.in.h: Likewise.
13814         * lib/stddef.in.h: Likewise.
13815         * lib/stdint.in.h: Likewise.
13816         * lib/stdio.in.h: Likewise.
13817         * lib/stdlib.in.h: Likewise.
13818         * lib/string.in.h: Likewise.
13819         * lib/strings.in.h: Likewise.
13820         * lib/sys_file.in.h: Likewise.
13821         * lib/sys_ioctl.in.h: Likewise.
13822         * lib/sys_select.in.h: Likewise.
13823         * lib/sys_socket.in.h: Likewise.
13824         * lib/sys_stat.in.h: Likewise.
13825         * lib/sys_time.in.h: Likewise.
13826         * lib/sys_times.in.h: Likewise.
13827         * lib/sys_utsname.in.h: Likewise.
13828         * lib/sys_wait.in.h: Likewise.
13829         * lib/sysexits.in.h: Likewise.
13830         * lib/termios.in.h: Likewise.
13831         * lib/time.in.h: Likewise.
13832         * lib/unistd.in.h: Likewise.
13833         * lib/wchar.in.h: Likewise.
13834         * lib/wctype.in.h: Likewise.
13835         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
13836         * modules/ctype (Makefile.am): Likewise.
13837         * modules/dirent (Makefile.am): Likewise.
13838         * modules/errno (Makefile.am): Likewise.
13839         * modules/fcntl-h (Makefile.am): Likewise.
13840         * modules/float (Makefile.am): Likewise.
13841         * modules/getopt-posix (Makefile.am): Likewise.
13842         * modules/iconv-h (Makefile.am): Likewise.
13843         * modules/inttypes (Makefile.am): Likewise.
13844         * modules/langinfo (Makefile.am): Likewise.
13845         * modules/locale (Makefile.am): Likewise.
13846         * modules/math (Makefile.am): Likewise.
13847         * modules/netdb (Makefile.am): Likewise.
13848         * modules/netinet_in (Makefile.am): Likewise.
13849         * modules/poll-h (Makefile.am): Likewise.
13850         * modules/pthread (Makefile.am): Likewise.
13851         * modules/pty (Makefile.am): Likewise.
13852         * modules/sched (Makefile.am): Likewise.
13853         * modules/search (Makefile.am): Likewise.
13854         * modules/selinux-h (Makefile.am): Likewise.
13855         * modules/signal (Makefile.am): Likewise.
13856         * modules/spawn (Makefile.am): Likewise.
13857         * modules/stdarg (Makefile.am): Likewise.
13858         * modules/stddef (Makefile.am): Likewise.
13859         * modules/stdint (Makefile.am): Likewise.
13860         * modules/stdio (Makefile.am): Likewise.
13861         * modules/stdlib (Makefile.am): Likewise.
13862         * modules/string (Makefile.am): Likewise.
13863         * modules/strings (Makefile.am): Likewise.
13864         * modules/sys_file (Makefile.am): Likewise.
13865         * modules/sys_ioctl (Makefile.am): Likewise.
13866         * modules/sys_select (Makefile.am): Likewise.
13867         * modules/sys_socket (Makefile.am): Likewise.
13868         * modules/sys_stat (Makefile.am): Likewise.
13869         * modules/sys_time (Makefile.am): Likewise.
13870         * modules/sys_times (Makefile.am): Likewise.
13871         * modules/sys_utsname (Makefile.am): Likewise.
13872         * modules/sys_wait (Makefile.am): Likewise.
13873         * modules/sysexits (Makefile.am): Likewise.
13874         * modules/termios (Makefile.am): Likewise.
13875         * modules/time (Makefile.am): Likewise.
13876         * modules/unistd (Makefile.am): Likewise.
13877         * modules/wchar (Makefile.am): Likewise.
13878         * modules/wctype (Makefile.am): Likewise.
13879
13880 2010-10-04  Bruno Haible  <bruno@clisp.org>
13881
13882         read-file tests: Avoid a test failure on NonStop Kernel.
13883         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
13884         a regular file.
13885         Reported by Joachim Schmitz <schmitz@hp.com>.
13886
13887 2010-10-03  Bruno Haible  <bruno@clisp.org>
13888
13889         gnulib-tool: Fixes for --create-testdir with --libtool.
13890         * gnulib-tool (func_get_automake_snippet): Don't augment
13891         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
13892         an executable.
13893         (func_create_testdir): Handle module 'alloca' like func_import.
13894         Reported by Bruce Korb <bruce.korb@gmail.com>.
13895
13896 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
13897
13898         Avoid some lines longer than 80 characters.
13899         * lib/stdint.in.h: Break long comment lines.
13900         * lib/math.in.h: Likewise.
13901         (_GL_NUM_UINT_WORDS): New macro, for readability.
13902         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
13903         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
13904         * lib/stdlib.in.h: Likewise.
13905         * lib/spawn.in.h: Likewise.
13906         * lib/sys_socket.in.h: Update an URL.
13907         * lib/sys_stat.in.h: Break long line.
13908
13909 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
13910
13911         Improve pmccabe2html.
13912         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
13913         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
13914         when the sources change. Remove the line in the HTML about "Used
13915         ranges" (which implied that there might be other unused ranges),
13916         rename "Resume" to "Summary" (easier to understand for more users).
13917         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
13918         styles, and some unnecessary blank lines.
13919
13920 2010-10-03  Bruno Haible  <bruno@clisp.org>
13921             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13922
13923         acl: Add support for ACLs on NonStop Kernel.
13924         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
13925         Check whether the function aclsort() exists.
13926         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
13927         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
13928         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13929         (acl_nontrivial [HAVE_ACLSORT]: New function.
13930         (file_has_acl): Implement for NonStop Kernel.
13931         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13932         (qset_acl): Implement for NonStop Kernel.
13933         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
13934         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13935         (main): Implement for NonStop Kernel.
13936         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
13937         Kernel. Handle this flavor.
13938         * tests/test-set-mode-acl.sh: Likewise.
13939         * tests/test-copy-acl.sh: Likewise.
13940         * tests/test-copy-file.sh: Likewise.
13941
13942 2010-10-03  Bruno Haible  <bruno@clisp.org>
13943
13944         Info about ACLs on NonStop Kernel.
13945         * doc/acl-resources.txt: Add info about NonStop Kernel.
13946         References by Joachim Schmitz <schmitz@hp.com>.
13947
13948 2010-10-02  Bruno Haible  <bruno@clisp.org>
13949
13950         Define missing EDQUOT on NonStop Kernel.
13951         * lib/errno.in.h (EDQUOT): Assign a value if missing.
13952         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
13953         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
13954         missing.
13955         * doc/posix-headers/errno.texi: Mention the NSK bug.
13956         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
13957         Reported by Joachim Schmitz <schmitz@hp.com>.
13958
13959 2010-10-02  Bruno Haible  <bruno@clisp.org>
13960
13961         Update doc for POSIX:2008.
13962         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
13963         Update URL of POSIX specification.
13964
13965 2010-10-02  Bruno Haible  <bruno@clisp.org>
13966
13967         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
13968         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
13969         from gnulib, not from Automake.
13970
13971 2010-10-02  Bruno Haible  <bruno@clisp.org>
13972
13973         New module 'system-posix'.
13974         * modules/system-posix: New file.
13975         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
13976         module is present.
13977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13978         GNULIB_SYSTEM_POSIX.
13979         * modules/stdlib (Depends-on): Remove sys_wait.
13980         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
13981         * doc/posix-functions/system.texi: Mention the new module.
13982         * doc/posix-headers/stdlib.texi: Likewise.
13983         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
13984         define test_sys_wait_macros to a no-op.
13985         Reported by Sam Steingold <sds@gnu.org>.
13986
13987 2010-09-30  Bruno Haible  <bruno@clisp.org>
13988
13989         More renaming from 'getdate' to 'get_date'.
13990         * doc/get_date.texi: Renamed from doc/getdate.texi.
13991         * modules/get_date (Files): Update.
13992         * MODULES.html.sh (Date and time <time.h>): Update.
13993         * DEPENDENCIES: Update.
13994         * gnulib-tool: Update comment.
13995         * m4/bison.m4 (gl_BISON): Likewise.
13996         * m4/get_date.m4 (gl_GET_DATE): Likewise.
13997
13998 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
13999
14000         bootstrap: support ACLOCAL_FLAGS during aclocal
14001         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
14002         can add additional -I dir for third-party .m4 files.
14003
14004 2010-09-30  Eric Blake  <eblake@redhat.com>
14005
14006         bootstrap: use glibtoolize on MacOS
14007         * build-aux/bootstrap (check_versions): Convert libtool into
14008         libtoolize.
14009         (tool search): Move libtool check earlier, and look for
14010         glibtoolize for MacOS.
14011         (gnulib_tool_options): Auto-add --libtool when appropriate.
14012         Reported by Justin Clift.
14013
14014         poll: fix typo that broke test on MacOS
14015         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
14016         Reported by Justin Clift.
14017
14018         getdate: rename to get_date
14019         Note: getdate.h is not renamed, to minimize client impact.
14020         * modules/getdate: Mark obsolete.  Move old contents...
14021         * modules/get_date: ...to new module name.
14022         * modules/getdate-tests: Move...
14023         * modules/get_date-tests: ...here.
14024         * m4/getdate.m4: Move...
14025         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14026         * lib/getdate.y: Move...
14027         * lib/get_date.y: ...here.
14028         * tests/test-getdate.c: Move...
14029         * tests/test-get_date.c: ...here.
14030         * doc/posix-functions/getdate.texi (getdate): Update name.
14031         * NEWS: Mention the change.
14032
14033 2010-09-29  Bruno Haible  <bruno@clisp.org>
14034
14035         Separate the module 'waitpid' from the module 'sys_wait'.
14036         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
14037         present.
14038         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
14039         gl_MODULE_INDICATOR_FOR_TESTS.
14040         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
14041         * modules/sys_wait (Depends-on): Remove waitpid.
14042         (Makefile.am): Substitute GNULIB_WAITPID.
14043         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
14044         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
14045         signature only if the 'waitpid' module is present.
14046         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
14047         * NEWS: Mention the change.
14048         * modules/grantpt (Depends-on): Add waitpid.
14049         * modules/wait-process (Depends-on): Likewise.
14050
14051 2010-09-29  Bruno Haible  <bruno@clisp.org>
14052
14053         More tests for module 'sys_wait'.
14054         * modules/sys_wait-c++-tests: New file.
14055         * tests/test-sys_wait-c++.cc: New file.
14056         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
14057         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14058
14059 2010-09-29  Bruno Haible  <bruno@clisp.org>
14060
14061         New module 'waitpid'.
14062         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
14063         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
14064         Don't include <process.h>.
14065         (waitpid): Declare only, using modern idiom.
14066         * m4/waitpid.m4: New file.
14067         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
14068         * modules/waitpid: New file.
14069         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
14070         (Makefile.am): Update.
14071         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14072
14073 2010-09-28  Bruno Haible  <bruno@clisp.org>
14074
14075         poll: Assume ANSI C.
14076         * lib/poll.c (poll): Use an ANSI C declaration.
14077
14078 2010-09-28  Bruno Haible  <bruno@clisp.org>
14079
14080         poll-h: Create poll.h on all platforms.
14081         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
14082         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
14083         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
14084         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
14085         (gl_REPLACE_POLL_H): Don't set POLL_H.
14086         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
14087         * modules/poll-h (Depends-on): Add include_next.
14088         (Makefile.am): Create poll.h unconditionally. Substitute also
14089         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
14090
14091 2010-09-28  Bruno Haible  <bruno@clisp.org>
14092
14093         Tests for module 'poll-h'.
14094         * modules/poll-h-c++-tests: New file.
14095         * tests/test-poll-h-c++.cc: New file.
14096
14097         Tests for module 'poll-h'.
14098         * modules/poll-h-tests: New file.
14099         * tests/test-poll-h.c: New file.
14100
14101 2010-09-28  Bruno Haible  <bruno@clisp.org>
14102
14103         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14104         * modules/poll-h (Depends-on): Add 'extensions'.
14105
14106 2010-09-28  Bruno Haible  <bruno@clisp.org>
14107
14108         New module 'poll-h'.
14109         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
14110         (poll): Use modern idiom.
14111         * modules/poll-h: New file.
14112         * modules/poll (Files): Remove lib/poll.in.h.
14113         (Depends-on): Add poll-h.
14114         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
14115         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
14116         * m4/poll_h.m4: New file.
14117         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
14118         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
14119         and invoke gl_REPLACE_POLL_H.
14120         * lib/poll.c: Use common idiom.
14121         * tests/test-poll.c: Likewise.
14122         * doc/posix-headers/poll.texi: Mention the poll-h module.
14123         Suggested by Eric Blake.
14124
14125 2010-09-26  Bruno Haible  <bruno@clisp.org>
14126
14127         sys_wait: Implement WSTOPSIG.
14128         * lib/sys_wait.in.h (WSTOPSIG): New macro.
14129         Reported by Simon Josefsson.
14130
14131 2010-09-26  Simon Josefsson  <simon@josefsson.org>
14132
14133         stdlib, sys_wait: Avoid compilation error on mingw.
14134         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
14135
14136 2010-09-26  Bruno Haible  <bruno@clisp.org>
14137
14138         stdlib tests: Avoid code duplication.
14139         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
14140         * modules/sys_wait-tests (Files): Likewise.
14141         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
14142         * tests/test-stdlib.c: Include test-sys_wait.h.
14143         (main): Invoke test_sys_wait_macros.
14144         * tests/test-sys_wait.c: Include test-sys_wait.h.
14145         (main): Invoke test_sys_wait_macros.
14146
14147 2010-09-25  Simon Josefsson  <simon@josefsson.org>
14148
14149         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
14150         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
14151         sure Windows sockets are working before calling getaddrinfo.
14152         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
14153         * doc/gnulib.texi (Windows sockets): Fix typo.
14154
14155 2010-09-25  Bruno Haible  <bruno@clisp.org>
14156
14157         Tests for module 'regex-quote'.
14158         * modules/regex-quote-tests: New file.
14159         * tests/test-regex-quote.c: New file.
14160
14161         New module 'regex-quote'.
14162         * lib/regex-quote.h: New file.
14163         * lib/regex-quote.c: New file.
14164         * modules/regex-quote: New file.
14165         Suggested by Reuben Thomas <rrt@sc3d.org>.
14166
14167 2010-09-24  Bruno Haible  <bruno@clisp.org>
14168
14169         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
14170         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
14171
14172 2010-09-23  Bruno Haible  <bruno@clisp.org>
14173
14174         setenv: Relax license.
14175         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
14176         Blake.
14177         Requested by Eric Blake.
14178
14179 2010-09-22  Bruno Haible  <bruno@clisp.org>
14180
14181         termios: Relax license.
14182         * modules/termios (License): Change to LGPLv2+.
14183         Requested by Eric Blake.
14184
14185 2010-09-22  Bruno Haible  <bruno@clisp.org>
14186
14187         threadlib: Allow the package to change the default to 'no'.
14188         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
14189         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
14190         Reported by Paul Eggert.
14191
14192 2010-09-22  Pádraig Brady  <P@draigbrady.com>
14193             Bruno Haible  <bruno@clisp.org>
14194
14195         Fix endless loop in mbmemcasecoll.
14196         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
14197         byte.
14198         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
14199
14200 2010-09-22  Bruno Haible  <bruno@clisp.org>
14201
14202         Tests for module 'memcoll'.
14203         * modules/memcoll-tests: New file.
14204         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14205
14206         memcoll, xmemcoll: Clarify size vs. length.
14207         * modules/memcoll.c (memcoll0): Clarify specification.
14208         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14209         passed to collate_error.
14210
14211 2010-09-22  Bruno Haible  <bruno@clisp.org>
14212
14213         Tests for module 'memcasecmp'.
14214         * modules/memcasecmp-tests: New file.
14215         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14216
14217 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14218
14219         * lib/pthread.in.h: Add split double-inclusion guard, and include
14220         system <pthread.h> if there is one.  Use @@-style as in other
14221         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14222         pthread.h doesn't.
14223         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14224         (pthread_mutexattr_settype, pthread_mutex_trylock):
14225         New static inline functions, if there's no system <pthread.h>.
14226         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14227         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14228         Approximate with mutexes if the system lacks spinlocks, as in
14229         MacOS.
14230         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14231         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14232         @@-style.  Check for spinlocks separately.
14233         (gl_PTHREAD_DEFAULTS): New macro.
14234         * modules/pthread: Redo to use a more typical style for in.h files.
14235
14236 2010-09-21  Eric Blake  <eblake@redhat.com>
14237
14238         net_if: enhance tests
14239         * tests/test-net_if.c (main): Move signature checks earlier.
14240         Print failures to stderr.
14241         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14242         Document the bug that we do not yet fix.
14243
14244 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14245
14246         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14247         about gnulib, not GSS.
14248
14249 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14250
14251         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14252         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14253         for Emacs.
14254         * build-aux/pmccabe2html: Make Makefile.am example code more
14255         cut-and-paste friendly.
14256
14257 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14258
14259         * tests/test-net_if.c: New file.
14260         * modules/net_if-tests: New file.
14261
14262 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14263
14264         pthread: add pthread_spin_destroy
14265         * lib/pthread.in.h (pthread_spin_destroy): New function.
14266
14267 2010-09-19  Bruno Haible  <bruno@clisp.org>
14268
14269         gnulib-tool: Fix --help output.
14270         * gnulib-tool (func_usage): Fix help message.
14271         Reported by Reuben Thomas <rrt@sc3d.org>.
14272
14273 2010-09-18  Jim Meyering  <meyering@redhat.com>
14274
14275         maint.mk: avoid unexpanded \n in two diagnostics
14276         * top/maint.mk (sc_prohibit_always_true_header_tests):
14277         Don't use a literal \n in a halt=... assignment.  It would not be
14278         expanded, and the two \n bytes would appear in the diagnostic output
14279         rather than the desired newline.  Use halt=$$(printf ... instead.
14280         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14281
14282 2010-09-18  Bruno Haible  <bruno@clisp.org>
14283
14284         netinet_in: Doc tweak.
14285         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14286         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14287
14288 2010-09-18  Jim Meyering  <meyering@redhat.com>
14289
14290         init.sh: correct an outdated comment
14291         * tests/init.sh (create_exe_shims_):  s/function/alias/
14292
14293         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14294         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14295         a file named "*.exe" is removed between the glob expansion and the
14296         processing of that oddly named file.
14297
14298 2010-09-17  Eric Blake  <eblake@redhat.com>
14299
14300         mirbsd: add some more support
14301         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14302         in BSD family.
14303         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14304         devices as OpenBSD.
14305         * m4/host-os.m4 (mirbsd): Add MirBSD.
14306
14307         tests: fix unportable assumption on sys/wait.h
14308         * tests/test-sys_wait.c (main): Relax test.
14309         * tests/test-stdlib.c (main): Likewise.
14310
14311         init.sh: accomodate directory with no .exes
14312         * tests/init.sh: Accomodate directory containing only scripts.
14313
14314         tests: avoid compiler warning
14315         * tests/test-stdlib.c (main): Use the variable.
14316
14317         fdutimens, fdutimensat: update signature, again
14318         * lib/utimens.h (gl_futimens): Delete, and move signature...
14319         (fdutimens): ...here.
14320         (fdutimensat): Rearrange signature.
14321         (lutimensat): Rename variable for clarity.
14322         * lib/fdutimensat.c (fdutimensat): Update signature.
14323         * lib/utimens.c (fdutimens): Likewise.
14324         (gl_futimens): Delete.
14325         (utimens, lutimens): Update callers.
14326         * lib/futimens.c (futimens): Likewise.
14327         * tests/test-fdutimensat.c: Likewise.
14328         * tests/test-utimens.c: Likewise.
14329         * tests/test-futimens.h: Update comment.
14330         * NEWS: Mention this.
14331         Suggested by Paul Eggert.
14332
14333 2010-09-17  Bruno Haible  <bruno@clisp.org>
14334
14335         Take over the maintenance of some older macros from Autoconf.
14336         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14337         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14338         GNU Autoconf.
14339         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14340         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14341
14342 2010-09-17  Eric Blake  <eblake@redhat.com>
14343
14344         fdutimensat: drop atflag validation
14345         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14346         with valid fd, to close a race scenario where futimens is
14347         unsupported and FILE was replaced by a symlink.
14348         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14349         accordingly.
14350         Suggested by Paul Eggert.
14351
14352 2010-09-16  Bruno Haible  <bruno@clisp.org>
14353
14354         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14355         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14356
14357 2010-09-16  Bruno Haible  <bruno@clisp.org>
14358
14359         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14360         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14361         login_tty exists.
14362         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14363
14364 2010-09-16  Bruno Haible  <bruno@clisp.org>
14365
14366         login_tty: Make the replacement code work on BSD systems.
14367         * lib/login_tty.c: Include <sys/ioctl.h>.
14368         (login_tty): Use ioctl TIOCSCTTY when available.
14369         * modules/login_tty (Depends-on): Add sys_ioctl.
14370         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14371
14372 2010-09-16  Bruno Haible  <bruno@clisp.org>
14373
14374         login_tty: Stricter unit test.
14375         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14376         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14377         and tcgetsid() after login_tty.
14378         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14379
14380 2010-09-16  Bruno Haible  <bruno@clisp.org>
14381
14382         New module 'tcgetsid'.
14383         * lib/tcgetsid.c: New file.
14384         * m4/tcgetsid.m4: New file.
14385         * modules/tcgetsid: New file.
14386         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14387         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14388         GNULIB_TCGETSID, HAVE_TCGETSID.
14389         * lib/termios.in.h: Include <sys/types.h>.
14390         (tcgetsid): New declaration.
14391         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14392         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14393         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14394         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14395
14396 2010-09-16  Bruno Haible  <bruno@clisp.org>
14397
14398         Tests for module 'termios'.
14399         * modules/termios-c++-tests: New file.
14400         * modules/termios-tests: New file.
14401         * tests/test-termios-c++.cc: New file.
14402         * tests/test-termios.c: New file.
14403
14404         New module 'termios'.
14405         * modules/termios: New file.
14406         * lib/termios.in.h: New file.
14407         * m4/termios_h.m4: New file.
14408         * doc/posix-headers/termios.texi: Mention the new module.
14409
14410 2010-09-16  Eric Blake  <eblake@redhat.com>
14411
14412         fdutimensat: add an atflag parameter
14413         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14414         * lib/utimens.h (fdutimensat): Update prototype.
14415         * tests/test-fdutimensat.c: Adjust test to match.
14416         * NEWS: Document the change.
14417         Suggested by Paul Eggert.
14418
14419 2010-09-16  Bruno Haible  <bruno@clisp.org>
14420
14421         Fix typos in comments.
14422         * lib/striconveh.h: Fix typo in comment.
14423         * lib/login_tty.c (login_tty): Likewise.
14424
14425 2010-09-15  Bruno Haible  <bruno@clisp.org>
14426
14427         stdlib: clarify MirBSD WEXITSTATUS bug
14428         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14429         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14430
14431 2010-09-15  Eric Blake  <eblake@redhat.com>
14432
14433         stdlib: work around MirBSD WEXITSTATUS bug
14434         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14435         * modules/stdlib (Depends-on): Add sys_wait.
14436         * tests/test-sys_wait.c (main): Enhance test.
14437         * tests/test-stdlib.c (main): Likewise.
14438         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14439
14440         docs: mention MacOS issue with WEXITSTATUS(constant)
14441         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14442         issue.
14443         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14444
14445         strnlen: add tests
14446         * modules/strnlen-tests: New file.
14447         * tests/test-strnlen.c: Likewise.
14448
14449 2010-09-14  Bruno Haible  <bruno@clisp.org>
14450
14451         unistr/base: Avoid link errors when module 'libunistring' is also used.
14452         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14453         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14454         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14455         Declare also when HAVE_LIBUNISTRING is set.
14456         Reported by Pádraig Brady <P@draigbrady.com>.
14457
14458 2010-09-14  Eric Blake  <eblake@redhat.com>
14459
14460         test-rawmemchr: make more robust
14461         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14462         (Depends-on, configure.ac): Add needed prerequisites to use it.
14463         * modules/memchr-tests (Files, Depends-on, configure.ac):
14464         Likewise, to avoid implicit reliance on memchr module prereqs.
14465         * tests/test-memchr.c (main): Ensure proper masking.
14466         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14467         reads.
14468
14469         memchr: detect glibc Alpha bug
14470         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14471         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14472         Alpha.
14473         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14474         * tests/test-memchr.c (main): Enhance test.
14475         Reported by Nelson H. F. Beebe.
14476
14477 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14478
14479         fts, getcwd, glob: audit for dirfd returning -1
14480         * lib/fts.c (opendir): Remove #define; no longer used.
14481         (opendirat): New arg PDIR_FD.  All callers changed.
14482         (fts_build, _opendir2): Use new opendirat to avoid the need for
14483         dirfd, or for checking whether dirfd returns a negative value.
14484         Don't use opendir; always use openat followed by fdopendir.
14485         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14486         it.
14487         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14488         returns -1 here.
14489         * modules/fts (Depends-on): Remove dirfd.
14490         * modules/getcwd (Depends-on): Likewise.
14491
14492 2010-09-13  Eric Blake  <eblake@redhat.com>
14493
14494         float: fix broken MirBSD header
14495         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14496         * doc/posix-headers/float.texi (float.h): Document it.
14497
14498 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14499
14500         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14501         * lib/fts.c (opendirat): New arg extra_flags.
14502         (__opendir2): Use it to avoid following symlinks when opening
14503         a directory, if symlinks are not supposed to be followed.  See
14504         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14505
14506         fdopendir: preserve argument fd before returning
14507         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14508         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14509         (fdopendir): Use them, arranging for FD to be open to the same
14510         directory that it was when it started.  (It might be temporarily
14511         closed while fdopendir is running, so this not thread- or
14512         signal-safe.)  Be careful to do the right thing even when file
14513         descriptors are scarce and dup fails with errno == EMFILE.  See
14514         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14515
14516 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14517
14518         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14519         * NEWS: Document change.
14520         * m4/regex.m4: Disable test for regoff_t size.
14521
14522 2010-09-13  Jim Meyering  <meyering@redhat.com>
14523
14524         fts: don't operate on an invalid file descriptor after failed dup
14525         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14526         negative file descriptor.
14527
14528 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14529
14530         savedir: add streamsavedir, deprecate fdsavedir
14531         * NEWS: Mention deprecation of fdsavedir.
14532         * lib/savedir.c (streamsavedir): New extern function, whose name
14533         ends in "savedir" to be consistent with the others.  This differs
14534         from savedirstream in that it doesn't close its argument.  The
14535         next version of GNU tar will use this instead of fdsavedir, to
14536         avoid some race conditions and conserve file descriptors.
14537         (savedirstream): Reimplement as a wrapper around streamsavedir.
14538         (fdsavedir): Add a comment deprecating this function.  As far as
14539         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14540         * lib/savedir.h (streamsavedir): New decl.
14541         (fdsavedir): Add a comment deprecating this.
14542
14543 2010-09-10  Bruno Haible  <bruno@clisp.org>
14544
14545         langinfo: Fix last commit.
14546         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14547         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14549
14550 2010-09-10  Bruno Haible  <bruno@clisp.org>
14551
14552         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14553         * lib/progreloc.c (O_EXEC): Define fallback.
14554
14555 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14556
14557         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14558         * NEWS: Document recent changes to fcntl-h.
14559         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14560         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14561         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14562         Similarly for O_SEARCH; this last was already true, but not documented.
14563         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14564         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14565         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14566         Likewise.
14567         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14568         is zero, not whether it is defined.
14569         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14570         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14571         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14572
14573 2010-09-10  Bruno Haible  <bruno@clisp.org>
14574
14575         langinfo, nl_langinfo: Fix for IRIX 5.3.
14576         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14577         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14578         HAVE_LANGINFO_YESEXPR.
14579         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14580         HAVE_LANGINFO_YESEXPR.
14581         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14582         HAVE_LANGINFO_T_FMT_AMPM is 0.
14583         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14584         HAVE_LANGINFO_YESEXPR is 0.
14585         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14586         NOEXPR.
14587         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14588         * doc/posix-functions/nl_langinfo.texi: Likewise.
14589         Reported by Eric Blake.
14590
14591 2010-09-10  Bruno Haible  <bruno@clisp.org>
14592
14593         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14594         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14595         on FreeBSD 8.0 and OpenBSD 4.6.
14596         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14597         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14598         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14599         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14600         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14601         ac_includes_default.
14602         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14603
14604 2010-09-09  Eric Blake  <eblake@redhat.com>
14605
14606         strsignal: work around NetBSD bug
14607         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14608         * lib/string.in.h (includes): Likewise.
14609         * doc/posix-functions/strsignal.texi (strsignal): Document the
14610         bug.
14611         Reported by Nelson H. F. Beebe.
14612
14613         gnulib-tool: work with NetBSD /bin/sh
14614         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14615         (func_get_description, func_get_comment, func_get_status)
14616         (func_get_notice, func_get_applicability, func_get_filelist)
14617         (func_get_dependencies, func_get_autoconf_early_snippet)
14618         (func_get_autoconf_snippet, func_get_automake_snippet)
14619         (func_get_include_directive, func_get_link_directive)
14620         (func_get_license, func_get_maintainer, func_import): Avoid
14621         shell syntax errors from parsing syntax extensions.
14622
14623 2010-09-09  Bruno Haible  <bruno@clisp.org>
14624
14625         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14626         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14627         a reliable way to determine whether the 'alias' command works.
14628
14629 2010-09-08  Jim Meyering  <meyering@redhat.com>
14630
14631         init.sh: penalize a set-x-impaired shell; don't disqualify it
14632         * tests/init.sh: Too many shells corrupt application stderr when
14633         you set -x, so we can't afford to disqualify them, since at least
14634         on Irix-6.5, that would disqualify all bourne shells.
14635         Instead, use a two-pass approach.
14636         On the first pass, try to find a shell that meets the stricter
14637         condition that set -x does not corrupt stderr.
14638         If no shell meets the stricter condition, retest each candidate
14639         shell, but without that extra condition.  Finally, when
14640         VERBOSE=yes is requested and set -x might cause trouble, simply
14641         issue a warning and refrain from enabling debug output.
14642
14643 2010-09-08  Eric Blake  <eblake@redhat.com>
14644
14645         unsetenv: fix OpenBSD bug
14646         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14647         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14648         documentation.
14649         Reported by Jim Meyering.
14650
14651         strtod: work around IRIX 6.5 bug
14652         * lib/strtod.c (strtod): Reparse number on shorter string if
14653         exponent parse was invalid.
14654         * tests/test-strtod.c (main): Add check for "0x1p 2".
14655         Reported by Tom G. Christensen.
14656
14657         getopt: optimize previous patch
14658         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14659         empty variable.  Speed up awk script.
14660         Reported by Paolo Bonzini.
14661
14662 2010-09-08  Jim Meyering  <meyering@redhat.com>
14663
14664         test.sh: disqualify shells for which set -x corrupts stderr
14665         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14666         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14667         appear in stderr output.  For example, this command:
14668             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14669         prints "P=1" on those two systems:
14670
14671 2010-09-08  Bruno Haible  <bruno@clisp.org>
14672
14673         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14674         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14675         commands, because some shells ignore redirections when there is an
14676         error in the command lookup.
14677         Reported by Eric Blake.
14678
14679 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14680
14681         * lib/regex.h: Fix a mention of `regex_compile' (should be
14682         `re_compile_pattern').
14683         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14684         (re_set_registers): Correct name of parameter in comment.
14685
14686         * doc/regex.texi: Add documentation for missing syntax flags.
14687         Remove commented-out documentation of defunct syntax option
14688         RE_NO_EMPTY_ALTS.
14689         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14690         Add documentation of re_set_registers.
14691         Document trick to re-use a pattern buffer by setting fastmap manually.
14692         Update documentation of struct re_pattern_buffer per public members.
14693         Uncomment documentation of equivalence class operators and
14694         collating symbol operators, since they are now implemented,
14695         Explain leftmost-longest matching in relation to alternatives.
14696         Tidy documentation of substring matching.
14697         Remove POSIX documentation, which is done better in
14698         glibc, and refer the reader there. Keep BSD API documentation, as
14699         that is not readily available elsewhere.
14700
14701 2010-09-07  Eric Blake  <eblake@redhat.com>
14702
14703         getopt: handle POSIXLY_CORRECT set but not exported
14704         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14705         export state of POSIXLY_CORRECT, due to bash set -o posix.
14706         Reported by Dustin J. Mitchell.
14707
14708 2010-09-05  Bruno Haible  <bruno@clisp.org>
14709
14710         gnulib-tool: Highlight the changed options.
14711         * gnulib-tool (func_usage): Display the --import, --add-import,
14712         --remove-import explanations in bold font.
14713
14714 2010-09-06  Karl Berry  <karl@gnu.org>
14715
14716         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14717
14718 2010-09-05  Bruno Haible  <bruno@clisp.org>
14719
14720         uniwidth/width: Update comment.
14721         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14722         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14723
14724 2010-09-05  Bruno Haible  <bruno@clisp.org>
14725
14726         isinf, isnan: Relax license.
14727         * modules/isinf (License): Change from GPL to LGPL, with consent from
14728         Ben Pfaff.
14729         * modules/isnan (License): Likewise.
14730         Requested by Ludovic Courtès.
14731
14732 2010-09-04  Bruno Haible  <bruno@clisp.org>
14733
14734         gnulib-tool: Help migration from --import to --add-import or --update.
14735         * gnulib-tool: Emit a verbose error message when --import is used
14736         without any module name.
14737
14738 2010-09-04  Bruno Haible  <bruno@clisp.org>
14739
14740         Update doc about gnulib-tool.
14741         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14742         'gnulib-tool --update' in more detail.
14743         Reported by Eric Blake.
14744
14745 2010-09-04  Bruno Haible  <bruno@clisp.org>
14746
14747         gnulib-tool: Change --import. New options --add/remove-import.
14748         * gnulib-tool: New options --add-import, --remove-import.
14749         (func_usage): Document them.
14750         (have_associative): Define always.
14751         (func_import): In import mode, don't merge the specified settings with
14752         the cached settings. Implement remove-import mode.
14753         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14754         Explain when to use them versus --import.
14755         (Simple update): Use --add-import instead of --import.
14756         * NEWS: Mention the change.
14757
14758 2010-09-04  Bruno Haible  <bruno@clisp.org>
14759
14760         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14761         separate gnulib.mk.
14762
14763 2010-09-04  Bruno Haible  <bruno@clisp.org>
14764
14765         gnulib-tool: Don't talk about CVS any more.
14766         * gnulib-tool (func_usage, func_import): Write "version control"
14767         instead of CVS.
14768
14769 2010-09-04  Jim Meyering  <meyering@redhat.com>
14770
14771         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14772         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14773         false positives (whose names may be ill-chosen) when searching
14774         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14775         would cause a false-positive.
14776
14777         avoid coreutils "make distcheck" failure
14778         Coreutils tests with an absolute build directory name that contains
14779         a space.  Not quoting this directory name caused a failure.
14780         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
14781         * tests/test-vc-list-files-cvs.sh: Likewise.
14782
14783 2010-09-04  Bruno Haible  <bruno@clisp.org>
14784
14785         gnulib-tool: Avoid error when run in a package without Makefile.am.
14786         * gnulib-tool: When collecting the m4dirs in a package that does not
14787         have a Makefile.am, eliminate those directories that contain no
14788         gnulib-cache.m4. Fix expression that counts these directories.
14789
14790 2010-09-04  Bruno Haible  <bruno@clisp.org>
14791
14792         update-copyright test: Improve output when perl is missing or too old.
14793         * tests/test-update-copyright.sh: Move test of Perl version down after
14794         the test whether Perl exists. Provide an explanation relating Perl's
14795         error message to Automake's SKIP: message.
14796
14797 2010-09-04  Bruno Haible  <bruno@clisp.org>
14798
14799         Don't augment PATH in TESTS_ENVIRONMENT.
14800         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
14801         set abs_aux_dir instead of augmenting PATH.
14802         * modules/vc-list-files-tests (Makefile.am): Likewise.
14803         * tests/test-update-copyright.sh: Augment PATH here.
14804         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
14805         path_prepend_.
14806         * tests/test-vc-list-files-git.sh: Likewise.
14807
14808 2010-09-04  Jim Meyering  <meyering@redhat.com>
14809
14810         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
14811         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
14812
14813 2010-09-04  Bruno Haible  <bruno@clisp.org>
14814
14815         strdup: Fix compilation error in C++ mode.
14816         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
14817         the macro.
14818
14819 2010-09-04  Bruno Haible  <bruno@clisp.org>
14820
14821         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
14822         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
14823         macro into a function.
14824         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14825
14826 2010-09-04  Bruno Haible  <bruno@clisp.org>
14827
14828         Set PATH_SEPARATOR the same way autoconf does.
14829         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
14830         the value of PATH_SEPARATOR the same way autoconf-generated configure
14831         scripts do.
14832         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
14833         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14834
14835 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14836
14837         Set PATH_SEPARATOR the same way autoconf does.
14838         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
14839         the same way autoconf-generated configure scripts do.
14840         * posix-modules: Likewise.
14841
14842 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14843
14844         hash: fix safe_hasher const typo
14845         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
14846         const; otherwise, there is a type error later.
14847
14848 2010-09-02  Jim Meyering  <meyering@redhat.com>
14849
14850         test-update-copyright.sh: require perl 5.8.0
14851         * tests/test-update-copyright.sh: Require 5.8.0,
14852         which Tom G. Christensen has confirmed is adequate,
14853         while 5.6.1 is not.
14854
14855 2010-09-02  Eric Blake  <eblake@redhat.com>
14856
14857         tests: init.sh improvements for re-exec'ing with zsh
14858         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
14859         -vx through shell re-exec.
14860         Reported by Tom G. Christensen.
14861
14862         wctype: fix typo in previous commit
14863         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
14864         Reported by Ludovic Courtès.
14865
14866 2010-09-02  Jim Meyering  <meyering@redhat.com>
14867
14868         test-update-copyright.sh: skip test if Perl is too old
14869         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
14870         Reported by Tom G. Christensen.
14871
14872 2010-09-02  Bruno Haible  <bruno@clisp.org>
14873
14874         wctype: Avoid compilation error on IRIX 6.5.30.
14875         * lib/wctype.in.h (iswblank): Declare with a replacement if
14876         REPLACE_ISWBLANK is set.
14877         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
14878         declared. Set REPLACE_ISWBLANK.
14879         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
14880         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
14881         * doc/posix-headers/wctype.texi: Likewise.
14882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14883
14884 2010-09-01  Bruno Haible  <bruno@clisp.org>
14885
14886         New module 'socketlib'.
14887         * modules/socketlib: New file.
14888         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
14889         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
14890         * modules/sockets (Depends-on): Add socketlib.
14891         Suggested by Sam Steingold <sds@gnu.org>.
14892
14893 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14894
14895         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
14896
14897         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
14898         when one needs search access to a directory but not read access.
14899         On systems where it is available, it works in some cases where
14900         O_RDONLY does not, namely on directories that are searchable but
14901         not readable, and which need only to be searchable.  If O_SEARCH
14902         is not available, fall back to the traditional method of using
14903         O_RDONLY.
14904
14905         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14906         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
14907         when opening a directory that needs only to be searchable.
14908         * lib/chdir-safer.c (chdir_no_follow): Likewise.
14909         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
14910         * lib/openat-proc.c (openat_proc_name): Likewise.
14911         * lib/openat.c (openat_needs_fchdir): Likewise.
14912         * lib/save-cwd.c (save_cwd): Likewise.
14913         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
14914
14915 2010-08-28  Bruno Haible  <bruno@clisp.org>
14916
14917         New module 'host-cpu-c-abi'.
14918         * modules/host-cpu-c-abi: New file.
14919         * m4/host-cpu-c-abi.m4: New file, based on part of
14920         clisp/src/m4/general.m4.
14921         Requested by Sam Steingold <sds@gnu.org>.
14922
14923 2010-08-31  Eric Blake  <eblake@redhat.com>
14924         and Jim Meyering  <meyering@redhat.com>
14925
14926         hash: factor, and guard against misbehaving hasher function
14927         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
14928         of table->hasher's return value.  Also protect against a hash value
14929         so large that adding it to table->bucket results in a NULL pointer.
14930         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
14931         Use it in place of open-coded check-and-abort.
14932
14933 2010-08-30  Bruno Haible  <bruno@clisp.org>
14934
14935         hash: silence spurious clang warning
14936         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
14937         Reported by Eric Blake.
14938
14939 2010-08-30  Eric Blake  <eblake@redhat.com>
14940
14941         strstr, memmem, strcasestr: avoid leaked shell message
14942         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
14943         FreeBSD.
14944         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14945         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14946
14947         tests: silence clang warning
14948         * tests/test-malloca.c (do_allocation): Avoid dead store.
14949
14950 2010-08-29  Bruno Haible  <bruno@clisp.org>
14951
14952         gettext: Fix recent mistake.
14953         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
14954
14955 2010-08-29  Bruno Haible  <bruno@clisp.org>
14956
14957         selinux-h: Offer a --without-selinux option.
14958         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
14959         --without-selinux was specified, skip all tests and define
14960         HAVE_SELINUX_SELINUX_H to 0.
14961         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
14962         set LIB_SELINUX to empty.
14963         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
14964         gl_LIBSELINUX. If --without-selinux was specified, replace
14965         selinux/context.h.
14966         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
14967
14968 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14969             Bruno Haible  <bruno@clisp.org>
14970
14971         Make the module 'realloc-gnu' work again on AIX and OSF/1.
14972         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
14973         of HAVE_REALLOC.
14974         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
14975         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
14976         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
14977         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14978
14979 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14980             Bruno Haible  <bruno@clisp.org>
14981
14982         Make the module 'calloc-gnu' work again on AIX and OSF/1.
14983         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
14984         HAVE_CALLOC.
14985         * lib/xmalloc.c: Update accordingly.
14986         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
14987         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
14988         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14989
14990 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14991             Bruno Haible  <bruno@clisp.org>
14992
14993         Make the module 'malloc-gnu' work again on AIX and OSF/1.
14994         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
14995         HAVE_MALLOC.
14996         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
14997         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
14998         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14999
15000 2010-08-29  Bruno Haible  <bruno@clisp.org>
15001
15002         Update modules list.
15003         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15004         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
15005         (String handling <string.h>): Add astrxfrm.
15006         (File system functions): Add readlinkat.
15007
15008 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15009
15010         Tests for module 'realloc-gnu'.
15011         * modules/realloc-gnu-tests: New file.
15012         * tests/test-realloc-gnu.c: New file.
15013
15014         Tests for module 'calloc-gnu'.
15015         * modules/calloc-gnu-tests: New file.
15016         * tests/test-calloc-gnu.c: New file.
15017
15018         Tests for module 'malloc-gnu'.
15019         * modules/malloc-gnu-tests: New file.
15020         * tests/test-malloc-gnu.c: New file.
15021
15022 2010-08-28  Bruno Haible  <bruno@clisp.org>
15023
15024         Rename module 'realloc' -> 'realloc-gnu'.
15025         * modules/realloc-gnu: New file, copied from modules/realloc.
15026         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15027         obsolete.
15028         * modules/mgetgroups (Depends-on): Update.
15029         * doc/posix-functions/realloc.texi: Update.
15030         * NEWS: Mention the change.
15031
15032         Rename module 'calloc' -> 'calloc-gnu'.
15033         * modules/calloc-gnu: New file, copied from modules/calloc.
15034         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
15035         obsolete.
15036         * doc/posix-functions/calloc.texi: Update.
15037         * NEWS: Mention the change.
15038
15039         Rename module 'malloc' -> 'malloc-gnu'.
15040         * modules/malloc-gnu: New file, copied from modules/malloc.
15041         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
15042         obsolete.
15043         * modules/argp (Depends-on): Update.
15044         * modules/regex (Depends-on): Update.
15045         * doc/posix-functions/malloc.texi: Update.
15046         * NEWS: Mention the change.
15047
15048 2010-08-28  Eric Blake  <eblake@redhat.com>
15049
15050         pread, pwrite: add missing dependency
15051         * modules/pread (Depends-on): Add extensions.
15052         * modules/pwrite (Depends-on): Likewise.
15053
15054 2010-08-28  Bruno Haible  <bruno@clisp.org>
15055
15056         unistr/u*-strchr: Fix tests dependencies.
15057         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
15058         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
15059         Reported by Ian Beckwith <ianb@erislabs.net>.
15060
15061 2010-08-28  Bruno Haible  <bruno@clisp.org>
15062
15063         read-file: Don't occupy too much unused memory.
15064         * lib/read-file.c (fread_file): Shrink the buffer at the end.
15065
15066 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
15067             Eric Blake  <eblake@redhat.com>
15068             Bruno Haible  <bruno@clisp.org>
15069
15070         read-file: Avoid memory reallocations with regular files.
15071         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
15072         (fread_file): With regular files, use the remaining length as the
15073         initial buffer size.  Check against overflow.
15074         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
15075         sys_stat.
15076
15077 2010-08-28  Bruno Haible  <bruno@clisp.org>
15078
15079         ftello: Relax license.
15080         * modules/ftello (License): Relax to LGPLv2+.
15081         Reported by Eric Blake.
15082
15083 2010-08-28  Bruno Haible  <bruno@clisp.org>
15084
15085         Avoid relocwrapper link errors due to gnulib replacement functions.
15086         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
15087         function.
15088         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15089
15090 2010-08-28  Bruno Haible  <bruno@clisp.org>
15091
15092         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
15093         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
15094         defined.
15095         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
15096         Suggested by Eric Blake.
15097
15098 2010-08-28  Bruno Haible  <bruno@clisp.org>
15099
15100         sys_socket, netdb: Ensure socklen_t gets defined.
15101         * modules/sys_socket (Depends-on): Add socklen.
15102         * modules/netdb (Depends-on): Likewise.
15103         * modules/getaddrinfo (Depends-on): Remove socklen.
15104         * modules/getsockopt (Depends-on): Likewise.
15105         * modules/setsockopt (Depends-on): Likewise.
15106         * tests/test-sys_socket.c: Check that socklen_t is defined.
15107         * tests/test-netdb.c: Likewise.
15108         * m4/socklen.m4: Update comments.
15109         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15110
15111 2010-08-27  Eric Blake  <eblake@redhat.com>
15112
15113         login_tty: add missing dependency
15114         * modules/login_tty (Depends-on): Add pty.
15115
15116 2010-08-26  Eric Blake  <eblake@redhat.com>
15117
15118         lib-symbol-versions: fix m4 quoting
15119         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
15120         format for AC_LINK_IFELSE.
15121
15122         glob: fix compile test
15123         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
15124
15125         btowc: fix missing file
15126         * modules/btowc (Files): Also ship locale-fr.m4.
15127
15128         lseek: fix link test
15129         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
15130         AC_LINK_IFELSE.
15131
15132         include_next: silence autoconf 2.68 warning
15133         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
15134         AC_COMPILE_IFELSE as special.
15135         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
15136         autoconf < 2.68.
15137
15138         acl: fix compilation test
15139         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
15140         AC_COMPILE_IFELSE.
15141
15142 2010-08-26  Bruno Haible  <bruno@clisp.org>
15143
15144         Modernize AC_TRY_RUN invocations.
15145         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
15146         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15147         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
15148         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
15149         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
15150         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15151         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15152         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15153         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15154         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15155         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15156         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15157         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15158         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15159         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15160         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15161         gl_MBRLEN_NUL_RETVAL): Likewise.
15162         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15163         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15164         Likewise.
15165         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15166         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15167         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15168         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15169         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
15170         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
15171         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
15172         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15173         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
15174         Likewise.
15175         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15176         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
15177         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15178         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15179         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15180         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15181         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15182         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
15183         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15184         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15185
15186 2010-08-26  Bruno Haible  <bruno@clisp.org>
15187
15188         Modernize AC_TRY_LINK invocations.
15189         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
15190         AC_TRY_LINK.
15191         * m4/argp.m4 (gl_ARGP): Likewise.
15192         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15193         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15194         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15195         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15196         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15197         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
15198         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15199         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15200         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15201         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15202         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15203         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
15204         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
15205         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15206         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15207         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15208         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15209         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15210         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15211         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15212         Likewise.
15213         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15214         Likewise.
15215         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15216         Likewise.
15217         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15218         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15219         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15220         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15221         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15222         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15223         * m4/servent.m4 (gl_SERVENT): Likewise.
15224         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15225         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15226         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15227         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15228         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15229         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15230         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15231         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15232         * modules/tsearch-tests (configure.ac): Likewise.
15233
15234 2010-08-26  Bruno Haible  <bruno@clisp.org>
15235
15236         Modernize AC_TRY_COMPILE invocations.
15237         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15238         AC_TRY_COMPILE.
15239         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15240         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15241         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15242         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15243         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15244         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15245         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15246         * m4/lock.m4 (gl_LOCK): Likewise.
15247         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15248         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15249         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15250         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15251         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15252         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15253         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15254         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15255         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15256         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15257         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15258         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15259         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15260         extraneous semicolon.
15261
15262 2010-08-26  Jim Meyering  <meyering@redhat.com>
15263
15264         stat-time: relax license LGPL
15265         * modules/stat-time (License): Change from GPL to LGPL,
15266         with consent from all contributors, for use in libguile.
15267         Requested by Ludovic Courtès.
15268
15269 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15270
15271         poll: return immediately on POLLHUP.
15272         * lib/poll.c (poll): Always set timeout before wait_timeout is
15273         computed.
15274
15275 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15276
15277         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15278         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15279         rmdir ("dir/.//"), unlinkat.
15280
15281 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15282
15283         stdbool: avoid spurious failure with modern xlc
15284         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15285
15286 2010-08-24  Bruno Haible  <bruno@clisp.org>
15287
15288         getloadavg: simplify code
15289         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15290         gl_have_func. Update comments.
15291
15292 2010-08-24  Eric Blake  <eblake@redhat.com>
15293
15294         getloadavg: don't define SVR4 on cygwin
15295         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15296         only define SVR4 when -lkvm is required.
15297         Reported by Yaakov Selkowitz.
15298
15299 2010-08-24  Bruno Haible  <bruno@clisp.org>
15300
15301         priv-set: fix comment
15302         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15303
15304 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15305
15306         priv-set: fix comments
15307         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15308         to match code, as suggested by David Bartley in:
15309         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15310
15311 2010-08-23  Eric Blake  <eblake@redhat.com>
15312
15313         stdbool: avoid rejecting clang
15314         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15315         * tests/test-stdbool.c: Enable more tests if using the system
15316         <stdbool.h> instead of the gnulib replacement.
15317         (main): Move xlc bug test to a runtime test for all compilers.
15318         Reported by Anders Kaseorg.
15319
15320         argz: fix shell quoting issue
15321         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15322         Reported by Charles Wilson.
15323
15324 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15325             Erik Faye-Lund <kusmabite@gmail.com>
15326
15327         poll, select: handle ERROR_BROKEN_PIPE.
15328         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15329         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15330         * lib/select.c (win32_compute_revents): Do not mark a pipe
15331         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15332
15333 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15334
15335         fts: allow compilation with C++
15336         * lib/fts_.h: Specify extern "C" linkage with C++.
15337
15338 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15339
15340         Fix gnulib-tool sed script de-commentation for AIX sed.
15341         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15342         sed.
15343
15344 2010-08-17  Eric Blake  <eblake@redhat.com>
15345
15346         test-stddef: test for (some) offsetof bugs
15347         * tests/test-stddef.c: Enhance test to ensure correct type of
15348         offsetof.
15349         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15350         that we are not fixing at this time.
15351
15352 2010-08-15  Bruno Haible  <bruno@clisp.org>
15353
15354         stpncpy: Allow stpncpy to be defined as a macro.
15355         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15356         if it's already correctly declared.
15357         * lib/string.in.h (stpncpy): Undefine before redefining.
15358         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15359
15360 2010-08-14  Bruno Haible  <bruno@clisp.org>
15361
15362         Rename module 'memxfrm' to 'amemxfrm'.
15363         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15364         (amemxfrm): Renamed from memxfrm.
15365         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15366         (amemxfrm): Renamed from memxfrm.
15367         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15368         * NEWS: Mention the change.
15369         * MODULES.html.sh (String handling <string.h>): Update.
15370         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15371         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15372         * lib/unicase/u16-casexfrm.c: Likewise.
15373         * lib/unicase/u32-casexfrm.c: Likewise.
15374         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15375         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15376         * lib/uninorm/u16-normxfrm.c: Likewise.
15377         * lib/uninorm/u32-normxfrm.c: Likewise.
15378         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15379         memxfrm.
15380         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15381         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15382         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15383         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15384         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15385         Suggested by Paul Eggert.
15386
15387 2010-08-14  Bruno Haible  <bruno@clisp.org>
15388
15389         Tests for module 'astrxfrm'.
15390         * modules/astrxfrm-tests: New file.
15391         * tests/test-astrxfrm.c: New file.
15392
15393         New module 'astrxfrm'.
15394         * lib/astrxfrm.h: New file.
15395         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15396         * modules/astrxfrm: New file.
15397
15398 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15399
15400         regex: Tweak doc.
15401         * doc/regex.texi (Overview): Don't mention regex.c.
15402         (GNU Regular Expression Compiling): Likewise.
15403         (Match-end-of-line Operator): Mention 'not_eol'.
15404
15405 2010-08-14  Brian Gough  <bjg@gnu.org>
15406             Bruno Haible  <bruno@clisp.org>
15407
15408         git-merge-changelog: add doc relating to use with bzr and hg.
15409         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15410
15411 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15412
15413         pthread: fix pthread.h creation for srcdir != builddir
15414         * modules/pthread (Makefile.am): Fix the rule to work also in a
15415         non-srcdir build.
15416
15417 2010-08-13  Karl Berry  <karl@gnu.org>
15418
15419         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15420         * doc/posix-*/*: force line break before @url of POSIX
15421         specifications.
15422         Suggested by Werner Lemberg.
15423
15424 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15425
15426         strtod: fix const diagnostic
15427         * lib/strtod.c (strtod): Don't assign const char * to char *,
15428         as this elicits a warning from GCC when warnings are enabled.
15429
15430 2010-08-10  Pádraig Brady <P@draigbrady.com>
15431         and Eric Blake  <eblake@redhat.com>
15432
15433         copy-acl: ignore ENOTSUP on HP-UX
15434         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15435         so that it is available for HP-UX.
15436         * lib/copy-acl.c (qcopy_acl): Use it.
15437         Reported by Patrick M. Callahan.
15438
15439 2010-08-10  Eric Blake  <eblake@redhat.com>
15440
15441         open, chown: relax license
15442         * modules/open (License): Change to LGPLv2+, with consent by all
15443         authors, for use in augeas.
15444         * modules/chown (License): Likewise.
15445         * modules/lchown (Likewise): Likewise.
15446         Requested by Adam Stokes.
15447
15448 2010-08-09  Karl Berry  <karl@gnu.org>
15449
15450         * build-aux/ar-lib: new file, import from Automake.
15451         * config/srclist.txt: autocheck for updates.
15452
15453 2010-08-09  Eric Blake  <eblake@redhat.com>
15454
15455         readlinkat: adjust client modules
15456         * modules/areadlinkat (Depends-on): Use readlinkat, not
15457         symlinkat.
15458         * modules/areadlinkat-with-size (Depends-on): Likewise.
15459
15460         mknod: be more vocal about danger of running tests as root
15461         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15462         root, since that is just asking for problems.
15463         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15464
15465         readlinkat: split into its own module
15466         * modules/symlinkat: Split readlinkat...
15467         * modules/readlinkat: ...into separate module.
15468         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15469         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15470         * lib/symlinkat.c (readlinkat): Move...
15471         * lib/readlinkat.c: ...into new file.
15472         * modules/symlinkat-tests: Split readlinkat test...
15473         * modules/readlinkat-tests: ...into separate module.
15474         * tests/test-symlinkat.c: Split...
15475         * tests/test-readlinkat.c: ...into new file.
15476         * NEWS: Document the split.
15477         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15478         * lib/unistd.in.h (readlinkat): Likewise.
15479         Suggested by Bruno Haible.
15480
15481 2010-08-08  Bruno Haible  <bruno@clisp.org>
15482
15483         memxfrm: Speed up.
15484         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15485         that usually only one call to strxfrm is necessary for each string
15486         part.
15487         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15488
15489 2010-08-07  Karl Berry  <karl@gnu.org>
15490
15491         * doc/posix-headers/limits.texi,
15492         * doc/posix-functions/malloc.texi,
15493         * doc/posix-functions/strsignal.texi: missing @item.
15494         * doc/ld-version-script.texi: spurious leading i.
15495         * doc/regex.texi (Interval Operators): no commas inside @var.
15496
15497 2010-08-01  Bruno Haible  <bruno@clisp.org>
15498
15499         Integrate the regex documentation.
15500         * doc/gnulib.texi: Define 'cn' index.
15501         (Regular expressions): New a chapter that includes regex.texi and
15502         regexprops-generic.texi.
15503         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15504         syntax.
15505
15506         Whitespace cleanup.
15507         * doc/regex.texi: Remove trailing spaces.
15508
15509         Add regex documentation.
15510         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15511         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15512         Written by Kathy A. Hargreaves and Karl Berry.
15513
15514 2010-08-01  Bruno Haible  <bruno@clisp.org>
15515
15516         link: Update documentation.
15517         * doc/posix-functions/link.texi: Update regarding Solaris.
15518
15519 2010-07-31  Bruno Haible  <bruno@clisp.org>
15520
15521         Update modules list.
15522         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15523         (String handling <string.h>): Add memcmp2, memxfrm.
15524         (Container data structures): Add xlist, xsublist, xoset.
15525         (Core language properties): Add alignof, unused-parameter.
15526         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15527         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15528         (Unibyte characters <ctype.h>): New section.
15529         (String handling <string.h>): New section.
15530         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15531         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15532         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15533         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15534         tan, tanh, tanl, y0, y1, yn.
15535         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15536         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15537         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15538         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15539         unlockpt, vdprintf, vdprintf-posix.
15540         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15541         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15542         xconcat-filename.
15543         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15544         getdtablesize, pipe2, pipe2-safer.
15545         (Security): New section.
15546         (Networking functions): Add accept4.
15547         (Signal handling): Add sigpipe.
15548         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15549         mbmemcasecoll.
15550         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15551         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15552         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15553         pipe-filter-ii.
15554         (Misc): Add argp-version-etc, login_tty, parse-duration.
15555
15556 2010-07-31  Bruno Haible  <bruno@clisp.org>
15557
15558         Improve doc in MODULES.html.
15559         * modules/linkat (Description): Add the word "function".
15560         * modules/mkfifo (Description): Likewise.
15561         * modules/mknod (Description): Likewise.
15562         * modules/remove (Description): Likewise.
15563         * modules/renameat (Description): Likewise.
15564         * modules/stat (Description): Likewise.
15565         * modules/symlink (Description): Likewise.
15566         * modules/unlink (Description): Likewise.
15567
15568 2010-07-31  Bruno Haible  <bruno@clisp.org>
15569
15570         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15571         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15572         option --enable/disable-c++ instead of --enable/disable-cxx.
15573         * NEWS: Mention the change.
15574
15575 2010-07-31  Bruno Haible  <bruno@clisp.org>
15576
15577         readlink, areadlink: Relax test a bit.
15578         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15579         alternative to ENOTDIR.
15580         * tests/test-areadlink.h (test_areadlink): Likewise.
15581         Reported by Rainer Tammer.
15582
15583 2010-07-31  Bruno Haible  <bruno@clisp.org>
15584
15585         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15586         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15587         character, perform the search using U_STRCHR.
15588         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15589         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15590         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15591         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15592         Suggested by Paolo Bonzini.
15593
15594 2010-07-31  Bruno Haible  <bruno@clisp.org>
15595
15596         unistr/u*-strstr: Fix dependencies.
15597         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15598         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15599         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15600
15601 2010-07-31  Bruno Haible  <bruno@clisp.org>
15602
15603         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15604         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15605         the beginning of the loop.
15606         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15607         cases in 'switch' statement.
15608
15609         unistr/u8-strchr: Fix several bugs.
15610         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15611         the string. When not found, return NULL, not a pointer near the end.
15612
15613         More tests for unistr/u8-strchr.
15614         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15615         that the function does not read past the first occurrence of the byte
15616         being searched.
15617         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15618         * tests/unistr/test-u16-strchr.c (main): New function.
15619         * tests/unistr/test-u32-strchr.c (main): New function.
15620
15621 2010-07-31  Bruno Haible  <bruno@clisp.org>
15622
15623         posix-modules: Ignore backup files of documentation files.
15624         * posix-modules: grep only through files named *.texi.
15625
15626 2010-07-31  Bruno Haible  <bruno@clisp.org>
15627
15628         symlinkat: Fix documentation.
15629         * doc/posix-functions/readlinkat.texi: Fix module name.
15630
15631 2010-07-31  Bruno Haible  <bruno@clisp.org>
15632
15633         fchownat: Replace also when chown has the trailing slash bug.
15634         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15635         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15636         introduced on 2010-04-10.
15637         Reported by Rainer Tammer.
15638
15639 2010-07-31  Bruno Haible  <bruno@clisp.org>
15640
15641         linkat: Work around AIX 7.1 bug.
15642         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15643         whether linkat handles trailing slash correctly. If not, replace linkat
15644         and define LINKAT_TRAILING_SLASH_BUG.
15645         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15646         check whether (fd1,file1) points to a directory if file1 or file2 ends
15647         in a slash. Code taken from lib/link.c.
15648         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15649         Reported by Rainer Tammer.
15650
15651 2010-07-31  Bruno Haible  <bruno@clisp.org>
15652
15653         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15654         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15655         This disables an xlc optimization that was causing wrong test results.
15656         Reported by Rainer Tammer.
15657
15658 2010-07-31  Bruno Haible  <bruno@clisp.org>
15659
15660         iconv: Work around AIX 6.1..7.1 bug.
15661         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15662         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15663         cross-compiling, guess no on all versions of AIX.
15664         Reported by Rainer Tammer.
15665
15666 2010-07-31  Bruno Haible  <bruno@clisp.org>
15667
15668         readlink: Relax test a bit.
15669         * tests/test-readlink.h (test_readlink): Allow different errno value
15670         when readlink is called with a file name that ends in / and refers to
15671         a file.
15672         Suggested by Eric Blake.
15673         Reported by Rainer Tammer.
15674
15675 2010-07-31  Bruno Haible  <bruno@clisp.org>
15676
15677         copysign: Does not require -lm on glibc systems.
15678         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15679         gl_COMMON_DOUBLE_MATHFUNC.
15680         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15681
15682 2010-07-31  Bruno Haible  <bruno@clisp.org>
15683
15684         duplocale: Work around AIX 7.1 bug.
15685         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15686         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15687         * lib/duplocale.c (rpl_duplocale): Update comment.
15688         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15689         Reported by Rainer Tammer.
15690
15691 2010-07-30  Bruno Haible  <bruno@clisp.org>
15692
15693         dirfd: Avoid link error on AIX 7.1.
15694         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15695         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15696         exist, set REPLACE_DIRFD.
15697         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15698         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15699         * doc/posix-functions/dirfd.texi: Update.
15700         Reported by Rainer Tammer.
15701
15702 2010-07-30  Eric Blake  <eblake@redhat.com>
15703
15704         strtod: next round of AIX fixes
15705         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15706         exponent.
15707         * tests/test-strtod.c (main): Enhance tests.
15708         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15709         Reported by Rainer Tammer.
15710
15711         futimens: fix configure check
15712         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15713         Reported by Bruno Haible.
15714
15715 2010-07-30  Bruno Haible  <bruno@clisp.org>
15716
15717         getline: Update regarding AIX.
15718         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15719         Reported by Rainer Tammer.
15720
15721 2010-07-30  Bruno Haible  <bruno@clisp.org>
15722
15723         wcwidth: Drop replacement on AIX 7.
15724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15725         AIX 7.
15726         Reported by Rainer Tammer.
15727
15728 2010-07-30  Bruno Haible  <bruno@clisp.org>
15729
15730         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15731         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15732         a 'char *'.
15733         Reported by Rainer Tammer.
15734
15735 2010-07-30  Bruno Haible  <bruno@clisp.org>
15736
15737         unlink: Update regarding AIX.
15738         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15739         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15740         Reported by Rainer Tammer.
15741
15742 2010-07-30  Bruno Haible  <bruno@clisp.org>
15743
15744         symlink: Update regarding AIX.
15745         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15746         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15747         Reported by Rainer Tammer.
15748
15749 2010-07-30  Bruno Haible  <bruno@clisp.org>
15750
15751         strndup: Update regarding AIX.
15752         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15753         AIX 7.
15754         Reported by Rainer Tammer.
15755
15756 2010-07-30  Bruno Haible  <bruno@clisp.org>
15757
15758         stat: Update regarding AIX.
15759         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15760         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15761         Reported by Rainer Tammer.
15762
15763 2010-07-30  Bruno Haible  <bruno@clisp.org>
15764
15765         truncl: Fix autoconf test.
15766         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15767         whether truncl works.
15768         Reported by Rainer Tammer.
15769
15770 2010-07-30  Bruno Haible  <bruno@clisp.org>
15771
15772         round: Update regarding AIX.
15773         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15774         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15775         Reported by Rainer Tammer.
15776
15777 2010-07-30  Bruno Haible  <bruno@clisp.org>
15778
15779         rename: Update regarding AIX.
15780         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
15781         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
15782         Reported by Rainer Tammer.
15783
15784 2010-07-30  Bruno Haible  <bruno@clisp.org>
15785
15786         printf.m4: Update regarding AIX.
15787         * m4/printf.m4: Update comments regarding AIX.
15788         Reported by Rainer Tammer.
15789
15790 2010-07-30  Bruno Haible  <bruno@clisp.org>
15791
15792         iconv: Update regarding AIX.
15793         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
15794         AIX 7.
15795         Reported by Rainer Tammer.
15796
15797 2010-07-30  Bruno Haible  <bruno@clisp.org>
15798
15799         getopt: Update regarding AIX.
15800         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
15801         no on AIX.
15802         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
15803         Reported by Rainer Tammer.
15804
15805 2010-07-30  Bruno Haible  <bruno@clisp.org>
15806
15807         ldexpl; Update regarding AIX.
15808         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
15809         on AIX 7.
15810         Reported by Rainer Tammer.
15811
15812 2010-07-30  Bruno Haible  <bruno@clisp.org>
15813
15814         frexpl: Update regarding AIX.
15815         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
15816         on AIX 7.
15817         Reported by Rainer Tammer.
15818
15819 2010-07-30  Bruno Haible  <bruno@clisp.org>
15820
15821         open, fopen: Update regarding AIX.
15822         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
15823         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15824         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
15825         * doc/posix-functions/fopen.texi: Likewise.
15826         Reported by Rainer Tammer.
15827
15828 2010-07-30  Bruno Haible  <bruno@clisp.org>
15829
15830         chown: Update doc regarding AIX.
15831         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
15832         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
15833         Reported by Rainer Tammer.
15834
15835 2010-07-30  Eric Blake  <eblake@redhat.com>
15836
15837         strtod: fix bug in replacement function on AIX
15838         * lib/strtod.c (strtod): Special case broken "0x" parse in
15839         underlying strtod.
15840         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
15841         * doc/posix-functions/strtod.texi (strtod): Likewise.
15842         Reported by Rainer Tammer.
15843
15844 2010-07-30  Bruno Haible  <bruno@clisp.org>
15845
15846         mbrlen: Fix cross-compilation guess for AIX.
15847         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
15848         guess. Leftover from 2008-12-22.
15849
15850 2010-07-30  Bruno Haible  <bruno@clisp.org>
15851
15852         mbrtowc: Fix cross-compilation guess for AIX.
15853         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
15854         guess. Leftover from 2008-12-21.
15855
15856 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
15857
15858         init.sh: work around trap limitation of some shells
15859         * tests/init.sh (setup_): Move exit trap outside of shell function.
15860
15861 2010-07-29  Eric Blake  <eblake@redhat.com>
15862
15863         strtod: aid debugging
15864         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
15865         understanding why strtod is rejected.
15866
15867 2010-07-28  Bruno Haible  <bruno@clisp.org>
15868
15869         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
15870         * lib/unistr/u8-chr.c: Include <string.h>.
15871         * tests/unistr/test-u8-chr.c: Likewise.
15872         * tests/unistr/test-u16-chr.c: Likewise.
15873         * tests/unistr/test-u32-chr.c: Likewise.
15874         * tests/unistr/test-u8-strchr.c: Likewise.
15875         * tests/unistr/test-u16-strchr.c: Likewise.
15876         * tests/unistr/test-u32-strchr.c: Likewise.
15877         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
15878         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
15879         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
15880         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
15881
15882 2010-07-28  Bruno Haible  <bruno@clisp.org>
15883
15884         Use spaces for indentation, not tabs.
15885         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15886
15887 2010-07-27  Bruno Haible  <bruno@clisp.org>
15888
15889         mbspcasecmp: Fix function specification.
15890         * lib/string.in.h (mbspcasecmp): Fix specification comment.
15891         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
15892         Reported by Eric Blake <eblake@redhat.com>.
15893
15894 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
15895
15896         timespec: use cast and not conditional, as truncation isn't possible
15897         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
15898         instead of a conditional.  Comment about the situation in more detail.
15899         This undoes most of the 2009-10-29 patch.
15900
15901 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
15902
15903         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
15904         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
15905         * lib/unistr/u8-strchr.c: Likewise.
15906         * modules/unistr/u8-chr: Depend on memchr.
15907
15908         unistr/u*-strchr: add tests
15909         * modules/unistr/u8-strchr-tests: New file.
15910         * modules/unistr/u16-strchr-tests: New file.
15911         * modules/unistr/u32-strchr-tests: New file.
15912         * tests/unistr/test-strchr.h: New file.
15913         * tests/unistr/test-u8-strchr.c: New file.
15914         * tests/unistr/test-u16-strchr.c: New file.
15915         * tests/unistr/test-u32-strchr.c: New file.
15916
15917         unistr/u*-chr: test multibyte sequences more
15918         * tests/unistr/test-chr.h: Do complete testing of the characters in the
15919         test vector.
15920         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
15921         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
15922         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
15923
15924         unistr/u*-chr: test multibyte sequences
15925         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
15926
15927         unistr/u*-chr: prepare for multibyte tests
15928         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
15929         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
15930         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
15931         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
15932         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
15933         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
15934
15935 2010-07-18  Bruno Haible  <bruno@clisp.org>
15936
15937         unistr/u8-strchr: Optimize non-ASCII argument case.
15938         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
15939         because the first byte often matches anyway.
15940         Reported by Pádraig Brady <P@draigbrady.com>.
15941
15942 2010-07-15  Karl Berry  <karl@gnu.org>
15943
15944         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
15945
15946 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
15947
15948         getcwd: on Solaris, work better if ancestors are inaccessible
15949         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
15950         buffer and size, try again with a large buffer.  This works better
15951         on Solaris, since its getcwd succeeds even if the path to the root
15952         is inaccessible, and this is helpful in common cases such as .zfs
15953         hidden directories.  Problem reported by J Chapman Flack in
15954         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
15955         Use system getcwd if it's declared, not merely if it's partly
15956         working; use the partly-working test only to avoid needless effort
15957         if the system getcwd fails.
15958         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
15959         comment that was already obsolete and is now even more obsolete.
15960         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
15961         now might call strdup.
15962
15963 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
15964
15965         pthread: Add enough so that coreutils/src/sort.c compiles.
15966         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
15967         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
15968         gnulib. Include <sched.h> and <time.h>, as per POSIX.
15969         Include <sys/types.h>, in case it defines pthread_t.
15970         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
15971         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
15972         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
15973         (pthread_rwlockattr_t, pthread_spinlock_t):
15974         New typedefs, if HAVE_PTHREAD_T is not defined.
15975         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
15976         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
15977         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
15978         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
15979         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
15980         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
15981         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
15982         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
15983         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
15984         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
15985         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
15986         New macros.
15987         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
15988         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
15989         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
15990         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
15991         (pthread_spin_unlock): New dummy functions.
15992         (pthread_create): Return EAGAIN; don't set errno.
15993         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
15994         require AC_C_INLINE.
15995         * modules/pthread (Depends-on): Add sched, time.
15996         (pthread.h): Use AM_V_GEN.
15997
15998 2010-07-13  Bruno Haible  <bruno@clisp.org>
15999
16000         striconveh: Don't malloc memory if the result buffer is sufficient.
16001         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
16002         buffer if its size is sufficient.
16003         Reported by Ludovic Courtès <ludo@gnu.org>.
16004
16005 2010-07-13  Bruno Haible  <bruno@clisp.org>
16006
16007         strtod: Add safety check.
16008         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
16009
16010 2010-07-12  Bruno Haible  <bruno@clisp.org>
16011
16012         Unify tests that set gl_cv_func_ldexpl_no_libm.
16013         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
16014         gl_FUNC_LDEXPL.
16015         (gl_FUNC_LDEXPL): Invoke it.
16016         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16017
16018 2010-07-12  Bruno Haible  <bruno@clisp.org>
16019
16020         Unify tests that set gl_cv_func_ldexp_no_libm.
16021         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
16022         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
16023         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16024         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16025         * modules/strtod (Files): Add m4/ldexp.m4.
16026
16027 2010-07-12  Bruno Haible  <bruno@clisp.org>
16028
16029         Unify tests that set gl_cv_func_frexpl_no_libm.
16030         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
16031         gl_FUNC_FREXPL_NO_LIBM.
16032         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
16033         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16034
16035 2010-07-12  Bruno Haible  <bruno@clisp.org>
16036
16037         Unify tests that set gl_cv_func_frexp_no_libm.
16038         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
16039         gl_FUNC_FREXP_NO_LIBM.
16040         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
16041         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16042
16043 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16044
16045         memcoll: clarify sizes versus lengths, document better, and tweak perf
16046         * lib/memcoll.c (strcoll_loop, memcoll0):
16047         Improve quality of descriptive comments.  Name variables
16048         consistently as to whether they are lengths (which do not include
16049         terminating null) versus sizes (which do).
16050         * lib/xmemcoll.c (xmemcoll0): Likewise.
16051         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
16052         returned when s1size == 0; this is easier to compile and saves
16053         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
16054
16055 2010-07-12  Bruno Haible  <bruno@clisp.org>
16056
16057         Tests for module '_Exit'.
16058         * modules/_Exit-tests: New file.
16059         * tests/test-_Exit.sh: New file.
16060         * tests/test-_Exit.c: New file.
16061
16062         New module '_Exit'.
16063         * lib/stdlib.in.h (__attribute__): New macro.
16064         (_Exit): New declaration.
16065         * lib/_Exit.c: New file.
16066         * m4/_Exit.m4: New file.
16067         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
16068         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
16069         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
16070         * modules/_Exit: New file.
16071         * tests/test-stdlib-c++.cc (_Exit): Check signature.
16072         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
16073
16074 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16075
16076         strtod: make it more-accurate typically, and don't require libm
16077         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
16078         Include limits.h.  Don't include string.h.
16079         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
16080         (locale_isspace): New function, so that no casts are needed to
16081         check whether *s is a space.
16082         (ldexp): Provide an unused dummy if not available.
16083         (scale_radix_exp, parse_number, underlying_strtod): New functions.
16084         (strtod): Use them.  This implementation prefers to use the
16085         underlying strtod if available, falling back on our own code
16086         only to fix known bugs.  This is more likely to produce an
16087         accurate result.  Also, it avoids the use of libm functions.
16088         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
16089         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
16090         was absent, but it caused a test failure with coreutils.
16091         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
16092         with libm.
16093         * modules/strtod (Makefile.am, Link): libm is no longer needed.
16094         * modules/strtod-tests (Makefile.am): Likewise.
16095
16096 2010-07-11  Pádraig Brady  <P@draigBrady.com>
16097             Bruno Haible  <bruno@clisp.org>
16098
16099         unistr/u8-strchr: Optimize ASCII argument case.
16100         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
16101
16102 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16103
16104         (x)memcoll: minor tweaks
16105         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
16106         is after the type that it qualifies.
16107         (memcoll0): Likewise.
16108         * lib/memcoll.h (memcoll0): Likewise.
16109         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
16110         * lib/xmemcoll.h (xmemcoll0): Likewise.
16111         * lib/memcoll.c (memcoll0): Correct the comment.  This function
16112         differs from memcoll in that the NUL byte is part of the argument.
16113         Omit the abort-checks, as performance is a real issue here.  Plus,
16114         the checks were wrong anyway (an off-by-one error).  Omit local
16115         variable 'diff', as it's a bit clearer that way.
16116         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
16117         no longer needed.
16118
16119 2010-07-08  Chen Guo <chenguo4@yahoo.com>
16120
16121         (x)memcoll: speedup when input is known to be NUL delimited
16122         * lib/memcoll.c: Include stdlib.
16123         (memcoll0): New function.
16124         (strcoll_loop): New function, refactored for use in both memcoll
16125         and memcoll0.
16126         * lib/memcoll.h (memcoll0): Add prototype.
16127         * lib/xmemcoll.c (xmemcoll0): New function.
16128         (collate_error): New function, refactored for use in both xmemcoll
16129         and xmemcoll0.
16130         * lib/xmemcoll.h (xmemcoll0): Add prototype.
16131         * m4/memcoll.m4: add inline invocation.
16132
16133 2010-07-06  Pádraig Brady  <P@draigBrady.com>
16134
16135         * build-aux/bootstrap: Remove any local translations
16136         from the translation project synchronization directory,
16137         so that local only translations are not distributed.
16138
16139 2010-07-04  Bruno Haible  <bruno@clisp.org>
16140
16141         fsusage: Clarify which code applies to which platforms.
16142         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
16143         platform.
16144         * lib/fsusage.c (get_fs_usage): Likewise.
16145
16146 2010-07-04  Bruno Haible  <bruno@clisp.org>
16147
16148         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
16149         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
16150         Reported by Martin Lambers <marlam@marlam.de>.
16151
16152 2010-07-04  Jim Meyering  <meyering@redhat.com>
16153
16154         hash: once again explicitly disallow insertion of NULL
16155         * lib/hash.c (hash_insert0): Reinstate just-removed test:
16156         inserting a NULL pointer cannot work with these functions.
16157         Add a comment with details.
16158         This reverts part of the 2010-07-01 commit, 5bef1a35
16159         "hash: extend module to deal with non-pointer keys".
16160
16161 2010-07-01  Bruno Haible  <bruno@clisp.org>
16162
16163         stdbool: Update doc.
16164         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
16165         Info from Christian Weisgerber <naddy@mips.inka.de>.
16166
16167 2010-07-01  Jim Meyering  <meyering@redhat.com>
16168
16169         hash: extend module to deal with non-pointer keys
16170         * lib/hash.c (hash_insert0): New interface, much like hash_insert
16171         but that allows insertion of non-pointer entries.
16172         Do not disallow an ENTRY value of NULL.
16173         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
16174         * lib/hash.h (hash_insert0): Declare.
16175
16176 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16177
16178         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
16179         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
16180         not present (i.e. with autoconf 2.59 and when using gettextize, not
16181         gnulib), require AC_GNU_SOURCE instead.
16182
16183 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
16184
16185         idpriv-drop: Fix tests.
16186         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
16187         not to the test-idpriv-droptemp program.
16188
16189 2010-06-29  Bruno Haible  <bruno@clisp.org>
16190
16191         string: Fix syntax error with g++ 2.96.
16192         * lib/string.in.h (__pure__): Remove definition.
16193         (_GL_ATTRIBUTE_PURE): New macro.
16194         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
16195         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
16196         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16197
16198 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
16199
16200         unitypes: Fix bug introduced on 2010-05-18.
16201         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
16202
16203 2010-06-22  Eric Blake  <eblake@redhat.com>
16204
16205         memmem: slight optimization
16206         * lib/str-two-way.h (critical_factorization): Update comments.
16207         Reduce work during factorization phase.
16208         Reported by Carlos Bueno <carlos@bueno.org>.
16209
16210 2010-06-21  Bruno Haible  <bruno@clisp.org>
16211
16212         Fix HAVE_CALLOC_POSIX misnomer.
16213         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16214         !HAVE_CALLOC_POSIX.
16215         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16216         HAVE_CALLOC_POSIX.
16217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16218         instead of HAVE_CALLOC_POSIX.
16219         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16220         HAVE_CALLOC_POSIX.
16221
16222         Use modern idiom for calloc() replacement.
16223         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16224         AC_FUNC_CALLOC.
16225         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16226         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16227         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16228         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16229         (gl_REPLACE_CALLOC): New macro.
16230
16231 2010-06-21  Bruno Haible  <bruno@clisp.org>
16232
16233         Fix HAVE_REALLOC_POSIX misnomer.
16234         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16235         !HAVE_REALLOC_POSIX.
16236         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16237         HAVE_REALLOC_POSIX.
16238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16239         instead of HAVE_REALLOC_POSIX.
16240         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16241         HAVE_REALLOC_POSIX.
16242
16243         Use modern idiom for realloc() replacement.
16244         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16245         AC_FUNC_REALLOC.
16246         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16247         Autoconf's AC_FUNC_REALLOC.
16248         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16249         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16250         (gl_REPLACE_REALLOC): New macro.
16251         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16252
16253 2010-06-21  Bruno Haible  <bruno@clisp.org>
16254
16255         Fix HAVE_MALLOC_POSIX misnomer.
16256         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16257         !HAVE_MALLOC_POSIX.
16258         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16259         HAVE_MALLOC_POSIX.
16260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16261         instead of HAVE_MALLOC_POSIX.
16262         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16263         HAVE_MALLOC_POSIX.
16264
16265         Use modern idiom for malloc() replacement.
16266         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16267         AC_FUNC_MALLOC.
16268         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16269         Autoconf's AC_FUNC_MALLOC.
16270         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16271         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16272         (gl_REPLACE_MALLOC): New macro.
16273         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16274
16275 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16276
16277         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16278         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16279         This macro takes 3 arguments, not 4.
16280
16281 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16282
16283         ipv6: fix detection under mingw
16284         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16285         in6_addr.
16286
16287 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16288
16289         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16290         that strtod() works when cross-compiling to a glibc version known
16291         to work.
16292
16293 2010-06-15  Bruno Haible  <bruno@clisp.org>
16294
16295         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16296
16297 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16298
16299         select: Correct timeout.
16300         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16301
16302 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16303
16304         git-version-gen: init shell var to avoid env var influence
16305         * build-aux/git-version-gen (v): Init shell var to empty.
16306
16307 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16308
16309         priv-set: Don't assume that priv.h exists merely because getppriv does.
16310         See Jan Andersen's bug report about AIX 5L in
16311         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16312         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16313         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16314         * lib/priv-set.h: Likewise.
16315         * tests/test-priv-set.c: Likewise.
16316
16317 2010-06-13  Bruno Haible  <bruno@clisp.org>
16318
16319         relocatable: Make it easier to test whether to install wrappers.
16320         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16321         RELOCATABLE_VIA_WRAPPER.
16322
16323 2010-06-13  Bruno Haible  <bruno@clisp.org>
16324
16325         gnulib-tool: Display specified modules and dependencies differently.
16326         * gnulib-tool (func_show_module_list): New function.
16327         (func_import, func_create_testdir): Invoke it.
16328         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16329
16330 2010-06-13  Bruno Haible  <bruno@clisp.org>
16331
16332         gnulib-tool: Align code of func_import and func_create_testdir.
16333         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16334         specified_modules.
16335
16336 2010-06-12  Jim Meyering  <meyering@redhat.com>
16337
16338         test-inttostr: avoid spurious failure on Solaris 9
16339         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16340         to accept "%ju".  Reported by Bruno Haible.
16341
16342 2010-06-11  Jim Meyering  <meyering@redhat.com>
16343
16344         test-sys_socket: mark variables as used more readably
16345         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16346         as "used" explicitly via (void) statement casts.  This is more
16347         readable than using them in an artificial return expression.
16348         Suggestion from Bruno Haible.
16349
16350 2010-06-11  Bruno Haible  <bruno@clisp.org>
16351
16352         Avoid some more warnings from "gcc -Wwrite-strings".
16353         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16354         to 'const char *'.
16355         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16356         * tests/test-c-strcasestr.c (main): Likewise.
16357         * tests/test-mbscasestr1.c (main): Likewise.
16358         * tests/test-mbscasestr2.c (main): Likewise.
16359         * tests/test-memmem.c (main): Likewise.
16360         * tests/test-strstr.c (main): Likewise.
16361         * tests/test-strcasestr.c (main): Likewise.
16362
16363 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16364
16365         init.sh: change framework_failure_ to fail with status 99, not 1
16366         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16367         automake's parallel-tests rule that this is an unexpected failure,
16368         even if the test is listed in XFAIL_TESTS.
16369
16370 2010-06-11  Jim Meyering  <meyering@redhat.com>
16371
16372         test-inttostr: avoid warnings about 4-6KB literal strings
16373         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16374         Include "macros.h", for its definition of ASSERT.
16375         (CK): s/assert/ASSERT/
16376         * modules/inttostr-tests (Files): Add macros.h.
16377
16378         init.sh: don't use $ME_ or skip_ before they are defined
16379         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16380         their first uses.  Also hoist their companions: warn_, fail_,
16381         framework_failure_, $stderr_fileno.  Prompted by a patch from
16382         Stefano Lattarini.
16383
16384         test-sys_socket: avoid set-but-not-used warnings from gcc
16385         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16386         avoid warning about set-but-not-used variables.
16387
16388         test-xvasprintf: avoid 'const' discard warnings
16389         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16390         "const" when assigning from literal strings.
16391         (test_xasprintf): Add "void" in function argument list to placate
16392         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16393
16394         tests: avoid compilation warnings in argmatch and exclude tests...
16395         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16396         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16397         Since it always exits, declare with the "noreturn" attribute.
16398         * tests/test-argmatch.c: Likewise.
16399
16400         tests: avoid 'const' discard warnings in mbsstr tests
16401         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16402         * tests/test-mbsstr2.c (main): Likewise.
16403
16404         test-verify: avoid warning from gcc's -Wmissing-declarations
16405         * tests/test-verify.c (function): Declare to be static.
16406
16407         test-inttostr.c: include <string.h> for use of strcmp
16408         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16409
16410         test-linkat: avoid failed assertion on "other" architectures
16411         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16412         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16413         sparc: https://bugs.launchpad.net/bugs/591968
16414
16415 2010-06-11  Jim Meyering  <meyering@redhat.com>
16416
16417         printf.m4: avoid autoconf's "Expanded Before Required" warning
16418         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16419         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16420         autoconf warning.
16421
16422 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16423
16424         Replacement header templates are now named with ".in", not "_".
16425         * doc/gnulib-intro.texi: Correct.
16426
16427 2010-06-10  Jim Meyering  <meyering@redhat.com>
16428
16429         inttostr-tests: depend on snprintf, not snprintf-posix
16430         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16431         snprintf-posix, to avoid this aclocal failure:
16432           missing file gnulib-tests/vasnprintf.c
16433           configure.ac:45: error: expected source file, required through \
16434           AC_LIBSOURCES, not found
16435
16436 2010-06-10  Jim Meyering  <meyering@redhat.com>
16437
16438         inttostr: add a new function, inttostr, and tests
16439         The namesake function was not available.  The existence of the
16440         template file, inttostr.c makes its addition nontrivial.
16441         * lib/anytostr.c: Rename from inttostr.c.
16442         (anytostr): Rename from inttostr.
16443         * lib/inttostr.c: New file.
16444         * modules/inttostr (Files): Add anytostr.c.
16445         (Makefile.am): Set lib_SOURCES instead of ...
16446         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16447         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16448         * lib/offtostr.c: Likewise.
16449         * lib/uinttostr.c: Likewise.
16450         * lib/umaxtostr.c: Likewise.
16451         * modules/inttostr-tests: New file.
16452         * tests/test-inttostr.c: New file.  Test these functions.
16453
16454 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16455             Bruno Haible  <bruno@clisp.org>
16456
16457         Add "Extending Gnulib" chapter to manual.
16458         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16459         chapter.
16460         (Extending Gnulib): New chapter.
16461         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16462         chapter.
16463
16464 2010-06-09  Bruno Haible  <bruno@clisp.org>
16465
16466         Avoid relocwrapper link errors due to gnulib replacement functions.
16467         * lib/areadlink.c: Use the system's malloc, realloc functions.
16468         (areadlink): Set errno to ENOMEM explicitly.
16469         * modules/areadlink (Depends-on): Remove malloc-posix.
16470         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16471
16472 2010-06-09  Bruno Haible  <bruno@clisp.org>
16473
16474         Avoid relocwrapper link errors due to gnulib replacement functions.
16475         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16476         * lib/malloca.c: Likewise.
16477         * lib/relocatable.c: Likewise.
16478         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16479         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16480         * lib/setenv.c: Use the system's malloc, realloc functions.
16481         * lib/strerror.c: Use the system's sprintf function.
16482         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16483
16484 2010-06-04  Bruno Haible  <bruno@clisp.org>
16485
16486         Prefer documented low-level autoconf macro names.
16487         * m4/lib-link.m4: Use m4_translit instead of translit.
16488         * m4/environ.m4: Likewise.
16489         * m4/mathfunc.m4: Likewise.
16490         * m4/onceonly.m4: Likewise.
16491         * m4/stdint.m4: Likewise.
16492         Suggested by Eric Blake.
16493
16494 2010-06-04  Martin Lambers  <marlam@marlam.de>
16495             Bruno Haible  <bruno@clisp.org>
16496
16497         havelib: Allow library names with '+' characters.
16498         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16499         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16500
16501 2010-06-09  Bruno Haible  <bruno@clisp.org>
16502
16503         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16504         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16505         realloc failed.
16506
16507 2010-06-08  Peter Simons  <simons@cryp.to>
16508
16509         maint.mk: make the news-check rule more configurable
16510         * top/maint.mk (news-check-lines-spec): New variable.
16511         (news-check): Use "sed -n 1,10p" in place of "head".
16512
16513 2010-06-07  Jim Meyering  <meyering@redhat.com>
16514
16515         do-release-commit-and-tag: fix typo in --help
16516         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16517
16518         regex: avoid new dead-code warning with gcc-4.6.0
16519         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16520         if-block containing a while-loop.  It's been unused for at least
16521         5 years.
16522
16523 2010-06-05  Bruno Haible  <bruno@clisp.org>
16524
16525         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16526         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16527
16528 2010-06-04  Bruno Haible  <bruno@clisp.org>
16529
16530         Update to GNU gettext 0.18.1.
16531         * modules/gettext (configure.ac): Require gettext infrastructure from
16532         version 0.18.1.
16533
16534 2010-06-03  Bruno Haible  <bruno@clisp.org>
16535
16536         Don't use AC_LIBOBJ with file names in subdirectories.
16537         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16538         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16539         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16540         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16541         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16542         gl_LIBUNISTRING_LIBSOURCE.
16543         (Makefile.am): Augment lib_SOURCES here, conditionally.
16544         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16545
16546 2010-06-03  Bruno Haible  <bruno@clisp.org>
16547
16548         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16549         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16550         expansion does not end with a newline.
16551         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16552         unnecessary newline.
16553
16554 2010-06-03  Bruno Haible  <bruno@clisp.org>
16555
16556         Reduce dependencies.
16557         * tests/test-quotearg.h: New file, extracted from
16558         tests/test-quotearg.c.
16559         * tests/test-quotearg-simple.c: New file, extracted from
16560         tests/test-quotearg.c.
16561         * tests/test-quotearg.c: Don't include <ctype.h>.
16562         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16563         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16564         use_quote_double_quotes, use_quotearg_colon): Moved to
16565         tests/test-quotearg.h.
16566         (results_g, flag_results, custom_quotes, custom_results): Moved
16567         to tests/test-quotearg-simple.c.
16568         (main): Moved the part that does not depend on gettext to
16569         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16570         performed.
16571         * modules/quotearg-simple: New file.
16572         * modules/quotearg-simple-tests: New file.
16573         * modules/quotearg (Depends-on): Add quotearg-simple.
16574         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16575         (Files): Add tests/test-quotearg.h.
16576         Reported by Paolo Bonzini.
16577
16578 2010-06-03  Bruno Haible  <bruno@clisp.org>
16579
16580         Reduce dependencies.
16581         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16582
16583 2010-06-03  Bruno Haible  <bruno@clisp.org>
16584
16585         time: Undefine more broken macros.
16586         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16587         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16588         Reported by Eric Blake.
16589
16590 2010-06-03  Bruno Haible  <bruno@clisp.org>
16591
16592         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16593         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16594         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16595         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16596         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16597         Reported by Ludovic Courtès <ludo@gnu.org>.
16598
16599 2010-06-02  Eric Blake  <eblake@redhat.com>
16600
16601         time: work with mingw + pthreads-win32 library
16602         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16603         if timespec is defined only in pthread.h.
16604         * modules/time (Makefile.am): Substitute it.
16605         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16606         <pthread.h>, when needed.
16607         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16608         from the library.
16609
16610 2010-05-31  Bruno Haible  <bruno@clisp.org>
16611
16612         Avoid expanding two macros in the wrong order.
16613         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16614         gl_LIBUNISTRING if it is defined.
16615         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16616         autoconf >= 2.64.
16617         Reported by Ludovic Courtès <ludo@gnu.org>.
16618
16619 2010-05-27  Jim Meyering  <meyering@redhat.com>
16620
16621         maint.mk: also prohibit "#undef" of always-defined symbols
16622         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16623         Allow more than one space before the symbol name.
16624         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16625         the regexp uses alternation.
16626
16627 2010-05-26  Eric Blake  <eblake@redhat.com>
16628
16629         maint.mk: avoid echo -e
16630         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16631         Convert all uses of echo -* to printf.
16632         Reported by Matthias Bolte.
16633
16634 2010-05-25  Bruno Haible  <bruno@clisp.org>
16635
16636         Update to GNU gettext 0.18, part 2.
16637         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16638         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16639
16640 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16641
16642         Add missing include in test-pwrite.c.
16643         * tests/test-pwrite.c: Include string.h, for strcmp.
16644
16645 2010-05-24  Bruno Haible  <bruno@clisp.org>
16646
16647         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16648
16649 2010-05-24  Bruno Haible  <bruno@clisp.org>
16650
16651         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16652         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16653         iconveh_error argument.
16654         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16655         U_STRCONV_TO_LOCALE.
16656         * lib/unistr/u16-strcoll.c: Likewise.
16657         * lib/unistr/u32-strcoll.c: Likewise.
16658         * modules/unistr/u8-strcoll (Depends-on): Add
16659         uniconv/u8-strconv-to-enc, localcharset. Remove
16660         uniconv/u8-strconv-to-locale.
16661         (configure.ac): Bump version number.
16662         * modules/unistr/u16-strcoll (Depends-on): Add
16663         uniconv/u16-strconv-to-enc, localcharset. Remove
16664         uniconv/u16-strconv-to-locale.
16665         (configure.ac): Bump version number.
16666         * modules/unistr/u32-strcoll (Depends-on): Add
16667         uniconv/u32-strconv-to-enc, localcharset. Remove
16668         uniconv/u32-strconv-to-locale.
16669         (configure.ac): Bump version number.
16670
16671 2010-05-24  Bruno Haible  <bruno@clisp.org>
16672
16673         Avoid a test failure on NetBSD 5.0.
16674         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16675         an iconv() bug.
16676
16677 2010-05-24  Bruno Haible  <bruno@clisp.org>
16678
16679         Adjust #include directive style.
16680         * modules/regex (Includes): Recommend to write <regex.h>.
16681
16682 2010-05-24  Bruno Haible  <bruno@clisp.org>
16683
16684         regex: Don't require alloca.
16685         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16686         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16687         only inside if (0).
16688
16689 2010-05-23  Jim Meyering  <meyering@redhat.com>
16690
16691         test-renameat.c: include <sys/stat.h>
16692         * tests/test-renameat.c: Include <sys/stat.h>; required for
16693         definition of S_IS* macros.
16694
16695 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16696
16697         Update maintainer documentation for 'relocatable-prog' module.
16698         * doc/relocatable-maint.texi: Update.
16699         Comments by Bruno Haible.
16700
16701 2010-05-23  Bruno Haible  <bruno@clisp.org>
16702
16703         git-merge-changelog: Enable --split-merged-entry by default.
16704         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16705         (usage): Don't mention this option any more.
16706         Reported by Ralf Wildenhues.
16707
16708 2010-05-23  Jim Meyering  <meyering@redhat.com>
16709
16710         test-pwrite: do not leave behind a test file named "out"
16711         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16712         The trivial-looking use of init.sh is really necessary.
16713         It ensures that the temporary file, "out", is created in
16714         a temporary directory, and removed upon termination.
16715         * tests/test-pwrite.sh: Re-add file.
16716         * modules/pwrite-tests: Reference it.
16717
16718 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16719
16720         Fix output redirection buglet in init.sh.
16721         * tests/init.sh: Fix redirection of stderr.
16722
16723 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16724
16725         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16726
16727 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16728
16729         * modules/valgrind-tests: New file.
16730         * m4/valgrind-tests.m4: New file.
16731         * doc/valgrind-tests.texi: New file.
16732         * doc/gnulib.texi (Running self-tests under valgrind): New
16733         section.
16734
16735 2010-05-19  Bruno Haible  <bruno@clisp.org>
16736
16737         Clean up dead code in recent commit.
16738         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16739         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16740         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16741         Suggested by Paolo Bonzini.
16742
16743 2010-05-19  Bruno Haible  <bruno@clisp.org>
16744
16745         Avoid valgrind error reports from libunistring.
16746         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16747         * modules/libunistring (Files): Add it.
16748         * modules/libunistring-optional (Files): Likewise.
16749
16750 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16751             Bruno Haible  <bruno@clisp.org>
16752
16753         New module 'libunistring-optional'.
16754         * modules/libunistring-optional: New file.
16755         * m4/libunistring-base.m4: New file.
16756         * m4/libunistring-optional.m4: New file.
16757         * lib/unicase.in.h: Renamed from lib/unicase.h.
16758         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16759         * lib/unictype.in.h: Renamed from lib/unictype.h.
16760         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16761         * lib/uniname.in.h: Renamed from lib/uniname.h.
16762         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16763         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16764         * lib/unistr.in.h: Renamed from lib/unistr.h.
16765         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16766         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16767         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16768         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16769         gl_LIBUNISTRING. If the library was found, determine the installed
16770         version and set LIBUNISTRING_VERSION.
16771         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16772         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16773         handle a configuration option --with-included-libunistring.
16774         * modules/libunistring (Files): Add m4/absolute-header.m4.
16775         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16776         Add m4/libunistring-base.m4.
16777         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16778         (Makefile.am): Build unicase.h from unicase.in.h.
16779         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
16780         Add m4/libunistring-base.m4.
16781         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16782         (Makefile.am): Build uniconv.h from uniconv.in.h.
16783         * modules/unictype/base (Files): Use unictype.in.h instead of
16784         unictype.h. Add m4/libunistring-base.m4.
16785         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16786         (Makefile.am): Build unictype.h from unictype.in.h.
16787         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
16788         Add m4/libunistring-base.m4.
16789         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16790         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
16791         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
16792         Add m4/libunistring-base.m4.
16793         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16794         (Makefile.am): Build uniname.h from uniname.in.h.
16795         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
16796         Add m4/libunistring-base.m4.
16797         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16798         (Makefile.am): Build uninorm.h from uninorm.in.h.
16799         * modules/unistdio/base (Files): Use unistdio.in.h instead of
16800         unistdio.h. Add m4/libunistring-base.m4.
16801         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16802         (Makefile.am): Build unistdio.h from unistdio.in.h.
16803         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
16804         Add m4/libunistring-base.m4.
16805         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16806         (Makefile.am): Build unistr.h from unistr.in.h.
16807         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
16808         Add m4/libunistring-base.m4.
16809         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16810         (Makefile.am): Build unitypes.h from unitypes.in.h.
16811         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
16812         Add m4/libunistring-base.m4.
16813         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16814         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
16815         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
16816         uniwidth.h. Add m4/libunistring-base.m4.
16817         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16818         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
16819         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
16820         instead of augmenting lib_SOURCES.
16821         * modules/unicase/empty-suffix-context: Likewise.
16822         * modules/unicase/locale-language: Likewise.
16823         * modules/unicase/tolower: Likewise.
16824         * modules/unicase/totitle: Likewise.
16825         * modules/unicase/toupper: Likewise.
16826         * modules/unicase/u8-casecmp: Likewise.
16827         * modules/unicase/u8-casecoll: Likewise.
16828         * modules/unicase/u8-casefold: Likewise.
16829         * modules/unicase/u8-casexfrm: Likewise.
16830         * modules/unicase/u8-ct-casefold: Likewise.
16831         * modules/unicase/u8-ct-tolower: Likewise.
16832         * modules/unicase/u8-ct-totitle: Likewise.
16833         * modules/unicase/u8-ct-toupper: Likewise.
16834         * modules/unicase/u8-is-cased: Likewise.
16835         * modules/unicase/u8-is-casefolded: Likewise.
16836         * modules/unicase/u8-is-lowercase: Likewise.
16837         * modules/unicase/u8-is-titlecase: Likewise.
16838         * modules/unicase/u8-is-uppercase: Likewise.
16839         * modules/unicase/u8-prefix-context: Likewise.
16840         * modules/unicase/u8-suffix-context: Likewise.
16841         * modules/unicase/u8-tolower: Likewise.
16842         * modules/unicase/u8-totitle: Likewise.
16843         * modules/unicase/u8-toupper: Likewise.
16844         * modules/unicase/u16-casecmp: Likewise.
16845         * modules/unicase/u16-casecoll: Likewise.
16846         * modules/unicase/u16-casefold: Likewise.
16847         * modules/unicase/u16-casexfrm: Likewise.
16848         * modules/unicase/u16-ct-casefold: Likewise.
16849         * modules/unicase/u16-ct-tolower: Likewise.
16850         * modules/unicase/u16-ct-totitle: Likewise.
16851         * modules/unicase/u16-ct-toupper: Likewise.
16852         * modules/unicase/u16-is-cased: Likewise.
16853         * modules/unicase/u16-is-casefolded: Likewise.
16854         * modules/unicase/u16-is-lowercase: Likewise.
16855         * modules/unicase/u16-is-titlecase: Likewise.
16856         * modules/unicase/u16-is-uppercase: Likewise.
16857         * modules/unicase/u16-prefix-context: Likewise.
16858         * modules/unicase/u16-suffix-context: Likewise.
16859         * modules/unicase/u16-tolower: Likewise.
16860         * modules/unicase/u16-totitle: Likewise.
16861         * modules/unicase/u16-toupper: Likewise.
16862         * modules/unicase/u32-casecmp: Likewise.
16863         * modules/unicase/u32-casecoll: Likewise.
16864         * modules/unicase/u32-casefold: Likewise.
16865         * modules/unicase/u32-casexfrm: Likewise.
16866         * modules/unicase/u32-ct-casefold: Likewise.
16867         * modules/unicase/u32-ct-tolower: Likewise.
16868         * modules/unicase/u32-ct-totitle: Likewise.
16869         * modules/unicase/u32-ct-toupper: Likewise.
16870         * modules/unicase/u32-is-cased: Likewise.
16871         * modules/unicase/u32-is-casefolded: Likewise.
16872         * modules/unicase/u32-is-lowercase: Likewise.
16873         * modules/unicase/u32-is-titlecase: Likewise.
16874         * modules/unicase/u32-is-uppercase: Likewise.
16875         * modules/unicase/u32-prefix-context: Likewise.
16876         * modules/unicase/u32-suffix-context: Likewise.
16877         * modules/unicase/u32-tolower: Likewise.
16878         * modules/unicase/u32-totitle: Likewise.
16879         * modules/unicase/u32-toupper: Likewise.
16880         * modules/unicase/ulc-casecmp: Likewise.
16881         * modules/unicase/ulc-casecoll: Likewise.
16882         * modules/unicase/ulc-casexfrm: Likewise.
16883         * modules/uniconv/u8-conv-from-enc: Likewise.
16884         * modules/uniconv/u8-conv-to-enc: Likewise.
16885         * modules/uniconv/u8-strconv-from-enc: Likewise.
16886         * modules/uniconv/u8-strconv-from-locale: Likewise.
16887         * modules/uniconv/u8-strconv-to-enc: Likewise.
16888         * modules/uniconv/u8-strconv-to-locale: Likewise.
16889         * modules/uniconv/u16-conv-from-enc: Likewise.
16890         * modules/uniconv/u16-conv-to-enc: Likewise.
16891         * modules/uniconv/u16-strconv-from-enc: Likewise.
16892         * modules/uniconv/u16-strconv-from-locale: Likewise.
16893         * modules/uniconv/u16-strconv-to-enc: Likewise.
16894         * modules/uniconv/u16-strconv-to-locale: Likewise.
16895         * modules/uniconv/u32-conv-from-enc: Likewise.
16896         * modules/uniconv/u32-conv-to-enc: Likewise.
16897         * modules/uniconv/u32-strconv-from-enc: Likewise.
16898         * modules/uniconv/u32-strconv-from-locale: Likewise.
16899         * modules/uniconv/u32-strconv-to-enc: Likewise.
16900         * modules/uniconv/u32-strconv-to-locale: Likewise.
16901         * modules/unictype/bidicategory-byname: Likewise.
16902         * modules/unictype/bidicategory-name: Likewise.
16903         * modules/unictype/bidicategory-of: Likewise.
16904         * modules/unictype/bidicategory-test: Likewise.
16905         * modules/unictype/block-list: Likewise.
16906         * modules/unictype/block-test: Likewise.
16907         * modules/unictype/category-C: Likewise.
16908         * modules/unictype/category-Cc: Likewise.
16909         * modules/unictype/category-Cf: Likewise.
16910         * modules/unictype/category-Cn: Likewise.
16911         * modules/unictype/category-Co: Likewise.
16912         * modules/unictype/category-Cs: Likewise.
16913         * modules/unictype/category-L: Likewise.
16914         * modules/unictype/category-Ll: Likewise.
16915         * modules/unictype/category-Lm: Likewise.
16916         * modules/unictype/category-Lo: Likewise.
16917         * modules/unictype/category-Lt: Likewise.
16918         * modules/unictype/category-Lu: Likewise.
16919         * modules/unictype/category-M: Likewise.
16920         * modules/unictype/category-Mc: Likewise.
16921         * modules/unictype/category-Me: Likewise.
16922         * modules/unictype/category-Mn: Likewise.
16923         * modules/unictype/category-N: Likewise.
16924         * modules/unictype/category-Nd: Likewise.
16925         * modules/unictype/category-Nl: Likewise.
16926         * modules/unictype/category-No: Likewise.
16927         * modules/unictype/category-P: Likewise.
16928         * modules/unictype/category-Pc: Likewise.
16929         * modules/unictype/category-Pd: Likewise.
16930         * modules/unictype/category-Pe: Likewise.
16931         * modules/unictype/category-Pf: Likewise.
16932         * modules/unictype/category-Pi: Likewise.
16933         * modules/unictype/category-Po: Likewise.
16934         * modules/unictype/category-Ps: Likewise.
16935         * modules/unictype/category-S: Likewise.
16936         * modules/unictype/category-Sc: Likewise.
16937         * modules/unictype/category-Sk: Likewise.
16938         * modules/unictype/category-Sm: Likewise.
16939         * modules/unictype/category-So: Likewise.
16940         * modules/unictype/category-Z: Likewise.
16941         * modules/unictype/category-Zl: Likewise.
16942         * modules/unictype/category-Zp: Likewise.
16943         * modules/unictype/category-Zs: Likewise.
16944         * modules/unictype/category-and: Likewise.
16945         * modules/unictype/category-and-not: Likewise.
16946         * modules/unictype/category-byname: Likewise.
16947         * modules/unictype/category-name: Likewise.
16948         * modules/unictype/category-none: Likewise.
16949         * modules/unictype/category-of: Likewise.
16950         * modules/unictype/category-or: Likewise.
16951         * modules/unictype/category-test: Likewise.
16952         * modules/unictype/combining-class: Likewise.
16953         * modules/unictype/ctype-alnum: Likewise.
16954         * modules/unictype/ctype-alpha: Likewise.
16955         * modules/unictype/ctype-blank: Likewise.
16956         * modules/unictype/ctype-cntrl: Likewise.
16957         * modules/unictype/ctype-digit: Likewise.
16958         * modules/unictype/ctype-graph: Likewise.
16959         * modules/unictype/ctype-lower: Likewise.
16960         * modules/unictype/ctype-print: Likewise.
16961         * modules/unictype/ctype-punct: Likewise.
16962         * modules/unictype/ctype-space: Likewise.
16963         * modules/unictype/ctype-upper: Likewise.
16964         * modules/unictype/ctype-xdigit: Likewise.
16965         * modules/unictype/decimal-digit: Likewise.
16966         * modules/unictype/digit: Likewise.
16967         * modules/unictype/mirror: Likewise.
16968         * modules/unictype/numeric: Likewise.
16969         * modules/unictype/property-alphabetic: Likewise.
16970         * modules/unictype/property-ascii-hex-digit: Likewise.
16971         * modules/unictype/property-bidi-arabic-digit: Likewise.
16972         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
16973         * modules/unictype/property-bidi-block-separator: Likewise.
16974         * modules/unictype/property-bidi-boundary-neutral: Likewise.
16975         * modules/unictype/property-bidi-common-separator: Likewise.
16976         * modules/unictype/property-bidi-control: Likewise.
16977         * modules/unictype/property-bidi-embedding-or-override: Likewise.
16978         * modules/unictype/property-bidi-eur-num-separator: Likewise.
16979         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
16980         * modules/unictype/property-bidi-european-digit: Likewise.
16981         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
16982         * modules/unictype/property-bidi-left-to-right: Likewise.
16983         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
16984         * modules/unictype/property-bidi-other-neutral: Likewise.
16985         * modules/unictype/property-bidi-pdf: Likewise.
16986         * modules/unictype/property-bidi-segment-separator: Likewise.
16987         * modules/unictype/property-bidi-whitespace: Likewise.
16988         * modules/unictype/property-byname: Likewise.
16989         * modules/unictype/property-combining: Likewise.
16990         * modules/unictype/property-composite: Likewise.
16991         * modules/unictype/property-currency-symbol: Likewise.
16992         * modules/unictype/property-dash: Likewise.
16993         * modules/unictype/property-decimal-digit: Likewise.
16994         * modules/unictype/property-default-ignorable-code-point: Likewise.
16995         * modules/unictype/property-deprecated: Likewise.
16996         * modules/unictype/property-diacritic: Likewise.
16997         * modules/unictype/property-extender: Likewise.
16998         * modules/unictype/property-format-control: Likewise.
16999         * modules/unictype/property-grapheme-base: Likewise.
17000         * modules/unictype/property-grapheme-extend: Likewise.
17001         * modules/unictype/property-grapheme-link: Likewise.
17002         * modules/unictype/property-hex-digit: Likewise.
17003         * modules/unictype/property-hyphen: Likewise.
17004         * modules/unictype/property-id-continue: Likewise.
17005         * modules/unictype/property-id-start: Likewise.
17006         * modules/unictype/property-ideographic: Likewise.
17007         * modules/unictype/property-ids-binary-operator: Likewise.
17008         * modules/unictype/property-ids-trinary-operator: Likewise.
17009         * modules/unictype/property-ignorable-control: Likewise.
17010         * modules/unictype/property-iso-control: Likewise.
17011         * modules/unictype/property-join-control: Likewise.
17012         * modules/unictype/property-left-of-pair: Likewise.
17013         * modules/unictype/property-line-separator: Likewise.
17014         * modules/unictype/property-logical-order-exception: Likewise.
17015         * modules/unictype/property-lowercase: Likewise.
17016         * modules/unictype/property-math: Likewise.
17017         * modules/unictype/property-non-break: Likewise.
17018         * modules/unictype/property-not-a-character: Likewise.
17019         * modules/unictype/property-numeric: Likewise.
17020         * modules/unictype/property-other-alphabetic: Likewise.
17021         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
17022         * modules/unictype/property-other-grapheme-extend: Likewise.
17023         * modules/unictype/property-other-id-continue: Likewise.
17024         * modules/unictype/property-other-id-start: Likewise.
17025         * modules/unictype/property-other-lowercase: Likewise.
17026         * modules/unictype/property-other-math: Likewise.
17027         * modules/unictype/property-other-uppercase: Likewise.
17028         * modules/unictype/property-paired-punctuation: Likewise.
17029         * modules/unictype/property-paragraph-separator: Likewise.
17030         * modules/unictype/property-pattern-syntax: Likewise.
17031         * modules/unictype/property-pattern-white-space: Likewise.
17032         * modules/unictype/property-private-use: Likewise.
17033         * modules/unictype/property-punctuation: Likewise.
17034         * modules/unictype/property-quotation-mark: Likewise.
17035         * modules/unictype/property-radical: Likewise.
17036         * modules/unictype/property-sentence-terminal: Likewise.
17037         * modules/unictype/property-soft-dotted: Likewise.
17038         * modules/unictype/property-space: Likewise.
17039         * modules/unictype/property-terminal-punctuation: Likewise.
17040         * modules/unictype/property-test: Likewise.
17041         * modules/unictype/property-titlecase: Likewise.
17042         * modules/unictype/property-unassigned-code-value: Likewise.
17043         * modules/unictype/property-unified-ideograph: Likewise.
17044         * modules/unictype/property-uppercase: Likewise.
17045         * modules/unictype/property-variation-selector: Likewise.
17046         * modules/unictype/property-white-space: Likewise.
17047         * modules/unictype/property-xid-continue: Likewise.
17048         * modules/unictype/property-xid-start: Likewise.
17049         * modules/unictype/property-zero-width: Likewise.
17050         * modules/unictype/scripts: Likewise.
17051         * modules/unictype/syntax-c-ident: Likewise.
17052         * modules/unictype/syntax-c-whitespace: Likewise.
17053         * modules/unictype/syntax-java-ident: Likewise.
17054         * modules/unictype/syntax-java-whitespace: Likewise.
17055         * modules/unilbrk/u8-possible-linebreaks: Likewise.
17056         * modules/unilbrk/u8-width-linebreaks: Likewise.
17057         * modules/unilbrk/u16-possible-linebreaks: Likewise.
17058         * modules/unilbrk/u16-width-linebreaks: Likewise.
17059         * modules/unilbrk/u32-possible-linebreaks: Likewise.
17060         * modules/unilbrk/u32-width-linebreaks: Likewise.
17061         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
17062         * modules/unilbrk/ulc-width-linebreaks: Likewise.
17063         * modules/uniname/uniname: Likewise.
17064         * modules/uninorm/canonical-decomposition: Likewise.
17065         * modules/uninorm/composition: Likewise.
17066         * modules/uninorm/decomposing-form: Likewise.
17067         * modules/uninorm/decomposition: Likewise.
17068         * modules/uninorm/filter: Likewise.
17069         * modules/uninorm/nfc: Likewise.
17070         * modules/uninorm/nfd: Likewise.
17071         * modules/uninorm/nfkc: Likewise.
17072         * modules/uninorm/nfkd: Likewise.
17073         * modules/uninorm/u8-normalize: Likewise.
17074         * modules/uninorm/u8-normcmp: Likewise.
17075         * modules/uninorm/u8-normcoll: Likewise.
17076         * modules/uninorm/u8-normxfrm: Likewise.
17077         * modules/uninorm/u16-normalize: Likewise.
17078         * modules/uninorm/u16-normcmp: Likewise.
17079         * modules/uninorm/u16-normcoll: Likewise.
17080         * modules/uninorm/u16-normxfrm: Likewise.
17081         * modules/uninorm/u32-normalize: Likewise.
17082         * modules/uninorm/u32-normcmp: Likewise.
17083         * modules/uninorm/u32-normcoll: Likewise.
17084         * modules/uninorm/u32-normxfrm: Likewise.
17085         * modules/unistdio/u8-asnprintf: Likewise.
17086         * modules/unistdio/u8-asprintf: Likewise.
17087         * modules/unistdio/u8-snprintf: Likewise.
17088         * modules/unistdio/u8-sprintf: Likewise.
17089         * modules/unistdio/u8-u8-asnprintf: Likewise.
17090         * modules/unistdio/u8-u8-asprintf: Likewise.
17091         * modules/unistdio/u8-u8-snprintf: Likewise.
17092         * modules/unistdio/u8-u8-sprintf: Likewise.
17093         * modules/unistdio/u8-u8-vasnprintf: Likewise.
17094         * modules/unistdio/u8-u8-vasprintf: Likewise.
17095         * modules/unistdio/u8-u8-vsnprintf: Likewise.
17096         * modules/unistdio/u8-u8-vsprintf: Likewise.
17097         * modules/unistdio/u8-vasnprintf: Likewise.
17098         * modules/unistdio/u8-vasprintf: Likewise.
17099         * modules/unistdio/u8-vsnprintf: Likewise.
17100         * modules/unistdio/u8-vsprintf: Likewise.
17101         * modules/unistdio/u16-asnprintf: Likewise.
17102         * modules/unistdio/u16-asprintf: Likewise.
17103         * modules/unistdio/u16-snprintf: Likewise.
17104         * modules/unistdio/u16-sprintf: Likewise.
17105         * modules/unistdio/u16-u16-asnprintf: Likewise.
17106         * modules/unistdio/u16-u16-asprintf: Likewise.
17107         * modules/unistdio/u16-u16-snprintf: Likewise.
17108         * modules/unistdio/u16-u16-sprintf: Likewise.
17109         * modules/unistdio/u16-u16-vasnprintf: Likewise.
17110         * modules/unistdio/u16-u16-vasprintf: Likewise.
17111         * modules/unistdio/u16-u16-vsnprintf: Likewise.
17112         * modules/unistdio/u16-u16-vsprintf: Likewise.
17113         * modules/unistdio/u16-vasnprintf: Likewise.
17114         * modules/unistdio/u16-vasprintf: Likewise.
17115         * modules/unistdio/u16-vsnprintf: Likewise.
17116         * modules/unistdio/u16-vsprintf: Likewise.
17117         * modules/unistdio/u32-asnprintf: Likewise.
17118         * modules/unistdio/u32-asprintf: Likewise.
17119         * modules/unistdio/u32-snprintf: Likewise.
17120         * modules/unistdio/u32-sprintf: Likewise.
17121         * modules/unistdio/u32-u32-asnprintf: Likewise.
17122         * modules/unistdio/u32-u32-asprintf: Likewise.
17123         * modules/unistdio/u32-u32-snprintf: Likewise.
17124         * modules/unistdio/u32-u32-sprintf: Likewise.
17125         * modules/unistdio/u32-u32-vasnprintf: Likewise.
17126         * modules/unistdio/u32-u32-vasprintf: Likewise.
17127         * modules/unistdio/u32-u32-vsnprintf: Likewise.
17128         * modules/unistdio/u32-u32-vsprintf: Likewise.
17129         * modules/unistdio/u32-vasnprintf: Likewise.
17130         * modules/unistdio/u32-vasprintf: Likewise.
17131         * modules/unistdio/u32-vsnprintf: Likewise.
17132         * modules/unistdio/u32-vsprintf: Likewise.
17133         * modules/unistdio/ulc-asnprintf: Likewise.
17134         * modules/unistdio/ulc-asprintf: Likewise.
17135         * modules/unistdio/ulc-fprintf: Likewise.
17136         * modules/unistdio/ulc-snprintf: Likewise.
17137         * modules/unistdio/ulc-sprintf: Likewise.
17138         * modules/unistdio/ulc-vasnprintf: Likewise.
17139         * modules/unistdio/ulc-vasprintf: Likewise.
17140         * modules/unistdio/ulc-vfprintf: Likewise.
17141         * modules/unistdio/ulc-vsnprintf: Likewise.
17142         * modules/unistdio/ulc-vsprintf: Likewise.
17143         * modules/unistr/u8-check: Likewise.
17144         * modules/unistr/u8-chr: Likewise.
17145         * modules/unistr/u8-cmp: Likewise.
17146         * modules/unistr/u8-cmp2: Likewise.
17147         * modules/unistr/u8-cpy: Likewise.
17148         * modules/unistr/u8-cpy-alloc: Likewise.
17149         * modules/unistr/u8-endswith: Likewise.
17150         * modules/unistr/u8-mblen: Likewise.
17151         * modules/unistr/u8-mbsnlen: Likewise.
17152         * modules/unistr/u8-mbtouc: Likewise.
17153         * modules/unistr/u8-mbtouc-unsafe: Likewise.
17154         * modules/unistr/u8-mbtoucr: Likewise.
17155         * modules/unistr/u8-move: Likewise.
17156         * modules/unistr/u8-next: Likewise.
17157         * modules/unistr/u8-prev: Likewise.
17158         * modules/unistr/u8-set: Likewise.
17159         * modules/unistr/u8-startswith: Likewise.
17160         * modules/unistr/u8-stpcpy: Likewise.
17161         * modules/unistr/u8-stpncpy: Likewise.
17162         * modules/unistr/u8-strcat: Likewise.
17163         * modules/unistr/u8-strchr: Likewise.
17164         * modules/unistr/u8-strcmp: Likewise.
17165         * modules/unistr/u8-strcoll: Likewise.
17166         * modules/unistr/u8-strcpy: Likewise.
17167         * modules/unistr/u8-strcspn: Likewise.
17168         * modules/unistr/u8-strdup: Likewise.
17169         * modules/unistr/u8-strlen: Likewise.
17170         * modules/unistr/u8-strmblen: Likewise.
17171         * modules/unistr/u8-strmbtouc: Likewise.
17172         * modules/unistr/u8-strncat: Likewise.
17173         * modules/unistr/u8-strncmp: Likewise.
17174         * modules/unistr/u8-strncpy: Likewise.
17175         * modules/unistr/u8-strnlen: Likewise.
17176         * modules/unistr/u8-strpbrk: Likewise.
17177         * modules/unistr/u8-strrchr: Likewise.
17178         * modules/unistr/u8-strspn: Likewise.
17179         * modules/unistr/u8-strstr: Likewise.
17180         * modules/unistr/u8-strtok: Likewise.
17181         * modules/unistr/u8-to-u16: Likewise.
17182         * modules/unistr/u8-to-u32: Likewise.
17183         * modules/unistr/u8-uctomb: Likewise.
17184         * modules/unistr/u16-check: Likewise.
17185         * modules/unistr/u16-chr: Likewise.
17186         * modules/unistr/u16-cmp: Likewise.
17187         * modules/unistr/u16-cmp2: Likewise.
17188         * modules/unistr/u16-cpy: Likewise.
17189         * modules/unistr/u16-cpy-alloc: Likewise.
17190         * modules/unistr/u16-endswith: Likewise.
17191         * modules/unistr/u16-mblen: Likewise.
17192         * modules/unistr/u16-mbsnlen: Likewise.
17193         * modules/unistr/u16-mbtouc: Likewise.
17194         * modules/unistr/u16-mbtouc-unsafe: Likewise.
17195         * modules/unistr/u16-mbtoucr: Likewise.
17196         * modules/unistr/u16-move: Likewise.
17197         * modules/unistr/u16-next: Likewise.
17198         * modules/unistr/u16-prev: Likewise.
17199         * modules/unistr/u16-set: Likewise.
17200         * modules/unistr/u16-startswith: Likewise.
17201         * modules/unistr/u16-stpcpy: Likewise.
17202         * modules/unistr/u16-stpncpy: Likewise.
17203         * modules/unistr/u16-strcat: Likewise.
17204         * modules/unistr/u16-strchr: Likewise.
17205         * modules/unistr/u16-strcmp: Likewise.
17206         * modules/unistr/u16-strcoll: Likewise.
17207         * modules/unistr/u16-strcpy: Likewise.
17208         * modules/unistr/u16-strcspn: Likewise.
17209         * modules/unistr/u16-strdup: Likewise.
17210         * modules/unistr/u16-strlen: Likewise.
17211         * modules/unistr/u16-strmblen: Likewise.
17212         * modules/unistr/u16-strmbtouc: Likewise.
17213         * modules/unistr/u16-strncat: Likewise.
17214         * modules/unistr/u16-strncmp: Likewise.
17215         * modules/unistr/u16-strncpy: Likewise.
17216         * modules/unistr/u16-strnlen: Likewise.
17217         * modules/unistr/u16-strpbrk: Likewise.
17218         * modules/unistr/u16-strrchr: Likewise.
17219         * modules/unistr/u16-strspn: Likewise.
17220         * modules/unistr/u16-strstr: Likewise.
17221         * modules/unistr/u16-strtok: Likewise.
17222         * modules/unistr/u16-to-u32: Likewise.
17223         * modules/unistr/u16-to-u8: Likewise.
17224         * modules/unistr/u16-uctomb: Likewise.
17225         * modules/unistr/u32-check: Likewise.
17226         * modules/unistr/u32-chr: Likewise.
17227         * modules/unistr/u32-cmp: Likewise.
17228         * modules/unistr/u32-cmp2: Likewise.
17229         * modules/unistr/u32-cpy: Likewise.
17230         * modules/unistr/u32-cpy-alloc: Likewise.
17231         * modules/unistr/u32-endswith: Likewise.
17232         * modules/unistr/u32-mblen: Likewise.
17233         * modules/unistr/u32-mbsnlen: Likewise.
17234         * modules/unistr/u32-mbtouc: Likewise.
17235         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17236         * modules/unistr/u32-mbtoucr: Likewise.
17237         * modules/unistr/u32-move: Likewise.
17238         * modules/unistr/u32-next: Likewise.
17239         * modules/unistr/u32-prev: Likewise.
17240         * modules/unistr/u32-set: Likewise.
17241         * modules/unistr/u32-startswith: Likewise.
17242         * modules/unistr/u32-stpcpy: Likewise.
17243         * modules/unistr/u32-stpncpy: Likewise.
17244         * modules/unistr/u32-strcat: Likewise.
17245         * modules/unistr/u32-strchr: Likewise.
17246         * modules/unistr/u32-strcmp: Likewise.
17247         * modules/unistr/u32-strcoll: Likewise.
17248         * modules/unistr/u32-strcpy: Likewise.
17249         * modules/unistr/u32-strcspn: Likewise.
17250         * modules/unistr/u32-strdup: Likewise.
17251         * modules/unistr/u32-strlen: Likewise.
17252         * modules/unistr/u32-strmblen: Likewise.
17253         * modules/unistr/u32-strmbtouc: Likewise.
17254         * modules/unistr/u32-strncat: Likewise.
17255         * modules/unistr/u32-strncmp: Likewise.
17256         * modules/unistr/u32-strncpy: Likewise.
17257         * modules/unistr/u32-strnlen: Likewise.
17258         * modules/unistr/u32-strpbrk: Likewise.
17259         * modules/unistr/u32-strrchr: Likewise.
17260         * modules/unistr/u32-strspn: Likewise.
17261         * modules/unistr/u32-strstr: Likewise.
17262         * modules/unistr/u32-strtok: Likewise.
17263         * modules/unistr/u32-to-u16: Likewise.
17264         * modules/unistr/u32-to-u8: Likewise.
17265         * modules/unistr/u32-uctomb: Likewise.
17266         * modules/uniwbrk/u8-wordbreaks: Likewise.
17267         * modules/uniwbrk/u16-wordbreaks: Likewise.
17268         * modules/uniwbrk/u32-wordbreaks: Likewise.
17269         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17270         * modules/uniwbrk/wordbreak-property: Likewise.
17271         * modules/uniwidth/u8-strwidth: Likewise.
17272         * modules/uniwidth/u8-width: Likewise.
17273         * modules/uniwidth/u16-strwidth: Likewise.
17274         * modules/uniwidth/u16-width: Likewise.
17275         * modules/uniwidth/u32-strwidth: Likewise.
17276         * modules/uniwidth/u32-width: Likewise.
17277         * modules/uniwidth/width: Likewise.
17278         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17279         with $(LIBUNISTRING).
17280         * modules/unicase/ignorable-tests: Likewise.
17281         * modules/unicase/locale-language-tests: Likewise.
17282         * modules/unicase/tolower-tests: Likewise.
17283         * modules/unicase/totitle-tests: Likewise.
17284         * modules/unicase/toupper-tests: Likewise.
17285         * modules/unicase/u8-casecmp-tests: Likewise.
17286         * modules/unicase/u8-casecoll-tests: Likewise.
17287         * modules/unicase/u8-casefold-tests: Likewise.
17288         * modules/unicase/u8-is-cased-tests: Likewise.
17289         * modules/unicase/u8-is-casefolded-tests: Likewise.
17290         * modules/unicase/u8-is-lowercase-tests: Likewise.
17291         * modules/unicase/u8-is-titlecase-tests: Likewise.
17292         * modules/unicase/u8-is-uppercase-tests: Likewise.
17293         * modules/unicase/u8-tolower-tests: Likewise.
17294         * modules/unicase/u8-totitle-tests: Likewise.
17295         * modules/unicase/u8-toupper-tests: Likewise.
17296         * modules/unicase/u16-casecmp-tests: Likewise.
17297         * modules/unicase/u16-casecoll-tests: Likewise.
17298         * modules/unicase/u16-casefold-tests: Likewise.
17299         * modules/unicase/u16-is-cased-tests: Likewise.
17300         * modules/unicase/u16-is-casefolded-tests: Likewise.
17301         * modules/unicase/u16-is-lowercase-tests: Likewise.
17302         * modules/unicase/u16-is-titlecase-tests: Likewise.
17303         * modules/unicase/u16-is-uppercase-tests: Likewise.
17304         * modules/unicase/u16-tolower-tests: Likewise.
17305         * modules/unicase/u16-totitle-tests: Likewise.
17306         * modules/unicase/u16-toupper-tests: Likewise.
17307         * modules/unicase/u32-casecmp-tests: Likewise.
17308         * modules/unicase/u32-casecoll-tests: Likewise.
17309         * modules/unicase/u32-casefold-tests: Likewise.
17310         * modules/unicase/u32-is-cased-tests: Likewise.
17311         * modules/unicase/u32-is-casefolded-tests: Likewise.
17312         * modules/unicase/u32-is-lowercase-tests: Likewise.
17313         * modules/unicase/u32-is-titlecase-tests: Likewise.
17314         * modules/unicase/u32-is-uppercase-tests: Likewise.
17315         * modules/unicase/u32-tolower-tests: Likewise.
17316         * modules/unicase/u32-totitle-tests: Likewise.
17317         * modules/unicase/u32-toupper-tests: Likewise.
17318         * modules/unicase/ulc-casecmp-tests: Likewise.
17319         * modules/unicase/ulc-casecoll-tests: Likewise.
17320         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17321         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17322         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17323         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17324         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17325         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17326         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17327         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17328         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17329         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17330         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17331         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17332         * modules/unictype/bidicategory-byname-tests: Likewise.
17333         * modules/unictype/bidicategory-name-tests: Likewise.
17334         * modules/unictype/bidicategory-of-tests: Likewise.
17335         * modules/unictype/bidicategory-test-tests: Likewise.
17336         * modules/unictype/block-list-tests: Likewise.
17337         * modules/unictype/block-of-tests: Likewise.
17338         * modules/unictype/block-test-tests: Likewise.
17339         * modules/unictype/category-C-tests: Likewise.
17340         * modules/unictype/category-Cc-tests: Likewise.
17341         * modules/unictype/category-Cf-tests: Likewise.
17342         * modules/unictype/category-Cn-tests: Likewise.
17343         * modules/unictype/category-Co-tests: Likewise.
17344         * modules/unictype/category-Cs-tests: Likewise.
17345         * modules/unictype/category-L-tests: Likewise.
17346         * modules/unictype/category-Ll-tests: Likewise.
17347         * modules/unictype/category-Lm-tests: Likewise.
17348         * modules/unictype/category-Lo-tests: Likewise.
17349         * modules/unictype/category-Lt-tests: Likewise.
17350         * modules/unictype/category-Lu-tests: Likewise.
17351         * modules/unictype/category-M-tests: Likewise.
17352         * modules/unictype/category-Mc-tests: Likewise.
17353         * modules/unictype/category-Me-tests: Likewise.
17354         * modules/unictype/category-Mn-tests: Likewise.
17355         * modules/unictype/category-N-tests: Likewise.
17356         * modules/unictype/category-Nd-tests: Likewise.
17357         * modules/unictype/category-Nl-tests: Likewise.
17358         * modules/unictype/category-No-tests: Likewise.
17359         * modules/unictype/category-P-tests: Likewise.
17360         * modules/unictype/category-Pc-tests: Likewise.
17361         * modules/unictype/category-Pd-tests: Likewise.
17362         * modules/unictype/category-Pe-tests: Likewise.
17363         * modules/unictype/category-Pf-tests: Likewise.
17364         * modules/unictype/category-Pi-tests: Likewise.
17365         * modules/unictype/category-Po-tests: Likewise.
17366         * modules/unictype/category-Ps-tests: Likewise.
17367         * modules/unictype/category-S-tests: Likewise.
17368         * modules/unictype/category-Sc-tests: Likewise.
17369         * modules/unictype/category-Sk-tests: Likewise.
17370         * modules/unictype/category-Sm-tests: Likewise.
17371         * modules/unictype/category-So-tests: Likewise.
17372         * modules/unictype/category-Z-tests: Likewise.
17373         * modules/unictype/category-Zl-tests: Likewise.
17374         * modules/unictype/category-Zp-tests: Likewise.
17375         * modules/unictype/category-Zs-tests: Likewise.
17376         * modules/unictype/category-and-not-tests: Likewise.
17377         * modules/unictype/category-and-tests: Likewise.
17378         * modules/unictype/category-byname-tests: Likewise.
17379         * modules/unictype/category-name-tests: Likewise.
17380         * modules/unictype/category-none-tests: Likewise.
17381         * modules/unictype/category-of-tests: Likewise.
17382         * modules/unictype/category-or-tests: Likewise.
17383         * modules/unictype/category-test-withtable-tests: Likewise.
17384         * modules/unictype/combining-class-tests: Likewise.
17385         * modules/unictype/ctype-alnum-tests: Likewise.
17386         * modules/unictype/ctype-alpha-tests: Likewise.
17387         * modules/unictype/ctype-blank-tests: Likewise.
17388         * modules/unictype/ctype-cntrl-tests: Likewise.
17389         * modules/unictype/ctype-digit-tests: Likewise.
17390         * modules/unictype/ctype-graph-tests: Likewise.
17391         * modules/unictype/ctype-lower-tests: Likewise.
17392         * modules/unictype/ctype-print-tests: Likewise.
17393         * modules/unictype/ctype-punct-tests: Likewise.
17394         * modules/unictype/ctype-space-tests: Likewise.
17395         * modules/unictype/ctype-upper-tests: Likewise.
17396         * modules/unictype/ctype-xdigit-tests: Likewise.
17397         * modules/unictype/decimal-digit-tests: Likewise.
17398         * modules/unictype/digit-tests: Likewise.
17399         * modules/unictype/mirror-tests: Likewise.
17400         * modules/unictype/numeric-tests: Likewise.
17401         * modules/unictype/property-alphabetic-tests: Likewise.
17402         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17403         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17404         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17405         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17406         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17407         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17408         * modules/unictype/property-bidi-control-tests: Likewise.
17409         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17410         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17411         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17412         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17413         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17414         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17415         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17416         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17417         * modules/unictype/property-bidi-pdf-tests: Likewise.
17418         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17419         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17420         * modules/unictype/property-byname-tests: Likewise.
17421         * modules/unictype/property-combining-tests: Likewise.
17422         * modules/unictype/property-composite-tests: Likewise.
17423         * modules/unictype/property-currency-symbol-tests: Likewise.
17424         * modules/unictype/property-dash-tests: Likewise.
17425         * modules/unictype/property-decimal-digit-tests: Likewise.
17426         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17427         * modules/unictype/property-deprecated-tests: Likewise.
17428         * modules/unictype/property-diacritic-tests: Likewise.
17429         * modules/unictype/property-extender-tests: Likewise.
17430         * modules/unictype/property-format-control-tests: Likewise.
17431         * modules/unictype/property-grapheme-base-tests: Likewise.
17432         * modules/unictype/property-grapheme-extend-tests: Likewise.
17433         * modules/unictype/property-grapheme-link-tests: Likewise.
17434         * modules/unictype/property-hex-digit-tests: Likewise.
17435         * modules/unictype/property-hyphen-tests: Likewise.
17436         * modules/unictype/property-id-continue-tests: Likewise.
17437         * modules/unictype/property-id-start-tests: Likewise.
17438         * modules/unictype/property-ideographic-tests: Likewise.
17439         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17440         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17441         * modules/unictype/property-ignorable-control-tests: Likewise.
17442         * modules/unictype/property-iso-control-tests: Likewise.
17443         * modules/unictype/property-join-control-tests: Likewise.
17444         * modules/unictype/property-left-of-pair-tests: Likewise.
17445         * modules/unictype/property-line-separator-tests: Likewise.
17446         * modules/unictype/property-logical-order-exception-tests: Likewise.
17447         * modules/unictype/property-lowercase-tests: Likewise.
17448         * modules/unictype/property-math-tests: Likewise.
17449         * modules/unictype/property-non-break-tests: Likewise.
17450         * modules/unictype/property-not-a-character-tests: Likewise.
17451         * modules/unictype/property-numeric-tests: Likewise.
17452         * modules/unictype/property-other-alphabetic-tests: Likewise.
17453         * modules/unictype/property-other-default-ignorable-code-point-tests:
17454         Likewise.
17455         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17456         * modules/unictype/property-other-id-continue-tests: Likewise.
17457         * modules/unictype/property-other-id-start-tests: Likewise.
17458         * modules/unictype/property-other-lowercase-tests: Likewise.
17459         * modules/unictype/property-other-math-tests: Likewise.
17460         * modules/unictype/property-other-uppercase-tests: Likewise.
17461         * modules/unictype/property-paired-punctuation-tests: Likewise.
17462         * modules/unictype/property-paragraph-separator-tests: Likewise.
17463         * modules/unictype/property-pattern-syntax-tests: Likewise.
17464         * modules/unictype/property-pattern-white-space-tests: Likewise.
17465         * modules/unictype/property-private-use-tests: Likewise.
17466         * modules/unictype/property-punctuation-tests: Likewise.
17467         * modules/unictype/property-quotation-mark-tests: Likewise.
17468         * modules/unictype/property-radical-tests: Likewise.
17469         * modules/unictype/property-sentence-terminal-tests: Likewise.
17470         * modules/unictype/property-soft-dotted-tests: Likewise.
17471         * modules/unictype/property-space-tests: Likewise.
17472         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17473         * modules/unictype/property-test-tests: Likewise.
17474         * modules/unictype/property-titlecase-tests: Likewise.
17475         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17476         * modules/unictype/property-unified-ideograph-tests: Likewise.
17477         * modules/unictype/property-uppercase-tests: Likewise.
17478         * modules/unictype/property-variation-selector-tests: Likewise.
17479         * modules/unictype/property-white-space-tests: Likewise.
17480         * modules/unictype/property-xid-continue-tests: Likewise.
17481         * modules/unictype/property-xid-start-tests: Likewise.
17482         * modules/unictype/property-zero-width-tests: Likewise.
17483         * modules/unictype/scripts-tests: Likewise.
17484         * modules/unictype/syntax-c-ident-tests: Likewise.
17485         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17486         * modules/unictype/syntax-java-ident-tests: Likewise.
17487         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17488         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17489         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17490         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17491         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17492         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17493         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17494         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17495         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17496         * modules/uniname/uniname-tests: Likewise.
17497         * modules/uninorm/canonical-decomposition-tests: Likewise.
17498         * modules/uninorm/compat-decomposition-tests: Likewise.
17499         * modules/uninorm/composition-tests: Likewise.
17500         * modules/uninorm/decomposing-form-tests: Likewise.
17501         * modules/uninorm/decomposition-tests: Likewise.
17502         * modules/uninorm/filter-tests: Likewise.
17503         * modules/uninorm/nfc-tests: Likewise.
17504         * modules/uninorm/nfd-tests: Likewise.
17505         * modules/uninorm/nfkc-tests: Likewise.
17506         * modules/uninorm/nfkd-tests: Likewise.
17507         * modules/uninorm/u8-normcmp-tests: Likewise.
17508         * modules/uninorm/u8-normcoll-tests: Likewise.
17509         * modules/uninorm/u16-normcmp-tests: Likewise.
17510         * modules/uninorm/u16-normcoll-tests: Likewise.
17511         * modules/uninorm/u32-normcmp-tests: Likewise.
17512         * modules/uninorm/u32-normcoll-tests: Likewise.
17513         * modules/unistdio/u8-asnprintf-tests: Likewise.
17514         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17515         * modules/unistdio/u8-vasprintf-tests: Likewise.
17516         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17517         * modules/unistdio/u8-vsprintf-tests: Likewise.
17518         * modules/unistdio/u16-asnprintf-tests: Likewise.
17519         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17520         * modules/unistdio/u16-vasprintf-tests: Likewise.
17521         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17522         * modules/unistdio/u16-vsprintf-tests: Likewise.
17523         * modules/unistdio/u32-asnprintf-tests: Likewise.
17524         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17525         * modules/unistdio/u32-vasprintf-tests: Likewise.
17526         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17527         * modules/unistdio/u32-vsprintf-tests: Likewise.
17528         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17529         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17530         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17531         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17532         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17533         * modules/unistr/u8-check-tests: Likewise.
17534         * modules/unistr/u8-chr-tests: Likewise.
17535         * modules/unistr/u8-cmp-tests: Likewise.
17536         * modules/unistr/u8-cmp2-tests: Likewise.
17537         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17538         * modules/unistr/u8-cpy-tests: Likewise.
17539         * modules/unistr/u8-mblen-tests: Likewise.
17540         * modules/unistr/u8-mbsnlen-tests: Likewise.
17541         * modules/unistr/u8-mbtouc-tests: Likewise.
17542         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17543         * modules/unistr/u8-mbtoucr-tests: Likewise.
17544         * modules/unistr/u8-move-tests: Likewise.
17545         * modules/unistr/u8-next-tests: Likewise.
17546         * modules/unistr/u8-prev-tests: Likewise.
17547         * modules/unistr/u8-set-tests: Likewise.
17548         * modules/unistr/u8-stpcpy-tests: Likewise.
17549         * modules/unistr/u8-stpncpy-tests: Likewise.
17550         * modules/unistr/u8-strcat-tests: Likewise.
17551         * modules/unistr/u8-strcmp-tests: Likewise.
17552         * modules/unistr/u8-strcoll-tests: Likewise.
17553         * modules/unistr/u8-strcpy-tests: Likewise.
17554         * modules/unistr/u8-strdup-tests: Likewise.
17555         * modules/unistr/u8-strlen-tests: Likewise.
17556         * modules/unistr/u8-strmblen-tests: Likewise.
17557         * modules/unistr/u8-strmbtouc-tests: Likewise.
17558         * modules/unistr/u8-strncat-tests: Likewise.
17559         * modules/unistr/u8-strncmp-tests: Likewise.
17560         * modules/unistr/u8-strncpy-tests: Likewise.
17561         * modules/unistr/u8-strnlen-tests: Likewise.
17562         * modules/unistr/u8-to-u16-tests: Likewise.
17563         * modules/unistr/u8-to-u32-tests: Likewise.
17564         * modules/unistr/u8-uctomb-tests: Likewise.
17565         * modules/unistr/u16-check-tests: Likewise.
17566         * modules/unistr/u16-chr-tests: Likewise.
17567         * modules/unistr/u16-cmp-tests: Likewise.
17568         * modules/unistr/u16-cmp2-tests: Likewise.
17569         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17570         * modules/unistr/u16-cpy-tests: Likewise.
17571         * modules/unistr/u16-mblen-tests: Likewise.
17572         * modules/unistr/u16-mbsnlen-tests: Likewise.
17573         * modules/unistr/u16-mbtouc-tests: Likewise.
17574         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17575         * modules/unistr/u16-mbtoucr-tests: Likewise.
17576         * modules/unistr/u16-move-tests: Likewise.
17577         * modules/unistr/u16-next-tests: Likewise.
17578         * modules/unistr/u16-prev-tests: Likewise.
17579         * modules/unistr/u16-set-tests: Likewise.
17580         * modules/unistr/u16-stpcpy-tests: Likewise.
17581         * modules/unistr/u16-stpncpy-tests: Likewise.
17582         * modules/unistr/u16-strcat-tests: Likewise.
17583         * modules/unistr/u16-strcmp-tests: Likewise.
17584         * modules/unistr/u16-strcoll-tests: Likewise.
17585         * modules/unistr/u16-strcpy-tests: Likewise.
17586         * modules/unistr/u16-strdup-tests: Likewise.
17587         * modules/unistr/u16-strlen-tests: Likewise.
17588         * modules/unistr/u16-strmblen-tests: Likewise.
17589         * modules/unistr/u16-strmbtouc-tests: Likewise.
17590         * modules/unistr/u16-strncat-tests: Likewise.
17591         * modules/unistr/u16-strncmp-tests: Likewise.
17592         * modules/unistr/u16-strncpy-tests: Likewise.
17593         * modules/unistr/u16-strnlen-tests: Likewise.
17594         * modules/unistr/u16-to-u32-tests: Likewise.
17595         * modules/unistr/u16-to-u8-tests: Likewise.
17596         * modules/unistr/u16-uctomb-tests: Likewise.
17597         * modules/unistr/u32-check-tests: Likewise.
17598         * modules/unistr/u32-chr-tests: Likewise.
17599         * modules/unistr/u32-cmp-tests: Likewise.
17600         * modules/unistr/u32-cmp2-tests: Likewise.
17601         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17602         * modules/unistr/u32-cpy-tests: Likewise.
17603         * modules/unistr/u32-mblen-tests: Likewise.
17604         * modules/unistr/u32-mbsnlen-tests: Likewise.
17605         * modules/unistr/u32-mbtouc-tests: Likewise.
17606         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17607         * modules/unistr/u32-mbtoucr-tests: Likewise.
17608         * modules/unistr/u32-move-tests: Likewise.
17609         * modules/unistr/u32-next-tests: Likewise.
17610         * modules/unistr/u32-prev-tests: Likewise.
17611         * modules/unistr/u32-set-tests: Likewise.
17612         * modules/unistr/u32-stpcpy-tests: Likewise.
17613         * modules/unistr/u32-stpncpy-tests: Likewise.
17614         * modules/unistr/u32-strcat-tests: Likewise.
17615         * modules/unistr/u32-strcmp-tests: Likewise.
17616         * modules/unistr/u32-strcoll-tests: Likewise.
17617         * modules/unistr/u32-strcpy-tests: Likewise.
17618         * modules/unistr/u32-strdup-tests: Likewise.
17619         * modules/unistr/u32-strlen-tests: Likewise.
17620         * modules/unistr/u32-strmblen-tests: Likewise.
17621         * modules/unistr/u32-strmbtouc-tests: Likewise.
17622         * modules/unistr/u32-strncat-tests: Likewise.
17623         * modules/unistr/u32-strncmp-tests: Likewise.
17624         * modules/unistr/u32-strncpy-tests: Likewise.
17625         * modules/unistr/u32-strnlen-tests: Likewise.
17626         * modules/unistr/u32-to-u16-tests: Likewise.
17627         * modules/unistr/u32-to-u8-tests: Likewise.
17628         * modules/unistr/u32-uctomb-tests: Likewise.
17629         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17630         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17631         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17632         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17633         * modules/uniwidth/u8-strwidth-tests: Likewise.
17634         * modules/uniwidth/u8-width-tests: Likewise.
17635         * modules/uniwidth/u16-strwidth-tests: Likewise.
17636         * modules/uniwidth/u16-width-tests: Likewise.
17637         * modules/uniwidth/u32-strwidth-tests: Likewise.
17638         * modules/uniwidth/u32-width-tests: Likewise.
17639         * modules/uniwidth/width-tests: Likewise.
17640
17641 2010-05-18  Richard Jones  <rjones@redhat.com>
17642
17643         doc: users.txt: list hivex
17644         * users.txt: Add hivex.
17645
17646 2010-05-18  Richard Jones  <rjones@redhat.com>
17647
17648         doc: users.txt: list febootstrap
17649         * users.txt: Add febootstrap.
17650
17651 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17652
17653         bootstrap: fix an error when gnulib is not used as a git submodule
17654         * build-aux/bootstrap (gnulib_path): If its length is zero then
17655         assign "gnulib" to it.
17656         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17657
17658 2010-05-16  Bruno Haible  <bruno@clisp.org>
17659
17660         Avoid autoconf warnings about AM_ICONV.
17661         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17662         2.64.
17663
17664 2010-05-16  Bruno Haible  <bruno@clisp.org>
17665
17666         absolute-header: Make the macro usable in more situations.
17667         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17668         from gl_ABSOLUTE_HEADER.
17669         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17670
17671 2010-05-16  James Youngman  <jay@gnu.org>
17672
17673         doc: update users.txt
17674         * users.txt: Add CSSC.
17675
17676 2010-05-16  Jim Meyering  <meyering@redhat.com>
17677
17678         init.sh: fix an error in the previous change; add more comments
17679         * tests/init.sh: Compare exit code in loop against 9, not 2.
17680         Patch by Bruno Haible.
17681         Make the two tests more similar by adding an empty "then" clause.
17682         Add comments.
17683
17684         init.sh: avoid unnecessary shell re-exec
17685         * tests/init.sh: Improve the re-exec-required check to first test the
17686         current shell.  If it passes the test, do not search for a shell that
17687         does pass, and do not re-exec.  This test is particularly contorted to
17688         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17689         of $(...) evokes a syntax error and causes immediate shell exit with
17690         status 2.  Bruno Haible reported that the re-exec made it impossible
17691         to single-step through any init.sh-using script.
17692
17693 2010-05-16  Bruno Haible  <bruno@clisp.org>
17694
17695         Fix collision between gnulib's and libintl's printf replacements.
17696         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17697         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17698         (printf): When using GNU C, map the __printf__ function to rpl_printf
17699         via __asm__. When not using GNU C, define rpl_printf instead of
17700         __printf__.
17701         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17702         commit.
17703         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17704         commit.
17705         * m4/asm-underscore.m4: New file.
17706         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17707         * modules/stdio (Files): Add m4/asm-underscore.m4.
17708         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17709         Reported by Ben Pfaff.
17710
17711 2010-05-16  Bruno Haible  <bruno@clisp.org>
17712
17713         verify: Avoid skipping the test on openSUSE 11.0.
17714         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17715
17716 2010-05-13  Bruno Haible  <bruno@clisp.org>
17717
17718         Avoid useless warnings from G++.
17719         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17720         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17721         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17722
17723 2010-05-11  Jim Meyering  <meyering@redhat.com>
17724
17725         maint.mk: tweak preceding change
17726         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17727         regexps tighter by anchoring at EOL, and make the new group "shy"
17728         for slightly decreased overhead.
17729
17730 2010-05-11  Eric Blake  <eblake@redhat.com>
17731
17732         maint.mk: gnulib doesn't guarantee NSIG
17733         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17734
17735 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17736
17737         test-pwrite.c: Remove unused variable declaration.
17738         * tests/test-pwrite.c (main): Remove read_buf declaration.
17739
17740         Remove useless test-pwrite.sh file.
17741         * tests/test-pwrite.sh: Delete file.
17742         * modules/pwrite-tests: Remove references.
17743         Reported by Bruno Haible.
17744
17745 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17746
17747         init.sh: fix a typo
17748         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17749
17750 2010-05-10  Jim Meyering  <meyering@redhat.com>
17751
17752         maint.mk: avoid using a temporary file in the always-defined-macros check
17753         * top/maint.mk (.re-defmac): Remove rule.
17754         (gl_trap_): Remove definition.
17755         (sc_prohibit_always-defined_macros): Rewrite not to create and
17756         depend on a temporary file.  Instead, depend on GNU grep's ability
17757         to read a list of regular expressions from stdin when given "-f -".
17758
17759 2010-05-09  Bruno Haible  <bruno@clisp.org>
17760
17761         Update to GNU gettext 0.18, part 1.
17762         * m4/gettext.m4: Update to GNU gettext 0.18.
17763         * m4/intl.m4: Likewise.
17764         * m4/po.m4: Likewise.
17765         * modules/gettext (Files): Add m4/fcntl-o.m4.
17766         (configure.ac): Require gettext infrastructure from version 0.18.
17767
17768 2010-05-09  Jim Meyering  <meyering@redhat.com>
17769
17770         init.sh: enable MALLOC_PERTURB_
17771         * tests/init.sh: Enable glibc's malloc-perturbing option.
17772
17773         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17774         With my recent change in init.sh from the two-line form:
17775             -#   : ${srcdir=.}
17776             -#   . "$srcdir/init.sh"; path_prepend_ .
17777             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17778         I noticed that using the one-line form would cause this test
17779         to fail with a false-positive, or to stop working altogether,
17780         depending on whether help-version changed or all the tests did.
17781         * top/maint.mk (_hv_regex): Remove this definition.
17782         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
17783         (_hv_regex_strong): Use a stronger regex to check for conformance.
17784         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
17785         Give a separate diagnostic for lack of conforming use.
17786
17787         maint.mk: prohibit definition of symbols defined by gnulib
17788         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
17789         definition of symbols defined by gnulib.
17790
17791 2010-05-09  Bruno Haible  <bruno@clisp.org>
17792
17793         acl: Avoid test failure on Cygwin-hosted mingw.
17794         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
17795
17796 2010-05-09  Bruno Haible  <bruno@clisp.org>
17797
17798         error: Use system's fcntl function.
17799         * lib/error.c (fcntl): Undefine.
17800
17801 2010-05-09  Jim Meyering  <meyering@redhat.com>
17802
17803         verify: adjust formatting to be more consistent
17804         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
17805         argument-list '('s, and after one comma.
17806
17807 2010-05-09  Bruno Haible  <bruno@clisp.org>
17808
17809         error: More reliable output on mingw.
17810         * lib/error.c: Include <windows.h>.
17811         (is_open): New function.
17812         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
17813         defined.
17814
17815 2010-05-09  Bruno Haible  <bruno@clisp.org>
17816
17817         vasnprintf: Fix syntax errors in libintl build on mingw.
17818         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
17819         pad_ourselves and prec_ourselves after use.
17820
17821 2010-05-08  Bruno Haible  <bruno@clisp.org>
17822
17823         * lib/config.charset: Update comments for Cygwin 1.7.
17824         * lib/localcharset.c: Likewise.
17825
17826 2010-05-07  Jim Meyering  <meyering@redhat.com>
17827
17828         init.sh: improve comments
17829         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
17830         . "${srcdir=.}/init.sh"; path_prepend_ .
17831         Add a note about path_prepend_ and the alternative of using
17832         TESTS_ENVIRONMENT.
17833
17834 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17835
17836         exclude: Unescape hashed patterns in wildcard mode.
17837         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
17838         to the hash list.
17839         * tests/test-exclude8.sh: New test case.
17840         * modules/exclude-tests: Add new test.
17841
17842 2010-05-05  Eric Blake  <eblake@redhat.com>
17843
17844         verify: automate tests
17845         * modules/verify-tests: New module.
17846         * tests/test-verify.sh: New file.
17847         * tests/test-verify.c: Guard each negative test with a unique id.
17848         Also avoid warning about unused left hand of comma expressions.
17849
17850 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17851
17852         Further improvements to verify.h, suggested by Eric Blake.
17853         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
17854         the GL_* versions, to avoid collision with OpenGL.
17855         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
17856         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
17857         than testing merely whether it's defined.
17858
17859         Modify verify.h to pacify gcc -Wredundant_decls.
17860         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
17861         These use the prefix "GL_" since they're likely to be useful elsewhere.
17862         We may need to break them out into a different .h file.
17863         (__COUNTER__): Define to 0 if the compiler doesn't support it.
17864         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
17865         of verify_function__.
17866
17867 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17868
17869         Tests for module pwrite.
17870         * modules/pwrite-tests: New file.
17871         * tests/test-pwrite.sh: New file.
17872         * tests/test-pwrite.c: New file.
17873
17874         New module pwrite.
17875         * lib/unistd.in.h (pwrite): New declaration.
17876         * lib/pwrite.c: New file, from glibc with modifications.
17877         * m4/pwrite.m4: New file.
17878         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
17879         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
17880         REPLACE_PWRITE.
17881         * modules/pwrite: New file.
17882         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
17883         REPLACE_PWRITE.
17884         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
17885         * doc/posix-functions/pwrite.texi: Mention the new module.
17886
17887 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17888
17889         pread: Update documentation.
17890         * doc/posix-functions/pread.texi: Mention the 'pread' module.
17891
17892 2010-05-04  Eric Blake  <eblake@redhat.com>
17893
17894         docs: update cygwin progress
17895         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
17896         this bug.
17897         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
17898         Added in cygwin 1.7.2.
17899         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
17900         Likewise.
17901         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
17902         Likewise.
17903         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17904         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17905         * doc/glibc-functions/accept4.texi (accept4): Likewise.
17906         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
17907         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
17908         Mention nproc module.
17909         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
17910         bug in cygwin 1.7.5 addition.
17911         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
17912         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
17913         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
17914         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
17915         1.7.5.
17916         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
17917         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
17918         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
17919         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
17920         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
17921         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
17922         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
17923         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
17924         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
17925         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
17926         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
17927         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
17928         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
17929         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
17930         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
17931         Likewise.
17932         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
17933         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
17934         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
17935         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
17936         Likewise.
17937         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
17938         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
17939         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
17940         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
17941         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
17942         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
17943         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
17944         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
17945         Likewise.
17946         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
17947         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
17948         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
17949         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
17950         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
17951         Likewise.
17952         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
17953         Likewise.
17954         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
17955         Likewise.
17956         * doc/glibc-functions/xdrrec_endofrecord.texi
17957         (xdrrec_endofrecord): Likewise.
17958         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
17959         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
17960         Likewise.
17961         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
17962         Likewise.
17963
17964 2010-05-04  Jim Meyering  <meyering@redhat.com>
17965
17966         gendocs.sh: make its "-s FILE" option more useful
17967         * build-aux/gendocs.sh: When honoring the -s FILE option, update
17968         $PACKAGE to reflect the probably-different basename of "FILE".
17969
17970 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17971
17972         bootstrap: don't ignore download_po_files failure
17973         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
17974         failure.
17975
17976 2010-05-03  Jim Meyering  <meyering@redhat.com>
17977
17978         maint.mk: allow to pass options to gendocs.sh
17979         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
17980         (gendocs_options_): New overridable variable.
17981
17982         gnu-web-doc-update: don't ignore configure or build failure
17983         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
17984
17985         announce-gen: backslash-escape '@'s in --help output
17986         * build-aux/announce-gen: Fix syntax errors.
17987
17988         maint.mk, announce-gen: allow project-specific announcement mail headers
17989         * top/maint.mk (translation_project_): Define default.
17990         (announcement_Cc_, announcement_mail_headers_): Likewise.
17991         (announcement): Invoke announce-gen with new --mail-headers option.
17992         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
17993
17994         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
17995         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
17996         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
17997         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
17998         line in the "err2" output file when running "make check" in verbose
17999         mode (i.e., with set -x enabled).
18000
18001 2010-05-03  Bruno Haible  <bruno@clisp.org>
18002
18003         wctob: Fix for weird platforms.
18004         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
18005         argument value.
18006
18007 2010-05-03  Jim Meyering  <meyering@redhat.com>
18008
18009         maint.mk: prohibit unwarranted use of <strings.h>
18010         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
18011         strings.h in a file that does not also use strcasecmp, strncasecmp,
18012         ffs or ffsll.
18013
18014         maint.mk: remove obsolete comments
18015         * top/maint.mk: Remove stale, commented-out rules.
18016
18017 2010-05-02  Bruno Haible  <bruno@clisp.org>
18018
18019         wcwidth: Declare also when it's aliased.
18020         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
18021         macro.
18022
18023 2010-05-02  Bruno Haible  <bruno@clisp.org>
18024
18025         Fix regression from 2010-04-25.
18026         * gnulib-tool (func_modules_transitive_closure): Check the status of
18027         all modules, not only of the tests that are of the form foo-tests where
18028         foo is a module.
18029
18030 2010-05-02  Bruno Haible  <bruno@clisp.org>
18031
18032         wctob: Work around nasty Cygwin 1.7.2 bug.
18033         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
18034         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
18035
18036 2010-05-01  Bruno Haible  <bruno@clisp.org>
18037
18038         fpurge: Sharper test.
18039         * tests/test-fpurge.c (main): Add one more ftell check.
18040         * modules/fpurge-tests (Depends-on): Add ftell.
18041         Suggested by Eric Blake.
18042
18043 2010-05-01  Bruno Haible  <bruno@clisp.org>
18044
18045         ftello: Another test.
18046         * tests/test-ftello3.c: New file.
18047         * modules/ftello-tests (Files): Add it.
18048         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18049         MOSTLYCLEANFILES.
18050
18051         ftell: Another test.
18052         * tests/test-ftell3.c: New file.
18053         * modules/ftell-tests (Files): Add it.
18054         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18055         MOSTLYCLEANFILES.
18056
18057 2010-05-01  Bruno Haible  <bruno@clisp.org>
18058
18059         ftell, ftello: Work around Solaris bug.
18060         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
18061         * lib/ftello.c: Include stdio-impl.h.
18062         (ftello): On Solaris, when _IOWRT is set, compute the result without
18063         looking at _IOREAD.
18064         * modules/ftello (Files): Add lib/stdio-impl.h.
18065         * doc/posix-functions/ftell.texi: Mention Solaris bug.
18066         * doc/posix-functions/ftello.texi: Likewise.
18067         Reported by Eric Blake.
18068
18069 2010-05-01  Bruno Haible  <bruno@clisp.org>
18070
18071         freading: Adapt to special meaning of _IOREAD flag on Solaris.
18072         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
18073         the _IOWRT flag is also set.
18074
18075 2010-05-01  Bruno Haible  <bruno@clisp.org>
18076
18077         Fix doc about a HP-UX stdio bug.
18078         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
18079         * doc/posix-functions/ftello.texi: Likewise.
18080
18081 2010-05-01  Bruno Haible  <bruno@clisp.org>
18082
18083         lseek test: Fix failure on Solaris.
18084         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
18085         output.
18086
18087 2010-04-30  Jim Meyering  <meyering@redhat.com>
18088
18089         bootstrap: don't ignore failure to generate po*/Makevars
18090         * build-aux/bootstrap (with_gettext): Don't ignore failure
18091         to create po/Makevars or runtime-po/Makevars.
18092
18093 2010-04-29  Eric Blake  <eblake@redhat.com>
18094
18095         headers: relax license to LGPLv2+
18096         * modules/fcntl-h (License): Relax license.
18097         * modules/getopt-posix (License): Likewise.
18098         * modules/locale (License): Likewise.
18099         * modules/math (License): Likewise.
18100         * modules/pty (License): Likewise.
18101         * modules/sched (License): Likewise.
18102         * modules/search (License): Likewise.
18103         * modules/spawn (License): Likewise.
18104         * modules/stdarg (License): Likewise.
18105         * modules/sysexits (License): Likewise.
18106
18107 2010-04-29  Jim Meyering  <meyering@redhat.com>
18108
18109         inttypes: relax license to LGPLv2+
18110         * modules/inttypes (License): Relax license.
18111
18112 2010-04-29  Simon Josefsson  <simon@josefsson.org>
18113
18114         * top/maint.mk (indent): Run twice to produce idempotent results.
18115
18116 2010-04-28  Bruno Haible  <bruno@clisp.org>
18117
18118         getdate: Generate getdate.c in the source directory.
18119         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
18120         MOSTLYCLEANFILES.
18121         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
18122
18123 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
18124
18125         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
18126         is not declared as a const *; avoid warnings in that case.
18127
18128 2010-04-28  Eric Blake  <eblake@redhat.com>
18129
18130         canonicalize-lgpl: avoid compiler warning
18131         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
18132         declaration' / 'extraneous semicolon' warning with some compilers.
18133         Reported by Andreas Gruenbacher.
18134
18135 2010-04-28  Jim Meyering  <meyering@redhat.com>
18136
18137         init.sh: ensure a more reliable exit status when exiting via trap
18138         * tests/init.sh (setup_): Don't rely on $? in signal handler.
18139         Inspired by patches from Dmitry V. Levin.
18140         Also trap on signal 3 (SIGQUIT).
18141
18142 2010-04-27  Bruno Haible  <bruno@clisp.org>
18143
18144         Update doc about utimes().
18145         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
18146         'utimens' module.
18147         Reported by Andreas Gruenbacher <agruen@suse.de>.
18148
18149 2010-04-27  Eric Blake  <eblake@redhat.com>
18150
18151         full-read, full-write: relax license
18152         * modules/full-read (License): Drop to LGPLv2+.
18153         * modules/full-write (License): Likewise.
18154         * modules/safe-read (License): Likewise.
18155         * modules/safe-write (License): Likewise.
18156
18157         pthread: mention library for linking
18158         * modules/pthread (Link): Mention $(LIB_PTHREAD).
18159
18160 2010-04-27  Jim Meyering  <meyering@redhat.com>
18161
18162         maint.mk: fix a bug introduced in last change
18163         * top/maint.mk (gl_assured_headers_): Now that all names are on
18164         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
18165         is not anchored to end of word, it should be adequate.
18166
18167         maint.mk: avoid side-effect in latest syntax-check
18168         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
18169         to run commands via $(shell...), and hence to incur cost only when
18170         the new rule is actually run.
18171
18172         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
18173         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
18174         and use that to create a regexp used to detect all #if HAVE_..._H uses.
18175         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
18176         (gl_assured_headers_, az_, AZ_): Define.
18177         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
18178
18179 2010-04-26  Jim Meyering  <jim@meyering.net>
18180             Bruno Haible  <bruno@clisp.org>
18181
18182         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
18183         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
18184         Prompted by an exchange with Gilles Espinasse.
18185
18186 2010-04-26  Jim Meyering  <meyering@redhat.com>
18187
18188         git-version-gen: aesthetic tweak
18189         * build-aux/git-version-gen: Use "$nl" rather than a literal,
18190         so that the command remains on a single line.
18191
18192 2010-04-26  Eric Blake  <eblake@redhat.com>
18193
18194         git-version-gen: allow use on EBCDIC hosts
18195         * build-aux/git-version-gen (dirty): Use literal rather than tying
18196         ourselves to ascii.
18197         Reported by Steve Goetze.
18198
18199 2010-04-25  Bruno Haible  <bruno@clisp.org>
18200
18201         netdb: Add support for GNULIB_POSIXCHECK.
18202         * lib/netdb.in.h: Include warn-on-use.h.
18203         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
18204         functions are used when GNULIB_POSIXCHECK is defined and the
18205         getaddrinfo module is not in use.
18206         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18207         freeaddrinfo, gai_strerror, getnameinfo are declared.
18208         * modules/netdb (Depends-on): Add warn-on-use.
18209         (Makefile.am): Include warn-on-use.h in netdb.h.
18210
18211 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18212
18213         build: avoid "make check" failure without .git/ directory
18214         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18215         there is no .git/ directory.
18216
18217 2010-04-25  Bruno Haible  <bruno@clisp.org>
18218
18219         ptsname: Fix misuse of ttyname_r.
18220         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18221         of errno.
18222
18223 2010-04-25  Bruno Haible  <bruno@clisp.org>
18224
18225         ttyname_r: Make it work on Solaris 10.
18226         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18227         if the system function has the POSIX declaration. Test whether the
18228         function fails if the buffer is less than 128 bytes large.
18229         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18230         system's ttyname_r function. Provide a reasonably large buffer.
18231         * modules/ttyname_r (Depends-on): Add extensions.
18232         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18233
18234 2010-04-25  Bruno Haible  <bruno@clisp.org>
18235
18236         Use the 'extensions' module for some more functions on Solaris.
18237         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18238         module.
18239         * doc/posix-functions/ctime_r.texi: Likewise.
18240         * doc/posix-functions/getgrgid_r.texi: Likewise.
18241         * doc/posix-functions/getgrnam_r.texi: Likewise.
18242         * doc/posix-functions/getpwnam_r.texi: Likewise.
18243         * doc/posix-functions/getpwuid_r.texi: Likewise.
18244         * doc/posix-functions/readdir_r.texi: Likewise.
18245         * doc/posix-functions/sigwait.texi: Likewise.
18246         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18247         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18248
18249 2010-04-25  Bruno Haible  <bruno@clisp.org>
18250
18251         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18252         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18253         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18254         * lib/ttyname_r.c: Include <limits.h>.
18255         (ttyname_r): Define using the system's ttyname_r function, if it exists
18256         and not on Solaris.
18257         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18258         set.
18259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18260         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18261         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18262         Reported by Simon Josefsson.
18263
18264 2010-04-25  Bruno Haible  <bruno@clisp.org>
18265
18266         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18267         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18268         * doc/posix-functions/ctime_r.texi: Likewise.
18269         * doc/posix-functions/getgrgid_r.texi: Likewise.
18270         * doc/posix-functions/getgrnam_r.texi: Likewise.
18271         * doc/posix-functions/getlogin_r.texi: Likewise.
18272         * doc/posix-functions/getpwnam_r.texi: Likewise.
18273         * doc/posix-functions/getpwuid_r.texi: Likewise.
18274         * doc/posix-functions/readdir_r.texi: Likewise.
18275         * doc/posix-functions/sigwait.texi: Likewise.
18276         * doc/posix-functions/ttyname_r.texi: Likewise.
18277         Reported by Simon Josefsson.
18278
18279 2010-04-25  Bruno Haible  <bruno@clisp.org>
18280
18281         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18282         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18283         also to --create-testdir.
18284         (func_acceptable): Don't consider the status of *-tests modules here.
18285         (func_modules_transitive_closure): Consider it here, before including a
18286         test module.
18287         (func_import, func_create_testdir): Set inc_all_direct_tests,
18288         inc_all_indirect_tests.
18289         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18290         --create-testdir and --create-megatestdir.
18291
18292 2010-04-25  Bruno Haible  <bruno@clisp.org>
18293
18294         gnulib-tool: Add --without-*-tests options.
18295         * gnulib-tool (func_usage): Document the --without-*-tests options.
18296         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18297         excl_unportable_tests): New variables.
18298         Fail if they are specified with --import or --update.
18299         (func_acceptable): Respect the excl_*_tests variables.
18300         (func_import): Set the excl_*_tests variables to empty.
18301
18302 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18303             Bruno Haible  <bruno@clisp.org>
18304
18305         Work around a MacOS X 10.4 bug with openpty.
18306         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18307         * tests/test-openpty.c (main): Close the master side explicitly.
18308
18309 2010-04-25  Bruno Haible  <bruno@clisp.org>
18310
18311         strnlen: Fix a C++ test error on MacOS X and Solaris.
18312         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18313         the function is not declared.
18314         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18315         Simon Josefsson.
18316
18317 2010-04-24  Bruno Haible  <bruno@clisp.org>
18318
18319         Avoid a gcc warning.
18320         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18321         of correct type for %08lx directive.
18322         Reported by Eric Blake.
18323
18324 2010-04-24  Bruno Haible  <bruno@clisp.org>
18325
18326         vasnprintf: Correct errno value in case of out-of-memory.
18327         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18328         or sprintf. Use the errno value from SNPRINTF or sprintf.
18329         Reported by Ian Beckwith <ianb@erislabs.net>.
18330
18331 2010-04-24  Bruno Haible  <bruno@clisp.org>
18332
18333         ansi-c++-opt: Find correct compiler when cross-compiling.
18334         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18335         AC_CHECK_PROGS.
18336         Reported by Simon Josefsson.
18337
18338 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18339
18340         vc-list-files: Add support for subversion
18341         * build-aux/vc-list-files: Use "svn list" to generate the list of
18342         files controlled by subversion.
18343
18344 2010-04-23  Jim Meyering  <meyering@redhat.com>
18345
18346         vc-list-files tests: convert to use init.sh
18347         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18348         path_prepend_.
18349         Use Exit, not exit.
18350         Use skip_ rather than open coding it.
18351         Remove trap set-up and compare definitions.
18352         * tests/test-vc-list-files-git.sh: Likewise.
18353         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18354
18355 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18356
18357         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18358         backup files.
18359
18360 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18361
18362         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18363
18364 2010-04-20  Eric Blake  <eblake@redhat.com>
18365
18366         tests: be robust to ignored SIGPIPE
18367         * tests/test-select-in.sh: Consume all output.
18368         * tests/test-lseek.sh: Check correct exit status, while avoiding
18369         EPIPE.
18370
18371 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18372             Bruno Haible  <bruno@clisp.org>
18373
18374         visibility: Don't use -fvisibility if it leads to a warning.
18375         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18376         yes, don't pretend that visibility works if it leads to a warning.
18377         Reported by Mike Gran <spk121@yahoo.com>.
18378
18379 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18380
18381         * build-aux/bootstrap: Use "git -h" for testing for supported options
18382         instead of "git --help".  The short-form option only shows a summary,
18383         and doesn't layout the full man page.  Grep for the full option name
18384         in the summary, too.
18385
18386 2010-04-19  Bruno Haible  <bruno@clisp.org>
18387
18388         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18389         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18390         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18391         mention of RELOCATABLE_STRIP.
18392         Reported by Sylvain Beucler <beuc@beuc.net>.
18393
18394 2010-04-19  Bruno Haible  <bruno@clisp.org>
18395
18396         * lib/diffseq.h: Fix typo in comment.
18397         Reported by Eric Blake.
18398
18399 2010-04-19  Bruno Haible  <bruno@clisp.org>
18400
18401         ioctl: Move autoconf macro to a .m4 file.
18402         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18403         * modules/ioctl (Files): Add it.
18404         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18405         Reported by Ian Beckwith <ianb@erislabs.net>.
18406
18407 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18408             Bruno Haible  <bruno@clisp.org>
18409
18410         diffseq: Accommodate use-case with abstract arrays.
18411         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18412         is not defined.
18413         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18414         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18415
18416 2010-04-18  Bruno Haible  <bruno@clisp.org>
18417
18418         * doc/posix-headers/stdbool.texi: More precise wording.
18419
18420 2010-04-17  Jim Meyering  <meyering@redhat.com>
18421
18422         maint.mk: use gnu-style indentation in an embedded perl script
18423         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18424         Rename variable: s/two/last_two_bytes/
18425
18426 2010-04-16  Eric Blake  <eblake@redhat.com>
18427
18428         test-stdbool: skip test that fails with Solaris CC
18429         * tests/test-stdbool.c (f): Skip test that causes compilation
18430         error under buggy C++ compiler.
18431         * lib/stdbool.in.h: Document the limitation.
18432         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18433
18434         setenv: allow compilation with C++
18435         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18436         register keyword.
18437
18438         stdint: allow test to pass with C++
18439         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18440
18441         getopt: allow compilation with C++
18442         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18443         struct.
18444         * lib/getopt.c (_getopt_internal_r): Use correct type.
18445         Reported by Dagobert Michelson, via Joel E. Denny.
18446
18447 2010-04-16  Bruno Haible  <bruno@clisp.org>
18448
18449         Override netdb.h always.
18450         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18451         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18452         Reported by Ludovic Courtès <ludo@gnu.org>.
18453
18454 2010-04-15  Bruno Haible  <bruno@clisp.org>
18455
18456         openpty: Fix mistake from 2010-03-21.
18457         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18458         Reported by Simon Josefsson.
18459
18460 2010-04-15  Eric Blake  <eblake@redhat.com>
18461
18462         test-forkpty: fix expected signature
18463         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18464         Reported by Simon Josefsson.
18465
18466 2010-04-15  Jim Meyering  <meyering@redhat.com>
18467
18468         maint.mk: texinfo_suffix_re_: correct the default regexp
18469         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18470
18471         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18472         make it configurable via texinfo_suffix_re_.
18473
18474 2010-04-14  Eric Blake  <eblake@redhat.com>
18475
18476         strtok_r: relax license to LGPLv2+
18477         * modules/strtok_r (License): Relax license.
18478         Reported by Matthias Bolte.
18479
18480 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18481
18482         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18483         version 1.4.4 by default instead of requiring the libgcrypt
18484         version used during build.  This makes it possible to use the
18485         application with older but still binary compatible libgcrypt
18486         versions.
18487
18488 2010-04-13  Eric Blake  <eblake@redhat.com>
18489
18490         getopt-gnu: match recent glibc fixes and posix ruling
18491         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18492         '+' handling, when requesting extensions.
18493         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18494         'W;' handling.
18495         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18496         * doc/posix-functions/getopt.texi (getopt): Document this.
18497         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18498         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18499         Likewise.
18500
18501         getopt: merge bug fixes from glibc
18502         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18503         diagnostics.  Honor '+:' correctly.  Reject ';'.
18504
18505         getopt-posix: detect MacOS bug
18506         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18507         optind when missing a required argument.
18508         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18509         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18510         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18511         Likewise.
18512
18513         getopt-posix: avoid spurious failure on Solaris
18514         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18515         an indicator that setting optind=1 is sufficient for reset.
18516
18517         getopt-posix: avoid spurious failure on FreeBSD
18518         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18519         in POSIX mode, since the m4 test uses it.
18520
18521         gnulib-tool: silence warning on BSD sh
18522         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18523
18524 2010-04-13  Jim Meyering  <meyering@redhat.com>
18525
18526         doc: users.txt: GNU patch now uses gnulib
18527         * users.txt: Add patch.
18528
18529 2010-04-12  Jim Meyering  <meyering@redhat.com>
18530
18531         maint.mk: generate more concise timing data for syntax-check rules
18532         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18533         " done" from each line that reports a syntax-check test duration.
18534
18535 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18536
18537         git-version-gen: use "git update-index..." rather than "git status"
18538         * build-aux/git-version-gen: Use git update-index --refresh, not
18539         "git status".  With some versions of git, "git status" would fail
18540         to update the index and result in an unwarranted "-dirty" suffix.
18541
18542 2010-04-11  Jim Meyering  <meyering@redhat.com>
18543
18544         openat: correct formatting (no semantic change)
18545         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18546         Suggested by Bruno Haible.
18547
18548 2010-04-11  Bruno Haible  <bruno@clisp.org>
18549
18550         Stricter declaration checking in testdirs.
18551         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18552         If for_tests is true, augment AM_CPPFLAGS to define
18553         GNULIB_STRICT_CHECKING.
18554         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18555         GNULIB_STRICT_CHECKING is defined, verify that the function is
18556         declared.
18557
18558 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18559             Bruno Haible  <bruno@clisp.org>
18560
18561         libunistring: Improve configure output.
18562         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18563         Don't say "consider installing GNU libunistring" when checking again
18564         with libiconv.
18565
18566 2010-04-11  Bruno Haible  <bruno@clisp.org>
18567
18568         libunistring: Correct value of $LTLIBUNISTRING.
18569         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18570         correct the value of $LTLIBUNISTRING.
18571
18572 2010-04-11  Bruno Haible  <bruno@clisp.org>
18573
18574         havelib: Add static libraries to LIBS in the right order.
18575         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18576         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18577
18578 2010-04-11  Bruno Haible  <bruno@clisp.org>
18579
18580         libunistring: Detect libunistring also when it depends on libiconv.
18581         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18582         the second AC_LIB_HAVE_LINKFLAGS invocation.
18583
18584 2010-04-11  James Youngman  <jay@gnu.org>
18585
18586         close-stream: declare local scalars to be "const"
18587         * lib/close-stream.c (close_stream): Make boolean variables const
18588         to document the fact that we set but do not change them.
18589
18590 2010-04-11  Bruno Haible  <bruno@clisp.org>
18591
18592         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18593
18594 2010-04-11  Jim Meyering  <meyering@redhat.com>
18595
18596         maint.mk: don't include dist-check.mk
18597         * top/maint.mk: Remove bogus include directive.
18598
18599         maint.mk: improve empty-line-at-EOF check
18600         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18601         solution, rather than tail+Perl-based one.  The latter would read
18602         a few kilobytes from the end of each file, and did not handle empty
18603         files properly.
18604
18605         maint.mk: print the elapsed time for each syntax-check rule
18606         * top/maint.mk (sc_m_rules_): Save start time in a file.
18607         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18608         (local-check): Interpose the .z rules
18609
18610 2010-04-11  Jim Meyering  <meyering@redhat.com>
18611
18612         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18613         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18614         empty file with one that ends in an empty line.
18615
18616 2010-04-10  Bruno Haible  <bruno@clisp.org>
18617
18618         mkdir: Make it work on mingw64.
18619         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18620         * lib/mkdir.c: Update comment.
18621         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
18622
18623 2010-04-10  Bruno Haible  <bruno@clisp.org>
18624
18625         Don't override improved macro from newer autoconf.
18626         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18627         autoconf >= 2.62.
18628         Reported by Joel E. Denny <jdenny@clemson.edu>.
18629
18630 2010-04-10  Jim Meyering  <meyering@redhat.com>
18631
18632         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18633         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18634
18635         maint.mk: correct a diagnostic
18636         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18637         in diagnostic; now use $prohibit.
18638
18639 2010-04-10  Bruno Haible  <address@hidden>
18640
18641         fchownat: Fix a C++ test error on Solaris 8.
18642         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18643         the function does not exist.
18644
18645 2010-04-10  Bruno Haible  <bruno@clisp.org>
18646
18647         vasnprintf: Add more tests.
18648         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18649         (test_function): Test converting an invalid wide string.
18650
18651         vasnprintf: Correct handling of unconvertible wide string arguments.
18652         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18653         VASNPRINTF.
18654         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18655         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18656         smaller than the expected maximum need for the directive. Set errno to
18657         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18658         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18659         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18660         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18661         * modules/vasnprintf (Files): Add m4/printf.m4.
18662         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18663
18664 2010-04-10  Bruno Haible  <bruno@clisp.org>
18665
18666         vasnprintf: Fix crash in %ls directive.
18667         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18668         string is passed as argument to %ls, with no precision and no width.
18669         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18670
18671 2010-04-10  Bruno Haible  <bruno@clisp.org>
18672
18673         vasnprintf: Fix multiple test failures on mingw.
18674         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18675         _snprintf, or snwprintf, not _snwprintf.
18676
18677 2010-04-10  Bruno Haible  <bruno@clisp.org>
18678
18679         write: Fix a C++ test error on mingw.
18680         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18681
18682 2010-04-10  Bruno Haible  <bruno@clisp.org>
18683
18684         vasnprintf test: Reduce code duplication.
18685         * tests/test-vasnprintf.c (test_function): New function, extracted from
18686         test_vasnprintf.
18687         (test_vasnprintf, test_asnprintf): Invoke it.
18688
18689 2010-04-10  Bruno Haible  <bruno@clisp.org>
18690
18691         strnlen: Fix warning in C++ mode on MacOS X.
18692         * lib/string.in.h (strnlen): Use the modern idiom.
18693         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18694         defining strnlen as a macro already in <config.h>.
18695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18696         REPLACE_STRNLEN.
18697         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18698         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18699
18700 2010-04-08  James Youngman  <jay@gnu.org>
18701
18702         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18703         the example.
18704
18705 2010-04-09  Jim Meyering  <meyering@redhat.com>
18706
18707         maint.mk: print better diagnostic when there is no $(_hv_file)
18708         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18709         announce that when $(_hv_file) (aka help-version) does not exist.
18710
18711         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18712         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18713         not try to interpret its random input bytes.  Jarno Rajahalme reported
18714         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18715         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18716         (mktempd_): Likewise, just in case.
18717
18718         ftruncate: add two years to projected module removal date: 2012
18719         * m4/ftruncate.m4: Adjust comments.
18720
18721         ftruncate: mark module as obsolete; even MinGW provides it, now
18722         * modules/ftruncate (Status): Obsolete.
18723         (Notice): Say that.
18724         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18725         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18726
18727 2010-04-08  Bruno Haible  <bruno@clisp.org>
18728
18729         Fix side effects from tests-related modules.
18730         * modules/dprintf-posix (Comment): New section.
18731         * modules/fprintf-posix (Comment): Likewise.
18732         * modules/obstack-printf-posix (Comment): Likewise.
18733         * modules/printf-posix (Comment): Likewise.
18734         * modules/snprintf-posix (Comment): Likewise.
18735         * modules/sprintf-posix (Comment): Likewise.
18736         * modules/vasnprintf-posix (Comment): Likewise.
18737         * modules/vasprintf-posix (Comment): Likewise.
18738         * modules/vdprintf-posix (Comment): Likewise.
18739         * modules/vfprintf-posix (Comment): Likewise.
18740         * modules/vprintf-posix (Comment): Likewise.
18741         * modules/vsnprintf-posix (Comment): Likewise.
18742         * modules/vsprintf-posix (Comment): Likewise.
18743         * modules/xprintf-posix (Comment): Likewise.
18744         * modules/xvasprintf-posix (Comment): Likewise.
18745         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18746         * modules/floorf-tests (Depends-on): Likewise.
18747         * modules/round-tests (Depends-on): Likewise.
18748         * modules/roundf-tests (Depends-on): Likewise.
18749         * modules/trunc-tests (Depends-on): Likewise.
18750         * modules/truncf-tests (Depends-on): Likewise.
18751         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18752         'fprintf-posix' module is not present.
18753         * tests/test-floorf2.c (check): Likewise.
18754         * tests/test-trunc2.c (check): Likewise.
18755         * tests/test-truncf2.c (check): Likewise.
18756         * tests/test-round2.c (equal): Likewise.
18757         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18758
18759 2010-04-07  Karl Berry  <karl@gnu.org>
18760
18761         * config/srclist.txt,
18762         * config/srclistvars.sh,
18763         * config/srclist-update: doc fixes.
18764
18765 2010-04-07  Jim Meyering  <meyering@redhat.com>
18766
18767         maint.mk: add a PATH crosschecking syntax-check rule
18768         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18769         Useful if you use a test like the one in help-version (coreutils,
18770         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18771         printed by prog --version.
18772
18773 2010-04-06  Bruno Haible  <bruno@clisp.org>
18774
18775         Fix link error on mingw.
18776         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18777         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18778
18779 2010-04-06  Bruno Haible  <bruno@clisp.org>
18780
18781         Assume rmdir exists.
18782         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
18783
18784 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
18785
18786         doc: update users.txt
18787         * users.txt: Add gcal.
18788
18789 2010-04-06  Jim Meyering  <meyering@redhat.com>
18790
18791         init.sh: simply unset TMPDIR rather than risking env -i
18792         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
18793         although it probably works fine on all Unix-based systems, some
18794         systems (Cygwin?) cannot tolerate a totally cleared environment.
18795         Suggestion from Eric Blake.
18796
18797 2010-04-06  Jim Meyering  <meyering@redhat.com>
18798
18799         init.sh: portability fix: use env's POSIX-specified -i option not -u
18800         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
18801         than unportable env -u.  Solaris 5.11's env lacks support for -u.
18802
18803 2010-04-05  Bruno Haible  <bruno@clisp.org>
18804
18805         btowc: Work around Cygwin 1.7.2 bug.
18806         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
18807         does not map NUL to 0.
18808         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
18809
18810 2010-04-05  Bruno Haible  <bruno@clisp.org>
18811
18812         Make the multithread modules work on Cygwin 1.7.2.
18813         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
18814         imported symbols can be declared weak, so that it returns "no" on
18815         Cygwin 1.7.2.
18816
18817 2010-04-05  Bruno Haible  <bruno@clisp.org>
18818
18819         Use the module 'strncat'.
18820         * modules/unistr/u8-strncat (Depends-on): Add strncat.
18821
18822         Tests for module 'strncat'.
18823         * modules/strncat-tests: New file.
18824         * tests/test-strncat.c: New file.
18825
18826         New module 'strncat'.
18827         * lib/string.in.h (strncat): New declaration.
18828         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
18829         * m4/strncat.m4: New file, based on m4/memchr.m4.
18830         * modules/strncat: New file.
18831         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
18832         is declared.
18833         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
18834         REPLACE_STRNCAT.
18835         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
18836         REPLACE_STRNCAT.
18837         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
18838         module.
18839         * tests/test-string-c++.cc: Check signature of strncat.
18840
18841 2010-04-05  Jim Meyering  <meyering@redhat.com>
18842
18843         xstrtoumax-tests: convert to use init.sh
18844         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
18845         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18846         Use Exit, not exit.
18847         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18848
18849         xstrtoimax-tests: convert to use init.sh
18850         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
18851         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18852         Use Exit, not exit.
18853         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18854
18855 2010-04-05  Bruno Haible  <bruno@clisp.org>
18856
18857         sys_socket: Avoid #define replacements in C++ mode.
18858         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
18859         warning to the function if possible, rather than #defining the symbol
18860         to a dysfunctional alias.
18861
18862 2010-04-05  Bruno Haible  <bruno@clisp.org>
18863
18864         fseeko: Fix C++ test error on mingw.
18865         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
18866         gl_FUNC_FSEEKO.
18867         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
18868         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
18869         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
18870         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
18871
18872 2010-04-05  Bruno Haible  <bruno@clisp.org>
18873
18874         duplocale: Improve test output.
18875         * tests/test-duplocale.c (main): Print reason for skipped test.
18876
18877 2010-04-05  Bruno Haible  <bruno@clisp.org>
18878
18879         Assume rmdir exists.
18880         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
18881         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
18882
18883 2010-04-05  Bruno Haible  <bruno@clisp.org>
18884
18885         Fix link error on Solaris 8 with cc.
18886         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
18887
18888 2010-04-05  Bruno Haible  <bruno@clisp.org>
18889
18890         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18891         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
18892
18893 2010-04-05  Bruno Haible  <bruno@clisp.org>
18894
18895         vasprintf: Update documentation.
18896         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
18897
18898 2010-04-05  Bruno Haible  <bruno@clisp.org>
18899
18900         ptsname: Improve test.
18901         * tests/test-ptsname.c (main): Also try the various master names of BSD
18902         systems.
18903
18904 2010-04-05  Bruno Haible  <bruno@clisp.org>
18905
18906         memchr: Avoid a possible C++ test error.
18907         * lib/string.in.h (memchr): Provide declaration if function is missing.
18908         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
18909         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
18910         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
18911         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
18912
18913 2010-04-05  Bruno Haible  <bruno@clisp.org>
18914
18915         strtok_r: Improve idiom.
18916         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
18917         AC_LIBOBJ is used.
18918
18919 2010-04-05  Bruno Haible  <bruno@clisp.org>
18920
18921         strdup: Improve idiom.
18922         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
18923         AC_LIBOBJ is used.
18924         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
18925         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
18926         when AC_LIBOBJ is used.
18927
18928 2010-04-05  Bruno Haible  <bruno@clisp.org>
18929
18930         mbsinit, mbrtowc, wcrtomb: Improve idioms.
18931         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
18932         don't set REPLACE_MBSINIT to 1.
18933         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
18934         don't set REPLACE_MBRTOWC to 1.
18935         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
18936         exist, don't set REPLACE_MBSRTOWCS to 1.
18937         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
18938         exist, don't set REPLACE_MBSNRTOWCS to 1.
18939         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
18940         don't set REPLACE_WCRTOMB to 1.
18941         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
18942         exist, don't set REPLACE_WCSRTOMBS to 1.
18943         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
18944         exist, don't set REPLACE_WCSNRTOMBS to 1.
18945
18946 2010-04-05  Bruno Haible  <bruno@clisp.org>
18947
18948         ldexpl: Improve idiom.
18949         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
18950         make sure to set HAVE_DECL_LDEXPL to 0.
18951
18952 2010-04-05  Jim Meyering  <meyering@redhat.com>
18953
18954         xstrtol-tests: convert to use init.sh
18955         * modules/xstrtol-tests (Files): Add tests/init.sh.
18956         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18957         Use Exit, not exit.
18958         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18959
18960         atexit-tests: convert to use init.sh
18961         * modules/atexit-tests (Files): Add tests/init.sh.
18962         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18963         Use Exit, not exit.
18964         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18965
18966         init.sh: fix typo
18967         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
18968
18969         init.sh: make it easier for a test script to write to the tty, ...
18970         when using automake's parallel-tests mode.
18971         * tests/init.sh (stderr_fileno_): Define overridable variable.
18972         (warn_): New function, to use it.
18973         (fail_, skip_, framework_failure_): Use warn_.
18974
18975 2010-04-04  Bruno Haible  <bruno@clisp.org>
18976
18977         btowc: Avoid warning.
18978         * lib/btowc.c: Include <stdlib.h>.
18979         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
18980
18981 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18982             Bruno Haible  <bruno@clisp.org>
18983
18984         wchar: Port to NetBSD 1.5.
18985         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
18986         * lib/wctype.in.h (WEOF): Likewise.
18987
18988 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18989             Bruno Haible  <bruno@clisp.org>
18990
18991         Port extended stdio to NetBSD 1.5.
18992         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
18993         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
18994         older.
18995
18996 2010-04-04  Bruno Haible  <bruno@clisp.org>
18997
18998         string: Remove unused substitution.
18999         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19000         HAVE_DECL_STRERROR.
19001         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
19002
19003 2010-04-04  Bruno Haible  <bruno@clisp.org>
19004
19005         strtod: Avoid a possible C++ test error.
19006         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
19007         set REPLACE_STRTOD.
19008
19009 2010-04-04  Bruno Haible  <bruno@clisp.org>
19010
19011         strerror: Update documentation.
19012         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
19013
19014 2010-04-04  Bruno Haible  <bruno@clisp.org>
19015
19016         stdio: Fix some C++ test errors on Solaris 8 with GCC.
19017         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
19018         _GL_CXXALIAS_SYS_CAST.
19019
19020 2010-04-04  Bruno Haible  <bruno@clisp.org>
19021
19022         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19023         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19024         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19025         REPLACE_FREXPL to 1.
19026         * doc/posix-functions/frexpl.texi: Update documentation.
19027
19028 2010-04-04  Bruno Haible  <bruno@clisp.org>
19029
19030         math: Fix some C++ test errors on Solaris 8 and Cygwin.
19031         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
19032
19033 2010-04-04  Bruno Haible  <bruno@clisp.org>
19034
19035         Implement nanosleep for native Windows.
19036         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
19037
19038 2010-04-04  Bruno Haible  <bruno@clisp.org>
19039
19040         math: Fix some C++ test errors on Solaris 8.
19041         * lib/math.in.h (truncf, trunc): Use simpler idiom.
19042
19043 2010-04-04  Bruno Haible  <bruno@clisp.org>
19044
19045         math: Fix some C++ test errors on Cygwin.
19046         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
19047         truncl): Provide declaration if the system does not have it.
19048         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
19049         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
19050         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
19051         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
19052         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
19053         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
19054         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
19055         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
19056         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
19057         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
19058         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
19059         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
19060         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
19061         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
19062         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
19063         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
19064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
19065         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19066         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19067         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
19068         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19069         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19070
19071 2010-04-04  Bruno Haible  <bruno@clisp.org>
19072
19073         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
19074         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19075         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19076         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19077         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19078         * m4/isinf.m4 (gl_ISINF): Likewise.
19079         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19080
19081 2010-04-04  Bruno Haible  <bruno@clisp.org>
19082
19083         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
19084         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19085
19086 2010-04-04  Bruno Haible  <bruno@clisp.org>
19087
19088         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
19089         * modules/tmpfile (configure.ac): Update.
19090
19091         tmpfile: Fix C++ test error on mingw.
19092         * lib/stdio.in.h (tmpfile): New declaration.
19093         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
19094         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
19095         * modules/tmpfile (Depends-on): Add stdio.
19096         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19097         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
19098         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
19099         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
19100         REPLACE_TMPFILE.
19101         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
19102
19103 2010-04-04  Bruno Haible  <bruno@clisp.org>
19104
19105         ioctl: Fix C++ test error on mingw.
19106         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
19107         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
19108         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
19109
19110 2010-04-03  Bruno Haible  <bruno@clisp.org>
19111
19112         wcwidth: Fix C++ test error on mingw.
19113         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
19114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
19115         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
19116
19117 2010-04-03  Bruno Haible  <bruno@clisp.org>
19118
19119         nanosleep: Fix C++ test error on mingw.
19120         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
19121         * lib/time.in.h (nanosleep): Use modern idiom.
19122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
19123         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
19124         REPLACE_NANOSLEEP to 1.
19125         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
19126         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
19127
19128 2010-04-03  Bruno Haible  <bruno@clisp.org>
19129
19130         strptime: Fix C++ test error on mingw.
19131         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
19132         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
19133         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
19134         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
19135         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
19136         not REPLACE_STRPTIME.
19137         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
19138         REPLACE_STRPTIME.
19139
19140 2010-04-03  Bruno Haible  <bruno@clisp.org>
19141
19142         timegm: Fix C++ test error on mingw.
19143         * lib/time.in.h (timegm): Use modern idiom.
19144         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
19145         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
19146         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
19147         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
19148
19149 2010-04-03  Bruno Haible  <bruno@clisp.org>
19150
19151         timegm: Assume declaration if function exists.
19152         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
19153         if it exists. Don't clobber ac_cv_func_timegm.
19154
19155 2010-04-03  Bruno Haible  <bruno@clisp.org>
19156
19157         time_r: Fix C++ test error on mingw.
19158         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
19159         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
19160         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
19161         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
19162         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
19163
19164 2010-04-03  Bruno Haible  <bruno@clisp.org>
19165
19166         time_r: Minor updates.
19167         * modules/time_r (Description): Mention the provided functions.
19168         * lib/time_r.c: Don't include <string.h>.
19169         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
19170         * doc/posix-functions/localtime_r.texi: Likewise.
19171
19172 2010-04-03  Bruno Haible  <bruno@clisp.org>
19173
19174         time: Fix regression introduced on 2010-03-08.
19175         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
19176         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
19177
19178 2010-04-03  Jim Meyering  <meyering@redhat.com>
19179
19180         maint.mk: don't silently disable project-specific syntax-check rules
19181         * top/maint.mk (_prohibit_regexp): Define, to help people realize
19182         that they need to convert their project-specific syntax-check rules
19183         to use the new _sc_search_regexp.
19184
19185 2010-04-03  Bruno Haible  <bruno@clisp.org>
19186
19187         fchdir: Fix regression introduced on 2010-03-08.
19188         * lib/unistd.in.h (fchdir): Fix declaration.
19189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
19190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
19191         REPLACE_FCHDIR.
19192         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
19193         REPLACE_FCHDIR.
19194
19195 2010-04-03  Bruno Haible  <bruno@clisp.org>
19196
19197         getpagesize: Fix C++ test error on mingw.
19198         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
19199         system does not declare the function.
19200         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
19201         declared.
19202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19203         HAVE_DECL_GETPAGESIZE.
19204         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
19205
19206 2010-04-03  Bruno Haible  <bruno@clisp.org>
19207
19208         stdio: Make C++ tests work on mingw.
19209         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19210         does not declare the function.
19211
19212 2010-04-03  Bruno Haible  <bruno@clisp.org>
19213
19214         ftello: Fix C++ test error on mingw.
19215         * lib/stdio.in.h (ftello): Use modern idiom.
19216         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19217         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19218         is missing and that it needs to be replaced.
19219         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19221         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19222
19223 2010-04-03  Bruno Haible  <bruno@clisp.org>
19224
19225         fseeko: Fix C++ test error on mingw.
19226         * lib/stdio.in.h (fseeko): Use modern idiom.
19227         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19228         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19229         is missing and that it needs to be replaced.
19230         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19232         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19233
19234 2010-04-03  Bruno Haible  <bruno@clisp.org>
19235
19236         mkstemp: Fix C++ test error on mingw.
19237         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19238         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19239         function is missing and that it needs to be replaced.
19240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19241         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19242
19243 2010-04-03  Bruno Haible  <bruno@clisp.org>
19244
19245         stpncpy: Fix C++ test error on mingw.
19246         * lib/string.in.h (stpncpy): Use modern idiom.
19247         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19248         function is missing and that it needs to be replaced.
19249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19250         REPLACE_STPNCPY.
19251         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19252
19253 2010-04-03  Bruno Haible  <bruno@clisp.org>
19254
19255         sys_stat: Fix C++ test error on mingw.
19256         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19257         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19258
19259 2010-04-03  Bruno Haible  <bruno@clisp.org>
19260
19261         pty: Update doc.
19262         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19263
19264 2010-04-03  Bruno Haible  <bruno@clisp.org>
19265
19266         unistd: Fix C++ test error on mingw.
19267         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19268
19269 2010-04-03  Bruno Haible  <bruno@clisp.org>
19270
19271         Update doc regarding mingw.
19272         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19273         * doc/glibc-functions/login_tty.texi: Likewise.
19274         * doc/glibc-functions/forkpty.texi: Likewise.
19275
19276 2010-04-03  Bruno Haible  <bruno@clisp.org>
19277
19278         stdlib: Avoid compilation failure of c-strtold on mingw.
19279         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19280
19281 2010-04-03  Bruno Haible  <bruno@clisp.org>
19282
19283         locale: Make C++ tests work on Cygwin and mingw.
19284         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19285         cannot provide the function.
19286         Reported by Simon Josefsson.
19287
19288 2010-04-03  Bruno Haible  <bruno@clisp.org>
19289
19290         localename: Port to MacOS X 10.6.
19291         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19292         memory layout of the locales in MacOS X 10.6 as well.
19293         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19294
19295 2010-04-02  Bruno Haible  <bruno@clisp.org>
19296
19297         gnulib-tool: Ensure that long-running tests are executed last.
19298         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19299         running tests after the one for the other tests.
19300
19301 2010-04-02  Bruno Haible  <bruno@clisp.org>
19302
19303         gnulib-tool: Ensure the tests in the main directory are executed first.
19304         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19305         start with the current directory.
19306
19307 2010-04-02  Bruno Haible  <bruno@clisp.org>
19308
19309         Tests for module 'havelib', moved here from GNU gettext.
19310         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19311         modifications.
19312         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19313         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19314         with modifications.
19315         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19316         modifications.
19317         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19318         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19319         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19320         with modifications.
19321         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19322         with modifications.
19323         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19324         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19325         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19326         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19327         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19328         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19329         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19330         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19331         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19332         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19333         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19334         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19335         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19336         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19337         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19338         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19339         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19340         with modifications.
19341         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19342         with modifications.
19343         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19344         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19345         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19346         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19347         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19348         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19349         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19350         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19351         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19352         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19353         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19354         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19355         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19356         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19357         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19358         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19359         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19360         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19361         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19362         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19363         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19364         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19365         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19366         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19367         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19368         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19369         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19370         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19371         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19372         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19373         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19374         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19375         * tests/havelib/rpathx/rpathx.c: New file, from
19376         gettext/autoconf-lib-link.
19377         * tests/havelib/rpathx/Makefile.am: New file, from
19378         gettext/autoconf-lib-link.
19379         * tests/havelib/rpathx/configure.ac: New file, from
19380         gettext/autoconf-lib-link with modifications.
19381         * tests/havelib/rpathy/rpathy.c: New file, from
19382         gettext/autoconf-lib-link.
19383         * tests/havelib/rpathy/Makefile.am: New file, from
19384         gettext/autoconf-lib-link.
19385         * tests/havelib/rpathy/configure.ac: New file, from
19386         gettext/autoconf-lib-link with modifications.
19387         * tests/havelib/rpathz/rpathz.c: New file, from
19388         gettext/autoconf-lib-link.
19389         * tests/havelib/rpathz/Makefile.am: New file, from
19390         gettext/autoconf-lib-link.
19391         * tests/havelib/rpathz/configure.ac: New file, from
19392         gettext/autoconf-lib-link with modifications.
19393         * tests/havelib/rpathlx/usex.c: New file, from
19394         gettext/autoconf-lib-link.
19395         * tests/havelib/rpathlx/Makefile.am: New file, from
19396         gettext/autoconf-lib-link.
19397         * tests/havelib/rpathlx/configure.ac: New file, from
19398         gettext/autoconf-lib-link with modifications.
19399         * tests/havelib/rpathly/usey.c: New file, from
19400         gettext/autoconf-lib-link.
19401         * tests/havelib/rpathly/Makefile.am: New file, from
19402         gettext/autoconf-lib-link.
19403         * tests/havelib/rpathly/configure.ac: New file, from
19404         gettext/autoconf-lib-link with modifications.
19405         * tests/havelib/rpathlz/usez.c: New file, from
19406         gettext/autoconf-lib-link.
19407         * tests/havelib/rpathlz/Makefile.am: New file, from
19408         gettext/autoconf-lib-link.
19409         * tests/havelib/rpathlz/configure.ac: New file, from
19410         gettext/autoconf-lib-link with modifications.
19411         * tests/havelib/rpathlyx/usey.c: New file, from
19412         gettext/autoconf-lib-link.
19413         * tests/havelib/rpathlyx/Makefile.am: New file, from
19414         gettext/autoconf-lib-link.
19415         * tests/havelib/rpathlyx/configure.ac: New file, from
19416         gettext/autoconf-lib-link with modifications.
19417         * tests/havelib/rpathlzyx/usez.c: New file, from
19418         gettext/autoconf-lib-link.
19419         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19420         gettext/autoconf-lib-link.
19421         * tests/havelib/rpathlzyx/configure.ac: New file, from
19422         gettext/autoconf-lib-link with modifications.
19423         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19424         with modifications.
19425
19426 2010-04-02  Bruno Haible  <bruno@clisp.org>
19427
19428         gnulib-tool: Create distributed built sources also for the tests.
19429         * gnulib-tool (func_create_testdir): Also generate distributed built
19430         sources in the tests directory.
19431
19432 2010-04-02  Bruno Haible  <bruno@clisp.org>
19433
19434         gnulib-tool: Obey user's environment variables.
19435         * gnulib-tool (func_create_testdir): When creating built sources,
19436         respect the environment variables for autoconf, automake, etc. given by
19437         the user.
19438
19439 2010-04-02  Bruno Haible  <bruno@clisp.org>
19440
19441         gnulib-tool: Provide the value of --m4-base to modules.
19442         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19443         of gl_m4_base.
19444
19445 2010-04-02  Eric Blake  <eblake@redhat.com>
19446
19447         maint.mk: fix some fallout
19448         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19449         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19450
19451 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19452
19453         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19454         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19455         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19456         (sc_cast_of_x_alloc_return_value): Likewise.
19457         (sc_cast_of_alloca_return_value): Likewise.
19458         (sc_space_tab): Likewise.
19459         (sc_prohibit_atoi_atof): Likewise.
19460         (sc_prohibit_magic_number_exit): Likewise.
19461         (sc_error_exit_success): Likewise.
19462         (sc_file_system): Likewise.
19463         (sc_prohibit_have_config_h): Likewise.
19464         (sc_require_config_h): Likewise.
19465         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19466         (sc_obsolete_symbols): Likewise.
19467         (sc_changelog): Likewise.
19468         (sc_program_name): Likewise.
19469         (sc_the_the): Likewise.
19470         (sc_trailing_blank): Likewise.
19471         (sc_two_space_separator_in_usage): Likewise.
19472         (sc_useless_cpp_parens): Likewise.
19473         (sc_GPL_version): Likewise.
19474         (sc_GFDL_version): Likewise.
19475         (sc_texinfo_acronym): Likewise.
19476         (sc_prohibit_cvs_keyword): Likewise.
19477         (sc_prohibit_stat_st_blocks): Likewise.
19478         (sc_prohibit_S_IS_definition): Likewise.
19479         (sc_redundant_const): Likewise.
19480         (sc_makefile_TAB_only_indentation): Likewise.
19481         (sc_m4_quote_check): Likewise.
19482         (sc_makefile_path_separator_check): Likewise.
19483         (sc_copyright_check): Likewise.
19484         (sc_Wundef_boolean): Likewise.
19485         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19486
19487         maint.mk: match 0 or more whitespace-before-function-call '('
19488         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19489         that have zero or two-and-more spaces between the function name
19490         and the open parenthesis.
19491         (sc_error_message_warn_fatal): Likewise.
19492         (sc_error_message_uppercase): Likewise.
19493         (sc_error_message_period): Likewise.
19494
19495 2010-03-31  Eric Blake  <eblake@redhat.com>
19496
19497         maint.mk: check for [ as well as test
19498         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19499         Based on a libvirt report by Matthias Bolte.
19500
19501         gnumakefile: don't squelch _version output
19502         * top/GNUmakefile (_version): Create one-shot dependency rather
19503         than using $(shell) when version must be regenerated.
19504         (_autoreconf): Run verbosely, by default.
19505
19506         sys_time: avoid compiler warnings
19507         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19508         unconditional, fixing regression from 2010-03-29.
19509         Reported by Simon Josefsson.
19510
19511 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19512
19513         maint.mk: s/_header_without_use/_sc_header_without_use/
19514         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19515         (sc_prohibit_assert_without_use): Use the new name.
19516         (sc_prohibit_close_stream_without_use): Likewise.
19517         (sc_prohibit_getopt_without_use): Likewise.
19518         (sc_prohibit_quotearg_without_use): Likewise.
19519         (sc_prohibit_quote_without_use): Likewise.
19520         (sc_prohibit_long_options_without_use): Likewise.
19521         (sc_prohibit_inttostr_without_use): Likewise.
19522         (sc_prohibit_ignore_value_without_use): Likewise.
19523         (sc_prohibit_error_without_use): Likewise.
19524         (sc_prohibit_xalloc_without_use): Likewise.
19525         (sc_prohibit_hash_without_use): Likewise.
19526         (sc_prohibit_hash_pjw_without_use): Likewise.
19527         (sc_prohibit_safe_read_without_use): Likewise.
19528         (sc_prohibit_argmatch_without_use): Likewise.
19529         (sc_prohibit_canonicalize_without_use): Likewise.
19530         (sc_prohibit_root_dev_ino_without_use): Likewise.
19531         (sc_prohibit_openat_without_use): Likewise.
19532         (sc_prohibit_c_ctype_without_use): Likewise.
19533         (sc_prohibit_signal_without_use): Likewise.
19534         (sc_prohibit_intprops_without_use): Likewise.
19535
19536 2010-03-30  Eric Blake  <eblake@redhat.com>
19537
19538         maint: improve module indicators
19539         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19540         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19541         columns, and avoid extra macro expansion.
19542
19543         fdopendir: work around FreeBSD bug
19544         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19545         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19546         * modules/dirent (Makefile.am): Substitute it.
19547         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19548         declaration.
19549         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19550         fix.
19551         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19552
19553 2010-03-29  Bruno Haible  <bruno@clisp.org>
19554
19555         Emit #pragma system_header after the inclusion guard, not before.
19556         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19557         guard that spans the entire file, not before. This enables an
19558         optimization in GCC's preprocessor.
19559         * lib/ctype.in.h: Likewise.
19560         * lib/dirent.in.h: Likewise.
19561         * lib/errno.in.h: Likewise.
19562         * lib/float.in.h: Likewise.
19563         * lib/getopt.in.h: Likewise.
19564         * lib/iconv.in.h: Likewise.
19565         * lib/langinfo.in.h: Likewise.
19566         * lib/locale.in.h: Likewise.
19567         * lib/math.in.h: Likewise.
19568         * lib/netdb.in.h: Likewise.
19569         * lib/netinet_in.in.h: Likewise.
19570         * lib/pty.in.h: Likewise.
19571         * lib/sched.in.h: Likewise.
19572         * lib/se-selinux.in.h: Likewise.
19573         * lib/search.in.h: Likewise.
19574         * lib/spawn.in.h: Likewise.
19575         * lib/stdarg.in.h: Likewise.
19576         * lib/stdint.in.h: Likewise.
19577         * lib/string.in.h: Likewise.
19578         * lib/strings.in.h: Likewise.
19579         * lib/sys_file.in.h: Likewise.
19580         * lib/sys_ioctl.in.h: Likewise.
19581         * lib/sys_time.in.h: Likewise.
19582         * lib/sys_times.in.h: Likewise.
19583         * lib/sys_utsname.in.h: Likewise.
19584         * lib/sys_wait.in.h: Likewise.
19585         * lib/sysexits.in.h: Likewise.
19586         * lib/wctype.in.h: Likewise.
19587
19588 2010-03-28  James Youngman  <jay@gnu.org>
19589
19590         save-cwd: don't leak a file descriptor when the caller execs.
19591         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19592         saved file descriptor.
19593         * modules/save-cwd (Depends-on): Depend on cloexec.
19594
19595 2010-03-29  Bruno Haible  <bruno@clisp.org>
19596
19597         Remove vestiges of fts-lgpl module.
19598         * lib/fts_.h: Assume GNULIB_FTS is 1.
19599         * lib/fts.c: Likewise.
19600         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19601
19602 2010-03-28  Bruno Haible  <bruno@clisp.org>
19603
19604         Fix definition of tests witness macro.
19605         * gnulib-tool (func_import): Fix definition of witness macro.
19606
19607 2010-03-28  Bruno Haible  <bruno@clisp.org>
19608
19609         Fix ioctl's protoype on glibc systems.
19610         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19611         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19612         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19613         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19614         signature. If not, arrange to replace the ioctl function.
19615         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19616         REPLACE_IOCTL.
19617         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19618         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19619         Reported by Ludovic Courtès <ludo@gnu.org>.
19620
19621 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19622
19623         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19624         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19625         made it so grep -r --include=GLOB* ... did not work.
19626
19627 2010-03-26  Jim Meyering  <meyering@redhat.com>
19628             Eric Blake  <eblake@redhat.com>
19629
19630         maint.mk: prohibit use of test's -o and -a operators
19631         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19632
19633 2010-03-28  Bruno Haible  <bruno@clisp.org>
19634
19635         Remove unused GNULIB_XYZ macro definitions.
19636         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19637         invocation.
19638
19639 2010-03-28  Bruno Haible  <bruno@clisp.org>
19640
19641         Mark privileged tests modules.
19642         * modules/idpriv-drop-tests (Status): New section.
19643         * modules/idpriv-droptemp-tests (Status): New section.
19644
19645 2010-03-28  Bruno Haible  <bruno@clisp.org>
19646
19647         Split C++ tests into separate tests modules.
19648         * modules/dirent-c++-tests: New file, extracted from
19649         modules/dirent-tests.
19650         * modules/dirent-tests: Depend on it.
19651         * modules/fcntl-h-c++-tests: New file, extracted from
19652         modules/fcntl-h-tests.
19653         * modules/fcntl-h-tests: Depend on it.
19654         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19655         * modules/glob-tests: Depend on it.
19656         * modules/iconv-h-c++-tests: New file, extracted from
19657         modules/iconv-h-tests.
19658         * modules/iconv-h-tests: Depend on it.
19659         * modules/langinfo-c++-tests: New file, extracted from
19660         modules/langinfo-tests.
19661         * modules/langinfo-tests: Depend on it.
19662         * modules/locale-c++-tests: New file, extracted from
19663         modules/locale-tests.
19664         * modules/locale-tests: Depend on it.
19665         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19666         * modules/math-tests: Depend on it.
19667         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19668         * modules/pty-tests: Depend on it.
19669         * modules/search-c++-tests: New file, extracted from
19670         modules/search-tests.
19671         * modules/search-tests: Depend on it.
19672         * modules/signal-c++-tests: New file, extracted from
19673         modules/signal-tests.
19674         * modules/signal-tests: Depend on it.
19675         * modules/spawn-c++-tests: New file, extracted from
19676         modules/spawn-tests.
19677         * modules/spawn-tests: Depend on it.
19678         * modules/stdio-c++-tests: New file, extracted from
19679         modules/stdio-tests.
19680         * modules/stdio-tests: Depend on it.
19681         * modules/stdlib-c++-tests: New file, extracted from
19682         modules/stdlib-tests.
19683         * modules/stdlib-tests: Depend on it.
19684         * modules/string-c++-tests: New file, extracted from
19685         modules/string-tests.
19686         * modules/string-tests: Depend on it.
19687         * modules/sys_ioctl-c++-tests: New file, extracted from
19688         modules/sys_ioctl-tests.
19689         * modules/sys_ioctl-tests: Depend on it.
19690         * modules/sys_select-c++-tests: New file, extracted from
19691         modules/sys_select-tests.
19692         * modules/sys_select-tests: Depend on it.
19693         * modules/sys_socket-c++-tests: New file, extracted from
19694         modules/sys_socket-tests.
19695         * modules/sys_socket-tests: Depend on it.
19696         * modules/sys_stat-c++-tests: New file, extracted from
19697         modules/sys_stat-tests.
19698         * modules/sys_stat-tests: Depend on it.
19699         * modules/sys_time-c++-tests: New file, extracted from
19700         modules/sys_time-tests.
19701         * modules/sys_time-tests: Depend on it.
19702         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19703         * modules/time-tests: Depend on it.
19704         * modules/unistd-c++-tests: New file, extracted from
19705         modules/unistd-tests.
19706         * modules/unistd-tests: Depend on it.
19707         * modules/wchar-c++-tests: New file, extracted from
19708         modules/wchar-tests.
19709         * modules/wchar-tests: Depend on it.
19710         * modules/wctype-c++-tests: New file, extracted from
19711         modules/wctype-tests.
19712         * modules/wctype-tests: Depend on it.
19713         Reported by Simon Josefsson.
19714
19715 2010-03-28  Bruno Haible  <bruno@clisp.org>
19716
19717         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19718         * gnulib-tool (func_exists_module): New function, extracted from
19719         func_verify_module.
19720         (func_verify_module): Use it.
19721         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19722         'foo' only if 'foo' exists.
19723         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19724         module.
19725
19726 2010-03-28  Bruno Haible  <bruno@clisp.org>
19727
19728         gnulib-tool: Add support for special categories of tests.
19729         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19730         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19731         (func_usage): Document them.
19732         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19733         inc_unportable_tests, inc_all_tests): New variables.
19734         (func_acceptable): Consider these variables.
19735         (func_modules_transitive_closure): Make it work when the 'Status' field
19736         consists of multiple words.
19737         (func_import): Store and restore the values of inc_cxx_tests,
19738         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19739         inc_all_tests in gnulib-comp.m4.
19740         (func_create_testdir): Set inc_all_tests to true.
19741         * doc/gnulib.texi (Extra tests modules): New section.
19742         Suggested by Jim Meyering.
19743
19744 2010-03-28  Bruno Haible  <bruno@clisp.org>
19745
19746         ansi-c++-opt: Allow turning off the C++ build by default.
19747         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19748         gl_CXX_CHOICE_DEFAULT_NO is defined.
19749         Requested by Eric Blake.
19750
19751 2010-03-28  Bruno Haible  <bruno@clisp.org>
19752
19753         unistd: Avoid #define replacements in C++ mode.
19754         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19755         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19756         setsockopt, shutdown, select): In C++, attach a warning to the function
19757         if possible, rather than #defining the symbol to a dysfunctional alias.
19758         Reported by John W. Eaton <jwe@gnu.org>.
19759
19760 2010-03-28  Bruno Haible  <bruno@clisp.org>
19761
19762         Fix link errors on mingw.
19763         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19764         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19765         $(LIBSOCKET).
19766         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19767         $(LIBSOCKET).
19768
19769 2010-03-28  Bruno Haible  <bruno@clisp.org>
19770             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19771
19772         lib-ignore: Determine different options for different compilers.
19773         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19774         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19775         Add comments.
19776         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19777         * NEWS: Mention the change.
19778
19779 2010-03-27  Bruno Haible  <bruno@clisp.org>
19780
19781         Remove unused GNULIB_XYZ macro definitions.
19782         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19783         * modules/fseek (configure.ac): Likewise.
19784         * modules/ioctl (configure.ac): Likewise.
19785         * modules/open (configure.ac): Likewise.
19786         * modules/stdlib-safer (configure.ac): Likewise.
19787
19788 2010-03-27  Bruno Haible  <bruno@clisp.org>
19789
19790         Add a remark about certain modules.
19791         * modules/malloc (Comment): New section.
19792         * modules/realloc (Comment): Likewise.
19793         * modules/sigpipe (Comment): Likewise.
19794
19795 2010-03-27  Bruno Haible  <bruno@clisp.org>
19796
19797         Resolve conflict between the two kinds of module indicators.
19798         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
19799         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
19800         * modules/canonicalize (configure.ac): Invoke
19801         gl_MODULE_INDICATOR_FOR_TESTS.
19802         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
19803         GNULIB_XYZ.
19804         * tests/test-dirent-c++.cc: Likewise.
19805         * tests/test-dirent-safer.c: Likewise.
19806         * tests/test-dup2.c: Likewise.
19807         * tests/test-fchdir.c: Likewise.
19808         * tests/test-fcntl-h-c++.cc: Likewise.
19809         * tests/test-getopt.c: Likewise.
19810         * tests/test-getopt.h: Likewise.
19811         * tests/test-langinfo-c++.cc: Likewise.
19812         * tests/test-locale-c++.cc: Likewise.
19813         * tests/test-math-c++.cc: Likewise.
19814         * tests/test-pty-c++.cc: Likewise.
19815         * tests/test-search-c++.cc: Likewise.
19816         * tests/test-signal-c++.cc: Likewise.
19817         * tests/test-spawn-c++.cc: Likewise.
19818         * tests/test-stdio-c++.cc: Likewise.
19819         * tests/test-stdlib-c++.cc: Likewise.
19820         * tests/test-string-c++.cc: Likewise.
19821         * tests/test-sys_ioctl-c++.cc: Likewise.
19822         * tests/test-sys_select-c++.cc: Likewise.
19823         * tests/test-sys_socket-c++.cc: Likewise.
19824         * tests/test-sys_stat-c++.cc: Likewise.
19825         * tests/test-sys_time-c++.cc: Likewise.
19826         * tests/test-time-c++.cc: Likewise.
19827         * tests/test-unistd-c++.cc: Likewise.
19828         * tests/test-wchar-c++.cc: Likewise.
19829         * tests/uninorm/test-u8-nfc.c: Likewise.
19830         * tests/uninorm/test-u8-nfd.c: Likewise.
19831         * tests/uninorm/test-u8-nfkc.c: Likewise.
19832         * tests/uninorm/test-u8-nfkd.c: Likewise.
19833         * tests/uninorm/test-u16-nfc.c: Likewise.
19834         * tests/uninorm/test-u16-nfd.c: Likewise.
19835         * tests/uninorm/test-u16-nfkc.c: Likewise.
19836         * tests/uninorm/test-u16-nfkd.c: Likewise.
19837         * tests/uninorm/test-u32-nfc.c: Likewise.
19838         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19839         * tests/uninorm/test-u32-nfd.c: Likewise.
19840         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19841         * tests/uninorm/test-u32-nfkc.c: Likewise.
19842         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19843         * tests/uninorm/test-u32-nfkd.c: Likewise.
19844         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19845         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19846
19847 2010-03-27  Bruno Haible  <bruno@clisp.org>
19848
19849         Distinguish two kinds of module indicators.
19850         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
19851         gl_MODULE_INDICATOR.
19852         (gl_MODULE_INDICATOR): New macro.
19853         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19854         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
19855         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19856         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19857         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19858         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19859         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19860         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19861         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19862         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19863         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19864         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19865         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19866         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19867         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19868         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19869         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19870         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19871         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19872         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19873         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19874         * modules/cloexec (configure.ac): Likewise.
19875         * modules/getopt-gnu (configure.ac): Likewise.
19876         * modules/uninorm/u8-normalize (configure.ac): Likewise.
19877         * modules/uninorm/u16-normalize (configure.ac): Likewise.
19878         * modules/uninorm/u32-normalize (configure.ac): Likewise.
19879         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
19880
19881 2010-03-27  Bruno Haible  <bruno@clisp.org>
19882
19883         New module description field 'Comment'.
19884         * gnulib-tool: New option --extract-comment.
19885         (func_usage): Document it.
19886         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
19887         (func_get_comment): New function.
19888         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
19889
19890 2010-03-27  Bruno Haible  <bruno@clisp.org>
19891
19892         Addendum to 2010-02-07 commit.
19893         * gnulib-tool (func_usage): Document --extract-applicability option.
19894
19895 2010-03-27  Bruno Haible  <bruno@clisp.org>
19896
19897         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
19898         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
19899         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
19900         rather than link errors.
19901
19902 2010-03-27  Bruno Haible  <bruno@clisp.org>
19903
19904         Avoid side effects from tests-related modules on the compilation of lib.
19905         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
19906         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
19907         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
19908         parameter. Emit into AM_CPPFLAGS a definition of the designated C
19909         macro.
19910         (func_import): Define a witness macro. Assign it a value that depends
19911         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
19912         tests-related modules.
19913         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
19914         Reported by Jim Meyering.
19915
19916 2010-03-27  Bruno Haible  <bruno@clisp.org>
19917
19918         Factorize common .m4 code.
19919         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
19920         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
19921         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
19922         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
19923         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19924         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
19925         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
19926         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19927         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19928         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19929         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
19930         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19931         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19932         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19933         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19934         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
19935         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19936         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19937         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19938         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
19939         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
19940         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19941         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19942         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19943         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19944         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19945         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
19946         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
19947         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
19948         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19949         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19950         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19951
19952 2010-03-27  Bruno Haible  <bruno@clisp.org>
19953
19954         Fix a compilation error on Cygwin with g++ >= 4.3.
19955         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
19956         if it is undefined or if we alias it to chmod.
19957         (lstat): Don't warn about the use of this function if it is undefined
19958         or if we alias it to stat.
19959         Reported by Simon Josefsson.
19960
19961 2010-03-27  Bruno Haible  <bruno@clisp.org>
19962
19963         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
19964         * modules/getlogin (configure.ac): Update.
19965
19966         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
19967         * modules/getlogin_r (configure.ac): Update.
19968
19969         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
19970         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
19971         * modules/inet_ntop (configure.ac): Update.
19972
19973         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
19974         * modules/inet_pton (configure.ac): Update.
19975
19976         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
19977         * modules/mbslen (configure.ac): Update.
19978
19979         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
19980         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
19981         * modules/forkpty (configure.ac): Update.
19982         * modules/openpty (configure.ac): Update.
19983
19984 2010-03-26  Simon Josefsson  <simon@josefsson.org>
19985
19986         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
19987         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
19988
19989 2010-03-25  Eric Blake  <eblake@redhat.com>
19990
19991         maint: use pragma consistently across replacement headers
19992         * lib/ctype.in.h (system_header): Hoist for consistent placement.
19993         * lib/dirent.in.h (system_header): Likewise.
19994         * lib/errno.in.h (system_header): Likewise.
19995         * lib/float.in.h (system_header): Likewise.
19996         * lib/getopt.in.h (system_header): Likewise.
19997         * lib/iconv.in.h (system_header): Likewise.
19998         * lib/inttypes.in.h (system_header): Likewise.
19999         * lib/langinfo.in.h (system_header): Likewise.
20000         * lib/locale.in.h (system_header): Likewise.
20001         * lib/math.in.h (system_header): Likewise.
20002         * lib/netdb.in.h (system_header): Likewise.
20003         * lib/netinet_in.in.h (system_header): Likewise.
20004         * lib/pty.in.h (system_header): Likewise.
20005         * lib/sched.in.h (system_header): Likewise.
20006         * lib/se-selinux.in.h (system_header): Likewise.
20007         * lib/search.in.h (system_header): Likewise.
20008         * lib/spawn.in.h (system_header): Likewise.
20009         * lib/stdarg.in.h (system_header): Likewise.
20010         * lib/stdint.in.h (system_header): Likewise.
20011         * lib/string.in.h (system_header): Likewise.
20012         * lib/strings.in.h (system_header): Likewise.
20013         * lib/sys_file.in.h (system_header): Likewise.
20014         * lib/sys_ioctl.in.h (system_header): Likewise.
20015         * lib/sys_socket.in.h (system_header): Likewise.
20016         * lib/sys_times.in.h (system_header): Likewise.
20017         * lib/sys_utsname.in.h (system_header): Likewise.
20018         * lib/sys_wait.in.h (system_header): Likewise.
20019         * lib/sysexits.in.h (system_header): Likewise.
20020         * lib/unistd.in.h (system_header): Likewise.
20021         * lib/wctype.in.h (system_header): Likewise.
20022
20023         arpa/inet: fix mingw compilation warning
20024         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20025         Reported by Matthew Bolte.
20026
20027 2010-03-25  Bruno Haible  <bruno@clisp.org>
20028
20029         Avoid collision between gnulib wrapper and libintl wrapper.
20030         * lib/printf.c (printf): Don't define if a printf wrapper is already
20031         defined in intl/printf.c.
20032         Reported by Michel Boaventura <michel@michelboaventura.com>.
20033
20034 2010-03-25  Bruno Haible  <bruno@clisp.org>
20035
20036         Use ANSI C.
20037         * lib/readutmp.h (getutent): Provide ANSI C prototype.
20038
20039 2010-03-25  Bruno Haible  <bruno@clisp.org>
20040
20041         Minor formatting changes.
20042         * lib/acosl.c: Insert space before function argument list.
20043         * lib/argz.c: Likewise.
20044         * lib/asinl.c: Likewise.
20045         * lib/expl.c: Likewise.
20046         * lib/gen-uni-tables.c: Likewise.
20047         * lib/gettext.h: Likewise.
20048         * lib/glthread/lock.h: Likewise.
20049         * lib/tanl.c: Likewise.
20050         * lib/uniname/uniname.c: Likewise.
20051         * tests/test-idpriv-drop.c: Likewise.
20052         * tests/test-idpriv-droptemp.c: Likewise.
20053         * tests/test-lock.c: Likewise.
20054         * tests/test-tls.c: Likewise.
20055         * lib/argp-help.c: Insert space before function-like macro argument
20056         list.
20057         * lib/memcmp.c: Likewise.
20058         * tests/test-base64.c: Likewise.
20059         * lib/localename.c: Insert space before sizeof's argument list.
20060         * lib/safe-alloc.h: Likewise.
20061         * lib/file-set.h: Insert space before macro argument list.
20062         * tests/test-argp.c: Likewise.
20063         * lib/argp-namefrob.h: Insert space before function parameter list.
20064         * lib/getaddrinfo.c: Likewise.
20065         * lib/netdb.in.h: Likewise.
20066         * lib/parse-duration.h: Likewise.
20067         * lib/parse-duration.c: Likewise.
20068         * lib/poll.c: Likewise.
20069         * lib/select.c: Likewise.
20070         * lib/trim.h: Likewise.
20071         * tests/test-usleep.c: Likewise.
20072         * lib/ldexpl.c: Insert space before function parameter list and before
20073         function argument list.
20074         * lib/logl.c: Likewise.
20075         * lib/sqrtl.c: Likewise.
20076         * lib/trim.c: Likewise.
20077         * lib/cosl.c: Use GNU style indentation. Insert space before function
20078         argument list.
20079         * lib/sinl.c: Likewise.
20080         * lib/tsearch.c: Insert space after 'for'.
20081         Reported by Jim Meyering.
20082
20083 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
20084
20085         * maint.mk (sc_Wundef_boolean): Check for the presence of the
20086         config header before grepping, as it's not present before
20087         autoreconf/configure are run.  Reported by Simon Josefsson.
20088
20089 2010-03-23  Bruno Haible  <bruno@clisp.org>
20090
20091         pt_chown: Make it work with automake < 1.11.
20092         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
20093         Reported by Simon Josefsson.
20094
20095 2010-03-23  Bruno Haible  <bruno@clisp.org>
20096
20097         pt_chown: Don't depend on GPLed modules.
20098         * lib/pt_chown.c: Don't include idpriv.h.
20099         (main): Don't drop privileges.
20100         * modules/pt_chown (Depends-on): Remove idpriv-drop.
20101         Reported by Simon Josefsson.
20102
20103 2010-03-24  Simon Josefsson  <simon@josefsson.org>
20104
20105         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
20106         suggestions from karl@freefriends.org (Karl Berry).
20107
20108 2010-03-22  Eric Blake  <eblake@redhat.com>
20109
20110         gethostname: further tweaks
20111         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
20112         are overriding gethostname.
20113         Suggested by Bruno Haible.
20114
20115 2010-03-21  Bruno Haible  <bruno@clisp.org>
20116
20117         Fix comments.
20118         * lib/forkpty.c (rpl_forkpty): Fix comment.
20119         * lib/openpty.c (rpl_openpty): Likewise.
20120         Reported by Eric Blake.
20121
20122 2010-03-22  Eric Blake  <eblake@redhat.com>
20123
20124         gethostname: fix build on mingw
20125         * lib/unistd.in.h (includes): Work around fact that mingw
20126         <winsock2.h> re-includes <unistd.h>, by avoiding any
20127         redeclarations if we are being included by <winsock2.h>.
20128         Reported by Matthias Bolte.
20129
20130 2010-03-21  Bruno Haible  <bruno@clisp.org>
20131
20132         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20133         * lib/forkpty.c (forkpty): New replacement function, from glibc with
20134         modifications.
20135         * lib/pty.in.h (forkpty): Update declaration. Add comments.
20136         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
20137         provide the replacement.
20138         * modules/forkpty (Depends-on): Add openpty, login_tty.
20139         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
20140         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
20141         * doc/glibc-functions/forkpty.texi: More supported platforms.
20142         * config/srclist.txt: Add forkpty.c (commented).
20143
20144 2010-03-21  Bruno Haible  <bruno@clisp.org>
20145
20146         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
20147         (Makefile.am): Verify that PTY_LIB is defined.
20148
20149         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
20150
20151 2010-03-21  Bruno Haible  <bruno@clisp.org>
20152
20153         Tests for module 'login_tty'.
20154         * modules/login_tty-tests: New file.
20155         * tests/test-login_tty.c: New file.
20156
20157         New module 'login_tty'.
20158         * lib/login_tty.c: New file.
20159         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
20160         * modules/login_tty: New file.
20161         * doc/glibc-functions/login_tty.texi: Mention the new module.
20162
20163 2010-03-21  Bruno Haible  <bruno@clisp.org>
20164
20165         login_tty: Documentation.
20166         * doc/glibc-functions/login_tty.texi: New file.
20167         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
20168
20169 2010-03-21  Bruno Haible  <bruno@clisp.org>
20170
20171         pty: Consistent macro naming.
20172         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
20173         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
20174         * modules/pty (configure.ac): Update.
20175
20176 2010-03-21  Bruno Haible  <bruno@clisp.org>
20177
20178         Tests for openpty: Make stricter.
20179         * tests/test-openpty.c (main): Add test of canonical processing and
20180         erase.
20181         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
20182
20183         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20184         * lib/openpty.c (openpty): New replacement function.
20185         * lib/pty.in.h: Include <termios.h>.
20186         (openpty): Update declaration. Add comments.
20187         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
20188         is not declared, arrange to provide the replacement. Check for _getpty
20189         and posix_openpt.
20190         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
20191         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
20192         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
20193         * modules/pty-tests (test_pty_c___LDADD): New variable.
20194         * doc/glibc-functions/openpty.texi: More supported platforms.
20195
20196 2010-03-21  Bruno Haible  <bruno@clisp.org>
20197
20198         setenv: Tweaks.
20199         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20200         the test program.
20201         * doc/posix-functions/setenv.texi: Update platforms list.
20202
20203 2010-03-21  Bruno Haible  <bruno@clisp.org>
20204
20205         New module 'unlockpt'.
20206         * lib/unlockpt.c: New file, from glibc with modifications.
20207         * m4/unlockpt.m4: New file.
20208         * modules/unlockpt: New file.
20209         * lib/stdlib.in.h (unlockpt): New declaration.
20210         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20211         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20212         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20213         HAVE_UNLOCKPT.
20214         * doc/posix-functions/unlockpt.texi: Mention the new module.
20215         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20216         * config/srclist.txt: Add unlockpt.c (commented).
20217
20218 2010-03-21  Jim Meyering  <meyering@redhat.com>
20219
20220         maint.mk: prohibit inclusion of "intprops.h" without use
20221         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20222
20223 2010-03-21  Bruno Haible  <bruno@clisp.org>
20224
20225         New module 'grantpt'.
20226         * lib/grantpt.c: New file, from glibc with modifications.
20227         * m4/grantpt.m4: New file.
20228         * modules/grantpt: New file.
20229         * lib/stdlib.in.h (grantpt): New declaration.
20230         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20231         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20232         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20233         HAVE_GRANTPT.
20234         * doc/posix-functions/grantpt.texi: Mention the new module.
20235         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20236         * config/srclist.txt: Add grantpt.c (commented).
20237
20238 2010-03-21  Bruno Haible  <bruno@clisp.org>
20239
20240         New module 'pt_chown'.
20241         * lib/pt_chown.c: New file, from glibc with modifications.
20242         * lib/pty-private.h: New file, from glibc with modifications.
20243         * modules/pt_chown: New file.
20244         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20245
20246 2010-03-21  Bruno Haible  <bruno@clisp.org>
20247
20248         Tests for module 'ptsname'.
20249         * modules/ptsname-tests: New file.
20250         * tests/test-ptsname.c: New file.
20251
20252         New module 'ptsname'.
20253         * lib/ptsname.c: New file, from glibc with modifications.
20254         * m4/ptsname.m4: New file.
20255         * modules/ptsname: New file.
20256         * lib/stdlib.in.h (ptsname): New declaration.
20257         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20258         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20259         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20260         HAVE_PTSNAME.
20261         * doc/posix-functions/ptsname.texi: Mention the new module.
20262         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20263         * config/srclist.txt: Add ptsname.c (commented).
20264
20265 2010-03-21  Bruno Haible  <bruno@clisp.org>
20266
20267         Tests for module 'ttyname_r'.
20268         * modules/ttyname_r-tests: New file.
20269         * tests/test-ttyname_r.c: New file.
20270
20271         New module 'ttyname_r'.
20272         * lib/ttyname_r.c: New file.
20273         * m4/ttyname_r.m4: New file.
20274         * modules/ttyname_r: New file.
20275         * lib/unistd.in.h (ttyname_r): New declaration.
20276         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20277         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20278         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20279         HAVE_TTYNAME_R.
20280         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20281         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20282
20283 2010-03-20  Bruno Haible  <bruno@clisp.org>
20284
20285         signal: Undefine macro definitions in C++ mode.
20286         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20287         sigfillset): Undefine macro definitions from the system header in C++
20288         mode.
20289         Reported by John W. Eaton <jwe@gnu.org>.
20290
20291 2010-03-20  Bruno Haible  <bruno@clisp.org>
20292
20293         Ensure no #include statements inside extern "C" { ... }.
20294         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20295         contain #include statements.
20296         * lib/time.in.h: Likewise.
20297
20298 2010-03-20  Bruno Haible  <bruno@clisp.org>
20299
20300         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20301         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20302         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20303         Reported by John W. Eaton <jwe@gnu.org>.
20304
20305 2010-03-20  Bruno Haible  <bruno@clisp.org>
20306
20307         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20308         Reported by Jim Meyering.
20309
20310 2010-03-20  Bruno Haible  <bruno@clisp.org>
20311
20312         pipe: Set errno upon failure.
20313         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20314         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20315         errno value in error message.
20316
20317 2010-03-20  Bruno Haible  <bruno@clisp.org>
20318             Jim Meyering  <meyering@redhat.com>
20319
20320         lchown: Avoid "unused variable" warning.
20321         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20322
20323 2010-03-20  Bruno Haible  <bruno@clisp.org>
20324
20325         Work around unlink() bug on MacOS X 10.5.6.
20326         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20327         attempting to unlink a parent directory.
20328         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20329         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20330         activate for the replacement function.
20331         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20332
20333 2010-03-20  Bruno Haible  <bruno@clisp.org>
20334
20335         Fix link errors on Solaris 8.
20336         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20337         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20338
20339 2010-03-19  Jim Meyering  <meyering@redhat.com>
20340
20341         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20342         The _LIBC implementation of build_range_exp correctly honors the
20343         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20344         However, the non-_LIBC implementation would ignore that syntax-bit
20345         flag and return REG_ERANGE unconditionally.
20346         This change makes it honor that flag.
20347         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20348         Make two pointer parameters "const".
20349         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20350         (parse_bracket_exp): Update caller.
20351
20352         regex.m4: correct the reversed range endpoint ([b-a]) test
20353         * m4/regex.m4: When requiring that [b-a] evoke failure,
20354         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20355         test pass once again for x86-based systems.
20356
20357 2010-03-19  Bruno Haible  <bruno@clisp.org>
20358
20359         scandir: Fix link error on Solaris 8.
20360         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20361         macros.
20362
20363 2010-03-19  Bruno Haible  <bruno@clisp.org>
20364
20365         getusershell: Fix documentation.
20366         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20367         module.
20368         * doc/glibc-functions/setusershell.texi: Likewise.
20369
20370         getusershell: Provide declaration, missing on Solaris 9.
20371         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20372         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20373         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20374         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20376         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20377         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20378         HAVE_GETUSERSHELL.
20379         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20380
20381 2010-03-19  Bruno Haible  <bruno@clisp.org>
20382
20383         wctype: Provide iswblank function.
20384         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20385         exists and is fine.
20386         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20387         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20388         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20389         * doc/posix-functions/iswblank.texi: Update.
20390
20391 2010-03-19  Bruno Haible  <bruno@clisp.org>
20392
20393         Tests of module 'pty' in C++ mode.
20394         * modules/pty-tests: New file.
20395         * tests/test-pty-c++.cc: New file.
20396         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20397
20398 2010-03-19  Eric Blake  <eblake@redhat.com>
20399
20400         logb: fix documentation
20401         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20402         1.5 declaration bug.
20403
20404         forkpty, openpty: prefer glibc's const-safe prototype
20405         * lib/forkpty.c (rpl_forkpty): New file.
20406         * lib/openpty.c (rpl_openpty): Likewise.
20407         * modules/forkpty (Files): Distribute it.
20408         * modules/openpty (Files): Likewise.
20409         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20410         check...
20411         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20412         replacement for for non-const BSD signature.
20413         * modules/pty (Makefile.am): Substitute witnesses.
20414         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20415         * tests/test-forkpty.c: Update signature check.
20416         * tests/test-openpty.c: Likewise.
20417         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20418         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20419
20420         forkpty, openpty: split functions into new modules
20421         * modules/pty (Makefile.am): Substitute new witnesses.
20422         (Libraries): Move library detection...
20423         * modules/forkpty: ...into new module.
20424         * modules/openpty: Another new module.
20425         * modules/pty-tests: Rename and split...
20426         * modules/forkpty-tests: ...to this...
20427         * modules/openpty-tests: ...and this.
20428         * tests/test-pty.c: Rename and split...
20429         * tests/test-forkpty.c: ...to this...
20430         * tests/test-openpty.c: ...and this.
20431         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20432         (gl_PTY): Split library searching...
20433         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20434         (gl_FORKPTY, gl_OPENPTY): New macros.
20435         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20436         * NEWS: Mention the split.
20437         * MODULES.html.sh (Misc): Document the modules.
20438         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20439         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20440
20441         pty: improve replacement header
20442         * lib/pty.in.h: New file.
20443         * modules/pty (Files): Ship it.
20444         (Makefile.am): Always build replacement.
20445         * m4/pty.m4: Rename...
20446         * m4/pty_h.m4: ...to this.
20447         (gl_PTY): Modernize setting of witness macros; update check of
20448         forkpty to take proper advantage of cache.
20449         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20450
20451         getopt: avoid compiler warning
20452         * lib/getopt.c (attribute_hidden): Remove unused macro.
20453
20454 2010-03-18  Bruno Haible  <bruno@clisp.org>
20455
20456         Fix link errors on Solaris 8.
20457         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20458         * modules/search-tests (test_search_c___LDADD): Likewise.
20459         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20460         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20461         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20462         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20463         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20464         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20465         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20466
20467 2010-03-18  Bruno Haible  <bruno@clisp.org>
20468
20469         Fix bug introduced on 2010-03-14.
20470         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20471         (gl_SPAWN_H): Require it.
20472         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20473         Reported by Simon Josefsson.
20474
20475 2010-03-18  Bruno Haible  <bruno@clisp.org>
20476
20477         Fix typo introduced on 2009-12-31.
20478         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20479         posix_spawn_file_actions_adddup2.
20480
20481 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20482         and Eric Blake  <eblake@redhat.com>
20483
20484         test-vc-list-files-git: make more robust
20485         * tests/test-vc-list-files-git.sh: Unset problematic environment
20486         variables.  Chain commands together.
20487
20488 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20489
20490         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20491         `AC_CHECK_DECL' invocation.
20492
20493 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20494
20495         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20496         appears before executable statements. Suggested by Petr Sumbera
20497         <Petr.Sumbera@Sun.COM>.
20498
20499 2010-03-14  Bruno Haible  <bruno@clisp.org>
20500
20501         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20502         portability problems. Instead use a simpler test.
20503         (main): Check that invalid arguments are rejected only on Linux.
20504
20505 2010-03-14  Bruno Haible  <bruno@clisp.org>
20506
20507         Fix bug introduced on 2009-12-31.
20508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20509         gl_PREREQ_SYS_H_WINSOCK2 always.
20510         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20511         SYS_SOCKET_H variable.
20512         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20513         Update comments.
20514         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20515         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20516         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20517         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20518         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20519
20520 2010-03-14  Bruno Haible  <bruno@clisp.org>
20521
20522         Fix values returned by sinl, cosl.
20523         * lib/trigl.h: Add specification comments.
20524         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20525         that combines the values from the precomputed table with the values of
20526         the Chebyshev polynomials.
20527
20528 2010-03-14  Bruno Haible  <bruno@clisp.org>
20529
20530         Fix compilation error when modules 'posix_spawn[p]' are not used.
20531         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20532         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20533
20534 2010-03-14  Bruno Haible  <bruno@clisp.org>
20535
20536         Fix compilation error on mingw when module 'time_r' is not used.
20537         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20538         is 1.
20539         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20540         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20541         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20542         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20543
20544 2010-03-14  Bruno Haible  <bruno@clisp.org>
20545
20546         Fix compilation error with Sun C.
20547         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20548         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20549         instead of GCC specific ULONG_LONG_MAX.
20550         * lib/xstrtoll.c: Likewise.
20551         * lib/xstrtoull.c: Likewise.
20552
20553 2010-03-13  Bruno Haible  <bruno@clisp.org>
20554
20555         Allow the user to disable C++ code and tests.
20556         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20557         (gl_PROG_ANSI_CXX): Require it.
20558
20559 2010-03-13  Bruno Haible  <bruno@clisp.org>
20560
20561         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20562         cases.
20563
20564 2010-03-13  Bruno Haible  <bruno@clisp.org>
20565
20566         Test that gnulib does not break the standard C++ headers.
20567         * tests/test-locale-c++2.cc: New file.
20568         * modules/locale-tests (Files): Add it.
20569         (Makefile.am): Compile it for test-locale-c++.
20570         * tests/test-math-c++2.cc: New file.
20571         * modules/math-tests (Files): Add it.
20572         (Makefile.am): Compile it for test-math-c++.
20573         * tests/test-signal-c++2.cc: New file.
20574         * modules/signal-tests (Files): Add it.
20575         (Makefile.am): Compile it for test-signal-c++.
20576         * tests/test-stdio-c++2.cc: New file.
20577         * modules/stdio-tests (Files): Add it.
20578         (Makefile.am): Compile it for test-stdio-c++.
20579         * tests/test-stdlib-c++2.cc: New file.
20580         * modules/stdlib-tests (Files): Add it.
20581         (Makefile.am): Compile it for test-stdlib-c++.
20582         * tests/test-string-c++2.cc: New file.
20583         * modules/string-tests (Files): Add it.
20584         (Makefile.am): Compile it for test-string-c++.
20585         * tests/test-time-c++2.cc: New file.
20586         * modules/time-tests (Files): Add it.
20587         (Makefile.am): Compile it for test-time-c++.
20588         Reported by John W. Eaton <jwe@gnu.org>.
20589
20590 2010-03-13  Bruno Haible  <bruno@clisp.org>
20591
20592         * gnulib-tool (func_usage): Clarify which options are available for
20593         --create-testdir and --create-megatestdir.
20594
20595 2010-03-13  Bruno Haible  <bruno@clisp.org>
20596
20597         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20598         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20599         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20600         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20601         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20602         when appropriate.
20603         Reported by Jim Meyering.
20604
20605 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20606
20607         * gnulib-tool (func_import): Explain origin of code.
20608
20609 2010-03-12  Bruno Haible  <bruno@clisp.org>
20610
20611         Fix problem with automake's definition of CXXLINK.
20612         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20613         Reported by Simon Josefsson and Ludovic Courtès.
20614
20615 2010-03-12  Bruno Haible  <bruno@clisp.org>
20616
20617         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20618         stable releases.
20619
20620 2010-03-11  Bruno Haible  <bruno@clisp.org>
20621
20622         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20623         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20624         whether the system provides one variant or multiple variants of the
20625         function.
20626         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20627         C++ compilers.
20628         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20629         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20630         Reported by Jim Meyering.
20631
20632 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20633
20634         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20635
20636 2010-03-08  Bruno Haible  <bruno@clisp.org>
20637
20638         gnulib-tool: Add support for --libtool in --create-testdir.
20639         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20640         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20641
20642 2010-03-08  Eric Blake  <eblake@redhat.com>
20643
20644         gnulib-tool.texi: mention possibility of git submodule
20645         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20646         submodules.
20647         * doc/.gitignore: Ignore another generated file.
20648
20649 2010-03-08  Karl Berry  <karl@gnu.org>
20650
20651         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20652         of committing gnulib files while skipping others.
20653
20654 2010-03-07  Bruno Haible  <bruno@clisp.org>
20655
20656         Tests of module 'wctype' in C++ mode.
20657         * tests/test-wctype-c++.cc: New file.
20658         * modules/wctype-tests (Files): Add it and tests/signature.h.
20659         (Depends-on): Add ansi-c++-opt.
20660         (Makefile.am): Arrange to compile and run test-wctype-c++.
20661
20662         Tests of module 'wchar' in C++ mode.
20663         * tests/test-wchar-c++.cc: New file.
20664         * modules/wchar-tests (Files): Add it and tests/signature.h.
20665         (Depends-on): Add ansi-c++-opt.
20666         (Makefile.am): Arrange to compile and run test-wchar-c++.
20667         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20668         gl_MODULE_INDICATOR.
20669
20670         Tests of module 'unistd' in C++ mode.
20671         * tests/test-unistd-c++.cc: New file.
20672         * modules/unistd-tests (Files): Add it and tests/signature.h.
20673         (Depends-on): Add ansi-c++-opt.
20674         (Makefile.am): Arrange to compile and run test-unistd-c++.
20675         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20676         gl_MODULE_INDICATOR.
20677
20678         Tests of module 'time' in C++ mode.
20679         * tests/test-time-c++.cc: New file.
20680         * modules/time-tests (Files): Add it and tests/signature.h.
20681         (Depends-on): Add ansi-c++-opt.
20682         (Makefile.am): Arrange to compile and run test-time-c++.
20683         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20684
20685         Tests of module 'sys_time' in C++ mode.
20686         * tests/test-sys_time-c++.cc: New file.
20687         * modules/sys_time-tests (Files): Add it and tests/signature.h.
20688         (Depends-on): Add ansi-c++-opt.
20689         (Makefile.am): Arrange to compile and run test-sys_time-c++.
20690         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20691         gl_MODULE_INDICATOR.
20692
20693         Tests of module 'sys_stat' in C++ mode.
20694         * tests/test-sys_stat-c++.cc: New file.
20695         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
20696         (Depends-on): Add ansi-c++-opt.
20697         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
20698         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20699         gl_MODULE_INDICATOR.
20700
20701         Tests of module 'sys_socket' in C++ mode.
20702         * tests/test-sys_socket-c++.cc: New file.
20703         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
20704         (Depends-on): Add ansi-c++-opt.
20705         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
20706         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20707         gl_MODULE_INDICATOR.
20708
20709         Tests of module 'sys_select' in C++ mode.
20710         * tests/test-sys_select-c++.cc: New file.
20711         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20712         (Depends-on): Add ansi-c++-opt.
20713         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20714         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20715         gl_MODULE_INDICATOR.
20716
20717         Tests of module 'sys_ioctl' in C++ mode.
20718         * tests/test-sys_ioctl-c++.cc: New file.
20719         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20720         (Depends-on): Add ansi-c++-opt.
20721         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20722         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20723         gl_MODULE_INDICATOR.
20724
20725         Tests of module 'string' in C++ mode.
20726         * tests/test-string-c++.cc: New file.
20727         * modules/string-tests (Files): Add it and tests/signature.h.
20728         (Depends-on): Add ansi-c++-opt.
20729         (Makefile.am): Arrange to compile and run test-string-c++.
20730         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20731         gl_MODULE_INDICATOR.
20732
20733         Tests of module 'stdlib' in C++ mode.
20734         * tests/test-stdlib-c++.cc: New file.
20735         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20736         (Depends-on): Add ansi-c++-opt.
20737         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20738         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20739         gl_MODULE_INDICATOR.
20740
20741         Tests of module 'stdio' in C++ mode.
20742         * tests/test-stdio-c++.cc: New file.
20743         * modules/stdio-tests (Files): Add it and tests/signature.h.
20744         (Depends-on): Add ansi-c++-opt.
20745         (Makefile.am): Arrange to compile and run test-stdio-c++.
20746         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20747         gl_MODULE_INDICATOR.
20748
20749         Tests of module 'spawn' in C++ mode.
20750         * tests/test-spawn-c++.cc: New file.
20751         * modules/spawn-tests (Files): Add it and tests/signature.h.
20752         (Depends-on): Add ansi-c++-opt.
20753         (Makefile.am): Arrange to compile and run test-spawn-c++.
20754         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20755         gl_MODULE_INDICATOR.
20756
20757         Tests of module 'signal' in C++ mode.
20758         * tests/test-signal-c++.cc: New file.
20759         * modules/signal-tests (Files): Add it and tests/signature.h.
20760         (Depends-on): Add ansi-c++-opt.
20761         (Makefile.am): Arrange to compile and run test-signal-c++.
20762         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20763         gl_MODULE_INDICATOR.
20764
20765         Tests of module 'search' in C++ mode.
20766         * tests/test-search-c++.cc: New file.
20767         * modules/search-tests (Files): Add it and tests/signature.h.
20768         (Depends-on): Add ansi-c++-opt.
20769         (Makefile.am): Arrange to compile and run test-search-c++.
20770         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20771         gl_MODULE_INDICATOR.
20772
20773         Tests of module 'math' in C++ mode.
20774         * tests/test-math-c++.cc: New file.
20775         * modules/math-tests (Files): Add it and tests/signature.h.
20776         (Depends-on): Add ansi-c++-opt.
20777         (Makefile.am): Arrange to compile and run test-math-c++.
20778         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20779
20780         Tests of module 'locale' in C++ mode.
20781         * tests/test-locale-c++.cc: New file.
20782         * modules/locale-tests (Files): Add it and tests/signature.h.
20783         (Depends-on): Add ansi-c++-opt.
20784         (Makefile.am): Arrange to compile and run test-locale-c++.
20785         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
20786         gl_MODULE_INDICATOR.
20787
20788         Tests of module 'langinfo' in C++ mode.
20789         * tests/test-langinfo-c++.cc: New file.
20790         * modules/langinfo-tests (Files): Add it and tests/signature.h.
20791         (Depends-on): Add ansi-c++-opt.
20792         (Makefile.am): Arrange to compile and run test-langinfo-c++.
20793         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
20794         gl_MODULE_INDICATOR.
20795
20796         Tests of module 'iconv-h' in C++ mode.
20797         * tests/test-iconv-h-c++.cc: New file.
20798         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
20799         (Depends-on): Add ansi-c++-opt.
20800         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
20801
20802         Tests of module 'glob' in C++ mode.
20803         * tests/test-glob-c++.cc: New file.
20804         * modules/glob-tests (Files): Add it.
20805         (Depends-on): Add ansi-c++-opt.
20806         (Makefile.am): Arrange to compile and run test-glob-c++.
20807
20808         Tests of module 'fcntl-h' in C++ mode.
20809         * tests/test-fcntl-h-c++.cc: New file.
20810         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
20811         (Depends-on): Add ansi-c++-opt.
20812         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
20813         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
20814         gl_MODULE_INDICATOR.
20815
20816         Tests of module 'dirent' in C++ mode.
20817         * tests/test-dirent-c++.cc: New file.
20818         * modules/dirent-tests (Files): Add it and tests/signature.h.
20819         (Depends-on): Add ansi-c++-opt.
20820         (Makefile.am): Arrange to compile and run test-dirent-c++.
20821         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20822         gl_MODULE_INDICATOR.
20823
20824         New module 'ansi-c++-opt'.
20825         * modules/ansi-c++-opt: New file.
20826         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
20827
20828         Document C++ namespace mode.
20829         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
20830
20831         wctype: Avoid #define replacements in C++ mode.
20832         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
20833         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
20834         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
20835         In C++, define a namespaced alias symbol.
20836         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
20837         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
20838         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
20839         rule.
20840
20841         wchar: Avoid #define replacements in C++ mode.
20842         * lib/wchar.in.h: Include c++defs.h.
20843         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
20844         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
20845         symbol.
20846         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
20847         * modules/wchar (Depends-on): Add c++defs.
20848         (Makefile.am): Update wchar.h rule.
20849
20850         unistd: Avoid #define replacements in C++ mode.
20851         * lib/unistd.in.h: Include c++defs.h.
20852         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
20853         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
20854         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
20855         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
20856         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
20857         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
20858         symbol.
20859         (environ): Update.
20860         * modules/unistd (Depends-on): Add c++defs.
20861         (Makefile.am): Update unistd.h rule.
20862
20863         time: Avoid #define replacements in C++ mode.
20864         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
20865         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
20866         define a namespaced alias symbol.
20867         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
20868         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
20869         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
20870         * modules/time (Depends-on): Add c++defs, warn-on-use.
20871         (Makefile.am): Update time.h rule.
20872         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20873         * modules/nanosleep (configure.ac): Likewise.
20874         * modules/strptime (configure.ac): Likewise.
20875         * modules/timegm (configure.ac): Likewise.
20876
20877         sys_time: Avoid #define replacements in C++ mode.
20878         * lib/sys_time.in.h: Include c++defs.h.
20879         (gettimeofday): In C++, define a namespaced alias symbol.
20880         * modules/sys_time (Depends-on): Add c++defs.
20881         (Makefile.am): Update sys/time.h rule.
20882
20883         sys_stat: Avoid #define replacements in C++ mode.
20884         * lib/sys_stat.in.h: Include c++defs.h.
20885         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
20886         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
20887         namespaced alias symbol.
20888         In C++, define a namespaced alias symbol.
20889         * modules/sys_stat (Depends-on): Add c++defs.
20890         (Makefile.am): Update sys/stat.h rule.
20891
20892         sys_socket: Avoid #define replacements in C++ mode.
20893         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20894         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
20895         definitions also when the system has a <sys/socket.h>.
20896         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20897         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
20898         In C++, define a namespaced alias symbol.
20899         * modules/sys_socket (Depends-on): Add c++defs.
20900         (Makefile.am): Update sys/socket.h rule.
20901
20902         sys_select: Avoid #define replacements in C++ mode.
20903         * lib/sys_select.in.h: Include c++defs.h. Enable the function
20904         definitions also when the system has a <sys/select.h>.
20905         (select): In C++, define a namespaced alias symbol.
20906         * modules/sys_select (Depends-on): Add c++defs.
20907         (Makefile.am): Update sys/select.h rule.
20908
20909         sys_ioctl: Avoid #define replacements in C++ mode.
20910         * lib/sys_ioctl.in.h: Include c++defs.h.
20911         (ioctl): In C++, define a namespaced alias symbol.
20912         * modules/sys_ioctl (Depends-on): Add c++defs.
20913         (Makefile.am): Update sys/ioctl.h rule.
20914
20915         string: Avoid #define replacements in C++ mode.
20916         * lib/string.in.h: Include c++defs.h.
20917         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
20918         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20919         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20920         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
20921         strsignal, strverscmp): In C++, define a namespaced alias symbol.
20922         * modules/string (Depends-on): Add c++defs.
20923         (Makefile.am): Update string.h rule.
20924
20925         stdlib: Avoid #define replacements in C++ mode.
20926         * lib/stdlib.in.h: Include c++defs.h.
20927         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
20928         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
20929         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
20930         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
20931         symbol.
20932         * modules/stdlib (Depends-on): Add c++defs.
20933         (Makefile.am): Update stdlib.h rule.
20934
20935         stdio: Avoid #define replacements in C++ mode.
20936         * lib/stdio.in.h: Include c++defs.h.
20937         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
20938         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
20939         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
20940         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
20941         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
20942         namespaced alias symbol.
20943         * modules/stdio (Depends-on): Add c++defs.
20944         (Makefile.am): Update stdio.h rule.
20945
20946         spawn: Avoid #define replacements in C++ mode.
20947         * lib/spawn.in.h: Include c++defs.h.
20948         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20949         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20950         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20951         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20952         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20953         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20954         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20955         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20956         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20957         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20958         In C++, define a namespaced alias symbol.
20959         * modules/spawn (Depends-on): Add c++defs.
20960         (Makefile.am): Update spawn.h rule.
20961
20962         signal: Avoid #define replacements in C++ mode.
20963         * lib/signal.in.h: Include c++defs.h.
20964         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20965         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
20966         namespaced alias symbol.
20967         * modules/signal (Depends-on): Add c++defs.
20968         (Makefile.am): Update signal.h rule.
20969
20970         search: Avoid #define replacements in C++ mode.
20971         * lib/search.in.h: Include c++defs.h.
20972         (_gl_search_compar_fn, _gl_search_action_fn): New types.
20973         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
20974         symbol.
20975         * modules/search (Depends-on): Add c++defs.
20976         (Makefile.am): Update search.h rule.
20977
20978         math: Avoid #define replacements in C++ mode.
20979         * lib/math.in.h: Include c++defs.h.
20980         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
20981         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
20982         trunc, truncl): In C++, define a namespaced alias symbol.
20983         * modules/math (Depends-on): Add c++defs.
20984         (Makefile.am): Update math.h rule.
20985
20986         locale: Avoid #define replacements in C++ mode.
20987         * lib/locale.in.h: Include c++defs.h.
20988         (duplocale): In C++, define a namespaced alias symbol.
20989         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
20990         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
20991         * modules/locale (Depends-on): Add c++defs.
20992         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
20993
20994         langinfo: Avoid #define replacements in C++ mode.
20995         * lib/langinfo.in.h: Include c++defs.h.
20996         (nl_langinfo): In C++, define a namespaced alias symbol.
20997         * modules/langinfo (Depends-on): Add c++defs.
20998         (Makefile.am): Update langinfo.h rule.
20999
21000         iconv-h: Avoid #define replacements in C++ mode.
21001         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
21002         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
21003         symbol.
21004         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21005         whenever iconv is present.
21006         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
21007         (Makefile.am): Update iconv.h rule.
21008
21009         glob: Avoid #define replacements in C++ mode.
21010         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
21011         (_gl_glob_errfunc_fn): New type.
21012         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
21013         symbol.
21014         * modules/glob (Depends-on): Add c++defs, warn-on-use.
21015         (Makefile.am): Update glob.h rule.
21016
21017         fcntl-h: Avoid #define replacements in C++ mode.
21018         * lib/fcntl.in.h: Include c++defs.h.
21019         (fcntl, open, openat): In C++, define a namespaced alias symbol.
21020         * modules/fcntl-h (Depends-on): Add c++defs.
21021         (Makefile.am): Update fcntl.h rule.
21022
21023         dirent: Avoid #define replacements in C++ mode.
21024         * lib/dirent.in.h: Include c++defs.h.
21025         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21026         namespaced alias symbol.
21027         (dirfd): Update declaration.
21028         * modules/dirent (Depends-on): Add c++defs.
21029         (Makefile.am): Update dirent.h rule.
21030
21031         ctype: Make it usable in C++ code.
21032         * lib/ctype.in.h: Include c++defs.h.
21033         (isblank): Declare as extern "C".
21034         * modules/ctype (Depends-on): Add c++defs.
21035         (Makefile.am): Update ctype.h rule.
21036
21037         New module 'c++defs'.
21038         * modules/c++defs: New file.
21039         * build-aux/c++defs.h: New file.
21040         Reported by John W. Eaton <jwe@gnu.org>.
21041
21042 2010-03-07  Bruno Haible  <bruno@clisp.org>
21043
21044         logb: Provide missing declaration for Cygwin.
21045         * lib/math.in.h (logb): New declaration.
21046         * m4/logb.m4: New file.
21047         * modules/logb (Files): Add m4/logb.m4.
21048         (Depends-on): Add math.
21049         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
21050         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
21051         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
21052         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
21053         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
21054
21055 2010-03-07  Bruno Haible  <bruno@clisp.org>
21056
21057         Fix test-cond link error.
21058         * tests/test-cond.c: Include <stdio.h>.
21059
21060 2010-03-07  Bruno Haible  <bruno@clisp.org>
21061
21062         Fix test-dirent-safer link error.
21063         * modules/dirent-safer-tests (Makefile.am): Define
21064         test_dirent_safer_LDADD.
21065
21066 2010-03-07  Bruno Haible  <bruno@clisp.org>
21067
21068         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
21069         among default module list.
21070
21071 2010-03-07  Bruno Haible  <bruno@clisp.org>
21072
21073         Fix link error on platforms with GNU libiconv.
21074         * modules/unistr/u8-strcoll-tests (Makefile): Define
21075         test_u8_strcoll_LDADD.
21076         * modules/unistr/u16-strcoll-tests (Makefile): Define
21077         test_u16_strcoll_LDADD.
21078         * modules/unistr/u32-strcoll-tests (Makefile): Define
21079         test_u32_strcoll_LDADD.
21080
21081 2010-03-07  Bruno Haible  <bruno@clisp.org>
21082
21083         Use POSIX declarations for socket functions.
21084         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
21085         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21086         rpl_sendto): Change declaration to match POSIX.
21087         * lib/connect.c (rpl_connect): Likewise.
21088         * lib/accept.c (rpl_accept): Likewise.
21089         * lib/bind.c (rpl_bind): Likewise.
21090         * lib/getpeername.c (rpl_getpeername): Likewise.
21091         * lib/getsockname.c (rpl_getsockname): Likewise.
21092         * lib/recv.c (rpl_recv): Likewise.
21093         * lib/send.c (rpl_send): Likewise.
21094         * lib/recvfrom.c (rpl_recvfrom): Likewise.
21095         * lib/sendto.c (rpl_sendto): Likewise.
21096
21097 2010-03-06  Bruno Haible  <bruno@clisp.org>
21098
21099         Clarify access, euidaccess, faccessat.
21100         * doc/posix-functions/faccessat.texi: Mention security problem under
21101         "Other problems", not "Portability problems".
21102         * doc/posix-functions/access.texi: Likewise. Mention a related security
21103         problem.
21104         * doc/glibc-functions/euidaccess.texi: Mention security problems.
21105         * lib/euidaccess.c: Add comments about platforms.
21106         * lib/unistd.in.h (access, euidaccess): Add warnings.
21107
21108 2010-03-07  Bruno Haible  <bruno@clisp.org>
21109
21110         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
21111         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
21112         (POSIX_SPAWN_SETSCHEDULER): Likewise.
21113         (POSIX_SPAWN_USEVFORK): Define in a way that works when
21114         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21115         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
21116         declare when POSIX_SPAWN_SETSCHEDULER is zero.
21117         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
21118         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
21119         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
21120         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
21121         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
21122         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
21123         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
21124         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
21125         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
21126         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
21127         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
21128         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
21129         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
21130         Likewise.
21131         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
21132         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
21133         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
21134         Likewise.
21135         * tests/test-spawn.c (main): Make it work when
21136         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21137
21138 2010-03-07  Bruno Haible  <bruno@clisp.org>
21139
21140         Fix incorrect Makefile.am generation in German locale.
21141         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21142         Execute sed command with character range in C locale.
21143
21144 2010-03-06  Bruno Haible  <bruno@clisp.org>
21145
21146         Tests for module 'iconv-h'.
21147         * modules/iconv-h-tests: New file.
21148         * tests/test-iconv-h.c: New file.
21149
21150         New module 'iconv-h'.
21151         * modules/iconv-h: New file.
21152         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
21153         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
21154         (configure.ac): Remove gl_ICONV_H.
21155         (Makefile.am): Remove rule for iconv.h.
21156
21157 2010-03-06  Bruno Haible  <bruno@clisp.org>
21158
21159         More consistent naming of *.m4 files.
21160         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
21161         * modules/wctype (Files): Update.
21162
21163         More consistent naming of *.m4 files.
21164         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
21165         * modules/wchar (Files): Update.
21166
21167 2010-03-06  Jim Meyering  <meyering@redhat.com>
21168
21169         euidaccess: relax license to LGPLv2+
21170         * modules/euidaccess (License): Relax to LGPLv2+.
21171
21172 2010-03-06  Bruno Haible  <bruno@clisp.org>
21173
21174         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
21175         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
21176         (Makefile.am): Augment lib_SOURCES instead.
21177
21178 2010-03-04  Jim Meyering  <meyering@redhat.com>
21179
21180         utime: remove obsolete module
21181         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
21182         unnecessary for years, and has been marked as obsolete for 10 months.
21183         * modules/utime: Remove file.
21184         * lib/utime.c: Remove file.
21185         * m4/utime.m4: Remove file.
21186         * m4/utimes-null.m4: Remove file.
21187         * doc/posix-functions/utime.texi (utime): Remove reference to
21188         the module.  Move the sole "fixed by gnulib" item into the
21189         "problems not fixed by Gnulib" list.
21190         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
21191
21192 2010-03-05  Simon Josefsson  <simon@josefsson.org>
21193
21194         * modules/exit (License): Relax license to LGPLv2+.
21195         (Status): Mark as obsolete.
21196         * NEWS: Mention deprecated 'exit' module.
21197         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
21198         of now obsolete 'exit'.
21199
21200 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21201
21202         fts-lgpl: remove unused module
21203         * modules/fts-lgpl: Remove.
21204         * MODULES.html.sh (func_all_modules): Adjust.
21205         * check-module (find_included_lib_files): Adjust.
21206         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21207
21208 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21209
21210         copy-acl: enhance Solaris ACL error handling
21211         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21212         * lib/set-mode-acl.c (qset_acl): Likewise.
21213
21214 2010-03-02  Bruno Haible  <bruno@clisp.org>
21215
21216         spawn: Don't override the system defined values on FreeBSD 8.
21217         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21218         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21219         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21220         if HAVE_POSIX_SPAWN is 1.
21221         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21222
21223 2010-03-01  Bruno Haible  <bruno@clisp.org>
21224
21225         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21226         regarding Automake.
21227
21228 2010-02-25  Bruno Haible  <bruno@clisp.org>
21229
21230         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21231         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21232         setting, not afterwards.
21233         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21234
21235 2010-02-24  Eric Blake  <eblake@redhat.com>
21236
21237         bootstrap, git-version-gen: use timestamp
21238         * build-aux/git-version-gen (scriptversion): Force UTC.
21239         * build-aux/bootstrap (scriptversion): New variable.
21240
21241         bootstrap: allow older git
21242         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21243         older than 1.6.4.  Requested by the libvirt project.
21244
21245 2010-02-23  Eric Blake  <eblake@redhat.com>
21246
21247         warn-on-use: work with old autoconf
21248         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21249         AS_VAR semantics of autoconf 2.60.
21250         Reported by Bruno Haible.
21251
21252         bootstrap: improve some comments
21253         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21254         clarification comments.
21255
21256         gettimeofday: provide correct function
21257         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21258         when replacement is declared, otherwise provide gettimeofday.
21259         Reported by Michael Goffioul.
21260
21261 2010-02-23  Jim Meyering  <meyering@redhat.com>
21262
21263         lib-ignore: relax license to "unlimited", not LGPLv2+
21264         * modules/lib-ignore (License): Relax to "unlimited".
21265
21266 2010-02-23  Jim Meyering  <meyering@redhat.com>
21267
21268         lib-ignore: relax license to LGPLv2+
21269         * modules/lib-ignore (License): Relax to LGPLv2+.
21270
21271 2010-02-22  Eric Blake  <eblake@redhat.com>
21272
21273         lseek: avoid bash 3.2 broken pipe bug
21274         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21275         warning from bash 3.2.
21276         Reported by Ben Pfaff, with analysis from Bruno Haible.
21277
21278         bootstrap: support non-FSF copyright holder
21279         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21280         bootstrap.conf override of COPYRIGHT_HOLDER.
21281         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21282
21283         bootstrap: interoperate with gettext 0.14.1
21284         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21285
21286         bootstrap: allow for alternate submodule location
21287         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21288         hardcoding submodule location.
21289         (gnulib_mk): Allow direct use of Makefile.am.
21290
21291         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21292         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21293         rather than reconfiguring where the submodule points.
21294
21295         gettimeofday: restore support for platforms that lack function
21296         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21297         replacement if function is missing.
21298         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21299         * modules/sys_time (Makefile.am): Substitute it.
21300         * lib/sys_time.in.h (gettimeofday): Check it.
21301         Reported by Michael Goffioul.
21302
21303 2010-02-21  Bruno Haible  <bruno@clisp.org>
21304
21305         * lib/stdio.in.h (obstack_printf): Fix typo.
21306
21307 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21308
21309         vc-list-files: use bzr ls's -R option
21310         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21311         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21312
21313 2010-02-21  Jim Meyering  <meyering@redhat.com>
21314
21315         init.sh: fix EXEEXT shims to work also for names like test-prog
21316         * tests/init.sh: Re-exec a better shell, when needed.
21317         If the current shell lacks support for posix $(...), an init.sh-using
21318         test will now try to find a shell that supports that.  If EXEEXT is
21319         nonempty, we also require support for hyphen-in-alias-name and shell
21320         substitutions like ${var#glob}.  Failure to find such a shell results
21321         in a skipped test.
21322
21323 2010-02-21  Bruno Haible  <bruno@clisp.org>
21324
21325         Really work around around "broken pipe" error message from bash 3.2.
21326         * gnulib-tool (func_reset_sigpipe): Remove function.
21327         (echo): In bash 3.2, define to a function that uses printf.
21328         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21329
21330 2010-02-20  Bruno Haible  <bruno@clisp.org>
21331
21332         Restore support for automake 1.9.6 with autoconf 2.61.
21333         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21334         Reported by James Youngman <jay@gnu.org>.
21335
21336 2010-02-20  Bruno Haible  <bruno@clisp.org>
21337
21338         Improve *printf warning condition.
21339         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21340         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21341         and the function is overridden due to SIGPIPE emulation.
21342
21343 2010-02-20  Bruno Haible  <bruno@clisp.org>
21344
21345         * lib/stdio.in.h: Tweak comments.
21346
21347 2010-02-19  Bruno Haible  <bruno@clisp.org>
21348
21349         Make it easier to find modules. New gnulib-tool option '--find'.
21350         * gnulib-tool: New option --find.
21351         (func_usage): Document it.
21352         (func_sanitize_modulelist): New function, extracted from
21353         func_all_modules.
21354         (func_all_modules): Invoke it.
21355         * doc/gnulib-tool.texi (Which modules?): New node.
21356
21357 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21358
21359         * lib/sys_select.in.h: Provide select replacement even if
21360         sys/select.h exists on a system, for Interix.
21361
21362 2010-02-18  Jim Meyering  <meyering@redhat.com>
21363
21364         init.sh: don't use $(...) just yet
21365         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21366         to accommodate e.g., Solaris' /bin/sh.
21367
21368 2010-02-17  Bruno Haible  <bruno@clisp.org>
21369
21370         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21371         Reported by Ludovic Courtès <ludo@gnu.org>.
21372
21373 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21374
21375         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21376         linking with -lintl.
21377
21378 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21379
21380         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21381         if not provided by the system's netdb.h.  Reported by
21382         ludo@gnu.org (Ludovic Courtès).
21383
21384 2010-02-15  Jim Meyering  <meyering@redhat.com>
21385
21386         init.sh: improve portability and efficiency
21387         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21388         "dummy" in a for loop.
21389         Use '!', not '^' to select the complement of a character set used
21390         in a "case" statement.
21391         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21392         Suggestions from Eric Blake.
21393
21394         init.sh: automatically accommodate programs with the .exe suffix
21395         Automatically arrange for an invocation of "prog" to execute the
21396         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21397         may use the simpler "prog", yet still work when built on a system
21398         that requires specifying the added suffix.
21399         Do this by constructing a function named "prog" that invokes
21400         "prog.exe" for each .exe file in selected directories.
21401         * tests/init.sh (find_exe_basenames_): New function.
21402         (create_exe_shim_functions_): New function.
21403         (path_prepend_): Use it.
21404
21405         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21406         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21407         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21408
21409 2010-02-14  Jim Meyering  <meyering@redhat.com>
21410
21411         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21412         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21413         (sc_prohibit_hash_pjw_without_use): New rule.
21414
21415         maint.mk: allow the default upload destination dir to be overridden
21416         * top/maint.mk (upload_dest_dir_): Define with a default that
21417         preserves the status quo.
21418         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21419         Reported by Peter Simons.
21420
21421         maint.mk: prohibit inclusion of "hash.h" without_use
21422         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21423
21424 2010-02-10  Jim Meyering  <meyering@redhat.com>
21425
21426         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21427         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21428
21429 2010-02-09  Eric Blake  <ebb9@byu.net>
21430         and Bruno Haible  <bruno@clisp.org>
21431
21432         obstack-printf-posix: ensure declaration
21433         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21434         extracted from gl_FUNC_OBSTACK_PRINTF.
21435         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21436         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21437         Likewise.
21438         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21439         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21440         0.
21441
21442 2010-02-08  Bruno Haible  <bruno@clisp.org>
21443
21444         gnulib-tool: Fix typo in 2010-02-07 commit.
21445         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21446         Reported by Eric Blake.
21447
21448 2010-02-07  Bruno Haible  <bruno@clisp.org>
21449
21450         gnulib-tool: Fix up caching patches.
21451         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21452         option --no-cache. Use associative arrays when supported by the shell.
21453         (sed_comments): New variable.
21454         (modcache): Renamed from do_cache.
21455         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21456         abbreviate unnecessarily.
21457         (have_associative): New variable.
21458         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21459         way also for ksh and zsh.
21460         (func_init_sed_convert_to_cache_statements): New function, extracted
21461         from func_cache_lookup_module. Add support for associative arrays.
21462         Don't set the c_MODULE_cached variable here. Ignore all lines before
21463         the first field header. Remove only the final newline, not all trailing
21464         newlines. Support empty fields correctly. Limit the use of 'eval' to
21465         assignments.
21466         (func_get_description, func_get_status, func_get_notice,
21467         func_get_applicability, func_get_filelist, func_get_dependencies,
21468         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21469         func_get_automake_snippet, func_get_include_directive,
21470         func_get_link_directive, func_get_license, func_get_maintainer):
21471         Update documentation. List the unoptimized code first. Add support for
21472         associative arrays. Limit the use of 'eval' to assignments.
21473         (func_get_applicability): Undo stylistic pessimisations.
21474         (func_get_automake_snippet, func_get_include_directive): Reduce code
21475         duplication.
21476         (func_modules_transitive_closure, func_modules_add_dummy,
21477         func_modules_notice, func_modules_to_filelist, func_add_file,
21478         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21479         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21480         func_create_testdir, func_create_megatestdir): Update documentation.
21481
21482 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21483
21484         * gnulib-tool (func_cache_lookup_module): Store the module name
21485         belonging to the cache variable; error out if two different
21486         module names map to the same cache variable name.
21487
21488 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21489
21490         gnulib-tool: Make caching optional.
21491         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21492         Update matching short versions of --no-changelog.
21493         (func_usage): Update.
21494         (sed_extract_cache_prog): Renamed from ...
21495         (sed_extract_prog): ... this; revert to old extraction script.
21496         (func_get_description, func_get_status)
21497         (func_get_notice, func_get_applicability, func_get_filelist)
21498         (func_get_dependencies, func_get_autoconf_early_snippet)
21499         (func_get_autoconf_snippet, func_get_automake_snippet)
21500         (func_get_include_directive, func_get_link_directive)
21501         (func_get_license, func_get_maintainer): If $do_cache is false,
21502         use old, non-caching extraction scripts.
21503         Suggestion by Bruno Haible.
21504
21505 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21506
21507         gnulib-tool: cache module metainformation.
21508         * gnulib-tool (sed_extract_prog): Match newline before each
21509         header, and rewrite header to a shell variable suffix.
21510         (func_cache_var, func_cache_lookup_module): New functions,
21511         to turn a module name into a cache variable prefix, and to
21512         look up and cache module metainformation.
21513         (func_get_description, func_get_status)
21514         (func_get_notice, func_get_applicability, func_get_filelist)
21515         (func_get_dependencies, func_get_autoconf_early_snippet)
21516         (func_get_autoconf_snippet, func_get_automake_snippet)
21517         (func_get_include_directive, func_get_link_directive)
21518         (func_get_license, func_get_maintainer): Use
21519         func_cache_lookup_module.
21520
21521 2010-02-07  Bruno Haible  <bruno@clisp.org>
21522
21523         fnctl: Fix missing dependency.
21524         * modules/fcntl (Depends-on): Add getdtablesize.
21525         Reported by John W. Eaton <jwe@gnu.org>.
21526
21527 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21528
21529         Argp: fix recognition of short alias options.
21530
21531         * lib/argp-parse.c (convert_options): Fix improper use of
21532         `|' between character values.
21533         * tests/test-argp.c (group1_option): New alias option
21534         --read (-r).
21535         (group1_parser): Special handling for 'r'.
21536         (test15): New test case.
21537         (test_fun): Add test15.
21538         * tests/test-argp-2.sh: Update expected --help and --usage
21539         outputs.
21540
21541 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21542
21543         * tests/test-argp.c: Fix indentation.
21544
21545 2010-02-04  Eric Blake  <ebb9@byu.net>
21546
21547         gettimeofday: expose type of second argument
21548         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21549         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21550         * tests/test-gettimeofday.c: Use it to silence warning.
21551         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21552         the issue.
21553
21554 2010-02-03  Jim Meyering  <meyering@redhat.com>
21555
21556         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21557         * lib/regcomp.c (TYPE_SIGNED): Define.
21558         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21559
21560         regcomp.c: avoid a new -Wshadow warning
21561         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21562
21563 2010-02-01  Jim Meyering  <meyering@redhat.com>
21564
21565         removing useless parentheses in cpp #define directives
21566         For motivation, see commit c0221df4, "define STREQ(a,b)
21567         consistently, removing useless parentheses"
21568         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21569         * lib/mountlist.c (MNT_IGNORE): Likewise.
21570         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21571
21572 2010-02-01  Eric Blake  <ebb9@byu.net>
21573
21574         sys_time: use link-warning
21575         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21576         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21577         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21578         * modules/sys_time (Depends-on): Add warn-on-use.
21579         (Makefile.am): Always build replacement.
21580         (configure.ac): Update substitutions.
21581         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21582         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21583         bother with SYS_TIME_H.
21584         * modules/gettimeofday (configure.ac): Declare indicator.
21585         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21586         in use.
21587
21588         closein-tests: silence compiler warning
21589         * tests/test-closein.c (main): Ignore fread result.
21590         * modules/closein-tests (Depends-on): Add ignore-value.
21591
21592         tests: silence warning about system return
21593         * tests/test-areadlink-with-size.c (main): Ignore system result.
21594         * tests/test-areadlink.c (main): Likewise.
21595         * tests/test-areadlinkat-with-size.c (main): Likewise.
21596         * tests/test-areadlinkat.c (main): Likewise.
21597         * tests/test-canonicalize-lgpl.c (main): Likewise.
21598         * tests/test-canonicalize.c (main): Likewise.
21599         * tests/test-chown.c (main): Likewise.
21600         * tests/test-fchownat.c (main): Likewise.
21601         * tests/test-fdutimensat.c (main): Likewise.
21602         * tests/test-fstatat.c (main): Likewise.
21603         * tests/test-futimens.c (main): Likewise.
21604         * tests/test-lchown.c (main): Likewise.
21605         * tests/test-link.c (main): Likewise.
21606         * tests/test-linkat.c (main): Likewise.
21607         * tests/test-lstat.c (main): Likewise.
21608         * tests/test-mkdir.c (main): Likewise.
21609         * tests/test-mkdirat.c (main): Likewise.
21610         * tests/test-mkfifo.c (main): Likewise.
21611         * tests/test-mkfifoat.c (main): Likewise.
21612         * tests/test-mknod.c (main): Likewise.
21613         * tests/test-readlink.c (main): Likewise.
21614         * tests/test-remove.c (main): Likewise.
21615         * tests/test-rename.c (main): Likewise.
21616         * tests/test-renameat.c (main): Likewise.
21617         * tests/test-rmdir.c (main): Likewise.
21618         * tests/test-symlink.c (main): Likewise.
21619         * tests/test-symlinkat.c (main): Likewise.
21620         * tests/test-unlink.c (main): Likewise.
21621         * tests/test-unlinkat.c (main): Likewise.
21622         * tests/test-utimens.c (main): Likewise.
21623         * tests/test-utimensat.c (main): Likewise.
21624         * modules/areadlink-tests (Depends-on): Add ignore-value.
21625         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21626         * modules/areadlinkat-tests (Depends-on): Likewise.
21627         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21628         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21629         * modules/canonicalize-tests (Depends-on): Likewise.
21630         * modules/chown-tests (Depends-on): Likewise.
21631         * modules/fdutimensat-tests (Depends-on): Likewise.
21632         * modules/futimens-tests (Depends-on): Likewise.
21633         * modules/lchown-tests (Depends-on): Likewise.
21634         * modules/link-tests (Depends-on): Likewise.
21635         * modules/linkat-tests (Depends-on): Likewise.
21636         * modules/lstat-tests (Depends-on): Likewise.
21637         * modules/mkdir-tests (Depends-on): Likewise.
21638         * modules/mkfifo-tests (Depends-on): Likewise.
21639         * modules/mkfifoat-tests (Depends-on): Likewise.
21640         * modules/mknod-tests (Depends-on): Likewise.
21641         * modules/openat-tests (Depends-on): Likewise.
21642         * modules/readlink-tests (Depends-on): Likewise.
21643         * modules/remove-tests (Depends-on): Likewise.
21644         * modules/rename-tests (Depends-on): Likewise.
21645         * modules/renameat-tests (Depends-on): Likewise.
21646         * modules/rmdir-tests (Depends-on): Likewise.
21647         * modules/symlink-tests (Depends-on): Likewise.
21648         * modules/symlinkat-tests (Depends-on): Likewise.
21649         * modules/unlink-tests (Depends-on): Likewise.
21650         * modules/utimens-tests (Depends-on): Likewise.
21651         * modules/utimensat-tests (Depends-on): Likewise.
21652
21653 2010-01-31  Bruno Haible  <bruno@clisp.org>
21654
21655         Perform the same test for many <math.h> functions.
21656         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21657         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21658         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21659         of gl_MATHFUNC.
21660         * modules/acos (configure.ac): Likewise.
21661         * modules/asin (configure.ac): Likewise.
21662         * modules/atan (configure.ac): Likewise.
21663         * modules/atan2 (configure.ac): Likewise.
21664         * modules/cbrt (configure.ac): Likewise.
21665         * modules/copysign (configure.ac): Likewise.
21666         * modules/cos (configure.ac): Likewise.
21667         * modules/cosh (configure.ac): Likewise.
21668         * modules/erf (configure.ac): Likewise.
21669         * modules/erfc (configure.ac): Likewise.
21670         * modules/exp (configure.ac): Likewise.
21671         * modules/fmod (configure.ac): Likewise.
21672         * modules/hypot (configure.ac): Likewise.
21673         * modules/j0 (configure.ac): Likewise.
21674         * modules/j1 (configure.ac): Likewise.
21675         * modules/jn (configure.ac): Likewise.
21676         * modules/lgamma (configure.ac): Likewise.
21677         * modules/log (configure.ac): Likewise.
21678         * modules/log10 (configure.ac): Likewise.
21679         * modules/log1p (configure.ac): Likewise.
21680         * modules/pow (configure.ac): Likewise.
21681         * modules/remainder (configure.ac): Likewise.
21682         * modules/sin (configure.ac): Likewise.
21683         * modules/sinh (configure.ac): Likewise.
21684         * modules/tan (configure.ac): Likewise.
21685         * modules/tanh (configure.ac): Likewise.
21686         * modules/y0 (configure.ac): Likewise.
21687         * modules/y1 (configure.ac): Likewise.
21688         * modules/yn (configure.ac): Likewise.
21689         Suggested by Paolo Bonzini.
21690
21691 2010-01-31  Bruno Haible  <bruno@clisp.org>
21692
21693         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21694
21695 2010-01-31  Bruno Haible  <bruno@clisp.org>
21696
21697         Work around getdelim() bug on FreeBSD 8.0.
21698         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21699         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21700         not work.
21701         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21702         is 1.
21703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21704         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21705         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21706         a non-zero size.
21707         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21708
21709 2010-01-31  Bruno Haible  <bruno@clisp.org>
21710
21711         Work around getline() bug on FreeBSD 8.0.
21712         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21713         and a non-zero size.
21714         * tests/test-getline.c (main): Likewise.
21715         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21716         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21717
21718 2010-01-28  Eric Blake  <ebb9@byu.net>
21719
21720         regex: fix build failure
21721         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21722         platforms.
21723
21724 2010-01-28  Jim Meyering  <meyering@redhat.com>
21725
21726         regex: do not ignore memory allocation failure
21727         * lib/regex_internal.c (create_cd_newstate): Detect
21728         re_node_set_init_copy failure.   Extracted from glibc commit
21729         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21730
21731         regex: sync more white-space changes from libc
21732         * lib/regex_internal.c: White-space only changes.
21733         * lib/regexec.c: Likewise.
21734
21735         regex: add many uses of __attribute_warn_unused_result__
21736         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21737         * lib/regexec.c: Likewise.
21738         Extracted from a messy glibc commit.
21739
21740         regcomp.c: spelling and merge-artifact from glibc
21741         * lib/regcomp.c: Merge remainder of glibc's
21742         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21743
21744         regcomp.c: sync white-space changes from glibc
21745         * lib/regcomp.c: Merge to accommodate white space
21746         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21747
21748         regcomp.c: do not ignore internal return values
21749         * lib/regcomp.c: Do not ignore internal return values.
21750         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21751         but without its white-space changes and spelling fixes.
21752
21753         regex_internal.h: define __attribute_warn_unused_result__
21754         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21755
21756         maint: add a syntax-check rule to check for vulnerable Makefile.in
21757         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21758
21759 2010-01-27  Jim Meyering  <meyering@redhat.com>
21760
21761         ncftpput-ftp: clean up spaces
21762         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21763         Remove trailing blanks.
21764
21765 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21766
21767         * build-aux/git-version-gen: Fix copyright statement.
21768         * build-aux/gnupload: Likewise.
21769         * tests/test-arcfour.c: Likewise.
21770         * tests/test-arctwo.c: Likewise.
21771         * tests/test-count-one-bits.c: Likewise.
21772         * tests/test-crc.c: Likewise.
21773         * tests/test-des.c: Likewise.
21774         * tests/test-gc-arcfour.c: Likewise.
21775         * tests/test-gc-arctwo.c: Likewise.
21776         * tests/test-gc-des.c: Likewise.
21777         * tests/test-gc-hmac-md5.c: Likewise.
21778         * tests/test-gc-hmac-sha1.c: Likewise.
21779         * tests/test-gc-md2.c: Likewise.
21780         * tests/test-gc-md4.c: Likewise.
21781         * tests/test-gc-md5.c: Likewise.
21782         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21783         * tests/test-gc-rijndael.c: Likewise.
21784         * tests/test-gc-sha1.c: Likewise.
21785         * tests/test-gc.c: Likewise.
21786         * tests/test-gethostname.c: Likewise.
21787         * tests/test-gettimeofday.c: Likewise.
21788         * tests/test-hash.c: Likewise.
21789         * tests/test-hmac-md5.c: Likewise.
21790         * tests/test-hmac-sha1.c: Likewise.
21791         * tests/test-md2.c: Likewise.
21792         * tests/test-md4.c: Likewise.
21793         * tests/test-md5.c: Likewise.
21794         * tests/test-memchr.c: Likewise.
21795         * tests/test-memchr2.c: Likewise.
21796         * tests/test-memcmp.c: Likewise.
21797         * tests/test-memmem.c: Likewise.
21798         * tests/test-memrchr.c: Likewise.
21799         * tests/test-rawmemchr.c: Likewise.
21800         * tests/test-read-file.c: Likewise.
21801         * tests/test-rijndael.c: Likewise.
21802         * tests/test-sockets.c: Likewise.
21803         * tests/test-strchrnul.c: Likewise.
21804         * tests/test-strstr.c: Likewise.
21805         * tests/test-strtod.c: Likewise.
21806         * build-aux/ncftpput-ftp: Likewise.
21807
21808 2010-01-26  Eric Blake  <ebb9@byu.net>
21809
21810         ignore-value: update recommended header name
21811         * modules/ignore-value (Include): Only use <> for headers that
21812         exist in glibc.
21813
21814 2010-01-26  Jim Meyering  <meyering@redhat.com>
21815
21816         test-userspec.c: avoid compiler warnings
21817         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
21818         and "initialization discards qualifiers..." warnings.
21819         Put the first "uid" in its own scope, and make char* members "const".
21820
21821 2010-01-25  Bruno Haible  <bruno@clisp.org>
21822
21823         gnulib-tool: Make warning diagnostics consistent.
21824         * gnulib-tool (func_warning): New function.
21825         Use it everywhere where gnulib-tool produces output to stderr and it is
21826         not a fatal error.
21827
21828 2010-01-25  Bruno Haible  <bruno@clisp.org>
21829
21830         Fix test dependencies.
21831         * modules/xstrtol-tests (Depends-on): Add inttypes.
21832         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
21833
21834 2010-01-25 Pádraig Brady <P@draigBrady.com>
21835
21836         syntax-check: detect incorrect boolean macro values in config.h
21837         * modules/maintainer-makefile (configure.ac): Parameterize the location
21838         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
21839         The logic is from Eric Blake and the location indicated by Jim Meyering.
21840         Note the more natural CONFIG_HEADER name is prohibited by automake
21841         for backwards compatibility reasons.
21842         * top/maint.mk (sc_Wundef_boolean): New rule.
21843
21844 2010-01-25  Jim Meyering  <meyering@redhat.com>
21845
21846         bootstrap: detect MacOS 10.6's shasum, too
21847         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
21848         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
21849
21850 2010-01-23  Jim Meyering  <meyering@redhat.com>
21851
21852         xstrtoll: new module
21853         * modules/xstrtoll: New file.
21854         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
21855         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
21856         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
21857         ./configure fails if you use this module and lack "long long".
21858         * modules/xstrtoll-tests: New module.
21859         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
21860         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
21861         new init.sh-based test framework.
21862
21863 2010-01-24  Bruno Haible  <bruno@clisp.org>
21864
21865         Tests for module 'yn'.
21866         * modules/yn-tests: New file.
21867         * tests/test-yn.c: New file.
21868
21869         Tests for module 'y1'.
21870         * modules/y1-tests: New file.
21871         * tests/test-y1.c: New file.
21872
21873         Tests for module 'y0'.
21874         * modules/y0-tests: New file.
21875         * tests/test-y0.c: New file.
21876
21877         Tests for module 'tanh'.
21878         * modules/tanh-tests: New file.
21879         * tests/test-tanh.c: New file.
21880
21881         Tests for module 'tan'.
21882         * modules/tan-tests: New file.
21883         * tests/test-tan.c: New file.
21884
21885         Tests for module 'sqrt'.
21886         * modules/sqrt-tests: New file.
21887         * tests/test-sqrt.c: New file.
21888
21889         Tests for module 'sinh'.
21890         * modules/sinh-tests: New file.
21891         * tests/test-sinh.c: New file.
21892
21893         Tests for module 'sin'.
21894         * modules/sin-tests: New file.
21895         * tests/test-sin.c: New file.
21896
21897         Tests for module 'rint'.
21898         * modules/rint-tests: New file.
21899         * tests/test-rint.c: New file.
21900
21901         Tests for module 'remainder'.
21902         * modules/remainder-tests: New file.
21903         * tests/test-remainder.c: New file.
21904
21905         Tests for module 'pow'.
21906         * modules/pow-tests: New file.
21907         * tests/test-pow.c: New file.
21908
21909         Tests for module 'nextafter'.
21910         * modules/nextafter-tests: New file.
21911         * tests/test-nextafter.c: New file.
21912
21913         Tests for module 'modf'.
21914         * modules/modf-tests: New file.
21915         * tests/test-modf.c: New file.
21916
21917         Tests for module 'logb'.
21918         * modules/logb-tests: New file.
21919         * tests/test-logb.c: New file.
21920
21921         Tests for module 'log1p'.
21922         * modules/log1p-tests: New file.
21923         * tests/test-log1p.c: New file.
21924
21925         Tests for module 'log10'.
21926         * modules/log10-tests: New file.
21927         * tests/test-log10.c: New file.
21928
21929         Tests for module 'log'.
21930         * modules/log-tests: New file.
21931         * tests/test-log.c: New file.
21932
21933         Tests for module 'lgamma'.
21934         * modules/lgamma-tests: New file.
21935         * tests/test-lgamma.c: New file.
21936
21937         Tests for module 'ldexp'.
21938         * modules/ldexp-tests: New file.
21939         * tests/test-ldexp.c: New file.
21940
21941         Tests for module 'jn'.
21942         * modules/jn-tests: New file.
21943         * tests/test-jn.c: New file.
21944
21945         Tests for module 'j1'.
21946         * modules/j1-tests: New file.
21947         * tests/test-j1.c: New file.
21948
21949         Tests for module 'j0'.
21950         * modules/j0-tests: New file.
21951         * tests/test-j0.c: New file.
21952
21953         Tests for module 'hypot'.
21954         * modules/hypot-tests: New file.
21955         * tests/test-hypot.c: New file.
21956
21957         Tests for module 'fmod'.
21958         * modules/fmod-tests: New file.
21959         * tests/test-fmod.c: New file.
21960
21961         Tests for module 'fabs'.
21962         * modules/fabs-tests: New file.
21963         * tests/test-fabs.c: New file.
21964
21965         Tests for module 'exp'.
21966         * modules/exp-tests: New file.
21967         * tests/test-exp.c: New file.
21968
21969         Tests for module 'erfc'.
21970         * modules/erfc-tests: New file.
21971         * tests/test-erfc.c: New file.
21972
21973         Tests for module 'erf'.
21974         * modules/erf-tests: New file.
21975         * tests/test-erf.c: New file.
21976
21977         Tests for module 'cosh'.
21978         * modules/cosh-tests: New file.
21979         * tests/test-cosh.c: New file.
21980
21981         Tests for module 'cos'.
21982         * modules/cos-tests: New file.
21983         * tests/test-cos.c: New file.
21984
21985         Tests for module 'copysign'.
21986         * modules/copysign-tests: New file.
21987         * tests/test-copysign.c: New file.
21988
21989         Tests for module 'cbrt'.
21990         * modules/cbrt-tests: New file.
21991         * tests/test-cbrt.c: New file.
21992
21993         Tests for module 'atan2'.
21994         * modules/atan2-tests: New file.
21995         * tests/test-atan2.c: New file.
21996
21997         Tests for module 'atan'.
21998         * modules/atan-tests: New file.
21999         * tests/test-atan.c: New file.
22000
22001         Tests for module 'asin'.
22002         * modules/asin-tests: New file.
22003         * tests/test-asin.c: New file.
22004
22005         Tests for module 'acos'.
22006         * modules/acos-tests: New file.
22007         * tests/test-acos.c: New file.
22008
22009 2010-01-24  Bruno Haible  <bruno@clisp.org>
22010
22011         Fix tests for common <math.h> functions.
22012         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
22013         code snippet that references the function pointer, rather than merely
22014         calling the function. Substitute the FUNC_LIBM variable.
22015         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
22016         * modules/acos (configure.ac): Likewise.
22017         * modules/asin (configure.ac): Likewise.
22018         * modules/atan (configure.ac): Likewise.
22019         * modules/atan2 (configure.ac): Likewise.
22020         * modules/cbrt (configure.ac): Likewise.
22021         * modules/copysign (configure.ac): Likewise.
22022         * modules/cos (configure.ac): Likewise.
22023         * modules/cosh (configure.ac): Likewise.
22024         * modules/erf (configure.ac): Likewise.
22025         * modules/erfc (configure.ac): Likewise.
22026         * modules/exp (configure.ac): Likewise.
22027         * modules/fabs (configure.ac): Likewise.
22028         * modules/fmod (configure.ac): Likewise.
22029         * modules/hypot (configure.ac): Likewise.
22030         * modules/j0 (configure.ac): Likewise.
22031         * modules/j1 (configure.ac): Likewise.
22032         * modules/jn (configure.ac): Likewise.
22033         * modules/ldexp (configure.ac): Likewise.
22034         * modules/lgamma (configure.ac): Likewise.
22035         * modules/log (configure.ac): Likewise.
22036         * modules/log10 (configure.ac): Likewise.
22037         * modules/log1p (configure.ac): Likewise.
22038         * modules/logb (configure.ac): Likewise.
22039         * modules/modf (configure.ac): Likewise.
22040         * modules/nextafter (configure.ac): Likewise.
22041         * modules/pow (configure.ac): Likewise.
22042         * modules/remainder (configure.ac): Likewise.
22043         * modules/rint (configure.ac): Likewise.
22044         * modules/sin (configure.ac): Likewise.
22045         * modules/sinh (configure.ac): Likewise.
22046         * modules/tan (configure.ac): Likewise.
22047         * modules/tanh (configure.ac): Likewise.
22048         * modules/y0 (configure.ac): Likewise.
22049         * modules/y1 (configure.ac): Likewise.
22050         * modules/yn (configure.ac): Likewise.
22051
22052 2010-01-24  Bruno Haible  <bruno@clisp.org>
22053
22054         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
22055         * tests/test-acosl.c (x): New variable.
22056         (main): Store argument in x and fetch it from x.
22057         * tests/test-asinl.c (x): New variable.
22058         (main): Store argument in x and fetch it from x.
22059         * tests/test-atanl.c (x): New variable.
22060         (main): Store argument in x and fetch it from x.
22061         * tests/test-cosl.c (x): New variable.
22062         (main): Store argument in x and fetch it from x.
22063         * tests/test-expl.c (x): New variable.
22064         (main): Store argument in x and fetch it from x.
22065         * tests/test-logl.c (x): New variable.
22066         (main): Store argument in x and fetch it from x.
22067         * tests/test-sinl.c (x): New variable.
22068         (main): Store argument in x and fetch it from x.
22069         * tests/test-sqrtl.c (x): New variable.
22070         (main): Store argument in x and fetch it from x.
22071         * tests/test-tanl.c (x): New variable.
22072         (main): Store argument in x and fetch it from x.
22073
22074 2010-01-24  Bruno Haible  <bruno@clisp.org>
22075
22076         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
22077         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
22078         assignments to the initial TESTS_ENVIRONMENT.
22079         * doc/gnulib.texi (Unit test modules): Document it.
22080         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
22081         TESTS_ENVIRONMENT.
22082         * modules/btowc-tests (Makefile.am): Likewise.
22083         * modules/c-stack-tests (Makefile.am): Likewise.
22084         * modules/c-strcase-tests (Makefile.am): Likewise.
22085         * modules/copy-file-tests (Makefile.am): Likewise.
22086         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
22087         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
22088         * modules/mbrtowc-tests (Makefile.am): Likewise.
22089         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22090         * modules/mbscasestr-tests (Makefile.am): Likewise.
22091         * modules/mbschr-tests (Makefile.am): Likewise.
22092         * modules/mbscspn-tests (Makefile.am): Likewise.
22093         * modules/mbsinit-tests (Makefile.am): Likewise.
22094         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22095         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
22096         * modules/mbspbrk-tests (Makefile.am): Likewise.
22097         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22098         * modules/mbsrchr-tests (Makefile.am): Likewise.
22099         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
22100         * modules/mbsspn-tests (Makefile.am): Likewise.
22101         * modules/mbsstr-tests (Makefile.am): Likewise.
22102         * modules/nl_langinfo-tests (Makefile.am): Likewise.
22103         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
22104         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22105         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22106         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22107         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22108         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
22109         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22110         * modules/wcrtomb-tests (Makefile.am): Likewise.
22111         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
22112         * modules/wcsrtombs-tests (Makefile.am): Likewise.
22113         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
22114         assignments from TESTS_ENVIRONMENT.
22115         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
22116         augmentation.
22117         * modules/argp-version-etc-tests (Makefile.am): Likewise.
22118         * modules/atexit-tests (Makefile.am): Likewise.
22119         * modules/binary-io-tests (Makefile.am): Likewise.
22120         * modules/closein-tests (Makefile.am): Likewise.
22121         * modules/dprintf-posix-tests (Makefile.am): Likewise.
22122         * modules/exclude-tests (Makefile.am): Likewise.
22123         * modules/fflush-tests (Makefile.am): Likewise.
22124         * modules/fpending-tests (Makefile.am): Likewise.
22125         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22126         * modules/freadahead-tests (Makefile.am): Likewise.
22127         * modules/freadptr-tests (Makefile.am): Likewise.
22128         * modules/freadseek-tests (Makefile.am): Likewise.
22129         * modules/fseek-tests (Makefile.am): Likewise.
22130         * modules/fseeko-tests (Makefile.am): Likewise.
22131         * modules/ftell-tests (Makefile.am): Likewise.
22132         * modules/ftello-tests (Makefile.am): Likewise.
22133         * modules/idpriv-drop-tests (Makefile.am): Likewise.
22134         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
22135         * modules/lseek-tests (Makefile.am): Likewise.
22136         * modules/parse-duration-tests (Makefile.am): Likewise.
22137         * modules/perror-tests (Makefile.am): Likewise.
22138         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
22139         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
22140         * modules/pipe-tests (Makefile.am): Likewise.
22141         * modules/pread-tests (Makefile.am): Likewise.
22142         * modules/printf-posix-tests (Makefile.am): Likewise.
22143         * modules/select-tests (Makefile.am): Likewise.
22144         * modules/sigpipe-tests (Makefile.am): Likewise.
22145         * modules/tsearch-tests (Makefile.am): Likewise.
22146         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
22147         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
22148         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22149         * modules/uniwidth/width-tests (Makefile.am): Likewise.
22150         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
22151         * modules/version-etc-tests (Makefile.am): Likewise.
22152         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22153         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22154         * modules/xalloc-die-tests (Makefile.am): Likewise.
22155         * modules/xprintf-posix-tests (Makefile.am): Likewise.
22156         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22157         * modules/xstrtol-tests (Makefile.am): Likewise.
22158         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22159         * modules/yesno-tests (Makefile.am): Likewise.
22160         Suggested by Jim Meyering.
22161
22162 2010-01-24  Bruno Haible  <bruno@clisp.org>
22163
22164         More documentation.
22165         * doc/gnulib.texi (Writing modules): New chapter.
22166         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
22167         the new chapter.
22168
22169 2010-01-24  Jim Meyering  <meyering@redhat.com>
22170
22171         maint.mk: do not prepend "./" after filtering
22172         * top/maint.mk (_prepend_srcdir_prefix): New variable
22173         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
22174         "./" when $(srcdir) is ".".
22175
22176         define STREQ(a,b) consistently, removing useless parentheses
22177         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
22178         since the only risk is that "a" or "b" contains an unparenthesized
22179         comma, but if either did that, STREQ would have 3 or more arguments.
22180         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
22181         * lib/fts.c (STREQ): Remove unnecessary parentheses.
22182         * lib/hash-triple.c (STREQ): Likewise.
22183         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
22184         * lib/getugroups.c (STREQ): Likewise.
22185
22186 2010-01-23  Jim Meyering  <meyering@redhat.com>
22187
22188         maint.mk: fix syntax-check in a non-srcdir build directory
22189         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
22190         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
22191
22192 2010-01-22  Jim Meyering  <meyering@redhat.com>
22193
22194         userspec: add unit tests
22195         * tests/test-userspec.c: New file.
22196         * modules/userspec-tests: Likewise.
22197
22198 2010-01-21  Jim Meyering  <meyering@redhat.com>
22199
22200         maint.mk: handle source file names containing "." robustly
22201         * top/maint.mk (_dot_escaped_srcdir): Define.
22202         (VC_LIST): Use it in LHS of sed substitution.
22203
22204 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
22205
22206         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22207         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22208         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22209         from a non-srcdir build.
22210
22211 2010-01-20  Eric Blake  <ebb9@byu.net>
22212
22213         warn-on-use: use instead of link-warning
22214         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22215         * modules/unistd (Depends-on, Makefile.am): Likewise.
22216         * modules/arpa_inet (Depends-on): Replace link-warning with
22217         warn-on-use.
22218         (Makefile.am): Update rules accordingly.
22219         * modules/ctype (Depends-on, Makefile.am): Likewise.
22220         * modules/dirent (Depends-on, Makefile.am): Likewise.
22221         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22222         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22223         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22224         * modules/locale (Depends-on, Makefile.am): Likewise.
22225         * modules/math (Depends-on, Makefile.am): Likewise.
22226         * modules/search (Depends-on, Makefile.am): Likewise.
22227         * modules/signal (Depends-on, Makefile.am): Likewise.
22228         * modules/spawn (Depends-on, Makefile.am): Likewise.
22229         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22230         * modules/string (Depends-on, Makefile.am): Likewise.
22231         * modules/strings (Depends-on, Makefile.am): Likewise.
22232         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22233         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22234         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22235         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22236         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22237         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22238         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22239         * modules/wchar (Depends-on, Makefile.am): Likewise.
22240         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22241         should be poisoned.
22242         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22243         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22244         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22245         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22246         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22247         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22248         * m4/math_h.m4 (gl_MATH_H): Likewise.
22249         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22250         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22251         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22252         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22253         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22254         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22255         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22256         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22257         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22258         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22259         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22260         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22261         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22262         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22263         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22264         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22265         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22266         GL_LINK_WARNING.
22267         * lib/ctype.in.h: Likewise.
22268         * lib/dirent.in.h: Likewise.
22269         * lib/fcntl.in.h: Likewise.
22270         * lib/inttypes.in.h: Likewise.
22271         * lib/langinfo.in.h: Likewise.
22272         * lib/locale.in.h: Likewise.
22273         * lib/math.in.h: Likewise.
22274         * lib/search.in.h: Likewise.
22275         * lib/signal.in.h: Likewise.
22276         * lib/spawn.in.h: Likewise.
22277         * lib/stdio.in.h: Likewise.
22278         * lib/stdlib.in.h: Likewise.
22279         * lib/string.in.h: Likewise.
22280         * lib/strings.in.h: Likewise.
22281         * lib/sys_file.in.h: Likewise.
22282         * lib/sys_ioctl.in.h: Likewise.
22283         * lib/sys_select.in.h: Likewise.
22284         * lib/sys_socket.in.h: Likewise.
22285         * lib/sys_stat.in.h: Likewise.
22286         * lib/sys_times.in.h: Likewise.
22287         * lib/sys_utsname.in.h: Likewise.
22288         * lib/unistd.in.h: Likewise.
22289         * lib/wchar.in.h: Likewise.
22290
22291 2010-01-20  Bruno Haible  <bruno@clisp.org>
22292
22293         Avoid duplicate -lm.
22294         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22295         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22296         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22297         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22298         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22299         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22300         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22301         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22302         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22303         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22304         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22305         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22306         Reported by Paolo Bonzini.
22307
22308 2010-01-19  Bruno Haible  <bruno@clisp.org>
22309
22310         langinfo, nl_langinfo: Relicense under LGPLv2+.
22311         * modules/langinfo (License): Change to LGPLv2+.
22312         * modules/nl_langinfo (License): Likewise.
22313         Patch by David Lutterkort <lutter@redhat.com>.
22314
22315 2010-01-19  Bruno Haible  <bruno@clisp.org>
22316
22317         Avoid compilation error with cc on OSF/1 5.1.
22318         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22319         statement, not before.
22320         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22321
22322 2010-01-18  Bruno Haible  <bruno@clisp.org>
22323
22324         Avoid a link error due to the __printf__ symbol.
22325         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22326         and 2.6.x.
22327         (__format__, __printf__): Remove definitions.
22328         * lib/argp-fmtstream.h: Likewise.
22329         * lib/argp.h: Likewise.
22330         * lib/error.h: Likewise.
22331         * lib/vasnprintf.h: Likewise.
22332         * lib/xprintf.h: Likewise.
22333         * lib/xvasprintf.h: Likewise.
22334         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22335
22336 2010-01-18  Bruno Haible  <bruno@clisp.org>
22337
22338         Tests for module 'tanl'.
22339         * modules/tanl-tests: New file.
22340         * tests/test-tanl.c: New file.
22341
22342         Tests for module 'sqrtl'.
22343         * modules/sqrtl-tests: New file.
22344         * tests/test-sqrtl.c: New file.
22345
22346         Tests for module 'sinl'.
22347         * modules/sinl-tests: New file.
22348         * tests/test-sinl.c: New file.
22349
22350         Tests for module 'logl'.
22351         * modules/logl-tests: New file.
22352         * tests/test-logl.c: New file.
22353
22354         Tests for module 'expl'.
22355         * modules/expl-tests: New file.
22356         * tests/test-expl.c: New file.
22357
22358         Tests for module 'cosl'.
22359         * modules/cosl-tests: New file.
22360         * tests/test-cosl.c: New file.
22361
22362         Tests for module 'atanl'.
22363         * modules/atanl-tests: New file.
22364         * tests/test-atanl.c: New file.
22365
22366         Tests for module 'asinl'.
22367         * modules/asinl-tests: New file.
22368         * tests/test-asinl.c: New file.
22369
22370         Tests for module 'acosl'.
22371         * modules/acosl-tests: New file.
22372         * tests/test-acosl.c: New file.
22373
22374         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22375         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22376         tanl): Use the standard gnulib idiom.
22377         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22378         * lib/sinl.c: Likewise.
22379         * lib/tanl.c: Don't include trigl.c.
22380         (kernel_tanl): Make static.
22381         * lib/sincosl.c: Include trigl.h first.
22382         * lib/trigl.c: Likewise.
22383         * m4/acosl.m4: New file.
22384         * m4/asinl.m4: New file.
22385         * m4/atanl.m4: New file.
22386         * m4/cosl.m4: New file.
22387         * m4/expl.m4: New file.
22388         * m4/logl.m4: New file.
22389         * m4/sinl.m4: New file.
22390         * m4/sqrtl.m4: New file.
22391         * m4/tanl.m4: New file.
22392         * m4/mathl.m4: Remove file.
22393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22394         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22395         Don't initialize GNULIB_MATHL.
22396         * modules/acosl: New file.
22397         * modules/asinl: New file.
22398         * modules/atanl: New file.
22399         * modules/cosl: New file.
22400         * modules/expl: New file.
22401         * modules/logl: New file.
22402         * modules/sinl: New file.
22403         * modules/sqrtl: New file.
22404         * modules/tanl: New file.
22405         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22406         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22407         substitute GNULIB_MATHL.
22408         * modules/mathl: Rewritten.
22409         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22410         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22411         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22412         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22413         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22414         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22415         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22416         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22417         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22418
22419 2010-01-18  Bruno Haible  <bruno@clisp.org>
22420
22421         sqrt: Make gl_FUNC_SQRT requirable.
22422         * m4/sqrt.m4: New file.
22423         * modules/sqrt (Files): Add it.
22424         (configure.ac): Invoke gl_FUNC_SQRT.
22425
22426 2010-01-18  Bruno Haible  <bruno@clisp.org>
22427
22428         New modules for common <math.h> functions.
22429         * m4/mathfunc.m4: New file.
22430         * modules/acos: New file.
22431         * modules/asin: New file.
22432         * modules/atan: New file.
22433         * modules/atan2: New file.
22434         * modules/cbrt: New file.
22435         * modules/copysign: New file.
22436         * modules/cos: New file.
22437         * modules/cosh: New file.
22438         * modules/erf: New file.
22439         * modules/erfc: New file.
22440         * modules/exp: New file.
22441         * modules/fabs: New file.
22442         * modules/fmod: New file.
22443         * modules/hypot: New file.
22444         * modules/j0: New file.
22445         * modules/j1: New file.
22446         * modules/jn: New file.
22447         * modules/ldexp: New file.
22448         * modules/lgamma: New file.
22449         * modules/log: New file.
22450         * modules/log10: New file.
22451         * modules/log1p: New file.
22452         * modules/logb: New file.
22453         * modules/modf: New file.
22454         * modules/nextafter: New file.
22455         * modules/pow: New file.
22456         * modules/remainder: New file.
22457         * modules/rint: New file.
22458         * modules/sin: New file.
22459         * modules/sinh: New file.
22460         * modules/sqrt: New file.
22461         * modules/tan: New file.
22462         * modules/tanh: New file.
22463         * modules/y0: New file.
22464         * modules/y1: New file.
22465         * modules/yn: New file.
22466         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22467         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22468         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22469         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22470         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22471         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22472         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22473         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22474         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22475         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22476         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22477         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22478         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22479         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22480         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22481         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22482         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22483         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22484         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22485         * doc/posix-functions/log.texi: Mention the 'log' module.
22486         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22487         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22488         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22489         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22490         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22491         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22492         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22493         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22494         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22495         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22496         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22497         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22498         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22499         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22500         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22501         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22502
22503 2010-01-18  Jim Meyering  <meyering@redhat.com>
22504
22505         ignore-value: relax license to LGPLv2+
22506         * modules/ignore-value (License): Relax to LGPLv2+.
22507
22508         getdate: don't leak when TZ contains two or more '"'s
22509         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22510         double quote in TZ after the first one.
22511
22512         readtokens: do not leak internal token_lengths buffer
22513         * lib/readtokens.c (readtokens): Free the local, lengths,
22514         when the supplied "token_lengths" parameter is NULL.
22515
22516 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22517
22518         Fix a couple of missing LIBTHREAD link failures on AIX.
22519         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22520         $(LIBTHREAD).
22521         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22522
22523         Link test-poll against INET_PTON_LIB.
22524         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22525         for inet_pton on Solaris 10.
22526
22527 2010-01-17  Bruno Haible  <bruno@clisp.org>
22528
22529         unistdio/*-sprintf: Fix typo in module description.
22530         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22531         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22532         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22533         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22534         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22535         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22536         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22537         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22538
22539 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22540
22541         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22542         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22543         variables in shell case patterns, for AIX and HP-UX ksh.
22544
22545         Split large sed scripts, for HP-UX sed.
22546         * modules/stdio: Split sed scripts around 50 sed commands,
22547         to avoid HP-UX limit of 99 commands, in the near future.
22548         * modules/string: Likewise.
22549         * modules/unistd: Likewise.
22550
22551         gnulib-tool: avoid writing in the current directory.
22552         * gnulib-tool (func_emit_lib_Makefile_am)
22553         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22554         not in the current directory, so concurrent gnulib-tool
22555         instances do not interfere.
22556
22557 2010-01-16  Jim Meyering  <meyering@redhat.com>
22558
22559         doc: update users.txt
22560         * users.txt: Add grep.
22561         (diffutils, gzip): Update URLs.
22562
22563 2010-01-12  Bruno Haible  <bruno@clisp.org>
22564
22565         posix_spawn: Avoid test failure on Cygwin.
22566         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22567         characters.
22568         Reported by Simon Josefsson.
22569
22570 2010-01-12  Bruno Haible  <bruno@clisp.org>
22571
22572         * tests/test-cond.c (main): When skipping the test, show the reason.
22573
22574 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22575
22576         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22577
22578 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22579
22580         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22581         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22582
22583 2010-01-12  Eric Blake  <ebb9@byu.net>
22584
22585         build: guarantee AS_VAR_IF
22586         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22587         (gl_AS_VAR_IF): Move...
22588         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22589         Reported by Simon Josefsson.
22590
22591 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22592
22593         * lib/stdio.in.h: Fix typo.
22594
22595 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22596
22597         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22598         libgpg-error.
22599
22600 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22601
22602         * tests/test-xalloc-die.sh: Use $EXEEXT.
22603
22604 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22605             Bruno Haible  <bruno@clisp.org>
22606
22607         getlogin, getlogin_r: Avoid test failure.
22608         * tests/test-getlogin.c: Include <stdio.h>.
22609         (main): Skip the test when the function fails because stdin is not a
22610         tty.
22611         * tests/test-getlogin_r.c: Include <stdio.h>.
22612         (main): Skip the test when the function fails because stdin is not a
22613         tty.
22614
22615 2010-01-11  Eric Blake  <ebb9@byu.net>
22616
22617         tests: avoid more large file warnings
22618         * tests/test-fflush.c: Avoid warning about ftell use.
22619         * tests/test-fseek.c: Avoid warning about fseek use.
22620
22621 2010-01-10  Bruno Haible  <bruno@clisp.org>
22622
22623         nproc: Work better on Linux when /proc and /sys are not mounted.
22624         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22625         as lower bound when, on glibc/Linux systems,
22626         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22627         Suggested by Pádraig Brady <P@draigbrady.com>.
22628         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22629
22630         nproc: Refactor.
22631         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22632         extracted from num_processors.
22633         (num_processors): Call it.
22634
22635 2010-01-11  Jim Meyering  <meyering@redhat.com>
22636
22637         utimecmp: avoid new warning from upcoming gcc-4.5.0
22638         * lib/utimecmp.c (BILLION): Define using #define rather than an
22639         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22640
22641 2010-01-11  Eric Blake  <ebb9@byu.net>
22642
22643         math: add portability warnings for classification macros
22644         * modules/math (Depends-on): Add warn-on-use.
22645         (Makefile.am): Provide new substitutions.
22646         * m4/math_h.m4 (gl_MATH_H): Require inline.
22647         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22648         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22649         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22650         implement warnings.
22651
22652         unistd: warn on use of environ without module
22653         * modules/unistd (Depends-on): Add warn-on-use.
22654         (Makefile.am): Provide new substitutions.
22655         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22656         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22657
22658         stdio: warn on suspicious uses
22659         * modules/stdio (Depends-on): Add warn-on-use.
22660         (Makefile.am): Provide new substitutions.
22661         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22662         fseeko.
22663         * lib/stdio.in.h (gets): Always warn on use.
22664         (fseek, ftell): Adjust when warnings are issued, and honor
22665         _GL_NO_LARGE_FILES as a way to silence the warning.
22666         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22667         any warning about large file offsets.
22668         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22669         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22670         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22671         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22672         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22673         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22674         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22675         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22676
22677         warn-on-use: new module
22678         * modules/warn-on-use: New file.
22679         * build-aux/warn-on-use.h: Likewise.
22680         * m4/warn-on-use.m4: Likewise.
22681         * MODULES.html.sh (Support for building): Mention it.
22682
22683 2010-01-10  Bruno Haible  <bruno@clisp.org>
22684
22685         Tests for module 'unistr/u32-strdup'.
22686         * modules/unistr/u32-strdup-tests: New file.
22687         * tests/unistr/test-u32-strdup.c: New file.
22688
22689         Tests for module 'unistr/u16-strdup'.
22690         * modules/unistr/u16-strdup-tests: New file.
22691         * tests/unistr/test-u16-strdup.c: New file.
22692
22693         Tests for module 'unistr/u8-strdup'.
22694         * modules/unistr/u8-strdup-tests: New file.
22695         * tests/unistr/test-u8-strdup.c: New file.
22696         * tests/unistr/test-strdup.h: New file.
22697
22698         Tests for module 'unistr/u32-strncmp'.
22699         * modules/unistr/u32-strncmp-tests: New file.
22700         * tests/unistr/test-u32-strncmp.c: New file.
22701
22702         Tests for module 'unistr/u16-strncmp'.
22703         * modules/unistr/u16-strncmp-tests: New file.
22704         * tests/unistr/test-u16-strncmp.c: New file.
22705
22706         Tests for module 'unistr/u8-strncmp'.
22707         * modules/unistr/u8-strncmp-tests: New file.
22708         * tests/unistr/test-u8-strncmp.c: New file.
22709         * tests/unistr/test-strncmp.h: New file.
22710
22711         Tests for module 'unistr/u32-strcoll'.
22712         * modules/unistr/u32-strcoll-tests: New file.
22713         * tests/unistr/test-u32-strcoll.c: New file.
22714
22715         Tests for module 'unistr/u16-strcoll'.
22716         * modules/unistr/u16-strcoll-tests: New file.
22717         * tests/unistr/test-u16-strcoll.c: New file.
22718
22719         Tests for module 'unistr/u8-strcoll'.
22720         * modules/unistr/u8-strcoll-tests: New file.
22721         * tests/unistr/test-u8-strcoll.c: New file.
22722
22723         Tests for module 'unistr/u32-strcmp'.
22724         * modules/unistr/u32-strcmp-tests: New file.
22725         * tests/unistr/test-u32-strcmp.c: New file.
22726         * tests/unistr/test-u32-strcmp.h: New file.
22727
22728         Tests for module 'unistr/u16-strcmp'.
22729         * modules/unistr/u16-strcmp-tests: New file.
22730         * tests/unistr/test-u16-strcmp.c: New file.
22731         * tests/unistr/test-u16-strcmp.h: New file.
22732
22733         Tests for module 'unistr/u8-strcmp'.
22734         * modules/unistr/u8-strcmp-tests: New file.
22735         * tests/unistr/test-u8-strcmp.c: New file.
22736         * tests/unistr/test-u8-strcmp.h: New file.
22737         * tests/unistr/test-strcmp.h: New file.
22738
22739         Tests for module 'unistr/u32-strncat'.
22740         * modules/unistr/u32-strncat-tests: New file.
22741         * tests/unistr/test-u32-strncat.c: New file.
22742
22743         Tests for module 'unistr/u16-strncat'.
22744         * modules/unistr/u16-strncat-tests: New file.
22745         * tests/unistr/test-u16-strncat.c: New file.
22746
22747         Tests for module 'unistr/u8-strncat'.
22748         * modules/unistr/u8-strncat-tests: New file.
22749         * tests/unistr/test-u8-strncat.c: New file.
22750         * tests/unistr/test-strncat.h: New file.
22751
22752         Tests for module 'unistr/u32-strcat'.
22753         * modules/unistr/u32-strcat-tests: New file.
22754         * tests/unistr/test-u32-strcat.c: New file.
22755
22756         Tests for module 'unistr/u16-strcat'.
22757         * modules/unistr/u16-strcat-tests: New file.
22758         * tests/unistr/test-u16-strcat.c: New file.
22759
22760         Tests for module 'unistr/u8-strcat'.
22761         * modules/unistr/u8-strcat-tests: New file.
22762         * tests/unistr/test-u8-strcat.c: New file.
22763         * tests/unistr/test-strcat.h: New file.
22764
22765         Tests for module 'unistr/u32-stpncpy'.
22766         * modules/unistr/u32-stpncpy-tests: New file.
22767         * tests/unistr/test-u32-stpncpy.c: New file.
22768
22769         Tests for module 'unistr/u16-stpncpy'.
22770         * modules/unistr/u16-stpncpy-tests: New file.
22771         * tests/unistr/test-u16-stpncpy.c: New file.
22772
22773         Tests for module 'unistr/u8-stpncpy'.
22774         * modules/unistr/u8-stpncpy-tests: New file.
22775         * tests/unistr/test-u8-stpncpy.c: New file.
22776         * tests/unistr/test-stpncpy.h: New file.
22777
22778         Tests for module 'unistr/u32-strncpy'.
22779         * modules/unistr/u32-strncpy-tests: New file.
22780         * tests/unistr/test-u32-strncpy.c: New file.
22781
22782         Tests for module 'unistr/u16-strncpy'.
22783         * modules/unistr/u16-strncpy-tests: New file.
22784         * tests/unistr/test-u16-strncpy.c: New file.
22785
22786         Tests for module 'unistr/u8-strncpy'.
22787         * modules/unistr/u8-strncpy-tests: New file.
22788         * tests/unistr/test-u8-strncpy.c: New file.
22789         * tests/unistr/test-strncpy.h: New file.
22790
22791         Tests for module 'unistr/u32-stpcpy'.
22792         * modules/unistr/u32-stpcpy-tests: New file.
22793         * tests/unistr/test-u32-stpcpy.c: New file.
22794
22795         Tests for module 'unistr/u16-stpcpy'.
22796         * modules/unistr/u16-stpcpy-tests: New file.
22797         * tests/unistr/test-u16-stpcpy.c: New file.
22798
22799         Tests for module 'unistr/u8-stpcpy'.
22800         * modules/unistr/u8-stpcpy-tests: New file.
22801         * tests/unistr/test-u8-stpcpy.c: New file.
22802         * tests/unistr/test-stpcpy.h: New file.
22803
22804         Tests for module 'unistr/u32-strcpy'.
22805         * modules/unistr/u32-strcpy-tests: New file.
22806         * tests/unistr/test-u32-strcpy.c: New file.
22807
22808         Tests for module 'unistr/u16-strcpy'.
22809         * modules/unistr/u16-strcpy-tests: New file.
22810         * tests/unistr/test-u16-strcpy.c: New file.
22811
22812         Tests for module 'unistr/u8-strcpy'.
22813         * modules/unistr/u8-strcpy-tests: New file.
22814         * tests/unistr/test-u8-strcpy.c: New file.
22815         * tests/unistr/test-strcpy.h: New file.
22816
22817         Tests for module 'unistr/u32-strnlen'.
22818         * modules/unistr/u32-strnlen-tests: New file.
22819         * tests/unistr/test-u32-strnlen.c: New file.
22820
22821         Tests for module 'unistr/u16-strnlen'.
22822         * modules/unistr/u16-strnlen-tests: New file.
22823         * tests/unistr/test-u16-strnlen.c: New file.
22824
22825         Tests for module 'unistr/u8-strnlen'.
22826         * modules/unistr/u8-strnlen-tests: New file.
22827         * tests/unistr/test-u8-strnlen.c: New file.
22828         * tests/unistr/test-strnlen.h: New file.
22829
22830         Tests for module 'unistr/u32-strlen'.
22831         * modules/unistr/u32-strlen-tests: New file.
22832         * tests/unistr/test-u32-strlen.c: New file.
22833
22834         Tests for module 'unistr/u16-strlen'.
22835         * modules/unistr/u16-strlen-tests: New file.
22836         * tests/unistr/test-u16-strlen.c: New file.
22837
22838         Tests for module 'unistr/u8-strlen'.
22839         * modules/unistr/u8-strlen-tests: New file.
22840         * tests/unistr/test-u8-strlen.c: New file.
22841
22842         Tests for module 'unistr/u32-prev'.
22843         * modules/unistr/u32-prev-tests: New file.
22844         * tests/unistr/test-u32-prev.c: New file.
22845
22846         Tests for module 'unistr/u16-prev'.
22847         * modules/unistr/u16-prev-tests: New file.
22848         * tests/unistr/test-u16-prev.c: New file.
22849
22850         Tests for module 'unistr/u8-prev'.
22851         * modules/unistr/u8-prev-tests: New file.
22852         * tests/unistr/test-u8-prev.c: New file.
22853
22854         Tests for module 'unistr/u32-next'.
22855         * modules/unistr/u32-next-tests: New file.
22856         * tests/unistr/test-u32-next.c: New file.
22857
22858         Tests for module 'unistr/u16-next'.
22859         * modules/unistr/u16-next-tests: New file.
22860         * tests/unistr/test-u16-next.c: New file.
22861
22862         Tests for module 'unistr/u8-next'.
22863         * modules/unistr/u8-next-tests: New file.
22864         * tests/unistr/test-u8-next.c: New file.
22865
22866         Tests for module 'unistr/u32-strmbtouc'.
22867         * modules/unistr/u32-strmbtouc-tests: New file.
22868         * tests/unistr/test-u32-strmbtouc.c: New file.
22869
22870         Tests for module 'unistr/u16-strmbtouc'.
22871         * modules/unistr/u16-strmbtouc-tests: New file.
22872         * tests/unistr/test-u16-strmbtouc.c: New file.
22873
22874         Tests for module 'unistr/u8-strmbtouc'.
22875         * modules/unistr/u8-strmbtouc-tests: New file.
22876         * tests/unistr/test-u8-strmbtouc.c: New file.
22877
22878         Tests for module 'unistr/u32-strmblen'.
22879         * modules/unistr/u32-strmblen-tests: New file.
22880         * tests/unistr/test-u32-strmblen.c: New file.
22881
22882         Tests for module 'unistr/u16-strmblen'.
22883         * modules/unistr/u16-strmblen-tests: New file.
22884         * tests/unistr/test-u16-strmblen.c: New file.
22885
22886         Tests for module 'unistr/u8-strmblen'.
22887         * modules/unistr/u8-strmblen-tests: New file.
22888         * tests/unistr/test-u8-strmblen.c: New file.
22889
22890         Tests for module 'unistr/u32-cpy-alloc'.
22891         * modules/unistr/u32-cpy-alloc-tests: New file.
22892         * tests/unistr/test-u32-cpy-alloc.c: New file.
22893
22894         Tests for module 'unistr/u16-cpy-alloc'.
22895         * modules/unistr/u16-cpy-alloc-tests: New file.
22896         * tests/unistr/test-u16-cpy-alloc.c: New file.
22897
22898         Tests for module 'unistr/u8-cpy-alloc'.
22899         * modules/unistr/u8-cpy-alloc-tests: New file.
22900         * tests/unistr/test-u8-cpy-alloc.c: New file.
22901         * tests/unistr/test-cpy-alloc.h: New file.
22902
22903         Tests for module 'unistr/u32-mbsnlen'.
22904         * modules/unistr/u32-mbsnlen-tests: New file.
22905         * tests/unistr/test-u32-mbsnlen.c: New file.
22906
22907         Tests for module 'unistr/u16-mbsnlen'.
22908         * modules/unistr/u16-mbsnlen-tests: New file.
22909         * tests/unistr/test-u16-mbsnlen.c: New file.
22910
22911         Tests for module 'unistr/u8-mbsnlen'.
22912         * modules/unistr/u8-mbsnlen-tests: New file.
22913         * tests/unistr/test-u8-mbsnlen.c: New file.
22914
22915         Tests for module 'unistr/u32-chr'.
22916         * modules/unistr/u32-chr-tests: New file.
22917         * tests/unistr/test-u32-chr.c: New file.
22918
22919         Tests for module 'unistr/u16-chr'.
22920         * modules/unistr/u16-chr-tests: New file.
22921         * tests/unistr/test-u16-chr.c: New file.
22922
22923         Tests for module 'unistr/u8-chr'.
22924         * modules/unistr/u8-chr-tests: New file.
22925         * tests/unistr/test-u8-chr.c: New file.
22926         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
22927
22928         Tests for module 'unistr/u32-cmp2'.
22929         * modules/unistr/u32-cmp2-tests: New file.
22930         * tests/unistr/test-u32-cmp2.c: New file.
22931
22932         Tests for module 'unistr/u16-cmp2'.
22933         * modules/unistr/u16-cmp2-tests: New file.
22934         * tests/unistr/test-u16-cmp2.c: New file.
22935
22936         Tests for module 'unistr/u8-cmp2'.
22937         * modules/unistr/u8-cmp2-tests: New file.
22938         * tests/unistr/test-u8-cmp2.c: New file.
22939         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
22940
22941         Tests for module 'unistr/u32-cmp'.
22942         * modules/unistr/u32-cmp-tests: New file.
22943         * tests/unistr/test-u32-cmp.c: New file.
22944
22945         Tests for module 'unistr/u16-cmp'.
22946         * modules/unistr/u16-cmp-tests: New file.
22947         * tests/unistr/test-u16-cmp.c: New file.
22948
22949         Tests for module 'unistr/u8-cmp'.
22950         * modules/unistr/u8-cmp-tests: New file.
22951         * tests/unistr/test-u8-cmp.c: New file.
22952         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
22953
22954         Tests for module 'unistr/u32-set'.
22955         * modules/unistr/u32-set-tests: New file.
22956         * tests/unistr/test-u32-set.c: New file.
22957
22958         Tests for module 'unistr/u16-set'.
22959         * modules/unistr/u16-set-tests: New file.
22960         * tests/unistr/test-u16-set.c: New file.
22961
22962         Tests for module 'unistr/u8-set'.
22963         * modules/unistr/u8-set-tests: New file.
22964         * tests/unistr/test-u8-set.c: New file.
22965         * tests/unistr/test-set.h: New file.
22966
22967         Tests for module 'unistr/u32-move'.
22968         * modules/unistr/u32-move-tests: New file.
22969         * tests/unistr/test-u32-move.c: New file.
22970
22971         Tests for module 'unistr/u16-move'.
22972         * modules/unistr/u16-move-tests: New file.
22973         * tests/unistr/test-u16-move.c: New file.
22974
22975         Tests for module 'unistr/u8-move'.
22976         * modules/unistr/u8-move-tests: New file.
22977         * tests/unistr/test-u8-move.c: New file.
22978         * tests/unistr/test-move.h: New file.
22979
22980         Tests for module 'unistr/u32-cpy'.
22981         * modules/unistr/u32-cpy-tests: New file.
22982         * tests/unistr/test-u32-cpy.c: New file.
22983
22984         Tests for module 'unistr/u16-cpy'.
22985         * modules/unistr/u16-cpy-tests: New file.
22986         * tests/unistr/test-u16-cpy.c: New file.
22987
22988         Tests for module 'unistr/u8-cpy'.
22989         * modules/unistr/u8-cpy-tests: New file.
22990         * tests/unistr/test-u8-cpy.c: New file.
22991         * tests/unistr/test-cpy.h: New file.
22992
22993 2010-01-09  Bruno Haible  <bruno@clisp.org>
22994
22995         Tests for module 'unistr/u32-uctomb'.
22996         * modules/unistr/u32-uctomb-tests: New file.
22997         * tests/unistr/test-u32-uctomb.c: New file.
22998
22999         Tests for module 'unistr/u16-uctomb'.
23000         * modules/unistr/u16-uctomb-tests: New file.
23001         * tests/unistr/test-u16-uctomb.c: New file.
23002
23003         Tests for module 'unistr/u8-uctomb'.
23004         * modules/unistr/u8-uctomb-tests: New file.
23005         * tests/unistr/test-u8-uctomb.c: New file.
23006
23007         Tests for module 'unistr/u32-mbtoucr'.
23008         * modules/unistr/u32-mbtoucr-tests: New file.
23009         * tests/unistr/test-u32-mbtoucr.c: New file.
23010
23011         Tests for module 'unistr/u16-mbtoucr'.
23012         * modules/unistr/u16-mbtoucr-tests: New file.
23013         * tests/unistr/test-u16-mbtoucr.c: New file.
23014
23015         Tests for module 'unistr/u8-mbtoucr'.
23016         * modules/unistr/u8-mbtoucr-tests: New file.
23017         * tests/unistr/test-u8-mbtoucr.c: New file.
23018
23019         Tests for module 'unistr/u32-mbtouc'.
23020         * modules/unistr/u32-mbtouc-tests: New file.
23021         * tests/unistr/test-u32-mbtouc.c: New file.
23022
23023         Tests for module 'unistr/u16-mbtouc'.
23024         * modules/unistr/u16-mbtouc-tests: New file.
23025         * tests/unistr/test-u16-mbtouc.c: New file.
23026
23027         Tests for module 'unistr/u8-mbtouc'.
23028         * modules/unistr/u8-mbtouc-tests: New file.
23029         * tests/unistr/test-u8-mbtouc.c: New file.
23030
23031         Tests for module 'unistr/u32-mbtouc-unsafe'.
23032         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
23033         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
23034         * tests/unistr/test-u32-mbtouc.h: New file.
23035
23036         Tests for module 'unistr/u16-mbtouc-unsafe'.
23037         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
23038         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
23039         * tests/unistr/test-u16-mbtouc.h: New file.
23040
23041         Tests for module 'unistr/u8-mbtouc-unsafe'.
23042         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
23043         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
23044         * tests/unistr/test-u8-mbtouc.h: New file.
23045
23046         Tests for module 'unistr/u32-mblen'.
23047         * modules/unistr/u32-mblen-tests: New file.
23048         * tests/unistr/test-u32-mblen.c: New file.
23049
23050         Tests for module 'unistr/u16-mblen'.
23051         * modules/unistr/u16-mblen-tests: New file.
23052         * tests/unistr/test-u16-mblen.c: New file.
23053
23054         Tests for module 'unistr/u8-mblen'.
23055         * modules/unistr/u8-mblen-tests: New file.
23056         * tests/unistr/test-u8-mblen.c: New file.
23057
23058         Tests for module 'unistr/u32-to-u16'.
23059         * modules/unistr/u32-to-u16-tests: New file.
23060         * tests/unistr/test-u32-to-u16.c: New file.
23061
23062         Tests for module 'unistr/u32-to-u8'.
23063         * modules/unistr/u32-to-u8-tests: New file.
23064         * tests/unistr/test-u32-to-u8.c: New file.
23065
23066         Tests for module 'unistr/u16-to-u32'.
23067         * modules/unistr/u16-to-u32-tests: New file.
23068         * tests/unistr/test-u16-to-u32.c: New file.
23069
23070         Tests for module 'unistr/u16-to-u8'.
23071         * modules/unistr/u16-to-u8-tests: New file.
23072         * tests/unistr/test-u16-to-u8.c: New file.
23073
23074         Tests for module 'unistr/u8-to-u32'.
23075         * modules/unistr/u8-to-u32-tests: New file.
23076         * tests/unistr/test-u8-to-u32.c: New file.
23077
23078         Tests for module 'unistr/u8-to-u16'.
23079         * modules/unistr/u8-to-u16-tests: New file.
23080         * tests/unistr/test-u8-to-u16.c: New file.
23081
23082         Tests for module 'unistr/u32-check'.
23083         * modules/unistr/u32-check-tests: New file.
23084         * tests/unistr/test-u32-check.c: New file.
23085
23086         Tests for module 'unistr/u16-check'.
23087         * modules/unistr/u16-check-tests: New file.
23088         * tests/unistr/test-u16-check.c: New file.
23089
23090         Tests for module 'unistr/u8-check'.
23091         * modules/unistr/u8-check-tests: New file.
23092         * tests/unistr/test-u8-check.c: New file.
23093
23094         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
23095         (category_equals): New function.
23096         (main): Add more tests.
23097         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
23098
23099         * tests/unictype/test-bidi_byname.c (main): Add more tests.
23100
23101 2010-01-10  Bruno Haible  <bruno@clisp.org>
23102
23103         unistr/u*-strcoll: Try harder to distinguish different strings.
23104         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
23105         compare s1 and s2 to see if they are different.
23106
23107 2010-01-10  Bruno Haible  <bruno@clisp.org>
23108
23109         unistr/u*-stpncpy: Fix the return value.
23110         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
23111         description of the return value consistent with stpncpy in glibc.
23112         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
23113         written non-NUL unit.
23114
23115 2010-01-10  Bruno Haible  <bruno@clisp.org>
23116
23117         unistr/u*-next: Add missing dependencies.
23118         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
23119         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
23120         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
23121
23122 2010-01-10  Bruno Haible  <bruno@clisp.org>
23123
23124         unistr/u8-mbsnlen: Fix return value for incomplete character.
23125         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
23126         u8_mblen.
23127         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
23128         Remove unistr/u8-mblen.
23129         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
23130         u16_mblen.
23131         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
23132         Remove unistr/u16-mblen.
23133
23134 2010-01-10  Bruno Haible  <bruno@clisp.org>
23135
23136         wchar: Fix compilation error when <wchar.h> is used from coreutils.
23137         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
23138         Reported by Brian Gough <bjg@gnu.org> and
23139         Chris Clayton <chris2553@googlemail.com> via
23140         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
23141
23142 2010-01-09  Bruno Haible  <bruno@clisp.org>
23143
23144         unistr/u16-to-u32: Reject invalid input.
23145         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
23146         u16_mbtouc.
23147         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
23148         Remove unistr/u16-mbtouc.
23149
23150         unistr/u16-to-u8: Reject invalid input.
23151         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
23152         u16_mbtouc.
23153         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
23154         Remove unistr/u16-mbtouc.
23155
23156         unistr/u8-to-u32: Reject invalid input.
23157         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
23158         u8_mbtouc.
23159         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
23160         Remove unistr/u8-mbtouc.
23161
23162         unistr/u8-to-u16: Reject invalid input.
23163         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
23164         u8_mbtouc.
23165         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
23166         Remove unistr/u8-mbtouc.
23167
23168 2010-01-09  Bruno Haible  <bruno@clisp.org>
23169
23170         Tests for module 'getlogin'.
23171         * modules/getlogin-tests: New file.
23172         * tests/test-getlogin.c: New file.
23173
23174         New module 'getlogin'.
23175         * lib/unistd.in.h (getlogin): New declaration.
23176         * lib/getlogin.c: New file.
23177         * m4/getlogin.m4: New file.
23178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
23179         HAVE_GETLOGIN.
23180         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
23181         HAVE_GETLOGIN.
23182         * modules/getlogin: New file.
23183         * doc/posix-functions/getlogin.texi: Mention the new module.
23184         Reported by John W. Eaton <jwe@gnu.org>.
23185
23186 2010-01-09  Bruno Haible  <bruno@clisp.org>
23187
23188         getlogin_r: Support for native Windows.
23189         * lib/getlogin_r.c: Include <windows.h>
23190         (getlogin_r): Implement for native Windows.
23191         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
23192         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
23193         via John W. Eaton <jwe@gnu.org>.
23194
23195 2010-01-09  Bruno Haible  <bruno@clisp.org>
23196
23197         getlogin_r: Small fixes.
23198         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
23199         succeeds.
23200         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
23201         before testing whether getlogin_r is declared. No need to set
23202         HAVE_DECL_GETLOGIN_R to 1.
23203         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
23204
23205 2010-01-09  Bruno Haible  <bruno@clisp.org>
23206
23207         * lib/unistd.in.h (getlogin_r): Add comment.
23208
23209 2010-01-09  Bruno Haible  <bruno@clisp.org>
23210
23211         Tests for module 'getlogin_r'.
23212         * modules/getlogin_r-tests: New file.
23213         * tests/test-getlogin_r.c: New file.
23214
23215 2010-01-09  Jim Meyering  <meyering@redhat.com>
23216
23217         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23218         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23219         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23220
23221 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23222
23223         * lib/dup2.c (rpl_dup2): Improve comment.
23224
23225 2010-01-08  Eric Blake  <ebb9@byu.net>
23226
23227         maint.mk: allow packages to add makefile @@ exceptions
23228         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23229         (sc_makefile_check): Rename...
23230         (sc_makefile_at_at_check): ...to this, and use hook.
23231
23232         dup2: work around mingw bug
23233         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23234         Reported by Simon Josefsson.
23235
23236 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23237
23238         glob: Fix C++ compilation.
23239         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23240         C++.
23241
23242 2010-01-07  Bruno Haible  <bruno@clisp.org>
23243
23244         Fix indentation of wctype.in.h, broken since 2007-01-06.
23245         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23246
23247 2010-01-07  Bruno Haible  <bruno@clisp.org>
23248
23249         mbslen: Avoid collision with system function.
23250         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23251         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23252         * m4/mbslen.m4: New file.
23253         * modules/mbslen (Files): Add it.
23254         (configure.ac): Invoke gl_MBSLEN.
23255         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23256         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23257         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23258         via Ian Beckwith <ianb@erislabs.net>.
23259
23260 2010-01-07  Bruno Haible  <bruno@clisp.org>
23261
23262         dirent: Document the last fix.
23263         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23264
23265 2010-01-07  Bruno Haible  <bruno@clisp.org>
23266
23267         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23268         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23269         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23270         va_list are defined.
23271         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23272         Reported by Eric Blake.
23273
23274 2010-01-07  Bruno Haible  <bruno@clisp.org>
23275
23276         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23277         * modules/xlist (Depends-on): Add 'list',
23278         * modules/xoset (Depends-on): Add 'oset'.
23279         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23280
23281 2010-01-07  Bruno Haible  <bruno@clisp.org>
23282
23283         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23284         * doc/posix-functions/strncasecmp.texi: Likewise.
23285
23286 2010-01-07  Bruno Haible  <bruno@clisp.org>
23287
23288         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23289
23290 2010-01-07  John W. Eaton  <jwe@octave.org>
23291
23292         wctype: allow C++ use
23293         * lib/wctype.in.h: Add extern "C" block for C++.
23294
23295 2010-01-06  Eric Blake  <ebb9@byu.net>
23296
23297         maint.mk: detect incorrect GFDL usage
23298         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23299
23300 2010-01-06  Jim Meyering  <meyering@redhat.com>
23301         and Eric Blake  <ebb9@byu.net>
23302
23303         maint.mk: ignore multi-line copyright in NEWS
23304         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23305
23306 2010-01-06  Eric Blake  <ebb9@byu.net>
23307
23308         select: add missing dependency
23309         * modules/select-tests (Depends-on): Move sockets dependency...
23310         * modules/select (Depends-on): ...here.
23311         Reported by Ian Beckwith.
23312
23313         doc: regenerate INSTALL
23314         * doc/INSTALL: Reflect recent autoconf update.
23315         * doc/INSTALL.ISO: Likewise.
23316         * doc/INSTALL.UTF-8: Likewise.
23317
23318         pread: fix compilation on glibc
23319         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23320         Reported by Ralf Wildenhues.
23321
23322         dirent: fix test failure
23323         * lib/dirent.in.h (includes): Guarantee ino_t.
23324         Reported by Ralf Wildenhues.
23325
23326 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23327
23328         linkat, renameat: avoid bad free
23329         * lib/at-func2.c (at_func2): Fix typo.
23330         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23331
23332 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23333
23334         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23335         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23336         to avoid failure of symlink test later.
23337
23338 2010-01-06  Eric Blake  <ebb9@byu.net>
23339
23340         stdio, unistd: guarantee ssize_t
23341         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23342         2008 are exposed when needed.
23343         * lib/stdio.in.h (includes): Likewise.
23344         Reported by Ralf Wildenhues.
23345
23346 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23347
23348         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23349         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23350         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23351
23352 2010-01-06  Jim Meyering  <meyering@redhat.com>
23353
23354         readtokens: this module *does* require xalloc.h
23355         It uses only functions that were omitted by the old syntax-check rule.
23356         * lib/readtokens.c: Include "xalloc.h" once again.
23357         * modules/readtokens (Depends-on): Add xalloc.
23358         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23359
23360 2010-01-05  Eric Blake  <ebb9@byu.net>
23361
23362         maint: support 'make announcement' from a VPATH build
23363         * top/maint.mk (announcement): Look for correct NEWS file.
23364
23365 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23366
23367         utimens (fdutimens): ignore a negative FD, per contract
23368         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23369         when we have a valid file descriptor.  Otherwise, using a brand
23370         new glibc (with just-patched futimens that now fails with EBADF)
23371         would cause this function to fail with ENOSYS.
23372         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23373         See also http://bugzilla.redhat.com/552320.
23374
23375 2010-01-05  Eric Blake  <ebb9@byu.net>
23376
23377         strcase: document what it provides
23378         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23379         gnulib module.
23380         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23381         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23382
23383 2010-01-05  Jim Meyering  <meyering@redhat.com>
23384
23385         maint: remove useless inclusions of "xalloc.h"
23386         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23387         * lib/readtokens.c: Likewise.
23388         * lib/same.c: Likewise.
23389         * modules/getloadavg (Depends-on): Remove xalloc.
23390         * modules/readtokens: Likewise.
23391         * modules/same: Likewise.
23392
23393         maint.mk: include 4 more function names in alloca.h-checking regexp
23394         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23395         regexp.  Before, we would give a false-positive (saying alloca.h
23396         is included unnecessarily) when the only uses involved omitted symbols.
23397
23398         xalloc.h: use consistent formatting
23399         * lib/xalloc.h: Move declarations to start in the first column.
23400
23401 2010-01-05  Eric Blake  <ebb9@byu.net>
23402
23403         mkdir: avoid xalloc
23404         * lib/mkdir.c (includes): Drop unused header.
23405         Reported by John W. Eaton.
23406
23407 2010-01-04  Jim Meyering  <meyering@redhat.com>
23408
23409         nl_langinfo: avoid configure-time syntax error
23410         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23411         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23412         the empty string.  Don't let that provoke a shell syntax error.
23413
23414         regcomp, regexec, fnmatch: avoid array bounds read error
23415         * lib/regcomp.c (build_equiv_class): From glibc:
23416         Use only the low 24 bits of a findidx return value as an index
23417         into the weights array.  Patch by Ulrich Drepper:
23418         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23419         * lib/regexec.c (check_node_accept_bytes): Likewise.
23420         * lib/fnmatch_loop.c (FCT): Likewise.
23421
23422         regcomp: skip collseq lookup when there are no rules
23423         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23424         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23425
23426         regcomp: recognize ill-formed { } expressions
23427         * lib/regcomp.c (parse_dup_op): From glibc:
23428         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23429
23430         regcomp: fix typo in comment
23431         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23432         s/satisfy/satisfies/.
23433
23434         regcomp: sync from glibc: remove dead store
23435         * lib/regcomp.c (duplicate_node_closure): Remove useless
23436         search_duplicated_node call and dead store.
23437
23438         regcomp: sync from glibc; always use nl_langinfo
23439         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23440         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23441         * modules/regex (Depends-on): Add nl_langinfo.
23442
23443 2010-01-04  Eric Blake  <ebb9@byu.net>
23444
23445         fdopendir: fix configure test
23446         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23447
23448 2010-01-01  Bruno Haible  <bruno@clisp.org>
23449
23450         wchar: Remove unused configure check.
23451         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23452
23453 2010-01-01  Eric Blake  <ebb9@byu.net>
23454
23455         headers: make check of system header explicit
23456         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23457         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23458         ourselves.
23459         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23460         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23461         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23462         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23463         internals.
23464         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23465         missing.
23466         Suggested by Bruno Haible.
23467
23468 2010-01-01  Jim Meyering  <meyering@redhat.com>
23469
23470         ChangeLog: tweak to eliminate unnecessary copyright line
23471         * ChangeLog: Remove a copyright line that was mistakenly updated
23472         by today's update-copyright run.  Reported by Eric Blake.
23473
23474         test-update-copyright: don't let envvar setting cause test failure
23475         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23476
23477 2010-01-01  Bruno Haible  <bruno@clisp.org>
23478
23479         localename: Avoid gcc warning.
23480         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23481         function if it is not used.
23482
23483 2010-01-01  Jim Meyering  <meyering@redhat.com>
23484
23485         update nearly all FSF copyright year lists to include 2010
23486         Use the same procedure as for 2009, outlined in
23487         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23488
23489         version-etc: set COPYRIGHT_YEAR to 2010
23490         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23491
23492 2009-12-31  Eric Blake  <ebb9@byu.net>
23493
23494         doc: correct availability of cygwin 1.5.x getopt
23495         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23496         variables.
23497         * doc/posix-functions/opterr.texi (opterr): Likewise.
23498         * doc/posix-functions/optind.texi (optind): Likewise.
23499         * doc/posix-functions/optopt.texi (optopt): Likewise.
23500         * doc/posix-functions/tzname.texi (tzname): Likewise.
23501
23502         openat: update maintainer
23503         * modules/openat (Maintainer): Add myself.
23504
23505         utimens: avoid shadowing warning
23506         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23507         buffers into one, to avoid shadowing, as well as avoiding a
23508         redundant stat.
23509         Reported by Jim Meyering.
23510
23511         test-dup2: avoid compiler warning
23512         * tests/test-dup2.c (is_inheritable): Only define if used.
23513
23514 2010-01-01  Bruno Haible  <bruno@clisp.org>
23515
23516         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23517         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23518         defined, use wctomb instead of wcrtomb.
23519
23520 2010-01-01  Bruno Haible  <bruno@clisp.org>
23521
23522         iconv: Reject native Solaris iconv.
23523         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23524         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23525
23526 2009-12-31  Bruno Haible  <bruno@clisp.org>
23527
23528         * tests/test-signal.c (main): Remove test of 'SIG'.
23529
23530 2009-12-31  Bruno Haible  <bruno@clisp.org>
23531
23532         spawn: Fix incomplete fix.
23533         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23534         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23535         warnings for GNULIB_POSIXCHECK again.
23536         Reported by Eric Blake.
23537
23538 2009-12-31  Bruno Haible  <bruno@clisp.org>
23539
23540         Avoid namespace pollution on glibc systems.
23541         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23542         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23543         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23544         glibc systems.
23545
23546 2009-12-31  Bruno Haible  <bruno@clisp.org>
23547
23548         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23549         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23550         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23551         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23552         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23553         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23554         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23555
23556 2009-12-31  Bruno Haible  <bruno@clisp.org>
23557
23558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23559         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23560         afterwards.
23561
23562 2009-12-31  Bruno Haible  <bruno@clisp.org>
23563
23564         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23565         SYS_UTSNAME_H.
23566
23567 2009-12-31  Bruno Haible  <bruno@clisp.org>
23568
23569         spawn: Fix misapplied patch.
23570         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23571         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23572         warnings for GNULIB_POSIXCHECK.
23573
23574 2009-12-31  Bruno Haible  <bruno@clisp.org>
23575
23576         times: Update after sys_times changed.
23577         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23578         * modules/times (Files): Add it.
23579         (configure.ac): Invoke gl_FUNC_TIMES.
23580
23581 2009-12-31  Bruno Haible  <bruno@clisp.org>
23582
23583         Use AC_C_INLINE where necessary.
23584         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23585         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23586         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23587         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23588         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23589         * m4/mbiter.m4 (gl_MBITER): Likewise.
23590         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23591         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23592         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23593         * modules/u64 (configure.ac): Likewise.
23594
23595 2009-12-31  Bruno Haible  <bruno@clisp.org>
23596
23597         Use AC_C_INLINE instead of module 'inline' where possible.
23598         * modules/inline (Description): Clarify purpose.
23599         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23600         * modules/count-one-bits (Depends-on): Remove inline.
23601         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23602         * modules/openat (Depends-on): Remove inline.
23603         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23604         instead of depending on module 'inline'.
23605         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23606         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23607         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23608         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23609         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23610         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23611         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23612         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23613         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23614         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23615         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23616         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23617         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23618         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23619         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23620         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23621         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23622         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23623         Likewise.
23624         * modules/unictype/property-ascii-hex-digit (Depends-on,
23625         configure.ac): Likewise.
23626         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23627         configure.ac): Likewise.
23628         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23629         configure.ac): Likewise.
23630         * modules/unictype/property-bidi-block-separator (Depends-on,
23631         configure.ac): Likewise.
23632         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23633         configure.ac): Likewise.
23634         * modules/unictype/property-bidi-common-separator (Depends-on,
23635         configure.ac): Likewise.
23636         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23637         Likewise.
23638         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23639         configure.ac): Likewise.
23640         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23641         configure.ac): Likewise.
23642         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23643         configure.ac): Likewise.
23644         * modules/unictype/property-bidi-european-digit (Depends-on,
23645         configure.ac): Likewise.
23646         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23647         configure.ac): Likewise.
23648         * modules/unictype/property-bidi-left-to-right (Depends-on,
23649         configure.ac): Likewise.
23650         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23651         configure.ac): Likewise.
23652         * modules/unictype/property-bidi-other-neutral (Depends-on,
23653         configure.ac): Likewise.
23654         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23655         Likewise.
23656         * modules/unictype/property-bidi-segment-separator (Depends-on,
23657         configure.ac): Likewise.
23658         * modules/unictype/property-bidi-whitespace (Depends-on,
23659         configure.ac): Likewise.
23660         * modules/unictype/property-combining (Depends-on, configure.ac):
23661         Likewise.
23662         * modules/unictype/property-composite (Depends-on, configure.ac):
23663         Likewise.
23664         * modules/unictype/property-currency-symbol (Depends-on,
23665         configure.ac): Likewise.
23666         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23667         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23668         Likewise.
23669         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23670         configure.ac): Likewise.
23671         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23672         Likewise.
23673         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23674         Likewise.
23675         * modules/unictype/property-extender (Depends-on, configure.ac):
23676         Likewise.
23677         * modules/unictype/property-format-control (Depends-on, configure.ac):
23678         Likewise.
23679         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23680         Likewise.
23681         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23682         Likewise.
23683         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23684         Likewise.
23685         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23686         Likewise.
23687         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23688         Likewise.
23689         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23690         Likewise.
23691         * modules/unictype/property-id-start (Depends-on, configure.ac):
23692         Likewise.
23693         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23694         Likewise.
23695         * modules/unictype/property-ids-binary-operator (Depends-on,
23696         configure.ac): Likewise.
23697         * modules/unictype/property-ids-trinary-operator (Depends-on,
23698         configure.ac): Likewise.
23699         * modules/unictype/property-ignorable-control (Depends-on,
23700         configure.ac): Likewise.
23701         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23702         Likewise.
23703         * modules/unictype/property-join-control (Depends-on, configure.ac):
23704         Likewise.
23705         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23706         Likewise.
23707         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23708         Likewise.
23709         * modules/unictype/property-logical-order-exception (Depends-on,
23710         configure.ac): Likewise.
23711         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23712         Likewise.
23713         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23714         * modules/unictype/property-non-break (Depends-on, configure.ac):
23715         Likewise.
23716         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23717         Likewise.
23718         * modules/unictype/property-numeric (Depends-on, configure.ac):
23719         Likewise.
23720         * modules/unictype/property-other-alphabetic (Depends-on,
23721         configure.ac): Likewise.
23722         * modules/unictype/property-other-default-ignorable-code-point
23723         (Depends-on, configure.ac): Likewise.
23724         * modules/unictype/property-other-grapheme-extend (Depends-on,
23725         configure.ac): Likewise.
23726         * modules/unictype/property-other-id-continue (Depends-on,
23727         configure.ac): Likewise.
23728         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23729         Likewise.
23730         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23731         Likewise.
23732         * modules/unictype/property-other-math (Depends-on, configure.ac):
23733         Likewise.
23734         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23735         Likewise.
23736         * modules/unictype/property-paired-punctuation (Depends-on,
23737         configure.ac): Likewise.
23738         * modules/unictype/property-paragraph-separator (Depends-on,
23739         configure.ac): Likewise.
23740         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23741         Likewise.
23742         * modules/unictype/property-pattern-white-space (Depends-on,
23743         configure.ac): Likewise.
23744         * modules/unictype/property-private-use (Depends-on, configure.ac):
23745         Likewise.
23746         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23747         Likewise.
23748         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23749         Likewise.
23750         * modules/unictype/property-radical (Depends-on, configure.ac):
23751         Likewise.
23752         * modules/unictype/property-sentence-terminal (Depends-on,
23753         configure.ac): Likewise.
23754         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23755         Likewise.
23756         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23757         * modules/unictype/property-terminal-punctuation (Depends-on,
23758         configure.ac): Likewise.
23759         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23760         Likewise.
23761         * modules/unictype/property-unassigned-code-value (Depends-on,
23762         configure.ac): Likewise.
23763         * modules/unictype/property-unified-ideograph (Depends-on,
23764         configure.ac): Likewise.
23765         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23766         Likewise.
23767         * modules/unictype/property-variation-selector (Depends-on,
23768         configure.ac): Likewise.
23769         * modules/unictype/property-white-space (Depends-on, configure.ac):
23770         Likewise.
23771         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23772         Likewise.
23773         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23774         Likewise.
23775         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23776         Likewise.
23777         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23778         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23779         Likewise.
23780
23781 2009-12-31  Bruno Haible  <bruno@clisp.org>
23782
23783         Remove unnecessary AC_C_INLINE invocation.
23784         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
23785         since 2009-08-21.
23786
23787 2009-12-31  Jim Meyering  <meyering@redhat.com>
23788
23789         maint.mk: don't require explicit gpg_key_ID in cfg.mk
23790         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
23791         With this change, we can all remove the gpg_key_ID = ... definition
23792         from our respective cfg.mk files.
23793
23794         maint.mk: create announcement template in ~/, not in /tmp
23795         * top/maint.mk (emit_upload_commands): Adjust.
23796         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
23797         Remove temporary file, .ci-msg.
23798
23799 2009-12-31  Eric Blake  <ebb9@byu.net>
23800
23801         link-warning: always build headers with link warnings
23802         * modules/arpa_inet (Makefile.am): Always build replacement
23803         header.
23804         * modules/ctype (Makefile.am): Likewise.
23805         * modules/dirent (Makefile.am): Likewise.
23806         * modules/inttypes (Makefile.am): Likewise.
23807         * modules/langinfo (Makefile.am): Likewise.
23808         * modules/locale (Makefile.am): Likewise.
23809         * modules/spawn (Makefile.am): Likewise.
23810         * modules/sys_file (Makefile.am): Likewise.
23811         * modules/sys_ioctl (Makefile.am): Likewise.
23812         * modules/sys_select (Makefile.am): Likewise.
23813         * modules/sys_socket (Makefile.am): Likewise.
23814         * modules/sys_times (Makefile.am): Likewise.
23815         * modules/sys_utsname (Makefile.am): Likewise.
23816         * modules/sys_wait (Makefile.am): Likewise.
23817         * modules/wchar (Makefile.am): Likewise.
23818         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
23819         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
23820         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
23821         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
23822         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
23823         Likewise.
23824         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23825         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23826         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
23827         Likewise.
23828         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
23829         Likewise.
23830         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23831         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
23832         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
23833         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23834         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23835         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23836         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23837         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
23838         (gl_WCHAR_H_DEFAULTS): Likewise.
23839
23840 2009-12-31  Eric Blake  <ebb9@byu.net>
23841
23842         signal, spawn: use link warnings
23843         * lib/signal.in.h (sigset_t): Make unconditional.
23844         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
23845         (sigpending, sigprocmask, sigaction): Add link warnings.
23846         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
23847         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
23848         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
23849         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
23850         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
23851         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
23852         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
23853         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
23854         (posix_spawn_file_actions_destroy)
23855         (posix_spawn_file_actions_addopen)
23856         (posix_spawn_file_actions_addclose)
23857         (posix_spawn_file_actions_adddup2): Likewise.
23858         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
23859         * tests/test-signal.c (main): Enhance test.
23860
23861         spawn: improve wrapper support
23862         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
23863         (gl_SPAWN_H_DEFAULTS): New defaults.
23864         * modules/spawn (Makefile.am): Substitute them.
23865         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
23866         Only declare if missing or broken.
23867
23868         sys_times, sys_utsname: use include_next
23869         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
23870         header.
23871         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
23872         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23873         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23874         * modules/sys_times (Depends-on): Add include_next.
23875         (Makefile.am): Substitute additional values.
23876         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23877         * lib/sys_times.in.h (includes): Include native header, if
23878         available.
23879         * lib/sys_utsname.in.h (includes): Likewise.
23880         * tests/test-sys_times.c (main): Enhance test.
23881
23882         fdutimensat: revert prior patch
23883         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
23884         utimens.h.
23885         Reported by Bruno Haible.
23886
23887 2009-12-30  Eric Blake  <ebb9@byu.net>
23888
23889         sys_wait: drop link-warning dependency
23890         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
23891         link-warning efforts.
23892         * lib/sys_wait.in.h: Likewise.
23893
23894         fdutimensat: remove bogus dependency
23895         * modules/fdutimensat (Depends-on): Drop inline.
23896
23897         unistd: fix typo
23898         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
23899
23900 2009-12-30  Bruno Haible  <bruno@clisp.org>
23901
23902         Fix compilation error with Solaris cc.
23903         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
23904         * lib/unicase/u16-is-invariant.c: Likewise.
23905         * lib/unicase/u32-is-invariant.c: Likewise.
23906         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23907
23908 2009-12-30  Bruno Haible  <bruno@clisp.org>
23909
23910         Fix test crash.
23911         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
23912         locales.
23913         Reported by Simon Josefsson <simon@josefsson.org>.
23914
23915 2009-12-30  Bruno Haible  <bruno@clisp.org>
23916
23917         Fix compilation error on most platforms.
23918         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
23919         Reported by Simon Josefsson <simon@josefsson.org>
23920         and Nelson H. F. Beebe <beebe@math.utah.edu>.
23921
23922 2009-12-30  Eric Blake  <ebb9@byu.net>
23923
23924         futimens, utimensat: work around ntfs-3g bug
23925         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
23926         a ctime bug is present, and expand workaround to cover ntfs-3g.
23927         * lib/utimens.c (fdutimens, lutimens): Likewise.
23928         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
23929         (validate_timespec): Adjust return value.
23930         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
23931         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23932         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
23933
23934 2009-12-29  Eric Blake  <ebb9@byu.net>
23935
23936         link-warning: make usage consistent
23937         * modules/ctype (Depends-on): Add link-warning.
23938         (Makefile.am): Update rules accordingly.
23939         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23940         * modules/locale (Depends-on, Makefile.am): Likewise.
23941         * modules/sys_file (Makefile.am): Likewise.
23942         * modules/getopt-posix (Makefile.am): Delete unused link warning
23943         efforts.
23944         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
23945         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
23946         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
23947         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
23948
23949         stdio: remove unused variables
23950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
23951         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
23952         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23953
23954         tests: test more substitute headers
23955         * modules/ctype-tests: New file.
23956         * modules/dirent-tests: Likewise.
23957         * modules/spawn-tests: Likewise.
23958         * modules/sys_file-tests: Likewise.
23959         * modules/sys_ioctl-tests: Likewise.
23960         * modules/sys_wait-tests: Likewise.
23961         * tests/test-ctype.c: Likewise.
23962         * tests/test-dirent.c: Likewise.
23963         * tests/test-spawn.c: Likewise.
23964         * tests/test-sys_file.c: Likewise.
23965         * tests/test-sys_ioctl.c: Likewise.
23966         * tests/test-sys_wait.c: Likewise.
23967         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
23968         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
23969         whether or not flock is in use.
23970
23971         tests: remove License section from module
23972         * modules/arpa_inet-tests: Remove unneeded section.
23973         * modules/byteswap-tests: Likewise.
23974         * modules/ceilf-tests: Likewise.
23975         * modules/ceill-tests: Likewise.
23976         * modules/crypto/des-tests: Likewise.
23977         * modules/crypto/gc-arcfour-tests: Likewise.
23978         * modules/crypto/gc-arctwo-tests: Likewise.
23979         * modules/crypto/gc-des-tests: Likewise.
23980         * modules/crypto/gc-hmac-md5-tests: Likewise.
23981         * modules/crypto/gc-hmac-sha1-tests: Likewise.
23982         * modules/crypto/gc-md2-tests: Likewise.
23983         * modules/crypto/gc-md4-tests: Likewise.
23984         * modules/crypto/gc-md5-tests: Likewise.
23985         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
23986         * modules/crypto/gc-rijndael-tests: Likewise.
23987         * modules/crypto/gc-sha1-tests: Likewise.
23988         * modules/crypto/gc-tests: Likewise.
23989         * modules/crypto/md2-tests: Likewise.
23990         * modules/crypto/md4-tests: Likewise.
23991         * modules/fcntl-h-tests: Likewise.
23992         * modules/floorf-tests: Likewise.
23993         * modules/floorl-tests: Likewise.
23994         * modules/frexp-nolibm-tests: Likewise.
23995         * modules/frexp-tests: Likewise.
23996         * modules/frexpl-nolibm-tests: Likewise.
23997         * modules/frexpl-tests: Likewise.
23998         * modules/getaddrinfo-tests: Likewise.
23999         * modules/inttypes-tests: Likewise.
24000         * modules/isfinite-tests: Likewise.
24001         * modules/isinf-tests: Likewise.
24002         * modules/ldexpl-tests: Likewise.
24003         * modules/locale-tests: Likewise.
24004         * modules/math-tests: Likewise.
24005         * modules/netdb-tests: Likewise.
24006         * modules/netinet_in-tests: Likewise.
24007         * modules/printf-frexp-tests: Likewise.
24008         * modules/printf-frexpl-tests: Likewise.
24009         * modules/priv-set-tests: Likewise.
24010         * modules/random_r-tests: Likewise.
24011         * modules/round-tests: Likewise.
24012         * modules/roundf-tests: Likewise.
24013         * modules/roundl-tests: Likewise.
24014         * modules/search-tests: Likewise.
24015         * modules/select-tests: Likewise.
24016         * modules/signal-tests: Likewise.
24017         * modules/stdbool-tests: Likewise.
24018         * modules/stddef-tests: Likewise.
24019         * modules/stdint-tests: Likewise.
24020         * modules/stdio-tests: Likewise.
24021         * modules/stdlib-tests: Likewise.
24022         * modules/string-tests: Likewise.
24023         * modules/strings-tests: Likewise.
24024         * modules/sys_select-tests: Likewise.
24025         * modules/sys_socket-tests: Likewise.
24026         * modules/sys_stat-tests: Likewise.
24027         * modules/sys_time-tests: Likewise.
24028         * modules/sys_utsname-tests: Likewise.
24029         * modules/sysexits-tests: Likewise.
24030         * modules/time-tests: Likewise.
24031         * modules/trunc-tests: Likewise.
24032         * modules/truncf-tests: Likewise.
24033         * modules/truncl-tests: Likewise.
24034         * modules/tsearch-tests: Likewise.
24035         * modules/unistd-tests: Likewise.
24036         * modules/wchar-tests: Likewise.
24037         * modules/wctype-tests: Likewise.
24038
24039         tests: fix license on several tests
24040         * tests/test-des.c: Update to GPLv3+.
24041         * tests/test-flock.c: Likewise.
24042         * tests/test-fsync.c: Likewise.
24043         * tests/test-futimens.h: Likewise.
24044         * tests/test-gc-arcfour.c: Likewise.
24045         * tests/test-gc-arctwo.c: Likewise.
24046         * tests/test-gc-des.c: Likewise.
24047         * tests/test-gc-hmac-md5.c: Likewise.
24048         * tests/test-gc-hmac-sha1.c: Likewise.
24049         * tests/test-gc-md2.c: Likewise.
24050         * tests/test-gc-md4.c: Likewise.
24051         * tests/test-gc-md5.c: Likewise.
24052         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24053         * tests/test-gc-rijndael.c: Likewise.
24054         * tests/test-gc-sha1.c: Likewise.
24055         * tests/test-gc.c: Likewise.
24056         * tests/test-getcwd.c: Likewise.
24057         * tests/test-link.c: Likewise.
24058         * tests/test-link.h: Likewise.
24059         * tests/test-lutimens.h: Likewise.
24060         * tests/test-md2.c: Likewise.
24061         * tests/test-md4.c: Likewise.
24062         * tests/test-mkdir.h: Likewise.
24063         * tests/test-rename.c: Likewise.
24064         * tests/test-rename.h: Likewise.
24065         * tests/test-safe-alloc.c: Likewise.
24066         * tests/test-utimens-common.h: Likewise.
24067         * tests/test-utimens.h: Likewise.
24068
24069         maint: sync license texts
24070         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
24071         * doc/gpl-3.0.texi: Revert copyright year update.
24072         * doc/lgpl-3.0.texi: Likewise.
24073
24074 2009-12-29  Jim Meyering  <meyering@redhat.com>
24075
24076         update nearly all FSF copyright year lists to include 2009
24077         The files named by the following are exempted:
24078             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
24079               test -f "$dst" && { echo "$dst"; continue; }
24080               test -d "$dst" || continue
24081               echo "$dst"/$(basename "$src")
24082             done > exempt
24083             git ls-files tests/unictype >> exempt
24084         In the remaining files, convert to all-interval notation if
24085         - there is already at least one year interval like 2000-2003
24086         - the file is maintained by me
24087         - the file is in lib/uni*/, where that style already prevails
24088         Otherwise, use update-copyright's default.
24089
24090 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24091         and Eric Blake  <ebb9@byu.net>
24092
24093         tests: don't require debug system() to pass
24094         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
24095         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24096         * tests/test-unlink.h (test_unlink_func): Likewise.
24097         * tests/test-fstatat.c (main): ...into callers.
24098         * tests/test-lstat.c (main): Likewise.
24099         * tests/test-rmdir.c (main): Likewise.
24100         * tests/test-unlink.c (main): Likewise.
24101         * tests/test-unlinkat.c (main): Likewise.
24102         * tests/test-areadlink-with-size.c (main): Don't require a
24103         debug-only system call to pass, aiding cross-testing to mingw.
24104         * tests/test-areadlink.c (main): Likewise.
24105         * tests/test-areadlinkat-with-size.c (main): Likewise.
24106         * tests/test-areadlinkat.c (main): Likewise.
24107         * tests/test-canonicalize-lgpl.c (main): Likewise.
24108         * tests/test-canonicalize.c (main): Likewise.
24109         * tests/test-chown.c (main): Likewise.
24110         * tests/test-fchownat.c (main): Likewise.
24111         * tests/test-lchown.c (main): Likewise.
24112         * tests/test-fdutimensat.c (main): Likewise.
24113         * tests/test-futimens.c (main): Likewise.
24114         * tests/test-link.c (main): Likewise.
24115         * tests/test-linkat.c (main): Likewise.
24116         * tests/test-mkdir.c (main): Likewise.
24117         * tests/test-mkdirat.c (main): Likewise.
24118         * tests/test-mkfifo.c (main): Likewise.
24119         * tests/test-mkfifoat.c (main): Likewise.
24120         * tests/test-mknod.c (main): Likewise.
24121         * tests/test-readlink.c (main): Likewise.
24122         * tests/test-remove.c (main): Likewise.
24123         * tests/test-rename.c (main): Likewise.
24124         * tests/test-renameat.c (main): Likewise.
24125         * tests/test-symlink.c (main): Likewise.
24126         * tests/test-symlinkat.c (main): Likewise.
24127         * tests/test-utimens.c (main): Likewise.
24128         * tests/test-utimensat.c (main): Likewise.
24129
24130 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24131
24132         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
24133         on $(UNUSED_PARAMETER_H) to avoid build failure.
24134
24135 2009-12-28  Jim Meyering  <meyering@redhat.com>
24136
24137         update-copyright: you may specify a max. line length other than 72
24138         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24139
24140         maint: use consistent FSF copyright line syntax
24141         * lib/posixtm.c: Add missing comma in FSF copyright line.
24142         * lib/posixtm.h: Likewise.
24143         * lib/getugroups.c: Add missing ", Inc.".
24144
24145         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
24146         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
24147         FSF copyright line.  Remove trailing blanks.
24148
24149 2009-12-28  Eric Blake  <ebb9@byu.net>
24150
24151         test-dup2: reduce dependencies
24152         * modules/cloexec (Configure.ac): Set witness.
24153         * modules/dup2-tests (Depends-on): Drop cloexec.
24154         * tests/test-dup2.c (main): Skip portion of test if cloexec module
24155         not present.
24156         Suggested by Bruno Haible.
24157
24158 2009-12-26  Bruno Haible  <bruno@clisp.org>
24159
24160         Remove an unneeded dependency.
24161         * modules/fseterr (Depends-on): Remove dup2.
24162
24163 2009-12-26  Eric Blake  <ebb9@byu.net>
24164
24165         tests: use macros.h in more places
24166         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
24167         (ASSERT_STREAM): Provide default of stderr.
24168         * tests/test-dirent-safer.c: Include macros.h, using alternate
24169         stream for assertions.
24170         * tests/test-dup-safer.c: Likewise.
24171         * tests/test-freopen-safer.c: Likewise.
24172         * tests/test-getopt.c: Likewise.
24173         * tests/test-openat-safer.c: Likewise.
24174         * tests/test-pipe.c: Likewise.
24175         * tests/test-popen-safer.c: Likewise.
24176         * modules/dirent-safer-tests (Files): Include macros.h.
24177         * modules/unistd-safer-tests (Files): Likewise.
24178         * modules/freopen-safer-tests (Files): Likewise.
24179         * modules/getopt-posix-tests (Files): Likewise.
24180         * modules/openat-safer-tests (Files): Likewise.
24181         * modules/pipe-tests (Files): Likewise.
24182
24183 2009-12-26  Bruno Haible  <bruno@clisp.org>
24184
24185         javacomp: Portability fix.
24186         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
24187         that it also works on Solaris.
24188
24189 2009-12-26  Bruno Haible  <bruno@clisp.org>
24190
24191         localename: Fix storage allocation of gl_locale_name_thread's result.
24192         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
24193         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
24194         all platforms that have 'uselocale'.
24195         (gl_locale_name_thread_unsafe): New function, extracted from
24196         gl_locale_name_thread.
24197         (gl_locale_name_thread): Call struniq on all platforms that have
24198         'uselocale'.
24199         * tests/test-localename.c (test_locale_name_thread): Check that the
24200         resulting strings are permanently allocated.
24201         * modules/localename-tests (Depends-on): Add strdup.
24202
24203 2009-12-26  Bruno Haible  <bruno@clisp.org>
24204
24205         * tests/test-localename.c (categories): Fill in the strings.
24206
24207 2009-12-26  Jim Meyering  <meyering@redhat.com>
24208
24209         isdir: complete the removal of m4/isdir.m4
24210         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24211
24212         isdir: clean up, since at least grep still uses it
24213         * lib/isdir.c: Include "isdir.h".
24214         (S_ISDIR): Remove now-unneeded definition.
24215         * modules/isdir (Files): Add lib/isdir.h.
24216         * lib/isdir.h: New file, with declaration.
24217         * m4/isdir.m4: Remove file -- unneeded.
24218
24219 2009-12-25  Bruno Haible  <bruno@clisp.org>
24220
24221         selinux-h: Make generated .h files standalone.
24222         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24223         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24224         * lib/se-selinux.in.h: Likewise.
24225         * modules/selinux-h (Depends-on): Add unused-parameter.
24226         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24227         selinux/selinux.h and selinux/context.h.
24228         Suggested by Eric Blake.
24229
24230 2009-12-25  Bruno Haible  <bruno@clisp.org>
24231
24232         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24233         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24234         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24235         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24236         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24237
24238 2009-12-24  Bruno Haible  <bruno@clisp.org>
24239
24240         openat: Fix warning.
24241         * lib/openat-proc.c: Include <unistd.h>.
24242
24243 2009-12-24  Bruno Haible  <bruno@clisp.org>
24244
24245         New module 'unused-parameter'.
24246         * build-aux/unused-parameter.h: New file, extracted from earlier
24247         gnulib-common.m4.
24248         * modules/unused-parameter: New file.
24249         * lib/unistr.h: Include unused-parameter.h.
24250         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24251         _GL_UNUSED.
24252         * modules/unistr/base (Depends-on): Add unused-parameter.
24253
24254 2009-12-24  Bruno Haible  <bruno@clisp.org>
24255
24256         Add missing dependencies to 'extensions' module.
24257         * m4/extensions.m4: Add comment.
24258         * modules/accept4 (Depends-on): Add extensions.
24259         * modules/dup3 (Depends-on): Likewise.
24260         * modules/fcntl (Depends-on): Likewise.
24261         * modules/futimens (Depends-on): Likewise.
24262         * modules/mknod (Depends-on): Likewise.
24263         * modules/pipe2 (Depends-on): Likewise.
24264         * modules/stat-time (Depends-on): Likewise.
24265         * modules/strcasestr-simple (Depends-on): Likewise.
24266         * modules/strsignal (Depends-on): Likewise.
24267         * modules/utimensat (Depends-on): Likewise.
24268         * modules/localcharset (Depends-on): Likewise. Needed because of
24269         gl_FCNTL_O_FLAGS.
24270         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24271         AC_TYPE_MBSTATE_T.
24272         * modules/wcsnrtombs (Depends-on): Likewise.
24273         * modules/wcsrtombs (Depends-on): Likewise.
24274
24275 2009-12-24  Bruno Haible  <bruno@clisp.org>
24276
24277         binary-io: Avoid gcc warning due to SET_BINARY.
24278         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24279         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24280
24281 2009-12-24  Bruno Haible  <bruno@clisp.org>
24282
24283         Avoid future namespace pollution on glibc systems.
24284         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24285         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24286         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24287         glibc systems.
24288
24289 2009-12-24  Bruno Haible  <bruno@clisp.org>
24290
24291         Refactor common macros used in tests.
24292         * tests/macros.h: New file.
24293         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24294         and/or <stdlib.h>, if appropriate.
24295         (ASSERT, SIZEOF): Remove macros.
24296         * tests/test-areadlink-with-size.c: Likewise.
24297         * tests/test-areadlinkat.c: Likewise.
24298         * tests/test-areadlinkat-with-size.c: Likewise.
24299         * tests/test-argmatch.c: Likewise.
24300         * tests/test-argv-iter.c: Likewise.
24301         * tests/test-array-mergesort.c: Likewise.
24302         * tests/test-array_list.c: Likewise.
24303         * tests/test-array_oset.c: Likewise.
24304         * tests/test-avltree_list.c: Likewise.
24305         * tests/test-avltree_oset.c: Likewise.
24306         * tests/test-avltreehash_list.c: Likewise.
24307         * tests/test-base64.c: Likewise.
24308         * tests/test-binary-io.c: Likewise.
24309         * tests/test-bitrotate.c: Likewise.
24310         * tests/test-btowc.c: Likewise.
24311         * tests/test-byteswap.c: Likewise.
24312         * tests/test-c-ctype.c: Likewise.
24313         * tests/test-c-stack.c: Likewise.
24314         * tests/test-c-strcasecmp.c: Likewise.
24315         * tests/test-c-strcasestr.c: Likewise.
24316         * tests/test-c-strncasecmp.c: Likewise.
24317         * tests/test-c-strstr.c: Likewise.
24318         * tests/test-canonicalize-lgpl.c: Likewise.
24319         * tests/test-canonicalize.c: Likewise.
24320         * tests/test-carray_list.c: Likewise.
24321         * tests/test-ceilf1.c: Likewise.
24322         * tests/test-ceilf2.c: Likewise.
24323         * tests/test-ceill.c: Likewise.
24324         * tests/test-chown.c: Likewise.
24325         * tests/test-cloexec.c: Likewise.
24326         * tests/test-copy-acl.c: Likewise.
24327         * tests/test-copy-file.c: Likewise.
24328         * tests/test-count-one-bits.c: Likewise.
24329         * tests/test-dprintf-posix.c: Likewise.
24330         * tests/test-dup2.c: Likewise.
24331         * tests/test-dup3.c: Likewise.
24332         * tests/test-duplocale.c: Likewise.
24333         * tests/test-fbufmode.c: Likewise.
24334         * tests/test-fchdir.c: Likewise.
24335         * tests/test-fchownat.c: Likewise.
24336         * tests/test-fcntl-safer.c: Likewise.
24337         * tests/test-fcntl.c: Likewise.
24338         * tests/test-fdopendir.c: Likewise.
24339         * tests/test-fdutimensat.c: Likewise.
24340         * tests/test-fflush2.c: Likewise.
24341         * tests/test-file-has-acl.c: Likewise.
24342         * tests/test-filevercmp.c: Likewise.
24343         * tests/test-flock.c: Likewise.
24344         * tests/test-floorf1.c: Likewise.
24345         * tests/test-floorf2.c: Likewise.
24346         * tests/test-floorl.c: Likewise.
24347         * tests/test-fnmatch.c: Likewise.
24348         * tests/test-fopen.h: Likewise.
24349         * tests/test-fpending.c: Likewise.
24350         * tests/test-fprintf-posix.c: Likewise.
24351         * tests/test-fpurge.c: Likewise.
24352         * tests/test-freadable.c: Likewise.
24353         * tests/test-freadahead.c: Likewise.
24354         * tests/test-freading.c: Likewise.
24355         * tests/test-freadptr.c: Likewise.
24356         * tests/test-freadptr2.c: Likewise.
24357         * tests/test-freadseek.c: Likewise.
24358         * tests/test-freopen.c: Likewise.
24359         * tests/test-frexp.c: Likewise.
24360         * tests/test-frexpl.c: Likewise.
24361         * tests/test-fseek.c: Likewise.
24362         * tests/test-fseeko.c: Likewise.
24363         * tests/test-fstatat.c: Likewise.
24364         * tests/test-fstrcmp.c: Likewise.
24365         * tests/test-fsync.c: Likewise.
24366         * tests/test-ftell.c: Likewise.
24367         * tests/test-ftello.c: Likewise.
24368         * tests/test-func.c: Likewise.
24369         * tests/test-futimens.c: Likewise.
24370         * tests/test-fwritable.c: Likewise.
24371         * tests/test-fwriting.c: Likewise.
24372         * tests/test-getcwd.c: Likewise.
24373         * tests/test-getdate.c: Likewise.
24374         * tests/test-getdelim.c: Likewise.
24375         * tests/test-getdtablesize.c: Likewise.
24376         * tests/test-getgroups.c: Likewise.
24377         * tests/test-getline.c: Likewise.
24378         * tests/test-getndelim2.c: Likewise.
24379         * tests/test-glob.c: Likewise.
24380         * tests/test-hash.c: Likewise.
24381         * tests/test-i-ring.c: Likewise.
24382         * tests/test-iconv-utf.c: Likewise.
24383         * tests/test-iconv.c: Likewise.
24384         * tests/test-idpriv-drop.c: Likewise.
24385         * tests/test-idpriv-droptemp.c: Likewise.
24386         * tests/test-inet_ntop.c: Likewise.
24387         * tests/test-inet_pton.c: Likewise.
24388         * tests/test-isblank.c: Likewise.
24389         * tests/test-isfinite.c: Likewise.
24390         * tests/test-isinf.c: Likewise.
24391         * tests/test-isnan.c: Likewise.
24392         * tests/test-isnand.h: Likewise.
24393         * tests/test-isnanf.h: Likewise.
24394         * tests/test-isnanl.h: Likewise.
24395         * tests/test-lchown.c: Likewise.
24396         * tests/test-ldexpl.c: Likewise.
24397         * tests/test-link.c: Likewise.
24398         * tests/test-linkat.c: Likewise.
24399         * tests/test-linked_list.c: Likewise.
24400         * tests/test-linkedhash_list.c: Likewise.
24401         * tests/test-localename.c: Likewise.
24402         * tests/test-lseek.c: Likewise.
24403         * tests/test-lstat.c: Likewise.
24404         * tests/test-mbmemcasecmp.c: Likewise.
24405         * tests/test-mbmemcasecoll.c: Likewise.
24406         * tests/test-mbrtowc.c: Likewise.
24407         * tests/test-mbscasecmp.c: Likewise.
24408         * tests/test-mbscasestr1.c: Likewise.
24409         * tests/test-mbscasestr2.c: Likewise.
24410         * tests/test-mbscasestr3.c: Likewise.
24411         * tests/test-mbscasestr4.c: Likewise.
24412         * tests/test-mbschr.c: Likewise.
24413         * tests/test-mbscspn.c: Likewise.
24414         * tests/test-mbsinit.c: Likewise.
24415         * tests/test-mbsncasecmp.c: Likewise.
24416         * tests/test-mbsnrtowcs.c: Likewise.
24417         * tests/test-mbspbrk.c: Likewise.
24418         * tests/test-mbspcasecmp.c: Likewise.
24419         * tests/test-mbsrchr.c: Likewise.
24420         * tests/test-mbsrtowcs.c: Likewise.
24421         * tests/test-mbsspn.c: Likewise.
24422         * tests/test-mbsstr1.c: Likewise.
24423         * tests/test-mbsstr2.c: Likewise.
24424         * tests/test-mbsstr3.c: Likewise.
24425         * tests/test-memchr.c: Likewise.
24426         * tests/test-memchr2.c: Likewise.
24427         * tests/test-memcmp.c: Likewise.
24428         * tests/test-memmem.c: Likewise.
24429         * tests/test-memrchr.c: Likewise.
24430         * tests/test-mkdir.c: Likewise.
24431         * tests/test-mkdirat.c: Likewise.
24432         * tests/test-mkfifo.c: Likewise.
24433         * tests/test-mkfifoat.c: Likewise.
24434         * tests/test-mknod.c: Likewise.
24435         * tests/test-nanosleep.c: Likewise.
24436         * tests/test-nl_langinfo.c: Likewise.
24437         * tests/test-obstack-printf.c: Likewise.
24438         * tests/test-open.c: Likewise.
24439         * tests/test-openat.c: Likewise.
24440         * tests/test-pipe-filter-gi1.c: Likewise.
24441         * tests/test-pipe-filter-gi2-main.c: Likewise.
24442         * tests/test-pipe-filter-ii1.c: Likewise.
24443         * tests/test-pipe-filter-ii2-main.c: Likewise.
24444         * tests/test-pipe2.c: Likewise.
24445         * tests/test-popen.h: Likewise.
24446         * tests/test-posixtm.c: Likewise.
24447         * tests/test-pread.c: Likewise.
24448         * tests/test-printf-frexp.c: Likewise.
24449         * tests/test-printf-frexpl.c: Likewise.
24450         * tests/test-printf-posix.c: Likewise.
24451         * tests/test-priv-set.c: Likewise.
24452         * tests/test-quotearg.c: Likewise.
24453         * tests/test-random_r.c: Likewise.
24454         * tests/test-rawmemchr.c: Likewise.
24455         * tests/test-rbtree_list.c: Likewise.
24456         * tests/test-rbtree_oset.c: Likewise.
24457         * tests/test-rbtreehash_list.c: Likewise.
24458         * tests/test-readlink.c: Likewise.
24459         * tests/test-remove.c: Likewise.
24460         * tests/test-rename.c: Likewise.
24461         * tests/test-renameat.c: Likewise.
24462         * tests/test-rmdir.c: Likewise.
24463         * tests/test-round1.c: Likewise.
24464         * tests/test-roundf1.c: Likewise.
24465         * tests/test-roundl.c: Likewise.
24466         * tests/test-safe-alloc.c: Likewise.
24467         * tests/test-sameacls.c: Likewise.
24468         * tests/test-set-mode-acl.c: Likewise.
24469         * tests/test-setenv.c: Likewise.
24470         * tests/test-sigaction.c: Likewise.
24471         * tests/test-signbit.c: Likewise.
24472         * tests/test-sleep.c: Likewise.
24473         * tests/test-snprintf-posix.c: Likewise.
24474         * tests/test-snprintf.c: Likewise.
24475         * tests/test-sprintf-posix.c: Likewise.
24476         * tests/test-stat-time.c: Likewise.
24477         * tests/test-stat.c: Likewise.
24478         * tests/test-strcasestr.c: Likewise.
24479         * tests/test-strchrnul.c: Likewise.
24480         * tests/test-strerror.c: Likewise.
24481         * tests/test-striconv.c: Likewise.
24482         * tests/test-striconveh.c: Likewise.
24483         * tests/test-striconveha.c: Likewise.
24484         * tests/test-strsignal.c: Likewise.
24485         * tests/test-strstr.c: Likewise.
24486         * tests/test-strtod.c: Likewise.
24487         * tests/test-strverscmp.c: Likewise.
24488         * tests/test-symlink.c: Likewise.
24489         * tests/test-symlinkat.c: Likewise.
24490         * tests/test-trunc1.c: Likewise.
24491         * tests/test-trunc2.c: Likewise.
24492         * tests/test-truncf1.c: Likewise.
24493         * tests/test-truncf2.c: Likewise.
24494         * tests/test-truncl.c: Likewise.
24495         * tests/test-uname.c: Likewise.
24496         * tests/test-unlink.c: Likewise.
24497         * tests/test-unlinkat.c: Likewise.
24498         * tests/test-unsetenv.c: Likewise.
24499         * tests/test-usleep.c: Likewise.
24500         * tests/test-utimens.c: Likewise.
24501         * tests/test-utimensat.c: Likewise.
24502         * tests/test-vasnprintf-posix.c: Likewise.
24503         * tests/test-vasnprintf-posix2.c: Likewise.
24504         * tests/test-vasnprintf.c: Likewise.
24505         * tests/test-vasprintf-posix.c: Likewise.
24506         * tests/test-vasprintf.c: Likewise.
24507         * tests/test-vdprintf-posix.c: Likewise.
24508         * tests/test-vfprintf-posix.c: Likewise.
24509         * tests/test-vprintf-posix.c: Likewise.
24510         * tests/test-vsnprintf-posix.c: Likewise.
24511         * tests/test-vsnprintf.c: Likewise.
24512         * tests/test-vsprintf-posix.c: Likewise.
24513         * tests/test-wcrtomb.c: Likewise.
24514         * tests/test-wcsnrtombs.c: Likewise.
24515         * tests/test-wcsrtombs.c: Likewise.
24516         * tests/test-wctype.c: Likewise.
24517         * tests/test-wcwidth.c: Likewise.
24518         * tests/test-xfprintf-posix.c: Likewise.
24519         * tests/test-xmemdup0.c: Likewise.
24520         * tests/test-xprintf-posix.c: Likewise.
24521         * tests/test-xvasprintf.c: Likewise.
24522         * tests/unicase/test-locale-language.c: Likewise.
24523         * tests/unicase/test-mapping-part1.h: Likewise.
24524         * tests/unicase/test-predicate-part1.h: Likewise.
24525         * tests/unicase/test-u8-casecmp.c: Likewise.
24526         * tests/unicase/test-u8-casecoll.c: Likewise.
24527         * tests/unicase/test-u8-casefold.c: Likewise.
24528         * tests/unicase/test-u8-is-cased.c: Likewise.
24529         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24530         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24531         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24532         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24533         * tests/unicase/test-u8-tolower.c: Likewise.
24534         * tests/unicase/test-u8-totitle.c: Likewise.
24535         * tests/unicase/test-u8-toupper.c: Likewise.
24536         * tests/unicase/test-u16-casecmp.c: Likewise.
24537         * tests/unicase/test-u16-casecoll.c: Likewise.
24538         * tests/unicase/test-u16-casefold.c: Likewise.
24539         * tests/unicase/test-u16-is-cased.c: Likewise.
24540         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24541         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24542         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24543         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24544         * tests/unicase/test-u16-tolower.c: Likewise.
24545         * tests/unicase/test-u16-totitle.c: Likewise.
24546         * tests/unicase/test-u16-toupper.c: Likewise.
24547         * tests/unicase/test-u32-casecmp.c: Likewise.
24548         * tests/unicase/test-u32-casecoll.c: Likewise.
24549         * tests/unicase/test-u32-casefold.c: Likewise.
24550         * tests/unicase/test-u32-is-cased.c: Likewise.
24551         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24552         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24553         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24554         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24555         * tests/unicase/test-u32-tolower.c: Likewise.
24556         * tests/unicase/test-u32-totitle.c: Likewise.
24557         * tests/unicase/test-u32-toupper.c: Likewise.
24558         * tests/unicase/test-ulc-casecmp.c: Likewise.
24559         * tests/unicase/test-ulc-casecoll.c: Likewise.
24560         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24561         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24562         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24563         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24564         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24565         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24566         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24567         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24568         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24569         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24570         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24571         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24572         * tests/unictype/test-bidi_byname.c: Likewise.
24573         * tests/unictype/test-bidi_name.c: Likewise.
24574         * tests/unictype/test-bidi_of.c: Likewise.
24575         * tests/unictype/test-bidi_test.c: Likewise.
24576         * tests/unictype/test-block_list.c: Likewise.
24577         * tests/unictype/test-block_of.c: Likewise.
24578         * tests/unictype/test-block_test.c: Likewise.
24579         * tests/unictype/test-categ_and.c: Likewise.
24580         * tests/unictype/test-categ_and_not.c: Likewise.
24581         * tests/unictype/test-categ_byname.c: Likewise.
24582         * tests/unictype/test-categ_name.c: Likewise.
24583         * tests/unictype/test-categ_none.c: Likewise.
24584         * tests/unictype/test-categ_of.c: Likewise.
24585         * tests/unictype/test-categ_or.c: Likewise.
24586         * tests/unictype/test-categ_test_withtable.c: Likewise.
24587         * tests/unictype/test-combining.c: Likewise.
24588         * tests/unictype/test-decdigit.c: Likewise.
24589         * tests/unictype/test-digit.c: Likewise.
24590         * tests/unictype/test-mirror.c: Likewise.
24591         * tests/unictype/test-numeric.c: Likewise.
24592         * tests/unictype/test-pr_byname.c: Likewise.
24593         * tests/unictype/test-pr_test.c: Likewise.
24594         * tests/unictype/test-predicate-part1.h: Likewise.
24595         * tests/unictype/test-scripts.c: Likewise.
24596         * tests/unictype/test-sy_c_ident.c: Likewise.
24597         * tests/unictype/test-sy_java_ident.c: Likewise.
24598         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24599         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24600         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24601         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24602         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24603         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24604         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24605         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24606         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24607         * tests/uninorm/test-compat-decomposition.c: Likewise.
24608         * tests/uninorm/test-composition.c: Likewise.
24609         * tests/uninorm/test-decomposing-form.c: Likewise.
24610         * tests/uninorm/test-decomposition.c: Likewise.
24611         * tests/uninorm/test-u8-nfc.c: Likewise.
24612         * tests/uninorm/test-u8-nfd.c: Likewise.
24613         * tests/uninorm/test-u8-nfkc.c: Likewise.
24614         * tests/uninorm/test-u8-nfkd.c: Likewise.
24615         * tests/uninorm/test-u8-normcmp.c: Likewise.
24616         * tests/uninorm/test-u8-normcoll.c: Likewise.
24617         * tests/uninorm/test-u16-nfc.c: Likewise.
24618         * tests/uninorm/test-u16-nfd.c: Likewise.
24619         * tests/uninorm/test-u16-nfkc.c: Likewise.
24620         * tests/uninorm/test-u16-nfkd.c: Likewise.
24621         * tests/uninorm/test-u16-normcmp.c: Likewise.
24622         * tests/uninorm/test-u16-normcoll.c: Likewise.
24623         * tests/uninorm/test-u32-nfc.c: Likewise.
24624         * tests/uninorm/test-u32-nfd.c: Likewise.
24625         * tests/uninorm/test-u32-nfkc.c: Likewise.
24626         * tests/uninorm/test-u32-nfkd.c: Likewise.
24627         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24628         * tests/uninorm/test-u32-normcmp.c: Likewise.
24629         * tests/uninorm/test-u32-normcoll.c: Likewise.
24630         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24631         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24632         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24633         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24634         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24635         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24636         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24637         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24638         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24639         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24640         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24641         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24642         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24643         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24644         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24645         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24646         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24647         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24648         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24649         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24650         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24651         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24652         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24653         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24654         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24655         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24656         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24657         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24658         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24659         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24660         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24661         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24662         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24663         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24664         * tests/uniwidth/test-u8-width.c: Likewise.
24665         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24666         * tests/uniwidth/test-u16-width.c: Likewise.
24667         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24668         * tests/uniwidth/test-u32-width.c: Likewise.
24669         * tests/uniwidth/test-uc_width.c: Likewise.
24670         * tests/uniwidth/test-uc_width2.c: Likewise.
24671         * modules/acl-tests (Files): Add tests/macros.h.
24672         * modules/areadlink-tests (Files): Likewise.
24673         * modules/areadlink-with-size-tests (Files): Likewise.
24674         * modules/areadlinkat-tests (Files): Likewise.
24675         * modules/areadlinkat-with-size-tests (Files): Likewise.
24676         * modules/argmatch-tests (Files): Likewise.
24677         * modules/argv-iter-tests (Files): Likewise.
24678         * modules/array-list-tests (Files): Likewise.
24679         * modules/array-mergesort-tests (Files): Likewise.
24680         * modules/array-oset-tests (Files): Likewise.
24681         * modules/avltree-list-tests (Files): Likewise.
24682         * modules/avltree-oset-tests (Files): Likewise.
24683         * modules/avltreehash-list-tests (Files): Likewise.
24684         * modules/base64-tests (Files): Likewise.
24685         * modules/binary-io-tests (Files): Likewise.
24686         * modules/bitrotate-tests (Files): Likewise.
24687         * modules/btowc-tests (Files): Likewise.
24688         * modules/byteswap-tests (Files): Likewise.
24689         * modules/c-ctype-tests (Files): Likewise.
24690         * modules/c-stack-tests (Files): Likewise.
24691         * modules/c-strcase-tests (Files): Likewise.
24692         * modules/c-strcasestr-tests (Files): Likewise.
24693         * modules/c-strstr-tests (Files): Likewise.
24694         * modules/canonicalize-lgpl-tests (Files): Likewise.
24695         * modules/canonicalize-tests (Files): Likewise.
24696         * modules/carray-list-tests (Files): Likewise.
24697         * modules/ceilf-tests (Files): Likewise.
24698         * modules/ceill-tests (Files): Likewise.
24699         * modules/chown-tests (Files): Likewise.
24700         * modules/cloexec-tests (Files): Likewise.
24701         * modules/copy-file-tests (Files): Likewise.
24702         * modules/count-one-bits-tests (Files): Likewise.
24703         * modules/dprintf-posix-tests (Files): Likewise.
24704         * modules/dup2-tests (Files): Likewise.
24705         * modules/dup3-tests (Files): Likewise.
24706         * modules/duplocale-tests (Files): Likewise.
24707         * modules/fbufmode-tests (Files): Likewise.
24708         * modules/fchdir-tests (Files): Likewise.
24709         * modules/fcntl-safer-tests (Files): Likewise.
24710         * modules/fcntl-tests (Files): Likewise.
24711         * modules/fdopendir-tests (Files): Likewise.
24712         * modules/fdutimensat-tests (Files): Likewise.
24713         * modules/fflush-tests (Files): Likewise.
24714         * modules/filevercmp-tests (Files): Likewise.
24715         * modules/flock-tests (Files): Likewise.
24716         * modules/floorf-tests (Files): Likewise.
24717         * modules/floorl-tests (Files): Likewise.
24718         * modules/fnmatch-tests (Files): Likewise.
24719         * modules/fopen-safer-tests (Files): Likewise.
24720         * modules/fopen-tests (Files): Likewise.
24721         * modules/fpending-tests (Files): Likewise.
24722         * modules/fprintf-posix-tests (Files): Likewise.
24723         * modules/fpurge-tests (Files): Likewise.
24724         * modules/freadable-tests (Files): Likewise.
24725         * modules/freadahead-tests (Files): Likewise.
24726         * modules/freading-tests (Files): Likewise.
24727         * modules/freadptr-tests (Files): Likewise.
24728         * modules/freadseek-tests (Files): Likewise.
24729         * modules/freopen-tests (Files): Likewise.
24730         * modules/frexp-nolibm-tests (Files): Likewise.
24731         * modules/frexp-tests (Files): Likewise.
24732         * modules/frexpl-nolibm-tests (Files): Likewise.
24733         * modules/frexpl-tests (Files): Likewise.
24734         * modules/fseek-tests (Files): Likewise.
24735         * modules/fseeko-tests (Files): Likewise.
24736         * modules/fstrcmp-tests (Files): Likewise.
24737         * modules/fsync-tests (Files): Likewise.
24738         * modules/ftell-tests (Files): Likewise.
24739         * modules/ftello-tests (Files): Likewise.
24740         * modules/func-tests (Files): Likewise.
24741         * modules/futimens-tests (Files): Likewise.
24742         * modules/fwritable-tests (Files): Likewise.
24743         * modules/fwriting-tests (Files): Likewise.
24744         * modules/getcwd-tests (Files): Likewise.
24745         * modules/getdate-tests (Files): Likewise.
24746         * modules/getdelim-tests (Files): Likewise.
24747         * modules/getdtablesize-tests (Files): Likewise.
24748         * modules/getgroups-tests (Files): Likewise.
24749         * modules/getline-tests (Files): Likewise.
24750         * modules/getndelim2-tests (Files): Likewise.
24751         * modules/glob-tests (Files): Likewise.
24752         * modules/hash-tests (Files): Likewise.
24753         * modules/i-ring-tests (Files): Likewise.
24754         * modules/iconv-tests (Files): Likewise.
24755         * modules/iconv_open-utf-tests (Files): Likewise.
24756         * modules/idpriv-drop-tests (Files): Likewise.
24757         * modules/idpriv-droptemp-tests (Files): Likewise.
24758         * modules/inet_ntop-tests (Files): Likewise.
24759         * modules/inet_pton-tests (Files): Likewise.
24760         * modules/isblank-tests (Files): Likewise.
24761         * modules/isfinite-tests (Files): Likewise.
24762         * modules/isinf-tests (Files): Likewise.
24763         * modules/isnan-tests (Files): Likewise.
24764         * modules/isnand-nolibm-tests (Files): Likewise.
24765         * modules/isnand-tests (Files): Likewise.
24766         * modules/isnanf-nolibm-tests (Files): Likewise.
24767         * modules/isnanf-tests (Files): Likewise.
24768         * modules/isnanl-nolibm-tests (Files): Likewise.
24769         * modules/isnanl-tests (Files): Likewise.
24770         * modules/lchown-tests (Files): Likewise.
24771         * modules/ldexpl-tests (Files): Likewise.
24772         * modules/link-tests (Files): Likewise.
24773         * modules/linkat-tests (Files): Likewise.
24774         * modules/linked-list-tests (Files): Likewise.
24775         * modules/linkedhash-list-tests (Files): Likewise.
24776         * modules/localename-tests (Files): Likewise.
24777         * modules/lseek-tests (Files): Likewise.
24778         * modules/lstat-tests (Files): Likewise.
24779         * modules/mbmemcasecmp-tests (Files): Likewise.
24780         * modules/mbmemcasecoll-tests (Files): Likewise.
24781         * modules/mbrtowc-tests (Files): Likewise.
24782         * modules/mbscasecmp-tests (Files): Likewise.
24783         * modules/mbscasestr-tests (Files): Likewise.
24784         * modules/mbschr-tests (Files): Likewise.
24785         * modules/mbscspn-tests (Files): Likewise.
24786         * modules/mbsinit-tests (Files): Likewise.
24787         * modules/mbsncasecmp-tests (Files): Likewise.
24788         * modules/mbsnrtowcs-tests (Files): Likewise.
24789         * modules/mbspbrk-tests (Files): Likewise.
24790         * modules/mbspcasecmp-tests (Files): Likewise.
24791         * modules/mbsrchr-tests (Files): Likewise.
24792         * modules/mbsrtowcs-tests (Files): Likewise.
24793         * modules/mbsspn-tests (Files): Likewise.
24794         * modules/mbsstr-tests (Files): Likewise.
24795         * modules/memchr-tests (Files): Likewise.
24796         * modules/memchr2-tests (Files): Likewise.
24797         * modules/memcmp-tests (Files): Likewise.
24798         * modules/memmem-tests (Files): Likewise.
24799         * modules/memrchr-tests (Files): Likewise.
24800         * modules/mkdir-tests (Files): Likewise.
24801         * modules/mkfifo-tests (Files): Likewise.
24802         * modules/mkfifoat-tests (Files): Likewise.
24803         * modules/mknod-tests (Files): Likewise.
24804         * modules/nanosleep-tests (Files): Likewise.
24805         * modules/nl_langinfo-tests (Files): Likewise.
24806         * modules/obstack-printf-tests (Files): Likewise.
24807         * modules/open-tests (Files): Likewise.
24808         * modules/openat-tests (Files): Likewise.
24809         * modules/pipe-filter-gi-tests (Files): Likewise.
24810         * modules/pipe-filter-ii-tests (Files): Likewise.
24811         * modules/pipe2-tests (Files): Likewise.
24812         * modules/popen-safer-tests (Files): Likewise.
24813         * modules/popen-tests (Files): Likewise.
24814         * modules/posixtm-tests (Files): Likewise.
24815         * modules/pread-tests (Files): Likewise.
24816         * modules/printf-frexp-tests (Files): Likewise.
24817         * modules/printf-frexpl-tests (Files): Likewise.
24818         * modules/printf-posix-tests (Files): Likewise.
24819         * modules/priv-set-tests (Files): Likewise.
24820         * modules/quotearg-tests (Files): Likewise.
24821         * modules/random_r-tests (Files): Likewise.
24822         * modules/rawmemchr-tests (Files): Likewise.
24823         * modules/rbtree-list-tests (Files): Likewise.
24824         * modules/rbtree-oset-tests (Files): Likewise.
24825         * modules/rbtreehash-list-tests (Files): Likewise.
24826         * modules/readlink-tests (Files): Likewise.
24827         * modules/remove-tests (Files): Likewise.
24828         * modules/rename-tests (Files): Likewise.
24829         * modules/renameat-tests (Files): Likewise.
24830         * modules/rmdir-tests (Files): Likewise.
24831         * modules/round-tests (Files): Likewise.
24832         * modules/roundf-tests (Files): Likewise.
24833         * modules/roundl-tests (Files): Likewise.
24834         * modules/safe-alloc-tests (Files): Likewise.
24835         * modules/setenv-tests (Files): Likewise.
24836         * modules/sigaction-tests (Files): Likewise.
24837         * modules/signbit-tests (Files): Likewise.
24838         * modules/sleep-tests (Files): Likewise.
24839         * modules/snprintf-posix-tests (Files): Likewise.
24840         * modules/snprintf-tests (Files): Likewise.
24841         * modules/sprintf-posix-tests (Files): Likewise.
24842         * modules/stat-tests (Files): Likewise.
24843         * modules/stat-time-tests (Files): Likewise.
24844         * modules/strcasestr-tests (Files): Likewise.
24845         * modules/strchrnul-tests (Files): Likewise.
24846         * modules/strerror-tests (Files): Likewise.
24847         * modules/striconv-tests (Files): Likewise.
24848         * modules/striconveh-tests (Files): Likewise.
24849         * modules/striconveha-tests (Files): Likewise.
24850         * modules/strsignal-tests (Files): Likewise.
24851         * modules/strstr-tests (Files): Likewise.
24852         * modules/strtod-tests (Files): Likewise.
24853         * modules/strverscmp-tests (Files): Likewise.
24854         * modules/symlink-tests (Files): Likewise.
24855         * modules/symlinkat-tests (Files): Likewise.
24856         * modules/trunc-tests (Files): Likewise.
24857         * modules/truncf-tests (Files): Likewise.
24858         * modules/truncl-tests (Files): Likewise.
24859         * modules/uname-tests (Files): Likewise.
24860         * modules/unicase/cased-tests (Files): Likewise.
24861         * modules/unicase/ignorable-tests (Files): Likewise.
24862         * modules/unicase/locale-language-tests (Files): Likewise.
24863         * modules/unicase/tolower-tests (Files): Likewise.
24864         * modules/unicase/totitle-tests (Files): Likewise.
24865         * modules/unicase/toupper-tests (Files): Likewise.
24866         * modules/unicase/u8-casecmp-tests (Files): Likewise.
24867         * modules/unicase/u8-casecoll-tests (Files): Likewise.
24868         * modules/unicase/u8-casefold-tests (Files): Likewise.
24869         * modules/unicase/u8-is-cased-tests (Files): Likewise.
24870         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
24871         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
24872         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
24873         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
24874         * modules/unicase/u8-tolower-tests (Files): Likewise.
24875         * modules/unicase/u8-totitle-tests (Files): Likewise.
24876         * modules/unicase/u8-toupper-tests (Files): Likewise.
24877         * modules/unicase/u16-casecmp-tests (Files): Likewise.
24878         * modules/unicase/u16-casecoll-tests (Files): Likewise.
24879         * modules/unicase/u16-casefold-tests (Files): Likewise.
24880         * modules/unicase/u16-is-cased-tests (Files): Likewise.
24881         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
24882         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
24883         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
24884         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
24885         * modules/unicase/u16-tolower-tests (Files): Likewise.
24886         * modules/unicase/u16-totitle-tests (Files): Likewise.
24887         * modules/unicase/u16-toupper-tests (Files): Likewise.
24888         * modules/unicase/u32-casecmp-tests (Files): Likewise.
24889         * modules/unicase/u32-casecoll-tests (Files): Likewise.
24890         * modules/unicase/u32-casefold-tests (Files): Likewise.
24891         * modules/unicase/u32-is-cased-tests (Files): Likewise.
24892         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
24893         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
24894         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
24895         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
24896         * modules/unicase/u32-tolower-tests (Files): Likewise.
24897         * modules/unicase/u32-totitle-tests (Files): Likewise.
24898         * modules/unicase/u32-toupper-tests (Files): Likewise.
24899         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
24900         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
24901         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
24902         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
24903         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
24904         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
24905         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
24906         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
24907         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
24908         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
24909         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
24910         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
24911         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
24912         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
24913         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
24914         * modules/unictype/bidicategory-name-tests (Files): Likewise.
24915         * modules/unictype/bidicategory-of-tests (Files): Likewise.
24916         * modules/unictype/bidicategory-test-tests (Files): Likewise.
24917         * modules/unictype/block-list-tests (Files): Likewise.
24918         * modules/unictype/block-of-tests (Files): Likewise.
24919         * modules/unictype/block-test-tests (Files): Likewise.
24920         * modules/unictype/category-C-tests (Files): Likewise.
24921         * modules/unictype/category-Cc-tests (Files): Likewise.
24922         * modules/unictype/category-Cf-tests (Files): Likewise.
24923         * modules/unictype/category-Cn-tests (Files): Likewise.
24924         * modules/unictype/category-Co-tests (Files): Likewise.
24925         * modules/unictype/category-Cs-tests (Files): Likewise.
24926         * modules/unictype/category-L-tests (Files): Likewise.
24927         * modules/unictype/category-Ll-tests (Files): Likewise.
24928         * modules/unictype/category-Lm-tests (Files): Likewise.
24929         * modules/unictype/category-Lo-tests (Files): Likewise.
24930         * modules/unictype/category-Lt-tests (Files): Likewise.
24931         * modules/unictype/category-Lu-tests (Files): Likewise.
24932         * modules/unictype/category-M-tests (Files): Likewise.
24933         * modules/unictype/category-Mc-tests (Files): Likewise.
24934         * modules/unictype/category-Me-tests (Files): Likewise.
24935         * modules/unictype/category-Mn-tests (Files): Likewise.
24936         * modules/unictype/category-N-tests (Files): Likewise.
24937         * modules/unictype/category-Nd-tests (Files): Likewise.
24938         * modules/unictype/category-Nl-tests (Files): Likewise.
24939         * modules/unictype/category-No-tests (Files): Likewise.
24940         * modules/unictype/category-P-tests (Files): Likewise.
24941         * modules/unictype/category-Pc-tests (Files): Likewise.
24942         * modules/unictype/category-Pd-tests (Files): Likewise.
24943         * modules/unictype/category-Pe-tests (Files): Likewise.
24944         * modules/unictype/category-Pf-tests (Files): Likewise.
24945         * modules/unictype/category-Pi-tests (Files): Likewise.
24946         * modules/unictype/category-Po-tests (Files): Likewise.
24947         * modules/unictype/category-Ps-tests (Files): Likewise.
24948         * modules/unictype/category-S-tests (Files): Likewise.
24949         * modules/unictype/category-Sc-tests (Files): Likewise.
24950         * modules/unictype/category-Sk-tests (Files): Likewise.
24951         * modules/unictype/category-Sm-tests (Files): Likewise.
24952         * modules/unictype/category-So-tests (Files): Likewise.
24953         * modules/unictype/category-Z-tests (Files): Likewise.
24954         * modules/unictype/category-Zl-tests (Files): Likewise.
24955         * modules/unictype/category-Zp-tests (Files): Likewise.
24956         * modules/unictype/category-Zs-tests (Files): Likewise.
24957         * modules/unictype/category-and-not-tests (Files): Likewise.
24958         * modules/unictype/category-and-tests (Files): Likewise.
24959         * modules/unictype/category-byname-tests (Files): Likewise.
24960         * modules/unictype/category-name-tests (Files): Likewise.
24961         * modules/unictype/category-none-tests (Files): Likewise.
24962         * modules/unictype/category-of-tests (Files): Likewise.
24963         * modules/unictype/category-or-tests (Files): Likewise.
24964         * modules/unictype/category-test-withtable-tests (Files): Likewise.
24965         * modules/unictype/combining-class-tests (Files): Likewise.
24966         * modules/unictype/ctype-alnum-tests (Files): Likewise.
24967         * modules/unictype/ctype-alpha-tests (Files): Likewise.
24968         * modules/unictype/ctype-blank-tests (Files): Likewise.
24969         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
24970         * modules/unictype/ctype-digit-tests (Files): Likewise.
24971         * modules/unictype/ctype-graph-tests (Files): Likewise.
24972         * modules/unictype/ctype-lower-tests (Files): Likewise.
24973         * modules/unictype/ctype-print-tests (Files): Likewise.
24974         * modules/unictype/ctype-punct-tests (Files): Likewise.
24975         * modules/unictype/ctype-space-tests (Files): Likewise.
24976         * modules/unictype/ctype-upper-tests (Files): Likewise.
24977         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
24978         * modules/unictype/decimal-digit-tests (Files): Likewise.
24979         * modules/unictype/digit-tests (Files): Likewise.
24980         * modules/unictype/mirror-tests (Files): Likewise.
24981         * modules/unictype/numeric-tests (Files): Likewise.
24982         * modules/unictype/property-alphabetic-tests (Files): Likewise.
24983         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
24984         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
24985         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
24986         Likewise.
24987         * modules/unictype/property-bidi-block-separator-tests (Files):
24988         Likewise.
24989         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
24990         Likewise.
24991         * modules/unictype/property-bidi-common-separator-tests (Files):
24992         Likewise.
24993         * modules/unictype/property-bidi-control-tests (Files): Likewise.
24994         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
24995         Likewise.
24996         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
24997         Likewise.
24998         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
24999         Likewise.
25000         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
25001         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
25002         Likewise.
25003         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
25004         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
25005         Likewise.
25006         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
25007         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
25008         * modules/unictype/property-bidi-segment-separator-tests (Files):
25009         Likewise.
25010         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
25011         * modules/unictype/property-byname-tests (Files): Likewise.
25012         * modules/unictype/property-combining-tests (Files): Likewise.
25013         * modules/unictype/property-composite-tests (Files): Likewise.
25014         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
25015         * modules/unictype/property-dash-tests (Files): Likewise.
25016         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
25017         * modules/unictype/property-default-ignorable-code-point-tests (Files):
25018         Likewise.
25019         * modules/unictype/property-deprecated-tests (Files): Likewise.
25020         * modules/unictype/property-diacritic-tests (Files): Likewise.
25021         * modules/unictype/property-extender-tests (Files): Likewise.
25022         * modules/unictype/property-format-control-tests (Files): Likewise.
25023         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25024         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25025         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25026         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25027         * modules/unictype/property-hyphen-tests (Files): Likewise.
25028         * modules/unictype/property-id-continue-tests (Files): Likewise.
25029         * modules/unictype/property-id-start-tests (Files): Likewise.
25030         * modules/unictype/property-ideographic-tests (Files): Likewise.
25031         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
25032         * modules/unictype/property-ids-trinary-operator-tests (Files):
25033         Likewise.
25034         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
25035         * modules/unictype/property-iso-control-tests (Files): Likewise.
25036         * modules/unictype/property-join-control-tests (Files): Likewise.
25037         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
25038         * modules/unictype/property-line-separator-tests (Files): Likewise.
25039         * modules/unictype/property-logical-order-exception-tests (Files):
25040         Likewise.
25041         * modules/unictype/property-lowercase-tests (Files): Likewise.
25042         * modules/unictype/property-math-tests (Files): Likewise.
25043         * modules/unictype/property-non-break-tests (Files): Likewise.
25044         * modules/unictype/property-not-a-character-tests (Files): Likewise.
25045         * modules/unictype/property-numeric-tests (Files): Likewise.
25046         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
25047         * modules/unictype/property-other-default-ignorable-code-point-tests
25048         (Files): Likewise.
25049         * modules/unictype/property-other-grapheme-extend-tests (Files):
25050         Likewise.
25051         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
25052         * modules/unictype/property-other-id-start-tests (Files): Likewise.
25053         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
25054         * modules/unictype/property-other-math-tests (Files): Likewise.
25055         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
25056         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
25057         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
25058         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
25059         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
25060         * modules/unictype/property-private-use-tests (Files): Likewise.
25061         * modules/unictype/property-punctuation-tests (Files): Likewise.
25062         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
25063         * modules/unictype/property-radical-tests (Files): Likewise.
25064         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
25065         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
25066         * modules/unictype/property-space-tests (Files): Likewise.
25067         * modules/unictype/property-terminal-punctuation-tests (Files):
25068         Likewise.
25069         * modules/unictype/property-test-tests (Files): Likewise.
25070         * modules/unictype/property-titlecase-tests (Files): Likewise.
25071         * modules/unictype/property-unassigned-code-value-tests (Files):
25072         Likewise.
25073         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
25074         * modules/unictype/property-uppercase-tests (Files): Likewise.
25075         * modules/unictype/property-variation-selector-tests (Files): Likewise.
25076         * modules/unictype/property-white-space-tests (Files): Likewise.
25077         * modules/unictype/property-xid-continue-tests (Files): Likewise.
25078         * modules/unictype/property-xid-start-tests (Files): Likewise.
25079         * modules/unictype/property-zero-width-tests (Files): Likewise.
25080         * modules/unictype/scripts-tests (Files): Likewise.
25081         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
25082         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
25083         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
25084         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
25085         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
25086         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
25087         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
25088         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
25089         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
25090         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
25091         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
25092         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
25093         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
25094         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
25095         * modules/uninorm/composition-tests (Files): Likewise.
25096         * modules/uninorm/decomposing-form-tests (Files): Likewise.
25097         * modules/uninorm/decomposition-tests (Files): Likewise.
25098         * modules/uninorm/filter-tests (Files): Likewise.
25099         * modules/uninorm/nfc-tests (Files): Likewise.
25100         * modules/uninorm/nfd-tests (Files): Likewise.
25101         * modules/uninorm/nfkc-tests (Files): Likewise.
25102         * modules/uninorm/nfkd-tests (Files): Likewise.
25103         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
25104         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
25105         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
25106         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
25107         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
25108         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
25109         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
25110         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25111         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
25112         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
25113         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
25114         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
25115         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25116         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
25117         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
25118         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
25119         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
25120         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25121         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
25122         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
25123         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
25124         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
25125         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25126         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
25127         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
25128         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
25129         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
25130         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
25131         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
25132         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
25133         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
25134         * modules/uniwidth/u8-width-tests (Files): Likewise.
25135         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
25136         * modules/uniwidth/u16-width-tests (Files): Likewise.
25137         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
25138         * modules/uniwidth/u32-width-tests (Files): Likewise.
25139         * modules/uniwidth/width-tests (Files): Likewise.
25140         * modules/unlink-tests (Files): Likewise.
25141         * modules/unsetenv-tests (Files): Likewise.
25142         * modules/usleep-tests (Files): Likewise.
25143         * modules/utimens-tests (Files): Likewise.
25144         * modules/utimensat-tests (Files): Likewise.
25145         * modules/vasnprintf-posix-tests (Files): Likewise.
25146         * modules/vasnprintf-tests (Files): Likewise.
25147         * modules/vasprintf-posix-tests (Files): Likewise.
25148         * modules/vasprintf-tests (Files): Likewise.
25149         * modules/vdprintf-posix-tests (Files): Likewise.
25150         * modules/vfprintf-posix-tests (Files): Likewise.
25151         * modules/vprintf-posix-tests (Files): Likewise.
25152         * modules/vsnprintf-posix-tests (Files): Likewise.
25153         * modules/vsnprintf-tests (Files): Likewise.
25154         * modules/vsprintf-posix-tests (Files): Likewise.
25155         * modules/wcrtomb-tests (Files): Likewise.
25156         * modules/wcsnrtombs-tests (Files): Likewise.
25157         * modules/wcsrtombs-tests (Files): Likewise.
25158         * modules/wctype-tests (Files): Likewise.
25159         * modules/wcwidth-tests (Files): Likewise.
25160         * modules/xmemdup0-tests (Files): Likewise.
25161         * modules/xprintf-posix-tests (Files): Likewise.
25162         * modules/xvasprintf-tests (Files): Likewise.
25163
25164 2009-12-24  Eric Blake  <ebb9@byu.net>
25165
25166         test-nanosleep: fix typo
25167         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
25168         patch.
25169         Reported by Bruno Haible.
25170
25171 2009-12-24  Bruno Haible  <bruno@clisp.org>
25172
25173         Reduce namespace pollution on glibc systems.
25174         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
25175         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
25176         systems.
25177         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
25178         <getopt.h> on glibc systems.
25179         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
25180         systems.
25181         * lib/fcntl.c: Include <unistd.h> here instead.
25182
25183 2009-12-24  Bruno Haible  <bruno@clisp.org>
25184
25185         * lib/stdlib.in.h (includes): Fix typo in today's commit.
25186
25187 2009-12-24  Eric Blake  <ebb9@byu.net>
25188
25189         tests: add signature checks
25190         * tests/signature.h (SIGNATURE_CHECK): New file.
25191         * modules/atexit-tests (Files): Use it.
25192         * modules/btowc-tests (Files): Likewise.
25193         * modules/canonicalize-lgpl-tests (Files): Likewise.
25194         * modules/ceilf-tests (Files): Likewise.
25195         * modules/ceill-tests (Files): Likewise.
25196         * modules/chown-tests (Files): Likewise.
25197         * modules/dprintf-posix-tests (Files): Likewise.
25198         * modules/dup2-tests (Files): Likewise.
25199         * modules/dup3-tests (Files): Likewise.
25200         * modules/duplocale-tests (Files): Likewise.
25201         * modules/fchdir-tests (Files): Likewise.
25202         * modules/fcntl-tests (Files): Likewise.
25203         * modules/fdopendir-tests (Files): Likewise.
25204         * modules/fflush-tests (Files): Likewise.
25205         * modules/flock-tests (Files): Likewise.
25206         * modules/floorf-tests (Files): Likewise.
25207         * modules/floorl-tests (Files): Likewise.
25208         * modules/fnmatch-tests (Files): Likewise.
25209         * modules/fopen-tests (Files): Likewise.
25210         * modules/fprintf-posix-tests (Files): Likewise.
25211         * modules/freopen-tests (Files): Likewise.
25212         * modules/frexp-nolibm-tests (Files): Likewise.
25213         * modules/frexp-tests (Files): Likewise.
25214         * modules/frexpl-nolibm-tests (Files): Likewise.
25215         * modules/frexpl-tests (Files): Likewise.
25216         * modules/fseek-tests (Files): Likewise.
25217         * modules/fseeko-tests (Files): Likewise.
25218         * modules/fsync-tests (Files): Likewise.
25219         * modules/ftell-tests (Files): Likewise.
25220         * modules/ftello-tests (Files): Likewise.
25221         * modules/futimens-tests (Files): Likewise.
25222         * modules/getaddrinfo-tests (Files): Likewise.
25223         * modules/getcwd-tests (Files): Likewise.
25224         * modules/getdelim-tests (Files): Likewise.
25225         * modules/getdtablesize-tests (Files): Likewise.
25226         * modules/getgroups-tests (Files): Likewise.
25227         * modules/gethostname-tests (Files): Likewise.
25228         * modules/getline-tests (Files): Likewise.
25229         * modules/getopt-posix-tests (Files): Likewise.
25230         * modules/gettimeofday-tests (Files): Likewise.
25231         * modules/glob-tests (Files): Likewise.
25232         * modules/iconv-tests (Files): Likewise.
25233         * modules/inet_ntop-tests (Files): Likewise.
25234         * modules/inet_pton-tests (Files): Likewise.
25235         * modules/isblank-tests (Files): Likewise.
25236         * modules/lchown-tests (Files): Likewise.
25237         * modules/ldexpl-tests (Files): Likewise.
25238         * modules/link-tests (Files): Likewise.
25239         * modules/linkat-tests (Files): Likewise.
25240         * modules/lseek-tests (Files): Likewise.
25241         * modules/lstat-tests (Files): Likewise.
25242         * modules/mbrtowc-tests (Files): Likewise.
25243         * modules/mbsinit-tests (Files): Likewise.
25244         * modules/mbsnrtowcs-tests (Files): Likewise.
25245         * modules/mbsrtowcs-tests (Files): Likewise.
25246         * modules/memchr-tests (Files): Likewise.
25247         * modules/memcmp-tests (Files): Likewise.
25248         * modules/memmem-tests (Files): Likewise.
25249         * modules/memrchr-tests (Files): Likewise.
25250         * modules/mkdir-tests (Files): Likewise.
25251         * modules/mkfifo-tests (Files): Likewise.
25252         * modules/mkfifoat-tests (Files): Likewise.
25253         * modules/mknod-tests (Files): Likewise.
25254         * modules/nanosleep-tests (Files): Likewise.
25255         * modules/nl_langinfo-tests (Files): Likewise.
25256         * modules/obstack-printf-tests (Files): Likewise.
25257         * modules/open-tests (Files): Likewise.
25258         * modules/openat-tests (Files): Likewise.
25259         * modules/perror-tests (Files): Likewise.
25260         * modules/pipe2-tests (Files): Likewise.
25261         * modules/poll-tests (Files): Likewise.
25262         * modules/popen-tests (Files): Likewise.
25263         * modules/posix_spawn-tests (Files): Likewise.
25264         * modules/posix_spawnp-tests (Files): Likewise.
25265         * modules/pread-tests (Files): Likewise.
25266         * modules/printf-posix-tests (Files): Likewise.
25267         * modules/pty-tests (Files): Likewise.
25268         * modules/random_r-tests (Files): Likewise.
25269         * modules/rawmemchr-tests (Files): Likewise.
25270         * modules/readlink-tests (Files): Likewise.
25271         * modules/remove-tests (Files): Likewise.
25272         * modules/rename-tests (Files): Likewise.
25273         * modules/renameat-tests (Files): Likewise.
25274         * modules/rmdir-tests (Files): Likewise.
25275         * modules/round-tests (Files): Likewise.
25276         * modules/roundf-tests (Files): Likewise.
25277         * modules/roundl-tests (Files): Likewise.
25278         * modules/select-tests (Files): Likewise.
25279         * modules/setenv-tests (Files): Likewise.
25280         * modules/sigaction-tests (Files): Likewise.
25281         * modules/sleep-tests (Files): Likewise.
25282         * modules/snprintf-posix-tests (Files): Likewise.
25283         * modules/snprintf-tests (Files): Likewise.
25284         * modules/sprintf-posix-tests (Files): Likewise.
25285         * modules/stat-tests (Files): Likewise.
25286         * modules/strcasestr-tests (Files): Likewise.
25287         * modules/strchrnul-tests (Files): Likewise.
25288         * modules/strerror-tests (Files): Likewise.
25289         * modules/strsignal-tests (Files): Likewise.
25290         * modules/strstr-tests (Files): Likewise.
25291         * modules/strtod-tests (Files): Likewise.
25292         * modules/strverscmp-tests (Files): Likewise.
25293         * modules/symlink-tests (Files): Likewise.
25294         * modules/symlinkat-tests (Files): Likewise.
25295         * modules/times-tests (Files): Likewise.
25296         * modules/trunc-tests (Files): Likewise.
25297         * modules/truncf-tests (Files): Likewise.
25298         * modules/truncl-tests (Files): Likewise.
25299         * modules/tsearch-tests (Files): Likewise.
25300         * modules/uname-tests (Files): Likewise.
25301         * modules/unlink-tests (Files): Likewise.
25302         * modules/unsetenv-tests (Files): Likewise.
25303         * modules/usleep-tests (Files): Likewise.
25304         * modules/utimensat-tests (Files): Likewise.
25305         * modules/vasprintf-tests (Files): Likewise.
25306         * modules/vdprintf-posix-tests (Files): Likewise.
25307         * modules/vfprintf-posix-tests (Files): Likewise.
25308         * modules/vprintf-posix-tests (Files): Likewise.
25309         * modules/vsnprintf-posix-tests (Files): Likewise.
25310         * modules/vsnprintf-tests (Files): Likewise.
25311         * modules/vsprintf-posix-tests (Files): Likewise.
25312         * modules/wcrtomb-tests (Files): Likewise.
25313         * modules/wcsnrtombs-tests (Files): Likewise.
25314         * modules/wcsrtombs-tests (Files): Likewise.
25315         * modules/wcwidth-tests (Files): Likewise.
25316         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25317         * tests/test-isinf.c (isinf): Likewise.
25318         * tests/test-isnan.c (isnan): Likewise.
25319         * tests/test-signbit.c (signbit): Likewise.
25320         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25321         declaration, either as macro or with correct signature.
25322         (select): Ensure function under test is declared with correct
25323         signature in correct header.
25324         * tests/test-atexit.c (atexit): Likewise.
25325         * tests/test-btowc.c (btowc): Likewise.
25326         * tests/test-canonicalize-lgpl.c (realpath)
25327         (canonicalize_file_name): Likewise.
25328         * tests/test-ceilf1.c (ceilf): Likewise.
25329         * tests/test-ceill.c (ceill): Likewise.
25330         * tests/test-chown.c (chown): Likewise.
25331         * tests/test-dprintf-posix.c (dprintf): Likewise.
25332         * tests/test-dup2.c (dup2): Likewise.
25333         * tests/test-dup3.c (dup3): Likewise.
25334         * tests/test-duplocale.c (duplocale): Likewise.
25335         * tests/test-fchdir.c (fchdir): Likewise.
25336         * tests/test-fchownat.c (fchownat): Likewise.
25337         * tests/test-fcntl.c (fcntl): Likewise.
25338         * tests/test-fdopendir.c (fdopendir): Likewise.
25339         * tests/test-fflush.c (fflush): Likewise.
25340         * tests/test-flock.c (flock): Likewise.
25341         * tests/test-floorf1.c (floorf): Likewise.
25342         * tests/test-floorl.c (floorl): Likewise.
25343         * tests/test-fnmatch.c (fnmatch): Likewise.
25344         * tests/test-fopen.c (fopen): Likewise.
25345         * tests/test-fprintf-posix.c (fprintf): Likewise.
25346         * tests/test-freopen.c (freopen): Likewise.
25347         * tests/test-frexp.c (frexp): Likewise.
25348         * tests/test-frexpl.c (frexpl): Likewise.
25349         * tests/test-fseek.c (fseek): Likewise.
25350         * tests/test-fseeko.c (fseeko): Likewise.
25351         * tests/test-fstatat.c (fstatat): Likewise.
25352         * tests/test-fsync.c (fsync): Likewise.
25353         * tests/test-ftell.c (ftell): Likewise.
25354         * tests/test-ftello.c (ftello): Likewise.
25355         * tests/test-futimens.c (futimens): Likewise.
25356         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25357         (gai_strerror): Likewise.
25358         * tests/test-getcwd.c (getcwd): Likewise.
25359         * tests/test-getdelim.c (getdelim): Likewise.
25360         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25361         * tests/test-getgroups.c (getgroups): Likewise.
25362         * tests/test-gethostname.c (gethostname): Likewise.
25363         * tests/test-getline.c (getline): Likewise.
25364         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25365         Likewise.
25366         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25367         * tests/test-glob.c (glob, globfree): Likewise.
25368         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25369         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25370         * tests/test-inet_pton.c (inet_pton): Likewise.
25371         * tests/test-isblank.c (isblank): Likewise.
25372         * tests/test-lchown.c (lchown): Likewise.
25373         * tests/test-ldexpl.c (ldexpl): Likewise.
25374         * tests/test-link.c (link): Likewise.
25375         * tests/test-linkat.c (linkat): Likewise.
25376         * tests/test-lseek.c (lseek): Likewise.
25377         * tests/test-lstat.c (lstat): Likewise.
25378         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25379         * tests/test-mbsinit.c (mbsinit): Likewise.
25380         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25381         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25382         * tests/test-memchr.c (memchr): Likewise.
25383         * tests/test-memcmp.c (memcmp): Likewise.
25384         * tests/test-memmem.c (memmem): Likewise.
25385         * tests/test-memrchr.c (memrchr): Likewise.
25386         * tests/test-mkdir.c (mkdir): Likewise.
25387         * tests/test-mkdirat.c (mkdirat): Likewise.
25388         * tests/test-mkfifo.c (mkfifo): Likewise.
25389         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25390         * tests/test-mknod.c (mknod): Likewise.
25391         * tests/test-nanosleep.c (nanosleep): Likewise.
25392         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25393         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25394         Likewise.
25395         * tests/test-open.c (open): Likewise.
25396         * tests/test-openat.c (openat): Likewise.
25397         * tests/test-perror.c (perror): Likewise.
25398         * tests/test-pipe2.c (pipe2): Likewise.
25399         * tests/test-poll.c (poll): Likewise.
25400         * tests/test-popen.c (popen, pclose): Likewise.
25401         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25402         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25403         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25404         (posix_spawn_file_actions_destroy)
25405         (posix_spawn_file_actions_addclose)
25406         (posix_spawn_file_actions_addopen)
25407         (posix_spawn_file_actions_adddup2): Likewise.
25408         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25409         * tests/test-pread.c (pread): Likewise.
25410         * tests/test-printf-posix.c (printf): Likewise.
25411         * tests/test-pty.c (openpty, forkpty): Likewise.
25412         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25413         (random_r): Likewise.
25414         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25415         * tests/test-readlink.c (readlink): Likewise.
25416         * tests/test-remove.c (remove): Likewise.
25417         * tests/test-rename.c (rename): Likewise.
25418         * tests/test-renameat.c (renameat): Likewise.
25419         * tests/test-rmdir.c (rmdir): Likewise.
25420         * tests/test-round1.c (round): Likewise.
25421         * tests/test-roundf1.c (roundf): Likewise.
25422         * tests/test-roundl.c (roundl): Likewise.
25423         * tests/test-setenv.c (setenv): Likewise.
25424         * tests/test-sigaction.c (sigaction): Likewise.
25425         * tests/test-sleep.c (sleep): Likewise.
25426         * tests/test-snprintf.c (snprintf): Likewise.
25427         * tests/test-sprintf-posix.c (sprintf): Likewise.
25428         * tests/test-stat.c (stat): Likewise.
25429         * tests/test-stpncpy.c (stpncpy): Likewise.
25430         * tests/test-strcasestr.c (strcasestr): Likewise.
25431         * tests/test-strchrnul.c (strchrnul): Likewise.
25432         * tests/test-strerror.c (strerror): Likewise.
25433         * tests/test-strsignal.c (strsignal): Likewise.
25434         * tests/test-strstr.c (strstr): Likewise.
25435         * tests/test-strtod.c (strtod): Likewise.
25436         * tests/test-strverscmp.c (strverscmp): Likewise.
25437         * tests/test-symlink.c (symlink): Likewise.
25438         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25439         * tests/test-times.c (times): Likewise.
25440         * tests/test-trunc1.c (trunc): Likewise.
25441         * tests/test-truncf1.c (truncf): Likewise.
25442         * tests/test-truncl.c (truncl): Likewise.
25443         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25444         Likewise.
25445         * tests/test-uname.c (uname): Likewise.
25446         * tests/test-unlink.c (unlink): Likewise.
25447         * tests/test-unlinkat.c (unlinkat): Likewise.
25448         * tests/test-unsetenv.c (unsetenv): Likewise.
25449         * tests/test-usleep.c (usleep): Likewise.
25450         * tests/test-utimensat.c (utimensat): Likewise.
25451         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25452         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25453         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25454         * tests/test-vprintf-posix.c (vprintf): Likewise.
25455         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25456         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25457         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25458         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25459         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25460         * tests/test-wcwidth.c (wcwidth): Likewise.
25461
25462         build: pull in conditional headers during GNULIB_POSIXCHECK
25463         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25464         definitions from any conditionally-included headers.
25465         * lib/stdlib.in.h (includes): Likewise.
25466         * lib/unistd.in.h (includes): Likewise.
25467
25468 2009-12-24  Bruno Haible  <bruno@clisp.org>
25469
25470         * tests/test-argv-iter.c: Include header file being tested immediately
25471         after config.h.
25472         * tests/test-base64.c: Likewise.
25473         * tests/test-flock.c: Likewise.
25474         * tests/test-fsync.c: Likewise.
25475         * tests/test-getdate.c: Likewise.
25476         * tests/test-getndelim2.c: Likewise.
25477         * tests/test-isfinite.c: Likewise.
25478         * tests/test-isinf.c: Likewise.
25479         * tests/test-strerror.c: Likewise.
25480         * tests/test-strsignal.c: Likewise.
25481
25482 2009-12-23  Eric Blake  <ebb9@byu.net>
25483
25484         unistd: work around cygwin bug
25485         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25486         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25487         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25488
25489 2009-12-23  Bruno Haible  <bruno@clisp.org>
25490
25491         localename: More tests.
25492         * tests/test-localename.c (SIZEOF): New macro.
25493         (categories): New variable.
25494         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25495         test_locale_name_default): Add test w.r.t. thread locale.
25496         (test_locale_name_thread): New function.
25497         (main): Invoke it.
25498
25499         localename: Make aware of thread locale.
25500         * lib/localename.h (gl_locale_name_thread): New declaration.
25501         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25502         behaviour with respect to thread locale.
25503         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25504         <langinfo.h>, glthread/lock.h.
25505         (SIZE_BITS): New macro.
25506         (string_hash): New function.
25507         (struct hash_node): New type.
25508         (HASH_TABLE_SIZE): New macro.
25509         (struniq_hash_table, struniq_lock): New variables.
25510         (struniq): New function.
25511         (gl_locale_name_thread): New function.
25512         (gl_locale_name): Invoke it.
25513         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25514         * modules/localename (Depends-on): Add lock.
25515         Reported by Mike Gran <spk121@yahoo.com>.
25516
25517 2009-12-23  Eric Blake  <ebb9@byu.net>
25518
25519         va-args: new module
25520         * modules/va-args: New file.
25521         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25522         * MODULES.html.sh (Core language properties): Mention it.
25523
25524         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25525         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25526         named alias for __attribute__((__unused__)).
25527         * lib/chown.c: Update client.
25528         * lib/fchmodat.c: Likewise.
25529         * lib/fts.c: Likewise.
25530         * lib/getdate.y: Likewise.
25531         * lib/getgroups.c: Likewise.
25532         * lib/getopt.c: Likewise.
25533         * lib/getugroups.c: Likewise.
25534         * lib/mkdir.c: Likewise.
25535         * lib/mkfifo.c: Likewise.
25536         * lib/mkfifoat.c: Likewise.
25537         * lib/mknod.c: Likewise.
25538         * lib/mknodat.c: Likewise.
25539         * lib/readlink.c: Likewise.
25540         * lib/se-context.in.h: Likewise.
25541         * lib/se-selinux.in.h: Likewise.
25542         * lib/sockets.c: Likewise.
25543         * lib/symlink.c: Likewise.
25544         * lib/symlinkat.c: Likewise.
25545         * lib/unicodeio.c: Likewise.
25546         * lib/unistr.h: Likewise.
25547         * tests/test-areadlink.c: Likewise.
25548         * tests/test-areadlinkat.c: Likewise.
25549         * tests/test-filenamecat.c: Likewise.
25550         * tests/test-fseeko.c: Likewise.
25551         * tests/test-ftello.c: Likewise.
25552         * tests/test-getdate.c: Likewise.
25553         * tests/test-getgroups.c: Likewise.
25554         * tests/test-gethostname.c: Likewise.
25555         * tests/test-quotearg.c: Likewise.
25556         * tests/test-version-etc.c: Likewise.
25557         * tests/test-xalloc-die.c: Likewise.
25558         * tests/test-xfprintf-posix.c: Likewise.
25559         * tests/test-xprintf-posix.c: Likewise.
25560         * tests/test-xvasprintf.c: Likewise.
25561
25562         tests: avoid compiler warnings
25563         * tests/test-fcntl.c (main): Delete unused parameters.
25564         * tests/test-freopen-safer.c (main): Likewise.
25565         * tests/test-xalloc-die.c (main): Mark unused parameters.
25566         * tests/test-fseeko.c (main): Likewise.
25567         * tests/test-ftello.c (main): Likewise.
25568         * tests/test-nanosleep.c (main): Avoid declaration warning.
25569         * tests/test-sleep.c (main): Likewise.
25570         * tests/test-unsetenv.c (main): Silence warning about string
25571         literal.
25572         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25573
25574 2009-12-23  Bruno Haible  <bruno@clisp.org>
25575
25576         * tests/test-localename.c (test_locale_name): New function, extracted
25577         from main. Also test mixed situations.
25578         (test_locale_name_posix, test_locale_name_environ,
25579         test_locale_name_default): New functions.
25580         (main): Invoke them all.
25581         * modules/localename-tests (configure.ac): Test for newlocale.
25582
25583 2009-12-23  Bruno Haible  <bruno@clisp.org>
25584
25585         unistd: Ensure getcwd gets declared before being overridden.
25586         * lib/unistd.in.h: Conditionally include <io.h>.
25587
25588 2009-12-22  Bruno Haible  <bruno@clisp.org>
25589
25590         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25591         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25592         (gl_WCHAR_H): Invoke it.
25593         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25594         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25595         Reported by Karl Berry <karl@freefriends.org>.
25596
25597 2009-12-22  Eric Blake  <ebb9@byu.net>
25598
25599         math, unistd: avoid redundant includes
25600         * lib/math.in.h (isnan): No need to re-include <math.h>.
25601         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25602
25603         getsubopt: work around cygwin bug
25604         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25605         avoid conflicting with system getsubopt.
25606         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25607         bug.
25608
25609         getopt: synchronize from glibc
25610         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25611         parameter order.  Adjust all callers.
25612         (_getopt_internal_r, main): Adjust quoting in error messages.
25613         Drop considerations for outdated POSIX 1003.2 error message.
25614         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25615         callers.
25616         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25617
25618         test-getopt: test stderr behavior
25619         * modules/getopt-posix-tests (Depends-on): Add dup2.
25620         * tests/test-getopt.c (ASSERT): Avoid stderr.
25621         (main): Move stderr to a temporary file.
25622         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25623         Instead, add parameter to inform caller if output occurred.
25624         (test_getopt): Adjust all existing tests to expect silence, and
25625         add new tests of leading ":".
25626         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25627         glibc shortcomings with leading "-:" or "+:" in optstring.
25628         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25629         Likewise.
25630         * doc/posix-functions/getopt.texi (getopt): Likewise.
25631
25632         test-getopt: enhance test
25633         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25634         supports optind=0.
25635         * tests/test-getopt.c (OPTIND_MIN): Move...
25636         * tests/test-getopt.h (OPTIND_MIN): ...here.
25637         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25638         Require that optind=0 works, since modern BSD supports it in
25639         addition to optreset, and since coreutils expects it.
25640         (test_getopt_long_only): New test.
25641         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25642         glibc shortcomings with 'W;', and enforcement of optind=0.
25643         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25644         Likewise.
25645
25646 2009-12-21  Bruno Haible  <bruno@clisp.org>
25647
25648         localename: Improvements for MacOS X and Cygwin.
25649         * lib/localename.h (gl_locale_name_environ): New declaration.
25650         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25651         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25652         (gl_locale_name_posix): Invoke it.
25653         (gl_locale_name_default): Add comments. Use Windows native API also on
25654         Cygwin.
25655
25656 2009-12-21  Bruno Haible  <bruno@clisp.org>
25657
25658         Update list of Win32 locale ids.
25659         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25660         (LANG_SAMI): Renamed from LANG_SAAMI.
25661         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25662         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25663         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25664         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25665         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25666         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25667         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25668         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25669         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25670         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25671         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25672         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25673         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25674         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25675         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25676         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25677         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25678         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25679         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25680         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25681         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25682         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25683         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25684         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25685         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25686         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25687         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25688         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25689         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25690         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25691         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25692         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25693         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25694         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25695         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25696         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25697         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25698         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25699         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25700         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25701         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25702         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25703         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25704         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25705         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25706         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25707         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25708         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25709         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25710         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25711         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25712         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25713         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25714         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25715         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25716         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25717         Add more languages and countries for Sami, Sorbian. Add more countries
25718         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25719         for Pashto. Change country for Syriac, Tswana.
25720
25721 2009-12-21  Eric Blake  <ebb9@byu.net>
25722
25723         test-utimens: avoid spurious failure
25724         * tests/test-chown.h (nap): Factor...
25725         * tests/nap.h: ...into new file.
25726         * tests/test-lchown.h (nap): Avoid duplication.
25727         * tests/test-utimens-common.h (nap): Use shared implementation,
25728         necessary on file systems with 1-second resolution.
25729         * modules/chown-tests (Files): Include new file.
25730         * modules/fdutimensat-tests (Files): Likewise.
25731         * modules/futimens-tests (Files): Likewise.
25732         * modules/lchown-tests (Files): Likewise.
25733         * modules/openat-tests (Files): Likewise.
25734         * modules/utimens-tests (Files): Likewise.
25735         * modules/utimensat-tests (Files): Likewise.
25736
25737 2009-12-19  Eric Blake  <ebb9@byu.net>
25738
25739         futimens, utimensat: work around Linux bug
25740         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25741         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25742         * lib/utimensat.c (rpl_utimensat): Work around it.
25743         * lib/futimens.c (rpl_futimens): Adjust comment.
25744
25745         utimens: work around Linux ctime bug
25746         * lib/utimens.c (detect_ctime_bug): New helper function.
25747         (update_timespec): Differentiate between workaround needed for
25748         this bug vs. what is needed for systems that lack utimensat.
25749         (fdutimens, lutimens): Work around bug.
25750
25751         utimens: check for ctime update
25752         * tests/test-utimens-common.h (check_ctime): Define.
25753         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25754         * tests/test-futimens.h (test_futimens): Likewise.
25755         * tests/test-lutimens.h (test_lutimens): Likewise.
25756         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25757         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25758
25759 2009-12-19  Bruno Haible  <bruno@clisp.org>
25760
25761         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25762         * tests/test-dprintf-posix2.sh: New file.
25763         * tests/test-dprintf-posix2.c: New file.
25764         * modules/dprintf-posix-tests (Files): Add them.
25765         (configure.ac): Check for getrlimit and setrlimit.
25766         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25767
25768 2009-12-19  Bruno Haible  <bruno@clisp.org>
25769
25770         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25771         * tests/test-fprintf-posix3.sh: New file.
25772         * tests/test-fprintf-posix3.c: New file.
25773         * modules/fprintf-posix-tests (Files): Add them.
25774         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25775
25776 2009-12-19  Eric Blake  <ebb9@byu.net>
25777
25778         dirfd: fix prototype
25779         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
25780         * lib/dirfd.c (dirfd): Likewise.
25781
25782         canonicalize: reduce memory usage
25783         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
25784         allocation to size.
25785         Reported by Solar Designer <solar@openwall.com>.
25786
25787 2009-12-19  Bruno Haible  <bruno@clisp.org>
25788
25789         New module attribute 'Applicability'.
25790         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
25791         * gnulib-tool: New option --extract-applicability.
25792         (func_usage): Document it.
25793         (sed_extract_prog): Recognize it.
25794         (func_get_applicability): New function.
25795         (func_import): Generalize handling of 'link-warning' module.
25796         * modules/link-warning (Applicability): New section.
25797         * modules/arg-nonnull (Applicability): New section.
25798         Repoted by Simon Josefsson <simon@josefsson.org>.
25799
25800 2009-12-19  Bruno Haible  <bruno@clisp.org>
25801
25802         fflush: tweak
25803         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
25804         * lib/fseeko.c (rpl_fseeko): Likewise.
25805
25806 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
25807
25808         * lib/gl_list.h: Fix typo in comment.
25809
25810 2009-12-16  Eric Blake  <ebb9@byu.net>
25811
25812         fcntl: use to simplify other modules
25813         * modules/cloexec (Depends-on): Add fcntl.
25814         * modules/fchdir (Depends-on): Likewise.
25815         * modules/fd-safer-flag (Depends-on): Likewise.
25816         * modules/unistd-safer (Depends-on): Likewise.
25817         * modules/dup3 (configure.ac): Set module indicator.
25818         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
25819         missing.
25820         * lib/fchdir.c (_gl_register_dup): Fix comment.
25821         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
25822         * lib/dup-safer.c (dup_safer): Likewise.
25823         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
25824         * lib/dup3.c (dup3): Likewise.
25825         * tests/test-fchdir.c (main): Enhance test.
25826         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
25827
25828         fcntl: port portions of fcntl to mingw
25829         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
25830         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
25831         replacement for mingw.
25832         * modules/fcntl (Description): Update.
25833         (Depends-on): Add dup2.
25834         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
25835         * modules/fcntl-h (Makefile.am): Substitute it.
25836         * lib/fcntl.in.h (fcntl): Update declaration.
25837         (F_DUPFD, F_GETFD): New macros, when needed.
25838         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25839         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
25840         * tests/test-fcntl.c (check_flags, main): Enhance test for items
25841         we now guarantee.
25842
25843         fcntl: work around cygwin bug in F_DUPFD
25844         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
25845         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
25846         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
25847         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
25848         * doc/posix-functions/fcntl.texi (fcntl): Document it.
25849
25850         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
25851         * modules/fcntl (Files): List new files.
25852         (configure.ac): Run a test.
25853         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
25854         * lib/fcntl.c (rpl_fcntl): Likewise.
25855         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
25856         (gl_FCNTL_H): Always replace fcntl.h.
25857         * modules/fcntl-h (Makefile.am): Substitute witnesses.
25858         * lib/fcntl.in.h (fcntl): Declare replacement.
25859         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
25860         needed, plus a witness.
25861         * doc/posix-functions/fcntl.texi (fcntl): Document this.
25862         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25863         * tests/test-fcntl.c: New file.
25864         * modules/fcntl-tests: Likewise.
25865
25866         binary-io: avoid potential compilation warning
25867         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
25868         directives.
25869
25870         fflush: avoid compilation error on NetBSD
25871         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
25872         between off_t and fpos_t, since the latter is sometimes a struct.
25873         * lib/fseeko.c (rpl_fseeko): Likewise.
25874         Reported by Alexander Nasonov <alnsn@yandex.ru>.
25875
25876 2009-12-15  Eric Blake  <ebb9@byu.net>
25877
25878         fcntl-h, stdio, sys_ioctl: fix declarations
25879         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
25880         function must not take arguments.
25881         * lib/sys_ioctl.in.h (ioctl): Likewise.
25882         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
25883         (open): Add a link warning.
25884
25885 2009-12-15  Jim Meyering  <meyering@redhat.com>
25886
25887         areadlink, areadlink-with-size: relax license to LGPLv2+
25888         * modules/areadlink (License): Relax to LGPLv2+.
25889         * modules/areadlink-with-size (License): Likewise.
25890
25891 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
25892             Bruno Haible  <bruno@clisp.org>
25893
25894         *printf: Fix memory leak.
25895         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
25896         * lib/vfprintf.c (vfprintf): Likewise.
25897         * lib/dprintf.c (dprintf): Likewise.
25898         * lib/vdprintf.c (vdprintf): Likewise.
25899
25900 2009-12-14  Eric Blake  <ebb9@byu.net>
25901
25902         accept4: adjust module dependencies
25903         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
25904
25905         utimens: one more try at avoiding compiler warning
25906         * lib/utimens.c (lutimens): Lower scope of result.
25907
25908 2009-12-13  Bruno Haible  <bruno@clisp.org>
25909
25910         Move the malloc checking from module 'list' to new module 'xlist'.
25911         * modules/xlist: New file.
25912         * lib/gl_xlist.h: New file.
25913         * lib/gl_xlist.c: New file.
25914         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
25915         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
25916         gl_list_add_last, gl_list_add_before, gl_list_add_after,
25917         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
25918         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
25919         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
25920         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
25921         gl_sortedlist_nx_add): New declarations.
25922         (struct gl_list_implementation): Rename and change methods accordingly.
25923         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
25924         (gl_list_nx_create): Renamed from gl_list_create.
25925         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25926         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25927         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25928         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25929         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25930         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25931         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25932         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25933         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
25934         gl_list_create_empty.
25935         (gl_list_nx_create): Renamed from gl_list_create.
25936         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25937         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25938         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25939         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25940         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25941         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25942         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25943         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25944         * lib/gl_array_list.c: Don't include xalloc.h.
25945         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
25946         NULL upon out-of-memory.
25947         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
25948         out-of-memory.
25949         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
25950         Change return type to 'int'.
25951         (gl_array_nx_set_at): Renamed from gl_array_set_at.
25952         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25953         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
25954         upon out-of-memory.
25955         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
25956         upon out-of-memory.
25957         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
25958         upon out-of-memory.
25959         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
25960         upon out-of-memory.
25961         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
25962         out-of-memory.
25963         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
25964         Update.
25965         (gl_array_list_implementation): Update.
25966         * lib/gl_carray_list.c: Don't include xalloc.h.
25967         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
25968         Return NULL upon out-of-memory.
25969         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
25970         out-of-memory.
25971         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
25972         Change return type to 'int'.
25973         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
25974         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25975         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
25976         upon out-of-memory.
25977         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
25978         upon out-of-memory.
25979         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
25980         out-of-memory.
25981         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
25982         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
25983         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
25984         Update.
25985         (gl_carray_list_implementation): Update.
25986         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
25987         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
25988         gl_linked_create_empty. Return NULL upon out-of-memory.
25989         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
25990         out-of-memory.
25991         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
25992         Change return type to 'int'. Return -1 upon out-of-memory.
25993         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
25994         out-of-memory.
25995         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
25996         upon out-of-memory.
25997         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
25998         upon out-of-memory.
25999         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
26000         NULL upon out-of-memory.
26001         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
26002         upon out-of-memory.
26003         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
26004         out-of-memory.
26005         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
26006         Update.
26007         * lib/gl_linked_list.c: Don't include xalloc.h.
26008         (gl_linked_list_implementation): Update.
26009         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
26010         (add_to_bucket): Change return type to 'int'.
26011         (gl_linkedhash_list_implementation): Update.
26012         * lib/gl_anytree_list1.h (free_subtree): New function.
26013         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
26014         gl_tree_create_empty. Return NULL upon out-of-memory.
26015         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
26016         Change return type to 'int'. Return -1 upon out-of-memory.
26017         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
26018         out-of-memory.
26019         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
26020         (gl_tree_remove_node): New function, moved here from
26021         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
26022         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
26023         Update.
26024         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26025         malloc, not xmalloc. Return NULL upon out-of-memory.
26026         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26027         out-of-memory.
26028         (gl_tree_remove_node_from_tree): New function, extracted from
26029         gl_tree_remove_node.
26030         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26031         upon out-of-memory.
26032         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26033         out-of-memory.
26034         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26035         upon out-of-memory.
26036         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26037         upon out-of-memory.
26038         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26039         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
26040         not xmalloc. Return NULL upon out-of-memory.
26041         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26042         out-of-memory.
26043         (gl_tree_remove_node_from_tree): New function, extracted from
26044         gl_tree_remove_node.
26045         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26046         upon out-of-memory.
26047         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26048         out-of-memory.
26049         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26050         upon out-of-memory.
26051         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26052         upon out-of-memory.
26053         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26054         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
26055         gl_anytree_list1.h before gl_anyavltree_list2.h.
26056         (gl_avltree_list_implementation): Update.
26057         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
26058         gl_anytree_list1.h before gl_anyavltree_list2.h.
26059         (gl_rbtree_list_implementation): Update.
26060         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
26061         Change return type to 'int'. Return -1 upon out-of-memory. Use
26062         __builtin_expect.
26063         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
26064         (gl_avltreehash_list_implementation): Update.
26065         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
26066         (gl_rbtreehash_list_implementation): Update.
26067         * modules/array-list (Depends-on): Remove xalloc.
26068         * modules/carray-list (Depends-on): Likewise.
26069         * modules/linked-list (Depends-on): Likewise.
26070         * modules/linkedhash-list (Depends-on): Likewise.
26071         * modules/avltree-list (Depends-on): Likewise.
26072         * modules/rbtree-list (Depends-on): Likewise.
26073         * modules/avltreehash-list (Depends-on): Likewise.
26074         * modules/rbtreehash-list (Depends-on): Likewise.
26075
26076         * modules/xsublist: New file.
26077         * lib/gl_xsublist.h: New file.
26078         * lib/gl_xsublist.c: New file.
26079         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
26080         (gl_sublist_nx_create): New declaration.
26081         * lib/gl_sublist.c: Don't include xalloc.h.
26082         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
26083         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
26084         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
26085         Change return type to 'int'. Return -1 upon out-of-memory.
26086         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
26087         upon out-of-memory.
26088         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
26089         NULL upon out-of-memory.
26090         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
26091         upon out-of-memory.
26092         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
26093         NULL upon out-of-memory.
26094         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
26095         NULL upon out-of-memory.
26096         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
26097         upon out-of-memory.
26098         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
26099         (gl_sublist_list_implementation): Update.
26100         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
26101         upon out-of-memory.
26102         * modules/sublist (Depends-on): Remove xalloc.
26103
26104         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
26105         * tests/test-carray_list.c: Likewise.
26106         * tests/test-linked_list.c: Likewise.
26107         * tests/test-linkedhash_list.c: Likewise.
26108         * tests/test-avltree_list.c: Likewise.
26109         * tests/test-rbtree_list.c: Likewise.
26110         * tests/test-avltreehash_list.c: Likewise.
26111         * tests/test-rbtreehash_list.c: Likewise.
26112         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
26113         * modules/carray-list-tests (Makefile.am): Likewise.
26114         * modules/linked-list-tests (Makefile.am): Likewise.
26115         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26116         * modules/avltree-list-tests (Makefile.am): Likewise.
26117         * modules/rbtree-list-tests (Makefile.am): Likewise.
26118         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26119         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26120
26121         * NEWS: Mention the changes.
26122
26123         * lib/clean-temp.c: Include gl_xlist.h.
26124         * modules/clean-temp (Depends-on): Add xlist.
26125
26126         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
26127         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
26128
26129         * tests/test-array_oset.c: Include gl_xlist.h.
26130         * modules/array-oset-tests (Depends-on): Add xlist.
26131
26132         Reported by José E. Marchesi <jemarch@gnu.org>.
26133
26134 2009-12-13  Bruno Haible  <bruno@clisp.org>
26135
26136         Move the malloc checking from module 'oset' to new module 'xoset'.
26137         * modules/xoset: New file.
26138         * lib/gl_xoset.h: New file.
26139         * lib/gl_xoset.c: New file.
26140         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
26141         declarations.
26142         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
26143         (struct gl_oset_implementation): Rename and change methods accordingly.
26144         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
26145         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26146         'int'. Mark as __warn_unused_result__.
26147         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
26148         gl_oset_create_empty.
26149         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26150         'int'.
26151         * lib/gl_array_oset.c: Don't include xalloc.h.
26152         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
26153         malloc, not xmalloc.
26154         (grow): Change return type to 'int'. Don't call xalloc_die.
26155         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
26156         to 'int'.
26157         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
26158         'int'.
26159         (gl_array_oset_implementation): Update.
26160         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
26161         gl_tree_create_empty.
26162         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
26163         'int'.
26164         * lib/gl_avltree_oset.c: Don't include xalloc.h.
26165         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26166         xmalloc.
26167         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26168         not xmalloc.
26169         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26170         xmalloc.
26171         (gl_avltree_oset_implementation): Update.
26172         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
26173         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26174         xmalloc.
26175         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26176         not xmalloc.
26177         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26178         xmalloc.
26179         (gl_rbtree_oset_implementation): Update.
26180         * modules/array-oset (Depends-on): Remove xalloc.
26181         * modules/avltree-oset (Depends-on): Likewise.
26182         * modules/rbtree-oset (Depends-on): Likewise.
26183         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
26184         * tests/test-avltree_oset.c: Likewise.
26185         * tests/test-rbtree_oset.c: Likewise.
26186         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26187         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
26188         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26189         * NEWS: Mention the change.
26190
26191 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
26192
26193         maint.mk: allow a project to override release-prep commands
26194         * top/maint.mk (alpha, beta, stable): Move release-preparatory
26195         commands into a new rule.
26196         (release-prep): New rule.
26197         (release-prep-hook): New overridable variable.
26198
26199 2009-12-13  Bruno Haible  <bruno@clisp.org>
26200
26201         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
26202
26203 2009-12-13  Jim Meyering  <meyering@redhat.com>
26204
26205         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
26206         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26207
26208 2009-12-12  Bruno Haible  <bruno@clisp.org>
26209
26210         duplocale: Tweak.
26211         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26212
26213 2009-12-12  Karl Berry  <karl@gnu.org>
26214
26215         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26216
26217 2009-12-12  Bruno Haible  <bruno@clisp.org>
26218
26219         * m4/po.m4: Undo incorrect untabification.
26220
26221 2009-12-12  Bruno Haible  <bruno@clisp.org>
26222
26223         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26224         * modules/c-strtod (Depends-on): Add locale.
26225         * modules/c-strtold (Depends-on): Likewise.
26226
26227 2009-12-12  Bruno Haible  <bruno@clisp.org>
26228
26229         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26230
26231 2009-12-11  Eric Blake  <ebb9@byu.net>
26232
26233         setenv: relax requirement in light of POSIX ruling
26234         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26235         not NULL.
26236         * tests/test-setenv.c (main): Relax test.
26237         * tests/test-unsetenv.c (main): Likewise.
26238         * doc/posix-functions/setenv.texi (setenv): Document this.
26239         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26240
26241 2009-12-11  Bruno Haible  <bruno@clisp.org>
26242
26243         New module 'fd-safer-flag'.
26244         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26245         * lib/dup-safer.c (dup_safer_flag): Remove function.
26246         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26247         * lib/fd-safer.c (fd_safer_flag): Remove function.
26248         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26249         * modules/cloexec (configure.ac): Drop indicator macro.
26250         * modules/fd-safer-flag: New file.
26251         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26252         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26253         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26254
26255 2009-12-11  Bruno Haible  <bruno@clisp.org>
26256
26257         Tests for module 'nl_langinfo'.
26258         * modules/nl_langinfo-tests: New file.
26259         * tests/test-nl_langinfo.sh: New file.
26260         * tests/test-nl_langinfo.c: New file.
26261
26262         New module 'nl_langinfo'.
26263         * lib/nl_langinfo.c: New file.
26264         * m4/nl_langinfo.m4: New file.
26265         * modules/nl_langinfo: New file.
26266         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26267
26268 2009-12-11  Bruno Haible  <bruno@clisp.org>
26269
26270         Tests for module 'langinfo'.
26271         * modules/langinfo-tests: New file.
26272         * tests/test-langinfo.c: New file.
26273
26274         New module 'langinfo'.
26275         * lib/langinfo.in.h: New file.
26276         * m4/langinfo_h.m4: New file.
26277         * modules/langinfo: New file.
26278         * doc/posix-headers/langinfo.texi: Mention the new module.
26279
26280 2009-12-11  Bruno Haible  <bruno@clisp.org>
26281
26282         * lib/config.charset: Untabify.
26283
26284 2009-12-11  Bruno Haible  <bruno@clisp.org>
26285
26286         * modules/unistd-safer (configure.ac): Drop indicator macro.
26287
26288 2009-12-11  Bruno Haible  <bruno@clisp.org>
26289
26290         Move pipe2-safer code to its own file.
26291         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26292         * lib/pipe-safer.c (pipe2_safer): Remove function.
26293         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26294         (Makefile.am): Add it to lib_SOURCES.
26295
26296 2009-12-10  Bruno Haible  <bruno@clisp.org>
26297
26298         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26299
26300 2009-12-10  Bruno Haible  <bruno@clisp.org>
26301
26302         Declare which arguments expect non-NULL values, for GCC and clang.
26303         * build-aux/arg-nonnull.h: New file.
26304         * modules/arg-nonnull: New file.
26305         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26306         (inet_ntop, inet_pton): Use it.
26307         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26308         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26309         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26310         (open, openat): Use it.
26311         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26312         (fnmatch): Use it.
26313         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26314         (getopt, getopt_long, getopt_long_only): Use it.
26315         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26316         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26317         Use it.
26318         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26319         (iconv_open): Use it.
26320         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26321         (strtoimax, strtoumax): Use it.
26322         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26323         (duplocale): Use it.
26324         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26325         (frexp, frexpl): Use it.
26326         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26327         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26328         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26329         (tsearch, tfind, tdelete, twalk): Use it.
26330         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26331         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26332         sigpending): Use it.
26333         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26334         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26335         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26336         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26337         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26338         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26339         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26340         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26341         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26342         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26343         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26344         Use it.
26345         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26346         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26347         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26348         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26349         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26350         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26351         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26352         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26353         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26354         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26355         strtoull, unsetenv): Use it.
26356         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26357         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26358         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26359         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26360         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26361         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26362         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26363         (strcasecmp, strncasecmp): Use it.
26364         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26365         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26366         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26367         rpl_setsockopt): Use it.
26368         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26369         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26370         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26371         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26372         (gettimeofday): Use it.
26373         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26374         (times): Use it.
26375         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26376         (uname): Use it.
26377         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26378         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26379         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26380         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26381         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26382         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26383         unlinkat, write): Use it.
26384         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26385         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26386         * lib/argv-iter.h: Include arg-nonnull.h.
26387         (_ATTRIBUTE_NONNULL_): Remove macro.
26388         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26389         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26390         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26391         optimization.
26392         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26393         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26394         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26395         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26396         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26397         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26398         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26399         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26400         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26401         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26402         * modules/dirent (Depends-on): Add arg-nonnull.
26403         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26404         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26405         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26406         * modules/fnmatch (Depends-on): Add arg-nonnull.
26407         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26408         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26409         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26410         * modules/glob (Depends-on): Add arg-nonnull.
26411         (Makefile.am): Insert arg-nonnull.h into glob.h.
26412         * modules/iconv_open (Depends-on): Add arg-nonnull.
26413         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26414         * modules/inttypes (Depends-on): Add arg-nonnull.
26415         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26416         * modules/locale (Depends-on): Add arg-nonnull.
26417         (Makefile.am): Insert arg-nonnull.h into locale.h.
26418         * modules/math (Depends-on): Add arg-nonnull.
26419         (Makefile.am): Insert arg-nonnull.h into math.h.
26420         * modules/netdb (Depends-on): Add arg-nonnull.
26421         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26422         * modules/search (Depends-on): Add arg-nonnull.
26423         (Makefile.am): Insert arg-nonnull.h into search.h.
26424         * modules/signal (Depends-on): Add arg-nonnull.
26425         (Makefile.am): Insert arg-nonnull.h into signal.h.
26426         * modules/spawn (Depends-on): Add arg-nonnull.
26427         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26428         * modules/stdio (Depends-on): Add arg-nonnull.
26429         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26430         * modules/stdlib (Depends-on): Add arg-nonnull.
26431         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26432         * modules/string (Depends-on): Add arg-nonnull.
26433         (Makefile.am): Insert arg-nonnull.h into string.h.
26434         * modules/strings (Depends-on): Add arg-nonnull.
26435         (Makefile.am): Insert arg-nonnull.h into strings.h.
26436         * modules/sys_socket (Depends-on): Add arg-nonnull.
26437         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26438         * modules/sys_stat (Depends-on): Add arg-nonnull.
26439         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26440         * modules/sys_time (Depends-on): Add arg-nonnull.
26441         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26442         * modules/sys_times (Depends-on): Add arg-nonnull.
26443         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26444         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26445         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26446         * modules/time (Depends-on): Add arg-nonnull.
26447         (Makefile.am): Insert arg-nonnull.h into time.h.
26448         * modules/unistd (Depends-on): Add arg-nonnull.
26449         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26450         * modules/wchar (Depends-on): Add arg-nonnull.
26451         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26452         * modules/argv-iter (Depends-on): Add arg-nonnull.
26453         * tests/test-canonicalize.c (null_ptr): New function.
26454         (main): Use it.
26455         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26456         (main): Use it.
26457         * tests/test-memmem.c (null_ptr): New function.
26458         (main): Use it.
26459         Reported by Jim Meyering.
26460
26461 2009-12-10  Bruno Haible  <bruno@clisp.org>
26462
26463         Use spaces for indentation, not tabs.
26464         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26465         * m4/*.m4: Untabify.
26466         * build-aux/*.h: Untabify.
26467         * tests/**/*.[hc]: Untabify.
26468         * README: New section "Indent with spaces, not TABs", based on
26469         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26470         * NEWS: Mention the change.
26471
26472 2009-12-10  Bruno Haible  <bruno@clisp.org>
26473
26474         pty test: Fix link error.
26475         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26476         test_pty_LDADD.
26477
26478 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26479
26480         * modules/pty: New file.
26481         * modules/pty-tests: New file.
26482         * m4/pty.m4: New file.
26483         * tests/test-pty.c: New file.
26484         * doc/glibc-headers/pty.texi: Modified.
26485         * doc/glibc-functions/forkpty.texi: Modified.
26486         * doc/glibc-functions/openpty.texi: Modified.
26487
26488 2009-12-10  Bruno Haible  <bruno@clisp.org>
26489
26490         Avoid syntax error in C++ mode.
26491         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26492
26493 2009-12-10  Bruno Haible  <bruno@clisp.org>
26494
26495         Use sed with option -e.
26496         * gnulib-tool (func_version, func_emit_copyright_notice,
26497         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26498         option -e to sed.
26499         * modules/link-warning (Makefile.am): Likewise.
26500
26501 2009-12-10  Jim Meyering  <meyering@redhat.com>
26502
26503         mgetgroups: do not write bytes beyond end of malloc'd buffer
26504         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26505         username, we call getgroups with a one-element-shorter buffer,
26506         but still told it the length was original, max_n_groups.
26507
26508 2009-12-09  Eric Blake  <ebb9@byu.net>
26509
26510         cloexec: relax license
26511         * modules/cloexec (Maintainer): Add myself.
26512         (License): Use LGPL, not GPL.
26513
26514         link-warning: optimize generation
26515         * modules/link-warning (Makefile.am): Reduce process usage.
26516
26517 2009-12-09  Bruno Haible  <bruno@clisp.org>
26518
26519         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26520         workaround was added on 2009-11-17.
26521
26522 2009-12-09  Jim Meyering  <meyering@redhat.com>
26523             Bruno Haible  <bruno@clisp.org>
26524
26525         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26526         * modules/link-warning (Makefile.am): Make the comment-removing sed
26527         command more robust in the face of bootstrap-prepended comment lines.
26528
26529 2009-12-09  Bruno Haible  <bruno@clisp.org>
26530
26531         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26532         most one group.
26533
26534 2009-12-09  Simon Josefsson <simon@josefsson.org>
26535             Bruno Haible  <bruno@clisp.org>
26536
26537         * build-aux/link-warning.h: Add copyright notice.
26538         * modules/link-warning (Makefile.am): Generate link-warning.h from
26539         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26540         * NEWS: Mention change in link-warning module.
26541         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26542         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26543         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26544         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26545         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26546         * modules/math (Makefile.am): Add dependency to math.h.
26547         * modules/search (Makefile.am): Add dependency to search.h.
26548         * modules/signal (Makefile.am): Add dependency to signal.h.
26549         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26550         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26551         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26552         * modules/string (Makefile.am): Add dependency to string.h.
26553         * modules/strings (Makefile.am): Add dependency to strings.h.
26554         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26555         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26556         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26557         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26558         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26559         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26560         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26561         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26562         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26563
26564 2009-12-09  Bruno Haible  <bruno@clisp.org>
26565
26566         fchdir: Optimize away rpl_fstat when possible.
26567         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26568         REPLACE_OPEN_DIRECTORY.
26569         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26570
26571 2009-12-09  Bruno Haible  <bruno@clisp.org>
26572
26573         * lib/fchdir.c: Update comment.
26574
26575 2009-12-09  Bruno Haible  <bruno@clisp.org>
26576
26577         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26578
26579 2009-12-08  Eric Blake  <ebb9@byu.net>
26580
26581         fchdir: avoid memory leak on re-registration.
26582         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26583
26584 2009-12-08  Jim Meyering  <meyering@redhat.com>
26585
26586         init.sh: avoid Solaris 10 /bin/sh portability problem
26587         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26588         sourced script:
26589           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26590           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26591           bar
26592         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26593         and two tests used that idiom.
26594         * tests/init.sh: Update suggested usage comments.
26595         (path_prepend_): New function, to be used in place
26596         of the --src-path=DIR option.
26597         (setup_): Move PATH-prepending code into path_prepend_.
26598         * tests/test-pread.sh: Adapt to new usage.
26599         * tests/test-xalloc-die.sh: Likewise.
26600
26601 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26602
26603         * doc/gnulib.texi (Glibc pty.h): Add.
26604         * doc/glibc-functions/forkpty.texi: Add.
26605         * doc/glibc-functions/openpty.texi: Add.
26606         Suggested by Bruno Haible.
26607
26608 2009-12-08  Eric Blake  <ebb9@byu.net>
26609
26610         fchdir: fix logic bugs
26611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26612         * tests/test-fchdir.c (main): Enhance test.
26613         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26614         is in use.
26615
26616         dup2: fix logic bugs
26617         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26618         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26619         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26620         exists.
26621         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26622
26623 2009-12-07  Eric Blake  <ebb9@byu.net>
26624
26625         unlink: fix m4 detection
26626         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26627
26628         unistd-safer: add unit test
26629         * modules/unistd-safer-tests: New file.
26630         * tests/test-dup-safer.c: Likewise.
26631         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26632         * tests/test-dup2.c (setmode): Likewise.
26633         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26634
26635         cloexec: preserve text vs. binary across dup_cloexec
26636         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26637         mode.
26638         * modules/dup2-tests (Depends-on): Add binary-io.
26639         * modules/cloexec-tests (Depends-on): Likewise.
26640         * tests/test-dup2.c (setmode, is_mode): New helpers.
26641         (main): Add tests that translation mode is preserved.
26642         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26643         Reported by Bruno Haible.
26644
26645         mgetgroups: reduce duplicate listings
26646         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26647         resulting array.
26648         * tests/test-chown.h (test_chown): Simplify client.
26649         * tests/test-lchown.h (test_lchown): Likewise.
26650
26651 2009-12-06  Bruno Haible  <bruno@clisp.org>
26652
26653         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26654         value.
26655
26656 2009-12-06  Bruno Haible  <bruno@clisp.org>
26657
26658         * lib/progname.c: Include stdio.h, stdlib.h.
26659         (set_program_name): Reject a NULL argument.
26660
26661 2009-12-05  Eric Blake  <ebb9@byu.net>
26662
26663         pipe2-safer: new module
26664         * modules/pipe2-safer: New file.
26665         * lib/unistd-safer.h (pipe2_safer): New prototype.
26666         * lib/unistd--.h (pipe2): New wrapper.
26667         * lib/pipe-safer.c (pipe2_safer): New function.
26668         * modules/pipe (Depends-on): Add pipe2-safer.
26669         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26670
26671         stdlib-safer: preserve cloexec flag for mkostemp[s]
26672         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26673         fd_safer_flag.
26674
26675         unistd-safer: allow preservation of cloexec status via flag
26676         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26677         prototypes.
26678         * lib/dup-safer.c (dup_safer_flag): New function.
26679         * lib/fd-safer.c (fd_safer_flag): Likewise.
26680         * modules/cloexec (configure.ac): Set witness.
26681
26682         test-dup2: enhance test
26683         * modules/dup2-tests (Depends-on): Add cloexec.
26684         * tests/test-dup2.c (main): Enhance test.
26685
26686         cloexec: add dup_cloexec
26687         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26688         header and comments.
26689         * lib/cloexec.c (set_cloexec_flag): Add comments.
26690         (dup_cloexec): New function, with mingw implementation borrowed
26691         from...
26692         * lib/w32spawn.h (dup_noinherit): ...here.
26693         * modules/execute (Depends-on): Add cloexec.
26694         * modules/pipe (Depends-on): Likewise.
26695         * modules/cloexec (Depends-on): Add dup2.
26696         * modules/cloexec-tests (Files): New file.
26697         * tests/test-cloexec.c: Likewise.
26698
26699         test-xalloc-die: fix test for mingw
26700         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26701         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26702         directory and .exe suffix off argv[0] output.
26703
26704         test-fseeko: fix test for mingw
26705         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26706         than undefining fseek, so test will pass on mingw.
26707
26708 2009-12-05  Bruno Haible  <bruno@clisp.org>
26709
26710         * lib/progname.h (set_program_name): Clarify specification.
26711         * lib/progname.c (set_program_name): Likewise.
26712         Reported by Jim Meyering.
26713
26714 2009-12-05  Jim Meyering  <meyering@redhat.com>
26715
26716         maint.mk: backslash-escape parens in default regexp
26717         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26718         backslash-escape the literal parentheses.
26719
26720         maint.mk: news-date-check: use grep -E
26721         * top/maint.mk (today): Define a Make variable, not a...
26722         (news-date-check): ...shell variable.
26723         (news-date-regexp): Use the Make variable.
26724         Use grep's -E option.  Change the failing diagnostic to mention
26725         the variable, $(news-date-regexp).
26726
26727 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26728
26729         maintainer-makefile: allow customization of NEWS entry format
26730         * top/maint.mk (news-date-regexp): New overridable variable.
26731         (news-date-check): Use it.
26732
26733 2009-12-04  Eric Blake  <ebb9@byu.net>
26734
26735         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26736         * lib/mgetgroups.h (xgetgroups): New prototype.
26737         * lib/mgetgroups.c (xgetgroups): New wrapper.
26738         (mgetgroups): Handle ENOSYS.
26739         * modules/mgetgroups (Depends-on): Add realloc.
26740         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26741
26742         mgetgroups: avoid argument promotion issues with -1
26743         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26744         for invalid gid_t.
26745         * tests/test-chown.h (getegid, test_chown): Likewise.
26746         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26747
26748 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26749
26750         exclude: Fix header file problems.
26751         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26752
26753 2009-12-01  Jim Meyering  <meyering@redhat.com>
26754
26755         fts: fts_open: do not let an empty string cause immediate failure
26756         This is required in support of GNU rm, for which the command
26757         "rm A '' B" must process and remove both A and B, in spite of
26758         the empty string argument.
26759         * lib/fts.c (fts_open): Do not let the presence of an empty string
26760         cause fts_open to fail immediately.  Most fts-using tools must be
26761         able to process all arguments, in order, and can be expected to
26762         diagnose such arguments themselves.
26763
26764 2009-11-30  Eric Blake  <ebb9@byu.net>
26765
26766         utimens: fix compilation error
26767         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26768         Declare variable at right scope.
26769
26770 2009-11-29  Jim Meyering  <meyering@redhat.com>
26771
26772         bootstrap: handle perl-5.11's changed --version output
26773         * build-aux/bootstrap (get_version): Handle perl separately,
26774         since perl-5.11's --version output is different.
26775
26776 2009-11-28  Jim Meyering  <meyering@redhat.com>
26777
26778         userspec: depend on the inttostr module, too
26779         * modules/userspec (Depends-on): Add inttostr.
26780
26781         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
26782         * lib/userspec.c (parse_with_separator): Do not accept a user ID
26783         number of MAXUID when it evaluates to (uid_t) -1.
26784         Likewise for group ID.  Reported by Matt McCutchen in
26785         <http://savannah.gnu.org/bugs/?28113>
26786
26787         userspec: reformat to use spaces, not TABs
26788         * lib/userspec.c: Expand TABs to spaces.
26789         Add Emacs' "indent-tabs-mode: nil" hint.
26790
26791 2009-11-27  Eric Blake  <ebb9@byu.net>
26792
26793         getopt-gnu: flush out another BSD bug
26794         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
26795         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
26796         flush out BSD bug.
26797         * tests/test-getopt.h (test_getopt): End lists with NULL.
26798         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26799         (test_getopt_long_posix): Enhance test.
26800         * modules/getopt-posix-tests (Depends-on): Add stdbool.
26801         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
26802         getopt-gnu.
26803         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26804         Likewise.
26805
26806 2009-11-27  Simon Josefsson  <simon@josefsson.org>
26807
26808         * modules/idpriv-droptemp-tests (Notice): Fix text.
26809
26810 2009-11-27  Jim Meyering  <meyering@redhat.com>
26811
26812         test-xalloc-die: avoid spurious failure due to libtool argv difference
26813         In a libtool-enabled project, this test would fail due to a difference
26814         in the emitted program name, e.g.,
26815         -test-xalloc-die: memory exhausted
26816         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
26817         Use program to avoid that.
26818         * modules/xalloc-die-tests (Depends-on): Add progname.
26819         * tests/test-xalloc-die.c: Include progname.h".
26820         (program_name): Remove decl.
26821         (main): Call set_program_name.
26822         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
26823
26824 2009-11-26  Richard Jones  <rjones@redhat.com>
26825
26826         w32sock: leave win32 error in place.
26827         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
26828
26829 2009-11-26  Eric Blake  <ebb9@byu.net>
26830
26831         init.sh: suggest to use skip_ and fail_ functions in comments
26832         * tests/init.sh: Add a sentence.
26833
26834 2009-11-25  Bruno Haible  <bruno@clisp.org>
26835
26836         init.sh: add documentation in comments
26837         * tests/init.sh: Add some developer and user documentation.
26838
26839 2009-11-26  Jim Meyering  <meyering@redhat.com>
26840
26841         init.sh: accommodate even those who specify bogus srcdir manually
26842         * tests/init.sh: Normally, srcdir is guaranteed by automake and
26843         configure-time tests to be sanitized, so that there is no need to
26844         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
26845         (with no double quotes) suffices.  However, since tests may be
26846         invoked manually, and since you may explicitly set srcdir to the
26847         name of a directory containing spaces, do quote its uses here.
26848         * tests/test-pread.sh: Likewise.
26849         Suggested by Bruno Haible.
26850
26851         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
26852         * tests/test-pread.sh: Write no data into the pipe, because
26853         test-pread actually reads none.  This avoids a diagnostic,
26854         "bash: echo: write error: Broken pipe", that arises in the unusual
26855         event something is ignoring SIGPIPE, and might be interpreted
26856         as some sort of failure.  Reported by Bruno Haible.
26857
26858 2009-11-25  Jim Meyering  <meyering@redhat.com>
26859
26860         test-pread: cover failure with ESPIPE and EINVAL
26861         * tests/test-pread.c (main): Test for failure, too.
26862         * tests/test-pread.sh: Invoke with stdin on a pipe.
26863         Suggested by Eric Blake.
26864
26865         pread: improvement and fix
26866         * modules/pread (Depends-on): Depend on lseek, for portability to
26867         e.g., mingw.  Suggested by Eric Blake.
26868         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
26869
26870         unistd.in.h: correct declaration of pread
26871         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
26872         Reported by Richard W.M. Jones.
26873
26874         test-pread.sh: distribute the test script
26875         * modules/pread-tests (Files): Include test-pread.sh.
26876
26877         test-pread.sh: clean up
26878         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
26879         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
26880         That is unnecessary, since it's always ".".
26881         Suggestion from Eric Blake.
26882
26883         test-pread.sh: make executable
26884         * tests/test-pread.sh: Set executable bit.
26885         Reported by Eric Blake.
26886
26887         correct typo in test-pread.sh
26888         * tests/test-pread.sh: Add #! line.
26889
26890         test pread
26891         * tests/test-pread.c: New file.
26892         * tests/test-pread.sh: Likewise.
26893         * modules/pread-tests: Likewise.
26894
26895         pread: new module
26896         * modules/pread: New file.
26897         * lib/unistd.in.h (pread): Define/declare.
26898         * lib/pread.c (pread): New file.
26899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
26900         * modules/unistd (Makefile.am): Substitute witnesses.
26901         * doc/posix-functions/pread.texi (pread): Update.
26902         * MODULES.html.sh: Add pread.
26903
26904 2009-11-25  Jim Meyering  <meyering@redhat.com>
26905
26906         tests/init.sh: new file to be used via most *.sh tests
26907         * tests/init.sh: New file.
26908
26909 2009-11-25  Eric Blake  <ebb9@byu.net>
26910
26911         utimens: work around older Linux failure with symlinks
26912         * lib/utimens.c (lutimensat_works_really): New variable.
26913         (fdutimens, lutimens): Use it to manage kernels that support
26914         nanosecond times on files, but not on symlinks.
26915         Reported by OndÅ™ej Vašík.
26916
26917         utimes: fix configure grammar
26918         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
26919
26920 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
26921
26922         regex: Fix fastmap for multibyte character ranges.
26923         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
26924         characters when a multibyte character range is included.
26925
26926 2009-11-22  Andy Wingo  <wingo@pobox.com>
26927
26928         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
26929         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
26930
26931 2009-11-24  Bruno Haible  <bruno@clisp.org>
26932
26933         doc: Most *_l functions exist in MacOS X 10.5.
26934         * doc/posix-functions/duplocale.texi: Update platforms list.
26935         * doc/posix-functions/freelocale.texi: Likewise.
26936         * doc/posix-functions/newlocale.texi: Likewise.
26937         * doc/posix-functions/uselocale.texi: Likewise.
26938         * doc/posix-functions/isalnum_l.texi: Likewise.
26939         * doc/posix-functions/isalpha_l.texi: Likewise.
26940         * doc/posix-functions/isblank_l.texi: Likewise.
26941         * doc/posix-functions/iscntrl_l.texi: Likewise.
26942         * doc/posix-functions/isdigit_l.texi: Likewise.
26943         * doc/posix-functions/isgraph_l.texi: Likewise.
26944         * doc/posix-functions/islower_l.texi: Likewise.
26945         * doc/posix-functions/isprint_l.texi: Likewise.
26946         * doc/posix-functions/ispunct_l.texi: Likewise.
26947         * doc/posix-functions/isspace_l.texi: Likewise.
26948         * doc/posix-functions/isupper_l.texi: Likewise.
26949         * doc/posix-functions/iswalnum_l.texi: Likewise.
26950         * doc/posix-functions/iswalpha_l.texi: Likewise.
26951         * doc/posix-functions/iswblank_l.texi: Likewise.
26952         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26953         * doc/posix-functions/iswctype_l.texi: Likewise.
26954         * doc/posix-functions/iswdigit_l.texi: Likewise.
26955         * doc/posix-functions/iswgraph_l.texi: Likewise.
26956         * doc/posix-functions/iswlower_l.texi: Likewise.
26957         * doc/posix-functions/iswprint_l.texi: Likewise.
26958         * doc/posix-functions/iswpunct_l.texi: Likewise.
26959         * doc/posix-functions/iswspace_l.texi: Likewise.
26960         * doc/posix-functions/iswupper_l.texi: Likewise.
26961         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26962         * doc/posix-functions/isxdigit_l.texi: Likewise.
26963         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
26964         * doc/posix-functions/strcasecmp_l.texi: Likewise.
26965         * doc/posix-functions/strcoll_l.texi: Likewise.
26966         * doc/posix-functions/strfmon_l.texi: Likewise.
26967         * doc/posix-functions/strftime_l.texi: Likewise.
26968         * doc/posix-functions/strncasecmp_l.texi: Likewise.
26969         * doc/posix-functions/strxfrm_l.texi: Likewise.
26970         * doc/posix-functions/tolower_l.texi: Likewise.
26971         * doc/posix-functions/toupper_l.texi: Likewise.
26972         * doc/posix-functions/towctrans_l.texi: Likewise.
26973         * doc/posix-functions/towlower_l.texi: Likewise.
26974         * doc/posix-functions/towupper_l.texi: Likewise.
26975         * doc/posix-functions/wcscoll_l.texi: Likewise.
26976         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26977         * doc/posix-functions/wctrans_l.texi: Likewise.
26978         * doc/posix-functions/wctype_l.texi: Likewise.
26979         * doc/glibc-functions/strptime_l.texi: Likewise.
26980         * doc/glibc-functions/strtod_l.texi: Likewise.
26981         * doc/glibc-functions/strtof_l.texi: Likewise.
26982         * doc/glibc-functions/strtol_l.texi: Likewise.
26983         * doc/glibc-functions/strtold_l.texi: Likewise.
26984         * doc/glibc-functions/strtoll_l.texi: Likewise.
26985         * doc/glibc-functions/strtoul_l.texi: Likewise.
26986         * doc/glibc-functions/strtoull_l.texi: Likewise.
26987         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26988         * doc/glibc-functions/wcstod_l.texi: Likewise.
26989         * doc/glibc-functions/wcstof_l.texi: Likewise.
26990         * doc/glibc-functions/wcstol_l.texi: Likewise.
26991         * doc/glibc-functions/wcstold_l.texi: Likewise.
26992         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26993         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26994         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26995
26996 2009-11-24  Bruno Haible  <bruno@clisp.org>
26997
26998         duplocale: Fix logic bug.
26999         * lib/duplocale.c: Don't include <langinfo.h>.
27000         (_NL_LOCALE_NAME): Remove macro.
27001         (rpl_duplocale): Use setlocale instead of nl_langinfo.
27002         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
27003
27004 2009-11-23  Jim Meyering  <meyering@redhat.com>
27005
27006         test-update-copyright: don't hard-code /usr/bin/perl
27007         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
27008         perl to print the current year.  Gilles Espinasse reported that
27009         the replaced use of perl was hard-coded as /usr/bin/perl.
27010
27011 2009-11-23  Bruno Haible  <bruno@clisp.org>
27012
27013         duplocale: Add support for glibc 2.3.x.
27014         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
27015
27016 2009-11-22  Bruno Haible  <bruno@clisp.org>
27017
27018         vasnprintf: Tiny optimization.
27019         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
27020         MacOS X.
27021
27022 2009-11-22  Bruno Haible  <bruno@clisp.org>
27023
27024         Tests for module 'duplocale'.
27025         * modules/duplocale-tests: New file.
27026         * tests/test-duplocale.c: New file.
27027
27028         New module 'duplocale'.
27029         * m4/duplocale.m4: New file.
27030         * lib/locale.in.h (duplocale): New declaration.
27031         * lib/duplocale.c: New file.
27032         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
27033         gl_LOCALE_H_DEFAULTS): New macros.
27034         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
27035         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
27036         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
27037         REPLACE_DUPLOCALE.
27038         * modules/duplocale: New file.
27039         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
27040
27041 2009-11-22  Bruno Haible  <bruno@clisp.org>
27042
27043         * modules/locale-tests (configure.ac): Test for newlocale function.
27044         * tests/test-locale.c: When the system has extended locale functions,
27045         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
27046
27047         locale: Make locale_t available when possible.
27048         * lib/locale.in.h: Include <xlocale.h> when it exists.
27049         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
27050         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
27051         * modules/locale (Depends-on): Add extensions.
27052         (Makefile.am): Also substitute HAVE_XLOCALE_H.
27053         * doc/posix-headers/locale.texi: Document the problem with locale_t.
27054
27055 2009-11-22  Bruno Haible  <bruno@clisp.org>
27056
27057         Add comments.
27058         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
27059         invocation.
27060         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27061         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27062         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27063
27064 2009-11-22  Bruno Haible  <bruno@clisp.org>
27065
27066         error: account for the possibility of freopen (stdout).
27067         * lib/error.c: Include <unistd.h>.
27068         (flush_stdout): New function, extracted from error and error_at_line.
27069         Determine stdout's fd dynamically.
27070         (error, error_at_line): Invoke flush_stdout.
27071         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
27072         * modules/error (Depends-on): Add unistd.
27073
27074 2009-11-22  Bruno Haible  <bruno@clisp.org>
27075
27076         diffseq: Add comment.
27077         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
27078
27079 2009-11-22  Jim Meyering  <meyering@redhat.com>
27080
27081         c-stack: avoid defining an unused static function
27082         * lib/c-stack.c (find_stack_direction): Do not define this function
27083         when it will not be used.
27084
27085         diffseq: avoid spurious gcc warnings
27086         * lib/diffseq.h (IF_LINT2): Define.
27087         (compareseq): Use it to initialize two members of "part".
27088         This avoids two used-uninitialized warnings.
27089
27090 2009-11-21  Jim Meyering  <meyering@redhat.com>
27091
27092         c-stack: avoid "ignoring return value of `write'" warning
27093         * lib/c-stack.c: Include "ignore-value.h".
27094         (die): Explicitly ignore each write return value.
27095         * modules/c-stack (Depends-on): Add ignore-value.
27096
27097 2009-11-21  Bruno Haible  <bruno@clisp.org>
27098
27099         diffseq: reduce scope of variable 'best'.
27100         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
27101         variable, earlier used for two different purposes.
27102
27103 2009-11-21  Jim Meyering  <meyering@redhat.com>
27104
27105         diffseq: remove useless assignment to "best"
27106         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
27107         assignment.  At that point "best" is already guaranteed to be zero.
27108
27109 2009-11-20  Eric Blake  <ebb9@byu.net>
27110
27111         build: mention ftp redirector in release announcements
27112         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
27113         values that used to come from cfg.mk; mention FTP redirect URL.
27114         * build-aux/announce-gen: Mention the mirror list.
27115         Suggested by Karl Berry.
27116
27117         nanosleep: improve port to mingw
27118         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
27119         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
27120         LIB_NANOSLEEP, but only when needed.
27121         * modules/select (Link): Document LIBSOCKET.
27122         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
27123         enough.
27124
27125         nanosleep: work around cygwin bug
27126         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
27127         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
27128         bug.
27129         (getnow): Delete, not needed.
27130         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
27131         LIB_CLOCK_GETTIME.
27132         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
27133         clock-time, gettime.
27134         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
27135         bug.
27136         * modules/nanosleep-tests: New test.
27137         * tests/test-nanosleep.c: New file.
27138
27139         sleep: work around cygwin bug
27140         * lib/sleep.c (rpl_sleep): Work around the bug.
27141         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
27142         (gl_PREREQ_SLEEP): Delete unused macro.
27143         * modules/sleep (Depends-on): Add verify.
27144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27145         * modules/unistd (Makefile.am): Substitute witness.
27146         * lib/unistd.in.h (sleep): Update prototype.
27147         * doc/posix-functions/sleep.texi (sleep): Document the bug.
27148         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
27149         * modules/sleep-tests (Depends-on): Check for alarm.
27150
27151 2009-11-20  Jim Meyering  <meyering@redhat.com>
27152
27153         maint.mk: improve sc_prohibit_magic_number_exit
27154         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
27155         so it does not match uses like System.exit(1).
27156         Add comments showing how to correct all offenders.
27157
27158 2009-11-19  Eric Blake  <ebb9@byu.net>
27159
27160         xalloc-die-tests: add missing library
27161         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
27162
27163         test-xvasprintf: silence compiler warnings
27164         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
27165         empty string from gcc.
27166
27167 2009-11-19  Jim Meyering  <meyering@redhat.com>
27168
27169         xfreopen: new module, from coreutils
27170         * modules/xfreopen: New module.
27171         * lib/xfreopen.c: New file.
27172         * lib/xfreopen.h: New file.
27173         * MODULES.html.sh (File stream based Input/Output"): Add it.
27174
27175 2009-11-19  Eric Blake  <ebb9@byu.net>
27176
27177         manywarnings: depend on warnings
27178         * modules/manywarnings (Depends-on): Add warnings.
27179
27180         build: avoid compiler warnings
27181         * lib/select.c (rpl_select): Delete unused variable.
27182         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
27183
27184 2009-11-18  Eric Blake  <ebb9@byu.net>
27185
27186         tests: avoid false negative with --with-packager
27187         * tests/test-version-etc.sh: Discard packager information.
27188         * tests/test-argp-version-etc-1.sh: Likewise.
27189         Reported by Mike Frysinger.
27190
27191         utimens: fix regression on Solaris
27192         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
27193         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
27194         can only change fd timestamps via futimesat.  Instead, use an
27195         additional witness macro to avoid BSD bug.
27196         Reported by Jim Meyering.
27197
27198 2009-11-17  Eric Blake  <ebb9@byu.net>
27199
27200         usleep: use it to simplify tests
27201         * modules/stat-time-tests (Depends-on): Add usleep.
27202         (configure.ac): Drop usleep check.
27203         * modules/chown-tests (Depends-on, configure.ac): Likewise.
27204         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
27205         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
27206         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27207         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27208         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27209         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27210         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27211         Likewise.
27212         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27213         * tests/test-lchown.h (nap): Likewise.
27214         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27215         * tests/test-stat-time.c (nap): Likewise.
27216         * tests/test-utimens-common.h (nap): Update comments.
27217
27218         usleep: new module
27219         * modules/usleep: New file.
27220         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27221         * lib/usleep.c (usleep): Likewise.
27222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27223         * modules/unistd (Makefile.am): Substitute witnesses.
27224         * lib/unistd.in.h (usleep): Add declaration.
27225         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27226         * MODULES.html.sh (Date and time): Likewise.
27227         * modules/usleep-tests (Depends-on): New test.
27228         * tests/test-usleep.c: New file.
27229
27230         chown: work around OpenBSD bug
27231         * lib/chown.c (rpl_chown): Work around the bug.
27232         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27233         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27234         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27235         * modules/chown (Depends-on): Add stdbool.
27236         * modules/lchown (Depends-on): Likewise.
27237         * doc/posix-functions/chown.texi (chown): Document the bug.
27238         * doc/posix-functions/lchown.texi (lchown): Likewise.
27239         * tests/test-lchown.h (test_chown): Relax test.
27240
27241         mkstemp: avoid conflict with C++ keyword template
27242         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27243         * lib/mkostemp.c (mkostemp): Likewise.
27244         * lib/mkostemps.c (mkostemps): Likewise.
27245         * lib/mkstemp.c (mkstemp): Likewise.
27246         * lib/mkstemps.c (mkstemps): Likewise.
27247
27248         xalloc-die-tests: optimize
27249         * tests/test-xalloc-die.sh: Reduce number of processes.
27250
27251 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27252
27253         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27254         patch from ludo@gnu.org (Ludovic Courtès).
27255
27256 2009-11-17  Jim Meyering  <meyering@redhat.com>
27257
27258         version-etc: use proper license string
27259         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27260         * modules/version-etc-fsf: Likewise.
27261
27262 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27263
27264         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27265         printed to stdout.  Deal with EOL differences.
27266
27267 2009-11-17  Eric Blake  <ebb9@byu.net>
27268
27269         unsetenv: work around Solaris bug
27270         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27271         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27272         Reported by Jim Meyering.
27273
27274         vasnprintf: avoid compiler warnings
27275         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27276         variables.
27277         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27278
27279 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27280
27281         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27282         settings since xalloc-die is no longer the self test,
27283         xalloc-die.sh is.
27284
27285 2009-11-17  Jim Meyering  <meyering@redhat.com>
27286
27287         test-xalloc-die.sh: make the code agree with the commit log
27288         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27289         at the end, just in case you happen to have a test-xalloc-die
27290         program in some other PATH directory.
27291
27292         test-xalloc-die.sh: fix a portability bug
27293         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27294         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27295         Otherwise, argv[0] (as often seen in diagnostics) would be too
27296         system-dependent, sometimes with, and sometimes without the leading "./".
27297
27298         version-etc-fsf: relax license to LGPLv3+
27299         * modules/version-etc-fsf (License): Relax license.
27300
27301 2009-11-16  Eric Blake  <ebb9@byu.net>
27302
27303         xalloc-die-tests: avoid printing null pointer
27304         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27305         shell script.
27306         * tests/test-xalloc-die.c (program_name): Declare.
27307         * tests/test-xalloc-die.sh (tmpfiles): New file.
27308
27309         setenv, unsetenv: work around various bugs
27310         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27311         (setenv) [HAVE_SETENV]: Work around bugs.
27312         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27313         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27314         for bugs.
27315         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27316         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27318         * modules/stdlib (Makefile.am): Update substitutions.
27319         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27320         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27321         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27322         * modules/setenv-tests: New test.
27323         * modules/unsetenv-tests: Likewise.
27324         * tests/test-setenv.c: New file.
27325         * tests/test-unsetenv.c: Likewise.
27326
27327 2009-11-16  Jim Meyering  <meyering@redhat.com>
27328
27329         version-etc: relax license to LGPLv3+
27330         * modules/version-etc (License): Relax license.
27331
27332         better AC_REQUIRE expanded-before-required-warning avoidance
27333         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27334         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27335         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27336         which is no longer needed.
27337
27338 2009-11-16  Eric Blake  <ebb9@byu.net>
27339
27340         test-freading: clean up temporary file
27341         * tests/test-freading.c (main): Remove file on success, and use
27342         ASSERT more liberally.
27343         Reported by Jim Meyering.
27344
27345 2009-11-16  Jim Meyering  <meyering@redhat.com>
27346
27347         avoid new AC_REQUIRE expanded-before-required warnings
27348         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27349         merely using it.
27350         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27351         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27352
27353 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27354
27355         * tests/test-xalloc-die.c: New file.
27356         * modules/xalloc-die-tests: New file.
27357         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27358         XFAIL_TESTS so it can be appended by modules.
27359
27360 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27361
27362         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27363         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27364
27365 2009-11-14  Eric Blake  <ebb9@byu.net>
27366
27367         fnmatch: avoid compiler warning
27368         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27369         to silence compiler warning about mismatch signedness in ?:.
27370         Reported by Robert Millan.
27371
27372         intprops: add double-inclusion guard
27373         * lib/intprops.h: Allow idempotent includes.
27374         Suggested by Bruce Korb.
27375
27376         openat: detect Solaris fchownat bug
27377         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27378         penalizing glibc chownat when only lchownat is broken.
27379         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27380         trailing slash bugs.
27381         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27382         * modules/openat-tests (Files): Include more files.
27383         (Depends-on): Add mgetgroups, sleep, stat-time.
27384         (configure.ac): Add additional checks.
27385         (Makefile.am): Build new test.
27386         * tests/test-fchownat.c: New file.
27387
27388         lchown: detect Solaris and FreeBSD bug
27389         * lib/lchown.c (rpl_lchown): Work around bug.
27390         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27392         * modules/unistd (Makefile.am): Populate it.
27393         * lib/unistd.in.h (lchown): Update declaration.
27394         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27395         * modules/lchown-tests: New file.
27396         * tests/test-lchown.h (test_lchown): Likewise.
27397         * tests/test-lchown.c (main): Likewise.
27398
27399         chown: detect Solaris and FreeBSD bug
27400         * lib/chown.c (rpl_chown): Work around bug.
27401         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27402         (gl_PREREQ_CHOWN): Delete.
27403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27404         * modules/unistd (Makefile.am): Populate it.
27405         * lib/unistd.in.h (chown): Update declaration.
27406         * lib/lchown.c (chown): Update client.
27407         * modules/lchown (Depends-on): Add lstat.
27408         * doc/posix-functions/chown.texi (chown): Document the bug.
27409         * doc/posix-functions/getgroups.texi (getgroups): Document
27410         getgroups pitfall.
27411         * modules/chown-tests: New file.
27412         * tests/test-chown.h (test_chown): Likewise.
27413         * tests/test-chown.c (main): Likewise.
27414
27415 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27416
27417         gnulib-tool: correctly detect absence of m4 directories
27418         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27419
27420 2009-11-14  Jim Meyering  <meyering@redhat.com>
27421
27422         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27423         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27424
27425 2009-11-14  John W. Eaton  <jwe@gnu.org>
27426
27427         strftime.h: wrap funtion declaration in extern "C" block
27428         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27429
27430 2009-11-13  Eric Blake  <ebb9@byu.net>
27431
27432         getgroups: avoid compiler warning
27433         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27434
27435         getgroups: work around FreeBSD bug
27436         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27437         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27438         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27439         * tests/test-getgroups.c (main): Fix buffer overrun.
27440
27441         getgroups: avoid compilation failure
27442         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27443         * modules/getgroups (Depends-on): Add stdint.
27444
27445 2009-11-13  Jim Meyering  <meyering@redhat.com>
27446
27447         test-getgroups: avoid compilation failure
27448         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27449
27450 2009-11-13  Eric Blake  <ebb9@byu.net>
27451
27452         mgetgroups: new module, taken from coreutils
27453         * modules/mgetgroups: New file.
27454         * lib/mgetgroups.h: Likewise.
27455         * lib/mgetgroups.c (mgetgroups): Likewise.
27456         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27457         * MODULES.html.sh (Users and groups): Mention it.
27458
27459         getgroups: don't expose GETGROUPS_T to user
27460         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27461         an element at a time if GETGROUPS_T is wrong size.
27462         * lib/getugroups.h (getugroups): Change signature.
27463         * lib/unistd.in.h (getgroups): Likewise.
27464         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27465         signature needs fixing.
27466         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27467         AC_TYPE_GETGROUPS.
27468         * modules/group-member (Depends-on): Add getgroups.
27469         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27470         (group_member): Rely on getgroups replacement.
27471         * lib/getugroups.c (getugroups): Use gid_t.
27472         * tests/test-getgroups.c (main): Likewise.
27473         * NEWS: Mention the signature change.
27474         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27475         problem with signature.
27476         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27477         GETGROUPS_T is still useful for setgroups.
27478
27479         getgroups, getugroups: provide stubs for mingw
27480         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27481         * lib/getugroups.c (getugroups): Likewise.
27482         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27483         function.  Modernize replacement scheme.
27484         (gl_PREREQ_GETGROUPS): Delete.
27485         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27486         * modules/getgroups (configure.ac): Declare witness.
27487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27488         * modules/unistd (Depends-on): Substitute witness.
27489         * lib/unistd.in.h (getgroups): Declare replacement.
27490
27491         getgroups: avoid calling exit
27492         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27493         drop xalloc.
27494         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27495         dependencies.
27496         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27497         exiting, in the rare case of malloc failure.
27498
27499         getgroups: fix logic error
27500         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27501         has more than 20 groups.
27502         * modules/getgroups-tests: New test.
27503         * tests/test-getgroups.c: New file.
27504
27505 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27506
27507         * tests/test-base64.c: Improve.
27508
27509 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27510
27511         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27512         Blake <ebb9@byu.net>.
27513
27514 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27515
27516         * tests/test-xvasprintf.c: Add %s%s related checks.
27517
27518 2009-11-12  Eric Blake  <ebb9@byu.net>
27519
27520         version-etc: match standards.texi style
27521         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27522         and use <> only for URLs.
27523
27524 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27525
27526         fts: do not fail on a submount during traversal
27527         * lib/fts.c (fts_build): Read the stat info again after opening
27528         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27529         Original report at http://bugzilla.redhat.com/501848.
27530
27531 2009-11-12  Jim Meyering  <meyering@redhat.com>
27532
27533         bootstrap: sync from coreutils
27534         * build-aux/bootstrap (bootstrap_epilogue): New function.
27535         Use git_modules_config in one more place.  This make bootstrap's
27536         --gnulib-srcdir option more useful for testing.
27537
27538         bootstrap: generalize autoheader check
27539         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27540         AC_CONFIG_HEADERS.
27541
27542 2009-11-11  Eric Blake  <ebb9@byu.net>
27543
27544         mkfifoat: use new modules for Solaris and BSD bugs
27545         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27546         * lib/mkfifoat.c (mknodat): Split...
27547         * lib/mknodat.c (mknodat): ...into new file.
27548         * modules/mkfifoat (Files): Ship new file.
27549         (Depends-on): Add mkfifo, mknod.
27550         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27551         (Depends-on): Add symlink.
27552         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27553         redundant with test_mkfifo.h.
27554         (do_mkfifoat, do_mknodat): New helpers.
27555
27556         mknod: new module
27557         * modules/mknod: New file.
27558         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27559         * lib/mknod.c (mknod): Likewise.
27560         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27561         defaults.
27562         * modules/sys_stat (Makefile.am): Substitute them.
27563         * lib/sys_stat.in.h (mknod): Declare replacement.
27564         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27565         Document it.
27566         * doc/posix-functions/mknod.texi (mknod): Likewise.
27567         * modules/mknod-tests: New test.
27568         * tests/test-mknod.c: Likewise.
27569
27570         mkfifo: new module
27571         * modules/mkfifo: New file.
27572         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27573         * lib/mkfifo.c (mkfifo): Likewise.
27574         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27575         defaults.
27576         * modules/sys_stat (Makefile.am): Substitute them.
27577         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27578         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27579         Document it.
27580         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27581         * modules/mkfifo-tests: New test.
27582         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27583         from test-mkfifoat.c.
27584         * tests/test-mkfifo.c: New file.
27585
27586         readlink: detect FreeBSD bug
27587         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27588         slash on symlink.
27589         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27590         * tests/test-readlink.h (test_readlink): Enhance test.
27591
27592         symlink: detect FreeBSD bug
27593         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27594         slash on symlink.
27595         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27596         * tests/test-symlink.h (test_symlink): Enhance test.
27597
27598 2009-11-10  Eric Blake  <ebb9@byu.net>
27599
27600         link: detect FreeBSD bug
27601         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27602         symlink.
27603         * doc/posix-functions/link.texi (link): Document the bug.
27604         * tests/test-link.h (test_link): Enhance test.
27605         * tests/test-linkat.c (main): Update caller.
27606
27607         unlink, remove: detect FreeBSD bug
27608         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27609         slash on symlink.
27610         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27611         * doc/posix-functions/remove.texi (remove): Likewise.
27612         * tests/test-unlink.h (test_unlink): Enhance test.
27613         * tests/test-remove.c (main): Likewise.
27614
27615 2009-11-09  Eric Blake  <ebb9@byu.net>
27616
27617         rename: detect FreeBSD bug
27618         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27619         slash on symlink.
27620         * modules/renameat-tests (Depends-on): Add filenamecat.
27621         * tests/test-rename.h (test_rename): Allow one more errno.
27622         * tests/test-renameat.c (main): Likewise.
27623         * doc/posix-functions/rename.texi (rename): Document the bug.
27624
27625         open: detect FreeBSD bug
27626         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27627         symlink.
27628         * doc/posix-functions/open.texi (open): Document the bug.
27629         * doc/posix-functions/utimes.texi (utimes): Likewise.
27630         * tests/test-open.h (test_open): Add parameters, and test symlink
27631         handling.
27632         * tests/test-open.c (main): Adjust caller.
27633         * tests/test-fcntl-safer.c (main): Likewise.
27634         * modules/open-tests (Depends-on): Add stdbool, symlink.
27635         * modules/fcntl-safer-tests (Depends-on): Likewise.
27636         * tests/test-openat.c (main): Add test-open tests.
27637
27638         stat: detect FreeBSD bug
27639         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27640         symlink.
27641         * doc/posix-functions/stat.texi (stat): Document the bug.
27642         * tests/test-stat.h (test_stat_func): Add argument.
27643         * tests/test-stat.c (main): Adjust caller.
27644         * tests/test-fstatat.c (main): Likewise.
27645         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27646         Reported by Jim Meyering.
27647
27648 2009-11-09  James Youngman  <jay@gnu.org>
27649
27650         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27651         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27652
27653 2009-11-08  Jim Meyering  <meyering@redhat.com>
27654
27655         utimens: remove invalid futimesat call
27656         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27657         It used the file descriptor of the target file as the DIR_FD
27658         parameter and NULL as the file name.  That caused failure with
27659         errno == EFAULT on FreeBSD-8.0-rc2
27660
27661 2009-11-07  Eric Blake  <ebb9@byu.net>
27662
27663         fflush, freadseek: use fseeko, not fseek
27664         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27665         (clear_ungetc_buffer): Avoid potential problems on large files.
27666         * lib/freadseek.c (freadseek): Likewise.
27667         * modules/freadseek (Depends-on): Add fseeko.
27668         * modules/fseek (configure.ac): Set a witness.
27669         * tests/test-fflush.c (main): Use fseeko.
27670         * tests/test-fpurge.c (fseek): Disable link warning.
27671         * tests/test-freadable.c (fseek): Likewise.
27672         * tests/test-freading.c (fseek): Likewise.
27673         * tests/test-fseeko.c (fseek): Likewise.
27674         * tests/test-ftell.c (fseek): Likewise.
27675         * tests/test-ftello.c (fseek): Likewise.
27676         * tests/test-fwritable.c (fseek): Likewise.
27677         * tests/test-fwriting.c (fseek): Likewise.
27678
27679 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27680
27681         * modules/memchr (Depends-on): Drop getpagesize dependency.
27682
27683 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27684
27685         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27686         Reported by Ludovic Courtès.
27687         * build-aux/pmccabe2html: Improve example usage.
27688         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27689
27690 2009-11-06  Jim Meyering  <meyering@redhat.com>
27691
27692         do-release-commit-and-tag: New module.
27693         Automate the release-commit and tag process.
27694         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27695         * modules/do-release-commit-and-tag: New file.
27696         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27697
27698 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27699
27700         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27701         because test-select.c uses inet_pton.
27702
27703 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27704
27705         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27706         GETADDRINFO_LIB.  Bump serial number.
27707         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27708         Suggested by Eric Blake <ebb9@byu.net>.
27709
27710 2009-11-05  Eric Blake  <ebb9@byu.net>
27711
27712         strtod: detect darwin bug
27713         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27714         Reported by Leo Davis.
27715
27716         freopen-safer: new module
27717         * modules/freopen-safer: New module.
27718         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27719         * lib/freopen-safer.c (freopen_safer): New file.
27720         * lib/stdio-safer.h (freopen_safer): New declaration.
27721         * lib/stdio--.h (freopen): New override.
27722         * MODULES.html.sh (File stream based Input/Output): Mention it.
27723         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27724         freopen-safer module.
27725         * doc/posix-functions/stderr.texi (stderr): Likewise.
27726         * doc/posix-functions/stdin.texi (stdin): Likewise.
27727         * doc/posix-functions/stdout.texi (stdout): Likewise.
27728         * modules/freopen-safer-tests: New test.
27729         * tests/test-reopen-safer.c: New file.
27730
27731 2009-11-05  Jim Meyering  <meyering@redhat.com>
27732
27733         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27734         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27735
27736 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27737
27738         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27739
27740 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27741
27742         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27743
27744 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27745
27746         Fix link error.
27747         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27748         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27749
27750 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27751
27752         * tests/test-func.c: Also test value of __func__.
27753
27754 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27755
27756         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27757         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27758
27759 2009-11-05  Bruno Haible  <bruno@clisp.org>
27760
27761         Fix link error.
27762         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27763         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27764         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27765
27766 2009-11-05  Bruno Haible  <bruno@clisp.org>
27767
27768         Tests for module 'inet_pton'.
27769         * modules/inet_pton-tests: New file.
27770         * tests/test-inet_pton.c: New file.
27771
27772 2009-11-05  Bruno Haible  <bruno@clisp.org>
27773
27774         Tests for module 'inet_ntop'.
27775         * modules/inet_ntop-tests: New file.
27776         * tests/test-inet_ntop.c: New file.
27777
27778 2009-11-04  Eric Blake  <ebb9@byu.net>
27779
27780         stdlib-safer: wrap all mkstemp variants
27781         * modules/mkostemp (configure.ac): Set witness.
27782         * modules/mkostemps (configure.ac): Likewise.
27783         * modules/mkstemps (configure.ac): Likewise.
27784         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
27785         (mkstemps_safer): Wrap more functions.
27786         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
27787         wrapping.
27788         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
27789         (mkstemps_safer): Implement the wrappers.
27790
27791         mkstemps, mkostemps: new modules
27792         * modules/mkostemps: New module.
27793         * modules/mkstemps: Likewise.
27794         * lib/mkostemps.c (mkostemps): New file.
27795         * lib/mkstemps.c (mkstemps): Likewise.
27796         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
27797         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
27798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
27799         * modules/stdlib (Makefile.am): Substitute them.
27800         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
27801         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
27802         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27803         * doc/gnulib.texi (Glibc stdlib.h): Include them.
27804         * MODULES.html.sh (File system functions): Mention them.
27805
27806         tempname: resync from glibc
27807         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
27808         same values for __GT_FILE as glibc.  Abort even when assertions
27809         are disabled.
27810         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
27811         match its value otherwise.  Allow idempotent inclusion.
27812         * lib/mkdtemp.c (mkdtemp): Adjust caller.
27813         * lib/mkostemp.c (mkostemp): Likewise.
27814         * lib/mkstemp.c (mkstemp): Likewise.
27815         * lib/tmpfile.c (tmpfile): Likewise.
27816         * NEWS: Document this.
27817
27818         utimens: fix use of futimens on older Linux
27819         * lib/utimens.c (fdutimens): Use updated, rather than original,
27820         timespec to avoid bug in older Linux kernel.
27821         Reported by Simon Josefsson.
27822
27823 2009-11-04  Bruno Haible  <bruno@clisp.org>
27824
27825         Make num_processors more flexible and consistent.
27826         * lib/nproc.h (enum nproc_query): New type.
27827         (num_processors): Add a 'query' argument.
27828         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
27829         (num_processors): Add a 'query' argument. Test the value of the
27830         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
27831         mingw, count the number of CPUs available for the current process.
27832         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
27833         Check for sched_getaffinity and sched_getaffinity_np.
27834         * modules/nproc (Depends-on): Add c-ctype, extensions.
27835         * NEWS: Mention the change.
27836
27837 2009-11-03  Bruno Haible  <bruno@clisp.org>
27838
27839         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
27840
27841 2009-11-03  Jim Meyering  <meyering@redhat.com>
27842
27843         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
27844         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
27845         if it is defined.
27846
27847 2009-11-02  Eric Blake  <ebb9@byu.net>
27848
27849         mktime, timegm: share common declaration
27850         * lib/mktime-internal.h: New file.
27851         * lib/mktime.c: Use it rather than open-coding a declaration.
27852         * lib/timegm.c: Likewise.
27853         * modules/mktime (Files): Ship it.
27854         * modules/timegm (Files): Likewise.
27855         Suggested by Bruno Haible.
27856
27857         test-update-copyright: update test to match script changes
27858         * tests/test-update-copyright.sh: Avoid hard-coding perl
27859         location.  Don't update *.bak created by earlier runs.
27860
27861 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27862             Simon Josefsson  <simon@josefsson.org>
27863             Bruno Haible  <bruno@clisp.org>
27864
27865         Fix link error on Solaris 8.
27866         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
27867         also in libnsl. Define also INET_PTON_LIB.
27868         * modules/inet_pton (Link): New section.
27869
27870 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27871             Bruno Haible  <bruno@clisp.org>
27872
27873         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
27874         * modules/inet_ntop (Link): New section.
27875         Reported by Boyan Kasarov <bkasarov@gmail.com>.
27876
27877 2009-11-02  Eric Blake  <ebb9@byu.net>
27878
27879         maint: avoid compiler warnings in m4 macros
27880         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
27881         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
27882
27883 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27884
27885         * m4/pmccabe2html.m4: Remove file.
27886         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
27887         function.  Change maintainer.
27888         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
27889         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
27890         Courtès).
27891
27892 2009-10-31  Eric Blake  <ebb9@byu.net>
27893
27894         fseeko: fix m4 regression
27895         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
27896         regression from 2009-10-27.
27897         Reported by Ralf Wildenhues.
27898
27899 2009-10-31  Jim Meyering  <meyering@redhat.com>
27900
27901         inttostr: aesthetics and improved (compile-time) safety
27902         Define inttype_is_signed rather than inttype_is_unsigned,
27903         since the sole use is via "#if inttype_is_signed".
27904         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
27905         inttype_is_unsigned.
27906         * lib/offtostr.c (inttype_is_signed): Likewise.
27907         * lib/uinttostr.c (inttype_is_signed): Likewise.
27908         * lib/umaxtostr.c (inttype_is_signed): Likewise.
27909         * lib/inttostr.c (inttostr): Use verify to cross-check the
27910         inttype_is_signed value and the signedness of the actual type.
27911         * modules/inttostr (Depends-on): Add verify.
27912
27913 2009-10-30  Eric Blake  <ebb9@byu.net>
27914
27915         build: avoid compiler warnings
27916         * lib/fchmodat.c (lchmod): Mark unused variables.
27917         * lib/getopt.c (_getopt_initialize): Likewise.
27918         * lib/mktime.c (__mktime_internal): Provide prototype.
27919         * lib/inttostr.c (inttostr): Avoid compiler warning even with
27920         older gcc that do not understand #pragma GCC diagnostic.
27921         * lib/uinttostr.c (inttype_is_unsigned): Define.
27922         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
27923
27924 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27925
27926         stat: fix compilation on AIX
27927         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
27928         only see struct stat64.
27929
27930 2009-10-30  Eric Blake  <ebb9@byu.net>
27931
27932         exclude: make more robust
27933         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
27934         rather than masking a coding bug.
27935         Suggested by Bruno Haible.
27936
27937 2009-10-30  Jim Meyering  <meyering@redhat.com>
27938
27939         perl scripts: remove #!/usr/bin/perl in favor of more portable...
27940         Rather than putting #!/usr/bin/perl on the first line,
27941         start with a variant of what's recommended by "man perlrun" that
27942         invokes the first "perl" program from your shell's search path.
27943         * build-aux/gitlog-to-changelog: Replace #!... as above.
27944         Add a "Local Variables" perl mode setting.
27945         Prompted by a patch from Ludovic Courtès.
27946         Improved by Eric Blake.
27947         * build-aux/useless-if-before-free: Likewise.
27948         * build-aux/announce-gen: Likewise.
27949         * build-aux/update-copyright: Likewise.
27950
27951 2009-10-29  Eric Blake  <ebb9@byu.net>
27952
27953         filenamecat-lgpl: adjust clients
27954         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
27955         filenamecat.
27956         * modules/renameat (Depends-on): Likewise.
27957
27958         filenamecat: split into filenamecat-lgpl
27959         * modules/filenamecat-lgpl: New module.
27960         * modules/filenamecat (Files): Move library-safe files into
27961         filenamecat-lgpl.
27962         (Depends-on): Add filenamecat-lgpl.
27963         (configure.ac): Declare witness.
27964         * lib/filenamecat.h (file_name_concat): Only declare when using
27965         GPL module.
27966         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
27967         Move...
27968         * lib/filenamecat-lgpl.c: ...into new file.
27969         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
27970         (gl_FILE_NAME_CONCAT): Use it.
27971         * MODULES.html.sh (File system functions): Mention new module.
27972
27973         argp: avoid memory leak
27974         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
27975         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
27976         base_name, since the latter malloc()s and can call exit().
27977         Leak introduced 2006-07-03.
27978
27979         dirname-lgpl: adjust clients that don't need full dirname
27980         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
27981         * modules/filenamecat (Depends-on): Likewise.
27982         * modules/linkat (Depends-on): Likewise.
27983         * modules/mkancesdirs (Depends-on): Likewise.
27984         * modules/mkdir (Depends-on): Likewise.
27985         * modules/openat (Depends-on): Likewise.
27986         * modules/savewd (Depends-on): Likewise.
27987         * modules/rename (Depends-on): Likewise.
27988         (License): Relax license.
27989         * modules/mkdir-tests (Depends-on): Drop progname.
27990         (Makefile.am): Delete unneeded LDADD.
27991         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
27992
27993         dirname: split into dirname-lgpl
27994         * modules/dirname-lgpl: New module.
27995         * modules/dirname (Files): Move library-safe files into
27996         dirname-lgpl.
27997         (Depends-on): Add dirname-lgpl.
27998         (configure.ac): Declare witness.
27999         * modules/double-slash-root (License): Relax license.
28000         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
28001         module.
28002         * lib/dirname.c (dir_len, mdir_name): Move...
28003         * lib/dirname-lgpl.c: ...into new file.
28004         * lib/basename.c (last_component, base_len): Move...
28005         * lib/basename-lgpl.c: ...into new file.
28006         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
28007         (gl_DIRNAME): Use it.
28008         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
28009         Mention new module.
28010         * modules/dirname-tests (Depends-on): Add progname.
28011         * tests/test-dirname.c (program_name): Delete.
28012
28013         mkdir: make safe for libraries
28014         * modules/mkdir (Depends-on): Drop xalloc.
28015         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
28016         exit.
28017
28018         tests: avoid some compiler warnings
28019         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
28020         literals.
28021         * tests/test-memchr.c (main): Avoid type mismatch.
28022         * tests/test-arpa_inet.c (main): Avoid unused parameters.
28023         * tests/test-base64.c (main): Likewise.
28024         * tests/test-getdelim.c (main): Likewise.
28025         * tests/test-gethostname.c (main): Likewise.
28026         * tests/test-getline.c (main): Likewise.
28027         * tests/test-netinet_in.c (main): Likewise.
28028         * tests/test-select.c (open_server_socket, main): Likewise.
28029         * tests/test-select-stdin.c (main): Likewise.
28030         * tests/test-sockets.c (main): Likewise.
28031         * tests/test-strsignal.c (main): Likewise.
28032         * tests/test-sys_select.c (main): Likewise.
28033         * tests/test-sys_socket.c (main): Likewise.
28034         * tests/test-u64.c (main): Likewise.
28035         * tests/test-xfprintf-posix.c (main): Likewise.
28036         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
28037
28038         sockets: avoid compiler warning
28039         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
28040
28041         maint: detect usage(1) and other suspicious exits
28042         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
28043
28044 2009-10-29  Jim Meyering  <meyering@redhat.com>
28045
28046         timespec: long-to-int truncation could make timespec_cmp malfunction
28047         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
28048         a multiple of 2^32 nanoseconds as no difference.
28049
28050 2009-10-28  Jim Meyering  <meyering@redhat.com>
28051
28052         fprintftime: wrap macro code argument in "do {...} while(0)"
28053         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
28054         cpy macro must be a statement that can be followed by a semicolon.
28055         Now that the else clause contains a comment and is hence longer
28056         than one line, I require curly braces.  That in turn requires
28057         that we wrap this code block in the standard do...while(0).
28058
28059         fprintftime: remove stray semicolon from previous change
28060         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
28061
28062         fprintftime: avoid a warning about ignored fwrite return value
28063         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
28064         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
28065         that is unsafe.
28066         * modules/fprintftime (Depends-on): Add ignore-value.
28067
28068         exclude: avoid an unwarranted warning
28069         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
28070
28071 2009-10-27  Eric Blake  <ebb9@byu.net>
28072
28073         fseek: avoid compilation failure when fflush is replaced
28074         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
28075         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
28076         module is in use.
28077         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
28078         module is not in use; since REPLACE_FSEEK worked otherwise.
28079         (GNULIB_FTELLO): Likewise for ftell.
28080         Reported by Ian Beckwith and others.
28081
28082 2009-10-27  Bruno Haible  <bruno@clisp.org>
28083
28084         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
28085         Reported by Jim Meyering.
28086
28087 2009-10-27  Jim Meyering  <jim@meyering.net>
28088             Bruno Haible  <bruno@clisp.org>
28089
28090         Avoid warning despite dropping the return value of fwrite.
28091         * lib/unicodeio.c: Include ignore-value.h.
28092         (fwrite_success_callback): Explicitly ignore fwrite's return value.
28093         * modules/unicodeio (Depends-on): Add ignore-value.
28094
28095 2009-10-26  Eric Blake  <ebb9@byu.net>
28096
28097         areadlinkat: fix fallback path
28098         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
28099         pointer and zero.
28100
28101 2009-10-22  Pádraig Brady  <P@draigBrady.com>
28102
28103         Use a better IO block size for modern systems
28104         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
28105         * lib/md2.c: Likewise.
28106         * lib/md4.c: Likewise.
28107         * lib/md5.c: Likewise.
28108         * lib/sha1.c: Likewise.
28109         * lib/sha256.c: Likewise.
28110         * lib/sha512.c: Likewise.
28111
28112 2009-10-22  Eric Blake  <ebb9@byu.net>
28113
28114         tests: avoid several compiler warnings
28115         * tests/test-getcwd.c (main): Avoid buffer underflow.
28116         * tests/test-getdate.c (main): String literals are not safe with
28117         putenv, so use setenv.  Declare unused argument.
28118         * modules/getdate-tests (Depends-on): Add setenv.
28119         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
28120         problems with string literals in char *.
28121         * tests/test-hash.c (main): Avoid shadowing declaration.
28122         (insert_new): Treat string literals as char const *.
28123         * tests/test-getopt.h (test_getopt): Likewise.
28124         (getopt_loop): Alter types to minimize casting elsewhere.
28125         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
28126         (test_getopt_long_posix): Likewise.
28127         (do_getopt_long): Add wrapper to minimize casting.
28128         * tests/test-atexit.c (clear_temp_file): Use void.
28129         * tests/test-areadlink-with-size.c (main): Declare unused
28130         arguments.
28131         * tests/test-areadlink.c (main): Likewise.
28132         * tests/test-areadlinkat-with-size.c (main): Likewise.
28133         * tests/test-areadlinkat.c (main): Likewise.
28134         * tests/test-canonicalize-lgpl.c (main): Likewise.
28135         * tests/test-canonicalize.c (main): Likewise.
28136         * tests/test-dirent-safer.c (main): Likewise.
28137         * tests/test-dirname.c (main): Likewise.
28138         * tests/test-dup2.c (main): Likewise.
28139         * tests/test-fchdir.c (main): Likewise.
28140         * tests/test-fcntl-h.c (main): Likewise.
28141         * tests/test-fcntl-safer.c (main): Likewise.
28142         * tests/test-fdopendir.c (main): Likewise.
28143         * tests/test-fdutimensat.c (main): Likewise.
28144         * tests/test-fflush.c (main): Likewise.
28145         * tests/test-filenamecat.c (main): Likewise.
28146         * tests/test-filevercmp.c (main): Likewise.
28147         * tests/test-fopen-safer.c (main): Likewise.
28148         * tests/test-fopen.c (main): Likewise.
28149         * tests/test-fpending.c (main): Likewise.
28150         * tests/test-fpurge.c (main): Likewise.
28151         * tests/test-freading.c (main): Likewise.
28152         * tests/test-fstatat.c (main): Likewise.
28153         * tests/test-fsync.c (main): Likewise.
28154         * tests/test-futimens.c (main): Likewise.
28155         * tests/test-getndelim2.c (main): Likewise.
28156         * tests/test-gettimeofday.c (main): Likewise.
28157         * tests/test-getopt.c (main): Likewise.
28158         * tests/test-i-ring.c (main): Likewise.
28159         * tests/test-inttypes.c (main): Likewise.
28160         * tests/test-link.c (main): Likewise.
28161         * tests/test-lstat.c (main): Likewise.
28162         * tests/test-math.c (main): Likewise.
28163         * tests/test-md5.c (main): Likewise.
28164         * tests/test-memchr2.c (main): Likewise.
28165         * tests/test-memrchr.c (main): Likewise.
28166         * tests/test-mkdir.c (main): Likewise.
28167         * tests/test-mkdirat.c (main): Likewise.
28168         * tests/test-mkfifoat.c (main): Likewise.
28169         * tests/test-open.c (main): Likewise.
28170         * tests/test-openat-safer.c (main): Likewise.
28171         * tests/test-openat.c (main): Likewise.
28172         * tests/test-quotearg.c (main): Likewise.
28173         * tests/test-rawmemchr.c (main): Likewise.
28174         * tests/test-readlink.c (main): Likewise.
28175         * tests/test-remove.c (main): Likewise.
28176         * tests/test-rename.c (main): Likewise.
28177         * tests/test-renameat.c (main): Likewise.
28178         * tests/test-rmdir.c (main): Likewise.
28179         * tests/test-sha1.c (main): Likewise.
28180         * tests/test-signal.c (main): Likewise.
28181         * tests/test-sigaction.c (main): Likewise.
28182         * tests/test-stat.c (main): Likewise.
28183         * tests/test-stat-time.c (main): Likewise.
28184         * tests/test-stddef.c (main): Likewise.
28185         * tests/test-stdint.c (main): Likewise.
28186         * tests/test-stdio.c (main): Likewise.
28187         * tests/test-stdlib.c (main): Likewise.
28188         * tests/test-strchrnul.c (main): Likewise.
28189         * tests/test-strerror.c (main): Likewise.
28190         * tests/test-string.c (main): Likewise.
28191         * tests/test-strtod.c (main): Likewise.
28192         * tests/test-strverscmp.c (main): Likewise.
28193         * tests/test-symlink.c (main): Likewise.
28194         * tests/test-symlinkat.c (main): Likewise.
28195         * tests/test-sys_stat.c (main): Likewise.
28196         * tests/test-sys_time.c (main): Likewise.
28197         * tests/test-time.c (main): Likewise.
28198         * tests/test-unistd.c (main): Likewise.
28199         * tests/test-unlink.c (main): Likewise.
28200         * tests/test-unlinkat.c (main): Likewise.
28201         * tests/test-utimens.c (main): Likewise.
28202         * tests/test-utimensat.c (main): Likewise.
28203         * tests/test-version-etc.c (main): Likewise.
28204         * tests/test-wchar.c (main): Likewise.
28205         * tests/test-wctype.c (main): Likewise.
28206         * tests/test-xprintf-posix.c (main): Likewise.
28207         * tests/test-posixtm.c (main): Likewise.
28208         (STREQ): Delete unused macro.
28209         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28210         shadowed variables.
28211         * tests/test-memchr.c (main): Likewise.
28212
28213 2009-10-21  Eric Blake  <ebb9@byu.net>
28214
28215         areadlinkat: avoid failure on older glibc
28216         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28217         rather than mis-comparing 0 against FUNC_RESULT of char*.
28218
28219 2009-10-21  Bruno Haible  <bruno@clisp.org>
28220
28221         * modules/stpncpy (License): Relicense under LGPLv2+.
28222         Reported by David Lutterkort <lutter@redhat.com>.
28223
28224 2009-10-20  Eric Blake  <ebb9@byu.net>
28225
28226         utimensat: work around Solaris 9 bug
28227         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28228         has trailing slash bugs.
28229         * tests/test-lutimens.h (test_lutimens): Enhance test.
28230         * tests/test-utimens.h (test_utimens): Likewise.
28231         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28232         * doc/posix-functions/utimes.texi (utimes): Likewise.
28233         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28234         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28235         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28236         * doc/posix-functions/futimens.texi (futimens): Likewise.
28237
28238         fdutimensat: new module
28239         * modules/fdutimensat: New file.
28240         * lib/fdutimensat.c (fdutimensat): Likewise.
28241         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28242         * MODULES.html.sh (File system functions): Mention module.
28243         * modules/fdutimensat-tests: New test.
28244         * tests/test-fdutimensat.c: Likewise.
28245
28246         doc: regenerate INSTALL
28247         * doc/INSTALL: Reflect recent autoconf update.
28248         * doc/INSTALL.ISO: Likewise.
28249         * doc/INSTALL.UTF-8: Likewise.
28250
28251 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28252
28253         acl: warn if ACL support is not detected
28254         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28255
28256 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28257
28258         * lib/nproc.h: Add extern "C" block for C++.
28259
28260 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28261             Bruno Haible  <bruno@clisp.org>
28262
28263         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28264         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28265         * doc/posix-functions/isalpha.texi: Likewise.
28266         * doc/posix-functions/isblank.texi: Likewise.
28267         * doc/posix-functions/iscntrl.texi: Likewise.
28268         * doc/posix-functions/isdigit.texi: Likewise.
28269         * doc/posix-functions/isgraph.texi: Likewise.
28270         * doc/posix-functions/islower.texi: Likewise.
28271         * doc/posix-functions/isprint.texi: Likewise.
28272         * doc/posix-functions/ispunct.texi: Likewise.
28273         * doc/posix-functions/isspace.texi: Likewise.
28274         * doc/posix-functions/isupper.texi: Likewise.
28275         * doc/posix-functions/isxdigit.texi: Likewise.
28276
28277 2009-10-18  Bruno Haible  <bruno@clisp.org>
28278
28279         Tests for module 'isblank'.
28280         * modules/isblank-tests: New file.
28281         * tests/test-isblank.c: New file.
28282
28283         New module 'isblank'.
28284         * lib/isblank.c: New file.
28285         * m4/isblank.m4: New file.
28286         * modules/isblank: New file.
28287         * doc/posix-functions/isblank.texi: Mention the new module.
28288
28289 2009-10-18  Bruno Haible  <bruno@clisp.org>
28290
28291         New module 'ctype'.
28292         * lib/ctype.in.h: New file.
28293         * m4/ctype.m4: New file.
28294         * modules/ctype: New file.
28295         * doc/posix-headers/ctype.texi: Mention the new module.
28296
28297 2009-10-18  Jim Meyering  <meyering@redhat.com>
28298
28299         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28300         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28301         right after its initialization, rather than farther down.
28302         Keeping these in close proximity makes it easier to ensure
28303         that each such variable is initialized.  E.g.,
28304
28305             LIB_CLOCK_GETTIME=
28306             AC_SUBST([LIB_CLOCK_GETTIME])
28307
28308         This change also increments these serial numbers.
28309         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28310         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28311         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28312
28313 2009-10-18  Bruno Haible  <bruno@clisp.org>
28314
28315         Don't let environment variables perturb build.
28316         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28317         (gl_PREREQ_GETHRXTIME): ... not here.
28318
28319 2009-10-18  Bruno Haible  <bruno@clisp.org>
28320
28321         Avoid symlink attack in localcharset module.
28322         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28323         (O_NOFOLLOW): Define fallback.
28324         (get_charset_aliases): Don't open the file if it is a symbolic link.
28325         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28326         gl_FCNTL_H.
28327         (gl_FCNTL_H): Require it.
28328         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28329         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28330         Reported by Fergal Glynn <fglynn@veracode.com>.
28331
28332 2009-10-18  Bruno Haible  <bruno@clisp.org>
28333
28334         Implement nproc for mingw.
28335         * lib/nproc.c: Include <windows.h>
28336         (num_processors): On native Windows platforms, try GetSystemInfo.
28337
28338 2009-10-18  Bruno Haible  <bruno@clisp.org>
28339
28340         Implement nproc for IRIX.
28341         * lib/nproc.c: Include <sys/sysmp.h>.
28342         (num_processors): On IRIX systems, try sysmp.
28343         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28344
28345 2009-10-18  Bruno Haible  <bruno@clisp.org>
28346
28347         Implement nproc for HP-UX.
28348         * lib/nproc.c: Include <sys/pstat.h>
28349         (num_processors): On HP-UX systems, try pstat_getdynamic.
28350         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28351         pstat_getdynamic.
28352
28353 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28354             Bruno Haible  <bruno@clisp.org>
28355
28356         Implement nproc for NetBSD, OpenBSD.
28357         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28358         (ARRAY_SIZE): New macro.
28359         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28360         * m4/nproc.m4: New file.
28361         * modules/nproc (Files): Add m4/nproc.m4.
28362         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28363         (Makefile.am): Instead, augment lib_SOURCES.
28364
28365 2009-10-18  Bruno Haible  <bruno@clisp.org>
28366
28367         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28368         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28369         sys/param.h.
28370
28371 2009-10-16  Eric Blake  <ebb9@byu.net>
28372
28373         utimensat: new module
28374         * modules/utimensat: New file.
28375         * lib/utimensat.c (utimensat): Likewise.
28376         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28377         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28378         so we can work around Linux bugs.
28379         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28380         * modules/sys_stat (Makefile.am): Substitute them.
28381         * lib/sys_stat.in.h (utimensat): Declare it.
28382         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28383         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28384         * modules/utimensat-tests: New test.
28385         * tests/test-utimensat.c: Likewise.
28386
28387         utimens: let lutimens work on non-symlinks
28388         * lib/utimens.c (lutimens): Fall back to utimens rather than
28389         failing with ENOSYS, when file is not a symlink.
28390         (utimens): Reduce redirection.
28391         * tests/test-lutimens.h (test_lutimens): Update test to cover
28392         non-symlinks.
28393         * tests/test-utimens.h (test_utimens): Update test to cover
28394         symlinks.
28395         * tests/test-utimens.c (main): Update caller.
28396
28397         utimens: cache whether utimensat syscall works
28398         * lib/utimens.c (utimensat_works_really): New cache variable.
28399         (fdutimens, lutimens): Use it to avoid failing syscall.
28400
28401         test-stat-time, test-utimens: improve portability
28402         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28403         ext4 on alpha, and for cygwin.
28404         * tests/test-utimens-common.h: New file.
28405         (nap): Factor delays into single function.
28406         * tests/test-lutimens.h (test_lutimens): Use new header.
28407         * tests/test-futimens.h (test_futimens): Likewise.
28408         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28409         timestamps to occur from same machine, as was done previously for
28410         test_utimens.
28411         * modules/utimens-tests (Files): Ship new file.
28412         * modules/futimens-tests (Files): Likewise.
28413         Reported in part by Jim Meyering.
28414
28415         sys_stat: sort replacement declarations
28416         * lib/sys_stat.in.h: Sort declarations.
28417         * lib/futimens.c (futimens): Fix typo.
28418
28419 2009-10-15  Jim Meyering  <meyering@redhat.com>
28420
28421         don't let environment settings perturb build
28422         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28423         could cause a configure-time and/or build-time malfunction.
28424         Typically, a configure-time function-in-library test is performed
28425         via code like this:
28426
28427           LIB_VAR=
28428           AC_SUBST([LIB_VAR])
28429           prefix_saved_LIBS=$LIBS
28430             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28431                        [test "$ac_cv_search_FUNC" = "none required" ||
28432                         LIB_VAR=$ac_cv_search_FUNC])
28433           LIBS=$prefix_saved_LIBS
28434
28435         However, in each of the files affected by this change, the LIB_VAR=
28436         initialization was omitted.  Thus, when set in the environment, its
28437         value would propagate into generated Makefiles when FUNC is not found
28438         in LIB_NAME.
28439         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28440         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28442
28443 2009-10-14  Eric Blake  <ebb9@byu.net>
28444
28445         fchdir: avoid infinite recursion in mingw
28446         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28447         recursing.
28448
28449         test-stat-time: port to mingw
28450         * tests/test-stat-time.c (force_unlink): Return a value.
28451         (test_ctime) [W32]: Fix compilation error.
28452         (nap): Don't call usleep with too large an argument.  Use
28453         force_unlink.
28454         * doc/pastposix-functions/usleep.texi (usleep): Document the
28455         portability issue.
28456
28457 2009-10-13  Jim Meyering  <meyering@redhat.com>
28458
28459         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28460         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28461         * modules/pipe-filter-ii: Likewise.
28462         * modules/sys_socket-tests: Likewise.
28463         * modules/tsearch-tests: Likewise.
28464         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28465         (check): Depend on it.
28466
28467 2009-10-12  Eric Blake  <ebb9@byu.net>
28468
28469         utimens-tests: port to NFS file systems
28470         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28471         comparisons to avoid spurious failures from timestamp drift
28472         between NFS machines.
28473
28474 2009-10-12  Eric Blake  <ebb9@byu.net>
28475
28476         stat-time-tests: minor cleanups
28477         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28478         * tests/test-stat-time.c (nap): Separate assignment from call.
28479         Suggested by Paolo Bonzini and Bruno Haible.
28480
28481         sys_stat: guarantee struct timespec
28482         * lib/sys_stat.in.h (includes): Always include <time.h>
28483         * modules/sys_stat (Depends-on): Add time.
28484         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28485         mode_t permission values.
28486         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28487         get at subsecond timestamps.
28488
28489 2009-10-10  Eric Blake  <ebb9@byu.net>
28490
28491         futimens: new module
28492         * modules/futimens: New file.
28493         * lib/futimens.c (futimens): Likewise.
28494         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28495         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28496         we can work around Linux bugs.
28497         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28498         * modules/sys_stat (Makefile.am): Substitute them.
28499         * lib/sys_stat.in.h (futimens): Declare it.
28500         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28501         * doc/posix-functions/futimens.texi (futimens): Likewise.
28502         * modules/futimens-tests: New test.
28503         * tests/test-futimens.c: Likewise.
28504
28505         utimens: introduce fdutimens
28506         * lib/utimens.h (fdutimens): New prototype.
28507         * lib/utimens.c (gl_futimens): Move guts...
28508         (fdutimens): ...to new interface.
28509         * tests/test-utimens.c (do_fdutimens): Use it.
28510
28511         utimens: add UTIME_NOW and UTIME_OMIT support
28512         * lib/utimens.c (validate_timespec, update_timespec): New helper
28513         functions.
28514         (gl_futimens, lutimens): Use them.
28515         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28516         stdbool, sys_stat.
28517         (Link): Mention resulting library dependency.
28518         * modules/utimecmp (Link): Likewise.
28519         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28520         (Makefile.am): Pick up library dependency.
28521         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28522         definition.
28523         * tests/test-sys_stat.c: Test the definitions.
28524         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28525         * NEWS: Document library dependency.
28526
28527         utimecmp: support symlink timestamps
28528         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28529         hashing when possible.  Use pathconf when available.
28530         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28531         * modules/utimecmp (Depends-on): Add lstat.
28532
28533         utimens: add lutimens interface
28534         * lib/utimens.c (lutimens): New function.
28535         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28536         * lib/utimens.h (lutimens): Declare new interface.
28537         * tests/test-utimens.c (main): Enhance test.
28538         * tests/test-lutimens.h (test_lutimens): New file.
28539         * modules/utimens-tests (Files): Distribute it.
28540         (Depends-on): Add symlink.
28541         (configure.ac): Check for usleep.
28542
28543         utimens: validate futimens usage
28544         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28545         fewer syscalls on failure later on.  Avoid compiler warning on
28546         mingw.
28547         * modules/utimens (Depends-on): Add dup2.
28548
28549         utimens: add test
28550         * modules/utimens-tests: New test.
28551         * tests/test-utimens.h: New file.
28552         * tests/test-futimens.h: Likewise.
28553         * tests/test-utimens.c: Likewise.
28554
28555         doc: mention timestamp portability issues
28556         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28557         instead.
28558         * doc/posix-functions/utime.texi (utime): Likewise.
28559         * doc/posix-functions/utimes.texi (utimes): Likewise.
28560         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28561         instead.
28562         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28563         module.
28564         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28565         Mention weakness with symlink timestamps.
28566         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28567         to utimensat/futimens instead.
28568         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28569
28570         test-dup2: enhance test
28571         * tests/test-dup2.c (main): Also check AT_FDCWD.
28572
28573         test-stat-time: avoid more spurious failures
28574         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28575         xfs; and avoid race if the two timestamps cross quantization edge.
28576
28577         relocatable: prefer 'file system' over 'filesystem'
28578         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28579         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28580         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28581         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28582         * lib/relocatable.c (compute_curr_prefix): Likewise.
28583
28584 2009-10-10  Jim Meyering  <meyering@redhat.com>
28585
28586         stat-time-tests: check for the usleep function
28587         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28588
28589 2009-10-10  Bruno Haible  <bruno@clisp.org>
28590
28591         * modules/xnanosleep: Put the Link section after the Include section.
28592
28593 2009-10-09  Eric Blake  <ebb9@byu.net>
28594
28595         dup2: work around FreeBSD 6.1 bug
28596         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28597         * doc/posix-functions/dup2.texi (dup2): Document it.
28598         Reported by Nelson H. F. Beebe and Jim Meyering.
28599
28600         test-stat-time: port to buggy NFS clients
28601         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28602         (test_ctime): Also skip test if mtime and ctime are skewed.
28603
28604         maint: prefer 'file system' over 'filesystem'
28605         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28606         * doc/posix-functions/lstat.texi (lstat): Likewise.
28607         * lib/file-has-acl.c (file_has_acl): Likewise.
28608         * lib/fwriteerror.c [TEST]: Likewise.
28609         * tests/test-areadlink.h (test_areadlink): Likewise.
28610         * tests/test-areadlinkat-with-size.c (main): Likewise.
28611         * tests/test-areadlinkat.c (main): Likewise.
28612         * tests/test-canonicalize-lgpl.c (main): Likewise.
28613         * tests/test-canonicalize.c (main): Likewise.
28614         * tests/test-fstatat.c (main): Likewise.
28615         * tests/test-linkat.c (main): Likewise.
28616         * tests/test-lstat.h (test_lstat_func): Likewise.
28617         * tests/test-mkdir.h (test_mkdir): Likewise.
28618         * tests/test-readlink.h (test_readlink): Likewise.
28619         * tests/test-remove.c (main): Likewise.
28620         * tests/test-rename.h (test_rename): Likewise.
28621         * tests/test-renameat.c (main): Likewise.
28622         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28623         * tests/test-symlink.h (test_symlink): Likewise.
28624         * tests/test-symlinkat.c (main): Likewise.
28625         * tests/test-unlink.h (test_unlink_func): Likewise.
28626         * tests/test-unlinkat.c (main): Likewise.
28627
28628         maint: make realtime library usage explicit
28629         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28630         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28631         * modules/settime (Link): Likewise.
28632         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28633
28634         test-stat-time: speed up execution
28635         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28636         warning on mingw.
28637         (nap): New helper function.
28638         (prepare_test): Use it to reduce sleep time.
28639         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28640         execution.
28641         * modules/stat-time-tests (configure.ac): Check for usleep.
28642
28643 2009-10-09  Jim Meyering  <meyering@redhat.com>
28644
28645         selinux-h: always use getfilecon wrappers
28646         * lib/getfilecon.c: New file.
28647         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28648         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28649         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28650         (fgetfilecon): Provide a stub.
28651         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28652         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28653         file unconditionally.
28654         When <selinux/selinux.h> is found, arrange to use wrappers.
28655         * modules/selinux-h (Files): Add getfilecon.c.
28656         (Makefile.am): Substitute include-next-related bits
28657         into the now-always-generated selinux/selinux.h file.
28658         * doc/glibc-functions/lgetfilecon.texi: New file.
28659         * doc/glibc-functions/fgetfilecon.texi: New file.
28660         * doc/glibc-functions/getfilecon.texi: New file.
28661         * doc/glibc-functions/getfilecon-desc.texi: New file.
28662         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28663         which to pull in the new files.
28664         * MODULES.html.sh (Misc): Add selinux-h.
28665
28666 2009-10-08  Jim Meyering  <meyering@redhat.com>
28667
28668         unistd: fix comment typo
28669         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28670
28671 2009-10-08  Eric Blake  <ebb9@byu.net>
28672
28673         areadlink: use SIZE_MAX consistently
28674         * modules/areadlink (Depends-on): Add stdint.
28675         * modules/areadlink-with-size (Depends-on): Likewise.
28676         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28677         gives NULL; drop sys/types, since unistd gives size_t; and add
28678         stdint for SIZE_MAX.
28679         (SIZE_MAX): Rely on headers.
28680         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28681         and add stdint.
28682         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28683         (SIZE_MAX): Likewise.
28684         (INITIAL_BUF_SIZE): Turn into enum.
28685         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28686
28687 2009-10-08  Jim Meyering  <meyering@redhat.com>
28688
28689         areadlinkat: avoid compilation failure
28690         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28691         Fix typo in comment.
28692
28693 2009-10-07  Eric Blake  <ebb9@byu.net>
28694
28695         areadlinkat-with-size: new module
28696         * modules/areadlinkat-with-size: New module.
28697         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28698         * lib/areadlink.h (areadlinkat): Declare it.
28699         * MODULES.html.sh (File system functions): Mention it.
28700         * modules/areadlinkat-with-size-tests: New test.
28701         * tests/test-areadlinkat-with-size.c: New file.
28702
28703         xreadlinkat: new module
28704         * modules/xreadlinkat: New module.
28705         * lib/xreadlinkat.c (xreadlinkat): New file.
28706         * lib/xreadlink.h (xreadlinkat): Declare it.
28707         * MODULES.html.sh (File system functions): Mention it.
28708
28709         areadlinkat: new module
28710         * lib/at-func.c (FUNC_FAIL): New define.
28711         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28712         * modules/areadlinkat: New module.
28713         * lib/linkat.c (areadlinkat): Move...
28714         * lib/areadlinkat.c (areadlinkat): ...to new file.
28715         * lib/areadlink.h (areadlinkat): Declare it.
28716         * modules/linkat (Depends-on): Add areadlinkat.
28717         * MODULES.html.sh (File system functions): Mention it.
28718         * modules/areadlinkat-tests: New test.
28719         * tests/test-areadlinkat.c: New file.
28720
28721         areadlink, areadlink-with-size: add tests
28722         * modules/areadlink-tests: New test.
28723         * modules/areadlink-with-size-tests: Likewise.
28724         * tests/test-areadlink.h: New file.
28725         * tests/test-areadlink.c: Likewise.
28726         * tests/test-areadlink-with-size.c: Likewise.
28727
28728         maint: minor cleanups
28729         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28730         _UNUSED_PARAMETER_ instead.
28731         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28732         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28733         * modules/linkat-tests (Files): Distribute test-link.h.
28734
28735         openat, utimens: whitespace cleanup
28736         * lib/openat.c: Prefer space throughout, rather than mix of 8
28737         spaces vs. tabs.
28738         * lib/at-func.c: Likewise.
28739         * lib/utimens.c: Likewise.
28740
28741         openat: avoid using wrong fd
28742         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28743         working directory chooses same fd.
28744         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28745
28746         mkdir, mkdirat: fix cygwin 1.5.x bug
28747         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28748         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28749         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28750         bug.
28751         (gl_PREREQ_MKDIR): Delete unused macro.
28752         * modules/mkdir (Files): Track file rename.
28753         (configure.ac): Update macro name.
28754         * modules/openat (Depends-on): Add mkdir.
28755         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28756
28757         mkdir, mkdirat: add tests
28758         * modules/mkdir-tests: New test.
28759         * tests/test-mkdir.h: New file.
28760         * tests/test-mkdir.c: Likewise.
28761         * tests/test-mkdirat.c: Likewise.
28762         * modules/openat-tests (Files): Add new files.
28763         (Makefile.am): Run new test.
28764
28765 2009-10-06  Eric Blake  <ebb9@byu.net>
28766
28767         doc: tweak *at function documentation
28768         * doc/posix-functions/faccessat.texi (faccessat): Mention
28769         known issue with replacement.
28770         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28771         * doc/posix-functions/linkat.texi (linkat): Likewise.
28772         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28773         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28774         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28775         * doc/posix-functions/renameat.texi (renameat): Likewise.
28776         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28777
28778         openat: fix GNU/Hurd bug in unlinkat
28779         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
28780         broken.
28781         * doc/posix-functions/unlink.texi (unlink): Document this.
28782         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
28783
28784         fdopendir: fix GNU/Hurd bug
28785         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
28786         allowing non-directory fds.
28787         * lib/fdopendir.c (rpl_fdopendir): Work around it.
28788         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28789         * modules/dirent (Makefile.am): Substitute it.
28790         * lib/dirent.in.h (fdopendir): Declare replacement.
28791         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
28792         * tests/test-fdopendir.c (main): Test something other than
28793         /dev/null, since on Hurd that behaves like a directory.
28794
28795         test-symlink: port to GNU/Hurd
28796         * tests/test-symlink.h (test_symlink): Relax expected errno.
28797
28798         doc: tweak more cygwin information
28799         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
28800         now compatible with glibc.
28801         * doc/posix-functions/getopt.texi (getopt): Likewise.
28802
28803         getopt-gnu: add another test
28804         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
28805         guarantee behavior relied on by m4.
28806         * tests/test-getopt.c (main): Use it.
28807         * modules/getopt-posix-tests (Depends-on): Add setenv.
28808         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
28809
28810         getopt: fix compilation on darwin
28811         * lib/getopt.in.h (includes): Leave breadcrumbs during system
28812         include.
28813         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
28814         Reported by Ludovic Courtès.
28815
28816 2009-10-06  Bruno Haible  <bruno@clisp.org>
28817
28818         * modules/size_max (Description): Discourage its use.
28819         Reported by Simon Josefsson.
28820
28821 2009-10-06  Jim Meyering  <meyering@redhat.com>
28822
28823         linkat: avoid compilation failure
28824         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
28825
28826 2009-10-05  Eric Blake  <ebb9@byu.net>
28827
28828         linkat: support Linux 2.6.17
28829         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
28830         linkat on Linux, but allow cache variable override.
28831         * lib/linkat.c (rpl_linkat): Define override.
28832         * modules/linkat (Depends-on): Add symlinkat.
28833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
28834         * modules/unistd (Makefile.am): Substitute it.
28835         * lib/unistd.in.h (linkat): Declare replacement.
28836         Reported by Pádraig Brady.
28837
28838         quotearg: port test to systems with C.UTF-8 locale
28839         * tests/test-quotearg.c (struct result_strings): Add another
28840         member, differentiating between C.ASCII and C.UTF-8 handling.
28841         (compare_strings): Add parameter.
28842         (main): Adjust all callers.
28843
28844         getopt: avoid clash with FreeBSD _getopt_internal
28845         * lib/getopt.in.h (_getopt_internal): Override the name.
28846         * lib/getopt_int.h (includes): Pick up any overrides.
28847         Reported by Reuben Thomas.
28848
28849         hash: allow C89 compilation
28850         * lib/hash.c (check_tuning): Move declaration before statement.
28851         Reported by Reuben Thomas.
28852
28853 2009-10-05  Karl Berry  <karl@gnu.org>
28854
28855         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
28856
28857 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
28858             Bruno Haible  <bruno@clisp.org>
28859
28860         * lib/uname.c (uname): Use a table-driven algorithm to compute
28861         Windows NT versions.
28862
28863 2009-10-04  Bruno Haible  <bruno@clisp.org>
28864
28865         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
28866         program_invocation_short_name.
28867         * modules/progname (configure.ac): Test for presence of
28868         program_invocation_short_name.
28869         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28870
28871 2009-10-04  Bruno Haible  <bruno@clisp.org>
28872
28873         * lib/progname.c (set_program_name): Fix comment.
28874         Reported by Jim Meyering.
28875
28876 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28877             Bruno Haible  <bruno@clisp.org>
28878
28879         * lib/uname.c: Include <string.h>.
28880         (uname): Do only one call to GetVersionEx in the common case.
28881
28882 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28883             Bruno Haible  <bruno@clisp.org>
28884
28885         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
28886         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
28887         (uname): Add support for Windows CE and various non-x86 CPU types.
28888
28889 2009-10-03  Bruno Haible  <bruno@clisp.org>
28890
28891         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
28892         invocation to tests/configure.ac.
28893         Reported by Ian Beckwith <ianb@erislabs.net>.
28894
28895 2009-10-02  Eric Blake  <ebb9@byu.net>
28896
28897         fchdir: avoid compiler warning
28898         * lib/fchdir.c (canonicalize_file_name)
28899         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
28900
28901         test-open: support mingw errno values
28902         * tests/test-open.h (test_open): Relax test.
28903         * tests/test-fopen.h (test_fopen): Likewise.
28904         * tests/test-openat-safer.c (main): Likewise.
28905
28906         open: fix opening directory on mingw
28907         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
28908
28909         test-open: on GNU/Hurd, /dev/null is a directory
28910         * tests/test-fopen.h (main): Rename...
28911         (test_fopen): ...to this.  Use a guaranteed non-directory when
28912         confirming open behavior on trailing slash.
28913         * tests/test-openat-safer.c (main): Likewise.
28914         * tests/test-open.h (main): Likewise....
28915         (test_open): ...to this.
28916         * tests/test-fopen.c (main): Adjust caller.
28917         * tests/test-fopen-safer.c (main): Likewise.
28918         * tests/test-open.c (main): Likewise.
28919         * tests/test-fcntl-safer.c (main): Likewise.
28920         Reported by Samuel Thibault.
28921
28922         rename, fchdir: don't ignore chdir failure
28923         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
28924         * lib/rename.c (rpl_rename) [W32]: Likewise.
28925         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
28926         an empty destination directory if source cannot be renamed,
28927         although there is still possibility for failure.
28928         * doc/posix-functions/rename.texi (rename): Document the race.
28929         Reported by Jim Meyering.
28930
28931         maint: cleanup whitespace in recent commits
28932         * lib/rename.c (rpl_rename): Remove tabs.
28933         * tests/test-link.h (test_link): Likewise.
28934         * lib/fchdir.c (get_name): Likewise.
28935         Reported by Jim Meyering.
28936
28937 2009-10-02  Ben Pfaff  <blp@gnu.org>
28938
28939         relocatable-prog-wrapper: Add missing dependency on
28940         double-slash-root.
28941         * modules/relocatable-prog-wrapper: Add dependency.
28942         Reported by Ian Beckwith <ianb@erislabs.net>.
28943
28944 2009-10-02  Eric Blake  <ebb9@byu.net>
28945
28946         renameat: fix Solaris bugs
28947         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
28948         needed fixing.
28949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
28950         * modules/stdio (Makefile.am): Substitute it.
28951         * lib/stdio.in.h (renameat): Declare replacement.
28952         * lib/renameat.c (rpl_renameat): Implement fix.
28953
28954         renameat: new module
28955         * modules/renameat: New file.
28956         * lib/renameat.c (renameat): Likewise.
28957         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
28958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28959         * modules/stdio (Makefile.am): Substitute them.
28960         * lib/stdio.in.h (renameat): Declare it.
28961         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28962         * doc/posix-functions/renameat.texi (renameat): Likewise.
28963         * modules/renameat-tests: New test.
28964         * tests/test-renameat.c: Likewise.
28965
28966         rename: fix mingw bugs
28967         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
28968         directory overwrite bugs.
28969
28970         rename: fix another cygwin 1.5 bug
28971         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
28972         checks.
28973         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
28974         unnecessary cygwin workarounds.  Also work around bug with moving
28975         full directory onto an empty one.
28976         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
28977
28978         rename-dest-slash: merge into rename module
28979         * modules/rename-dest-slash (Status): Mark obsolete.
28980         (Depends-on): Add rename.
28981         (Files): Let rename do it all.
28982         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
28983         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
28984         * m4/rename-dest-slash.m4: ...so this file can be deleted.
28985         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
28986         * lib/rename.c (rpl_rename): Update comments.
28987
28988         rename: fix cygwin 1.5.x bugs
28989         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
28990         * lib/rename.c (rpl_rename): Work around them.
28991         * modules/rename (Depends-on): Add same-inode.
28992
28993         rename: fix Solaris 10 bug
28994         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28995         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
28996         was the only bug.
28997
28998         rename: fix Solaris 9 bug
28999         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
29000         on non-directory.  Avoid calling exit.
29001         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
29002         strdup.
29003         * modules/rename-tests (Depends-on): Drop lstat.
29004         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29005         (gl_PREREQ_RENAME): Delete unused macro.
29006
29007         rename-dest-slash: fix NetBSD bug
29008         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
29009         links.
29010         * modules/rename-dest-slash (Depends-on): Add same-inode.
29011
29012         rename-tests: new test, exposes several platform bugs
29013         * modules/rename-tests: New file.
29014         * tests/test-rename.h: Likewise.
29015         * tests/test-rename.c: Likewise.
29016         * doc/posix-functions/rename.texi (rename): Improve documentation,
29017         including bugs that will eventually be fixed in gnulib.
29018
29019 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
29020
29021         * lib/uname.c: Include <stdlib.h>
29022         (uname): Assume version info is available.
29023
29024 2009-10-02  Jim Meyering  <meyering@redhat.com>
29025
29026         gnu-web-doc-update: correct --help output
29027         * build-aux/gnu-web-doc-update: Make --help output relevant.
29028
29029         gnu-web-doc-update: add standard options
29030         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
29031
29032         gnu-web-doc-update: New module.
29033         Use this script to automatically update the on-line web documentation
29034         for your GNU project at http://www.gnu.org/software/$pkg/manual/
29035         * modules/gnu-web-doc-update: New file, from coreutils.
29036         * build-aux/gnu-web-doc-update: New script.
29037
29038 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
29039
29040         link: LoadLibrary is not needed.
29041         * lib/link.c: Use GetModuleHandle.
29042
29043 2009-10-01  Eric Blake  <ebb9@byu.net>
29044
29045         getopt: bump serial number
29046         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
29047         change.
29048
29049         tests: tighten link, rmdir, and remove tests
29050         * tests/test-link.h (includes): No need to use <config.h> here.
29051         Clean up if directory hard link was created, otherwise test for
29052         trailing '.'.
29053         * tests/test-linkat.c (main): Simplify.
29054         * tests/test-remove.c (main): Enhance test for trailing '.'.
29055         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29056
29057 2009-10-01  Jim Meyering  <meyering@redhat.com>
29058
29059         maint.mk: requiring "make major" was annoying, for a "minor" release.
29060         What is intended is "stable", to contrast with alpha and beta,
29061         so require "make stable", not "make major".
29062         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
29063         (get_tool_versions): Likewise.
29064         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
29065
29066 2009-09-30  Ben Pfaff  <blp@gnu.org>
29067
29068         Fix broken build of replacement for Windows tmpfile().
29069         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
29070         flags argument added along with the 'mkostemp' module.
29071
29072 2009-09-28  Bruno Haible  <bruno@clisp.org>
29073
29074         Avoid identifier clash with POSIX function 'remove' defined as a macro.
29075         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
29076         to 'remove_elt'.
29077         (gl_list_remove): Update.
29078         * lib/gl_list.c (gl_list_remove): Update.
29079         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
29080         to 'remove_elt'.
29081         (gl_oset_remove): Update.
29082         * lib/gl_list.c (gl_oset_remove): Update.
29083         Reported by Eric Blake.
29084
29085 2009-09-28  Eric Blake  <ebb9@byu.net>
29086
29087         doc: mention yet more cygwin 1.7 status
29088         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
29089         cygwin.
29090         * doc/glibc-functions/execvpe.texi (execvpe): New file.
29091         * doc/gnulib.texi (Glibc unistd.h): Mention it.
29092
29093         argp: fix test failure
29094         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
29095         that are not upper-case.  Pass correct range to tolower.
29096
29097 2009-09-27  Jim Meyering  <meyering@redhat.com>
29098
29099         test-yesno: work around sparc-dash here-document infelicity
29100         Without this change, the literal \177 byte in a here document
29101         would make dash 0.5.5.1-3 access uninitialized memory.
29102         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
29103         Instead, use a marker, "@", and filter through tr to create the desired
29104         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
29105
29106 2009-09-27  Bruno Haible  <bruno@clisp.org>
29107
29108         Disable untested support for new flavours of ACLs on AIX.
29109         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
29110         progress.
29111         * lib/set-mode-acl.c (qset_acl): Likewise.
29112
29113 2008-12-07  Bruno Haible  <bruno@clisp.org>
29114
29115         Add support for new flavours of ACLs on AIX. (Untested.)
29116         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
29117         (file_has_acl): Add support for newer AIX.
29118         * lib/set-mode-acl.c (qset_acl): Likewise.
29119         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
29120         Rainer Tammer <tammer@tammer.net>.
29121
29122 2009-09-26  Eric Blake  <ebb9@byu.net>
29123
29124         argp: fix compilation of getopt
29125         * lib/getopt.in.h (includes): Use different guard than glibc.
29126         Reported by Sergey Poznyakoff.
29127
29128         doc: mention more cygwin 1.7 status
29129         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
29130         bug.
29131         * doc/posix-functions/execl.texi (execl): Likewise.
29132         * doc/posix-functions/execle.texi (execle): Likewise.
29133         * doc/posix-functions/execlp.texi (execlp): Likewise.
29134         * doc/posix-functions/execv.texi (execv): Likewise.
29135         * doc/posix-functions/execve.texi (execve): Likewise.
29136         * doc/posix-functions/execvp.texi (execvp): Likewise.
29137         * doc/glibc-functions/canonicalize_file_name.texi
29138         (canonicalize_file_name): Cygwin 1.7 now provides this.
29139         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
29140         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
29141         on AT_SYMLINK_NOFOLLOW.
29142
29143 2009-09-24  Eric Blake  <ebb9@byu.net>
29144
29145         test-linkat: make test more robust
29146         * tests/test-linkat.c (main): Avoid collision with EEXIST.
29147
29148         getopt: fix inclusion guards for cygwin
29149         * modules/getopt-posix (Depends-on): Add include-next.
29150         (Makefile.am): Substitute more items in replacement header.
29151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
29152         <getopt.h>.
29153         * lib/getopt.in.h (includes): Use split inclusion guard, and
29154         prefer <getopt.h> over include <unistd.h> when one is present.
29155         (option): Also override name of 'struct option'.
29156
29157         same-inode: revert prior change; it is not yet ready
29158         * NEWS: Undo mention of this change.
29159         * lib/same-inode.h (same-inode.h): Undo tri-state change.
29160         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29161         * lib/cycle-check.c (cycle_check): Likewise.
29162         * lib/same.c (same_name): Likewise.
29163         * lib/at-func2.c (at_func2): Likewise.
29164
29165 2009-09-23  Eric Blake  <ebb9@byu.net>
29166
29167         linkat: new module
29168         * modules/linkat: New file.
29169         * lib/at-func2.c (at_func2): Likewise.
29170         * lib/linkat.c (linkat): Likewise.
29171         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29172         * lib/openat-priv.h (at_func2): Add declaration.
29173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29174         * modules/unistd (Makefile.am): Substitute them.
29175         * lib/unistd.in.h (linkat): Declare it.
29176         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29177         * doc/posix-functions/linkat.texi (linkat): Likewise.
29178         * doc/posix-functions/link.texi (link): Tweak wording.
29179         * tests/test-link.c (main): Move guts...
29180         * tests/test-link.h (test_link): ...into new file.
29181         * modules/linkat-tests: New test.
29182         * tests/test-linkat.c: Likewise.
29183         * modules/link-tests (Files): Ship new file.
29184         (Depends-on): Add stdbool.
29185
29186         dirname: add library-safe mdir_name
29187         * lib/dirname.h (mdir_name): New prototype.
29188         * lib/dirname.c (dir_name): Move guts...
29189         (mdir_name): ...to new function that avoids xalloc_die.
29190
29191         fchdir: another mingw fix
29192         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
29193         * lib/fchdir.c (get_name): New helper method; skips canonicalize
29194         on mingw (where it has not yet been ported), and make it optional
29195         elsewhere.
29196         (_gl_register_fd): Use it.
29197
29198         same-inode: make SAME_INODE tri-state, to port to mingw
29199         * NEWS: Mention this change.
29200         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
29201         st_ino always being 0.
29202         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29203         * lib/cycle-check.c (cycle_check): Likewise.
29204         * lib/same.c (same_name): Likewise.
29205
29206         lstat: avoid mingw compilation error
29207         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29208         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29209         lstat ourselves.
29210         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29211         was adequate.
29212         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29213         the checks for lstat.
29214         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29215
29216         link: fix test failure on Solaris 9
29217         * lib/link.c (rpl_link): Don't assume link will catch bogus
29218         trailing slash on source.
29219
29220         test-symlinkat: enhance test
29221         * tests/test-readlink.c (main): Move guts...
29222         * tests/test-readlink.h (test_readlink): ...into new file.
29223         * tests/test-symlink.c (main): Move guts...
29224         * tests/test-symlink.h (test_symlink): ...into new file.
29225         * tests/test-symlinkat.c (main): Use new files for further
29226         coverage.
29227         (do_symlink, do_readlink): New helper functions.
29228         * modules/symlink-tests (Files): Ship new file.
29229         (Depends-on): Add stdbool.
29230         * modules/readlink-tests (Files): Ship new file.
29231         (Depends-on): Add stdbool.
29232         * modules/symlinkat-tests (Files): Use new files.
29233
29234 2009-09-23  Eric Blake  <ebb9@byu.net>
29235
29236         readlink: document portability issue with symlink length
29237         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29238         systems have bogus st_size on symlinks, and mention the
29239         areadlink-with-size module.
29240         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29241         * doc/posix-functions/readlink.texi (readlink): Mention the
29242         areadlink module, and ERANGE failure.
29243         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29244         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29245
29246         readlink: fix Solaris 9 bug with trailing slash
29247         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29248         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29249         * doc/posix-functions/readlink.texi (readlink): Document this.
29250         * modules/readlink-tests: New test.
29251         * tests/test-readlink.c: Likewise.
29252
29253         readlink: fix cygwin 1.5.x bug with return type
29254         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29255         * lib/unistd.in.h (readlink): Use ssize_t.
29256         * lib/readlink.c (readlink): Likewise.
29257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29258         * modules/unistd (Makefile.am): Substitute it.
29259         * lib/unistd.in.h (readlink): Declare replacement.
29260         * doc/posix-functions/readlink.texi (readlink): Document this.
29261
29262         symlink: use throughout gnulib
29263         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29264         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29265         symlink is not used.
29266         * modules/symlinkat (Depends-on): Add symlink.
29267         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29268         * modules/canonicalize-tests (Depends-on): Likewise.
29269         * modules/lstat-tests (Depends-on): Likewise.
29270         * modules/openat-tests (Depends-on): Likewise.
29271         * modules/remove-tests (Depends-on): Likewise.
29272         * modules/rmdir-tests (Depends-on): Likewise.
29273         * modules/unlink-tests (Depends-on): Likewise.
29274         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29275         * tests/test-canonicalize.c (symlink): Likewise.
29276         * tests/test-fstatat.c (symlink): Likewise.
29277         * tests/test-lstat.c (symlink): Likewise.
29278         * tests/test-remove.c (symlink): Likewise.
29279         * tests/test-rmdir.c (symlink): Likewise.
29280         * tests/test-unlink.c (symlink): Likewise.
29281         * tests/test-unlinkat.c (symlink): Likewise.
29282
29283         symlink: new module, for Solaris 9 bug
29284         * modules/symlink: New file.
29285         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29286         * lib/symlink.c: Likewise.
29287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29288         * modules/unistd (Makefile.am): Substitute them.
29289         * lib/unistd.in.h (symlink): Declare replacement.
29290         * MODULES.html.sh (File system functions): Mention it.
29291         * doc/posix-functions/symlink.texi (symlink): Likewise.
29292         * modules/symlink-tests: New test.
29293         * tests/test-symlink.c: Likewise.
29294
29295 2009-09-23  Bruno Haible  <bruno@clisp.org>
29296
29297         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29298         when needed.
29299         Test case: gnulib-tool --import --with-tests atexit inttypes.
29300         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29301
29302 2009-09-23  Bruno Haible  <bruno@clisp.org>
29303
29304         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29305         subcommand, not in a subshell.
29306
29307 2009-09-22  Eric Blake  <ebb9@byu.net>
29308
29309         unistd: sort replacement declarations
29310         * lib/unistd.in.h: Sort declarations.
29311
29312         open, openat: minor optimization
29313         * lib/open.c (open): If open succeeded, len is non-zero.
29314         * lib/openat.c (rpl_openat): Likewise.
29315
29316         link-follow: ensure correct result
29317         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29318         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29319         distinguish between possible failures.
29320
29321 2009-09-21  Eric Blake  <ebb9@byu.net>
29322
29323         fts: avoid compiler warning
29324         * lib/fts.c (dirent_inode_sort_may_be_useful)
29325         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29326
29327 2009-09-19  Bruno Haible  <bruno@clisp.org>
29328
29329         * lib/progreloc.c (canonicalize_file_name): New declaration.
29330
29331 2009-09-19  Eric Blake  <ebb9@byu.net>
29332
29333         link: fix quoting
29334         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29335
29336         openat: fix openat bugs on Solaris 9
29337         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29338         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29339         * modules/openat (Depends-on): Add open.
29340         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29341         * modules/fcntl-h (Makefile.am): Substitute it.
29342         * lib/fcntl.in.h (openat): Declare replacement.
29343         * doc/posix-functions/openat.texi (openat): Document this.
29344
29345         openat: move fstatat and unlinkat into correct files
29346         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29347         compiled.
29348         * lib/openat.c (fstatat, unlinkat): Move...
29349         * lib/fstatat.c (fstatat): ...into correct files.
29350         * lib/unlinkat.c (unlinkat): Likewise.
29351
29352         openat: fix unlinkat bugs on Solaris 9
29353         * lib/unlinkat.c (unlinkat): New file.
29354         * modules/openat (Depends-on): Add unlink.
29355         (Files): Distribute it.
29356         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29357         trailing slash behavior is broken.
29358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29359         * modules/unistd (Makefile.am): Substitute it.
29360         * lib/unistd.in.h (unlinkat): Declare replacement.
29361         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29362
29363         openat: fix fstatat bugs on Solaris 9
29364         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29365         stat.
29366         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29367
29368         test-unlinkat: enhance test, to expose Solaris 9 bug
29369         * tests/test-unlink.c (main): Factor guts...
29370         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29371         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29372         * tests/test-rmdir.c (main): Adjust caller.
29373         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29374         (unlinker): New helper function.
29375         (rmdirat): Enhance check.
29376         * modules/rmdir-tests (Depends-on): Add stdbool.
29377         * modules/unlink-tests (Depends-on): Likewise.
29378         (Files): Add test-unlink.h.
29379         * modules/openat-tests (Files): Likewise.
29380         (Depends-on): Add unlinkdir.
29381
29382         test-fstatat: new test, to expose Solaris 9 bugs
29383         * tests/test-stat.c (main): Factor guts...
29384         * tests/test-stat.h (test_stat_func): ...into new file.
29385         * tests/test-lstat.c (main): Factor guts...
29386         * tests/test-lstat.h (test_lstat_func): ...into new file.
29387         * tests/test-fstatat.c: New file.
29388         * modules/stat-tests (Files): Add test-stat.h.
29389         * modules/lstat-tests (Files): Add test-lstat.h.
29390         (Depends-on): Add stdbool.
29391         * modules/openat-tests (Depends-on): Add pathmax.
29392         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29393         (Makefile.am): Run new test.
29394
29395         remove: new module, for mingw and Solaris 9 bugs
29396         * modules/remove: New file.
29397         * lib/remove.c: Likewise.
29398         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29400         * modules/stdio (Makefile.am): Use them.
29401         * lib/stdio.in.h (remove): Declare replacement.
29402         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29403         * doc/posix-functions/remove.texi (remove): Likewise.
29404         * modules/remove-tests: New test.
29405         * tests/test-remove.c: Likewise.
29406
29407         unlink: new module, for Solaris 9 bug
29408         * modules/unlink: New file.
29409         * lib/unlink.c: Likewise.
29410         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29412         * modules/unistd (Makefile.am): Use them.
29413         * lib/unistd.in.h (stat): Declare replacement.
29414         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29415         * doc/posix-functions/unlink.texi (unlink): Likewise.
29416         * modules/unlink-tests: New test.
29417         * tests/test-unlink.c: Likewise.
29418
29419         lstat: fix Solaris 9 bug
29420         * lib/lstat.c (lstat): Also check for trailing slash on
29421         non-symlink, non-directories.  Use stat module to simplify logic.
29422         * doc/posix-functions/lstat.texi (lstat): Document it.
29423         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29424         (configure.ac): Check for symlink.
29425         * tests/test-lstat.c (main): Add more tests.
29426
29427         stat: add as dependency to other modules
29428         * modules/chown (Depends-on): Add stat.
29429         * modules/euidaccess (Depends-on): Likewise.
29430         * modules/fchdir (Depends-on): Likewise.
29431         * modules/isdir (Depends-on): Likewise.
29432         * modules/link (Depends-on): Likewise.
29433         * modules/lstat (Depends-on): Likewise.
29434         * modules/mkdir-p (Depends-on): Likewise.
29435         * modules/modechange (Depends-on): Likewise.
29436         * modules/open (Depends-on): Likewise.
29437         * modules/readlink (Depends-on): Likewise.
29438         * modules/same (Depends-on): Likewise.
29439
29440         stat: fix Solaris 9 bug
29441         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29442         slash.
29443         * lib/stat.c (rpl_stat): Work around it.
29444         * doc/posix-functions/stat.texi (stat): Update documentation.
29445
29446         stat: new module, for mingw bug
29447         * modules/stat: New file.
29448         * lib/stat.c: Likewise.
29449         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29450         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29451         * modules/sys_stat (Makefile.am): Use them.
29452         * lib/sys_stat.in.h (stat): Declare replacement.
29453         * lib/openat.c (fstatat): Deal with lstat and stat being function
29454         macros.
29455         * modules/openat (Depends-on): Add inline.
29456         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29457         * doc/posix-functions/stat.texi (stat): Likewise.
29458         * modules/stat-tests: New test.
29459         * tests/test-stat.c: Likewise.
29460
29461 2009-09-19  Jim Meyering  <meyering@redhat.com>
29462
29463         syntax-check: detect unnecessary inclusion of canonicalize.h
29464         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29465
29466 2009-09-19  Eric Blake  <ebb9@byu.net>
29467
29468         canonicalize-lgpl: adjust clients to use correct header
29469         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29470         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29471         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29472         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29473         * lib/progreloc.c (includes): Likewise.
29474
29475 2009-09-19  Jim Meyering  <meyering@redhat.com>
29476
29477         test-posixtm.c: correct a comment
29478         * tests/test-posixtm.c: Correct first-line comment.
29479         Spotted by Eric Blake.
29480
29481 2009-09-16  Jim Meyering  <meyering@redhat.com>
29482
29483         posixtm-tests: make T const-correct; add a test case
29484         * tests/test-posixtm.c (T): Declare const.
29485         Add a test for -(2^31+1).
29486         Remove useless can-succeed-only-in-2002 test.
29487
29488         posixtm-tests: adjust the sole failing test
29489         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29490         expected output matches what mktime now produces.  Cross-checked via
29491         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29492
29493         posixtm: move #ifdef'd tests into a new module
29494         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29495         * tests/test-posixtm.c: ... this new file.
29496         * modules/posixtm-tests: New module.
29497
29498 2009-09-19  Eric Blake  <ebb9@byu.net>
29499
29500         openat: simplify use of at-func.c
29501         * lib/at-func.c (includes): Include prerequisites here, to
29502         simplify requirements on client files.
29503         * lib/openat-priv.h: Add double-inclusion guard.
29504         * lib/faccessat.c (includes): Simplify.
29505         * lib/fchmodat.c (includes): Likewise.
29506         * lib/fchownat.c (includes): Likewise.
29507         * lib/mkdirat.c (includes): Likewise.
29508         * lib/mkfifoat.c (includes): Likewise.
29509         * lib/symlinkat.c (includes): Likewise.
29510
29511         openat: allow return of fd 0
29512         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29513         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29514         unistd-safer.
29515         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29516         <fcntl.h>; this module does not leak fds.
29517         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29518         must be allowed to return 0, leaving openat_safer to add the
29519         safety.
29520         (openat_permissive): Avoid writing to just-opened fd 2 if
29521         restoring the current directory fails.
29522         * lib/openat-die.c (openat_restore_fail): Add comment.
29523         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29524         (save_cwd): Guarantee safe fd, but without use of open_safer.
29525         * tests/test-openat.c: New test.
29526         * modules/openat-tests (Files, Makefile.am): Distribute and build
29527         new file.
29528
29529         relocatable-prog-wrapper: fix build
29530         * modules/relocatable-prog-wrapper (Files): Update name of
29531         canonicalize m4 file, broken on 2009-09-17.
29532         Reported by emad hajjar <aleppos@hotmail.com>.
29533
29534 2009-09-19  Bruno Haible  <bruno@clisp.org>
29535
29536         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29537         * lib/safe-alloc.c: Likewise.
29538         Reported by Ian Beckwith <ianb@erislabs.net>.
29539
29540 2009-09-18  Bruno Haible  <bruno@clisp.org>
29541
29542         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29543         Reported by <erobles@sensacd.com.mx>.
29544
29545 2009-09-17  Eric Blake  <ebb9@byu.net>
29546
29547         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29548         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29549         slashes when checking if last component is missing.
29550         * tests/test-canonicalize.c (main): Test this.
29551
29552         canonicalize, canonicalize-lgpl: honor // if distinct from /
29553         * modules/canonicalize (Files): Add double-slash-root.m4.
29554         * modules/canonicalize-lgpl (Files): Likewise.
29555         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29556         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29557         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29558         fallback definition.
29559         (canonicalize_filename_mode): Use it to protect //.
29560         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29561         (__realpath): Likewise.
29562         * tests/test-canonicalize.c (main): Test this.
29563         * tests/test-canonicalize-lgpl.c (main): Likewise.
29564         * modules/canonicalize-tests (Depends-on): Add same-inode.
29565         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29566
29567         canonicalize-lgpl: fix glibc bug with trailing slash
29568         * m4/canonicalize-lgpl.m4: Move contents...
29569         * m4/canonicalize.m4: ...here.
29570         (gl_CANONICALIZE_LGPL): Factor realpath check...
29571         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29572         glibc 2.3.5 bug, fixed 2005-04-27.
29573         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29574         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29575         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29576         * modules/canonicalize-lgpl (Files): Manage file rename.
29577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29578         * modules/stdlib (Makefile.am): Substitute witness.
29579         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29580         is needed.
29581         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29582         replacement is required.
29583         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29584         * doc/glibc-functions/canonicalize_file_name.texi
29585         (canonicalize_file_name): Document this.
29586         * doc/posix-functions/realpath.texi (realpath): Likewise.
29587
29588         canonicalize-lgpl: reject non-directory with trailing slash
29589         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29590         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29591         catches failures in glibc 2.3.5.
29592         * tests/test-canonicalize.c (main): Likewise.
29593
29594         canonicalize-lgpl: use native realpath if it works
29595         * lib/canonicalize-lgpl.c (realpath): Guard with
29596         FUNC_REALPATH_WORKS.
29597         * lib/stdlib.in.h (realpath): Make declaration optional based on
29598         HAVE_REALPATH.
29599         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29600         native realpath works.
29601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29602         * modules/stdlib (Makefile.am): Substitute witness.
29603
29604         canonicalize, canonicalize-lgpl: use <stdlib.h>
29605         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29606         (Include): Mention <stdlib.h>.
29607         (configure.ac): Mention functions we provide.
29608         * modules/canonicalize (configure.ac): Likewise.
29609         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29610         realpath if canonicalize_file_name is missing.
29611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29612         * modules/stdlib (Makefile.am): Substitute witnesses.
29613         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29614         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29615         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29616         * NEWS: Document this.
29617         * doc/glibc-functions/canonicalize_file_name.texi
29618         (canonicalize_file_name): Likewise.
29619         * doc/posix-functions/realpath.texi (realpath): Likewise.
29620         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29621
29622         test-canonicalize: consolidate into single C program
29623         * tests/test-canonicalize.sh: Delete; move setup into...
29624         * tests/test-canonicalize.c (main): ...the program, making it
29625         easier to run in debugger.  Add some tests.
29626         * modules/canonicalize-tests (Files): Remove unused file.
29627         (Depends-on): Add progname.
29628         (configure.ac, Makefile.am): Simplify.
29629
29630         test-canonicalize-lgpl: consolidate into single C program
29631         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29632         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29633         easier to run in debugger.  Add some tests.
29634         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29635         (configure.ac, Makefile.am): Simplify.
29636
29637         canonicalize: avoid resolvepath
29638         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29639         unnecessary checks.
29640         * lib/canonicalize.c (includes): Simplify.
29641         (canonicalize_file_name): Drop resolvepath implementation.
29642         * modules/canonicalize (Depends-on): Drop filenamecat.
29643
29644         canonicalize: don't lose errno
29645         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29646         over calls to free.
29647
29648         canonicalize: simplify errno handling
29649         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29650         assignment.
29651
29652         canonicalize, canonicalize-lgpl: update module dependencies
29653         * modules/canonicalize (Depends-on): Add extensions, lstat,
29654         pathmax, stdlib.
29655         (Files): Drop pathmax.h.
29656         (configure.ac): Adjust macro name.
29657         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29658         lstat, stdlib, sys_stat.
29659         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29660         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29661         extensions.
29662         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29663         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29664         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29665         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29666         declaration, if available.
29667         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29668         we can rely on the readlink module.
29669         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29670         (includes): Use <unistd.h> unconditionally.
29671
29672 2009-09-17  Eric Blake  <ebb9@byu.net>
29673
29674         maint: make Include sections of modules consistent
29675         * modules/alloca: Use only header name; no need to list #include.
29676         * modules/alloca-opt: Likewise.
29677         * modules/arpa_inet: Likewise.
29678         * modules/canon-host: Likewise.
29679         * modules/configmake: Likewise.
29680         * modules/dirent: Likewise.
29681         * modules/eealloc: Likewise.
29682         * modules/environ: Likewise.
29683         * modules/fchdir: Likewise.
29684         * modules/fcntl: Likewise.
29685         * modules/fcntl-h: Likewise.
29686         * modules/gethrxtime: Likewise.
29687         * modules/gettime: Likewise.
29688         * modules/ignore-value: Likewise.
29689         * modules/inet_ntop: Likewise.
29690         * modules/inet_pton: Likewise.
29691         * modules/inttypes: Likewise.
29692         * modules/isnand-nolibm: Likewise.
29693         * modules/isnanf-nolibm: Likewise.
29694         * modules/mbchar: Likewise.
29695         * modules/mbfile: Likewise.
29696         * modules/mbiter: Likewise.
29697         * modules/mbuiter: Likewise.
29698         * modules/netdb: Likewise.
29699         * modules/netinet_in: Likewise.
29700         * modules/nproc: Likewise.
29701         * modules/pagealign_alloc: Likewise.
29702         * modules/poll: Likewise.
29703         * modules/printf-frexp: Likewise.
29704         * modules/pthread: Likewise.
29705         * modules/putenv: Likewise.
29706         * modules/random_r: Likewise.
29707         * modules/relocatable-prog: Likewise.
29708         * modules/search: Likewise.
29709         * modules/select: Likewise.
29710         * modules/selinux-h: Likewise.
29711         * modules/settime: Likewise.
29712         * modules/signal: Likewise.
29713         * modules/size_max: Likewise.
29714         * modules/socklen: Likewise.
29715         * modules/ssize_t: Likewise.
29716         * modules/stdarg: Likewise.
29717         * modules/stdbool: Likewise.
29718         * modules/stddef: Likewise.
29719         * modules/stdint: Likewise.
29720         * modules/stdio: Likewise.
29721         * modules/stdlib: Likewise.
29722         * modules/string: Likewise.
29723         * modules/strings: Likewise.
29724         * modules/sys_file: Likewise.
29725         * modules/sys_ioctl: Likewise.
29726         * modules/sys_select: Likewise.
29727         * modules/sys_socket: Likewise.
29728         * modules/sys_stat: Likewise.
29729         * modules/sys_time: Likewise.
29730         * modules/sys_times: Likewise.
29731         * modules/sys_utsname: Likewise.
29732         * modules/sys_wait: Likewise.
29733         * modules/sysexits: Likewise.
29734         * modules/time: Likewise.
29735         * modules/times: Likewise.
29736         * modules/tmpfile: Likewise.
29737         * modules/trim: Likewise.
29738         * modules/unistd: Likewise.
29739         * modules/wchar: Likewise.
29740         * modules/wctype: Likewise.
29741
29742 2009-09-17  Bruno Haible  <bruno@clisp.org>
29743
29744         Make getdate.y compile on QNX and NetBSD 5 / i386.
29745         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29746         TIME_T_FITS_IN_LONG_INT.
29747         * lib/getdate.y (long_time_t): New type.
29748         (relative_time): Change type of 'seconds' field to long_time_t.
29749         (get_date): Update types of local variables. Check against overflow
29750         during conversion from long_time_t to time_t.
29751         Reported by Matt Kraai <kraai@ftbfs.org>
29752         and Hasso Tepper <hasso@netbsd.org>.
29753
29754 2009-09-17  Bruno Haible  <bruno@clisp.org>
29755
29756         * modules/COPYING: Update copyright years.
29757         * modules/README: Likeiwse.
29758         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29759         Reported by Ian Beckwith <ianb@erislabs.net>.
29760
29761 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29762
29763         * users.txt: Update references for gnuit package.
29764
29765 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29766
29767         * m4/getdelim.m4: Fix typo in copyright line.
29768
29769 2009-09-17  Bruno Haible  <bruno@clisp.org>
29770
29771         * lib/atoll.c: Use the standard header with GPL copyright.
29772         * lib/argz.in.h: Likewise.
29773         * lib/glob.c: Likewise.
29774         * lib/glob-libc.h: Likewise.
29775         * lib/random_r.c: Likewise.
29776         * lib/siglist.h: Likewise.
29777         * lib/strsignal.c: Likewise.
29778         Reported by Ian Beckwith <ianb@erislabs.net>.
29779
29780 2009-09-17  Eric Blake  <ebb9@byu.net>
29781
29782         rmdir: ensure correct dependency order
29783         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
29784
29785 2009-09-17  Bruno Haible  <bruno@clisp.org>
29786
29787         Disable assertion that fails on NetBSD 5 / i386.
29788         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
29789         Reported by Sam Steingold <sds@gnu.org>
29790         and Hasso Tepper <hasso@netbsd.org>.
29791
29792 2009-09-16  Eric Blake  <ebb9@byu.net>
29793
29794         unlinkdir: port to mingw
29795         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
29796         on which no one can unlink a directory.
29797
29798         stdlib: sort witness names
29799         * modules/stdlib (Makefile.am): Sort replacements.
29800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29801         * lib/stdlib.in.h: Likewise.
29802
29803         parse-duration-tests: avoid link failure
29804         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
29805         LIBINTL.
29806         Reported by Tom G. Christensen.
29807
29808         openat-tests: ensure unlinkat behaves like rmdir
29809         * tests/test-rmdir.c (main): Factor guts...
29810         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
29811         * modules/rmdir-tests (Files): Ship new file.
29812         * modules/openat-tests: New test.
29813         * tests/test-unlinkat.c: Likewise.
29814
29815         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
29816         * modules/rmdir-errno (Status, Notice): Now obsolete.
29817
29818         rmdir: work around cygwin 1.5.x and mingw bugs
29819         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
29820         * lib/rmdir.c (rmdir): Work around it.
29821         * modules/rmdir (Status, Notice): No longer obsolete.
29822         (Files): Add dos.m4.
29823         (Depends-on): Add unistd.
29824         (configure.ac): Set witnesses.
29825         (License): Relax to LGPLv2+.
29826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
29827         * modules/unistd (Makefile.am): Substitute witnesses.
29828         * lib/unistd.in.h (rmdir): Declare replacement.
29829         * doc/posix-functions/rmdir.texi (rmdir): Document this.
29830         * modules/rmdir-tests: New tests.
29831         * tests/test-rmdir.c: Likewise.
29832
29833 2009-09-15  Eric Blake  <ebb9@byu.net>
29834
29835         fchdir: improve use of replacement functions
29836         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
29837         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
29838         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
29839         REPLACE_CLOSEDIR.
29840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
29841         * modules/sys_stat (Makefile.am): Substitute correct witness.
29842         * modules/dirent (Makefile.am): Likewise.
29843         * modules/unistd (Makefile.am): Likewise.
29844         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
29845         * lib/unistd.in.h (dup): Likewise.
29846         * lib/sys_stat.in.h (fstat): Likewise.
29847
29848         maint: ignore gnulib-tool temp files
29849         * .gitignore: Ignore files created during gnulib-tool --test.
29850
29851 2009-09-13  Jim Meyering  <meyering@redhat.com>
29852
29853         posixtm: don't reject a time that specify "60" as the number of seconds
29854         * lib/posixtm.c (posixtime): The code to reject invalid dates
29855         would also reject a time specified with the .60 suffix.
29856         But POSIX allows that, in order to accommodate leap seconds.
29857         So don't reject it.
29858         (main): Adjust tests accordingly.
29859         * modules/posixtm (Depends-on): Add stpcpy.
29860
29861 2009-09-11  Jim Meyering  <meyering@redhat.com>
29862
29863         announce-gen: include [$release_type] in emitted Subject:
29864         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
29865         e.g., [stable] in the emitted Subject: line.
29866
29867 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29868
29869         Remove obsolete macros from several modules.
29870         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
29871         obsolete Autoconf macros with their modern counterparts.
29872         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
29873         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
29874         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
29875         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29876         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
29877         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29878         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29879         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29880         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29881         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
29882         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29883         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29884         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
29885         * m4/sockets.m4 (gl_SOCKETS): Likewise.
29886         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
29887         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
29888         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29889         * m4/time_r.m4 (gl_TIME_R): Likewise.
29890         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29891         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
29892         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29893
29894         Fix copyright header in build-aux scripts.
29895         * build-aux/git-version-gen: Fix copyright header to match GPLv3
29896         recommendation.
29897         * build-aux/ncftpput-ftp: Likewise.
29898         * build-aux/update-copyright: Likewise.
29899
29900 2009-09-09  Eric Blake  <ebb9@byu.net>
29901
29902         test-link: allow Linux choice of errno
29903         * tests/test-link.c (main): Relax test for alternate error.
29904
29905         strndup: fix improper m4 caching
29906         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
29907         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
29908         (gl_PREREQ_STRNDUP): Delete.
29909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
29910         * modules/string (Makefile.am): Substitute it.
29911         * lib/string.in.h (strndup): Modernize prototype.
29912
29913         getcwd: port to mingw
29914         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
29915         different from the POSIX assumptions made throughout the getcwd
29916         module; fortunately, the mingw getcwd does not need replacement.
29917         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
29918         * modules/getcwd-tests: New test.
29919         * tests/test-getcwd.c: Likewise.
29920
29921         link: fix platform bugs
29922         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
29923         * lib/link.c (link): Work around them.  Fix related mingw bug.
29924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
29925         * modules/unistd (Makefile.am): Substitute it.
29926         * lib/unistd.in.h (link): Declare replacement.
29927         * doc/posix-functions/link.texi (link): Document this.
29928         * modules/link (Depends-on): Add strdup-posix, sys_stat.
29929
29930         test-link: consolidate into single C program, test more cases
29931         * tests/test-link.sh: Delete.
29932         * tests/test-link.c: Test more error conditions.  Exposes bugs on
29933         at least Cygwin and Solaris.
29934         * modules/link-tests (Files): Remove unused file.
29935         (Depends-on): Add errno, sys_stat.
29936         (Makefile.am): Simplify.
29937
29938 2009-09-08  Bruno Haible  <bruno@clisp.org>
29939
29940         Work around towlower, towupper bug on mingw.
29941         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
29942         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
29943         * doc/posix-functions/towlower.texi: Mention the mingw bug.
29944         * doc/posix-functions/towupper.texi: Likewise.
29945         Reported by Eric Blake.
29946
29947 2009-09-08  Jim Meyering  <meyering@redhat.com>
29948
29949         build: don't try to run autoheader if we don't use it
29950         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
29951         is not used in configure.ac.
29952
29953 2009-09-08  Eric Blake  <ebb9@byu.net>
29954
29955         euidaccess: fix compilation error
29956         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
29957
29958         rawmemchr: relax license
29959         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
29960         okay.
29961         Reported by Jim Meyering.
29962
29963         mkfifoat: new module
29964         * modules/mkfifoat: New file.
29965         * lib/mkfifoat.c: Likewise.
29966         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
29967         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29968         * modules/sys_stat (Makefile.am): Use them.
29969         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
29970         * MODULES.html.sh (File system functions): Mention module.
29971         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29972         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29973         * modules/mkfifoat-tests: New test.
29974         * tests/test-mkfifoat.c: Likewise.
29975
29976         strchrnul: relax license
29977         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
29978         okay.
29979         Reported by Jim Meyering.
29980
29981 2009-09-08  Eric Blake  <ebb9@byu.net>
29982
29983         fstatat: fix compilation on Solaris
29984         * lib/fstatat.c (includes): Add fcntl.h.
29985         Reported by Pádraig Brady.
29986
29987 2009-09-07  Eric Blake  <ebb9@byu.net>
29988
29989         rename: modernize replacement
29990         * modules/rename (Depends-on): Add stdio.
29991         (configure.ac): Declare witness.
29992         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
29993         stdio take care of replacement.
29994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29995         * modules/stdio (Makefile.am): Substitute them.
29996         * lib/stdio.in.h (rename): Declare replacement.
29997         * lib/rename.c (includes): Allow cross-compilation to non-windows
29998         machines.
29999         * doc/posix-functions/rename.texi (rename): Improve
30000         documentation.
30001
30002         stdio: sort witness names
30003         * modules/stdio (Makefile.am): Sort replacements.
30004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30005         * lib/stdio.in.h: Likewise.
30006
30007         getcwd: minor cleanups
30008         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
30009         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
30010
30011         openat: provide more convenience names
30012         * modules/faccessat (configure.ac): Add C witness.
30013         * lib/unistd.in.h (readlinkat): Fix typo.
30014         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
30015         convenience wrappers.
30016         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
30017         wrappers in syntax checks.
30018
30019 2009-09-06  Eric Blake  <ebb9@byu.net>
30020
30021         doc: fix comments in recent patches
30022         * lib/faccessat.c: Mention correct function.
30023         * lib/fchmodat.c: Likewise.
30024         * lib/fchownat.c: Likewise.
30025         * lib/symlinkat.c: Likewise.
30026         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30027         constants.
30028
30029         faccessat, symlinkat: continue cleanup of previous patch
30030         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
30031         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30032         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
30033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
30034         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
30035         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
30036         set.
30037
30038 2009-09-06  Bruno Haible  <bruno@clisp.org>
30039
30040         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
30041         (fstatat): Declare if GNULIB_FSTATAT is set.
30042         (mkdirat): Declare if GNULIB_MKDIRAT is set.
30043         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
30044         (unlinkat): Declare if GNULIB_UNLINKAT is set.
30045         * modules/fcntl-h (Files): Remove m4/openat.m4.
30046         * modules/sys_stat (Files): Remove m4/openat.m4.
30047         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
30048         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
30049         * modules/unistd (Files): Remove m4/openat.m4.
30050         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
30051         GNULIB_OPENAT.
30052         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
30053         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
30054         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
30055         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
30056         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
30057         gl_OPENAT_DEFAULTS.
30058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
30059         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
30060         Don't require gl_OPENAT_DEFAULTS.
30061         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
30062         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
30063         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
30064         (gl_OPENAT_DEFAULTS): Remove macro.
30065
30066 2009-09-06  Bruno Haible  <bruno@clisp.org>
30067
30068         * modules/openat (configure.ac): Remove unneeded witness.
30069
30070 2009-09-06  Bruno Haible  <bruno@clisp.org>
30071
30072         Set errno to ENOSYS when a function is entirely unsupported.
30073         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
30074         EOPNOTSUPP.
30075         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30076         * modules/chown (Depends-on): Remove errno.
30077
30078 2009-09-06  Bruno Haible  <bruno@clisp.org>
30079
30080         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
30081
30082 2009-09-06  Bruno Haible  <bruno@clisp.org>
30083
30084         * lib/sys_stat.in.h: Fix preprocessor command indentation.
30085
30086 2009-09-06  Ben Pfaff  <blp@gnu.org>
30087             Bruno Haible  <bruno@clisp.org>
30088
30089         Work around a glibc bug in strtok_r.
30090         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
30091         Undefine if UNDEFINE_STRTOK_R is set.
30092         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
30093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30094         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
30095         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
30096         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
30097         UNDEFINE_STRTOK_R.
30098         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
30099
30100 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30101
30102         exclude: minor fix
30103         * lib/exclude.c: Include wctype.h
30104
30105 2009-09-06  Akim Demaille  <demaille@gostai.com>
30106
30107         bootstrap: improve error message
30108         * build-aux/bootstrap (find_tool): Upon failure, report the list
30109         of candidates.
30110         Honor the initial value of the envvar.
30111
30112 2009-09-05  Eric Blake  <ebb9@byu.net>
30113
30114         symlinkat: new module
30115         * modules/symlinkat: New file.
30116         * lib/symlinkat.c: Likewise.
30117         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
30118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30119         * modules/unistd (Makefile.am): Use them.
30120         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
30121         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
30122         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
30123         * MODULES.html.sh (File system functions): Mention module.
30124         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30125         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30126         * modules/symlinkat-tests: New test.
30127         * tests/test-symlinkat.c: Likewise.
30128
30129         test-openat-safer: add more checks
30130         * tests/test-openat-safer.c (main): Check more code paths.
30131
30132 2009-09-05  Jim Meyering  <meyering@redhat.com>
30133
30134         syntax-check: detect unnecessary inclusion of openat.h
30135         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
30136
30137 2009-09-05  Bruno Haible  <bruno@clisp.org>
30138
30139         Support towlower, towupper.
30140         * doc/posix-functions/towlower.texi: Mention module wctype.
30141         * doc/posix-functions/towupper.texi: Likewise.
30142         * lib/wctype.in.h (towlower, towupper): New functions.
30143         * tests/test-wctype.c: Include stdio.h, stdlib.h.
30144         (ASSERT): New macro.
30145         (e): New variable.
30146         (main): Test also towlower, towupper. Test WEOF argument.
30147         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30148
30149 2009-09-05  Bruno Haible  <bruno@clisp.org>
30150
30151         Fix conversion behaviour when the input is invalid.
30152         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
30153         mark occurring in first pass of indirect conversion.
30154         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
30155         input.
30156         Found by clang's static analyzer.
30157
30158 2009-09-05  Bruno Haible  <bruno@clisp.org>
30159
30160         * tests/test-striconveh.c (main): Test indirect conversion on platforms
30161         where direct conversion is possible.
30162
30163 2009-09-04  Eric Blake  <ebb9@byu.net>
30164
30165         openat: fail with ENOENT on empty name
30166         * lib/openat-proc.c (openat_proc_name): Special-case the empty
30167         buffer.
30168
30169         link-follow: fix logic bug in prior patch
30170         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
30171         reversed sense of yes and no in prior patch.  Avoid confusing
30172         compilation failure with desired semantics.
30173
30174         link-follow: accomodate mingw and cross-compilation
30175         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
30176         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
30177         cross-compilation results to -1, to make linkat easier to
30178         implement when cross-compiling.  Trivially support mingw.
30179         * modules/link-follow (configure.ac): Call new name.
30180         * NEWS: Mention this.
30181
30182 2009-09-03  Eric Blake  <ebb9@byu.net>
30183
30184         faccessat: compile replacement
30185         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
30186         needed.
30187
30188         fts: fix compilation error
30189         * lib/fts.c (includes): Re-add "openat.h", for
30190         openat_needs_fchdir.
30191
30192         faccessat: new module
30193         * modules/faccessat: New file.
30194         * lib/faccessat.c: Likewise.
30195         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30197         * modules/unistd (Makefile.am): Use it.
30198         * lib/unistd.in.h (faccessat): Declare it.
30199         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
30200         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
30201         * MODULES.html.sh (File system functions): Mention it.
30202         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
30203         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30204
30205         euidaccess: prefer POSIX over non-standard implementation
30206         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30207         * lib/euidaccess.c (euidaccess): Use it if available.
30208
30209         openat: make template easier to use
30210         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30211         AT_FUNC_F2 to be undefined.
30212         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30213         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30214         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30215         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30216         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30217         Likewise.
30218         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30219         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30220         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30221         Likewise.
30222
30223         openat: declare in POSIX headers
30224         * NEWS: Mention this.
30225         * modules/openat (configure.ac): Declare witnesses.
30226         (Depends-on): Add fcntl-h, sys_stat, unistd.
30227         (Include): Mention correct headers.
30228         * modules/fcntl-h (Depends-on): Add link-warning.
30229         (Files): Add openat.m4.
30230         (Makefile.am): Substitute witnesses.
30231         * modules/sys_stat (Files, Makefile.am): Likewise.
30232         * modules/unistd (Files, Makefile.am): Likewise.
30233         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30234         (gl_OPENAT_DEFAULTS): New macro.
30235         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30237         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30238         (SYS_STAT_H): Remove unused variable.
30239         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30240         * lib/fcntl--.h (includes): Remove unneeded header.
30241         * lib/openat-safer.c (includes): Likewise.
30242         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30243         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30244         appropriate headers.
30245         (__OPENAT_PREFIX): Delete.
30246         * lib/fcntl.in.h (openat): Provide declaration.
30247         (AT_FDCWD): Fix Solaris bug.
30248         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30249         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30250         * lib/fchmodat.c (includes):  Adjust to find declaration.
30251         * lib/fchownat.c (includes): Likewise.
30252         * lib/mkdirat.c (includes): Likewise.
30253         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30254         still visible.
30255
30256 2009-09-02  Eric Blake  <ebb9@byu.net>
30257
30258         errno: use consistently
30259         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30260         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30261         * lib/canonicalize.c (ELOOP): Likewise.
30262         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30263         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30264         * lib/lchown.c (EOPNOTSUPP): Likewise.
30265         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30266         * lib/savewd.c (ESTALE): Likewise.
30267         * lib/settime.c (ENOSYS): Likewise.
30268         * lib/utimens.c (ENOSYS): Likewise.
30269         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30270         * lib/chdir-safer.c (ELOOP): Likewise.
30271         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30272         * modules/c-stack (Depends-on): Add errno.
30273         * modules/canonicalize (Depends-on): Likewise.
30274         * modules/chdir-safer (Depends-on): Likewise.
30275         * modules/fdopendir (Depends-on): Likewise.
30276         * modules/inet_ntop (Depends-on): Likewise.
30277         * modules/inet_pton (Depends-on): Likewise.
30278         * modules/lchown (Depends-on): Likewise.
30279         * modules/openat (Depends-on): Likewise.
30280         * modules/savewd (Depends-on): Likewise.
30281         * modules/settime (Depends-on): Likewise.
30282         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30283
30284         fts: avoid leaking fds
30285         * modules/fts (Depends-on): Add cloexec.
30286         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30287         flag.
30288
30289         fts: make directory fds more robust
30290         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30291         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30292
30293         backupfile, chdir-long, fts, savedir: make safer
30294         * lib/backupfile.c (includes): Use "dirent--.h", since
30295         numbered_backup can write to stderr during readdir.
30296         * lib/savedir.c (includes): Likewise.
30297         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30298         emulation can write to stderr on failure.
30299         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30300         * lib/getcwd.c: Document why opendir_safer is unused.
30301         * lib/glob.c: Likewise.
30302         * lib/scandir.c: Likewise.
30303         * lib/openat-proc.c: Likewise, for open_safer.
30304         * modules/backupfile (Depends-on): Add dirent-safer.
30305         * modules/savedir (Depends-on): Likewise.
30306         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30307         * modules/chdir-long (Depends-on): Add openat-safer.
30308
30309         openat-safer: new module
30310         * modules/openat-safer: New file.
30311         * lib/openat-safer.c: Likewise.
30312         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30313         * lib/fcntl-safer.h (openat_safer): Declare.
30314         * lib/fcntl--.h (openat): Override.
30315         * MODULES.html.sh (File descriptor based I/O): Mention it.
30316         * lib/openat.h: Add double-inclusion guards.
30317         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30318         "fcntl--.h", so we can implement openat.
30319         * modules/openat-safer-tests: New test.
30320         * tests/test-openat-safer.c: New file.
30321
30322         dirent-safer: new module
30323         * modules/dirent-safer: New file.
30324         * lib/dirent--.h: Likewise.
30325         * lib/dirent-safer.h: Likewise.
30326         * lib/opendir-safer.c: Likewise.
30327         * m4/dirent-safer.m4: Likewise.
30328         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30329         * modules/dirent-safer-tests: New test.
30330         * tests/test-dirent-safer.c: New file.
30331         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30332
30333         fdopendir: optimize on mingw
30334         * lib/unistd.in.h (_gl_directory_name): New prototype.
30335         * lib/fchdir.c (_gl_directory_name): Implement it.
30336         (fchdir): Use it to simplify implementation.
30337         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30338         fchdir, when available, to avoid calling [f]chdir().
30339
30340         fdopendir: split into its own module
30341         * lib/openat.c (fdopendir): Move...
30342         * lib/fdopendir.c: ...into new file.
30343         * modules/fdopendir: New module.
30344         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30345         * modules/openat (Depends-on): Add fdopendir.
30346         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30347         fdopendir here.
30348         * modules/savedir (Depends-on): Only need fdopendir, not full
30349         openat.
30350         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30351         * lib/openat.h (fdopendir): Drop prototype.
30352         * lib/dirent.in.h (fdopendir): Provide prototype.
30353         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30354         * modules/dirent (Makefile.am): Substitute them.
30355         * MODULES.html.sh (File system functions): Mention it.
30356         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30357         * modules/fdopendir-tests: New file.
30358         * tests/test-fdopendir.c: Likewise.
30359
30360         fchdir: use more consistent macro convention
30361         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30362         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30363         REPLACE_FCHDIR, rather than relying on config.h macros.
30364         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30365         inside a single make-time REPLACE_FCHDIR block, rather than using
30366         the config.h FCHDIR_REPLACEMENT.
30367         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30368         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30369         Manage fstat replacement.
30370         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30371         REPLACE_FCHDIR.
30372         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30373         (Makefile.am): Substitute REPLACE_FCHDIR.
30374         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30375         FCHDIR_REPLACEMENT.
30376         * lib/dup-safer.c (dup_safer): Likewise.
30377         * lib/dup2.c (rpl_dup2): Likewise.
30378         * lib/dup3.c (rpl_dup3): Likewise.
30379         * lib/open.c (rpl_open): Likewise.
30380
30381         fchdir: simplify error handling, and support dup3
30382         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30383         stdbool, malloc-posix, realloc-posix.
30384         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30385         (ensure_dirs_slot): Return false on allocation failure.
30386         (rpl_dup2): Delete.
30387         (_gl_register_dup): New function.
30388         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30389         (_gl_register_fd): Close fd on allocation failure.
30390         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30391         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30392         prototype.
30393         (rpl_dup2_fchdir): Delete prototype.
30394         * lib/open.c (open): Update caller.
30395         * lib/dup2.c (dup2): Track fchdir metadata.
30396         * lib/dup3.c (dup3): Likewise.
30397         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30399
30400 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30401
30402         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30403         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30404         don't pass arguments to AC_OUTPUT.
30405
30406 2009-09-02  Bruno Haible  <bruno@clisp.org>
30407
30408         * modules/mkdtemp (License): Relicense under LGPLv2+.
30409         Reported by Paolo Bonzini.
30410
30411 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30412
30413         Replace uses of obsolete autoconf macros in Jim's modules.
30414         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30415         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30416         can evoke a warning from autoconf when run with -Wobsolete
30417         enabled.  They were declared obsolete for good reasons (see
30418         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30419         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30420         should not continue using the deprecated macros.
30421         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30422         obsolete Autoconf macros with modern counterparts.
30423         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30424         * m4/dos.m4 (gl_AC_DOS): Likewise.
30425         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30426         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30427         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30428         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30429         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30430         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30431         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30432         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30433         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30434         Likewise.
30435         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30436         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30437         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30438         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30439         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30440         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30441
30442 2009-09-01  Eric Blake  <ebb9@byu.net>
30443
30444         fchdir: fix off-by-one bug in previous patch
30445         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30446         (_gl_unregister_fd): Delete useless if.
30447
30448 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30449
30450         maint.mk: sort the list of syntax-check rules
30451         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30452         easier to get a sense of progress when the rules are run sequentially
30453         and take a long time.
30454
30455 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30456
30457         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30458         * modules/netinet_in: Likewise.
30459         * modules/sys_file: Likewise.
30460         * modules/sys_ioctl: Likewise.
30461         * modules/sys_select: Likewise.
30462         * modules/sys_socket: Likewise.
30463         * modules/sys_stat: Likewise.
30464         * modules/sys_time: Likewise.
30465         * modules/sys_times: Likewise.
30466         * modules/sys_utsname: Likewise.
30467         * modules/sys_wait: Likewise.
30468
30469 2009-09-01  Jim Meyering  <meyering@redhat.com>
30470
30471         fts: help ensure that return values are not ignored
30472         * lib/fts_.h (__GNUC_PREREQ): Define.
30473         (__attribute_warn_unused_result__): Define.
30474         (fts_children, fts_close, fts_open, fts_read): Declare with
30475         __attribute_warn_unused_result__.
30476
30477         fts: fts_close now fails also when closing a dir file descriptor fails
30478         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30479         and propagate to caller, along with errno.
30480
30481         announce-gen: correct formatting in --help output
30482         * build-aux/announce-gen (usage): Move the one-line description in
30483         --help output "up", to where it belongs, just after Usage:.
30484
30485 2009-08-31  Eric Blake  <ebb9@byu.net>
30486
30487         fchdir: port to mingw
30488         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30489         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30490         opened, then use a substitute.
30491         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30492         replacement.
30493         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30494         (_gl_register_fd): No need to check stat if open already filters
30495         all directories.
30496         (fchdir): Fix error condition to match POSIX.
30497         * modules/fchdir (Depends-on): Add sys_stat.
30498         * doc/posix-functions/open.texi (open): Document the limitation.
30499         * modules/fchdir-tests: New file.
30500         * tests/test-fchdir.c: Likewise.
30501
30502         canonicalize: allow cross-testing from cygwin to mingw
30503         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30504         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30505         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30506         Likewise.
30507         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30508         target does not support symlinks.
30509         * tests/test-canonicalize-lgpl.sh: Likewise.
30510
30511         chown: avoid compilation warning on mingw
30512         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30513         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30514         mingw.
30515         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30516         * modules/chown (Depends-on): Add errno.
30517
30518 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30519
30520         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30521         command.
30522
30523 2009-08-31  Jim Meyering  <meyering@redhat.com>
30524
30525         canonicalize: remove useless initialization
30526         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30527         initialization of local, "end".
30528
30529 2009-08-30  Bruno Haible  <bruno@clisp.org>
30530
30531         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30532         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30533         ENOSYS.
30534
30535 2009-08-30  Bruno Haible  <bruno@clisp.org>
30536
30537         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30538         /usr/xpg4/bin/tr when it exists.
30539         * tests/test-pipe-filter-gi1.sh: Likewise.
30540
30541 2009-08-30  Bruno Haible  <bruno@clisp.org>
30542
30543         Work around deficient /usr/bin/id program on Solaris.
30544         * tests/test-file-has-acl.sh (ID): New variable.
30545         * tests/test-set-mode-acl.sh (ID): Likewise.
30546         * tests/test-copy-acl.sh (ID): Likewise.
30547         * tests/test-copy-file.sh (ID): Likewise.
30548
30549 2009-08-30  Bruno Haible  <bruno@clisp.org>
30550
30551         New module 'xstriconveh'.
30552         * lib/xstriconveh.h: New file.
30553         * lib/xstriconveh.c: New file.
30554         * modules/xstriconveh: New file.
30555
30556 2009-08-30  Bruno Haible  <bruno@clisp.org>
30557
30558         Make it easier to use mem_cd_iconveh.
30559         * lib/striconveh.h (iconveh_t): New type.
30560         (iconveh_open, iconveh_close): New declarations.
30561         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30562         with a single 'const iconveh_t *' argument.
30563         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30564         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30565         with a single 'const iconveh_t *' argument.
30566         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30567         * tests/test-striconveh.c (main): Update.
30568         * NEWS: Mention the change.
30569
30570 2009-08-30  Bruno Haible  <bruno@clisp.org>
30571
30572         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30573         problem.
30574
30575 2009-08-30  Bruno Haible  <bruno@clisp.org>
30576
30577         Work around iconv_open problem on Solaris.
30578         * lib/iconv_open-solaris.gperf: New file.
30579         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30580         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30581         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30582         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30583         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30584         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30585
30586 2009-08-29  Jim Meyering  <meyering@redhat.com>
30587
30588         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30589         * top/maint.mk (cvs-check): Remove target; it was just an alias
30590         to the better-named vc-diff-check.
30591         (maintainer-distcheck): Remove rule.  It was used only from
30592         the (alpha/beta/major) target, and all of its commands but one
30593         were coreutils-specific.
30594         (vc-dist): Remove rule.
30595         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30596         Run vc-diff-check, not vc-dist.
30597         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30598
30599 2009-08-27  Bruno Haible  <bruno@clisp.org>
30600
30601         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30602         of 0.
30603
30604 2009-08-27  Bruno Haible  <bruno@clisp.org>
30605
30606         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30607         compilers.
30608         * doc/func.texi: Document the SunPRO C bug.
30609
30610 2009-08-27  Bruno Haible  <bruno@clisp.org>
30611
30612         Fix link error on Solaris.
30613         * tests/test-parse-duration.c (xstrdup): Remove function.
30614
30615 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30616
30617         ignore-value: handle pointer types, too
30618         * lib/ignore-value.h (__attribute__): Remove definition.
30619         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30620         of a more concise and more-often effective "(void) i" statement.
30621         (ignore_ptr): New function to suppress warnings from functions that
30622         return pointers, and to make it explicit that one function doesn't
30623         handle all cases.
30624
30625 2009-08-25  Bruno Haible  <bruno@clisp.org>
30626
30627         dup2: work around a Linux bug.
30628         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30629         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30630         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30631         Reported by Simon Josefsson.
30632
30633 2009-08-25  Jim Meyering  <meyering@redhat.com>
30634
30635         libguestfs uses gnulib
30636         * users.txt: Add libguestfs.
30637
30638 2009-08-24  Eric Blake  <ebb9@byu.net>
30639
30640         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30641         * lib/pipe2.c (includes): Add binary-io.h.
30642         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30643
30644 2009-08-24  Bruno Haible  <bruno@clisp.org>
30645
30646         Tolerate declared but missing accept4 syscall.
30647         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30648         available.
30649         * lib/sys_socket.in.h (accept4): If the function is already present,
30650         override it.
30651         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30652         * modules/accept4 (Makefile.am): Compile accept4.c always.
30653         Reported by Paolo Bonzini and Eric Blake.
30654
30655 2009-08-23  Bruno Haible  <bruno@clisp.org>
30656
30657         New module 'accept4'.
30658         * lib/sys_socket.in.h (accept4): New declaration.
30659         * lib/accept4.c: New file.
30660         * m4/accept4.m4: New file.
30661         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30662         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30663         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30664         HAVE_ACCEPT4.
30665         * modules/accept4: New file.
30666         * doc/glibc-functions/accept4.texi: Mention the new module.
30667
30668 2009-08-24  Jim Meyering  <meyering@redhat.com>
30669
30670         progname: also set global program_invocation_name, when possible
30671         Before this change, a libtool-enabled program that calls glibc's
30672         error function would report the program name as
30673         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30674         * modules/progname (configure.ac): Check for a declaration of
30675         program_invocation_name.
30676         * lib/progname.c:  Include <errno.h>.
30677         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30678         Set program_invocation_name.
30679
30680 2009-08-23  Bruno Haible  <bruno@clisp.org>
30681
30682         * lib/dup3.c: Include <string.h>.
30683
30684 2009-08-23  Bruno Haible  <bruno@clisp.org>
30685
30686         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30687         * lib/pipe2.c (pipe2): Likewise.
30688         Suggested by Eric Blake.
30689
30690 2009-08-23  Bruno Haible  <bruno@clisp.org>
30691
30692         Tolerate declared but missing dup3 syscall.
30693         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30694         * lib/unistd.in.h (dup3): If the function is already present,
30695         override it.
30696         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30697         * modules/dup3 (Makefile.am): Compile dup3.c always.
30698         Reported by Paolo Bonzini.
30699
30700 2009-08-23  Bruno Haible  <bruno@clisp.org>
30701
30702         Tolerate declared but missing pipe2 syscall.
30703         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30704         available.
30705         * lib/unistd.in.h (pipe2): If the function is already present,
30706         override it.
30707         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30708         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30709         Reported by Paolo Bonzini.
30710
30711 2009-08-23  Bruno Haible  <bruno@clisp.org>
30712
30713         * lib/pipe2.c (pipe2): Move #ifs inside function.
30714
30715 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30716
30717         quotearg: document limitations of quote_these_too
30718         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30719         those limitations are created.
30720         * lib/quotearg.h (set_char_quoting): Document that digits and
30721         letters that are special after backslash are not permitted.
30722         (quotearg_char): Cross-reference set_char_quoting documentation.
30723
30724 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30725
30726         quotearg: implement custom_quoting_style
30727         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30728         right_quote fields.
30729         (set_custom_quoting): New public function.
30730         (quotearg_buffer_restyled): Add left_quote and right_quote
30731         arguments, handle them very much like locale quoting, and update
30732         all uses.
30733         (quotearg_n_custom): New public function.
30734         (quotearg_n_custom_mem): New public function.
30735         (quotearg_custom): New public function.
30736         (quotearg_custom_mem): New public function.
30737         * lib/quotearg.h: Prototype and document new public functions.
30738         (enum quoting_style): For escape_quoting_style and
30739         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30740         ignored even though they're otherwise like c_quoting_style.
30741         Add custom_quoting_style member and document with comparison to
30742         clocale_quoting_style.
30743         * tests/test-quotearg.c (custom_quotes): New array.
30744         (custom_results): New array.
30745         (main): Extend to test custom quoting.
30746
30747 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30748
30749         quotearg: fix right quote escaping when it's in quote_these_too
30750         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30751         quote, be sure to prepend only one backslash.
30752         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30753         (main): Test it.
30754
30755 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30756
30757         quotearg-tests: test escaping of embedded locale quotes
30758         * tests/test-quotearg.c (struct result_strings): Add member for
30759         new input.
30760         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30761         (inputs): Add new input.
30762         (results_g): Add expected results.
30763         (flag_results): Likewise.
30764         (locale_results): Likewise.
30765         (compare_strings): Check those.
30766
30767 2009-08-23  Bruno Haible  <bruno@clisp.org>
30768
30769         Tests for module 'dup3'.
30770         * modules/dup3-tests: New file.
30771         * tests/test-dup3.c: New file.
30772
30773         New module 'dup3'.
30774         * lib/unistd.in.h (dup3): New declaration.
30775         * lib/dup3.c: New file.
30776         * m4/dup3.m4: New file.
30777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30778         HAVE_DUP3.
30779         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
30780         * modules/dup3: New file.
30781         * doc/glibc-functions/dup3.texi: Mention the new module.
30782
30783 2009-08-23  Bruno Haible  <bruno@clisp.org>
30784
30785         Tweak the dup2 test.
30786         * tests/test-dup2.c (main): Create the test file empty. Verify that an
30787         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
30788         the test file is still empty. Fix argument order of lseek.
30789
30790 2009-08-23  Bruno Haible  <bruno@clisp.org>
30791
30792         Avoid test link errors when the modules getopt-gnu, gettext are used.
30793         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
30794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30795
30796 2009-08-23  Bruno Haible  <bruno@clisp.org>
30797
30798         Fix getdtablesize() on mingw.
30799         * lib/getdtablesize.c (getdtablesize): Implement differently.
30800         * lib/unistd.in.h (getdtablesize): Improve comment.
30801
30802 2009-08-23  Bruno Haible  <bruno@clisp.org>
30803
30804         New module 'mkostemp'.
30805         Based on Ulrich Drepper's 2007-08-10 change in glibc.
30806         * lib/stdlib.in.h (mksotemp): New declaration.
30807         * lib/mkostemp.c: New file, from glibc with modifications.
30808         * lib/tempname.h (GT_FILE): Remove outdated comment.
30809         (gen_tempname): Add flags argument.
30810         * lib/tempname.c (__GT_BIGFILE): Remove macro.
30811         (__GT_FILE): Map to 1.
30812         (small_open, large_open): Remove macros.
30813         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
30814         * lib/mkstemp.c (mkstemp): Update.
30815         * lib/mkdtemp.c (mkdtemp): Likewise.
30816         * m4/mkostemp.m4: New file.
30817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
30818         HAVE_MKOSTEMP.
30819         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
30820         HAVE_MKOSTEMP.
30821         * modules/mkostemp: New file, based on modules/mkstemp.
30822         * doc/glibc-functions/mkostemp.texi: Mention the new module.
30823         * NEWS: Mention the change.
30824
30825 2009-08-23  Bruno Haible  <bruno@clisp.org>
30826
30827         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
30828         Reported by Eric Blake.
30829
30830 2009-08-23  Bruno Haible  <bruno@clisp.org>
30831
30832         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
30833         Reported by Eric Blake.
30834
30835 2009-08-23  Bruno Haible  <bruno@clisp.org>
30836
30837         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
30838         * modules/pipe2 (Depends-on): Likewise.
30839
30840 2009-08-23  Eric Blake  <ebb9@byu.net>
30841
30842         fcntl-h: add O_TTY_INIT support
30843         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
30844         * tests/test-fcntl-h.c (o): Test it.
30845         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30846
30847         fcntl-h: rename from fcntl, in preparation for fcntl(2)
30848         * modules/fcntl: Move <fcntl.h> header replacement...
30849         * modules/fcntl-h: ...to new name, so as not to collide with
30850         like-named function.
30851         * tests/test-fcntl.c: Rename...
30852         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
30853         * modules/fcntl-tests: Rename...
30854         * modules/fcntl-h-tests: ...to this.  Update test file name.
30855         * modules/chdir-long (Depends-on): Update clients.
30856         * modules/chdir-safer (Depends-on): Likewise.
30857         * modules/fcntl-safer (Depends-on): Likewise.
30858         * modules/fts (Depends-on): Likewise.
30859         * modules/mkancesdirs (Depends-on): Likewise.
30860         * modules/mkdir-p (Depends-on): Likewise.
30861         * modules/open (Depends-on): Likewise.
30862         * modules/savewd (Depends-on): Likewise.
30863         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
30864         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30865
30866 2009-08-22  Bruno Haible  <bruno@clisp.org>
30867
30868         * modules/binary-io (License): Relicense under LGPL.
30869         * modules/pipe2 (License): Likewise.
30870
30871 2009-08-22  Bruno Haible  <bruno@clisp.org>
30872
30873         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
30874         return value.
30875         * lib/pipe-filter-gi.c (filter_init): Likewise.
30876         Reported by Eric Blake.
30877
30878 2009-08-22  Bruno Haible  <bruno@clisp.org>
30879
30880         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
30881         * modules/pipe (Depends-on): Add pipe2.
30882
30883 2009-08-22  Bruno Haible  <bruno@clisp.org>
30884
30885         Tests for module 'pipe2'.
30886         * modules/pipe2-tests: New file.
30887         * tests/test-pipe2.c: New file.
30888
30889         New module 'pipe2'.
30890         * lib/unistd.in.h (pipe2): New declaration.
30891         * lib/pipe2.c: New file.
30892         * m4/pipe2.m4: New file.
30893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
30894         HAVE_PIPE2.
30895         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
30896         * modules/pipe2: New file.
30897         * doc/glibc-functions/pipe2.texi: Mention the new module.
30898
30899 2009-08-22  Bruno Haible  <bruno@clisp.org>
30900
30901         Reference some new glibc functions.
30902         * doc/glibc-functions/accept4.texi: New file.
30903         * doc/glibc-functions/dup3.texi: New file.
30904         * doc/glibc-functions/mkostemp.texi: New file.
30905         * doc/glibc-functions/pipe2.texi: New file.
30906         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
30907         (Glibc sys/socket.h): Refer to accept4.
30908         (Glibc unistd.h): Refer to dup3, pipe2.
30909         Reported by Eric Blake.
30910
30911 2009-08-22  Jim Meyering  <meyering@redhat.com>
30912             Bruno Haible  <bruno@clisp.org>
30913
30914         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
30915         This makes it so packages using automake-1.11's silent-rules option
30916         can print e.g., a single "GEN    configmake.h" line, rather than
30917         the 30+ statements that perform the job.  If you want to see the
30918         actual commands, you can still run "make V=1".
30919         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
30920         so that make output is abbreviated when those variables are defined
30921         appropriately.
30922         * modules/argz: Likewise.
30923         * modules/arpa_inet: Likewise.
30924         * modules/byteswap: Likewise.
30925         * modules/configmake: Likewise.
30926         * modules/dirent: Likewise.
30927         * modules/errno: Likewise.
30928         * modules/fcntl: Likewise.
30929         * modules/float: Likewise.
30930         * modules/fnmatch: Likewise.
30931         * modules/getopt-posix: Likewise.
30932         * modules/glob: Likewise.
30933         * modules/iconv_open: Likewise.
30934         * modules/inttypes: Likewise.
30935         * modules/localcharset: Likewise.
30936         * modules/locale: Likewise.
30937         * modules/math: Likewise.
30938         * modules/netdb: Likewise.
30939         * modules/netinet_in: Likewise.
30940         * modules/poll: Likewise.
30941         * modules/posix_spawnp-tests: Likewise.
30942         * modules/sched: Likewise.
30943         * modules/search: Likewise.
30944         * modules/selinux-h: Likewise.
30945         * modules/signal: Likewise.
30946         * modules/spawn: Likewise.
30947         * modules/stdarg: Likewise.
30948         * modules/stdbool: Likewise.
30949         * modules/stddef: Likewise.
30950         * modules/stdint: Likewise.
30951         * modules/stdio: Likewise.
30952         * modules/stdlib: Likewise.
30953         * modules/string: Likewise.
30954         * modules/strings: Likewise.
30955         * modules/sys_file: Likewise.
30956         * modules/sys_ioctl: Likewise.
30957         * modules/sys_select: Likewise.
30958         * modules/sys_socket: Likewise.
30959         * modules/sys_stat: Likewise.
30960         * modules/sys_time: Likewise.
30961         * modules/sys_times: Likewise.
30962         * modules/sys_utsname: Likewise.
30963         * modules/sys_wait: Likewise.
30964         * modules/sysexits: Likewise.
30965         * modules/time: Likewise.
30966         * modules/unistd: Likewise.
30967         * modules/wchar: Likewise.
30968         * modules/wctype: Likewise.
30969
30970 2009-08-22  Jim Meyering  <meyering@redhat.com>
30971
30972         announce-gen: detect write failure
30973         * build-aux/announce-gen: Add Coda at end.
30974         Remove equivalent-but-more-verbose block at top.
30975
30976 2009-08-19  Akim Demaille  <demaille@gostai.com>
30977
30978         bootstrap: --help to stdout.
30979         * bootstrap (usage): Don't send --help to stderr.
30980         Use a here doc instead of a long string.
30981
30982 2009-08-21  Eric Blake  <ebb9@byu.net>
30983
30984         test-popen-safer: split from test-popen
30985         * tests/test-popen.c (main): Move...
30986         * tests/test-popen.h: ...into new file.
30987         * tests/test-popen-safer2.c: New file.
30988         * modules/popen-tests (Files): Add test-popen.h.
30989         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
30990         Suggested by Bruno Haible.
30991
30992         test-fcntl-safer: split from test-open
30993         * tests/test-open.c (main): Move...
30994         * tests/test-open.h: ...into new file.
30995         * tests/test-fcntl-safer.c: New file.
30996         * modules/open-tests (Files): Add test-open.h.
30997         * modules/fcntl-safer-tests: New file.
30998         Suggested by Bruno Haible.
30999
31000         test-fopen-safer: split from test-fopen
31001         * tests/test-fopen.c (main): Move...
31002         * tests/test-fopen.h: ...into new file.
31003         * tests/test-fopen-safer.c: New file.
31004         * modules/fopen-tests (Files): Add test-fopen.h.
31005         * modules/fopen-safer-tests: New file.
31006         Suggested by Bruno Haible.
31007
31008 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31009
31010         popen-safer: test O_CLOEXEC at run-time.
31011         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
31012
31013 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31014
31015         fcntl: move more flags to the header
31016         * lib/cloexec.c: Do not define FD_CLOEXEC here.
31017         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
31018         * lib/fcntl.in.h: Do both things here.
31019
31020 2009-08-21  Jim Meyering  <meyering@redhat.com>
31021
31022         consistently remove $@-t before redirecting to it
31023         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31024         * modules/alloca-opt: Likewise.
31025         * modules/byteswap: Likewise.
31026         * modules/fnmatch: Likewise.
31027         * modules/getopt-posix: Likewise.
31028         * modules/glob: Likewise.
31029         * modules/poll: Likewise.
31030         * modules/posix_spawnp-tests: Likewise.
31031         * modules/sys_socket: Likewise.
31032         * modules/sysexits: Likewise.
31033
31034 2009-08-21  Eric Blake  <ebb9@byu.net>
31035
31036         popen: simplify access to original popen
31037         * lib/popen.c (rpl_popen): No need to worry about popen being a
31038         macro.
31039         Reported by Bruno Haible.
31040
31041 2009-08-20  Eric Blake  <ebb9@byu.net>
31042
31043         build: avoid some compiler warnings
31044         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
31045         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
31046         type.
31047         (new_exclude_segment, excluded_file_pattern_p)
31048         (excluded_file_name_p): Reduce scope.
31049         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
31050         old-style declaration.
31051
31052 2009-08-20  Simon Josefsson  <simon@josefsson.org>
31053
31054         * tests/test-exclude1.sh: Handle Windows EOL.
31055         * tests/test-exclude2.sh: Likewise.
31056         * tests/test-exclude3.sh: Likewise.
31057         * tests/test-exclude4.sh: Likewise.
31058         * tests/test-exclude5.sh: Likewise.
31059         * tests/test-exclude6.sh: Likewise.
31060         * tests/test-exclude7.sh: Likewise.
31061
31062 2009-08-19  Akim Demaille  <demaille@gostai.com>
31063
31064         bootstrap: find sha1sum when named gsha1sum.
31065         * bootstrap (find_tool): New.
31066         ($SHA1SUM): New.
31067         Use it.
31068
31069 2009-08-20  Jim Meyering  <meyering@redhat.com>
31070
31071         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
31072         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
31073         expression that converts "." in a file name to "\." in the resulting
31074         regexp.  Start with a dummy statement, so that prior shell variable
31075         definitions are expanded portably.  Reported by Simon Josefsson.
31076
31077 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
31078
31079         Fix polling for writeability of a screen buffer.
31080         * lib/poll.c: Distinguish input and screen buffers for the
31081         Win32 implementation.
31082         * lib/select.c: Likewise.
31083
31084 2009-08-19  Eric Blake  <ebb9@byu.net>
31085
31086         popen-safer: prevent popen from clobbering std descriptors
31087         * modules/popen-safer: New file.
31088         * lib/popen-safer.c: Likewise.
31089         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
31090         * lib/stdio--.h (popen): Provide override.
31091         * lib/stdio-safer.h (popen_safer): Provide declaration.
31092         * tests/test-popen.c (includes): Partially test this.
31093         * modules/popen-safer-tests: New file, for more tests.
31094         * tests/test-popen-safer.c: Likewise.
31095         * MODULES.html.sh (file stream based Input/Output): Mention it.
31096
31097         tests: test some of the *-safer modules
31098         * modules/fopen-safer (Depends-on): Add fopen.
31099         * modules/fcntl-safer (Depends-on): Add fcntl.
31100         * modules/stdlib-safer (Depends-on): Add stdlib.
31101         (configure.ac): Set indicator.
31102         * modules/unistd-safer (configure.ac): Likewise.
31103         * modules/tmpfile-safer (configure.ac): Likewise.
31104         (Depends-on): Add tmpfile.
31105         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
31106         active.
31107         * tests/test-fopen.c (includes): Test safer versions when they are
31108         in use.
31109         * tests/test-open.c (includes): Likewise.
31110
31111         popen: fix cygwin 1.5 bug when stdin closed
31112         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
31113         * modules/popen: New file.
31114         * modules/popen-tests: Likewise.
31115         * tests/test-popen.c: Likewise.
31116         * m4/popen.m4: Likewise.
31117         * lib/popen.c: Likewise.
31118         * lib/stdio.in.h (popen): New declaration.
31119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
31120         * modules/stdio (Makefile.am): Likewise.
31121         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
31122
31123 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
31124
31125         maint.mk: give full control over update-copyright exclusions
31126         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
31127         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
31128         (update-copyright): Don't force inclusion of top-level
31129         ChangeLog.  Don't force exclusion of all COPYING files, but make
31130         them the default exclusion instead.
31131
31132 2009-08-16  Bruno Haible  <bruno@clisp.org>
31133
31134         Fix test failures on Solaris 10.
31135         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
31136         tests when Solaris iconv() is used.
31137         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31138         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31139         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31140         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31141         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31142
31143 2009-08-16  Bruno Haible  <bruno@clisp.org>
31144
31145         Fix test failures on Solaris 10.
31146         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
31147         'tr' program and pass it as first argument.
31148         * tests/test-pipe-filter-gi1.sh: Likewise.
31149         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
31150         program as first argument.
31151         * tests/test-pipe-filter-gi1.c (main): Likewise.
31152
31153 2009-08-16  Eric Blake  <ebb9@byu.net>
31154
31155         fpurge: fix previous commits
31156         * modules/fpurge (Makefile.am): Make replacement conditional,
31157         partially reverting 2007-04-29 change; missed in previous
31158         attempt.
31159         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
31160         is missing.
31161
31162 2009-08-16  Bruno Haible  <bruno@clisp.org>
31163
31164         Clarify fpurge's effect on the file position.
31165         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
31166         * tests/test-fpurge.c (main): Make a second pass for checking the file
31167         position.
31168
31169 2009-08-16  Bruno Haible  <bruno@clisp.org>
31170
31171         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
31172         declaration of fpurge is missing.
31173         * tests/test-fpurge.c (main): Check that the file has not more contents
31174         than expected. Close the file before removing it.
31175
31176 2009-08-15  Eric Blake  <ebb9@byu.net>
31177
31178         fpurge: don't wrap working cygwin implementation
31179         * lib/fpurge.c (fpurge): Fix comment typo.
31180         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
31181         1.7 to avoid replacement.
31182         * tests/test-fpurge.c (main): Enhance test.
31183
31184 2009-08-15  Eric Blake  <ebb9@byu.net>
31185         and Jim Meyering  <meyering@redhat.com>
31186
31187         test-update-copyright: skip if perl is insufficient
31188         * tests/test-update-copyright.sh: Failure to run maintainer tool
31189         should not cause testsuite failure on cygwin 1.5.
31190
31191 2009-08-14  Eric Blake  <ebb9@byu.net>
31192
31193         doc: mention more functions added in cygwin 1.7.0
31194         * doc/posix-headers/limits.texi (limits.h): Update for recent
31195         cygwin additions.
31196         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
31197         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31198         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
31199         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
31200         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
31201
31202 2009-08-14  Eric Blake  <ebb9@byu.net>
31203
31204         maint.mk: simplify update-copyright rule
31205         * top/maint.mk (update-copyright-local): Delete, and document how
31206         to do it in cfg.mk instead.
31207         (update-copyright-exclude-regexp): Delete, and document how to do
31208         it in .x-update-copyright instead.
31209         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31210         exclude ChangeLog.
31211
31212 2009-08-14  Bruno Haible  <bruno@clisp.org>
31213
31214         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31215
31216 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31217
31218         maint.mk: support update-copyright-env
31219         * top/maint.mk (update-copyright-env): Define place-holder.
31220         (update-copyright): Expand $(update-copyright-env) before
31221         invoking update-copyright.
31222
31223 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31224
31225         update-copyright: implement forced reformatting
31226         * build-aux/update-copyright: Implement and document
31227         UPDATE_COPYRIGHT_FORCE.
31228         * tests/test-update-copyright.sh: Test it.
31229
31230 2009-08-14  Eric Blake  <ebb9@byu.net>
31231         and Bruno Haible  <bruno@clisp.org>
31232
31233         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31234         * tests/test-locale.c: Revert previous patch related to NULL.
31235         * tests/test-stdio.c: Likewise.
31236         * tests/test-stdlib.c: Likewise.
31237         * tests/test-string.c: Likewise.
31238         * tests/test-unistd.c: Likewise.
31239         * modules/time-tests (Depends-on): Add verify.
31240         * modules/wchar-tests (Depends-on): Likewise.
31241         * tests/test-time.c: Test for NULL compliance.
31242         * tests/test-wchar.c: Likewise.
31243         * modules/locale (Depends-on): Add stddef.
31244         * modules/stdio (Depends-on): Likewise.
31245         * modules/stdlib (Depends-on): Likewise.
31246         * modules/string (Depends-on): Likewise.
31247         * modules/time (Depends-on): Likewise.
31248         * modules/unistd (Depends-on): Likewise.
31249         * modules/wchar (Depends-on): Likewise.
31250         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31251         * lib/stdlib.in.h (includes): Likewise.
31252         * lib/string.in.h (includes): Likewise.
31253         * lib/time.in.h (includes): Likewise.
31254         * lib/unistd.in.h (includes): Likewise.
31255         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31256         replaced.
31257         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31258         * m4/stddef_h.m4: New file.
31259         * modules/stddef: Likewise.
31260         * lib/stddef.in.h: Likewise.
31261         * modules/stddef-tests: Likewise.
31262         * tests/test-stddef.c: Likewise.
31263         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31264         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31265         * doc/posix-headers/locale.texi (locale.h): Likewise.
31266         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31267         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31268         * doc/posix-headers/string.texi (string.h): Likewise.
31269         * doc/posix-headers/time.texi (time.h): Likewise.
31270         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31271         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31272
31273 2009-08-14  Eric Blake  <ebb9@byu.net>
31274
31275         doc: improve git diff of texinfo files
31276         * .gitattributes: Add rule for *.texi files, with hint on how to
31277         use it.
31278         Copied from m4, and based on a report by Bruno Haible.
31279
31280 2009-08-14  Bruno Haible  <bruno@clisp.org>
31281
31282         Disable multithread support by default on Cygwin 1.5.x for real.
31283         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31284
31285 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31286
31287         update-copyright: much ado about intervals
31288         * build-aux/update-copyright: Implement and document
31289         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31290         of copyright year intervals.
31291         Also, document UPDATE_COPYRIGHT_YEAR.
31292         * tests/test-update-copyright.sh: Test it.
31293
31294         update-copyright: convert 2-digit to 4-digit years
31295         * build-aux/update-copyright: Implement and document.
31296         * tests/test-update-copyright.sh: Update.
31297
31298 2009-08-14  Jim Meyering  <meyering@redhat.com>
31299
31300         test-exclude: avoid coreutils "make check" failure
31301         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31302         just as in test-argmatch.c.
31303
31304 2009-08-13  Eric Blake  <ebb9@byu.net>
31305
31306         test-dup2: fix bad assumption
31307         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31308         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31309
31310         test-version-etc: fix CRLF portability issue
31311         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31312         recognize \r.
31313         * tests/test-argp-version-etc-1.sh: Likewise.
31314
31315         getopt: update client modules
31316         * modules/argp (Depends-on): Use getopt-gnu.
31317         * modules/git-merge-changelog (Depends-on): Likewise.
31318         * modules/long-options (Depends-on): Likewise.
31319         * modules/xstrtol (Depends-on): Likewise.
31320
31321 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31322
31323         * tests/test-version-etc.sh: Don't fail on different
31324         project/version.  Don't fail on CRLF differences.  Rewrite to use
31325         multiple -e instead of multiple sed forks, suggested by Eric Blake
31326         <ebb9@byu.net>.
31327         * tests/test-argp-version-etc-1.sh: Likewise.
31328
31329 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31330
31331         * tests/test-version-etc.sh: Don't fail on different
31332         project/version.
31333
31334 2009-08-12  Bruno Haible  <bruno@clisp.org>
31335
31336         Tests for modules 'getopt-posix', 'getopt-gnu'.
31337         * modules/getopt-posix-tests: New file.
31338         * tests/test-getopt.c: New file.
31339         * tests/test-getopt.h: New file.
31340         * tests/test-getopt_long.h: New file.
31341
31342         New modules 'getopt-posix', 'getopt-gnu'.
31343         * modules/getopt-gnu: New file, renamed from modules/getopt.
31344         * modules/getopt-posix: New file.
31345         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31346         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31347         (gl_GETOPT): Remove macro.
31348         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31349         Disable the test against BSD systems that declare optreset. Test
31350         against mingw bug. Test against lack of support of optional arguments
31351         on many platforms.
31352         * doc/glibc-headers/getopt.texi: Update module name and list of
31353         relevant platforms.
31354         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31355         'getopt-gnu' and more portability problems.
31356         * NEWS: Mention the changes.
31357
31358 2009-08-12  Bruno Haible  <bruno@clisp.org>
31359
31360         Ensure that optarg etc. get declared by <unistd.h>.
31361         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31362         AC_USE_SYSTEM_EXTENSIONS.
31363         * modules/getopt (Depends-on): Add 'extensions'.
31364
31365 2009-08-12  Bruno Haible  <bruno@clisp.org>
31366
31367         Avoid test link errors.
31368         * modules/pipe-filter-ii-tests (Makefile.am): Define
31369         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31370         * modules/pipe-filter-gi-tests (Makefile.am): Define
31371         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31372         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31373
31374 2009-08-12  Bruno Haible  <bruno@clisp.org>
31375
31376         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31377         gl_GETOPT_SUBSTITUTE before.
31378         (gl_GETOPT): Use it.
31379         * m4/argp.m4 (gl_ARGP): Update.
31380         Reported by Sergey Poznyakoff.
31381
31382         * m4/getopt.m4: Reorder macros.
31383         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31384         (gl_GETOPT_SUBSTITUTE): Remove macro.
31385
31386 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31387
31388         Minor improvement in gitlog-to-changelog
31389
31390         * build-aux/gitlog-to-changelog: New option `--format' makes
31391         output format string configurable.
31392
31393 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31394
31395         Optimize exclude: use hash tables for non-wildcard patterns.
31396
31397         * lib/exclude.c: Include hash.h and mbuiter.h
31398         (struct exclude_pattern, exclude_segment): New data types.
31399         (struct exclude): Rewrite.
31400         (fnmatch_pattern_has_wildcards): New function.
31401         (new_exclude_segment, free_exclude_segment): New functions.
31402         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31403         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31404         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31405         * modules/exclude: Depend on hash and mbuiter.
31406
31407         * modules/exclude-tests: New file.
31408         * tests/test-exclude.c: New file.
31409         * tests/test-exclude1.sh: New file.
31410         * tests/test-exclude2.sh: New file.
31411         * tests/test-exclude3.sh: New file.
31412         * tests/test-exclude4.sh: New file.
31413         * tests/test-exclude5.sh: New file.
31414         * tests/test-exclude6.sh: New file.
31415         * tests/test-exclude7.sh: New file.
31416
31417 2009-08-12  Bruno Haible  <bruno@clisp.org>
31418
31419         Ensure that getopt() gets declared by <unistd.h>.
31420         * lib/unistd.in.h: Conditionally include getopt.h.
31421         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31422         Set GNULIB_UNISTD_H_GETOPT.
31423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31424         GNULIB_UNISTD_H_GETOPT.
31425         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31426
31427 2009-08-12  Bruno Haible  <bruno@clisp.org>
31428
31429         Clarify logic.
31430         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31431         gl_replace_getopt instead of GETOPT_H.
31432
31433 2009-08-12  Bruno Haible  <bruno@clisp.org>
31434
31435         * m4/getopt.m4: Add comments.
31436
31437 2009-08-12  Bruno Haible  <bruno@clisp.org>
31438
31439         Disable multithread support by default on Cygwin 1.5.x.
31440         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31441         set gl_use_threads=no if not specified otherwise.
31442
31443 2009-08-11  Bruno Haible  <bruno@clisp.org>
31444
31445         Avoid compilation error on NetBSD 5.0.
31446         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31447         * tests/test-stdio.c: Likewise.
31448         * tests/test-stdlib.c: Likewise.
31449         * tests/test-string.c: Likewise.
31450         * tests/test-unistd.c: Likewise.
31451         Reported by Greg Troxel <gdt@ir.bbn.com>
31452         at <https://savannah.gnu.org/support/?106973>.
31453
31454 2009-08-11  Bruno Haible  <bruno@clisp.org>
31455
31456         * modules/dup2-tests (Depends-on): Remove close.
31457
31458         Undo 2009-07-19 commit.
31459         * modules/acl-tests (Depends-on): Remove close.
31460         * modules/binary-io-tests (Depends-on): Likewise.
31461         * modules/closein-tests (Depends-on): Likewise.
31462         * modules/flock-tests (Depends-on): Likewise.
31463         * modules/fsync-tests (Depends-on): Likewise.
31464         * modules/lseek-tests (Depends-on): Likewise.
31465         * modules/pipe-tests (Depends-on): Likewise.
31466         * modules/posix_spawn-tests (Depends-on): Likewise.
31467         * modules/posix_spawnp-tests (Depends-on): Likewise.
31468         * modules/stat-time-tests (Depends-on): Likewise.
31469         * modules/yesno-tests (Depends-on): Likewise.
31470
31471 2009-08-10  Bruno Haible  <bruno@clisp.org>
31472
31473         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31474
31475 2009-08-10  Bruno Haible  <bruno@clisp.org>
31476
31477         Fix a gcc warning.
31478         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31479
31480 2009-08-10  Bruno Haible  <bruno@clisp.org>
31481
31482         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31483         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31484         not only the first time.
31485         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31486         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31487         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31488         is 1, not only the the first time.
31489
31490 2009-08-10  Bruno Haible  <bruno@clisp.org>
31491
31492         Make it possible to use module 'gethostname' without module 'close'.
31493         * lib/unistd.in.h (close): Evoke a link error only if
31494         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31496         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31497         * modules/unistd (Makefile.am): Substitute
31498         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31499         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31500         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31501         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31502         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31503         * modules/sys_ioctl (Makefile.am): Substitute
31504         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31505         * modules/socket (configure.ac): On native Windows, set
31506         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31507         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31508         Reported by Sam Steingold <sds@gnu.org>.
31509
31510 2009-08-10  Bruno Haible  <bruno@clisp.org>
31511
31512         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31513         * modules/ioctl (configure.ac): Likewise.
31514
31515 2009-08-10  Bruno Haible  <bruno@clisp.org>
31516
31517         Avoid collision between gnulib wrapper and libintl wrapper.
31518         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31519         already defined in intl/printf.c.
31520         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31521         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31522
31523 2009-08-09  Bruno Haible  <bruno@clisp.org>
31524
31525         Make <sys/select.h> really self-contained, also on Solaris 10.
31526         * lib/sys_select.in.h: Include <string.h>.
31527         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31528         Solaris 10 problem.
31529         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31530         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31531         Reported by Jim Meyering.
31532
31533 2009-08-09  Bruno Haible  <bruno@clisp.org>
31534
31535         Avoid warnings from 'aclocal' that are due to a use of macro name
31536         AM_XGETTEXT_OPTION that is not defined in automake.
31537         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31538         automake.
31539         * modules/error (configure.ac): Likewise.
31540         * modules/propername (configure.ac): Likewise.
31541         * modules/vasprintf (configure.ac): Likewise.
31542         * modules/verror (configure.ac): Likewise.
31543         * modules/xprintf (configure.ac): Likewise.
31544         * modules/xvasprintf (configure.ac): Likewise.
31545
31546 2009-08-08  Bruno Haible  <bruno@clisp.org>
31547
31548         Avoid compilation error in C++ mode.
31549         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31550         Reported by Sam Steingold <sds@gnu.org>.
31551
31552 2009-08-08  Bruno Haible  <bruno@clisp.org>
31553
31554         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31555         for the various Unix platforms.
31556         * doc/posix-headers/limits.texi: Update platforms list regarding
31557         HOST_NAME_MAX.
31558         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31559
31560 2009-08-07  Jim Meyering  <meyering@redhat.com>
31561
31562         selinux-at: fix typo in a comment
31563         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31564         Spotted by Paolo Bonzini.
31565
31566         selinux-at: remove redundant m4 code, add documentation
31567         * modules/selinux-at (configure.ac): Remove redundant code.
31568         LIB_SELINUX is already set via the dependent module, selinux-h.
31569         (Include): Add quotes around selinux-at.h.
31570         * lib/selinux-at.h: Add documentation.
31571         Reported by Bruno Haible in
31572         http://marc.info/?l=gnulib-bug&m=124958988300749
31573
31574 2009-08-07  Bruno Haible  <bruno@clisp.org>
31575
31576         Avoid link error on MacOS X 10.3 and 10.4.
31577         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31578         on non-ELF systems.
31579         * lib/argp-pv.c (argp_program_version): Likewise.
31580         Reported by Simon Josefsson.
31581
31582 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31583
31584         * tests/test-version-etc.sh: Use $EXEEXT.
31585
31586 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31587
31588         update-copyright: update documentation to point to maint.mk
31589         * build-aux/update-copyright: Here.
31590
31591 2009-08-06  Jim Meyering  <meyering@redhat.com>
31592
31593         maint.mk: support update-copyright-local
31594         * top/maint.mk (update-copyright-local): Define place-holder.
31595         (update-copyright): Depend on $(update-copyright-local).
31596
31597 2009-08-06  Jim Meyering  <meyering@redhat.com>
31598
31599         selinux-at: new module
31600         Initially written for coreutils, this module will soon be
31601         used by findutils, too.
31602         * MODULES.html.sh [Misc]: Add selinux-at.
31603         * lib/selinux-at.h: New file, from coreutils.
31604         * lib/selinux-at.c: Likewise.
31605         * modules/selinux-at: Likewise.
31606         (License): Change from LGPL to GPL, since it depends
31607         on the GPL'd openat module.
31608
31609         doc: update README
31610         * README: Remove references to cogito.
31611         Remove cvs-repo-updating instructions from 2007.
31612         Don't imply that CVS is better if you have limited disk space.
31613
31614 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31615
31616         update-copyright: support C-style comments
31617         * build-aux/update-copyright: Implement and document.
31618         * tests/test-update-copyright.sh: Test.
31619
31620 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31621
31622         update-copyright: support omitted "(C)"
31623         * build-aux/update-copyright: Implement and document.  Also,
31624         allow variable whitespace before "(C)".
31625         * tests/test-update-copyright.sh: Test.
31626
31627 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31628
31629         update-copyright: don't trip on non-FSF copyright statements
31630         * build-aux/update-copyright: Fix so that the first correctly
31631         formatted FSF copyright statement is recognized no matter what
31632         appears before it.  Update documentation.
31633         * tests/test-update-copyright.sh: Test that.
31634
31635 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31636
31637         update-copyright: clean up code a little
31638         * build-aux/update-copyright: Append "_re" to the name of any
31639         variable holding a regular expression.
31640         Replace "old" and "new" with "stmt" in variable names.
31641         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31642         handled correctly.
31643         Format code more consistently.
31644
31645 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31646
31647         update-copyright-tests: improve portability
31648         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31649         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31650
31651 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31652
31653         update-copyright: support @copyright{} and &copy;
31654         * build-aux/update-copyright: Implement and document.
31655         * tests/test-update-copyright.sh: Test.
31656
31657 2009-08-04  Jim Meyering  <meyering@redhat.com>
31658
31659         update-copyright-tests: correctly test EOL=\r\n handling
31660         * tests/test-update-copyright.sh: Put \r at the end of some lines
31661         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31662
31663         maint.mk: make update-copyright exclusion list more configurable
31664         * top/maint.mk (update-copyright): Default to excluding COPYING,
31665         but allow an override, in case someone does want to update that file.
31666
31667         maint.mk: don't update copyright date in COPYING
31668         * top/maint.mk (update-copyright): Exclude COPYING.
31669
31670         maint.mk: add a copyright-updating rule
31671         * top/maint.mk (update-copyright): New rule.
31672         Derived from coreutils/Makefile.am.
31673
31674         update-copyright: rename some variables
31675         * build-aux/update-copyright: Rename a few variables for clarity.
31676         Tweak syntax.  List Joel E. Denny as coauthor.
31677
31678 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31679
31680         update-copyright: fix bug for 2-digit last year and add tests
31681         * build-aux/update-copyright: Fix bug.
31682         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31683         specified.
31684         * modules/update-copyright-tests: New
31685         * tests/test-update-copyright.sh: New.
31686
31687 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31688
31689         update-copyright: handle leading tabs in line prefix
31690         * build-aux/update-copyright: Count leading tabs as 8 spaces
31691         when computing margin.  This helps with the formatting of
31692         ChangeLogs, for example.
31693         Fix documentation a little.
31694
31695 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31696
31697         update-copyright: support EOL=\r\n
31698         * build-aux/update-copyright: Implement that.
31699
31700 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31701
31702         update-copyright: automatically format copyright statements
31703         * build-aux/update-copyright: Implement that.
31704         Also, be a little more predictable and safer by always failing
31705         when the full copyright format is not perfectly recognized as an
31706         unbroken whole.  Discussed at
31707         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31708         Rewrite documentation.
31709
31710 2009-08-03  Bruno Haible  <bruno@clisp.org>
31711
31712         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31713
31714 2009-08-02  Bruno Haible  <bruno@clisp.org>
31715
31716         Tests for module 'uname'.
31717         * modules/uname-tests: New file.
31718         * tests/test-uname.c: New file.
31719
31720         New module 'uname'.
31721         * lib/uname.c: New file.
31722         * m4/uname.m4: New file.
31723         * modules/uname: New file.
31724         * doc/posix-functions/uname.texi: Mention the new module.
31725
31726 2009-08-02  Bruno Haible  <bruno@clisp.org>
31727
31728         Tests for module 'sys_utsname'.
31729         * modules/sys_utsname-tests: New file.
31730         * tests/test-sys_utsname.c: New file.
31731
31732         New module 'sys_utsname'.
31733         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31734         * m4/sys_utsname_h.m4: New file.
31735         * modules/sys_utsname: New file.
31736         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31737
31738 2009-08-02  Bruno Haible  <bruno@clisp.org>
31739
31740         Implicitly initialize the sockets library.
31741         * lib/gethostname.c: Include sockets.h.
31742         (rpl_gethostname): Invoke gl_sockets_startup.
31743         * lib/socket.c: Include sockets.h.
31744         (rpl_socket): Invoke gl_sockets_startup.
31745         * modules/gethostname (Depends-on): Add sockets.
31746         * modules/socket (Depends-on): Likewise.
31747         * tests/test-poll.c: Don't include sockets.h.
31748         (main): Don't invoke gl_sockets_startup.
31749         * tests/test-select.c: Don't include sockets.h.
31750         (main): Don't invoke gl_sockets_startup.
31751
31752 2009-08-02  Bruno Haible  <bruno@clisp.org>
31753
31754         Allow multiple calls to gl_sockets_startup.
31755         * lib/sockets.c (initialized_sockets_version): New variable.
31756         (gl_sockets_startup): Do nothing if already called for this or a higher
31757         version.
31758         (gl_sockets_cleanup): Reset initialized_sockets_version.
31759
31760 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31761
31762         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31763         different project/version.
31764
31765 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31766             Bruno Haible  <bruno@clisp.org>
31767
31768         Tests for module 'pipe-filter-gi'.
31769         * modules/pipe-filter-gi-tests: New file.
31770         * tests/test-pipe-filter-gi1.sh: New file.
31771         * tests/test-pipe-filter-gi1.c: New file.
31772         * tests/test-pipe-filter-gi2.sh: New file.
31773         * tests/test-pipe-filter-gi2-main.c: New file.
31774         * tests/test-pipe-filter-gi2-child.c: New file.
31775
31776         New module 'pipe-filter-gi'.
31777         * lib/pipe-filter-gi.c: New file.
31778         * modules/pipe-filter-gi: New file.
31779
31780 2009-08-02  Bruno Haible  <bruno@clisp.org>
31781             Paolo Bonzini  <bonzini@gnu.org>
31782
31783         Tests for module 'pipe-filter-ii'.
31784         * modules/pipe-filter-ii-tests: New file.
31785         * tests/test-pipe-filter-ii1.sh: New file.
31786         * tests/test-pipe-filter-ii1.c: New file.
31787         * tests/test-pipe-filter-ii2.sh: New file.
31788         * tests/test-pipe-filter-ii2-main.c: New file.
31789         * tests/test-pipe-filter-ii2-child.c: New file.
31790
31791         New module 'pipe-filter-ii'.
31792         * lib/pipe-filter.h: New file.
31793         * lib/pipe-filter-ii.c: New file.
31794         * lib/pipe-filter-aux.h: New file.
31795         * modules/pipe-filter-ii: New file.
31796
31797 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31798
31799         * lib/gc-libgcrypt.c: Change copyright to FSF.
31800         * lib/gc-gnulib.c: Likewise.
31801
31802 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
31803
31804         * lib/gethostname.c: Include limits.h.
31805
31806 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31807             Bruno Haible  <bruno@clisp.org>
31808
31809         Ensure HOST_NAME_MAX as part of the gethostname module.
31810         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
31811         define also HOST_NAME_MAX.
31812         * tests/test-gethostname.c: Include <limits.h>.
31813         (main): Check also HOST_NAME_MAX.
31814         * doc/posix-headers/limits.texi: Document the mingw problem.
31815
31816 2009-08-02  Bruno Haible  <bruno@clisp.org>
31817
31818         * lib/gethostname.c (gethostname): Fix handling of large len argument.
31819         Add comments.
31820
31821 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31822
31823         * lib/gethostname.c: Add Windows wrapper.
31824         * m4/gethostname.m4: Look for gethostname in -lws2_32.
31825         * modules/gethostname: Depend on sys_socket & errno, for also
31826         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
31827         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
31828
31829 2009-07-31  Jim Meyering  <meyering@redhat.com>
31830
31831         getloadavg: fix symbol name in comment
31832         * lib/getloadavg.c: Correct a typo I introduced when adding
31833         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
31834         Matt Kraai spotted the problem.
31835
31836 2009-07-29  Matt Kraai  <mkraai@beckman.com>
31837
31838         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
31839         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
31840         code also if ! defined N_NAME_POINTER.
31841         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
31842         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
31843         but the n_name member is a 12-byte array.
31844
31845 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
31846
31847         update-copyright: generalize comment handling
31848         * build-aux/update-copyright: Handle copyright statements
31849         within more comment styles.
31850         Document usage.
31851         Report any file with an external copyright holder or parse failure.
31852
31853 2009-07-29  Jim Meyering  <meyering@redhat.com>
31854
31855         mktime: correct setting of REPLACE_MKTIME
31856         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
31857
31858         update-copyright: new module
31859         * modules/update-copyright: New file.
31860         * build-aux/update-copyright: New file.
31861         * MODULES.html.sh (maint+release support): Add update-copyright.
31862
31863 2009-07-27  Bruno Haible  <bruno@clisp.org>
31864
31865         Fix compilation error when <ctime> is used and mktime is replaced.
31866         * lib/time.in.h (mktime): New declaration.
31867         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
31868         REPLACE_MKTIME instead of defining mktime in config.h.
31869         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
31870         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
31871         Reported by Ross McFarland <rwmcfa1@neces.com>.
31872
31873 2009-07-27  Bruno Haible  <bruno@clisp.org>
31874
31875         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
31876         Reported by Matt Kraai <mkraai@beckman.com>.
31877
31878 2009-07-25  Jim Meyering  <meyering@redhat.com>
31879
31880         maint.mk: avoid warnings about missing files
31881         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
31882         diagnostic when .prev-version does not exist.
31883         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
31884         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
31885         nonexistent cfg.mk.
31886         Suggestions from Simon Josefsson.
31887
31888 2009-07-25  Bruno Haible  <bruno@clisp.org>
31889
31890         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
31891         defined as macros. Needed on QNX 6.4.1.
31892         Reported by Matt Kraai <mkraai@beckman.com>.
31893
31894 2009-07-23  Jim Meyering  <meyering@redhat.com>
31895
31896         maint.mk: invoke "make dist" with a working value of XZ_OPT
31897         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
31898
31899 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
31900
31901         Make fseeko.c compile on QNX.
31902         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
31903
31904 2009-07-22  Peter Simons  <simons@cryp.to>
31905
31906         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
31907         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
31908         * lib/md4.h: Likewise.
31909         * lib/md5.h: Likewise.
31910         * lib/sha1.h: Likewise.
31911         * lib/sha256.h: Likewise.
31912         * lib/sha512.h: Likewise.
31913
31914         tests-sha1: don't assign literal string to 'char *' variable
31915         * tests/test-sha1.c (main): Declare locals with "const" to match
31916         attributes of the right hand side.
31917
31918 2009-07-21  Eric Blake  <ebb9@byu.net>
31919
31920         dup2: fix more mingw problems
31921         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
31922         fd to itself.
31923         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31924         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
31925         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
31926         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
31927         care of mingw bugs.
31928
31929 2009-07-21  Jim Meyering  <meyering@redhat.com>
31930
31931         vc-list-files: avoid failure when /bin/sh is dash
31932         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
31933         On some Debian based systems, /bin/sh is a symlink to dash, and running
31934         this command would omit the "/" following each 'tests' prefix:
31935           dash -x build-aux/vc-list-files -C . tests
31936         That is because bash and dash work differently:
31937           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
31938           bash ok
31939           dash odd
31940
31941 2009-07-21  Eric Blake  <ebb9@byu.net>
31942
31943         dup2-tests: test previous patch
31944         * modules/dup2-tests: New file.
31945         * tests/test-dup2.c: Likewise.
31946         * tests/test-open.c (main): Avoid unspecified behavior.
31947         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
31948         test.
31949
31950         dup2: work around mingw and cygwin 1.5 bug
31951         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
31952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31953         * modules/unistd (Makefile.am): Substitute it.
31954         * lib/unistd.in.h (dup2): Declare the replacement.
31955         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
31956         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
31957         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
31958         * modules/execute (Depends-on): Add dup2.
31959         * modules/fseterr (Depends-on): Likewise.
31960         * modules/pipe (Depends-on): Likewise.
31961         * modules/posix_spawn-internal (Depends-on): Likewise.
31962
31963 2009-07-21  Bruno Haible  <bruno@clisp.org>
31964
31965         * modules/.gitattributes: New file.
31966
31967 2009-07-20  Bruno Haible  <bruno@clisp.org>
31968
31969         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
31970         (main): Use it.
31971
31972 2009-07-20  Eric Blake  <ebb9@byu.net>
31973
31974         test-pipe: make a bit more robust.
31975         * tests/test-pipe.c (myerr): Allow error messages regardless of
31976         what we do to stderr.
31977         (test_pipe): Rearrange to avoid deadlock.
31978         (child_main): Try a larger read, to ensure we avoided deadlock.
31979         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
31980         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
31981         if misused.
31982
31983 2009-07-19  Jim Meyering  <meyering@redhat.com>
31984
31985         fts: avoid false-positive cycle-detection
31986         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
31987         for each new command line argument.
31988
31989 2009-07-19  Bruno Haible  <bruno@clisp.org>
31990
31991         Fix build error on mingw with the modules sys_select and unistd.
31992         * modules/acl-tests (Depends-on): Add close.
31993         * modules/binary-io-tests (Depends-on): Likewise.
31994         * modules/closein-tests (Depends-on): Likewise.
31995         * modules/flock-tests (Depends-on): Likewise.
31996         * modules/fsync-tests (Depends-on): Likewise.
31997         * modules/lseek-tests (Depends-on): Likewise.
31998         * modules/pipe-tests (Depends-on): Likewise.
31999         * modules/posix_spawn-tests (Depends-on): Likewise.
32000         * modules/posix_spawnp-tests (Depends-on): Likewise.
32001         * modules/stat-time-tests (Depends-on): Likewise.
32002         * modules/yesno-tests (Depends-on): Likewise.
32003
32004 2009-07-19  Bruno Haible  <bruno@clisp.org>
32005
32006         Unify conditionals.
32007         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
32008         macros, not at the compiler macros.
32009         * lib/pipe.c: Likewise.
32010         * lib/execute.c: Likewise.
32011         * lib/spawni.c: Likewise.
32012
32013 2009-07-19  Bruno Haible  <bruno@clisp.org>
32014
32015         Fix handling of closed stdin/stdout/stderr on mingw.
32016         * lib/w32spawn.h: Include unistd.h.
32017         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
32018         file descriptor with O_NOINHERIT flag.
32019         (fd_safer_noinherit): New function, based on fd-safer.c.
32020         (dup_safer_noinherit): New function, based on dup-safer.c.
32021         (undup_safer_noinherit): New function.
32022         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
32023         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32024         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32025         instead of fd_safer.
32026         * tests/test-pipe.c: Include <windows.h>.
32027         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32028         result.
32029
32030         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
32031         from main.
32032         (test_pipe): Pass an extra argument for disambiguation.
32033         (main): Invoke parent_main or child_main.
32034
32035         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
32036         consistently.
32037
32038 2009-07-18  Eric Blake  <ebb9@byu.net>
32039
32040         test-pipe: fix mingw build
32041         * tests/test-pipe.c (main): Avoid fcntl on mingw.
32042
32043 2009-07-18  Bruno Haible  <bruno@clisp.org>
32044
32045         * modules/pipe-tests (Makefile.am): Fix typo.
32046
32047 2009-07-18  Eric Blake  <ebb9@byu.net>
32048
32049         error: fix mingw build
32050         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
32051         Reported by Bruno Haible.
32052
32053         error: avoid undefined use of stdout
32054         * lib/error.c (error, error_at_line): Check that fd 1 is open
32055         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
32056         is handling faults and the close_stdout module wants to report the
32057         detection of closed stdout as an error.
32058
32059 2009-07-17  Eric Blake  <ebb9@byu.net>
32060
32061         pipe: be robust in face of closed fds
32062         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
32063         should cause child to misbehave.
32064         * modules/pipe-tests: New module.
32065         * tests/test-pipe.c: New file.
32066         * tests/test-pipe.sh: New file.
32067         Reported by Akim Demaille.
32068
32069 2009-07-14  Bruno Haible  <bruno@clisp.org>
32070
32071         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
32072         Reported by anonymous kc.
32073
32074 2009-07-07  Jim Meyering  <meyering@redhat.com>
32075
32076         maint.mk: don't look for translatable strings in *.m4 or *.mk
32077         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
32078         when searching for translatable strings.
32079
32080 2009-07-05  Jim Meyering  <meyering@redhat.com>
32081
32082         remove superfluous parentheses in STREQ definition
32083         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
32084         * lib/getugroups.c (STREQ): Likewise.
32085         * lib/fnmatch.c (STREQ): Likewise.
32086         Spotted by Bruno Haible.
32087
32088 2009-07-04  Jim Meyering  <meyering@redhat.com>
32089
32090         argv-iter: new module
32091         * MODULES.html.sh: Add argv-iter.
32092         * lib/argv-iter.c, lib/argv-iter.h: New files.
32093         * modules/argv-iter: New file.
32094         * modules/argv-iter-tests: New file.
32095         * tests/test-argv-iter.c: Test it.
32096
32097 2009-07-04  Bruno Haible  <bruno@clisp.org>
32098
32099         Fix assertion.
32100         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
32101         contains more exact copies of a given entry than file2, leave the extra
32102         copies unpaired rather than aborting.
32103         Reported by Eric Blake.
32104
32105 2009-07-02  Bruno Haible  <bruno@clisp.org>
32106
32107         Speedup git-merge-changelog for git cherry-pick.
32108         * lib/git-merge-changelog.c (struct entries_mapping): New type.
32109         (entries_mapping_get): New function, extracted from compute_mapping.
32110         (entries_mapping_reverse_get): New function.
32111         (compute_mapping): Add a 'full' argument. Return the result in a
32112         'struct entries_mapping'.
32113         (main): Update. Access the mappings through entries_mapping_get.
32114         Reported by Eric Blake.
32115
32116 2009-07-02  Bruno Haible  <bruno@clisp.org>
32117
32118         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
32119         best_i.
32120
32121 2009-07-02  Bruno Haible  <bruno@clisp.org>
32122
32123         Speed up approximate search for matching ChangeLog entries.
32124         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
32125         argument. Call fstrcmp_bounded instead of fstrcmp.
32126         (compute_mapping, try_split_merged_entry, main): Update callers.
32127
32128 2009-07-02  Bruno Haible  <bruno@clisp.org>
32129
32130         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
32131
32132 2009-06-30  Bruno Haible  <bruno@clisp.org>
32133
32134         Reduce the number of uc_is_cased calls.
32135         * lib/unicase.h (casing_suffix_context_t): Add
32136         'first_char_except_ignorable' field.
32137         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
32138         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
32139         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
32140         Update initializer.
32141         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
32142         case-ignorable characters.
32143         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
32144         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
32145         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
32146         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
32147         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
32148
32149 2009-06-30  Bruno Haible  <bruno@clisp.org>
32150
32151         Tests for module 'unicase/ignorable'.
32152         * modules/unicase/ignorable-tests: New file.
32153         * tests/unicase/test-ignorable.c: New file, generated by
32154         gen-uni-tables.
32155
32156         Tests for module 'unicase/cased'.
32157         * modules/unicase/cased-tests: New file.
32158         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
32159         * tests/unicase/test-predicate-part1.h: New file, derived from
32160         tests/unictype/test-predicate-part1.h.
32161         * tests/unicase/test-predicate-part2.h: New file, same as
32162         tests/unictype/test-predicate-part2.h.
32163
32164         Fix evaluation of "Before C" condition of FINAL_SIGMA.
32165         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
32166         (output_casing_properties): New function.
32167         (main): Call it.
32168         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
32169         * lib/unicase/cased.c: Include unictype/bitmap.h.
32170         (uc_is_cased): Define through a bitmap lookup.
32171         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
32172         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
32173         (uc_is_case_ignorable): Define through a bitmap lookup.
32174         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
32175         lib/unictype/bitmap.h.
32176         (Depends-on): Add inline. Clean up.
32177         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
32178         lib/unictype/bitmap.h.
32179         (Depends-on): Add inline. Clean up.
32180         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
32181         recognition.
32182         * tests/unicase/test-u16-tolower.c (main): Likewise.
32183         * tests/unicase/test-u32-tolower.c (main): Likewise.
32184
32185 2009-06-30  Bruno Haible  <bruno@clisp.org>
32186
32187         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
32188         * lib/unicase/u16-casemap.c: Likewise.
32189         * lib/unicase/u32-casemap.c: Likewise.
32190
32191 2009-06-29  Bruno Haible  <bruno@clisp.org>
32192
32193         Define u32_casefold as a wrapper around u32_ct_casefold.
32194         * lib/unicase/u32-casefold.c: Update.
32195         * modules/unicase/u32-casefold (Depends-on): Add
32196         unicase/u32-ct-casefold, unicase/empty-prefix-context,
32197         unicase/empty-suffix-context. Clean up.
32198
32199         Define u16_casefold as a wrapper around u16_ct_casefold.
32200         * lib/unicase/u16-casefold.c: Update.
32201         * modules/unicase/u16-casefold (Depends-on): Add
32202         unicase/u16-ct-casefold, unicase/empty-prefix-context,
32203         unicase/empty-suffix-context. Clean up.
32204
32205         Define u8_casefold as a wrapper around u8_ct_casefold.
32206         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32207         * lib/unicase/u8-casefold.c: Update.
32208         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32209         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32210
32211         Define u32_totitle as a wrapper around u32_ct_totitle.
32212         * lib/unicase/u32-totitle.c: Update.
32213         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32214         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32215
32216         Define u16_totitle as a wrapper around u16_ct_totitle.
32217         * lib/unicase/u16-totitle.c: Update.
32218         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32219         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32220
32221         Define u8_totitle as a wrapper around u8_ct_totitle.
32222         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32223         functions.
32224         (FUNC): Delegate to U_CT_TOTITLE.
32225         * lib/unicase/u8-totitle.c: Update.
32226         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32227         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32228
32229         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32230         invocation.
32231         * modules/unicase/u32-tolower (Depends-on): Add
32232         unicase/empty-prefix-context, unicase/empty-suffix-context.
32233
32234         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32235         invocation.
32236         * modules/unicase/u16-tolower (Depends-on): Add
32237         unicase/empty-prefix-context, unicase/empty-suffix-context.
32238
32239         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32240         * modules/unicase/u8-tolower (Depends-on): Add
32241         unicase/empty-prefix-context, unicase/empty-suffix-context.
32242
32243         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32244         invocation.
32245         * modules/unicase/u32-toupper (Depends-on): Add
32246         unicase/empty-prefix-context, unicase/empty-suffix-context.
32247
32248         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32249         invocation.
32250         * modules/unicase/u16-toupper (Depends-on): Add
32251         unicase/empty-prefix-context, unicase/empty-suffix-context.
32252
32253         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32254         * modules/unicase/u8-toupper (Depends-on): Add
32255         unicase/empty-prefix-context, unicase/empty-suffix-context.
32256
32257         New module 'unicase/u32-ct-casefold'.
32258         * lib/unicase/u32-ct-casefold.c: New file.
32259         * modules/unicase/u32-ct-casefold: New file.
32260
32261         New module 'unicase/u16-ct-casefold'.
32262         * lib/unicase/u16-ct-casefold.c: New file.
32263         * modules/unicase/u16-ct-casefold: New file.
32264
32265         New module 'unicase/u8-ct-casefold'.
32266         * lib/unicase/u8-ct-casefold.c: New file.
32267         * lib/unicase/u-ct-casefold.h: New file, derived from
32268         lib/unicase/u-casefold.h.
32269         * modules/unicase/u8-ct-casefold: New file.
32270
32271         New module 'unicase/u32-ct-totitle'.
32272         * lib/unicase/u32-ct-totitle.c: New file.
32273         * modules/unicase/u32-ct-totitle: New file.
32274
32275         New module 'unicase/u16-ct-totitle'.
32276         * lib/unicase/u16-ct-totitle.c: New file.
32277         * modules/unicase/u16-ct-totitle: New file.
32278
32279         New module 'unicase/u8-ct-totitle'.
32280         * lib/unicase/u8-ct-totitle.c: New file.
32281         * lib/unicase/u-ct-totitle.h: New file, derived from
32282         lib/unicase/u-totitle.h.
32283         * modules/unicase/u8-ct-totitle: New file.
32284
32285         New module 'unicase/u32-ct-tolower'.
32286         * lib/unicase/u32-ct-tolower.c: New file.
32287         * modules/unicase/u32-ct-tolower: New file.
32288
32289         New module 'unicase/u16-ct-tolower'.
32290         * lib/unicase/u16-ct-tolower.c: New file.
32291         * modules/unicase/u16-ct-tolower: New file.
32292
32293         New module 'unicase/u8-ct-tolower'.
32294         * lib/unicase/u8-ct-tolower.c: New file.
32295         * modules/unicase/u8-ct-tolower: New file.
32296
32297         New module 'unicase/u32-ct-toupper'.
32298         * lib/unicase/u32-ct-toupper.c: New file.
32299         * modules/unicase/u32-ct-toupper: New file.
32300
32301         New module 'unicase/u16-ct-toupper'.
32302         * lib/unicase/u16-ct-toupper.c: New file.
32303         * modules/unicase/u16-ct-toupper: New file.
32304
32305         New module 'unicase/u8-ct-toupper'.
32306         * lib/unicase/u8-ct-toupper.c: New file.
32307         * modules/unicase/u8-ct-toupper: New file.
32308
32309         Add context arguments to u*_casemap functions.
32310         * lib/unicase/unicasemap.h: Include unicase.h.
32311         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32312         suffix_context arguments.
32313         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32314         functions.
32315         (FUNC): Add prefix_context and suffix_context arguments. Use
32316         uc_is_cased and uc_is_case_ignorable.
32317         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32318         * lib/unicase/u16-casemap.c: Likewise.
32319         * lib/unicase/u32-casemap.c: Likewise.
32320         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32321         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32322         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32323         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32324         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32325         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32326
32327         New module 'unicase/u32-suffix-context'.
32328         * lib/unicase/u32-suffix-context.c: New file.
32329         * modules/unicase/u32-suffix-context: New file.
32330
32331         New module 'unicase/u16-suffix-context'.
32332         * lib/unicase/u16-suffix-context.c: New file.
32333         * modules/unicase/u16-suffix-context: New file.
32334
32335         New module 'unicase/u8-suffix-context'.
32336         * lib/unicase/u8-suffix-context.c: New file.
32337         * lib/unicase/u-suffix-context.h: New file.
32338         * modules/unicase/u8-suffix-context: New file.
32339
32340         New module 'unicase/empty-suffix-context'.
32341         * lib/unicase/empty-suffix-context.c: New file.
32342         * modules/unicase/empty-suffix-context: New file.
32343
32344         New module 'unicase/u32-prefix-context'.
32345         * lib/unicase/u32-prefix-context.c: New file.
32346         * modules/unicase/u32-prefix-context: New file.
32347
32348         New module 'unicase/u16-prefix-context'.
32349         * lib/unicase/u16-prefix-context.c: New file.
32350         * modules/unicase/u16-prefix-context: New file.
32351
32352         New module 'unicase/u8-prefix-context'.
32353         * lib/unicase/u8-prefix-context.c: New file.
32354         * lib/unicase/u-prefix-context.h: New file.
32355         * lib/unicase/context.h: New file.
32356         * modules/unicase/u8-prefix-context: New file.
32357
32358         New module 'unicase/empty-prefix-context'.
32359         * lib/unicase/empty-prefix-context.c: New file.
32360         * modules/unicase/empty-prefix-context: New file.
32361
32362         New module 'unicase/ignorable'.
32363         * lib/unicase/ignorable.c: New file.
32364         * modules/unicase/ignorable: New file.
32365
32366         New module 'unicase/cased'.
32367         * lib/unicase/caseprop.h: New file.
32368         * lib/unicase/cased.c: New file.
32369         * modules/unicase/cased: New file.
32370
32371         New functions for case mapping of substrings.
32372         * lib/unicase.h (casing_prefix_context_t): New type.
32373         (unicase_empty_prefix_context): New variable.
32374         (u8_casing_prefix_context, u16_casing_prefix_context,
32375         u32_casing_prefix_context, u8_casing_prefixes_context,
32376         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32377         declarations.
32378         (casing_suffix_context_t): New type.
32379         (unicase_empty_suffix_context): New variable.
32380         (u8_casing_suffix_context, u16_casing_suffix_context,
32381         u32_casing_suffix_context, u8_casing_suffixes_context,
32382         u16_casing_suffixes_context, u32_casing_suffixes_context,
32383         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32384         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32385         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32386         declarations.
32387
32388 2009-06-28  Jim Meyering  <meyering@redhat.com>
32389
32390         boostrap: indent only with spaces
32391         * build-aux/bootstrap: Indent only with spaces, never TABs.
32392
32393         bootstrap: split long lines
32394         * build-aux/bootstrap: Keep line length < 80.
32395
32396         bootstrap: sync from coreutils
32397         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32398         just as autoreconf does.  Verify a list of prerequisite
32399         package-name,version-number pairs if defined in bootstrap.conf.
32400         Refer to README-prereq, if prerequisites are not satisfied.
32401
32402 2009-06-27  Eric Blake  <ebb9@byu.net>
32403
32404         tests: add test for bogus NULL definition
32405         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32406         * tests/test-stdlib.c: Likewise.
32407         * tests/test-string.c: Likewise.
32408         * tests/test-locale.c: Likewise.
32409         * tests/test-unistd.c: Likewise.
32410         * modules/stdio-tests (Depends-on): Add verify.
32411         * modules/stdlib-tests (Depends-on): Likewise.
32412         * modules/string-tests (Depends-on): Likewise.
32413         * modules/locale-tests (Depends-on): Likewise.
32414         * modules/unistd-tests (Depends-on): Likewise.
32415
32416 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32417
32418         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32419         self-explaining comment.
32420         * m4/selinux-selinux-h: Update serial.
32421         (gl_LIBSELINUX): New macro, adding a warning for missing development
32422         packages to code extracted from...
32423         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32424         Add warning for missing development packages here, too.
32425
32426 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32427
32428         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32429
32430 2009-06-25  Eric Blake  <ebb9@byu.net>
32431
32432         version-etc: fix regression
32433         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32434         gcc.
32435         (version_etc): Use it, to catch bugs with trailing NULL.
32436         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32437         (version_etc_va): Fix logic bug.
32438         * modules/version-etc-tests: Add test.
32439         * tests/test-version-etc.c: New file.
32440         * tests/test-version-etc.sh: Likewise.
32441
32442 2009-06-25  Sam Steingold  <sds@gnu.org>
32443
32444         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32445         mbtowc declaration.
32446
32447 2009-06-25  Eric Blake  <ebb9@byu.net>
32448
32449         fpurge: migrate into <stdio.h>
32450         * lib/fpurge.h: Delete...
32451         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32452         * lib/fpurge.c (fpurge): Change declaring header.
32453         * modules/fpurge (Files): Drop deleted file.
32454         (Depends-on): Add stdio.
32455         (configure.ac): Set witness.
32456         * modules/stdio (Makefile.am): Support fpurge macros.
32457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32458         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32459         * lib/fflush.c: Update client.
32460         * tests/test-fpurge.c: Likewise.
32461         * NEWS: Mention the change.
32462
32463 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32464
32465         * lib/argp-version-etc.c (program_authors): Add const
32466         qualifier.
32467         * lib/version-etc.c: Fix typos in the comments.
32468         * modules/argp-version-etc: Depends on version-etc.
32469
32470 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32471
32472         argp-version-etc: new module.
32473
32474         * lib/argp-version-etc.c: New file.
32475         * lib/argp-version-etc.h: New file.
32476         * modules/argp-version-etc: New file.
32477         * modules/argp-version-etc-tests: New file.
32478         * tests/test-argp-version-etc.c: New test.
32479         * tests/test-argp-version-etc-1.sh: New test.
32480
32481 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32482
32483         Provide additional interfaces and documentation for version-etc
32484         module.
32485
32486         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32487         interfaces.
32488         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32489         prototypes.
32490
32491 2009-06-24  Bruno Haible  <bruno@clisp.org>
32492
32493         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32494         HAVE_LIB${NAME} macro.
32495         Reported by Sam Steingold <sds@gnu.org>.
32496
32497 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32498
32499         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32500         needed.
32501
32502 2009-06-21  Bruno Haible  <bruno@clisp.org>
32503
32504         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32505         work.
32506         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32507         together with LIB${NAME}, LTLIB${NAME}.
32508         Reported by Sam Steingold <sds@gnu.org>.
32509
32510 2009-06-20  Jim Meyering  <meyering@redhat.com>
32511
32512         tests: make sc_require_test_exit_idiom more generic
32513         * top/maint.mk (Exit_witness_file): New overridable variable.
32514         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32515         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32516
32517 2009-06-19  Jim Meyering  <meyering@redhat.com>
32518
32519         hash: reverse order of src/dst parameters in an internal interface
32520         * lib/hash.c (transfer_entries): Reverse order of parameters to
32521         put DST before SRC.  Adjust callers.
32522
32523         tests: test-hash: avoid wholesale duplication
32524         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32525         Instead, use a loop and add a single conditional.
32526
32527         tests: test-hash: allow seed selection via a command line argument
32528         * tests/test-hash.c (get_seed): New function.
32529         (main): Use it.
32530
32531 2009-06-19  Eric Blake  <ebb9@byu.net>
32532
32533         hash: avoid memory leak on allocation failure
32534         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32535         failure.  Factor repeated algorithm...
32536         (transfer_entries): ...into new helper routine.
32537         (hash_delete): React to hash_rehash return value.
32538
32539         hash: reduce memory pressure in hash_rehash no-op case
32540         * lib/hash.c (next_prime): Avoid overflow.
32541         (hash_initialize): Factor bucket size computation...
32542         (compute_bucket_size): ...into new helper function.
32543         (hash_rehash): Use new function and open coding to reduce memory
32544         pressure, and avoid a memory leak in USE_OBSTACK code.
32545         Reported by Jim Meyering.
32546
32547 2009-06-18  Eric Blake  <ebb9@byu.net>
32548
32549         hash: make rotation more obvious
32550         * modules/hash (Depends-on): Add bitrotate and stdint.
32551         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32552         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32553         (SIZE_MAX): Rely on headers for definition.
32554         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32555         (raw_hasher): Use rotr_sz.
32556         Suggested by Jim Meyering.
32557
32558         hash: fix memory leak in last patch
32559         * lib/hash.c (hash_rehash): Avoid memory leak.
32560
32561         hash: avoid no-op rehashing
32562         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32563
32564         hash: provide default callback functions
32565         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32566         (hash_initialize): Use them as defaults.
32567         * tests/test-hash.c (main): Test this.
32568
32569         hash: minor optimization
32570         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32571         when possible.
32572         (hash_initialize): Document this promise.
32573         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32574         * tests/test-hash.c (hash_compare_strings): Test this.
32575
32576 2009-06-18  Bruno Haible  <bruno@clisp.org>
32577
32578         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32579         going to be replaced anyway.
32580
32581 2009-06-18  Bruno Haible  <bruno@clisp.org>
32582
32583         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32584         in one place.
32585         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32586         be replaced anyway.
32587
32588 2009-06-18  Eric Blake  <ebb9@byu.net>
32589
32590         hash: check for resize before insertion
32591         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32592         threshold before insertion, so that a pathological hash_rehash
32593         that fills every bucket can still trigger another rehash.
32594
32595 2009-06-18  Jim Meyering  <meyering@redhat.com>
32596
32597         hash-tests: add a loop around the small tests
32598         * tests/test-hash.c (main): Repeat small tests with selected
32599         small initial table sizes.
32600
32601 2009-06-17  Eric Blake  <ebb9@byu.net>
32602
32603         hash: minor cleanups
32604         * lib/hash.h (hash_entry): Make opaque, by moving...
32605         * lib/hash.c (hash_entry): ...here.
32606         (hash_insert): Clarify restrictions on what can be inserted.
32607         (hash_get_next): Clarify when it is safe to remove an element
32608         during traversal.
32609         (check_tuning): Skip verification when tuning is known safe.
32610         (hash_initialize): Clarify restrictions on tuning.
32611
32612 2009-06-17  Jim Meyering  <jim@meyering.net>
32613         and Eric Blake  <ebb9@byu.net>
32614
32615         hash-tests: new module
32616         * modules/hash-tests: New file.
32617         * tests/test-hash.c: New file.
32618
32619 2009-06-17  Eric Blake  <ebb9@byu.net>
32620
32621         strstr-simple: document new module
32622         * MODULES.html.sh: Document new module.
32623
32624         strstr, strcasestr: replace on platforms with broken memchr
32625         * modules/strstr: Split into...
32626         * modules/strstr-simple: ...new module that does not care about
32627         performance, but does care about glibc bug.
32628         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32629         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32630         if platform memchr is broken, per Debian bug 521737.
32631         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32632         memchr.
32633         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32634         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32635         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32636         * modules/mountlist (Depends-on): Add strstr-simple.
32637         * modules/gen-uni-tables (Depends-on): Likewise.
32638         * modules/argz (Depends-on): Add strstr.
32639
32640 2009-06-17  Bruno Haible  <bruno@clisp.org>
32641
32642         * modules/posix_spawn-internal (Depends-on): Add errno.
32643
32644 2009-06-17  Bruno Haible  <bruno@clisp.org>
32645
32646         Define missing ESTALE on Interix 3.5.
32647         * lib/errno.in.h (ESTALE): Assign a value if missing.
32648         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32649         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32650         missing.
32651         * doc/posix-headers/errno.texi: Mention the Interix bug.
32652         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32653
32654 2009-06-15  Eric Blake  <ebb9@byu.net>
32655
32656         memchr, memchr2: add valgrind exception
32657         * lib/memchr.valgrind: New file.
32658         * lib/memchr2.valgrind: New file.
32659         * modules/memchr (Files): Distribute valgrind file.
32660         * modules/memchr2 (Files): Likewise.
32661
32662         docs: memchr is no longer obsolete
32663         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32664         * lib/string.in.h (memchr): Simplify logic.
32665
32666 2009-06-14  Jim Meyering  <meyering@redhat.com>
32667
32668         link-follow: fix the "checking..." message to not mention trailing slash
32669         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32670         never considered trailing slashes.
32671
32672 2009-06-14  Bruno Haible  <bruno@clisp.org>
32673
32674         * m4/memchr.m4: Mention also the bug on IA-64.
32675         * doc/posix-functions/memchr.texi: Likewise.
32676
32677 2009-06-12  Eric Blake  <ebb9@byu.net>
32678
32679         memchr: detect broken x86_64 and alpha implementations
32680         * modules/memchr-tests (Depends-on): Move mmap detection...
32681         * modules/memchr (Depends-on): ...here.
32682         (configure.ac): Set indicator.
32683         * lib/string.in.h (memchr): Declare replacement.
32684         * modules/string (Makefile.am): Trigger replacement.
32685         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32686         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32687         bugs.
32688         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32689         * modules/getpagesize (License): Relax license.
32690
32691 2009-06-11  Bruno Haible  <bruno@clisp.org>
32692
32693         * lib/idpriv.h: Add more references.
32694
32695 2009-06-08  Bruno Haible  <bruno@clisp.org>
32696
32697         Tests for module 'idpriv-droptemp'.
32698         * modules/idpriv-droptemp-tests: New file.
32699         * tests/test-idpriv-droptemp.sh: New file.
32700         * tests/test-idpriv-droptemp.su.sh: New file.
32701         * tests/test-idpriv-droptemp.c: New file.
32702
32703         New module 'idpriv-droptemp'.
32704         * lib/idpriv-droptemp.c: New file.
32705         * modules/idpriv-droptemp: New file.
32706
32707 2009-06-08  Bruno Haible  <bruno@clisp.org>
32708
32709         Tests for module 'idpriv-drop'.
32710         * modules/idpriv-drop-tests: New file.
32711         * tests/test-idpriv-drop.sh: New file.
32712         * tests/test-idpriv-drop.su.sh: New file.
32713         * tests/test-idpriv-drop.c: New file.
32714
32715         New module 'idpriv-drop'.
32716         * lib/idpriv.h: New file.
32717         * lib-idpriv-drop.c: New file.
32718         * m4/idpriv.m4: New file.
32719         * modules/idpriv-drop: New file.
32720
32721 2009-06-08  Bruno Haible  <bruno@clisp.org>
32722
32723         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32724         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32725         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32726         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32727         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32728         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32729         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32730
32731 2009-06-08  Eric Blake  <ebb9@byu.net>
32732
32733         test-strstr: use memory fence, when possible
32734         * tests/test-strstr.c (main): Use memory fence, in order to be
32735         more likely to trigger Debian bug 521737.
32736         * modules/strstr-tests (Files): Pull in additional files.
32737
32738         memchr: no longer obsolete, for wider field testing
32739         * modules/memchr (Status, Notice): Delete, this module is no
32740         longer obsolete.
32741         * modules/vasnprintf (Depends-on): Add memchr.
32742
32743 2009-06-07  Jim Meyering  <meyering@redhat.com>
32744
32745         hash: declare some functions with the warn_unused_result attribute
32746         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32747
32748 2009-06-07  Bruno Haible  <bruno@clisp.org>
32749
32750         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32751         Reported by Eric Blake.
32752
32753 2009-06-06  Eric Blake  <ebb9@byu.net>
32754
32755         test-alignof: fix typo with long double
32756         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32757         compiler error.
32758
32759 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32760
32761         Escape non-texinfo { and }s.
32762         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32763         markup error.
32764
32765 2009-06-04  Jim Meyering  <meyering@redhat.com>
32766
32767         gitlog-to-changelog: don't infloop on an empty commit log
32768         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32769         Reported by Boris Petersen <transacid@centerim.org>.
32770
32771 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32772
32773         version-etc: extend for packagers
32774         Add three new configure options, intended for packagers:
32775           --with-packager="packager name"
32776           --with-packager-version="packager-specific version"
32777           --with-packager-bug-reports="packager bug reporting"
32778         An example with coreutils:
32779           $ ./configure \
32780             --with-packager=Gentoo \
32781             --with-packager-bug-report=http://bugs.gentoo.org/ \
32782             --with-packager-version="patchset 1.6"
32783           $ ./src/ls --version | head -n2
32784           ls (GNU coreutils) 7.1-dirty
32785           Packaged by Gentoo (patchset 1.6)
32786         Note that the bug reporting info via --help doesn't show up because
32787         coreutils uses its own custom emit_bug_reporting_address() implementation
32788         in src/system.h.  If it didn't, it'd look like:
32789           $ ./src/ls --help | tail -n4
32790           Report bugs to <bug-coreutils@gnu.org>.
32791           Report Gentoo bugs to <http://bugs.gentoo.org/>.
32792           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
32793           General help using GNU software: <http://www.gnu.org/gethelp/>.
32794         * lib/version-etc.c: Print new information, if provided.
32795         * m4/version-etc.m4: New file.
32796         * modules/version-etc (Files): Add m4/version-etc.m4.
32797         (configure.ac): Add gl_VERSION_ETC.
32798
32799 2009-05-31  Bruno Haible  <bruno@clisp.org>
32800
32801         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
32802         and 'int64_t'.
32803         * modules/alignof-tests (Dependencies): Add stdint.
32804         Reported by Eric Blake.
32805
32806 2009-05-31  Bruno Haible  <bruno@clisp.org>
32807
32808         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
32809         restriction due to compiler bugs.
32810         Reported by Eric Blake.
32811
32812 2009-05-31  Simon Josefsson  <simon@josefsson.org>
32813             Bruno Haible  <bruno@clisp.org>
32814
32815         Fix test-alignof failure.
32816         * lib/alignof.h (alignof_slot): New macro.
32817         (alignof_type): New macro, with the same semantics as the previous
32818         'alignof'.
32819         (alignof): Alias to alignof_slot.
32820         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
32821         check that the results are usable as constant expressions.
32822
32823 2009-05-31  Bruno Haible  <bruno@clisp.org>
32824
32825         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
32826         * tests/test-memchr.c (main): Check that memchr does not read past the
32827         first occurrence of the byte.
32828         * tests/test-strstr.c (main): Update comment.
32829         Suggested by Eric Blake.
32830
32831 2009-05-30  Bruno Haible  <bruno@clisp.org>
32832
32833         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
32834         detail how to use dumpbin.
32835         Reported by David Byron <dbyron@dbyron.com>.
32836
32837 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32838
32839         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
32840
32841 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32842
32843         * m4/manywarnings.m4: Add GCC 4.4 warnings.
32844
32845 2009-05-28  Bruno Haible  <bruno@clisp.org>
32846
32847         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
32848         build-aux/ files.
32849
32850 2009-05-28  Simon Josefsson  <simon@josefsson.org>
32851
32852         * gnulib-tool (func_import): Transform license on build-aux/ files too.
32853
32854 2009-05-27  Simon Josefsson  <simon@josefsson.org>
32855
32856         * gnulib-tool (sed_transform_main_lib_file)
32857         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
32858         regexps.
32859
32860 2009-05-26  Simon Josefsson  <simon@josefsson.org>
32861
32862         * tests/test-strstr.c: Add another self-test.
32863         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
32864         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
32865
32866 2009-05-23  Bruno Haible  <bruno@clisp.org>
32867
32868         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
32869         change.
32870
32871 2009-05-21  Bruno Haible  <bruno@clisp.org>
32872
32873         Simplify use of mode_t varargs.
32874         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
32875         uses 'mode_t' or 'int'.
32876         * lib/openat.c (openat): Likewise.
32877         * lib/open-safer.c (open_safer): Likewise.
32878         * m4/mode_t.m4: New file.
32879         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
32880         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
32881         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
32882         * modules/open (Files): Add m4/mode_t.m4.
32883         * modules/openat (Files): Likewise.
32884         * modules/fcntl-safer (Files): Likewise.
32885         Suggested by Eric Blake.
32886
32887 2009-05-21  Pádraig Brady  <P@draigbrady.com>
32888
32889         * doc/glibc-functions/fallocate.texi: New file.
32890         * doc/gnulib.texi: Include it.
32891
32892 2009-05-21  Eric Blake  <ebb9@byu.net>
32893             Bruno Haible  <bruno@clisp.org>
32894
32895         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
32896         invocations.
32897         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32898
32899 2009-05-21  Eric Blake  <ebb9@byu.net>
32900             Bruno Haible  <bruno@clisp.org>
32901
32902         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
32903         include_next. Fix of 2008-11-20 commit.
32904         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
32905         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
32906         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
32907         NEXT_MATH_H.
32908         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
32909         instead of NEXT_MATH_H.
32910
32911 2009-05-21  Bruno Haible  <bruno@clisp.org>
32912
32913         Avoid redefinition warnings for SIZE_MAX.
32914         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
32915         Reported by Simon Josefsson.
32916
32917 2009-05-21  Bruno Haible  <bruno@clisp.org>
32918
32919         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
32920         AC_CACHE_VAL.
32921
32922 2009-05-20  Bruno Haible  <bruno@clisp.org>
32923
32924         Make zeroptr.h work on mingw.
32925         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
32926         mprotect.
32927         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
32928         * modules/memchr2-tests (configure.ac): Likewise.
32929         * modules/memcmp-tests (configure.ac): Likewise.
32930         * modules/memmem-tests (configure.ac): Likewise.
32931         * modules/memrchr-tests (configure.ac): Likewise.
32932         Reported by Simon Josefsson.
32933
32934 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32935
32936         * tests/test-glob.c: Include string.h for strcmp prototype.
32937
32938 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32939
32940         * modules/getdelim (Depends-on): Add explicit stdint, although it
32941         was implicitly already pulled in via realloc-posix.
32942         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
32943
32944 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32945
32946         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
32947         G. Christensen" <tgc@jupiterrise.com>.
32948         * m4/sys_socket_h.m4: Check for sa_family_t.
32949         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
32950         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
32951         * tests/test-sys_socket.c: Check that sa_family_t works.
32952
32953 2009-05-18  Eric Blake  <ebb9@byu.net>
32954
32955         maint.mk: allow gnulib_dir in VPATH build
32956         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
32957
32958 2009-05-15  Jim Meyering  <meyering@redhat.com>
32959
32960         maint.mk: Give gnulib_dir a default definition.
32961         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
32962         Thus, most packages no longer need to specify this variable in cfg.mk
32963
32964 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
32965
32966         rename.m4: fix typos that would make non-mingw cross-configure fail
32967         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
32968
32969 2009-05-13  Eric Blake  <ebb9@byu.net>
32970
32971         mmap-anon: avoid out-of-order autoconf expansion
32972         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
32973         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
32974         * modules/memchr-tests (Depends-on): Add extensions.
32975         * modules/memchr2-tests (Depends-on): Add extensions.
32976         * modules/memcmp-tests (Depends-on): Add extensions.
32977         * modules/memmem-tests (Depends-on): Add extensions.
32978         * modules/memrchr-tests (Depends-on): Add extensions.
32979
32980 2009-05-13  Bruno Haible  <bruno@clisp.org>
32981
32982         Make some tests ISO C 99 compliant.
32983         * tests/zerosize-ptr.h: New file.
32984         * tests/test-memchr.c: Include zerosize-ptr.h.
32985         (main): Use a zero-size object pointer instead of NULL.
32986         * tests/test-memchr2.c: Include zerosize-ptr.h.
32987         (main): Use a zero-size object pointer instead of NULL.
32988         * tests/test-memcmp.c: Include zerosize-ptr.h.
32989         (main): Use a zero-size object pointer instead of NULL.
32990         * tests/test-memmem.c: Include zerosize-ptr.h.
32991         (main): Use a zero-size object pointer instead of NULL.
32992         * tests/test-memrchr.c: Include zerosize-ptr.h.
32993         (main): Use a zero-size object pointer instead of NULL.
32994         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
32995         m4/mmap-anon.m4.
32996         (Depends-on): Add getpagesize.
32997         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32998         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
32999         m4/mmap-anon.m4.
33000         (Depends-on): Add getpagesize.
33001         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33002         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
33003         m4/mmap-anon.m4.
33004         (Depends-on): Add getpagesize.
33005         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33006         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
33007         m4/mmap-anon.m4.
33008         (Depends-on): Add getpagesize.
33009         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33010         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
33011         m4/mmap-anon.m4.
33012         (Depends-on): Add getpagesize.
33013         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33014
33015 2009-05-12  Bruno Haible  <bruno@clisp.org>
33016
33017         Tests for module 'alignof'.
33018         * modules/alignof-tests: New file.
33019         * tests/test-alignof.c: New file.
33020
33021 2009-05-12  Bruno Haible  <bruno@clisp.org>
33022
33023         Fix alignof macro.
33024         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33025         vendor compilers that are always correct.
33026
33027 2009-05-12  Bruno Haible  <bruno@clisp.org>
33028
33029         Make the MAP_ANONYMOUS detection work on HP-UX 11.
33030         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
33031         not whether its fully works.
33032
33033 2009-05-12  Bruno Haible  <bruno@clisp.org>
33034
33035         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
33036
33037 2009-05-12  Jim Meyering  <meyering@redhat.com>
33038
33039         * top/maint.mk: Adjust backslash alignment.
33040
33041 2009-05-11  Simon Josefsson  <simon@josefsson.org>
33042
33043         * top/maint.mk: Make $(srcdir)/build-aux configurable.
33044
33045 2009-05-11  Eric Blake  <ebb9@byu.net>
33046
33047         argp: avoid undefined behavior
33048         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
33049         macros.
33050
33051 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33052
33053         * tests/test-vc-list-files-git.sh: Do git config of user.email and
33054         user.name to prevent git commit from complaining.
33055
33056 2009-05-10  Bruno Haible  <bruno@clisp.org>
33057
33058         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
33059         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
33060         it rewrites every file name only once.
33061         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
33062
33063 2009-05-08  Bruno Haible  <bruno@clisp.org>
33064
33065         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
33066         instead of 'max'.
33067
33068 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33069
33070         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
33071         sockaddr_storage test.
33072
33073 2009-05-07  Simon Josefsson  <simon@josefsson.org>
33074
33075         * modules/sys_socket (Makefile.am): Substitute
33076         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
33077         * m4/sys_socket_h.m4: Check for sockaddr_storage.
33078         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
33079         * tests/test-sys_socket.c: Check sockaddr_storage.
33080
33081 2009-05-08  Bruno Haible  <bruno@clisp.org>
33082
33083         New module 'alignof'.
33084         * lib/alignof.h: New file.
33085         * modules/alignof: New file.
33086
33087 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33088             Bruno Haible  <bruno@clisp.org>
33089
33090         Fix test-file-has-acl on FreeBSD.
33091         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
33092         mask is implicitly added.
33093         * tests/test-file-has-acl.c: Include <signal.h>.
33094         (main): Terminate the test after 5 seconds.
33095         * modules/acl-tests (configure.ac): Check for alarm function.
33096
33097 2009-05-04  Bruno Haible  <bruno@clisp.org>
33098
33099         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
33100         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
33101         * modules/errno (configure.ac): Drop AC_REQUIRE.
33102         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
33103         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
33104
33105 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33106
33107         * modules/glob-tests: New module.
33108         * tests/test-glob.c: Add.
33109
33110 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33111
33112         * modules/fnmatch-tests: New module.
33113         * tests/test-fnmatch.c: Add.
33114
33115 2009-05-04  Eric Blake  <ebb9@byu.net>
33116
33117         maint: make the new no-submodule-changes rule VPATH-safe
33118         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
33119
33120 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33121             Bruno Haible  <bruno@clisp.org>
33122
33123         acl: Fix infinite loop on FreeBSD.
33124         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
33125         of return value from acl_get_entry.
33126         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
33127         Likewise.
33128
33129 2009-05-03  Bruno Haible  <bruno@clisp.org>
33130
33131         * lib/acl-internal.h (acl_entries): Clarify return value.
33132         * lib/acl_entries.c (acl_entries): Likewise.
33133
33134 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33135
33136         Bug fix in acl module.
33137         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
33138
33139 2009-05-03  Bruno Haible  <bruno@clisp.org>
33140
33141         Create gperf-generated file in the source dir, not in the build dir.
33142         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
33143         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
33144         * modules/unicase/locale-language (unicase/locale-languages.h):
33145         Likewise.
33146         * modules/unicase/special-casing (unicase/special-casing-table.h):
33147         Likewise.
33148         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
33149         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
33150         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
33151         Reported by Ralf Wildenhues.
33152
33153 2009-05-03  Bruno Haible  <bruno@clisp.org>
33154
33155         * modules/fnmatch (Description, configure.ac): Taken from
33156         fnmatch-posix.
33157         * modules/fnmatch-posix: Turn into a symbolic reference to the
33158         'fnmatch' module, and deprecate.
33159         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
33160
33161 2009-05-03  Bruno Haible  <bruno@clisp.org>
33162
33163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
33164         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
33165         Reported by Ralf Wildenhues.
33166
33167 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33168
33169         * m4/fnmatch.m4: Fix fnmatch re-define.
33170
33171 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33172
33173         priv-set: new module and tests; adapt write-any-file
33174         * lib/priv-set.c: New file.
33175         * lib/priv-set.h: New file.
33176         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
33177         * lib/write-any-file.c: Simplify by using priv-set module.
33178         * m4/priv-set.m4: New file.
33179         * modules/priv-set: New file.
33180         * modules/unlinkdir: Add dependency on priv-set module.
33181         * modules/write-any-file: Likewise.
33182
33183         Tests for module 'priv-set'.
33184         * modules/priv-set-tests: New file.
33185         * tests/test-priv-set.c: New file.
33186
33187 2009-05-03  Jim Meyering  <meyering@redhat.com>
33188             Bruno Haible  <bruno@clisp.org>
33189
33190         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
33191         use the converted UTF-8 variant of the name instead.
33192
33193 2009-05-03  Jim Meyering  <meyering@redhat.com>
33194
33195         tests: tighten some getdate tests
33196         * tests/test-getdate.c (main): Tighten tests: require equality,
33197         not just greater than.  Set TZ envvar to UTC0.
33198
33199 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33200
33201         getdate: correctly interpret "next monday" when run on a Monday
33202         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
33203         that e.g., "next tues" (when run on a tuesday) results in a date
33204         that is one week in the future, and not today's date.
33205         I.e., add a week when the wday is the same as the current one.
33206         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33207         and earlier by Martin Bernreuther and Jan Minář.
33208         * tests/test-getdate.c (main): Check that "next DAY" is always in
33209         the future and that "last DAY" is always in the past.
33210
33211 2009-05-02  Jim Meyering  <meyering@redhat.com>
33212
33213         build: ensure that a release build fails when a submodule is unclean
33214         * top/maint.mk (no-submodule-changes): New rule.
33215         (alpha beta major): Depend on it.
33216
33217 2009-05-02  Bruno Haible  <bruno@clisp.org>
33218
33219         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33220         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33221         shell variable gl_fnmatch_required to detect which variant is
33222         requested.
33223         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33224         gl_FUNC_FNMATCH_POSIX.
33225         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33226         exclude fnmatch-posix.
33227
33228 2009-05-02  Bruno Haible  <bruno@clisp.org>
33229
33230         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33231         * modules/mbsrtowcs (License): Change to LGPLv2+.
33232         * modules/strnlen1 (License): Likewise.
33233         Reported by Simon Josefsson.
33234
33235 2009-05-02  Bruno Haible  <bruno@clisp.org>
33236
33237         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33238         "cross".
33239         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33240         gnulib-tool was called with option --source-base=lib.
33241
33242 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33243
33244         Use automake *-local hooks without commands, for extensibility.
33245         * modules/localcharset (Makefile.am): Rename install-exec-local
33246         rule to install-exec-localcharset, and make it a prerequisite of
33247         install-exec-local.  Likewise, rename the uninstall-local rule to
33248         uninstall-localcharset, and make it a prerequisite of the former.
33249
33250 2009-05-01  Bruno Haible  <bruno@clisp.org>
33251
33252         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33253         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33254         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33255         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33256         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33257         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33258         m4/locale-zh.m4, m4/codeset.m4.
33259
33260         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33261         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33262         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33263         m4/locale-zh.m4.
33264
33265         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33266         REPLACE_WCRTOMB if mbstate_t must be replaced.
33267         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33268         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33269
33270 2009-05-01  Bruno Haible  <bruno@clisp.org>
33271
33272         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33273         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33274         dngettext, dcngettext, textdomain, bindtextdomain,
33275         bind_textdomain_codeset): Undefine before redefining.
33276
33277 2009-04-30  Bruno Haible  <bruno@clisp.org>
33278
33279         Fix bug introduced on 2009-04-25.
33280         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33281         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33282         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33283         is defined.
33284         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33285         is defined.
33286         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33287         is defined.
33288         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33289
33290 2009-04-28  Bruno Haible  <bruno@clisp.org>
33291
33292         Comment tweaks.
33293         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33294         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33295         * lib/unicase.h (u*_casexfrm): Likewise.
33296         Reported by Paolo Bonzini.
33297
33298 2009-04-28  Bruno Haible  <bruno@clisp.org>
33299
33300         Fix a compilation error.
33301         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33302         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33303         Reported by Jim Meyering.
33304
33305 2009-04-27  Bruno Haible  <bruno@clisp.org>
33306
33307         New module 'libunistring'.
33308         * modules/libunistring: New file.
33309         * m4/libunistring.m4: New file.
33310         * MODULES.html.sh (Unicode string functions): Add it.
33311
33312 2009-04-27  Eric Blake  <ebb9@byu.net>
33313
33314         maint.mk: allow package-specific header to provide <config.h>
33315         * top/maint.mk (sc_require_config_h): New variable.
33316         (sc_require_config_h, sc_require_config_h_first): Use it.
33317
33318 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33319
33320         * top/maint.mk (sc_avoid_if_before_free): Except
33321         useless-if-before-free script.
33322
33323 2009-04-27  Eric Blake  <ebb9@byu.net>
33324
33325         maintainer-makefile: depend on all required helper scripts
33326         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33327         useless-if-before-free.
33328         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33329         version, rather than assuming gnulib checkout is available.
33330         Reported by Simen Josefsson.
33331
33332 2009-04-26  Bruno Haible  <bruno@clisp.org>
33333
33334         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33335         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33336         "../" or "..".
33337
33338 2009-04-26  Bruno Haible  <bruno@clisp.org>
33339
33340         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33341         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33342         AC_LIB_HAVE_LINKFLAGS.
33343
33344 2009-04-26  Bruno Haible  <bruno@clisp.org>
33345
33346         Simplify calling convention of u*_conv_from_encoding.
33347         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33348         u32_conv_from_encoding): Expect a resultbuf argument and return the
33349         result directly as a pointer.
33350         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33351         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33352         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33353         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33354         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33355         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33356         Update.
33357         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33358         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33359         * lib/vasnprintf.c (VASNPRINTF): Update.
33360         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33361         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33362         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33363         * NEWS: Mention the change.
33364
33365 2009-04-26  Bruno Haible  <bruno@clisp.org>
33366
33367         Simplify calling convention of u*_conv_to_encoding.
33368         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33369         u32_conv_to_encoding): Expect a resultbuf argument and return the
33370         result directly as a pointer.
33371         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33372         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33373         freeing scaled_offsets if mem_iconveha failed.
33374         * lib/unicase/u-casexfrm.h (FUNC): Update.
33375         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33376         * lib/vasnprintf.c (VASNPRINTF): Update.
33377         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33378         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33379         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33380         * NEWS: Mention the change.
33381
33382 2009-04-26  Bruno Haible  <bruno@clisp.org>
33383
33384         Avoid test failures on AIX and OSF/1.
33385         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33386         malloc(0).
33387         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33388         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33389         Likewise.
33390         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33391         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33392         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33393         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33394         * doc/posix-functions/malloc.texi: Document the portability problem
33395         related to malloc(0).
33396
33397 2009-04-26  Bruno Haible  <bruno@clisp.org>
33398
33399         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33400         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33401         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33402
33403 2009-04-25  Bruno Haible  <bruno@clisp.org>
33404
33405         Avoid link error when creating a namespace clean library.
33406         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33407         as macro with arguments if already defined as an alias.
33408         * lib/signbitf.c (gl_signbitf): Don't undefine.
33409         * lib/signbitd.c (gl_signbitd): Don't undefine.
33410         * lib/signbitl.c (gl_signbitl): Don't undefine.
33411
33412 2009-04-25  Jim Meyering  <meyering@redhat.com>
33413
33414         vc-list-files: fix another quoting bug
33415         * build-aux/vc-list-files: Avoid sed backslash expansion
33416         of pathological directory names.
33417
33418 2009-04-25  Eric Blake  <ebb9@byu.net>
33419
33420         vc-list-files: fix shell quoting error
33421         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33422         timestamp.
33423
33424 2009-04-25  Jim Meyering  <meyering@redhat.com>
33425
33426         vc-list-files: restore lost functionality with subdir argument
33427         * build-aux/vc-list-files: When given a non-"." sub-directory
33428         argument, substitute the $dir/ prefix back onto each resulting name.
33429         Otherwise, coreutils' root_tests check would fail.
33430
33431 2009-04-24  Eric Blake  <ebb9@byu.net>
33432
33433         vc-list-files: ignore git symlinks
33434         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33435         than ls-files, to ignore git symlinks.
33436
33437         maint.mk: import improvements from m4
33438         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33439         (move_if_change): Delete unused macro.
33440         (news-date-check, vc-diff-check): Support VPATH builds.
33441         (announcement): Likewise.  Split --bootstrap-tools list...
33442         (boostrap-tools): ...into separate list, which can be overridden
33443         in cfg.mk.
33444         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33445         requiring dependency on useless-if-before-free module.
33446         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33447         Support VPATH builds.
33448
33449 2009-04-24  Jim Meyering  <meyering@redhat.com>
33450
33451         maint.mk: remove coreutils-specific rules and variables
33452         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33453         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33454         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33455
33456         maint.mk: remove obsolete rule
33457         * top/maint.mk (rel-check): Remove rule.
33458         (WGET, WGETFLAGS): Remove now-unused variables.
33459
33460 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33461
33462         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33463         consistency.
33464
33465         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33466         '$(PATH_SEPARATOR)' instead of ':'.
33467
33468 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33469
33470         * lib/getopt1.c (main): Use 'const' for static array.
33471
33472 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33473
33474         * top/maint.mk: Sync with coreutils.
33475         * NEWS: Explain incompatibilities.
33476
33477 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33478             Bruno Haible  <bruno@clisp.org>
33479
33480         Fix cross-compilation results.
33481         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33482         statement, as third argument of AC_TRY_RUN.
33483         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33484         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33485         Likewise.
33486         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33487         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33488         Likewise.
33489         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33490         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33491         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33492
33493 2009-04-20  Bruno Haible  <bruno@clisp.org>
33494
33495         Avoid test failure on mingw.
33496         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33497
33498 2009-04-20  Bruno Haible  <bruno@clisp.org>
33499
33500         Avoid compilation error on mingw.
33501         * modules/localename-tests (Depends-on): Add locale.
33502
33503 2009-04-19  Bruno Haible  <bruno@clisp.org>
33504
33505         Support for building a shared library on Windows platforms.
33506         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33507         (main): Test the presence of UNINORM_NFC here.
33508         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33509         (main): Test the presence of UNINORM_NFD here.
33510         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33511         (main): Test the presence of UNINORM_NFKC here.
33512         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33513         (main): Test the presence of UNINORM_NFKD here.
33514
33515 2009-04-19  Bruno Haible  <bruno@clisp.org>
33516
33517         Avoid a compiler warning.
33518         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33519         Change type of variable 'sequence'.
33520
33521 2009-04-19  Bruno Haible  <bruno@clisp.org>
33522
33523         * modules/configmake (Makefile.am): When the contents of configmake.h
33524         does not change, arrange to preserve its modification time.
33525
33526 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33527
33528         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33529         gettext domain.
33530
33531 2009-04-16  Jim Meyering  <meyering@redhat.com>
33532
33533         useless-if-before-free: improve conversion code
33534         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33535         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33536
33537 2009-04-14  Bruno Haible  <bruno@clisp.org>
33538
33539         * modules/fcntl (Depends-on): Add extensions.
33540         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33541
33542 2009-04-12  Ben Pfaff  <blp@gnu.org>
33543
33544         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33545         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33546
33547 2009-03-20  Ben Pfaff  <blp@gnu.org>
33548
33549         Make rename replace existing destinations on Windows.
33550         * m4/rename.m4: Add test for Mingw.
33551         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33552         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33553         * doc/posix-functions/rename.texi: Document.
33554
33555 2009-04-10  Bruno Haible  <bruno@clisp.org>
33556
33557         New include file "iconveh.h".
33558         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33559         * lib/striconveh.h: Include it.
33560         (enum iconv_ilseq_handler): Remove definition.
33561         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33562         striconveh.h.
33563         * lib/striconveha.c: Include striconveh.h.
33564         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33565         * modules/striconveh (Files): Add lib/iconveh.h.
33566         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33567         lib/striconveh.h.
33568
33569 2009-04-10  Bruno Haible  <bruno@clisp.org>
33570
33571         * lib/uniconv.h: Update comment.
33572
33573 2009-04-10  Bruno Haible  <bruno@clisp.org>
33574
33575         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33576         always.
33577         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33578         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33579         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33580         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33581         "unistring-notinline.h", so that the function gets defined always.
33582         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33583         * lib/unistr/u8-uctomb.c: Likewise.
33584         * lib/unistr/u16-mbtouc.c: Likewise.
33585         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33586         * lib/unistr/u16-uctomb.c: Likewise.
33587         * lib/unistr/u32-mbtouc.c: Likewise.
33588         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33589         * lib/unistr/u32-uctomb.c: Likewise.
33590
33591 2009-04-10  Bruno Haible  <bruno@clisp.org>
33592
33593         Mark 'utime' obsolete.
33594         * modules/utime (Status, Notice): New sections.
33595         Suggested by Jim Meyering.
33596
33597         Fix cross-compile guess for utime test.
33598         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33599         autoconf.
33600         * doc/posix-functions/utime.texi: Give more precisions.
33601         Reported by Jan <ipif@ymail.com>.
33602
33603 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33604
33605         filevercmp: correct today's change
33606         * lib/filevercmp.c: Also handle coreutils' test inputs.
33607         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33608
33609         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33610         for reporting it.
33611         * lib/filevercmp.c: Special handle for "", "." and "..".
33612         * tests/test-filevercmp.c: Enlarge the set suite.
33613
33614 2009-04-07  Jim Meyering  <meyering@redhat.com>
33615
33616         useless-if-before-free: show how to remove braced useless free, too
33617         * build-aux/useless-if-before-free: still only in a comment, though.
33618
33619 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33620
33621         maint.mk: import changes to syntax-check macros from coreutils
33622         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33623         Use them in the relevant macros.
33624
33625 2009-04-06  Bruno Haible  <bruno@clisp.org>
33626
33627         Fix unportable use of bit-fields.
33628         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33629         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33630         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33631
33632 2009-04-06  Bruno Haible  <bruno@clisp.org>
33633
33634         Avoid test failures on AIX and OSF/1.
33635         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33636         that malloc(0) = NULL.
33637         * tests/unicase/test-u8-tolower.c (check): Likewise.
33638         * tests/unicase/test-u8-totitle.c (check): Likewise.
33639         * tests/unicase/test-u8-toupper.c (check): Likewise.
33640         * tests/unicase/test-u16-casefold.c (check): Likewise.
33641         * tests/unicase/test-u16-tolower.c (check): Likewise.
33642         * tests/unicase/test-u16-totitle.c (check): Likewise.
33643         * tests/unicase/test-u16-toupper.c (check): Likewise.
33644         * tests/unicase/test-u32-casefold.c (check): Likewise.
33645         * tests/unicase/test-u32-tolower.c (check): Likewise.
33646         * tests/unicase/test-u32-totitle.c (check): Likewise.
33647         * tests/unicase/test-u32-toupper.c (check): Likewise.
33648         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33649         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33650         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33651         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33652         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33653         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33654         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33655         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33656         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33657         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33658         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33659         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33660
33661 2009-04-05  Bruno Haible  <bruno@clisp.org>
33662
33663         Work around an autoconf limitation.
33664         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33665         comment line if it would be longer than 3 KB.
33666
33667 2009-04-05  Bruno Haible  <bruno@clisp.org>
33668
33669         Avoid test failure with libiconv-1.13.
33670         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33671         of the expected test results.
33672
33673 2009-04-05  Bruno Haible  <bruno@clisp.org>
33674
33675         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33676         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33677         that it should be installed.
33678
33679 2009-04-05  Bruno Haible  <bruno@clisp.org>
33680
33681         * gnulib-tool: New option --copy-file.
33682         (func_usage): Document it.
33683         (func_dest_tmpfilename): Moved out of func_import.
33684         (func_add_file, func_update_file): New functions, extracted from
33685         func_import.
33686         (func_import): Update.
33687
33688 2009-04-05  Karl Berry  <karl@gnu.org>
33689
33690         * README: prominently mention gnulib-tool.
33691         Rearrange sections so getting the code is near the top.
33692
33693 2009-04-05  Bruno Haible  <bruno@clisp.org>
33694
33695         * lib/unicase.h: Mention u*_cmp2.
33696         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33697         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33698         * lib/unicase/ulc-casecmp.c: Likewise.
33699         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33700         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33701         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33702         unistr/u8-cmp.
33703         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33704         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33705         unistr/u16-cmp.
33706         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33707         unistr/u32-cmp.
33708
33709         * lib/uninorm.h: Mention u*_cmp2.
33710         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33711         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33712         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33713         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33714         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33715         unistr/u8-cmp.
33716         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33717         unistr/u16-cmp.
33718         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33719         unistr/u32-cmp.
33720
33721         New module 'unistr/u32-cmp2'.
33722         * lib/unistr/u32-cmp2.c: New file.
33723         * modules/unistr/u32-cmp2: New file.
33724
33725         New module 'unistr/u16-cmp2'.
33726         * lib/unistr/u16-cmp2.c: New file.
33727         * modules/unistr/u16-cmp2: New file.
33728
33729         New module 'unistr/u8-cmp2'.
33730         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33731         * lib/unistr/u8-cmp2.c: New file.
33732         * lib/unistr/u-cmp2.h: New file.
33733         * modules/unistr/u8-cmp2: New file.
33734
33735 2009-04-05  Bruno Haible  <bruno@clisp.org>
33736
33737         * lib/unictype.h (uc_property_is_valid): New macro.
33738         * tests/unictype/test-pr_byname.c (main): Use it.
33739
33740         * lib/unistr.h: Doc fixes.
33741         * lib/uniconv.h: Doc fixes.
33742         * lib/unictype.h: Doc fixes.
33743
33744 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33745
33746         Port coreutils 7.2 to Solaris 8.
33747
33748         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33749         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33750         for Solaris 8.  This is a bit of a hack, as it means it's the
33751         caller's responsibility to add -lnsl if needed, but most likely it
33752         won't be needed since only getaddrinfo uses this and getaddrinfo
33753         isn't needed on Solaris 8.
33754
33755         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33756         problem to Solaris 8 encountered with coreutils 7.2, which
33757         resulted in a message "fnmatch.c:292: warning: passing argument 4
33758         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33759         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33760
33761 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33762
33763         * m4/ld-version-script.m4: Add FIXME comment.
33764
33765 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33766
33767         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33768         SOVERSION variable.
33769
33770 2009-04-02  Bruno Haible  <bruno@clisp.org>
33771
33772         * Makefile (info, html, dvi, pdf): Combine the rules.
33773         Suggested by Jim Meyering.
33774
33775 2009-04-01  Bruno Haible  <bruno@clisp.org>
33776
33777         * Makefile (info, html, dvi, pdf): New targets.
33778         Reported by Reuben Thomas <rrt@sc3d.org>.
33779
33780 2009-04-01  Bruno Haible  <bruno@clisp.org>
33781
33782         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
33783         can be put into PATH.
33784         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
33785
33786 2009-04-01  Bruno Haible  <bruno@clisp.org>
33787
33788         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
33789
33790 2009-04-01  Bruno Haible  <bruno@clisp.org>
33791
33792         Rename module 'visibility'.
33793         * modules/lib-symbol-visibility: Renamed from modules/visibility.
33794         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
33795         * doc/gnulib.texi: Update.
33796         * MODULES.html.sh (Misc): Update.
33797         * NEWS: Mention the change.
33798
33799 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33800
33801         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
33802         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
33803         Eric Blake <ebb9@byu.net> for review.
33804         * MODULES.html.sh: Add lib-msvc-compat.
33805         * doc/gnulib.texi: Link to new section.
33806         * m4/ld-output-def.m4: New file.
33807         * doc/ld-output-def.texi: New file.
33808
33809 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33810
33811         Rename ld-version-script to lib-symbol-versions.  Suggested by
33812         Bruno Haible <bruno@clisp.org>.
33813         * modules/ld-version-script: Renamed to lib-symbol-versions.
33814         * doc/ld-version-script.texi: Fix module name.
33815         * MODULES.html.sh: Add lib-symbol-versions.
33816
33817 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33818
33819         * modules/u64-tests: New file.
33820         * tests/test-u64.c: New file.
33821
33822 2009-03-04  Simon Josefsson  <simon@josefsson.org>
33823
33824         * MODULES.html.sh: Mention u64.
33825         * modules/u64: New module.
33826         * modules/crypto/sha512: Depend on u64 module instead of providing
33827         u64.h.
33828
33829 2009-03-27  Eric Blake  <ebb9@byu.net>
33830
33831         test-strerror: make debugging EAI_SYSTEM easier
33832         * modules/getaddrinfo-tests (Depends-on): Add strerror.
33833         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
33834         failure was EAI_SYSTEM.
33835
33836 2009-03-25  Bruno Haible  <bruno@clisp.org>
33837
33838         Fix a problem with --enable-relocatable on Solaris 7.
33839         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
33840         since 2008-02-24.
33841
33842 2009-03-25  Eric Blake  <ebb9@byu.net>
33843
33844         test-sockets: avoid gcc warning
33845         * tests/test-sockets.c (main): Silence compiler warning.
33846
33847 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33848
33849         New modules nproc, pthread, contributed by Glen Lenker.
33850
33851         * MODULES.html.sh: Add pthread, nproc.
33852         * lib/nproc.c: New file.
33853         * lib/nproc.h: New file.
33854         * lib/pthread.in.h: New file.
33855         * m4/pthread.m4: New file.
33856         * modules/nproc: New file.
33857         * modules/pthread: New file.
33858
33859 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33860
33861         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
33862         New variable.
33863
33864 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
33865
33866         filevercmp: handle simple~ and numbered.~3~ backup suffixes
33867         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
33868         * tests/test-filevercmp.c: Add tests for backup suffixes.
33869
33870 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33871
33872         * modules/stdlib (Depends-on): Add stdint, needed when defining
33873         struct random_data on, for example, HP-UX 10.20.  Reported by
33874         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33875
33876 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33877
33878         * lib/readline.c (readline): Call fflush on stdout after printing
33879         prompt.
33880
33881 2009-03-20  Bruno Haible  <bruno@clisp.org>
33882
33883         Remove dependency from 'close' module to -lws2_32 on native Windows.
33884         * lib/close-hook.h: New file.
33885         * lib/close-hook.c: New file.
33886         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
33887         w32sock.h.
33888         (_gl_close_fd_maybe_socket): Remove function.
33889         (rpl_close): Invoke execute_all_close_hooks instead of
33890         _gl_close_fd_maybe_socket.
33891         * lib/sockets.c: Include close-hook.h, w32sock.h.
33892         (close_fd_maybe_socket): New function, essentially from lib/close.c.
33893         (close_sockets_hook): New variable.
33894         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
33895         (gl_sockets_cleanup): Unregister it.
33896         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
33897         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
33898         * modules/close-hook: New file.
33899         * modules/close (Files): Remove lib/w32sock.h.
33900         (Depends-on): Add close-hook.
33901         (Link): Remove section.
33902         * modules/sockets (Files): Add lib/w32sock.h.
33903         (Depends-on): Add close-hook.
33904         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
33905         invocation.
33906         * NEWS: Mention that LIB_CLOSE is gone.
33907
33908 2009-03-23  Eric Blake  <ebb9@byu.net>
33909
33910         signal-tests: test previous patch
33911         * tests/test-signal.c: New file.
33912         * modules/signal-tests: Likewise.
33913
33914         signal.h: always support 'volatile sig_atomic_t'
33915         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
33916         (gl_SIGNAL_H_DEFAULTS): Add a default.
33917         * modules/signal (Makefile.am): Substitute if needed.
33918         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
33919         users can blindly add volatile.
33920         * doc/posix-headers/signal.texi (signal.h): Document it.
33921         Reported by Matthew Woehlke.
33922
33923 2009-03-23  Jim Meyering  <meyering@redhat.com>
33924
33925         pathmax: PATH_MAX: use pathconf only when available
33926         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
33927         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
33928         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
33929         This avoids a link failure in a PSP cross-compilation environment
33930         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
33931
33932         * lib/vasnprintf.c (divide): Fix typo in comment.
33933
33934 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33935
33936         * gnulib-tool (func_filter_filelist): Fix comment.
33937
33938 2009-03-20  Bruno Haible  <bruno@clisp.org>
33939
33940         Make sockets.h self-contained.
33941         * lib/sockets.c: Include sockets.h first.
33942         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
33943
33944 2009-03-19  Eric Blake  <ebb9@byu.net>
33945
33946         doc: mention more functions added in cygwin 1.7.0
33947         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
33948         addition.
33949         * doc/posix-functions/log2f.texi: Likewise.
33950
33951 2009-03-19  Jim Meyering  <meyering@redhat.com>
33952
33953         fsusage: avoid syntax error due to statement-before-declaration
33954         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
33955         after all declarations.  Reported by Matthew Woehlke in
33956         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
33957
33958 2009-03-18  Eric Blake  <ebb9@byu.net>
33959
33960         build-aux/compile: sync from automake
33961         * build-aux/compile: New file, from automake.
33962         * config/srclist.txt: Mention build-aux/compile.
33963
33964 2009-03-17  Bruno Haible  <bruno@clisp.org>
33965
33966         * lib/git-merge-changelog.c: Fix typo in comment.
33967         Reported by Reuben Thomas <rrt@sc3d.org>.
33968
33969 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
33970
33971         * m4/regex.m4: update and improve help for
33972         --without-included-regex.
33973
33974 2009-03-17  Simon Josefsson  <simon@josefsson.org>
33975
33976         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
33977         failure on missing include files.
33978
33979 2009-03-17  Eric Blake  <ebb9@byu.net>
33980
33981         doc: mention more functions added in cygwin 1.7.0
33982         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
33983         addition.
33984         * doc/posix-functions/fwscanf.texi: Likewise.
33985         * doc/posix-functions/swprintf.texi: Likewise.
33986         * doc/posix-functions/swscanf.texi: Likewise.
33987         * doc/posix-functions/vfwprintf.texi: Likewise.
33988         * doc/posix-functions/vfwscanf.texi: Likewise.
33989         * doc/posix-functions/vswprintf.texi: Likewise.
33990         * doc/posix-functions/vswscanf.texi: Likewise.
33991         * doc/posix-functions/vwprintf.texi: Likewise.
33992         * doc/posix-functions/vwscanf.texi: Likewise.
33993         * doc/posix-functions/wcscasecmp.texi: Likewise.
33994         * doc/posix-functions/wcsdup.texi: Likewise.
33995         * doc/posix-functions/wcsftime.texi: Likewise.
33996         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33997         * doc/posix-functions/wprintf.texi: Likewise.
33998         * doc/posix-functions/wscanf.texi: Likewise.
33999         * doc/glibc-functions/gethostbyname2.texi: Likewise.
34000
34001 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34002
34003         maint.mk: really add $(AM_MAKEFLAGS)
34004         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
34005         was inadvertently omitted in the last commit.
34006         Spotted by Bruno Haible.
34007
34008         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
34009         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
34010         $(AM_MAKEFLAGS)' rather than plain `make'.
34011
34012         gnulib-tool: execute $MAKE not make
34013         * gnulib-tool: Default $MAKE to 'make'.
34014         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
34015         than make.  Initialize $MAKE in the do-autobuild script.
34016
34017         gnulib-tool: use $MAKE not make in generated files
34018         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
34019         make, in generated files.  Initialize $MAKE in the do-autobuild
34020         script.
34021
34022         * top/GNUmakefile (_have-git-version-gen): Fix typo.
34023
34024         GNUmakefile: disable parallelism only for multiple, recursive targets
34025         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34026         additions in the Makefile.
34027         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34028         by Automake.
34029         (.NOTPARALLEL): Only disable parallel builds if multiple targets
34030         are listed on the command line and at least one of them is
34031         listed in $(ALL_RECURSIVE_TARGETS).
34032
34033 2009-03-14  Bruno Haible  <bruno@clisp.org>
34034
34035         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
34036         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
34037         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
34038         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
34039         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
34040         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
34041         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
34042         unistr/u8-uctomb.
34043         * modules/unistr/u8-strchr (Depends-on): Likewise.
34044         * modules/unistr/u8-strrchr (Depends-on): Likewise.
34045         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
34046         unistr/u16-uctomb.
34047         * modules/unistr/u16-strchr (Depends-on): Likewise.
34048         * modules/unistr/u16-strrchr (Depends-on): Likewise.
34049
34050 2009-03-12  Bruno Haible  <bruno@clisp.org>
34051
34052         Work around select() bug on Interix 3.5.
34053         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
34054         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
34055         * m4/select.m4: New file.
34056         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
34057         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
34058         * modules/select (Files): Add m4/select.m4.
34059         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
34060         * modules/nanosleep (Depends-on): Add select.
34061         * modules/poll (Depends-on): Likewise.
34062         * doc/posix-functions/select.texi: Mention the Interix bug.
34063         Reported by Markus Duft <mduft@gentoo.org>.
34064
34065         * lib/select.c: Renamed from lib/winsock-select.c.
34066         * modules/select (Files): Add lib/select.c, remove
34067         lib/winsock-select.c.
34068         (configure.ac): Update.
34069
34070 2009-03-12  Jim Meyering  <meyering@redhat.com>
34071
34072         avoid gcc warnings about unused macro definitions
34073         * lib/readtokens.c (STREQ): Remove unused definition.
34074         * lib/xmalloc.c (SIZE_MAX): Likewise.
34075         * lib/openat-die.c (N_): Likewise.
34076         * lib/mountlist.c (SIZE_MAX): Remove definition.
34077         Instead, include <stdint.h>.
34078         * lib/readutmp.c: Likewise.
34079         * modules/readutmp (Depends-on): Add stdint.
34080         * modules/mountlist (Depends-on): Add stdint.
34081         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
34082
34083 2009-03-10  Bruno Haible  <bruno@clisp.org>
34084
34085         Tests for module 'mbmemcasecoll'.
34086         * modules/mbmemcasecoll-tests: New file.
34087         * tests/test-mbmemcasecoll1.sh: New file.
34088         * tests/test-mbmemcasecoll2.sh: New file.
34089         * tests/test-mbmemcasecoll3.sh: New file.
34090         * tests/test-mbmemcasecoll.c: New file.
34091
34092         New module 'mbmemcasecoll'.
34093         * lib/mbmemcasecoll.h: New file.
34094         * lib/mbmemcasecoll.c: New file.
34095         * modules/mbmemcasecoll: New file.
34096
34097         * tests/test-mbmemcasecmp.h: New file, extracted from
34098         tests/test-mbmemcasecmp.c.
34099         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
34100         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
34101         (main): Update.
34102         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34103
34104 2009-03-09  Bruno Haible  <bruno@clisp.org>
34105
34106         Tests for module 'mbmemcasecmp'.
34107         * modules/mbmemcasecmp-tests: New file.
34108         * tests/test-mbmemcasecmp1.sh: New file.
34109         * tests/test-mbmemcasecmp2.sh: New file.
34110         * tests/test-mbmemcasecmp3.sh: New file.
34111         * tests/test-mbmemcasecmp.c: New file.
34112
34113         New module 'mbmemcasecmp'.
34114         * lib/mbmemcasecmp.h: New file.
34115         * lib/mbmemcasecmp.c: New file.
34116         * modules/mbmemcasecmp: New file.
34117
34118 2009-03-09  Bruno Haible  <bruno@clisp.org>
34119
34120         Tests for module 'unicase/ulc-casecoll'.
34121         * modules/unicase/ulc-casecoll-tests: New file.
34122         * tests/unicase/test-ulc-casecoll1.sh: New file.
34123         * tests/unicase/test-ulc-casecoll2.sh: New file.
34124         * tests/unicase/test-ulc-casecoll.c: New file.
34125
34126         New module 'unicase/ulc-casecoll'.
34127         * lib/unicase.h (ulc_casecoll): New declaration.
34128         * lib/unicase/ulc-casecoll.c: New file.
34129         * modules/unicase/ulc-casecoll: New file.
34130
34131         New module 'unicase/ulc-casexfrm'.
34132         * lib/unicase.h (ulc_casexfrm): New declaration.
34133         * lib/unicase/ulc-casexfrm.c: New file.
34134         * modules/unicase/ulc-casexfrm: New file.
34135
34136 2009-03-09  Bruno Haible  <bruno@clisp.org>
34137
34138         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
34139         invocations.
34140
34141         * m4/mbscasecmp.m4: Remove file.
34142         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
34143         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
34144
34145         * m4/mbscasestr.m4: Remove file.
34146         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
34147         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
34148
34149         * m4/mbschr.m4: Remove file.
34150         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
34151         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
34152
34153         * m4/mbscspn.m4: Remove file.
34154         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
34155         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
34156
34157         * m4/mbslen.m4: Remove file.
34158         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
34159         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
34160
34161         * m4/mbsncasecmp.m4: Remove file.
34162         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
34163         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
34164
34165         * m4/mbsnlen.m4: Remove file.
34166         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
34167         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
34168
34169         * m4/mbspbrk.m4: Remove file.
34170         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
34171         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
34172
34173         * m4/mbspcasecmp.m4: Remove file.
34174         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
34175         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
34176
34177         * m4/mbsrchr.m4: Remove file.
34178         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
34179         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
34180
34181         * m4/mbssep.m4: Remove file.
34182         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
34183         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
34184
34185         * m4/mbsspn.m4: Remove file.
34186         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
34187         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
34188
34189         * m4/mbsstr.m4: Remove file.
34190         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
34191         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
34192
34193         * m4/mbstok_r.m4: Remove file.
34194         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
34195         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
34196
34197         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
34198
34199         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
34200         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
34201
34202         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
34203
34204 2009-03-08  Bruno Haible  <bruno@clisp.org>
34205
34206         Tests for module 'unicase/ulc-casecmp'.
34207         * modules/unicase/ulc-casecmp-tests: New file.
34208         * tests/unicase/test-ulc-casecmp1.sh: New file.
34209         * tests/unicase/test-ulc-casecmp2.sh: New file.
34210         * tests/unicase/test-ulc-casecmp.c: New file.
34211
34212         New module 'unicase/ulc-casecmp'.
34213         * lib/unicase.h (ulc_casecmp): New declaration.
34214         * lib/unicase/ulc-casecmp.c: New file.
34215         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34216         'const SRC_UNIT *'.
34217         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34218         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34219         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34220         * modules/unicase/ulc-casecmp: New file.
34221
34222         Tests for module 'unicase/u32-is-cased'.
34223         * modules/unicase/u32-is-cased-tests: New file.
34224         * tests/unicase/test-u32-is-cased.c: New file.
34225
34226         Tests for module 'unicase/u16-is-cased'.
34227         * modules/unicase/u16-is-cased-tests: New file.
34228         * tests/unicase/test-u16-is-cased.c: New file.
34229
34230         Tests for module 'unicase/u8-is-cased'.
34231         * modules/unicase/u8-is-cased-tests: New file.
34232         * tests/unicase/test-u8-is-cased.c: New file.
34233         * tests/unicase/test-is-cased.h: New file.
34234
34235         New module 'unicase/u32-is-cased'.
34236         * lib/unicase/u32-is-cased.c: New file.
34237         * modules/unicase/u32-is-cased: New file.
34238
34239         New module 'unicase/u16-is-cased'.
34240         * lib/unicase/u16-is-cased.c: New file.
34241         * modules/unicase/u16-is-cased: New file.
34242
34243         New module 'unicase/u8-is-cased'.
34244         * lib/unicase/u8-is-cased.c: New file.
34245         * lib/unicase/u-is-cased.h: New file.
34246         * modules/unicase/u8-is-cased: New file.
34247
34248         Tests for module 'unicase/u32-is-casefolded'.
34249         * modules/unicase/u32-is-casefolded-tests: New file.
34250         * tests/unicase/test-u32-is-casefolded.c: New file.
34251
34252         Tests for module 'unicase/u16-is-casefolded'.
34253         * modules/unicase/u16-is-casefolded-tests: New file.
34254         * tests/unicase/test-u16-is-casefolded.c: New file.
34255
34256         Tests for module 'unicase/u8-is-casefolded'.
34257         * modules/unicase/u8-is-casefolded-tests: New file.
34258         * tests/unicase/test-u8-is-casefolded.c: New file.
34259         * tests/unicase/test-is-casefolded.h: New file.
34260
34261         New module 'unicase/u32-is-casefolded'.
34262         * lib/unicase/u32-is-casefolded.c: New file.
34263         * modules/unicase/u32-is-casefolded: New file.
34264
34265         New module 'unicase/u16-is-casefolded'.
34266         * lib/unicase/u16-is-casefolded.c: New file.
34267         * modules/unicase/u16-is-casefolded: New file.
34268
34269         New module 'unicase/u8-is-casefolded'.
34270         * lib/unicase/u8-is-casefolded.c: New file.
34271         * modules/unicase/u8-is-casefolded: New file.
34272
34273         Tests for module 'unicase/u32-is-titlecase'.
34274         * modules/unicase/u32-is-titlecase-tests: New file.
34275         * tests/unicase/test-u32-is-titlecase.c: New file.
34276
34277         Tests for module 'unicase/u16-is-titlecase'.
34278         * modules/unicase/u16-is-titlecase-tests: New file.
34279         * tests/unicase/test-u16-is-titlecase.c: New file.
34280
34281         Tests for module 'unicase/u8-is-titlecase'.
34282         * modules/unicase/u8-is-titlecase-tests: New file.
34283         * tests/unicase/test-u8-is-titlecase.c: New file.
34284         * tests/unicase/test-is-titlecase.h: New file.
34285
34286         New module 'unicase/u32-is-titlecase'.
34287         * lib/unicase/u32-is-titlecase.c: New file.
34288         * modules/unicase/u32-is-titlecase: New file.
34289
34290         New module 'unicase/u16-is-titlecase'.
34291         * lib/unicase/u16-is-titlecase.c: New file.
34292         * modules/unicase/u16-is-titlecase: New file.
34293
34294         New module 'unicase/u8-is-titlecase'.
34295         * lib/unicase/u8-is-titlecase.c: New file.
34296         * modules/unicase/u8-is-titlecase: New file.
34297
34298         Tests for module 'unicase/u32-is-lowercase'.
34299         * modules/unicase/u32-is-lowercase-tests: New file.
34300         * tests/unicase/test-u32-is-lowercase.c: New file.
34301
34302         Tests for module 'unicase/u16-is-lowercase'.
34303         * modules/unicase/u16-is-lowercase-tests: New file.
34304         * tests/unicase/test-u16-is-lowercase.c: New file.
34305
34306         Tests for module 'unicase/u8-is-lowercase'.
34307         * modules/unicase/u8-is-lowercase-tests: New file.
34308         * tests/unicase/test-u8-is-lowercase.c: New file.
34309         * tests/unicase/test-is-lowercase.h: New file.
34310
34311         New module 'unicase/u32-is-lowercase'.
34312         * lib/unicase/u32-is-lowercase.c: New file.
34313         * modules/unicase/u32-is-lowercase: New file.
34314
34315         New module 'unicase/u16-is-lowercase'.
34316         * lib/unicase/u16-is-lowercase.c: New file.
34317         * modules/unicase/u16-is-lowercase: New file.
34318
34319         New module 'unicase/u8-is-lowercase'.
34320         * lib/unicase/u8-is-lowercase.c: New file.
34321         * modules/unicase/u8-is-lowercase: New file.
34322
34323         Tests for module 'unicase/u32-is-uppercase'.
34324         * modules/unicase/u32-is-uppercase-tests: New file.
34325         * tests/unicase/test-u32-is-uppercase.c: New file.
34326
34327         Tests for module 'unicase/u16-is-uppercase'.
34328         * modules/unicase/u16-is-uppercase-tests: New file.
34329         * tests/unicase/test-u16-is-uppercase.c: New file.
34330
34331         Tests for module 'unicase/u8-is-uppercase'.
34332         * modules/unicase/u8-is-uppercase-tests: New file.
34333         * tests/unicase/test-u8-is-uppercase.c: New file.
34334         * tests/unicase/test-is-uppercase.h: New file.
34335
34336         New module 'unicase/u32-is-uppercase'.
34337         * lib/unicase/u32-is-uppercase.c: New file.
34338         * modules/unicase/u32-is-uppercase: New file.
34339
34340         New module 'unicase/u16-is-uppercase'.
34341         * lib/unicase/u16-is-uppercase.c: New file.
34342         * modules/unicase/u16-is-uppercase: New file.
34343
34344         New module 'unicase/u8-is-uppercase'.
34345         * lib/unicase/u8-is-uppercase.c: New file.
34346         * modules/unicase/u8-is-uppercase: New file.
34347
34348         New module 'unicase/u32-is-invariant'.
34349         * lib/unicase/u32-is-invariant.c: New file.
34350         * modules/unicase/u32-is-invariant: New file.
34351
34352         New module 'unicase/u16-is-invariant'.
34353         * lib/unicase/u16-is-invariant.c: New file.
34354         * modules/unicase/u16-is-invariant: New file.
34355
34356         New module 'unicase/u8-is-invariant'.
34357         * lib/unicase/u8-is-invariant.c: New file.
34358         * lib/unicase/invariant.h: New file.
34359         * lib/unicase/u-is-invariant.h: New file.
34360         * modules/unicase/u8-is-invariant: New file.
34361
34362         Tests for module 'unicase/u32-casecoll'.
34363         * modules/unicase/u32-casecoll-tests: New file.
34364         * tests/unicase/test-u32-casecoll.c: New file.
34365
34366         Tests for module 'unicase/u16-casecoll'.
34367         * modules/unicase/u16-casecoll-tests: New file.
34368         * tests/unicase/test-u16-casecoll.c: New file.
34369
34370         Tests for module 'unicase/u8-casecoll'.
34371         * modules/unicase/u8-casecoll-tests: New file.
34372         * tests/unicase/test-u8-casecoll.c: New file.
34373
34374         New module 'unicase/u32-casecoll'.
34375         * lib/unicase/u32-casecoll.c: New file.
34376         * modules/unicase/u32-casecoll: New file.
34377
34378         New module 'unicase/u16-casecoll'.
34379         * lib/unicase/u16-casecoll.c: New file.
34380         * modules/unicase/u16-casecoll: New file.
34381
34382         New module 'unicase/u8-casecoll'.
34383         * lib/unicase/u8-casecoll.c: New file.
34384         * lib/unicase/u-casecoll.h: New file.
34385         * modules/unicase/u8-casecoll: New file.
34386
34387         New module 'unicase/u32-casexfrm'.
34388         * lib/unicase/u32-casexfrm.c: New file.
34389         * modules/unicase/u32-casexfrm: New file.
34390
34391         New module 'unicase/u16-casexfrm'.
34392         * lib/unicase/u16-casexfrm.c: New file.
34393         * modules/unicase/u16-casexfrm: New file.
34394
34395         New module 'unicase/u8-casexfrm'.
34396         * lib/unicase/u8-casexfrm.c: New file.
34397         * lib/unicase/u-casexfrm.h: New file.
34398         * modules/unicase/u8-casexfrm: New file.
34399
34400         Tests for module 'unicase/u32-casecmp'.
34401         * modules/unicase/u32-casecmp-tests: New file.
34402         * tests/unicase/test-u32-casecmp.c: New file.
34403
34404         Tests for module 'unicase/u16-casecmp'.
34405         * modules/unicase/u16-casecmp-tests: New file.
34406         * tests/unicase/test-u16-casecmp.c: New file.
34407
34408         Tests for module 'unicase/u8-casecmp'.
34409         * modules/unicase/u8-casecmp-tests: New file.
34410         * tests/unicase/test-u8-casecmp.c: New file.
34411         * tests/unicase/test-casecmp.h: New file.
34412
34413         New module 'unicase/u32-casecmp'.
34414         * lib/unicase/u32-casecmp.c: New file.
34415         * modules/unicase/u32-casecmp: New file.
34416
34417         New module 'unicase/u16-casecmp'.
34418         * lib/unicase/u16-casecmp.c: New file.
34419         * modules/unicase/u16-casecmp: New file.
34420
34421         New module 'unicase/u8-casecmp'.
34422         * lib/unicase/u8-casecmp.c: New file.
34423         * lib/unicase/u-casecmp.h: New file.
34424         * modules/unicase/u8-casecmp: New file.
34425
34426         Tests for module 'unicase/u32-casefold'.
34427         * modules/unicase/u32-casefold-tests: New file.
34428         * tests/unicase/test-u32-casefold.c: New file.
34429
34430         Tests for module 'unicase/u16-casefold'.
34431         * modules/unicase/u16-casefold-tests: New file.
34432         * tests/unicase/test-u16-casefold.c: New file.
34433
34434         Tests for module 'unicase/u8-casefold'.
34435         * modules/unicase/u8-casefold-tests: New file.
34436         * tests/unicase/test-u8-casefold.c: New file.
34437
34438         New module 'unicase/u32-casefold'.
34439         * lib/unicase/u32-casefold.c: New file.
34440         * modules/unicase/u32-casefold: New file.
34441
34442         New module 'unicase/u16-casefold'.
34443         * lib/unicase/u16-casefold.c: New file.
34444         * modules/unicase/u16-casefold: New file.
34445
34446         New module 'unicase/u8-casefold'.
34447         * lib/unicase/u8-casefold.c: New file.
34448         * lib/unicase/u-casefold.h: New file.
34449         * modules/unicase/u8-casefold: New file.
34450
34451         New module 'unicase/tocasefold'.
34452         * lib/unicase/casefold.h: New file.
34453         * lib/unicase/tocasefold.c: New file.
34454         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34455         * modules/unicase/tocasefold: New file.
34456
34457         Tests for module 'unicase/u32-totitle'.
34458         * modules/unicase/u32-totitle-tests: New file.
34459         * tests/unicase/test-u32-totitle.c: New file.
34460
34461         Tests for module 'unicase/u16-totitle'.
34462         * modules/unicase/u16-totitle-tests: New file.
34463         * tests/unicase/test-u16-totitle.c: New file.
34464
34465         Tests for module 'unicase/u8-totitle'.
34466         * modules/unicase/u8-totitle-tests: New file.
34467         * tests/unicase/test-u8-totitle.c: New file.
34468
34469         New module 'unicase/u32-totitle'.
34470         * lib/unicase/u32-totitle.c: New file.
34471         * modules/unicase/u32-totitle: New file.
34472
34473         New module 'unicase/u16-totitle'.
34474         * lib/unicase/u16-totitle.c: New file.
34475         * modules/unicase/u16-totitle: New file.
34476
34477         New module 'unicase/u8-totitle'.
34478         * lib/unicase/u8-totitle.c: New file.
34479         * lib/unicase/u-totitle.h: New file.
34480         * modules/unicase/u8-totitle: New file.
34481
34482         Tests for module 'unicase/u32-tolower'.
34483         * modules/unicase/u32-tolower-tests: New file.
34484         * tests/unicase/test-u32-tolower.c: New file.
34485
34486         Tests for module 'unicase/u16-tolower'.
34487         * modules/unicase/u16-tolower-tests: New file.
34488         * tests/unicase/test-u16-tolower.c: New file.
34489
34490         Tests for module 'unicase/u8-tolower'.
34491         * modules/unicase/u8-tolower-tests: New file.
34492         * tests/unicase/test-u8-tolower.c: New file.
34493
34494         New module 'unicase/u32-tolower'.
34495         * lib/unicase/u32-tolower.c: New file.
34496         * modules/unicase/u32-tolower: New file.
34497
34498         New module 'unicase/u16-tolower'.
34499         * lib/unicase/u16-tolower.c: New file.
34500         * modules/unicase/u16-tolower: New file.
34501
34502         New module 'unicase/u8-tolower'.
34503         * lib/unicase/u8-tolower.c: New file.
34504         * modules/unicase/u8-tolower: New file.
34505
34506         Tests for module 'unicase/u32-toupper'.
34507         * modules/unicase/u32-toupper-tests: New file.
34508         * tests/unicase/test-u32-toupper.c: New file.
34509
34510         Tests for module 'unicase/u16-toupper'.
34511         * modules/unicase/u16-toupper-tests: New file.
34512         * tests/unicase/test-u16-toupper.c: New file.
34513
34514         Tests for module 'unicase/u8-toupper'.
34515         * modules/unicase/u8-toupper-tests: New file.
34516         * tests/unicase/test-u8-toupper.c: New file.
34517
34518         New module 'unicase/u32-toupper'.
34519         * lib/unicase/u32-toupper.c: New file.
34520         * modules/unicase/u32-toupper: New file.
34521
34522         New module 'unicase/u16-toupper'.
34523         * lib/unicase/u16-toupper.c: New file.
34524         * modules/unicase/u16-toupper: New file.
34525
34526         New module 'unicase/u8-toupper'.
34527         * lib/unicase/u8-toupper.c: New file.
34528         * modules/unicase/u8-toupper: New file.
34529
34530         New module 'unicase/u32-casemap'.
34531         * lib/unicase/u32-casemap.c: New file.
34532         * modules/unicase/u32-casemap: New file.
34533
34534         New module 'unicase/u16-casemap'.
34535         * lib/unicase/u16-casemap.c: New file.
34536         * modules/unicase/u16-casemap: New file.
34537
34538         New module 'unicase/u8-casemap'.
34539         * lib/unicase/unicasemap.h: New file.
34540         * lib/unicase/u8-casemap.c: New file.
34541         * lib/unicase/u-casemap.h: New file.
34542         * modules/unicase/u8-casemap: New file.
34543
34544         New module 'unicase/special-casing'.
34545         * lib/unicase/special-casing.h: New file.
34546         * lib/unicase/special-casing.c: New file.
34547         * lib/unicase/special-casing-table.gperf: New file, generated by
34548         gen-uni-tables.c.
34549         * modules/unicase/special-casing: New file.
34550
34551         Tests for module 'unicase/locale-language'.
34552         * modules/unicase/locale-language-tests: New file.
34553         * tests/unicase/test-locale-language.sh: New file.
34554         * tests/unicase/test-locale-language.c: New file.
34555
34556         New module 'unicase/locale-language'.
34557         * lib/unicase/locale-language.c: New file.
34558         * lib/unicase/locale-languages.gperf: New file.
34559         * modules/unicase/locale-language: New file.
34560
34561         Generate more tables for case conversion and case folding.
34562         * lib/gen-uni-tables.c (SCC_*): New enum items.
34563         (struct special_casing_rule): New type.
34564         (casing_rules, num_casing_rules, allocated_casing_rules): New
34565         variables.
34566         (add_casing_rule, fill_casing_rules): New functions.
34567         (struct casefold_rule): New type.
34568         (casefolding_rules, num_casefolding_rules,
34569         allocated_casefolding_rules): New variables.
34570         (fill_casefolding_rules): New function.
34571         (unicode_casefold): New variable.
34572         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34573         sort_casing_rules, output_casing_rules): New functions.
34574         (main): Accept to more arguments: SpecialCasing.txt and
34575         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34576         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34577         Output mapping for casefolding.
34578
34579         * lib/unicase.h: Include stdbool.h, uninorm.h.
34580         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34581         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34582         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34583         arguments.
34584         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34585         resultp arguments.
34586         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34587         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34588         resultp arguments.
34589         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34590         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34591         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34592         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34593         declarations.
34594         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34595
34596 2009-03-08  Bruno Haible  <bruno@clisp.org>
34597
34598         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34599         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34600         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34601         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34602
34603 2009-03-07  Bruno Haible  <bruno@clisp.org>
34604
34605         Adjust u*_normcmp, u*_normcoll API.
34606         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34607         u16_normcoll, u32_normcoll): Change failure conventions.
34608         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34609         errno and return -1.
34610         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34611
34612 2009-03-07  Bruno Haible  <bruno@clisp.org>
34613
34614         Tests for module 'uninorm/u32-normcoll'.
34615         * modules/uninorm/u32-normcoll-tests: New file.
34616         * tests/uninorm/test-u32-normcoll.c: New file.
34617
34618         Tests for module 'uninorm/u16-normcoll'.
34619         * modules/uninorm/u16-normcoll-tests: New file.
34620         * tests/uninorm/test-u16-normcoll.c: New file.
34621
34622         Tests for module 'uninorm/u8-normcoll'.
34623         * modules/uninorm/u8-normcoll-tests: New file.
34624         * tests/uninorm/test-u8-normcoll.c: New file.
34625
34626 2009-03-07  Bruno Haible  <bruno@clisp.org>
34627
34628         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34629         tests/uninorm/test-u32-normcmp.c.
34630         * tests/uninorm/test-u32-normcmp.c: Include it.
34631         (test_nonascii): New function, extracted from main. Add some more
34632         tests.
34633         (main): Invoke test_ascii and test_nonascii.
34634         * modules/uninorm/u32-normcmp-tests (Files): Add
34635         tests/uninorm/test-u32-normcmp.h.
34636         (Depends-on): Remove uninorm/u32-normcmp.
34637
34638         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34639         tests/uninorm/test-u16-normcmp.c.
34640         * tests/uninorm/test-u16-normcmp.c: Include it.
34641         (test_nonascii): New function, extracted from main. Add some more
34642         tests.
34643         (main): Invoke test_ascii and test_nonascii.
34644         * modules/uninorm/u16-normcmp-tests (Files): Add
34645         tests/uninorm/test-u16-normcmp.h.
34646         (Depends-on): Remove uninorm/u16-normcmp.
34647
34648         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34649         tests/uninorm/test-u8-normcmp.c.
34650         * tests/uninorm/test-u8-normcmp.c: Include it.
34651         (test_nonascii): New function, extracted from main. Add some more
34652         tests.
34653         (main): Invoke test_ascii and test_nonascii.
34654         * modules/uninorm/u8-normcmp-tests (Files): Add
34655         tests/uninorm/test-u8-normcmp.h.
34656         (Depends-on): Remove uninorm/u8-normcmp.
34657
34658 2009-03-07  Bruno Haible  <bruno@clisp.org>
34659
34660         New module 'uninorm/u32-normcoll'.
34661         * lib/uninorm/u32-normcoll.c: New file.
34662         * modules/uninorm/u32-normcoll: New file.
34663
34664         New module 'uninorm/u16-normcoll'.
34665         * lib/uninorm/u16-normcoll.c: New file.
34666         * modules/uninorm/u16-normcoll: New file.
34667
34668         New module 'uninorm/u8-normcoll'.
34669         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34670         declarations.
34671         * lib/uninorm/u8-normcoll.c: New file.
34672         * lib/uninorm/u-normcoll.h: New file.
34673         * modules/uninorm/u8-normcoll: New file.
34674
34675         New module 'uninorm/u32-normxfrm'.
34676         * lib/uninorm/u32-normxfrm.c: New file.
34677         * modules/uninorm/u32-normxfrm: New file.
34678
34679         New module 'uninorm/u16-normxfrm'.
34680         * lib/uninorm/u16-normxfrm.c: New file.
34681         * modules/uninorm/u16-normxfrm: New file.
34682
34683         New module 'uninorm/u8-normxfrm'.
34684         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34685         declarations.
34686         * lib/uninorm/u8-normxfrm.c: New file.
34687         * lib/uninorm/u-normxfrm.h: New file.
34688         * modules/uninorm/u8-normxfrm: New file.
34689
34690 2009-03-07  Bruno Haible  <bruno@clisp.org>
34691
34692         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34693         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34694         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34695
34696 2009-03-07  Bruno Haible  <bruno@clisp.org>
34697
34698         New module 'memxfrm'.
34699         * lib/memxfrm.h: New file.
34700         * lib/memxfrm.c: New file.
34701         * modules/memxfrm: New file.
34702
34703 2009-03-07  Bruno Haible  <bruno@clisp.org>
34704
34705         New module 'memcmp2'.
34706         * lib/memcmp2.h: New file.
34707         * lib/memcmp2.c: New file.
34708         * modules/memcmp2: New file.
34709
34710 2009-03-07  Bruno Haible  <bruno@clisp.org>
34711
34712         Tests for module 'uninorm/decomposing-form'.
34713         * modules/uninorm/decomposing-form-tests: New file.
34714         * tests/uninorm/test-decomposing-form.c: New file.
34715
34716         New module 'uninorm/decomposing-form'.
34717         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34718         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34719         Add 'decomposing_variant' field.
34720         * lib/uninorm/decomposing-form.c: New file.
34721         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34722         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34723         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34724         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34725         * modules/uninorm/decomposing-form: New file.
34726         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34727         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34728
34729 2009-03-07  Bruno Haible  <bruno@clisp.org>
34730
34731         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34732         strings.
34733
34734 2009-03-06  Bruno Haible  <bruno@clisp.org>
34735
34736         Tests for module 'uninorm/u32-normcmp'.
34737         * tests/uninorm/test-u32-normcmp.c: New file.
34738         * modules/uninorm/u32-normcmp-tests: New file.
34739
34740         Tests for module 'uninorm/u16-normcmp'.
34741         * tests/uninorm/test-u16-normcmp.c: New file.
34742         * modules/uninorm/u16-normcmp-tests: New file.
34743
34744         Tests for module 'uninorm/u8-normcmp'.
34745         * tests/uninorm/test-u8-normcmp.c: New file.
34746         * modules/uninorm/u8-normcmp-tests: New file.
34747
34748         New module 'uninorm/u32-normcmp'.
34749         * lib/uninorm/u32-normcmp.c: New file.
34750         * modules/uninorm/u32-normcmp: New file.
34751
34752         New module 'uninorm/u16-normcmp'.
34753         * lib/uninorm/u16-normcmp.c: New file.
34754         * modules/uninorm/u16-normcmp: New file.
34755
34756         New module 'uninorm/u8-normcmp'.
34757         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34758         declarations.
34759         * lib/uninorm/u8-normcmp.c: New file.
34760         * lib/uninorm/u-normcmp.h: New file.
34761         * modules/uninorm/u8-normcmp: New file.
34762
34763 2009-03-06  Bruno Haible  <bruno@clisp.org>
34764
34765         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34766         Reported by Eric Blake.
34767
34768 2009-03-06  Eric Blake  <ebb9@byu.net>
34769             Bruno Haible  <bruno@clisp.org>
34770
34771         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34772         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34773         condition.
34774         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34775         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34776         condition.
34777         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34778
34779 2009-03-06  Eric Blake  <ebb9@byu.net>
34780
34781         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
34782         to avoid compiler warnings.
34783         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
34784
34785 2009-03-05  Bruno Haible  <bruno@clisp.org>
34786
34787         * tests/test-ftell.c (main): Disable test beyond end of file on
34788         FreeMiNT.
34789         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34790
34791 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
34792
34793         * lib/filevercmp.c: Move hidden files up in ordering.
34794         * tests/test-filevercmp.c: Add tests for hidden files.
34795
34796 2009-03-04  Bruno Haible  <bruno@clisp.org>
34797
34798         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
34799         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
34800         AM_CFLAGS.
34801         Reported by Simon Josefsson.
34802
34803 2009-03-03  Bruno Haible  <bruno@clisp.org>
34804
34805         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
34806         Reported by Simon Josefsson.
34807
34808         * doc/ld-version-script.texi: Update node reference.
34809
34810 2009-03-03  Bruno Haible  <bruno@clisp.org>
34811
34812         * modules/visibility (License): Change to 'unlimited'.
34813         Suggested by Simon Josefsson.
34814
34815 2009-03-03  Jim Meyering  <meyering@redhat.com>
34816
34817         unlinkdir: cannot_unlink_dir may modify process state
34818         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
34819         it's neither thread-safe nor appropriate for use in a library.
34820
34821 2009-03-03  Eric Blake  <ebb9@byu.net>
34822
34823         test-closein: silence test under Darwin
34824         * tests/test-closein.sh: Ignore stderr from cat, since we don't
34825         care if it dies from EPIPE or EBADF.
34826
34827 2009-03-03  Bruno Haible  <bruno@clisp.org>
34828
34829         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
34830         earlier.
34831         * doc/visibility.texi: Fix @node and @section.
34832
34833 2009-03-03  Simon Josefsson  <simon@josefsson.org>
34834
34835         * doc/gnulib.texi: Link to sections for ld version script and
34836         visibility.
34837         * doc/visibility.texi: Add @node and @section.
34838         * modules/ld-version-script: New module.
34839         * m4/ld-version-script.m4: New file.
34840         * doc/ld-version-script.texi: New file.
34841
34842 2009-03-02  David Lutterkort  <lutter@redhat.com>
34843
34844         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
34845         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34846
34847 2009-03-02  Bruno Haible  <bruno@clisp.org>
34848
34849         * doc/visibility.texi: Mention libtool's -export-symbols option.
34850
34851 2009-03-02  Jim Meyering  <meyering@redhat.com>
34852
34853         announce-gen: new option: --no-print-checksums
34854         * build-aux/announce-gen (usage): Describe it.
34855         (print_checksums): Print a newline here, not in the [*] footnote.
34856         (main): Honor it.
34857
34858 2009-03-01  Bruno Haible  <bruno@clisp.org>
34859
34860         Use socklen_t in the native Windows replacements prototypes.
34861         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
34862         instead of 'int'.
34863         * lib/getsockopt.c (rpl_getsockopt): Likewise.
34864         * lib/setsockopt.c (rpl_setsockopt): Likewise.
34865         * modules/getsockopt (Depends-on): Add socklen.
34866         * modules/setsockopt (Depends-on): Add socklen.
34867
34868 2009-03-01  Bruno Haible  <bruno@clisp.org>
34869
34870         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
34871         least 4.2.
34872
34873 2009-03-01  Eric Blake  <ebb9@byu.net>
34874             Bruno Haible  <bruno@clisp.org>
34875
34876         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
34877         error messages.
34878         * lib/wait-process.c (wait_subprocess): Omit error message about
34879         deadly signal sent to the child of termsigp != NULL.
34880
34881 2009-03-01  Eric Blake  <ebb9@byu.net>
34882
34883         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
34884
34885 2009-03-01  Bruno Haible  <bruno@clisp.org>
34886
34887         Avoid a gcc warning.
34888         * tests/test-sched.c (b): Make global.
34889         Reported by Eric Blake.
34890
34891 2009-01-19  Martin Lambers  <marlam@marlam.de>
34892
34893         Provide POSIX semantics for socket timeout options on W32.
34894         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
34895         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
34896         * modules/setsockopt: Depend on sys_time module for struct timeval.
34897         * modules/getsockopt: Depend on sys_time module for struct timeval.
34898
34899 2009-03-01  Simon Josefsson  <simon@josefsson.org>
34900
34901         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
34902         __USE_GNU, for consistency with netdb.in.h.
34903         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34904
34905 2009-03-01  Bruno Haible  <bruno@clisp.org>
34906
34907         More support for FreeMiNT.
34908         * lib/fseeko.c (rpl_fseeko): Complete last commit.
34909         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34910
34911 2009-03-01  Bruno Haible  <bruno@clisp.org>
34912
34913         More support for FreeMiNT.
34914         * lib/fpurge.c (fpurge): Correct last commit.
34915         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34916
34917 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34918
34919         Fix unportable awk script in vc-list-files.
34920         * build-aux/vc-list-files: In the replacement awk script, use
34921         substr with a second argument of 1, not zero.
34922         Report by Simon Josefsson.
34923
34924 2009-02-28  Bruno Haible  <bruno@clisp.org>
34925
34926         More support for FreeMiNT.
34927         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
34928         to FreeMiNT today.
34929         * lib/fwriting.c (fwriting): Likewise.
34930         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
34931
34932 2009-02-28  Bruno Haible  <bruno@clisp.org>
34933
34934         * tests/test-freadseek.c (main): Disable test beyond end of file on
34935         FreeMiNT.
34936         * tests/test-ftello.c (main): Likewise.
34937         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34938
34939 2009-02-28  Bruno Haible  <bruno@clisp.org>
34940
34941         Add tentative support for FreeMiNT.
34942         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
34943         * lib/fpurge.c (fpurge): Likewise.
34944         * lib/freadable.c (freadable): Likewise.
34945         * lib/freading.c (freading): Likewise.
34946         * lib/freadptr.c (freadptr): Likewise.
34947         * lib/freadseek.c (freadptrinc): Likewise.
34948         * lib/fseeko.c (rpl_fseeko): Likewise.
34949         * lib/fseterr.c (fseterr): Likewise.
34950         * lib/fwritable.c (fwritable): Likewise.
34951         * lib/fwriting.c (fwriting): Likewise.
34952         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
34953         Hourihane.
34954         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34955
34956 2009-02-28  Bruno Haible  <bruno@clisp.org>
34957
34958         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
34959         SIGCHLD.
34960         Reported by Jim Meyering.
34961
34962 2009-02-28  Bruno Haible  <bruno@clisp.org>
34963
34964         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
34965         Mention the results of these tests on various platforms.
34966         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
34967         order.
34968         * doc/posix-functions/printf.texi: Likewise.
34969         * doc/posix-functions/snprintf.texi: Likewise.
34970         * doc/posix-functions/sprintf.texi: Likewise.
34971         * doc/posix-functions/vfprintf.texi: Likewise.
34972         * doc/posix-functions/vprintf.texi: Likewise.
34973         * doc/posix-functions/vsnprintf.texi: Likewise.
34974         * doc/posix-functions/vsprintf.texi: Likewise.
34975         * doc/glibc-functions/obstack_printf.texi: Likewise.
34976         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
34977
34978 2009-02-28  Bruno Haible  <bruno@clisp.org>
34979
34980         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
34981         Reported by Loïc Minier <lool@dooz.org>.
34982
34983 2009-02-27  Bruno Haible  <bruno@clisp.org>
34984
34985         * gnulib-tool (func_import): Make the sed expression used to create the
34986         sed script for updating the .gitignore file POSIX compliant.
34987         Reported by Eric Blake.
34988
34989 2009-02-27  Bruno Haible  <bruno@clisp.org>
34990
34991         * gnulib-tool (sed): Don't alias as "sed --posix".
34992         Reported by Eric Blake.
34993
34994 2009-02-27  Bruno Haible  <bruno@clisp.org>
34995
34996         Avoid test link errors.
34997         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
34998         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
34999         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
35000         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
35001         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35002
35003 2009-02-27  Bruno Haible  <bruno@clisp.org>
35004
35005         Avoid spurious "(cached)" in configure output.
35006         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
35007         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
35008         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35009         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35010         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35011         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
35012         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35013         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
35014         Reported by Eric Blake.
35015
35016 2009-02-27  Eric Blake  <ebb9@byu.net>
35017
35018         printf: fix regression in previous patch
35019         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
35020
35021 2009-02-27  Bruno Haible  <bruno@clisp.org>
35022
35023         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35024         value.
35025         * lib/stdint.in.h: Likewise.
35026         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35027
35028 2009-02-27  Eric Blake  <ebb9@byu.net>
35029
35030         doc: mention more functions added in cygwin 1.7.0
35031         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
35032         addition.
35033         * doc/posix-functions/open_wmemstream.texi: Likewise.
35034         * doc/posix-functions/wcsnlen.texi: Likewise.
35035         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35036         * doc/posix-functions/wcstod.texi: Likewise.
35037         * doc/posix-functions/wcstof.texi: Likewise.
35038         * doc/posix-functions/wcstoimax.texi: Likewise.
35039         * doc/posix-functions/wcstok.texi: Likewise.
35040         * doc/posix-functions/wcstoumax.texi: Likewise.
35041
35042         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
35043         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
35044         * doc/posix-functions/fprintf.texi: Update.
35045         * doc/posix-functions/printf.texi: Update.
35046         * doc/posix-functions/snprintf.texi: Update.
35047         * doc/posix-functions/sprintf.texi: Update.
35048         * doc/posix-functions/vfprintf.texi: Update.
35049         * doc/posix-functions/vprintf.texi: Update.
35050         * doc/posix-functions/vsnprintf.texi: Update.
35051         * doc/posix-functions/vsprintf.texi: Update.
35052         * doc/glibc-functions/obstack_printf.texi: Update.
35053         * doc/glibc-functions/obstack_vprintf.texi: Update.
35054
35055 2009-02-26  Eric Blake  <ebb9@byu.net>
35056
35057         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
35058         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
35059         compilation bug by using runtime conversion.
35060         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35061         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
35062         * modules/ceill-tests (Files): Use nan.h.
35063         * modules/floorl-tests (Files): Likewise.
35064         * modules/frexpl-tests (Files): Likewise.
35065         * modules/isnanl-tests (Files): Likewise.
35066         * modules/ldexpl-tests (Files): Likewise.
35067         * modules/roundl-tests (Files): Likewise.
35068         * modules/truncl-tests (Files): Likewise.
35069         * tests/test-ceill.c (main): Use a working NaN.
35070         * tests/test-floorl.c (main): Likewise.
35071         * tests/test-frexpl.c (main): Likewise.
35072         * tests/test-isnan.c (test_long_double): Likewise.
35073         * tests/test-isnanl.h (main): Likewise.
35074         * tests/test-ldexpl.h (main): Likewise.
35075         * tests/test-roundl.h (main): Likewise.
35076         * tests/test-truncl.h (main): Likewise.
35077         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
35078
35079 2009-02-26  Eric Blake  <ebb9@byu.net>
35080             Bruno Haible  <bruno@clisp.org>
35081
35082         Work around a *printf bug with %ls on Solaris.
35083         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
35084         precision is specified, sprintf stops converting the wide string
35085         argument when the number of bytes that have been produced by this
35086         conversion equals or exceeds the precision.
35087         * doc/posix-functions/fprintf.texi: Update.
35088         * doc/posix-functions/printf.texi: Update.
35089         * doc/posix-functions/snprintf.texi: Update.
35090         * doc/posix-functions/sprintf.texi: Update.
35091         * doc/posix-functions/vfprintf.texi: Update.
35092         * doc/posix-functions/vprintf.texi: Update.
35093         * doc/posix-functions/vsnprintf.texi: Update.
35094         * doc/posix-functions/vsprintf.texi: Update.
35095         * doc/glibc-functions/obstack_printf.texi: Update.
35096         * doc/glibc-functions/obstack_vprintf.texi: Update.
35097
35098 2009-02-26  Eric Blake  <ebb9@byu.net>
35099
35100         stdlib: favor compiler check of random.h
35101         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
35102         to avoid an ObjC random.h installed by Swarm.
35103
35104 2009-02-26  Bruno Haible  <bruno@clisp.org>
35105
35106         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
35107         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
35108         Reported by Gary V. Vaughan <gary@gnu.org>.
35109
35110 2009-02-26  Bruno Haible  <bruno@clisp.org>
35111
35112         Fix *printf behaviour regarding the %ls directive.
35113         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
35114         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
35115         NEED_PRINTF_DIRECTIVE_LS.
35116         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
35117         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35118         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35119         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
35120         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
35121         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
35122         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35123         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35124         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35125         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35126         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35127         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
35128         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35129         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35130         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35131         * doc/posix-functions/fprintf.texi: Update.
35132         * doc/posix-functions/printf.texi: Update.
35133         * doc/posix-functions/snprintf.texi: Update.
35134         * doc/posix-functions/sprintf.texi: Update.
35135         * doc/posix-functions/vfprintf.texi: Update.
35136         * doc/posix-functions/vprintf.texi: Update.
35137         * doc/posix-functions/vsnprintf.texi: Update.
35138         * doc/posix-functions/vsprintf.texi: Update.
35139         * doc/glibc-functions/obstack_printf.texi: Update.
35140         * doc/glibc-functions/obstack_vprintf.texi: Update.
35141         Reported by Eric Blake.
35142
35143 2009-02-25  Bruno Haible  <bruno@clisp.org>
35144
35145         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
35146         with known value.
35147         Reported by Gary V. Vaughan <gary@gnu.org>.
35148
35149 2009-02-25  Bruno Haible  <bruno@clisp.org>
35150
35151         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
35152         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
35153         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
35154         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
35155         Reported by Gary V. Vaughan <gary@gnu.org>.
35156
35157 2009-02-25  Bruno Haible  <bruno@clisp.org>
35158
35159         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
35160         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
35161         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
35162         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
35163         Reported by Gary V. Vaughan <gary@gnu.org>.
35164
35165 2009-02-25  Eric Blake  <ebb9@byu.net>
35166
35167         tests: skip fseek/ftell tests if ungetc is broken
35168         * m4/ungetc.m4: New file.
35169         * modules/fseek-tests: Split test, so ungetc dependency is
35170         separate from rest of test.
35171         * modules/fseeko-tests: Likewise.
35172         * modules/ftell-tests: Likewise.
35173         * modules/ftello-tests: Likewise.
35174         * tests/test-fseek.c (main): Isolate ungetc dependency.
35175         * tests/test-fseeko.c (main): Likewise.
35176         * tests/test-ftell.c (main): Likewise.
35177         * tests/test-ftello.c (main): Likewise.
35178         * tests/test-fseek2.sh: New file.
35179         * tests/test-fseeko2.sh: Likewise.
35180         * tests/test-ftell2.sh: Likewise.
35181         * tests/test-ftello2.sh: Likewise.
35182
35183 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
35184
35185         test-getaddrinfo: fix usage of skip return code 77
35186         * tests/test-gettaddrinfo.c: Return skip code 77 only
35187         for first occurance of skip (4x77 is not 77)
35188
35189 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
35190
35191         strtod: avoid C99 decl-after-statement
35192         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
35193
35194 2009-02-24  Eric Blake  <ebb9@byu.net>
35195
35196         strtod: detect HP-UX 11.31 bug
35197         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
35198         Reported by Gary V. Vaughan.
35199
35200 2009-02-23  Bruno Haible  <bruno@clisp.org>
35201
35202         Fix invalid read past end of memory block.
35203         * lib/vasnprintf.c (DCHAR_SET): Define.
35204         (local_wcslen): Define only when needed.
35205         (local_strnlen, local_wcsnlen): New functions.
35206         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35207         directives that involve a conversion ourselves.
35208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35209         wcsnlen, mbrtowc, wcrtomb.
35210         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35211         * tests/test-vasprintf-posix.c (test_function): Likewise.
35212         * tests/test-snprintf-posix.h (test_function): Likewise.
35213         * tests/test-sprintf-posix.h (test_function): Likewise.
35214         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35215
35216 2009-02-22  Bruno Haible  <bruno@clisp.org>
35217
35218         Implement new clarified decomposition of Hangul syllables.
35219         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35220         of type LTV, return only a pairwise decomposition.
35221         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35222         Likewise.
35223         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35224         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35225         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35226
35227 2009-02-22  Bruno Haible  <bruno@clisp.org>
35228
35229         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35230         zero-length results and shrink excess allocated memory.
35231         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35232         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35233         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35234         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35235         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35236         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35237         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35238         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35239         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35240         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35241         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35242         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35243
35244 2009-02-21  Bruno Haible  <bruno@clisp.org>
35245
35246         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35247         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35248         spaces after a period. Put a space between a macro name and its
35249         argument list. Trivial rewordings.
35250         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35251         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35252         (main): Return 0 explicitly.
35253
35254 2009-02-21  Bruno Haible  <bruno@clisp.org>
35255
35256         Tests for module 'uninorm/filter'.
35257         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35258         * modules/uninorm/filter-tests: New file.
35259
35260         New module 'uninorm/filter'.
35261         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35262         uninorm_filter_flush, uninorm_filter_free): New declarations.
35263         * lib/uninorm/uninorm-filter.c: New file.
35264         * modules/uninorm/filter: New file.
35265
35266 2009-02-21  Bruno Haible  <bruno@clisp.org>
35267
35268         Tests for module 'uninorm/nfkc'.
35269         * tests/uninorm/test-nfkc.c: New file.
35270         * tests/uninorm/test-u8-nfkc.c: New file.
35271         * tests/uninorm/test-u16-nfkc.c: New file.
35272         * tests/uninorm/test-u32-nfkc.c: New file.
35273         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35274         * tests/uninorm/test-u32-nfkc-big.c: New file.
35275         * modules/uninorm/nfkc-tests: New file.
35276
35277         New module 'uninorm/nfkc'.
35278         * lib/uninorm/nfkc.c: New file.
35279         * modules/uninorm/nfkc: New file.
35280
35281         Tests for module 'uninorm/nfkd'.
35282         * tests/uninorm/test-nfkd.c: New file.
35283         * tests/uninorm/test-u8-nfkd.c: New file.
35284         * tests/uninorm/test-u16-nfkd.c: New file.
35285         * tests/uninorm/test-u32-nfkd.c: New file.
35286         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35287         * tests/uninorm/test-u32-nfkd-big.c: New file.
35288         * modules/uninorm/nfkd-tests: New file.
35289
35290         New module 'uninorm/nfkd'.
35291         * lib/uninorm/nfkd.c: New file.
35292         * modules/uninorm/nfkd: New file.
35293
35294         Tests for module 'uninorm/nfc'.
35295         * tests/uninorm/test-nfc.c: New file.
35296         * tests/uninorm/test-u8-nfc.c: New file.
35297         * tests/uninorm/test-u16-nfc.c: New file.
35298         * tests/uninorm/test-u32-nfc.c: New file.
35299         * tests/uninorm/test-u32-nfc-big.sh: New file.
35300         * tests/uninorm/test-u32-nfc-big.c: New file.
35301         * modules/uninorm/nfc-tests: New file.
35302
35303         New module 'uninorm/nfc'.
35304         * lib/uninorm/nfc.c: New file.
35305         * modules/uninorm/nfc: New file.
35306
35307         Tests for module 'uninorm/nfd'.
35308         * tests/uninorm/test-nfd.c: New file.
35309         * tests/uninorm/test-u8-nfd.c: New file.
35310         * tests/uninorm/test-u16-nfd.c: New file.
35311         * tests/uninorm/test-u32-nfd.c: New file.
35312         * tests/uninorm/test-u32-nfd-big.sh: New file.
35313         * tests/uninorm/test-u32-nfd-big.c: New file.
35314         * tests/uninorm/test-u32-normalize-big.h: New file.
35315         * tests/uninorm/test-u32-normalize-big.c: New file.
35316         * tests/uninorm/NormalizationTest.txt: New file, created from
35317         Unicode 5.1.0 NormalizationTest.txt.
35318         * modules/uninorm/nfd-tests: New file.
35319
35320         New module 'uninorm/nfd'.
35321         * lib/uninorm/nfd.c: New file.
35322         * modules/uninorm/nfd: New file.
35323
35324         New module 'uninorm/u32-normalize'.
35325         * lib/uninorm/u32-normalize.c: New file.
35326         * modules/uninorm/u32-normalize: New file.
35327
35328         New module 'uninorm/u16-normalize'.
35329         * lib/uninorm/u16-normalize.c: New file.
35330         * modules/uninorm/u16-normalize: New file.
35331
35332         New module 'uninorm/u8-normalize'.
35333         * lib/uninorm/u8-normalize.c: New file.
35334         * lib/uninorm/normalize-internal.h: New file.
35335         * lib/uninorm/u-normalize-internal.h: New file.
35336         * modules/uninorm/u8-normalize: New file.
35337
35338         New module 'uninorm/decompose-internal'.
35339         * lib/uninorm/decompose-internal.c: New file.
35340         * modules/uninorm/decompose-internal: New file.
35341
35342         Tests for module 'uninorm/composition'.
35343         * tests/uninorm/test-composition.c: New file.
35344         * modules/uninorm/composition-tests: New file.
35345
35346         New module 'uninorm/composition'.
35347         * lib/uninorm/composition.c: New file.
35348         * lib/uninorm/composition-table.gperf: New file, generated by
35349         gen-uni-tables.
35350         * modules/uninorm/composition: New file.
35351
35352         Tests for module 'uninorm/compat-decomposition'.
35353         * tests/uninorm/test-compat-decomposition.c: New file.
35354         * modules/uninorm/compat-decomposition-tests: New file.
35355
35356         New module 'uninorm/compat-decomposition'.
35357         * lib/uninorm/decompose-internal.h: New file.
35358         * lib/uninorm/compat-decomposition.c: New file.
35359         * modules/uninorm/compat-decomposition: New file.
35360
35361         Tests for module 'uninorm/canonical-decomposition'.
35362         * tests/uninorm/test-canonical-decomposition.c: New file.
35363         * modules/uninorm/canonical-decomposition-tests: New file.
35364
35365         New module 'uninorm/canonical-decomposition'.
35366         * lib/uninorm/canonical-decomposition.c: New file.
35367         * modules/uninorm/canonical-decomposition: New file.
35368
35369         Tests for module 'uninorm/decomposition'.
35370         * tests/uninorm/test-decomposition.c: New file.
35371         * modules/uninorm/decomposition-tests: New file.
35372
35373         New module 'uninorm/decomposition'.
35374         * lib/uninorm/decomposition.c: New file.
35375         * modules/uninorm/decomposition: New file.
35376
35377         New module 'uninorm/decomposition-table'.
35378         * lib/uninorm/decomposition-table.h: New file.
35379         * lib/uninorm/decomposition-table.c: New file.
35380         * lib/uninorm/decomposition-table1.h: New file, generated by
35381         gen-uni-tables.
35382         * lib/uninorm/decomposition-table2.h: New file, generated by
35383         gen-uni-tables.
35384         * modules/uninorm/decomposition-table: New file.
35385
35386         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35387         (UC_DECOMP_*): New enumeration items.
35388         (get_decomposition): New function.
35389         (struct decomp_table): New type.
35390         (output_decomposition, output_decomposition_tables): New functions.
35391         (unicode_composition_exclusions): New variable.
35392         (fill_composition_exclusions, debug_output_composition_tables): New
35393         functions.
35394         (main): Accept one more argument. Invoke fill_composition_exclusions.
35395         Output decomposition and composition tables.
35396
35397         New module 'uninorm/base'.
35398         * lib/uninorm.h: New file.
35399         * lib/unictype.h: Update comment.
35400         * modules/uninorm/base: New file.
35401
35402 2009-02-21  David Lutterkort  <lutter@redhat.com>
35403
35404         Tests for module 'safe-alloc'.
35405         * tests/test-safe-alloc.c: New file.
35406         * modules/safe-alloc-tests: New file.
35407
35408         New module 'safe-alloc'.
35409         * lib/safe-alloc.h: New file.
35410         * lib/safe-alloc.c: New file.
35411         * m4/safe-alloc.m4: New file.
35412         * modules/safe-alloc: New file.
35413         * doc/safe-alloc.texi: New file.
35414         * doc/gnulib.texi: Include it.
35415         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35416         safe-alloc.
35417
35418 2009-02-18  Bruno Haible  <bruno@clisp.org>
35419
35420         Fix link error on non-glibc systems.
35421         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35422         variable.
35423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35424
35425 2009-02-18  Jim Meyering  <meyering@redhat.com>
35426
35427         fts: avoid used-uninitialized error due to recent change
35428         * lib/fts.c (fts_read): Guard uses of the new member,
35429         parent->fts_n_dirs_remaining, since it's not relevant for
35430         the parent of a directory specified on the command-line.
35431
35432 2009-02-17  James Youngman  <jay@gnu.org>
35433             Bruno Haible  <bruno@clisp.org>
35434
35435         * m4/include_next.m4: Reformulate comment.
35436
35437 2009-02-16  Jim Meyering  <meyering@redhat.com>
35438
35439         fts: add #if guards so that the fts_lgpl module still builds
35440         * lib/fts.c: Guard just-added hash-table-using parts with
35441         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35442         Reported by Simon Josefsson.
35443
35444 2009-02-15  Bruno Haible  <bruno@clisp.org>
35445
35446         * modules/array-mergesort-tests: New file.
35447         * tests/test-array-mergesort.c: New file.
35448
35449         New module 'array-mergesort'.
35450         * modules/array-mergesort: New file.
35451         * lib/array-mergesort.h: New file.
35452
35453 2009-02-15  Bruno Haible  <bruno@clisp.org>
35454
35455         Fix 2009-02-07 commit.
35456         * lib/gen-uni-tables.c (output_predicate, output_category,
35457         output_combclass, output_bidi_category, output_decimal_digit,
35458         output_digit, output_numeric, output_mirror, output_scripts,
35459         output_ident_category, output_simple_mapping): Fix format directives.
35460         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35461
35462 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35463
35464         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35465         fixes are available from IBM.
35466
35467 2009-02-13  Jim Meyering  <meyering@redhat.com>
35468
35469         fts: arrange not to stat non-directories in more cases
35470         This makes GNU find (when it doesn't need to stat each file)
35471         *much* more efficient at traversing reiserfs file systems.
35472         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35473         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35474         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35475         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35476         (leaf_optimization_applies): New function.
35477         (LCO_hash, LCO_compare): New helper functions.
35478         (link_count_optimize_ok): New function.
35479         (fts_stat): Initialize new member (if dir).
35480         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35481         we've just stat'ed a directory.  Skip the stat call when possible.
35482         ---
35483         Note this AFS-related exchange:
35484         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35485         and note find's pioctl call in find/fstype.c.
35486         But that is necessary only if you want to enable the
35487         optimization for AFS, and for now, I don't.
35488
35489         fts: move a function definition "up" (no semantic change)
35490         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35491         "up" to precede upcoming use of a related function.
35492
35493 2009-02-11  Jim Meyering  <meyering@redhat.com>
35494
35495         fts: correct internal computation of nlinks (optimization-related)
35496         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35497         whether the current entry is a directory, so don't test it.
35498
35499 2009-02-10  Bruno Haible  <bruno@clisp.org>
35500
35501         Tests for module 'uniwbrk/ulc-wordbreaks'.
35502         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35503         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35504         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35505
35506         Tests for module 'uniwbrk/u32-wordbreaks'.
35507         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35508         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35509
35510         Tests for module 'uniwbrk/u16-wordbreaks'.
35511         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35512         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35513
35514         Tests for module 'uniwbrk/u8-wordbreaks'.
35515         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35516         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35517
35518 2009-02-10  Bruno Haible  <bruno@clisp.org>
35519
35520         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35521         property.
35522         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35523         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35524         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35525
35526 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35527
35528         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35529         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35530
35531 2009-02-10  Bruno Haible  <bruno@clisp.org>
35532
35533         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35534         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35535         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35536         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35537         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35538         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35539
35540 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35541
35542         * lib/sockets.h (gl_fd_to_handle): New function.
35543
35544         * tests/test-sockets.c: Call gl_fd_to_handle.
35545
35546 2009-02-09  Bruno Haible  <bruno@clisp.org>
35547
35548         * doc/havelib.texi: Document the conventions on bi-arch systems.
35549
35550 2009-02-08  Bruno Haible  <bruno@clisp.org>
35551
35552         Document the AC_LIB_LINKFLAGS macro.
35553         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35554         * doc/gnulib.texi: Include it.
35555
35556 2009-02-08  Bruno Haible  <bruno@clisp.org>
35557
35558         Fix wrong order of sections, compared to TOC.
35559         * doc/gnulib.texi: Include relocatable-maint.texi after the
35560         "Regular expressions" node, not before.
35561
35562 2009-02-08  Bruno Haible  <bruno@clisp.org>
35563
35564         Tests for module 'unicase/totitle'.
35565         * modules/unicase/totitle-tests: New file.
35566
35567         Tests for module 'unicase/tolower'.
35568         * modules/unicase/tolower-tests: New file.
35569
35570         Tests for module 'unicase/toupper'.
35571         * modules/unicase/toupper-tests: New file.
35572         * tests/unicase/test-mapping-part1.h: New file.
35573         * tests/unicase/test-mapping-part2.h: New file.
35574
35575         New module 'unicase/totitle'.
35576         * modules/unicase/totitle: New file.
35577         * lib/unicase/totitle.c: New file.
35578
35579         New module 'unicase/tolower'.
35580         * modules/unicase/tolower: New file.
35581         * lib/unicase/tolower.c: New file.
35582
35583         New module 'unicase/toupper'.
35584         * modules/unicase/toupper: New file.
35585         * lib/unicase/toupper.c: New file.
35586         * lib/unicase/simple-mapping.h: New file.
35587
35588         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35589         (mapping_table): New structure.
35590         (output_simple_mapping): New function.
35591         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35592         * modules/gen-uni-tables (Description): Update.
35593         * lib/unicase/toupper.h: New file, automatically generated by
35594         gen-uni-tables.
35595         * lib/unicase/tolower.h: New file, automatically generated by
35596         gen-uni-tables.
35597         * lib/unicase/totitle.h: New file, automatically generated by
35598         gen-uni-tables.
35599         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35600         gen-uni-tables.
35601         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35602         gen-uni-tables.
35603         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35604         gen-uni-tables.
35605
35606         New module 'unicase/base'.
35607         * modules/unicase/base: New file.
35608         * lib/unicase.h: New file.
35609
35610 2009-02-08  Bruno Haible  <bruno@clisp.org>
35611
35612         New module 'uniwbrk/ulc-wordbreaks'.
35613         * modules/uniwbrk/ulc-wordbreaks: New file.
35614         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35615
35616         New module 'uniwbrk/u32-wordbreaks'.
35617         * modules/uniwbrk/u32-wordbreaks: New file.
35618         * lib/uniwbrk/u32-wordbreaks.c: New file.
35619
35620         New module 'uniwbrk/u16-wordbreaks'.
35621         * modules/uniwbrk/u16-wordbreaks: New file.
35622         * lib/uniwbrk/u16-wordbreaks.c: New file.
35623
35624         New module 'uniwbrk/u8-wordbreaks'.
35625         * modules/uniwbrk/u8-wordbreaks: New file.
35626         * lib/uniwbrk/u8-wordbreaks.c: New file.
35627         * lib/uniwbrk/u-wordbreaks.h: New file.
35628
35629         New module 'uniwbrk/table'.
35630         * modules/uniwbrk/table: New file.
35631         * lib/uniwbrk/wbrktable.h: New file.
35632         * lib/uniwbrk/wbrktable.c: New file.
35633
35634         New module 'uniwbrk/wordbreak-property'.
35635         * modules/uniwbrk/wordbreak-property: New file.
35636         * lib/uniwbrk/wordbreak-property.c: New file.
35637
35638         * lib/gen-uni-tables.c (WBP_*): New enum items.
35639         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35640         (unicode_org_wbp): New variable.
35641         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35642         New functions.
35643         (wbp_table): New structure.
35644         (output_wbp, output_wbrk_tables): New functions.
35645         (main): Accept additional argument. Invoke fill_org_wbp,
35646         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35647         output_wbrk_tables.
35648         * modules/gen-uni-tables (Description): Update.
35649         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35650         gen-uni-tables.
35651
35652         New module 'uniwbrk/base'.
35653         * modules/uniwbrk/base: New file.
35654         * lib/uniwbrk.h: New file.
35655
35656 2009-02-08  Bruno Haible  <bruno@clisp.org>
35657
35658         Update to Unicode 5.1.0.
35659         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35660         U+2185..U+2188.
35661         (is_property_default_ignorable_code_point): Don't include characters
35662         of category Cc or Cs and not-a-characters.
35663         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35664         U+0D79, U+109E, U+109F, U+A60C.
35665         * lib/unictype/bidi_of.h: Regenerated.
35666         * lib/unictype/blocks.h: Regenerated.
35667         * lib/unictype/categ_C.h: Regenerated.
35668         * lib/unictype/categ_Cf.h: Regenerated.
35669         * lib/unictype/categ_Cn.h: Regenerated.
35670         * lib/unictype/categ_L.h: Regenerated.
35671         * lib/unictype/categ_Ll.h: Regenerated.
35672         * lib/unictype/categ_Lm.h: Regenerated.
35673         * lib/unictype/categ_Lo.h: Regenerated.
35674         * lib/unictype/categ_Lu.h: Regenerated.
35675         * lib/unictype/categ_M.h: Regenerated.
35676         * lib/unictype/categ_Mc.h: Regenerated.
35677         * lib/unictype/categ_Me.h: Regenerated.
35678         * lib/unictype/categ_Mn.h: Regenerated.
35679         * lib/unictype/categ_N.h: Regenerated.
35680         * lib/unictype/categ_Nd.h: Regenerated.
35681         * lib/unictype/categ_Nl.h: Regenerated.
35682         * lib/unictype/categ_No.h: Regenerated.
35683         * lib/unictype/categ_P.h: Regenerated.
35684         * lib/unictype/categ_Pd.h: Regenerated.
35685         * lib/unictype/categ_Pe.h: Regenerated.
35686         * lib/unictype/categ_Pf.h: Regenerated.
35687         * lib/unictype/categ_Pi.h: Regenerated.
35688         * lib/unictype/categ_Po.h: Regenerated.
35689         * lib/unictype/categ_Ps.h: Regenerated.
35690         * lib/unictype/categ_S.h: Regenerated.
35691         * lib/unictype/categ_Sk.h: Regenerated.
35692         * lib/unictype/categ_Sm.h: Regenerated.
35693         * lib/unictype/categ_So.h: Regenerated.
35694         * lib/unictype/categ_of.h: Regenerated.
35695         * lib/unictype/combining.h: Regenerated.
35696         * lib/unictype/ctype_alnum.h: Regenerated.
35697         * lib/unictype/ctype_alpha.h: Regenerated.
35698         * lib/unictype/ctype_graph.h: Regenerated.
35699         * lib/unictype/ctype_lower.h: Regenerated.
35700         * lib/unictype/ctype_print.h: Regenerated.
35701         * lib/unictype/ctype_punct.h: Regenerated.
35702         * lib/unictype/ctype_upper.h: Regenerated.
35703         * lib/unictype/decdigit.h: Regenerated.
35704         * lib/unictype/digit.h: Regenerated.
35705         * lib/unictype/mirror.h: Regenerated.
35706         * lib/unictype/numeric.h: Regenerated.
35707         * lib/unictype/pr_alphabetic.h: Regenerated.
35708         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35709         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35710         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35711         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35712         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35713         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35714         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35715         * lib/unictype/pr_combining.h: Regenerated.
35716         * lib/unictype/pr_dash.h: Regenerated.
35717         * lib/unictype/pr_decimal_digit.h: Regenerated.
35718         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35719         * lib/unictype/pr_deprecated.h: Regenerated.
35720         * lib/unictype/pr_diacritic.h: Regenerated.
35721         * lib/unictype/pr_extender.h: Regenerated.
35722         * lib/unictype/pr_format_control.h: Regenerated.
35723         * lib/unictype/pr_grapheme_base.h: Regenerated.
35724         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35725         * lib/unictype/pr_grapheme_link.h: Regenerated.
35726         * lib/unictype/pr_id_continue.h: Regenerated.
35727         * lib/unictype/pr_id_start.h: Regenerated.
35728         * lib/unictype/pr_ideographic.h: Regenerated.
35729         * lib/unictype/pr_ignorable_control.h: Regenerated.
35730         * lib/unictype/pr_lowercase.h: Regenerated.
35731         * lib/unictype/pr_math.h: Regenerated.
35732         * lib/unictype/pr_numeric.h: Regenerated.
35733         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35734         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35735         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35736         * lib/unictype/pr_other_id_continue.h: Regenerated.
35737         * lib/unictype/pr_other_lowercase.h: Regenerated.
35738         * lib/unictype/pr_other_math.h: Regenerated.
35739         * lib/unictype/pr_punctuation.h: Regenerated.
35740         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35741         * lib/unictype/pr_soft_dotted.h: Regenerated.
35742         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35743         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35744         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35745         * lib/unictype/pr_uppercase.h: Regenerated.
35746         * lib/unictype/pr_xid_continue.h: Regenerated.
35747         * lib/unictype/pr_xid_start.h: Regenerated.
35748         * lib/unictype/pr_zero_width.h: Regenerated.
35749         * lib/unictype/scripts.h: Regenerated.
35750         * lib/unictype/scripts_byname.gperf: Regenerated.
35751         * lib/unictype/sy_java_ident.h: Regenerated.
35752         * lib/unilbrk/lbrkprop1.h: Regenerated.
35753         * lib/unilbrk/lbrkprop2.h: Regenerated.
35754         * tests/unictype/test-categ_C.c: Regenerated.
35755         * tests/unictype/test-categ_Cf.c: Regenerated.
35756         * tests/unictype/test-categ_Cn.c: Regenerated.
35757         * tests/unictype/test-categ_L.c: Regenerated.
35758         * tests/unictype/test-categ_Ll.c: Regenerated.
35759         * tests/unictype/test-categ_Lm.c: Regenerated.
35760         * tests/unictype/test-categ_Lo.c: Regenerated.
35761         * tests/unictype/test-categ_Lu.c: Regenerated.
35762         * tests/unictype/test-categ_M.c: Regenerated.
35763         * tests/unictype/test-categ_Mc.c: Regenerated.
35764         * tests/unictype/test-categ_Me.c: Regenerated.
35765         * tests/unictype/test-categ_Mn.c: Regenerated.
35766         * tests/unictype/test-categ_N.c: Regenerated.
35767         * tests/unictype/test-categ_Nd.c: Regenerated.
35768         * tests/unictype/test-categ_Nl.c: Regenerated.
35769         * tests/unictype/test-categ_No.c: Regenerated.
35770         * tests/unictype/test-categ_P.c: Regenerated.
35771         * tests/unictype/test-categ_Pd.c: Regenerated.
35772         * tests/unictype/test-categ_Pe.c: Regenerated.
35773         * tests/unictype/test-categ_Pf.c: Regenerated.
35774         * tests/unictype/test-categ_Pi.c: Regenerated.
35775         * tests/unictype/test-categ_Po.c: Regenerated.
35776         * tests/unictype/test-categ_Ps.c: Regenerated.
35777         * tests/unictype/test-categ_S.c: Regenerated.
35778         * tests/unictype/test-categ_Sk.c: Regenerated.
35779         * tests/unictype/test-categ_Sm.c: Regenerated.
35780         * tests/unictype/test-categ_So.c: Regenerated.
35781         * tests/unictype/test-ctype_alnum.c: Regenerated.
35782         * tests/unictype/test-ctype_alpha.c: Regenerated.
35783         * tests/unictype/test-ctype_graph.c: Regenerated.
35784         * tests/unictype/test-ctype_lower.c: Regenerated.
35785         * tests/unictype/test-ctype_print.c: Regenerated.
35786         * tests/unictype/test-ctype_punct.c: Regenerated.
35787         * tests/unictype/test-ctype_upper.c: Regenerated.
35788         * tests/unictype/test-decdigit.h: Regenerated.
35789         * tests/unictype/test-digit.h: Regenerated.
35790         * tests/unictype/test-numeric.h: Regenerated.
35791         * tests/unictype/test-pr_alphabetic.c: Regenerated.
35792         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
35793         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
35794         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
35795         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
35796         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
35797         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
35798         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
35799         * tests/unictype/test-pr_combining.c: Regenerated.
35800         * tests/unictype/test-pr_dash.c: Regenerated.
35801         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
35802         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
35803         * tests/unictype/test-pr_deprecated.c: Regenerated.
35804         * tests/unictype/test-pr_diacritic.c: Regenerated.
35805         * tests/unictype/test-pr_extender.c: Regenerated.
35806         * tests/unictype/test-pr_format_control.c: Regenerated.
35807         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
35808         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
35809         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
35810         * tests/unictype/test-pr_id_continue.c: Regenerated.
35811         * tests/unictype/test-pr_id_start.c: Regenerated.
35812         * tests/unictype/test-pr_ideographic.c: Regenerated.
35813         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
35814         * tests/unictype/test-pr_lowercase.c: Regenerated.
35815         * tests/unictype/test-pr_math.c: Regenerated.
35816         * tests/unictype/test-pr_numeric.c: Regenerated.
35817         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
35818         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
35819         Regenerated.
35820         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
35821         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
35822         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
35823         * tests/unictype/test-pr_other_math.c: Regenerated.
35824         * tests/unictype/test-pr_punctuation.c: Regenerated.
35825         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
35826         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
35827         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
35828         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
35829         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
35830         * tests/unictype/test-pr_uppercase.c: Regenerated.
35831         * tests/unictype/test-pr_xid_continue.c: Regenerated.
35832         * tests/unictype/test-pr_xid_start.c: Regenerated.
35833         * tests/unictype/test-pr_zero_width.c: Regenerated.
35834
35835         Update to Unicode 5.1.0.
35836         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
35837         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
35838         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
35839         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
35840         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
35841         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
35842         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
35843         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
35844         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
35845         (nonspacing_table_ind): Update.
35846         * tests/uniwidth/test-uc_width2.sh: Update expected result.
35847
35848         Update to Unicode 5.1.0.
35849         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
35850         code transform.
35851         * lib/uniname/uniname.c (unicode_character_name,
35852         unicode_name_character): Add the range 0x1Fxxx to the code transform.
35853         * lib/uniname/uninames.h: Regenerated.
35854         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
35855
35856 2009-02-07  Bruno Haible  <bruno@clisp.org>
35857
35858         Merge gen-ctype and gen-lbrk into a single program.
35859         * lib/gen-uni-tables.c: New file, incorporating
35860         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
35861         Add directory prefixes to the names of the generated files.
35862         * lib/unictype/gen-ctype.c: Remove file.
35863         * lib/unilbrk/gen-lbrk.c: Remove file.
35864         * modules/gen-uni-tables: New file.
35865         * modules/unictype/gen-ctype: Remove file.
35866         * modules/unilbrk/gen-lbrk: Remove file.
35867
35868 2009-02-07  Bruno Haible  <bruno@clisp.org>
35869
35870         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
35871
35872         New module 'unistr/u32-strcoll'.
35873         * modules/unistr/u32-strcoll: New file.
35874         * lib/unistr/u32-strcoll.c: New file.
35875
35876         New module 'unistr/u16-strcoll'.
35877         * modules/unistr/u16-strcoll: New file.
35878         * lib/unistr/u16-strcoll.c: New file.
35879
35880         New module 'unistr/u8-strcoll'.
35881         * modules/unistr/u8-strcoll: New file.
35882         * lib/unistr/u8-strcoll.c: New file.
35883         * lib/unistr/u-strcoll.h: New file.
35884
35885 2009-02-07  Bruno Haible  <bruno@clisp.org>
35886
35887         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
35888         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35889         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35890         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
35891         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
35892         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
35893
35894 2009-02-07  Bruno Haible  <bruno@clisp.org>
35895
35896         Make 64-bit clean.
35897         * lib/unictype/gen-ctype.c (output_predicate, output_category,
35898         output_combclass, output_bidi_category, output_decimal_digit,
35899         output_digit, output_numeric, output_mirror, output_scripts,
35900         output_ident_category): Use proper width specifier in format strings.
35901
35902 2009-02-07  Bruno Haible  <bruno@clisp.org>
35903
35904         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
35905         failure behaviour.
35906
35907 2009-02-07  Jim Meyering  <meyering@redhat.com>
35908
35909         regex: avoid compilation failure with upcoming gcc-4.4
35910         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
35911         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
35912         "... error: integer overflow in preprocessor expression".
35913
35914 2009-02-05  Ben Pfaff  <blp@gnu.org>
35915
35916         Fix link errors on Windows when close module is used.
35917         * modules/close: Add $(LIB_CLOSE) to Link section.
35918         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
35919         $(LIB_CLOSE) on Windows.
35920
35921 2009-02-05  Jim Meyering  <meyering@redhat.com>
35922
35923         still avoid unused-parameter warnings, but do it cleanly
35924         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
35925         (get_fs_usage): Cast to void instead.
35926         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
35927         (dev_from_mount_options, read_file_system_list): Cast to void.
35928         Prompted by Bruno Haible.
35929
35930 2009-02-04  Jim Meyering  <meyering@redhat.com>
35931
35932         fsusage.c: correct copyright year
35933         * lib/fsusage.c: Reflect year in which the change is pushed into
35934
35935         avoid misc. warnings
35936         * lib/fsusage.c (UNUSED_PARAM): Define.
35937         (get_fs_usage): Mark parameter "disk" as unused.
35938         * lib/getugroups.c (getgrent): Use "void" in prototype.
35939         * lib/mountlist.c: Mark unused parameters.
35940         (read_file_system_list): Declare a local with "const".
35941         * lib/nanosleep.c (getnow): Declare static.
35942         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
35943
35944         dirfd: set errno upon failure
35945         * lib/dirfd.c: Include <errno.h>.
35946         Set errno to ENOTSUP when returning -1.
35947         * modules/dirfd (Depends-on): Add errno.
35948         Suggested by John Kodis <kodis@comcast.net>.
35949
35950 2009-02-01  Bruno Haible  <bruno@clisp.org>
35951
35952         Don't assume sizeof (long) >= sizeof (void *).
35953         * lib/memcmp.c: Include stdint.h.
35954         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
35955         srcp2 to 'const byte *'.
35956         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
35957         types to uintptr_t.
35958         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
35959         * modules/memcmp (Depends-on): Add stdint.
35960         Reported by Ozkan Sezer <sezeroz@gmail.com>.
35961
35962 2009-01-30  Eric Blake  <ebb9@byu.net>
35963
35964         fix more require-before-expand issues
35965         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
35966         expand, AC_PROG_AWK.
35967         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
35968
35969 2009-01-28  Eric Blake  <ebb9@byu.net>
35970
35971         version-etc: use consistent URL formatting
35972         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
35973         Improve formatting.  Use fputs for string without %.
35974
35975 2009-01-28  Jim Meyering  <meyering@redhat.com>
35976
35977         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
35978         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
35979         "underquoted definition of NAME" from autoconf-2.59.
35980
35981 2009-01-28  Bruno Haible  <bruno@clisp.org>
35982
35983         * doc/gnulib.texi: Add "Obsolete modules" to index.
35984
35985 2009-01-28  Jim Meyering  <meyering@redhat.com>
35986
35987         useless-if-before-free: recognize more variants
35988         * build-aux/useless-if-before-free: Also recognize e.g.,
35989         if (NULL != p) free (p);
35990
35991 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
35992
35993         test-getaddrinfo: skip (don't fail) this test when there's no network
35994         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
35995         on the presumption that it means you lack network access.
35996
35997 2009-01-26  Jim Meyering  <meyering@redhat.com>
35998
35999         fflush: avoid warnings on modern systems
36000         * lib/fflush.c (rpl_fflush): Move declarations of locals,
36001         pos and result, into scopes where they're used.
36002
36003 2009-01-26  Eric Blake  <ebb9@byu.net>
36004
36005         Silence warning reintroduced by recent extensions patch.
36006         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
36007         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
36008         autoconf.
36009
36010         Backport improved autoconf semantics of AC_DEFUN_ONCE.
36011         * m4/00gnulib.m4: New file.
36012         * gnulib-tool (func_get_filelist): Always use it.
36013         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
36014         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
36015
36016 2009-01-25  Bruno Haible  <bruno@clisp.org>
36017
36018         Make test-quotearg work on MacOS X and AIX.
36019         * tests/test-quotearg.sh: New file.
36020         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
36021         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
36022         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
36023         include <libintl.h>.
36024         (fake_locale): Remove variable.
36025         (gettext, dgettext, dcgettext): Remove functions.
36026         (main): Instead of setting a fake locale, set a real locale. Call
36027         textdomain and bindtextdomain.
36028         * modules/quotearg-tests (Files): Add the new files.
36029         (Depends-on): Add gettext, setenv, unsetenv.
36030         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36031         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
36032         Augment TESTS_ENVIRONMENT.
36033
36034 2009-01-25  Bruno Haible  <bruno@clisp.org>
36035
36036         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
36037         fr_FR.ISO8859-1 locale on MacOS X.
36038         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
36039         ja_JP.eucJP locale on MacOS X.
36040         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
36041         zh_CN.GB18030 locale on MacOS X.
36042
36043 2009-01-25  Bruno Haible  <bruno@clisp.org>
36044
36045         Avoid link errors on MacOS X 10.3.
36046         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
36047         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36048
36049 2009-01-25  Bruno Haible  <bruno@clisp.org>
36050
36051         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36052         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
36053         * modules/pipe (Files): Remove m4/posix_spawn.m4.
36054         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36055         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
36056         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36057         posix_spawnattr_init, posix_spawnattr_setsigmask,
36058         posix_spawnattr_setflags, posix_spawnattr_destroy.
36059
36060         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36061         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
36062         * modules/execute (Files): Remove m4/posix_spawn.m4.
36063         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36064         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36065         posix_spawnattr_init, posix_spawnattr_setsigmask,
36066         posix_spawnattr_setflags, posix_spawnattr_destroy.
36067
36068 2009-01-25  Bruno Haible  <bruno@clisp.org>
36069
36070         * lib/glthread/threadlib.c: Include <stdlib.h>.
36071
36072 2009-01-25  Bruno Haible  <bruno@clisp.org>
36073
36074         * lib/glthread/threadlib.c (dummy): New declaration.
36075
36076 2009-01-25  Bruno Haible  <bruno@clisp.org>
36077
36078         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
36079         multibyte characters also for the GB18030 encoding. Don't crash when
36080         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
36081
36082 2009-01-25  Bruno Haible  <bruno@clisp.org>
36083
36084         Avoid redefining 'struct random_data' on OSF/1 5.1.
36085         * lib/stdlib.in.h: Include <random.h> if it exists.
36086         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
36087         HAVE_RANDOM_H. Include <random.h> when testing whether
36088         'struct random_data' exists.
36089         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
36090
36091 2009-01-25  Bruno Haible  <bruno@clisp.org>
36092
36093         Don't install charset.alias on MacOS X >= 10.3.
36094         * lib/localcharset.c (DARWIN7): New macro.
36095         (get_charset_aliases): Hardcode the result for Darwin7.
36096         * modules/localcharset (install-exec-local): Don't install
36097         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
36098
36099 2009-01-25  Bruno Haible  <bruno@clisp.org>
36100
36101         Don't install charset.alias on mingw and Cygwin.
36102         * modules/localcharset (install-exec-local): Don't install
36103         charset.alias on mingw and Cygwin, if the file does not yet exist.
36104         The result for these platforms is hardcoded in localcharset.c.
36105
36106 2009-01-25  Bruno Haible  <bruno@clisp.org>
36107
36108         Make it possible again to use AC_GNU_SOURCE together with gnulib.
36109         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
36110         before requiring AC_USE_SYSTEM_EXTENSIONS.
36111
36112 2009-01-25  Jim Meyering  <meyering@redhat.com>
36113
36114         c-strtod: avoid warnings
36115         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
36116         "assignment discards qualifiers from pointer target type" warnings.
36117
36118 2009-01-24  Bruno Haible  <bruno@clisp.org>
36119
36120         Add support for non-UTF-8 locales on MacOS X.
36121         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
36122         canonical encodings. For Darwin 7 and newer, don't map traditional
36123         encodings to UTF-8.
36124         Reported by Vincent Lefevre <vincent@vinc17.org>
36125         at <http://savannah.gnu.org/bugs/?25235>.
36126
36127 2009-01-24  Bruno Haible  <bruno@clisp.org>
36128
36129         * doc/gnulib.texi (Obsolete modules): New section.
36130         Reported by Mike Frysinger <vapier@gentoo.org>.
36131
36132 2009-01-24  Bruno Haible  <bruno@clisp.org>
36133
36134         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
36135         (%.dvi): New rule.
36136
36137 2009-01-24  Bruno Haible  <bruno@clisp.org>
36138
36139         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
36140         Reported by Eric Blake.
36141
36142 2009-01-24  Bruno Haible  <bruno@clisp.org>
36143
36144         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
36145         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
36146         Reported by Gary V. Vaughan <gary@gnu.org>.
36147
36148 2009-01-24  Bruno Haible  <bruno@clisp.org>
36149
36150         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
36151
36152 2009-01-23  Bruno Haible  <bruno@clisp.org>
36153
36154         Make c-strtod, c-strtold usable in libraries.
36155         * lib/c-strtod.c: Include string.h instead of xalloc.h.
36156         (C_STRTOD): Call strdup instead of xstrdup.
36157         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
36158         * modules/c-strtold (Depends-on): Likewise.
36159         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
36160         * NEWS: Mention the change.
36161         Reported by Michael Gold <mgold@ncf.ca>.
36162
36163 2009-01-23  Jim Meyering  <meyering@redhat.com>
36164
36165         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
36166         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
36167         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
36168
36169 2009-01-23  Simon Josefsson  <simon@josefsson.org>
36170
36171         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
36172         GNU CoreUtils.
36173         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
36174         * modules/version-etc (Description): Update.
36175
36176 2009-01-22  Bruno Haible  <bruno@clisp.org>
36177
36178         Cache the C locale object.
36179         * lib/c-strtod.c (c_locale_cache): New variable.
36180         (c_locale): New function.
36181         (C_STRTOD): Use it, and don't call freelocale.
36182         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
36183         Suggested by Paolo Bonzini.
36184
36185 2009-01-21  Bruno Haible  <bruno@clisp.org>
36186
36187         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
36188         conditions other than overflow.
36189
36190 2009-01-21  Bruno Haible  <bruno@clisp.org>
36191
36192         * lib/c-strtod.c: Include errno.h.
36193         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
36194         value from STRTOD_L and STRTOD.
36195
36196 2009-01-21  Bruno Haible  <bruno@clisp.org>
36197         and Jim Meyering  <meyering@redhat.com>
36198
36199         nanosleep: skip configure test (fail it) for apple universal builds
36200         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
36201         universal builds, assume that nanosleep does not work.
36202         * modules/nanosleep (Depends-on): Add multiarch.
36203
36204         mktime: skip configure test (fail it) for apple universal builds
36205         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
36206         universal builds, assume that mktime does not work.
36207         * modules/mktime (Depends-on): Add multiarch.
36208
36209 2009-01-21  Eric Blake  <ebb9@byu.net>
36210
36211         multiarch: avoid expand-before-require warning
36212         * modules/multiarch (configure.ac): Require, rather than expand,
36213         gl_MULTIARCH.
36214         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36215         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36216         enforce that all clients require it.  Partial reversion of
36217         2008-12-29 patch.
36218
36219         error: avoid expand-before-require warning
36220         * modules/errno (configure.ac): Require, rather than expand,
36221         gl_HEADER_ERRNO_H.
36222         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36223         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36224         enforce that all clients require it.
36225
36226         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36227         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36228         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36229         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36230
36231 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36232
36233         Revert:
36234         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36235
36236         regex: do not depend on obsolete modules.
36237         * modules/regex: Remove memcmp and memmove.
36238
36239 2009-01-20  Bruno Haible  <bruno@clisp.org>
36240
36241         Make the 'link' module link on Windows NT 4.
36242         * lib/link.c (_WIN32_WINNT): Don't define.
36243         (CreateHardLinkFuncType): New type.
36244         (CreateHardLinkFunc, initialized): New variables.
36245         (initialize): New function.
36246         (link): Invoke CreateHardLink indirectly through the function pointer.
36247
36248 2009-01-20  Bruno Haible  <bruno@clisp.org>
36249
36250         Fix compilation failure on mingw.
36251         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36252
36253 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36254
36255         * doc/c-strtod.texi: Mention a couple of restrictions.
36256
36257 2009-01-20  Jim Meyering  <meyering@redhat.com>
36258
36259         gettimeofday: move more declarations out of functions
36260         * lib/gettimeofday.c: Move extern declarations of tzset and
36261         gmtime out of containing functions.  Prompted by Bruno Haible.
36262
36263 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36264
36265         regex: do not depend on obsolete modules.
36266         * modules/regex: Remove memcmp and memmove.
36267
36268 2009-01-19  Bruno Haible  <bruno@clisp.org>
36269
36270         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36271         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36272         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36273         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36274         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36275
36276 2009-01-19  Bruno Haible  <bruno@clisp.org>
36277
36278         * tests/test-link.c: Include <errno.h>.
36279         (main): Exit with code 77 when a hard link cannot be created due to
36280         the file system.
36281         * tests/test-link.sh: Skip test when a hard link cannot be created due
36282         to the file system.
36283         Suggested by Eric Blake.
36284
36285 2009-01-19  Martin Lambers  <marlam@marlam.de>
36286
36287         * modules/link-tests: New file.
36288         * tests/test-link.sh: New file.
36289         * tests/test-link.c: New file.
36290
36291 2009-01-19  Eric Blake  <ebb9@byu.net>
36292
36293         doc: mention another function added in cygwin 1.7.0
36294         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36295         Another new function in cygwin 1.7.
36296
36297 2009-01-19  Bruno Haible  <bruno@clisp.org>
36298
36299         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36300         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36301         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36302         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36303         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36304         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36305         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36306         * m4/md4.m4 (gl_MD4): Likewise.
36307         * m4/md5.m4 (gl_MD5): Likewise.
36308         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36309         * m4/sha1.m4 (gl_SHA1): Likewise.
36310         * m4/sha256.m4 (gl_SHA256): Likewise.
36311         * m4/sha512.m4 (gl_SHA512): Likewise.
36312
36313 2009-01-19  Bruno Haible  <bruno@clisp.org>
36314
36315         * modules/uniname/uniname-tests (Depends-on): Add progname.
36316         * tests/uniname/test-uninames.c: Include progname.h.
36317         (main): Call set_program_name.
36318
36319         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36320         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36321         (main): Call set_program_name.
36322
36323         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36324         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36325         (main): Call set_program_name.
36326
36327         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36328         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36329         (main): Call set_program_name.
36330
36331         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36332         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36333         (main): Call set_program_name.
36334
36335         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36336         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36337         (main): Call set_program_name.
36338
36339         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36340         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36341         (main): Call set_program_name.
36342
36343         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36344         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36345         (main): Call set_program_name.
36346
36347         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36348         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36349         (main): Call set_program_name.
36350
36351 2009-01-19  Eric Blake  <ebb9@byu.net>
36352
36353         test-unistd: test previous patch
36354         * tests/test-unistd.c: Test *_FILENO macros.
36355
36356         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36357         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36358         Guarantee a definition.
36359         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36360         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36361         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36362         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36363         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36364         Likewise.
36365         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36366         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36367         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36368         Likewise.
36369         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36370         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36371         (STDERR_FILENO): Likewise.
36372         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36373         (STDERR_FILENO): Likewise.
36374         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36375         (STDERR_FILENO): Likewise.
36376         Reported by Elbert Pol.
36377
36378 2009-01-19  Eric Blake  <ebb9@byu.net>
36379
36380         doc: mention more functions added in cygwin 1.7.0
36381         * doc/posix-functions/abort.texi (abort): Update wording related
36382         to cygwin.
36383         * doc/posix-functions/daylight.texi (daylight): Likewise.
36384         * doc/posix-functions/optarg.texi (optarg): Likewise.
36385         * doc/posix-functions/optarg.texi (opterr): Likewise.
36386         * doc/posix-functions/optarg.texi (optind): Likewise.
36387         * doc/posix-functions/optarg.texi (optopt): Likewise.
36388         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36389         worked in 1.5.x, and was withdrawn in 1.7.
36390         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36391         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36392         cygwin versions.
36393         * doc/posix-functions/perror.texi (perror): Likewise.
36394         * doc/posix-functions/printf.texi (printf): Likewise.
36395         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36396         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36397         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36398         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36399         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36400         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36401         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36402         Likewise.
36403         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36404         Likewise.
36405         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36406         this function.
36407         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36408         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36409         Likewise.
36410         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36411         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36412         * doc/posix-functions/confstr.texi (confstr): Likewise.
36413         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36414         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36415         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36416         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36417         * doc/posix-functions/fputws.texi (fputws): Likewise.
36418         * doc/posix-functions/fwide.texi (fwide): Likewise.
36419         * doc/posix-functions/getwc.texi (getwc): Likewise.
36420         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36421         * doc/posix-functions/putwc.texi (putwc): Likewise.
36422         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36423         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36424         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36425         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36426         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36427         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36428         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36429         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36430         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36431         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36432         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36433
36434 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36435
36436         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36437         * lib/ioctl.c: Include <sys/ioctl.h>.
36438
36439 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36440
36441         * modules/getdate-tests (Depends-on): Add progname.
36442         * tests/test-getdate.c: Use progname module, to avoid link errors
36443         on non-glibc systems.
36444
36445 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36446
36447         * modules/filenamecat-tests (Depends-on): Add progname.
36448         * modules/fstrcmp-tests (Depends-on): Likewise.
36449
36450         * tests/test-filenamecat.c: Use progname module, to avoid link
36451         errors on non-glibc systems.
36452         * tests/test-fstrcmp.c: Likewise.
36453
36454 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36455
36456         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36457         * lib/gettimeofday.c: Move extern declaration out of function.
36458
36459 2009-01-18  Bruno Haible  <bruno@clisp.org>
36460
36461         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36462         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36463         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36464
36465 2009-01-18  Bruno Haible  <bruno@clisp.org>
36466
36467         * lib/strftime.c (MEMPCPY): Remove unused macro.
36468         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36469
36470 2009-01-18  Martin Lambers  <marlam@marlam.de>
36471
36472         New module 'link'.
36473         * lib/unistd.in.h (link): New declaration.
36474         * lib/link.c: New file.
36475         * m4/link.m4: New file.
36476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36477         HAVE_LINK.
36478         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36479         * modules/link: New file.
36480         * doc/posix-functions/link.texi: Mention the new module.
36481
36482 2009-01-18  Bruno Haible  <bruno@clisp.org>
36483
36484         * tests/test-avltree_list.c (main): Call set_program_name.
36485         * tests/test-avltree_oset.c (main): Likewise.
36486         * tests/test-obstack-printf.c: Include progname.h.
36487         (main): Call set_program_name.
36488         * tests/test-quotearg.c: Include progname.h.
36489         (main): Call set_program_name.
36490         * tests/test-xmemdup0.c: Include progname.h.
36491         (main): Call set_program_name.
36492
36493 2009-01-18  Bruno Haible  <bruno@clisp.org>
36494
36495         New module 'alphasort'.
36496         * lib/dirent.in.h (alphasort): New declaration.
36497         * lib/alphasort.c: New file, from glibc with modifications.
36498         * m4/alphasort.m4: New file.
36499         * modules/alphasort: New file.
36500         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36501         HAVE_ALPHASORT.
36502         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36503         HAVE_ALPHASORT.
36504         * doc/posix-functions/alphasort.texi: Mention the new module and the
36505         portability problems.
36506
36507 2009-01-18  Bruno Haible  <bruno@clisp.org>
36508
36509         New module 'scandir'.
36510         * lib/dirent.in.h (scandir): New declaration.
36511         * lib/scandir.c: New file, from glibc with modifications.
36512         * m4/scandir.m4: New file.
36513         * modules/scandir: New file.
36514         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36515         HAVE_SCANDIR.
36516         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36517         HAVE_SCANDIR.
36518         * doc/posix-functions/scandir.texi: Mention the new module and the
36519         portability problems.
36520
36521 2009-01-17  Bruno Haible  <bruno@clisp.org>
36522
36523         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36524         Update documentation.
36525         (func_remove_suffix): Escape all dots in the suffix. Update
36526         documentation.
36527         (func_filter_filelist): Update documentation.
36528         Reported by Ralf Wildenhues.
36529
36530 2009-01-17  Bruno Haible  <bruno@clisp.org>
36531
36532         * modules/dprintf-posix-tests: New file.
36533         * tests/test-dprintf-posix.sh: New file.
36534         * tests/test-dprintf-posix.c: New file.
36535
36536         New modules 'dprintf', 'dprintf-posix'.
36537         * lib/stdio.in.h (dprintf): New declaration.
36538         * lib/dprintf.c: New file.
36539         * m4/dprintf.m4: New file.
36540         * m4/dprintf-posix.m4: New file.
36541         * modules/dprintf: New file.
36542         * modules/dprintf-posix: New file.
36543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36544         HAVE_DPRINTF, REPLACE_DPRINTF.
36545         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36546         HAVE_DPRINTF, REPLACE_DPRINTF.
36547         * doc/posix-functions/dprintf.texi: Mention the new modules.
36548
36549 2009-01-17  Bruno Haible  <bruno@clisp.org>
36550
36551         * modules/vdprintf-posix-tests: New file.
36552         * tests/test-vdprintf-posix.sh: New file.
36553         * tests/test-vdprintf-posix.c: New file.
36554
36555         New modules 'vdprintf', 'vdprintf-posix'.
36556         * lib/stdio.in.h (vdprintf): New declaration.
36557         * lib/vdprintf.c: New file.
36558         * m4/vdprintf.m4: New file.
36559         * m4/vdprintf-posix.m4: New file.
36560         * modules/vdprintf: New file.
36561         * modules/vdprintf-posix: New file.
36562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36563         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36564         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36565         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36566         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36567
36568 2009-01-17  Bruno Haible  <bruno@clisp.org>
36569
36570         Fix replacement of fopen on mingw.
36571         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36572         mingw.
36573
36574 2009-01-17  Bruno Haible  <bruno@clisp.org>
36575
36576         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36577         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36578
36579 2009-01-17  Bruno Haible  <bruno@clisp.org>
36580
36581         Avoid test-fflush2.sh failure on mingw.
36582         * tests/test-fflush2.c: Include binary-io.h.
36583         (main): Put standard input into binary mode.
36584         * modules/fflush-tests (Depends-on): Add binary-io.
36585
36586 2009-01-17  Bruno Haible  <bruno@clisp.org>
36587
36588         * lib/wchar.in.h: In another particular situation, include only the
36589         system's <wchar.h> file.
36590         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36591         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36592         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36593
36594 2009-01-17  Bruno Haible  <bruno@clisp.org>
36595
36596         Support for stripping executables in --enable-relocatable.
36597         * build-aux/install-reloc: Expect one more argument, or an environment
36598         variable RELOC_STRIP_PROG. If set, strip the destination program and
36599         its wrapper.
36600         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36601         RELOC_STRIP_PROG.
36602         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36603         to set RELOCATABLE_STRIP.
36604         * NEWS: Mention the new Makefile requirement.
36605
36606 2009-01-17  Bruno Haible  <bruno@clisp.org>
36607
36608         * build-aux/install-reloc: Remove debugging information left over by
36609         C compiler on MacOS X.
36610
36611 2009-01-17  Bruno Haible  <bruno@clisp.org>
36612
36613         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36614         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36615         _NSGetExecutablePath.
36616
36617 2009-01-16  Jim Meyering  <meyering@redhat.com>
36618
36619         strerror: avoid warnings about discarding "const"
36620         * lib/strerror.c (rpl_strerror): Instead of returning a const
36621         string from each and every "case", use a variable, and add a single
36622         cast after the switch.
36623
36624 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36625
36626         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36627
36628 2009-01-16  Bruno Haible  <bruno@clisp.org>
36629
36630         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36631         array initializer syntax that also works in C++ mode.
36632         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36633
36634 2009-01-16  Jim Meyering  <meyering@redhat.com>
36635
36636         poll: suppress a warning
36637         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36638         to ignore "...unsigned expression < 0 is always false" warnings.
36639
36640 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36641
36642         poll: remove declarations of unused variables
36643         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36644         sockbuf and optlen.
36645
36646 2009-01-15  Bruno Haible  <bruno@clisp.org>
36647
36648         Make fflush-after-ungetc POSIX compliant on BSD systems.
36649         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36650         (clear_ungetc_buffer): Implement also for other systems.
36651         (rpl_fflush): On glibc systems, invoke
36652         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36653         clear_ungetc_buffer after fetching the stream's position, not before.
36654
36655 2009-01-15  Bruno Haible  <bruno@clisp.org>
36656
36657         Make fflush-after-ungetc POSIX compliant on glibc systems.
36658         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36659         after ungetc.
36660         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36661         (rpl_fflush): On glibc systems, simply call the system's fflush
36662         function after clearing the ungetc buffer.
36663         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36664         Instead, lseek only to the end of file, then use the system's fseeko
36665         for the rest. On glibc systems, reset the EOF indicator bit.
36666
36667 2009-01-15  Jim Meyering  <meyering@redhat.com>
36668
36669         openmp.m4: revert quote-adding change, for portability to older autoconf
36670         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36671         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36672         Simon Josefsson noticed the problem when using autoconf-2.61.
36673
36674 2009-01-15  Bruno Haible  <bruno@clisp.org>
36675
36676         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36677         * tests/test-fflush2.c (ASSERT): Always fail.
36678         (main): Add two tests for fflush() after ungetc(), taking into account
36679         the Austin Group's clarification.
36680         Suggested by Eric Blake.
36681
36682 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36683
36684         mktime.m4: remove K&R-style function prototypes
36685         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36686         for the Sun C++ compiler.
36687
36688 2009-01-14  Bruno Haible  <bruno@clisp.org>
36689
36690         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36691         while including <wchar.h>.
36692         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36693         the system's <wchar.h> file.
36694         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36695
36696 2009-01-14  Bruno Haible  <bruno@clisp.org>
36697
36698         * m4/csharp.m4: Don't mention gettext on the serial number line.
36699         * m4/csharpexec.m4: Likewise.
36700         * m4/eaccess.m4: Likewise.
36701         * m4/javaexec.m4: Likewise.
36702         * m4/sig_atomic_t.m4: Likewise.
36703         * m4/tmpdir.m4: Likewise.
36704         * m4/intldir.m4: Bump gettext version.
36705         * m4/lib-ld.m4: Likewise.
36706
36707 2009-01-14  Bruno Haible  <bruno@clisp.org>
36708
36709         * lib/progname.c (set_program_name): Add more comments.
36710         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36711
36712 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36713
36714         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36715         were sys/stat.h does not define it.
36716
36717 2009-01-14  Jim Meyering  <meyering@redhat.com>
36718
36719         many *.m4 files: improve m4 quoting
36720         99% of this change was performed by running the following commands:
36721         git ls-files | grep '\.m4$' | xargs perl -pi \
36722           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36723           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36724           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36725           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36726         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36727         The remainder were to add Copyright dates, increment serial numbers,
36728         undo some changes in comments, exclude m4/intl.m4, and add quotes
36729         around the "1" in ",1" where the unusual spacing prohibited the
36730         above regexps from doing the job.  For more details, see
36731         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36732         * m4/acl.m4: Modified.
36733         * m4/afs.m4: Likewise.
36734         * m4/alloca.m4: Likewise.
36735         * m4/argp.m4: Likewise.
36736         * m4/argz.m4: Likewise.
36737         * m4/atexit.m4: Likewise.
36738         * m4/bison-i18n.m4: Likewise.
36739         * m4/bison.m4: Likewise.
36740         * m4/byteswap.m4: Likewise.
36741         * m4/c-stack.m4: Likewise.
36742         * m4/c-strtod.m4: Likewise.
36743         * m4/calloc.m4: Likewise.
36744         * m4/canonicalize-lgpl.m4: Likewise.
36745         * m4/chown.m4: Likewise.
36746         * m4/clock_time.m4: Likewise.
36747         * m4/codeset.m4: Likewise.
36748         * m4/copy-file.m4: Likewise.
36749         * m4/csharp.m4: Likewise.
36750         * m4/csharpcomp.m4: Likewise.
36751         * m4/csharpexec.m4: Likewise.
36752         * m4/d-ino.m4: Likewise.
36753         * m4/d-type.m4: Likewise.
36754         * m4/dirfd.m4: Likewise.
36755         * m4/double-slash-root.m4: Likewise.
36756         * m4/eaccess.m4: Likewise.
36757         * m4/eealloc.m4: Likewise.
36758         * m4/environ.m4: Likewise.
36759         * m4/errno_h.m4: Likewise.
36760         * m4/euidaccess.m4: Likewise.
36761         * m4/execute.m4: Likewise.
36762         * m4/fatal-signal.m4: Likewise.
36763         * m4/fchdir.m4: Likewise.
36764         * m4/fcntl_h.m4: Likewise.
36765         * m4/fileblocks.m4: Likewise.
36766         * m4/filenamecat.m4: Likewise.
36767         * m4/findprog.m4: Likewise.
36768         * m4/flexmember.m4: Likewise.
36769         * m4/fnmatch.m4: Likewise.
36770         * m4/fopen.m4: Likewise.
36771         * m4/fpending.m4: Likewise.
36772         * m4/fprintf-posix.m4: Likewise.
36773         * m4/free.m4: Likewise.
36774         * m4/frexp.m4: Likewise.
36775         * m4/frexpl.m4: Likewise.
36776         * m4/fsusage.m4: Likewise.
36777         * m4/ftruncate.m4: Likewise.
36778         * m4/gc-camellia.m4: Likewise.
36779         * m4/gc-random.m4: Likewise.
36780         * m4/gc.m4: Likewise.
36781         * m4/getaddrinfo.m4: Likewise.
36782         * m4/getcwd-abort-bug.m4: Likewise.
36783         * m4/getcwd-path-max.m4: Likewise.
36784         * m4/getdate.m4: Likewise.
36785         * m4/getdomainname.m4: Likewise.
36786         * m4/getgroups.m4: Likewise.
36787         * m4/gethostname.m4: Likewise.
36788         * m4/gethrxtime.m4: Likewise.
36789         * m4/getline.m4: Likewise.
36790         * m4/getloadavg.m4: Likewise.
36791         * m4/getndelim2.m4: Likewise.
36792         * m4/getpass.m4: Likewise.
36793         * m4/gettext.m4: Likewise.
36794         * m4/gettime.m4: Likewise.
36795         * m4/gettimeofday.m4: Likewise.
36796         * m4/gnulib-common.m4: Likewise.
36797         * m4/group-member.m4: Likewise.
36798         * m4/host-os.m4: Likewise.
36799         * m4/iconv.m4: Likewise.
36800         * m4/iconv_open.m4: Likewise.
36801         * m4/inet_ntop.m4: Likewise.
36802         * m4/inet_pton.m4: Likewise.
36803         * m4/inline.m4: Likewise.
36804         * m4/intldir.m4: Likewise.
36805         * m4/intlmacosx.m4: Likewise.
36806         * m4/intmax.m4: Likewise.
36807         * m4/intmax_t.m4: Likewise.
36808         * m4/inttypes.m4: Likewise.
36809         * m4/inttypes_h.m4: Likewise.
36810         * m4/inttypes-pri.m4: Likewise.
36811         * m4/isapipe.m4: Likewise.
36812         * m4/isnand.m4: Likewise.
36813         * m4/isnanf.m4: Likewise.
36814         * m4/isnanl.m4: Likewise.
36815         * m4/javacomp.m4: Likewise.
36816         * m4/javaexec.m4: Likewise.
36817         * m4/jm-winsz1.m4: Likewise.
36818         * m4/jm-winsz2.m4: Likewise.
36819         * m4/lchown.m4: Likewise.
36820         * m4/lcmessage.m4: Likewise.
36821         * m4/ldexpl.m4: Likewise.
36822         * m4/lib-ld.m4: Likewise.
36823         * m4/lib-link.m4: Likewise.
36824         * m4/libsigsegv.m4: Likewise.
36825         * m4/link-follow.m4: Likewise.
36826         * m4/localcharset.m4: Likewise.
36827         * m4/locale-fr.m4: Likewise.
36828         * m4/locale-ja.m4: Likewise.
36829         * m4/locale-tr.m4: Likewise.
36830         * m4/locale-zh.m4: Likewise.
36831         * m4/lock.m4: Likewise.
36832         * m4/longlong.m4: Likewise.
36833         * m4/ls-mntd-fs.m4: Likewise.
36834         * m4/lstat.m4: Likewise.
36835         * m4/malloc.m4: Likewise.
36836         * m4/mathl.m4: Likewise.
36837         * m4/mbrtowc.m4: Likewise.
36838         * m4/mbstate_t.m4: Likewise.
36839         * m4/mbswidth.m4: Likewise.
36840         * m4/memchr.m4: Likewise.
36841         * m4/memcmp.m4: Likewise.
36842         * m4/memcpy.m4: Likewise.
36843         * m4/memmem.m4: Likewise.
36844         * m4/memmove.m4: Likewise.
36845         * m4/mempcpy.m4: Likewise.
36846         * m4/memrchr.m4: Likewise.
36847         * m4/memset.m4: Likewise.
36848         * m4/minmax.m4: Likewise.
36849         * m4/mkdir-slash.m4: Likewise.
36850         * m4/mkdtemp.m4: Likewise.
36851         * m4/mktime.m4: Likewise.
36852         * m4/mmap-anon.m4: Likewise.
36853         * m4/mountlist.m4: Likewise.
36854         * m4/nanosleep.m4: Likewise.
36855         * m4/nls.m4: Likewise.
36856         * m4/nocrash.m4: Likewise.
36857         * m4/open.m4: Likewise.
36858         * m4/openat.m4: Likewise.
36859         * m4/openmp.m4: Likewise.
36860         * m4/pathmax.m4: Likewise.
36861         * m4/perl.m4: Likewise.
36862         * m4/physmem.m4: Likewise.
36863         * m4/pipe.m4: Likewise.
36864         * m4/po.m4: Likewise.
36865         * m4/poll.m4: Likewise.
36866         * m4/posixtm.m4: Likewise.
36867         * m4/posixver.m4: Likewise.
36868         * m4/printf-frexp.m4: Likewise.
36869         * m4/printf-frexpl.m4: Likewise.
36870         * m4/printf-posix.m4: Likewise.
36871         * m4/printf-posix-rpl.m4: Likewise.
36872         * m4/printf.m4: Likewise.
36873         * m4/progtest.m4: Likewise.
36874         * m4/putenv.m4: Likewise.
36875         * m4/readline.m4: Likewise.
36876         * m4/readlink.m4: Likewise.
36877         * m4/readutmp.m4: Likewise.
36878         * m4/realloc.m4: Likewise.
36879         * m4/regex.m4: Likewise.
36880         * m4/relocatable.m4: Likewise.
36881         * m4/relocatable-lib.m4: Likewise.
36882         * m4/rename-dest-slash.m4: Likewise.
36883         * m4/rename.m4: Likewise.
36884         * m4/rmdir-errno.m4: Likewise.
36885         * m4/rmdir.m4: Likewise.
36886         * m4/roundf.m4: Likewise.
36887         * m4/roundl.m4: Likewise.
36888         * m4/rpmatch.m4: Likewise.
36889         * m4/save-cwd.m4: Likewise.
36890         * m4/selinux-selinux-h.m4: Likewise.
36891         * m4/setenv.m4: Likewise.
36892         * m4/settime.m4: Likewise.
36893         * m4/sig2str.m4: Likewise.
36894         * m4/sig_atomic_t.m4: Likewise.
36895         * m4/signalblocking.m4: Likewise.
36896         * m4/signbit.m4: Likewise.
36897         * m4/sigpipe.m4: Likewise.
36898         * m4/sockets.m4: Likewise.
36899         * m4/sockpfaf.m4: Likewise.
36900         * m4/st_dm_mode.m4: Likewise.
36901         * m4/stat-time.m4: Likewise.
36902         * m4/stdbool.m4: Likewise.
36903         * m4/stdint.m4: Likewise.
36904         * m4/stdint_h.m4: Likewise.
36905         * m4/stpcpy.m4: Likewise.
36906         * m4/stpncpy.m4: Likewise.
36907         * m4/strcase.m4: Likewise.
36908         * m4/strchrnul.m4: Likewise.
36909         * m4/strcspn.m4: Likewise.
36910         * m4/strdup.m4: Likewise.
36911         * m4/strftime.m4: Likewise.
36912         * m4/strndup.m4: Likewise.
36913         * m4/strnlen.m4: Likewise.
36914         * m4/strpbrk.m4: Likewise.
36915         * m4/strptime.m4: Likewise.
36916         * m4/strsep.m4: Likewise.
36917         * m4/strtod.m4: Likewise.
36918         * m4/strtoimax.m4: Likewise.
36919         * m4/strtok_r.m4: Likewise.
36920         * m4/strtol.m4: Likewise.
36921         * m4/strtoll.m4: Likewise.
36922         * m4/strtoul.m4: Likewise.
36923         * m4/strtoull.m4: Likewise.
36924         * m4/strtoumax.m4: Likewise.
36925         * m4/strverscmp.m4: Likewise.
36926         * m4/threadlib.m4: Likewise.
36927         * m4/timegm.m4: Likewise.
36928         * m4/tm_gmtoff.m4: Likewise.
36929         * m4/tmpdir.m4: Likewise.
36930         * m4/tmpfile.m4: Likewise.
36931         * m4/tzset.m4: Likewise.
36932         * m4/uintmax_t.m4: Likewise.
36933         * m4/unlinkdir.m4: Likewise.
36934         * m4/unlocked-io.m4: Likewise.
36935         * m4/uptime.m4: Likewise.
36936         * m4/userspec.m4: Likewise.
36937         * m4/utimbuf.m4: Likewise.
36938         * m4/utime.m4: Likewise.
36939         * m4/utimes-null.m4: Likewise.
36940         * m4/utimes.m4: Likewise.
36941         * m4/vararrays.m4: Likewise.
36942         * m4/vasnprintf.m4: Likewise.
36943         * m4/vfprintf-posix.m4: Likewise.
36944         * m4/vprintf-posix.m4: Likewise.
36945         * m4/wait-process.m4: Likewise.
36946         * m4/wchar_t.m4: Likewise.
36947         * m4/wint_t.m4: Likewise.
36948         * m4/write-any-file.m4: Likewise.
36949         * m4/yield.m4: Likewise.
36950
36951 2009-01-13  Bruno Haible  <bruno@clisp.org>
36952
36953         Avoid test-copy-file.sh failures when ACL support insufficient.
36954         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
36955         TESTS_ENVIRONMENT.
36956         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
36957         Reported by Jim Meyering.
36958
36959 2009-01-13  Bruno Haible  <bruno@clisp.org>
36960
36961         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
36962         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
36963         * modules/unistdio/u8-printf-parse (Files): Likewise.
36964         * modules/unistdio/u32-printf-parse (Files): Likewise.
36965         * modules/unistdio/ulc-printf-parse (Files): Likewise.
36966
36967 2009-01-13  Simon Josefsson  <simon@josefsson.org>
36968
36969         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
36970         and m4/inttypes_h.m4 too.
36971
36972 2009-01-12  Eric Blake  <ebb9@byu.net>
36973
36974         tests: IRIX 6.2 cc can't compile -0.0 into .data
36975         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
36976         rather than at compile-time.
36977         * tests/test-floorl.c (minus_zero): Likewise.
36978         * tests/test-frexpl.c (minus_zero): Likewise.
36979         * tests/test-isnan.c (minus_zerol): Likewise.
36980         * tests/test-isnanl.h (minus_zero): Likewise.
36981         * tests/test-ldexpl.c (minus_zero): Likewise.
36982         * tests/test-roundl.c (minus_zero): Likewise.
36983         * tests/test-signbit.c (minus_zerol): Likewise.
36984         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36985         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36986         * tests/test-truncl.c (minus_zero): Likewise.
36987         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36988         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36989         Reported by Tom G. Christensen and Nelson H. F. Beebe.
36990
36991 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36992
36993         regex: fix glibc bug 9697
36994         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
36995         handling.
36996
36997 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36998
36999         regex: fix glibc bug 697
37000         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
37001         being NULL also if there are no backreferences.
37002
37003 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37004
37005         regex: merge glibc changes
37006         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
37007         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
37008         re_string_skip_chars, re_string_reconstruct): Likewise.
37009         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
37010
37011 2009-01-07  Jim Meyering  <meyering@redhat.com>
37012
37013         poll: filter through cppi
37014         * lib/poll.c: Indent cpp directives to reflect nesting.
37015
37016 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
37017
37018         poll: don't return uninitialized
37019         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
37020
37021 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
37022
37023         avoid compile failure on AIX 6.1
37024         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37025         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37026
37027 2009-01-04  Jim Meyering  <meyering@redhat.com>
37028
37029         remove duplicate inclusion of <stdio.h>
37030         * tests/test-fprintf-posix.c: Likewise.
37031         * tests/test-printf-posix.c: Likewise.
37032         * tests/test-snprintf-posix.c: Likewise.
37033         * tests/test-sprintf-posix.c: Likewise.
37034         * tests/test-vasprintf-posix.c: Likewise.
37035         * tests/test-vfprintf-posix.c: Likewise.
37036         * tests/test-vprintf-posix.c: Likewise.
37037         * tests/test-vsnprintf-posix.c: Likewise.
37038         * tests/test-vsprintf-posix.c: Likewise.
37039
37040 2009-01-03  Jim Meyering  <meyering@redhat.com>
37041
37042         gnulib-tool: fix sed-based filtering
37043         * gnulib-tool (func_filter_filelist): Remove extra backslash
37044         in sed_fff_filter definition.
37045
37046 2009-01-02  Jim Meyering  <meyering@redhat.com>
37047
37048         strftime: avoid compilation failure on Solaris 2.6
37049         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
37050         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
37051         Don't #define mbrlen or mbsinit, since now they're guaranteed to
37052         be available.  Reported by Tom G. Christensen.  Details in
37053         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
37054
37055 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37056             Bruno Haible  <bruno@clisp.org>
37057
37058         Speed up gnulib-tool by doing more string processing through shell
37059         built-ins.
37060         * gnulib-tool (fast_func_append): New variable.
37061         (func_remove_prefix, func_remove_suffix): New functions.
37062         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
37063         (func_filter_filelist): New function.
37064         (func_get_dependencies): Use func_remove_suffix instead of sed.
37065         (func_get_automake_snippet): Use func_filter_filelist instead of a
37066         subshell and sed invocation.
37067
37068 2009-01-01  Bruno Haible  <bruno@clisp.org>
37069
37070         Fix a security bug.
37071         * gnulib-tool (func_import, import, update): Don't allow the characters
37072         '"', '$', '`', '\' in macro arguments that become part of commands that
37073         are evaluated.
37074
37075 2009-01-01  Bruno Haible  <bruno@clisp.org>
37076
37077         * gnulib-tool (func_reset_sigpipe): Add more comments.
37078
37079 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37080
37081         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
37082         func_emit_tests_Makefile_am, func_import): Abort loops early if we
37083         already know the answer.
37084
37085 2009-01-01  Jim Meyering  <meyering@redhat.com>
37086
37087         * lib/version-etc.c (version_etc_va): Update copyright year.
37088
37089 2008-12-30  Bruno Haible  <bruno@clisp.org>
37090
37091         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
37092         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
37093         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
37094
37095 2008-12-29  Eric Blake  <ebb9@byu.net>
37096
37097         multiarch: avoid autoconf AC_REQUIRE bug
37098         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
37099         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
37100         2.63 and older.
37101         Reported by Bruno Haible, and analyzed in
37102         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
37103
37104 2008-12-29  Bruno Haible  <bruno@clisp.org>
37105
37106         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
37107         files in subdirectories correctly.
37108         Reported by Ralf Wildenhues.
37109
37110 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37111
37112         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
37113         rather than 'join FILE -', for Solaris join.
37114
37115 2008-12-29  Bruno Haible  <bruno@clisp.org>
37116
37117         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
37118         quoting.
37119         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37120         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37121         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37122         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
37123         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37124         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
37125         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
37126         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
37127         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37128         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
37129         * m4/nls.m4 (AM_NLS): Likewise.
37130         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
37131         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
37132         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37133         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
37134         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
37135         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
37136         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
37137         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
37138         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
37139         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37140         * m4/xsize.m4 (gl_XSIZE): Likewise.
37141         Suggested by Jim Meyering.
37142
37143 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37144
37145         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
37146         * lib/parse-duration.c: use a switch instead of cascading if's.
37147
37148 2008-12-29  Eric Blake  <ebb9@byu.net>
37149
37150         wchar.h: supply WEOF on Irix 5.3
37151         * lib/wchar.in.h (wint_t): Also supply WEOF.
37152         * lib/wctype.in.h (wint_t): Likewise.
37153         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
37154         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
37155         Reported by Tom G. Christensen.
37156
37157 2008-12-26  Bruno Haible  <bruno@clisp.org>
37158
37159         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
37160         i486, i586, i686.
37161
37162 2008-12-26  Bruno Haible  <bruno@clisp.org>
37163
37164         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
37165
37166 2008-12-26  Bruno Haible  <bruno@clisp.org>
37167
37168         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
37169         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
37170         not __STDC_CONSTANT_MACROS.
37171         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37172
37173 2008-12-25  Bruno Haible  <bruno@clisp.org>
37174
37175         Add support for universal builds to vasnprintf.
37176         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
37177         universal builds, guess no.
37178         * modules/vasnprintf-posix (Depends-on): Add multiarch.
37179         * modules/vasprintf-posix (Depends-on): Likewise.
37180         * modules/fprintf-posix (Depends-on): Likewise.
37181         * modules/vfprintf-posix (Depends-on): Likewise.
37182         * modules/snprintf-posix (Depends-on): Likewise.
37183         * modules/vsnprintf-posix (Depends-on): Likewise.
37184         * modules/sprintf-posix (Depends-on): Likewise.
37185         * modules/vsprintf-posix (Depends-on): Likewise.
37186         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37187         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37188         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37189         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37190         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37191         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37192         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37193
37194         Add support for universal builds to <inttypes.h>.
37195         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
37196         _SCNu64_PREFIX): In Apple
37197         universal builds, define directly, using _LP64.
37198         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
37199         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
37200         * modules/inttypes (Depends-on): Add multiarch.
37201         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37202
37203         Add support for universal builds to <stdint.h>.
37204         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
37205         universal builds, define directly, using _LP64.
37206         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37207         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37208         and size_t.
37209         * modules/stdint (Depends-on): Add multiarch.
37210         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37211
37212         New module 'multiarch'.
37213         * modules/multiarch: New file.
37214         * m4/multiarch.m4: New file.
37215
37216 2008-12-25  Bruno Haible  <bruno@clisp.org>
37217
37218         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37219
37220 2008-12-25  Bruno Haible  <bruno@clisp.org>
37221
37222         * modules/btowc (License): Relicense under LGPLv2+.
37223         * modules/mbsinit (License): Likewise.
37224         * modules/mbrtowc (License): Likewise.
37225         * modules/wcrtomb (License): Likewise.
37226         * modules/streq (License): Likewise.
37227         Reported by David Lutterkort <lutter@redhat.com>.
37228
37229 2008-12-23  Bruno Haible  <bruno@clisp.org>
37230
37231         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37232
37233 2008-12-23  Bruno Haible  <bruno@clisp.org>
37234
37235         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37236         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37237         GETADDRINFO_LIB, not in LIBS.
37238         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37239         * modules/canon-host (Link): Likewise.
37240         * NEWS: Mention the change.
37241         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37242         GETADDRINFO_LIB.
37243
37244 2008-12-22  Bruno Haible  <bruno@clisp.org>
37245
37246         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37247         * doc/posix-functions/iswalpha_l.texi: Likewise.
37248         * doc/posix-functions/iswblank_l.texi: Likewise.
37249         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37250         * doc/posix-functions/iswctype_l.texi: Likewise.
37251         * doc/posix-functions/iswdigit_l.texi: Likewise.
37252         * doc/posix-functions/iswgraph_l.texi: Likewise.
37253         * doc/posix-functions/iswlower_l.texi: Likewise.
37254         * doc/posix-functions/iswprint_l.texi: Likewise.
37255         * doc/posix-functions/iswpunct_l.texi: Likewise.
37256         * doc/posix-functions/iswspace_l.texi: Likewise.
37257         * doc/posix-functions/iswupper_l.texi: Likewise.
37258         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37259         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37260         * doc/posix-functions/open_wmemstream.texi: Likewise.
37261         * doc/posix-functions/swscanf.texi: Likewise.
37262         * doc/posix-functions/towctrans_l.texi: Likewise.
37263         * doc/posix-functions/towlower.texi: Likewise.
37264         * doc/posix-functions/towlower_l.texi: Likewise.
37265         * doc/posix-functions/towupper.texi: Likewise.
37266         * doc/posix-functions/towupper_l.texi: Likewise.
37267         * doc/posix-functions/vfwprintf.texi: Likewise.
37268         * doc/posix-functions/vfwscanf.texi: Likewise.
37269         * doc/posix-functions/vswscanf.texi: Likewise.
37270         * doc/posix-functions/vwprintf.texi: Likewise.
37271         * doc/posix-functions/vwscanf.texi: Likewise.
37272         * doc/posix-functions/wcpcpy.texi: Likewise.
37273         * doc/posix-functions/wcpncpy.texi: Likewise.
37274         * doc/posix-functions/wcscasecmp.texi: Likewise.
37275         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37276         * doc/posix-functions/wcscoll_l.texi: Likewise.
37277         * doc/posix-functions/wcsdup.texi: Likewise.
37278         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37279         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37280         * doc/posix-functions/wcsnlen.texi: Likewise.
37281         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37282         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37283         * doc/posix-functions/wctrans_l.texi: Likewise.
37284         * doc/posix-functions/wctype_l.texi: Likewise.
37285         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37286         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37287         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37288         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37289         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37290         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37291         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37292         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37293         * doc/glibc-functions/wcschrnul.texi: Likewise.
37294         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37295         * doc/glibc-functions/wcstod_l.texi: Likewise.
37296         * doc/glibc-functions/wcstof_l.texi: Likewise.
37297         * doc/glibc-functions/wcstol_l.texi: Likewise.
37298         * doc/glibc-functions/wcstold_l.texi: Likewise.
37299         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37300         * doc/glibc-functions/wcstoq.texi: Likewise.
37301         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37302         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37303         * doc/glibc-functions/wcstouq.texi: Likewise.
37304         * doc/glibc-functions/wmempcpy.texi: Likewise.
37305
37306 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37307             Eric Blake  <ebb9@byu.net>
37308             Paolo Bonzini  <bonzini@gnu.org>
37309             Bruno Haible  <bruno@clisp.org>
37310
37311         Make c-stack work on Haiku.
37312         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37313         (c_stack_action): Use SA_ONSTACK flag.
37314
37315 2008-12-22  Bruno Haible  <bruno@clisp.org>
37316
37317         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37318
37319 2008-12-22  Bruno Haible  <bruno@clisp.org>
37320
37321         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37322         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37323         being overridden.
37324         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37325         New macros.
37326         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37327         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37328         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37329         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37330
37331 2008-12-22  Bruno Haible  <bruno@clisp.org>
37332
37333         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37334         from test code.
37335
37336 2008-12-22  Eric Blake  <ebb9@byu.net>
37337
37338         Avoid gcc warnings on cygwin.
37339         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37340         Avoid unused variable.
37341         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37342         Likewise.
37343
37344 2008-12-22  Bruno Haible  <bruno@clisp.org>
37345
37346         Remove HAVE_MBRTOWC conditionals.
37347         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37348         (mbscasecmp): Assume mbrtowc function.
37349         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37350         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37351         * lib/mbschr.c: Include mbuiter.h unconditionally.
37352         (mbschr): Assume mbrtowc function.
37353         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37354         (mbscspn): Assume mbrtowc function.
37355         * lib/mbslen.c: Include mbuiter.h unconditionally.
37356         (mbslen): Assume mbrtowc function.
37357         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37358         (mbsncasecmp): Assume mbrtowc function.
37359         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37360         (mbsnlen): Assume mbrtowc function.
37361         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37362         (mbspbrk): Assume mbrtowc function.
37363         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37364         (mbspcasecmp): Assume mbrtowc function.
37365         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37366         (mbsrchr): Assume mbrtowc function.
37367         * lib/mbssep.c: Include mbuiter.h unconditionally.
37368         (mbssep): Assume mbrtowc function.
37369         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37370         (mbsspn): Assume mbrtowc function.
37371         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37372         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37373         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37374         (mbstok_r): Assume mbrtowc function.
37375         * lib/propername.c: Include mbuiter.h unconditionally.
37376         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37377         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37378         (trim2): Assume mbrtowc function.
37379         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37380         (mbsnwidth): Assume mbrtowc function.
37381         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37382         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37383         fallback definitions.
37384         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37385
37386 2008-12-22  Bruno Haible  <bruno@clisp.org>
37387
37388         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37389
37390 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37391
37392         * modules/regex: Request emulations for the mb*/wc* functions we need.
37393         * m4/regex.m4: Don't look for those functions here.
37394         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37395
37396 2008-12-22  Bruno Haible  <bruno@clisp.org>
37397
37398         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37399
37400 2008-12-21  Bruno Haible  <bruno@clisp.org>
37401
37402         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37403         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37404         (Include): Remove conditionalization.
37405         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37406         (Include): Remove conditionalization.
37407         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37408         (Include): Remove conditionalization.
37409         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37410         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37411         * NEWS: Mention the change.
37412         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37413         via Sergey Poznyakoff <gray@gnu.org.ua>.
37414
37415 2008-12-21  Bruno Haible  <bruno@clisp.org>
37416
37417         * MODULES.html.sh (Extended multibyte and wide character utilities
37418         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37419         wcrtomb, wcsrtombs.
37420         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37421         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37422         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37423         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37424
37425 2008-12-21  Bruno Haible  <bruno@clisp.org>
37426
37427         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37428
37429 2008-12-21  Bruno Haible  <bruno@clisp.org>
37430
37431         * modules/wcsnrtombs-tests: New file.
37432         * tests/test-wcsnrtombs1.sh: New file.
37433         * tests/test-wcsnrtombs2.sh: New file.
37434         * tests/test-wcsnrtombs3.sh: New file.
37435         * tests/test-wcsnrtombs4.sh: New file.
37436         * tests/test-wcsnrtombs.c: New file.
37437
37438         New module 'wcsnrtombs'.
37439         * lib/wchar.in.h (wcsnrtombs): New declaration.
37440         * lib/wcsnrtombs.c: New file.
37441         * lib/wcsrtombs-state.c: New file.
37442         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37443         (internal_state): Remove variable.
37444         * m4/wcsnrtombs.m4: New file.
37445         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37446         compilation units.
37447         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37448         HAVE_WCSNRTOMBS.
37449         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37450         HAVE_WCSNRTOMBS.
37451         * modules/wcsnrtombs: New file.
37452         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37453         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37454
37455 2008-12-21  Bruno Haible  <bruno@clisp.org>
37456
37457         * modules/wcsrtombs-tests: New file.
37458         * tests/test-wcsrtombs1.sh: New file.
37459         * tests/test-wcsrtombs2.sh: New file.
37460         * tests/test-wcsrtombs3.sh: New file.
37461         * tests/test-wcsrtombs4.sh: New file.
37462         * tests/test-wcsrtombs.c: New file.
37463
37464         New module 'wcsrtombs'.
37465         * lib/wchar.in.h (wcsrtombs): New declaration.
37466         * lib/wcsrtombs.c: New file.
37467         * m4/wcsrtombs.m4: New file.
37468         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37469         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37470         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37471         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37472         * modules/wcsrtombs: New file.
37473         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37474         bugs.
37475
37476 2008-12-21  Bruno Haible  <bruno@clisp.org>
37477
37478         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37479         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37480         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37481         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37482         if not correct.
37483         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37484         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37485         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37486         m4/locale-zh.m4, m4/codeset.m4.
37487         * doc/posix-functions/wcrtomb.texi: Document the bug.
37488
37489 2008-12-21  Bruno Haible  <bruno@clisp.org>
37490
37491         Work around a btowc() bug on IRIX 6.5.
37492         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37493         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37494         REPLACE_WTOBC if not.
37495         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37496         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37497         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37498
37499 2008-12-21  Bruno Haible  <bruno@clisp.org>
37500
37501         * modules/wcrtomb-tests: New file.
37502         * tests/test-wcrtomb.sh: New file.
37503         * tests/test-wcrtomb.c: New file.
37504
37505         New module 'wcrtomb'.
37506         * lib/wchar.in.h (wcrtomb): New declaration.
37507         * lib/wcrtomb.c: New file.
37508         * m4/wcrtomb.m4: New file.
37509         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37510         HAVE_WCRTOMB.
37511         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37512         HAVE_WCRTOMB.
37513         * modules/wcrtomb: New file.
37514         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37515
37516 2008-12-21  Bruno Haible  <bruno@clisp.org>
37517
37518         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37519         * modules/mbsrtowcs (Files): Likewise.
37520         * modules/wctob (Files): Likewise.
37521         * modules/c-strcase-tests (Files): Likewise.
37522         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37523         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37524         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37525         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37526         * modules/vasnprintf-posix-tests (Files): Likewise.
37527
37528 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37529
37530         gitlog-to-changelog: pass all command-line arguments to git-log
37531         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37532         it is sometimes convenient to filter the commits in various ways.
37533         gitlog-to-changelog only allows --since to specify a start date,
37534         but git-log itself supports many other filtering mechanisms.
37535         At the moment, I want to filter by branch name.  Rather than
37536         adding a --branch option to gitlog-to-changelog, it seems more
37537         flexible to simply pass all options directly to git-log and let
37538         git do the work.  Notice that this effectively makes --since a
37539         redundant option for gitlog-to-changelog, but removing it would
37540         require current usage to change since calls would then require
37541         an additional '--'.
37542
37543 2008-12-21  Bruno Haible  <bruno@clisp.org>
37544
37545         * modules/mbsnrtowcs-tests: New file.
37546         * tests/test-mbsnrtowcs1.sh: New file.
37547         * tests/test-mbsnrtowcs2.sh: New file.
37548         * tests/test-mbsnrtowcs3.sh: New file.
37549         * tests/test-mbsnrtowcs4.sh: New file.
37550         * tests/test-mbsnrtowcs.c: New file.
37551
37552         New module 'mbsnrtowcs'.
37553         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37554         * lib/mbsnrtowcs.c: New file.
37555         * lib/mbsrtowcs-state.c: New file.
37556         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37557         (internal_state): Remove variable.
37558         * m4/mbsnrtowcs.m4: New file.
37559         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37560         compilation units.
37561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37562         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37563         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37564         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37565         * modules/mbsnrtowcs: New file.
37566         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37567         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37568         portability problem.
37569
37570 2008-12-21  Bruno Haible  <bruno@clisp.org>
37571
37572         Work around mbsrtowcs bug.
37573         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37574         (gl_FUNC_MBSRTOWCS): Invoke it.
37575         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37576         m4/locale-zh.m4.
37577         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37578
37579 2008-12-21  Bruno Haible  <bruno@clisp.org>
37580
37581         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37582
37583 2008-12-21  Bruno Haible  <bruno@clisp.org>
37584
37585         Update doc for AIX.
37586         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37587         16-bit wchar_t type.
37588         * doc/posix-functions/btowc.texi: Likewise.
37589         * doc/posix-functions/fgetwc.texi: Likewise.
37590         * doc/posix-functions/fgetws.texi: Likewise.
37591         * doc/posix-functions/fputwc.texi: Likewise.
37592         * doc/posix-functions/fputws.texi: Likewise.
37593         * doc/posix-functions/fwide.texi: Likewise.
37594         * doc/posix-functions/fwprintf.texi: Likewise.
37595         * doc/posix-functions/fwscanf.texi: Likewise.
37596         * doc/posix-functions/getwchar.texi: Likewise.
37597         * doc/posix-functions/getwc.texi: Likewise.
37598         * doc/posix-functions/iswalnum.texi: Likewise.
37599         * doc/posix-functions/iswalpha.texi: Likewise.
37600         * doc/posix-functions/iswblank.texi: Likewise.
37601         * doc/posix-functions/iswcntrl.texi: Likewise.
37602         * doc/posix-functions/iswctype.texi: Likewise.
37603         * doc/posix-functions/iswdigit.texi: Likewise.
37604         * doc/posix-functions/iswgraph.texi: Likewise.
37605         * doc/posix-functions/iswlower.texi: Likewise.
37606         * doc/posix-functions/iswprint.texi: Likewise.
37607         * doc/posix-functions/iswpunct.texi: Likewise.
37608         * doc/posix-functions/iswspace.texi: Likewise.
37609         * doc/posix-functions/iswupper.texi: Likewise.
37610         * doc/posix-functions/iswxdigit.texi: Likewise.
37611         * doc/posix-functions/mbrtowc.texi: Likewise.
37612         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37613         * doc/posix-functions/mbstowcs.texi: Likewise.
37614         * doc/posix-functions/mbtowc.texi: Likewise.
37615         * doc/posix-functions/putwchar.texi: Likewise.
37616         * doc/posix-functions/putwc.texi: Likewise.
37617         * doc/posix-functions/swprintf.texi: Likewise.
37618         * doc/posix-functions/tolower.texi: Likewise.
37619         * doc/posix-functions/toupper.texi: Likewise.
37620         * doc/posix-functions/towctrans.texi: Likewise.
37621         * doc/posix-functions/ungetwc.texi: Likewise.
37622         * doc/posix-functions/vswprintf.texi: Likewise.
37623         * doc/posix-functions/wcrtomb.texi: Likewise.
37624         * doc/posix-functions/wcscat.texi: Likewise.
37625         * doc/posix-functions/wcschr.texi: Likewise.
37626         * doc/posix-functions/wcscmp.texi: Likewise.
37627         * doc/posix-functions/wcscoll.texi: Likewise.
37628         * doc/posix-functions/wcscpy.texi: Likewise.
37629         * doc/posix-functions/wcscspn.texi: Likewise.
37630         * doc/posix-functions/wcsftime.texi: Likewise.
37631         * doc/posix-functions/wcslen.texi: Likewise.
37632         * doc/posix-functions/wcsncat.texi: Likewise.
37633         * doc/posix-functions/wcsncmp.texi: Likewise.
37634         * doc/posix-functions/wcsncpy.texi: Likewise.
37635         * doc/posix-functions/wcspbrk.texi: Likewise.
37636         * doc/posix-functions/wcsrchr.texi: Likewise.
37637         * doc/posix-functions/wcsrtombs.texi: Likewise.
37638         * doc/posix-functions/wcsspn.texi: Likewise.
37639         * doc/posix-functions/wcsstr.texi: Likewise.
37640         * doc/posix-functions/wcstod.texi: Likewise.
37641         * doc/posix-functions/wcstof.texi: Likewise.
37642         * doc/posix-functions/wcstoimax.texi: Likewise.
37643         * doc/posix-functions/wcstok.texi: Likewise.
37644         * doc/posix-functions/wcstold.texi: Likewise.
37645         * doc/posix-functions/wcstoll.texi: Likewise.
37646         * doc/posix-functions/wcstol.texi: Likewise.
37647         * doc/posix-functions/wcstombs.texi: Likewise.
37648         * doc/posix-functions/wcstoull.texi: Likewise.
37649         * doc/posix-functions/wcstoul.texi: Likewise.
37650         * doc/posix-functions/wcstoumax.texi: Likewise.
37651         * doc/posix-functions/wcswidth.texi: Likewise.
37652         * doc/posix-functions/wcsxfrm.texi: Likewise.
37653         * doc/posix-functions/wctob.texi: Likewise.
37654         * doc/posix-functions/wctomb.texi: Likewise.
37655         * doc/posix-functions/wctrans.texi: Likewise.
37656         * doc/posix-functions/wctype.texi: Likewise.
37657         * doc/posix-functions/wcwidth.texi: Likewise.
37658         * doc/posix-functions/wmemchr.texi: Likewise.
37659         * doc/posix-functions/wmemcmp.texi: Likewise.
37660         * doc/posix-functions/wmemcpy.texi: Likewise.
37661         * doc/posix-functions/wmemmove.texi: Likewise.
37662         * doc/posix-functions/wmemset.texi: Likewise.
37663         * doc/posix-functions/wprintf.texi: Likewise.
37664         * doc/posix-functions/wscanf.texi: Likewise.
37665
37666 2008-12-21  Bruno Haible  <bruno@clisp.org>
37667
37668         Update doc for HP-UX 11.11.
37669         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37670         in HP-UX version 11.00, not in all versions of HP-UX 11.
37671         * doc/posix-functions/fwide.texi: Likewise.
37672         * doc/posix-functions/fwprintf.texi: Likewise.
37673         * doc/posix-functions/fwscanf.texi: Likewise.
37674         * doc/posix-functions/inet_ntop.texi: Likewise.
37675         * doc/posix-functions/inet_pton.texi: Likewise.
37676         * doc/posix-functions/mbrlen.texi: Likewise.
37677         * doc/posix-functions/mbrtowc.texi: Likewise.
37678         * doc/posix-functions/mbsinit.texi: Likewise.
37679         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37680         * doc/posix-functions/swprintf.texi: Likewise.
37681         * doc/posix-functions/swscanf.texi: Likewise.
37682         * doc/posix-functions/towctrans.texi: Likewise.
37683         * doc/posix-functions/vfwprintf.texi: Likewise.
37684         * doc/posix-functions/vswprintf.texi: Likewise.
37685         * doc/posix-functions/vwprintf.texi: Likewise.
37686         * doc/posix-functions/wcrtomb.texi: Likewise.
37687         * doc/posix-functions/wcsrtombs.texi: Likewise.
37688         * doc/posix-functions/wcsstr.texi: Likewise.
37689         * doc/posix-functions/wctob.texi: Likewise.
37690         * doc/posix-functions/wctrans.texi: Likewise.
37691         * doc/posix-functions/wmemchr.texi: Likewise.
37692         * doc/posix-functions/wmemcmp.texi: Likewise.
37693         * doc/posix-functions/wmemcpy.texi: Likewise.
37694         * doc/posix-functions/wmemmove.texi: Likewise.
37695         * doc/posix-functions/wmemset.texi: Likewise.
37696         * doc/posix-functions/wprintf.texi: Likewise.
37697         * doc/posix-functions/wscanf.texi: Likewise.
37698
37699 2008-12-21  Bruno Haible  <bruno@clisp.org>
37700
37701         Work around a portability problem.
37702         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37703         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37704
37705 2008-12-20  Bruno Haible  <bruno@clisp.org>
37706
37707         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37708         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37709         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37710         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37711         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37712
37713         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37714         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37715         set.
37716         (GNULIB_defined_mbstate_t): New macro.
37717         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37718         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37719         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37720         reuses the system's mbrtowc function but works around the bugs.
37721         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37722         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37723         macros.
37724         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37725         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37726         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37727         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37728         REPLACE_MBSINIT if mbsinit needs to be overridden.
37729         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37730         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37731         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37732         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37733         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37734         m4/locale-zh.m4.
37735         (Depends): Add mbsinit.
37736         * modules/mbsinit (Depends): Add mbrtowc.
37737         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37738
37739 2008-12-20  Bruno Haible  <bruno@clisp.org>
37740
37741         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37742         so that there are no conversion errors on AIX.
37743         * tests/test-mbsrtowcs.c (main): LIkewise.
37744
37745 2008-12-20  Bruno Haible  <bruno@clisp.org>
37746
37747         Work around wctob bug on Solaris <= 9.
37748         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37749         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37750         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37751         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37752         * modules/wctob (Files): Add m4/locale-fr.m4.
37753         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37754
37755 2008-12-20  Bruno Haible  <bruno@clisp.org>
37756
37757         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37758         /dev/null.
37759         * tests/test-select-in.sh: Likewise.
37760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37761
37762 2008-12-20  Bruno Haible  <bruno@clisp.org>
37763
37764         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37765         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37766         Cygwin 1.5.x.
37767
37768 2008-12-20  Bruno Haible  <bruno@clisp.org>
37769
37770         Ensure mbstate_t is defined on HP-UX 11.11.
37771         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37772         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37773         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37774         AC_USE_SYSTEM_EXTENSIONS.
37775         * modules/fnmatch (Depends-on): Add extensions.
37776         * modules/mbrlen (Depends-on): Likewise.
37777         * modules/mbrtowc (Depends-on): Likewise.
37778         * modules/mbsinit (Depends-on): Likewise.
37779         * modules/mbsrtowcs (Depends-on): Likewise.
37780         * modules/mbswidth (Depends-on): Likewise.
37781         * modules/quotearg (Depends-on): Likewise.
37782         * modules/strftime (Depends-on): Likewise.
37783
37784 2008-12-20  Bruno Haible  <bruno@clisp.org>
37785
37786         Ensure wctob is declared on IRIX 6.5.
37787         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
37788         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
37789         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
37790         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
37791         of HAVE_WCTOB.
37792         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
37793         HAVE_WCTOB.
37794         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
37795
37796 2008-12-19  Bruno Haible  <bruno@clisp.org>
37797
37798         * modules/mbsrtowcs-tests: New file.
37799         * tests/test-mbsrtowcs1.sh: New file.
37800         * tests/test-mbsrtowcs2.sh: New file.
37801         * tests/test-mbsrtowcs3.sh: New file.
37802         * tests/test-mbsrtowcs4.sh: New file.
37803         * tests/test-mbsrtowcs.c: New file.
37804
37805         New module 'mbsrtowcs'.
37806         * lib/wchar.in.h (mbsrtowcs): New declaration.
37807         * lib/mbsrtowcs.c: New file.
37808         * m4/mbsrtowcs.m4: New file.
37809         * modules/mbsrtowcs: New file.
37810         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
37811         HAVE_MBSRTOWCS.
37812         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
37813         HAVE_MBSRTOWCS.
37814         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
37815
37816 2008-12-19  Bruno Haible  <bruno@clisp.org>
37817
37818         New module 'mbrlen'.
37819         * lib/wchar.in.h (mbrlen): New declaration.
37820         * lib/mbrlen.c: New file.
37821         * m4/mbrlen.m4: New file.
37822         * modules/mbrlen: New file.
37823         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
37824         HAVE_MBRLEN.
37825         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
37826         HAVE_MBRLEN.
37827         * doc/posix-functions/mbrlen.texi: Document the new module.
37828
37829 2008-12-19  Bruno Haible  <bruno@clisp.org>
37830
37831         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
37832         * modules/mbrtowc (Depends-on): Add verify.
37833         Suggested by Paul Eggert.
37834
37835 2008-12-18  Bruno Haible  <bruno@clisp.org>
37836
37837         * modules/mbsinit-tests: New file.
37838         * tests/test-mbsinit.sh: New file.
37839         * tests/test-mbsinit.c: New file.
37840
37841 2008-12-18  Bruno Haible  <bruno@clisp.org>
37842
37843         * modules/mbrtowc-tests: New file.
37844         * tests/test-mbrtowc1.sh: New file.
37845         * tests/test-mbrtowc2.sh: New file.
37846         * tests/test-mbrtowc3.sh: New file.
37847         * tests/test-mbrtowc4.sh: New file.
37848         * tests/test-mbrtowc.c: New file.
37849
37850         New module 'mbrtowc'.
37851         * lib/wchar.in.h (mbstate_t): Override when the system does not have
37852         mbsinit and mbrtowc.
37853         (mbrtowc): New declaration.
37854         * lib/mbrtowc.c: New file.
37855         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
37856         * modules/mbrtowc: New file.
37857         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
37858         HAVE_MBRTOWC.
37859         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
37860         HAVE_MBRTOWC.
37861         * doc/posix-functions/mbrtowc.texi: Document the new module.
37862
37863 2008-12-18  Bruno Haible  <bruno@clisp.org>
37864
37865         New module 'wctob'.
37866         * lib/wchar.in.h (wctob): New declaration.
37867         * lib/wctob.c: New file.
37868         * m4/wctob.m4: New file.
37869         * modules/wctob: New file.
37870         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
37871         HAVE_WCTOB.
37872         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
37873         * doc/posix-functions/wctob.texi: Document the new module.
37874
37875 2008-12-18  Bruno Haible  <bruno@clisp.org>
37876
37877         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
37878         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
37879
37880 2008-12-18  Simon Josefsson  <simon@josefsson.org>
37881
37882         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
37883         G. Christensen" <tgc@jupiterrise.com>.
37884
37885         * lib/flock.c: Need to include errno.h.  Reported by "Tom
37886         G. Christensen" <tgc@jupiterrise.com>.
37887
37888         * lib/flock.c: Need to include string.h.  Reported by "Tom
37889         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
37890         <ebb9@byu.net>.
37891
37892 2008-12-18  Bruno Haible  <bruno@clisp.org>
37893
37894         * m4/locale-ja.m4: New file, from GNU gettext.
37895
37896 2008-12-17  Bruno Haible  <bruno@clisp.org>
37897
37898         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
37899         Suggested by Eric Blake.
37900
37901 2008-12-17  Bruno Haible  <bruno@clisp.org>
37902
37903         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
37904
37905 2008-12-17  Bruno Haible  <bruno@clisp.org>
37906
37907         * lib/mbsinit.c: Include verify.h. Verify an assumption.
37908         * modules/mbsinit (Depends-on): Add verify.
37909         Suggested by Paul Eggert.
37910
37911 2008-12-17  Bruno Haible  <bruno@clisp.org>
37912
37913         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
37914         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
37915         gl_FUNC_MBRTOWC.
37916         * m4/mbiter.m4 (gl_MBITER): LIkewise.
37917         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
37918         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
37919         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
37920         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
37921         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
37922         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
37923         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
37924         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
37925         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
37926         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
37927         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
37928         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
37929         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
37930         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
37931         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37932         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
37933         * modules/trim (configure.ac): Likewise.
37934
37935 2008-12-17  Bruno Haible  <bruno@clisp.org>
37936
37937         * modules/btowc-tests: New file.
37938         * tests/test-btowc1.sh: New file.
37939         * tests/test-btowc2.sh: New file.
37940         * tests/test-btowc.c: New file.
37941
37942         New module 'btowc'.
37943         * lib/wchar.in.h (btowc): New declaration.
37944         * lib/btowc.c: New file.
37945         * m4/btowc.m4: New file.
37946         * modules/btowc: New file.
37947         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
37948         HAVE_BTOWC.
37949         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
37950         * doc/posix-functions/btowc.texi: Document the new module.
37951
37952 2008-12-17  Bruno Haible  <bruno@clisp.org>
37953
37954         New module 'mbsinit'.
37955         * lib/wchar.in.h (mbsinit): New declaration.
37956         * lib/mbsinit.c: New file.
37957         * m4/mbsinit.m4: New file.
37958         * modules/mbsinit: New file.
37959         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
37960         HAVE_MBSINIT.
37961         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
37962         HAVE_MBSINIT.
37963         * doc/posix-functions/mbsinit.texi: Document the new module.
37964
37965 2008-12-16  Bruno Haible  <bruno@clisp.org>
37966
37967         * lib/unistd.in.h: Add comment.
37968         * tests/test-environ.c: Don't include <stdlib.h>.
37969
37970 2008-12-16  Bruno Haible  <bruno@clisp.org>
37971
37972         * lib/parse-duration.h (parse_duration): Document return value
37973         convention.
37974         * lib/parse-duration.c: Include specification header first. Add
37975         comments.
37976         (_): Remove macro.
37977         (parse_year_month_day, parse_hour_minute_second): Move side effects
37978         outside of strchr call.
37979         (parse_non_iso8601): Move side effects outside of isspace call.
37980         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
37981         call.
37982
37983 2008-12-16  Bruno Haible  <bruno@clisp.org>
37984
37985         * tests/test-parse-duration.sh: Produce no output when the test
37986         succeeds.
37987
37988 2008-12-16  Bruno Haible  <bruno@clisp.org>
37989
37990         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
37991         expressions.
37992
37993 2008-12-15  Bruno Haible  <bruno@clisp.org>
37994
37995         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
37996         * doc/glibc-functions/flistxattr.texi: Likewise.
37997         * doc/glibc-functions/fopencookie.texi: Likewise.
37998         * doc/glibc-functions/fremovexattr.texi: Likewise.
37999         * doc/glibc-functions/fsetxattr.texi: Likewise.
38000         * doc/glibc-functions/getxattr.texi: Likewise.
38001         * doc/glibc-functions/lgetxattr.texi: Likewise.
38002         * doc/glibc-functions/listxattr.texi: Likewise.
38003         * doc/glibc-functions/llistxattr.texi: Likewise.
38004         * doc/glibc-functions/lremovexattr.texi: Likewise.
38005         * doc/glibc-functions/lsetxattr.texi: Likewise.
38006         * doc/glibc-functions/removexattr.texi: Likewise.
38007         * doc/glibc-functions/setxattr.texi: Likewise.
38008         * doc/posix-functions/open_memstream.texi: Likewise.
38009
38010 2008-12-15  Eric Blake  <ebb9@byu.net>
38011
38012         Update doc for cygwin 1.7.
38013         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
38014         functions.
38015         * doc/posix-functions/fchmodat.texi: Likewise.
38016         * doc/posix-functions/fchownat.texi: Likewise.
38017         * doc/posix-functions/fdopendir.texi: Likewise.
38018         * doc/posix-functions/fmemopen.texi: Likewise.
38019         * doc/posix-functions/freeaddrinfo.texi: Likewise.
38020         * doc/posix-functions/fstatat.texi: Likewise.
38021         * doc/posix-functions/futimens.texi: Likewise.
38022         * doc/posix-functions/gai_strerror.texi: Likewise.
38023         * doc/posix-functions/getaddrinfo.texi: Likewise.
38024         * doc/posix-functions/getnameinfo.texi: Likewise.
38025         * doc/posix-functions/if_freenameindex.texi: Likewise.
38026         * doc/posix-functions/if_indextoname.texi: Likewise.
38027         * doc/posix-functions/if_nameindex.texi: Likewise.
38028         * doc/posix-functions/if_nametoindex.texi: Likewise.
38029         * doc/posix-functions/insque.texi: Likewise.
38030         * doc/posix-functions/linkat.texi: Likewise.
38031         * doc/posix-functions/llrint.texi: Likewise.
38032         * doc/posix-functions/llrintf.texi: Likewise.
38033         * doc/posix-functions/llrintl.texi: Likewise.
38034         * doc/posix-functions/lockf.texi: Likewise.
38035         * doc/posix-functions/lrintl.texi: Likewise.
38036         * doc/posix-functions/mkdirat.texi: Likewise.
38037         * doc/posix-functions/mkfifoat.texi: Likewise.
38038         * doc/posix-functions/mknodat.texi: Likewise.
38039         * doc/posix-functions/mq_close.texi: Likewise.
38040         * doc/posix-functions/mq_getattr.texi: Likewise.
38041         * doc/posix-functions/mq_notify.texi: Likewise.
38042         * doc/posix-functions/mq_open.texi: Likewise.
38043         * doc/posix-functions/mq_receive.texi: Likewise.
38044         * doc/posix-functions/mq_send.texi: Likewise.
38045         * doc/posix-functions/mq_setattr.texi: Likewise.
38046         * doc/posix-functions/mq_timedreceive.texi: Likewise.
38047         * doc/posix-functions/mq_timedsend.texi: Likewise.
38048         * doc/posix-functions/mq_unlink.texi: Likewise.
38049         * doc/posix-functions/open_memstream.texi: Likewise.
38050         * doc/posix-functions/openat.texi: Likewise.
38051         * doc/posix-functions/posix_fadvise.texi: Likewise.
38052         * doc/posix-functions/posix_fallocate.texi: Likewise.
38053         * doc/posix-functions/posix_madvise.texi: Likewise.
38054         * doc/posix-functions/posix_memalign.texi: Likewise.
38055         * doc/posix-functions/posix_openpt.texi: Likewise.
38056         * doc/posix-functions/readlinkat.texi: Likewise.
38057         * doc/posix-functions/remque.texi: Likewise.
38058         * doc/posix-functions/renameat.texi: Likewise.
38059         * doc/posix-functions/rintl.texi: Likewise.
38060         * doc/posix-functions/sem_unlink.texi: Likewise.
38061         * doc/posix-functions/shm_open.texi: Likewise.
38062         * doc/posix-functions/shm_unlink.texi: Likewise.
38063         * doc/posix-functions/signgam.texi: Likewise.
38064         * doc/posix-functions/sigset.texi: Likewise.
38065         * doc/posix-functions/stpcpy.texi: Likewise.
38066         * doc/posix-functions/stpncpy.texi: Likewise.
38067         * doc/posix-functions/strerror.texi: Likewise.
38068         * doc/posix-functions/strtod.texi: Likewise.
38069         * doc/posix-functions/symlinkat.texi: Likewise.
38070         * doc/posix-functions/unlinkat.texi: Likewise.
38071         * doc/posix-functions/utimensat.texi: Likewise.
38072         * doc/glibc-functions/bindresvport.texi: Likewise.
38073         * doc/glibc-functions/dn_expand.texi: Likewise.
38074         * doc/glibc-functions/exp10.texi: Likewise.
38075         * doc/glibc-functions/exp10f.texi: Likewise.
38076         * doc/glibc-functions/fgetxattr.texi: Likewise.
38077         * doc/glibc-functions/flistxattr.texi: Likewise.
38078         * doc/glibc-functions/fopencookie.texi: Likewise.
38079         * doc/glibc-functions/freeifaddrs.texi: Likewise.
38080         * doc/glibc-functions/fremovexattr.texi: Likewise.
38081         * doc/glibc-functions/fsetxattr.texi: Likewise.
38082         * doc/glibc-functions/getifaddrs.texi: Likewise.
38083         * doc/glibc-functions/getxattr.texi: Likewise.
38084         * doc/glibc-functions/lgetxattr.texi: Likewise.
38085         * doc/glibc-functions/listxattr.texi: Likewise.
38086         * doc/glibc-functions/llistxattr.texi: Likewise.
38087         * doc/glibc-functions/lremovexattr.texi: Likewise.
38088         * doc/glibc-functions/lsetxattr.texi: Likewise.
38089         * doc/glibc-functions/pow10.texi: Likewise.
38090         * doc/glibc-functions/pow10f.texi: Likewise.
38091         * doc/glibc-functions/rcmd_af.texi: Likewise.
38092         * doc/glibc-functions/removexattr.texi: Likewise.
38093         * doc/glibc-functions/res_init.texi: Likewise.
38094         * doc/glibc-functions/res_mkquery.texi: Likewise.
38095         * doc/glibc-functions/res_query.texi: Likewise.
38096         * doc/glibc-functions/res_querydomain.texi: Likewise.
38097         * doc/glibc-functions/res_send.texi: Likewise.
38098         * doc/glibc-functions/rresvport_af.texi: Likewise.
38099         * doc/glibc-functions/setxattr.texi: Likewise.
38100         * doc/glibc-functions/strcasestr.texi: Likewise.
38101
38102 2008-12-15  Bruno Haible  <bruno@clisp.org>
38103
38104         Fix compilation error on OSF/1 4.0.
38105         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
38106         <sys/time.h>, simply delegate to the system header.
38107         Reported by Daniel Richard G. <oss@teragram.com>.
38108
38109 2008-12-15  Bruno Haible  <bruno@clisp.org>
38110
38111         * doc/posix-functions/openat.texi: Mention the 'openat' module.
38112         * doc/posix-functions/fchmodat.texi: Likewise.
38113         * doc/posix-functions/fchownat.texi: Likewise.
38114         * doc/posix-functions/fdopendir.texi: Likewise.
38115         * doc/posix-functions/fstatat.texi: Likewise.
38116         * doc/posix-functions/mkdirat.texi: Likewise.
38117         * doc/posix-functions/unlinkat.texi: Likewise.
38118
38119 2008-12-14  Bruno Haible  <bruno@clisp.org>
38120
38121         Update doc for POSIX:2008.
38122         * doc/posix-functions/faccessat.texi: New file.
38123         * doc/posix-functions/fchmodat.texi: New file.
38124         * doc/posix-functions/fchownat.texi: New file.
38125         * doc/posix-functions/fdopendir.texi: New file.
38126         * doc/posix-functions/fstatat.texi: New file.
38127         * doc/posix-functions/futimens.texi: New file.
38128         * doc/posix-functions/linkat.texi: New file.
38129         * doc/posix-functions/mkdirat.texi: New file.
38130         * doc/posix-functions/mkfifoat.texi: New file.
38131         * doc/posix-functions/mknodat.texi: New file.
38132         * doc/posix-functions/open_wmemstream.texi: New file.
38133         * doc/posix-functions/openat.texi: New file.
38134         * doc/posix-functions/psiginfo.texi: New file.
38135         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
38136         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
38137         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
38138         * doc/posix-functions/readlinkat.texi: New file.
38139         * doc/posix-functions/renameat.texi: New file.
38140         * doc/posix-functions/strerror_l.texi: New file.
38141         * doc/posix-functions/symlinkat.texi: New file.
38142         * doc/posix-functions/unlinkat.texi: New file.
38143         * doc/posix-functions/utimensat.texi: New file.
38144         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38145
38146 2008-12-14  Bruno Haible  <bruno@clisp.org>
38147
38148         Update doc for POSIX:2008.
38149         * doc/posix-functions/alphasort.texi: Renamed from
38150         doc/glibc-functions/alphasort.texi.
38151         * doc/posix-functions/dirfd.texi: Renamed from
38152         doc/glibc-functions/dirfd.texi.
38153         * doc/posix-functions/dprintf.texi: Renamed from
38154         doc/glibc-functions/dprintf.texi.
38155         * doc/posix-functions/duplocale.texi: Renamed from
38156         doc/glibc-functions/duplocale.texi.
38157         * doc/posix-functions/fexecve.texi: Renamed from
38158         doc/glibc-functions/fexecve.texi.
38159         * doc/posix-functions/fmemopen.texi: Renamed from
38160         doc/glibc-functions/fmemopen.texi.
38161         * doc/posix-functions/freelocale.texi: Renamed from
38162         doc/glibc-functions/freelocale.texi.
38163         * doc/posix-functions/getdate_err.texi: Renamed from
38164         doc/glibc-functions/getdate_err.texi.
38165         * doc/posix-functions/isalnum_l.texi: Renamed from
38166         doc/glibc-functions/isalnum_l.texi.
38167         * doc/posix-functions/isalpha_l.texi: Renamed from
38168         doc/glibc-functions/isalpha_l.texi.
38169         * doc/posix-functions/isblank_l.texi: Renamed from
38170         doc/glibc-functions/isblank_l.texi.
38171         * doc/posix-functions/iscntrl_l.texi: Renamed from
38172         doc/glibc-functions/iscntrl_l.texi.
38173         * doc/posix-functions/isdigit_l.texi: Renamed from
38174         doc/glibc-functions/isdigit_l.texi.
38175         * doc/posix-functions/isgraph_l.texi: Renamed from
38176         doc/glibc-functions/isgraph_l.texi.
38177         * doc/posix-functions/islower_l.texi: Renamed from
38178         doc/glibc-functions/islower_l.texi.
38179         * doc/posix-functions/isprint_l.texi: Renamed from
38180         doc/glibc-functions/isprint_l.texi.
38181         * doc/posix-functions/ispunct_l.texi: Renamed from
38182         doc/glibc-functions/ispunct_l.texi.
38183         * doc/posix-functions/isspace_l.texi: Renamed from
38184         doc/glibc-functions/isspace_l.texi.
38185         * doc/posix-functions/isupper_l.texi: Renamed from
38186         doc/glibc-functions/isupper_l.texi.
38187         * doc/posix-functions/iswalnum_l.texi: Renamed from
38188         doc/glibc-functions/iswalnum_l.texi.
38189         * doc/posix-functions/iswalpha_l.texi: Renamed from
38190         doc/glibc-functions/iswalpha_l.texi.
38191         * doc/posix-functions/iswblank_l.texi: Renamed from
38192         doc/glibc-functions/iswblank_l.texi.
38193         * doc/posix-functions/iswcntrl_l.texi: Renamed from
38194         doc/glibc-functions/iswcntrl_l.texi.
38195         * doc/posix-functions/iswctype_l.texi: Renamed from
38196         doc/glibc-functions/iswctype_l.texi.
38197         * doc/posix-functions/iswdigit_l.texi: Renamed from
38198         doc/glibc-functions/iswdigit_l.texi.
38199         * doc/posix-functions/iswgraph_l.texi: Renamed from
38200         doc/glibc-functions/iswgraph_l.texi.
38201         * doc/posix-functions/iswlower_l.texi: Renamed from
38202         doc/glibc-functions/iswlower_l.texi.
38203         * doc/posix-functions/iswprint_l.texi: Renamed from
38204         doc/glibc-functions/iswprint_l.texi.
38205         * doc/posix-functions/iswpunct_l.texi: Renamed from
38206         doc/glibc-functions/iswpunct_l.texi.
38207         * doc/posix-functions/iswspace_l.texi: Renamed from
38208         doc/glibc-functions/iswspace_l.texi.
38209         * doc/posix-functions/iswupper_l.texi: Renamed from
38210         doc/glibc-functions/iswupper_l.texi.
38211         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38212         doc/glibc-functions/iswxdigit_l.texi.
38213         * doc/posix-functions/isxdigit_l.texi: Renamed from
38214         doc/glibc-functions/isxdigit_l.texi.
38215         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38216         doc/glibc-functions/mbsnrtowcs.texi.
38217         * doc/posix-functions/mkdtemp.texi: Renamed from
38218         doc/glibc-functions/mkdtemp.texi.
38219         * doc/posix-functions/newlocale.texi: Renamed from
38220         doc/glibc-functions/newlocale.texi.
38221         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38222         doc/glibc-functions/nl_langinfo_l.texi.
38223         * doc/posix-functions/open_memstream.texi: Renamed from
38224         doc/glibc-functions/open_memstream.texi.
38225         * doc/posix-functions/opterr.texi: Renamed from
38226         doc/glibc-functions/opterr.texi.
38227         * doc/posix-functions/optind.texi: Renamed from
38228         doc/glibc-functions/optind.texi.
38229         * doc/posix-functions/optopt.texi: Renamed from
38230         doc/glibc-functions/optopt.texi.
38231         * doc/posix-functions/psignal.texi: Renamed from
38232         doc/glibc-functions/psignal.texi.
38233         * doc/posix-functions/scandir.texi: Renamed from
38234         doc/glibc-functions/scandir.texi.
38235         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38236         doc/glibc-functions/sched_get_priority_min.texi.
38237         * doc/posix-functions/signgam.texi: Renamed from
38238         doc/glibc-functions/signgam.texi.
38239         * doc/posix-functions/stpcpy.texi: Renamed from
38240         doc/glibc-functions/stpcpy.texi.
38241         * doc/posix-functions/stpncpy.texi: Renamed from
38242         doc/glibc-functions/stpncpy.texi.
38243         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38244         doc/glibc-functions/strcasecmp_l.texi.
38245         * doc/posix-functions/strcoll_l.texi: Renamed from
38246         doc/glibc-functions/strcoll_l.texi.
38247         * doc/posix-functions/strfmon_l.texi: Renamed from
38248         doc/glibc-functions/strfmon_l.texi.
38249         * doc/posix-functions/strftime_l.texi: Renamed from
38250         doc/glibc-functions/strftime_l.texi.
38251         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38252         doc/glibc-functions/strncasecmp_l.texi.
38253         * doc/posix-functions/strndup.texi: Renamed from
38254         doc/glibc-functions/strndup.texi.
38255         * doc/posix-functions/strnlen.texi: Renamed from
38256         doc/glibc-functions/strnlen.texi.
38257         * doc/posix-functions/strsignal.texi: Renamed from
38258         doc/glibc-functions/strsignal.texi.
38259         * doc/posix-functions/strxfrm_l.texi: Renamed from
38260         doc/glibc-functions/strxfrm_l.texi.
38261         * doc/posix-functions/timer_gettime.texi: Renamed from
38262         doc/glibc-functions/timer_gettime.texi.
38263         * doc/posix-functions/tolower_l.texi: Renamed from
38264         doc/glibc-functions/tolower_l.texi.
38265         * doc/posix-functions/toupper_l.texi: Renamed from
38266         doc/glibc-functions/toupper_l.texi.
38267         * doc/posix-functions/towctrans_l.texi: Renamed from
38268         doc/glibc-functions/towctrans_l.texi.
38269         * doc/posix-functions/towlower_l.texi: Renamed from
38270         doc/glibc-functions/towlower_l.texi.
38271         * doc/posix-functions/towupper_l.texi: Renamed from
38272         doc/glibc-functions/towupper_l.texi.
38273         * doc/posix-functions/uselocale.texi: Renamed from
38274         doc/glibc-functions/uselocale.texi.
38275         * doc/posix-functions/vdprintf.texi: Renamed from
38276         doc/glibc-functions/vdprintf.texi.
38277         * doc/posix-functions/wcpcpy.texi:
38278         Renamed from doc/glibc-functions/wcpcpy.texi.
38279         * doc/posix-functions/wcpncpy.texi: Renamed from
38280         doc/glibc-functions/wcpncpy.texi.
38281         * doc/posix-functions/wcscasecmp.texi: Renamed from
38282         doc/glibc-functions/wcscasecmp.texi.
38283         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38284         doc/glibc-functions/wcscasecmp_l.texi.
38285         * doc/posix-functions/wcscoll_l.texi: Renamed from
38286         doc/glibc-functions/wcscoll_l.texi.
38287         * doc/posix-functions/wcsdup.texi: Renamed from
38288         doc/glibc-functions/wcsdup.texi.
38289         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38290         doc/glibc-functions/wcsncasecmp.texi.
38291         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38292         doc/glibc-functions/wcsncasecmp_l.texi.
38293         * doc/posix-functions/wcsnlen.texi: Renamed from
38294         doc/glibc-functions/wcsnlen.texi.
38295         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38296         doc/glibc-functions/wcsnrtombs.texi.
38297         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38298         doc/glibc-functions/wcsxfrm_l.texi.
38299         * doc/posix-functions/wctrans_l.texi: Renamed from
38300         doc/glibc-functions/wctrans_l.texi.
38301         * doc/posix-functions/wctype_l.texi: Renamed from
38302         doc/glibc-functions/wctype_l.texi.
38303         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38304         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38305         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38306         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38307         these subsections.
38308         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38309         Remove sections.
38310
38311 2008-12-14  Bruno Haible  <bruno@clisp.org>
38312
38313         Update doc for POSIX:2008.
38314         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38315
38316 2008-12-14  Bruno Haible  <bruno@clisp.org>
38317
38318         Update doc for POSIX:2008.
38319         * doc/pastposix-functions/bcmp.texi: Renamed from
38320         doc/posix-functions/bcmp.texi.
38321         * doc/pastposix-functions/bcopy.texi: Renamed from
38322         doc/posix-functions/bcopy.texi.
38323         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38324         doc/posix-functions/bsd_signal.texi.
38325         * doc/pastposix-functions/bzero.texi: Renamed from
38326         doc/posix-functions/bzero.texi.
38327         * doc/pastposix-functions/ecvt.texi: Renamed from
38328         doc/posix-functions/ecvt.texi.
38329         * doc/pastposix-functions/fcvt.texi: Renamed from
38330         doc/posix-functions/fcvt.texi.
38331         * doc/pastposix-functions/ftime.texi: Renamed from
38332         doc/posix-functions/ftime.texi.
38333         * doc/pastposix-functions/gcvt.texi: Renamed from
38334         doc/posix-functions/gcvt.texi.
38335         * doc/pastposix-functions/getcontext.texi: Renamed from
38336         doc/posix-functions/getcontext.texi.
38337         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38338         doc/posix-functions/gethostbyaddr.texi.
38339         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38340         doc/posix-functions/gethostbyname.texi.
38341         * doc/pastposix-functions/getwd.texi: Renamed from
38342         doc/posix-functions/getwd.texi.
38343         * doc/pastposix-functions/h_errno.texi: Renamed from
38344         doc/posix-functions/h_errno.texi.
38345         * doc/pastposix-functions/index.texi: Renamed from
38346         doc/posix-functions/index.texi.
38347         * doc/pastposix-functions/makecontext.texi: Renamed from
38348         doc/posix-functions/makecontext.texi.
38349         * doc/pastposix-functions/mktemp.texi: Renamed from
38350         doc/posix-functions/mktemp.texi.
38351         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38352         doc/posix-functions/pthread_attr_getstackaddr.texi.
38353         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38354         doc/posix-functions/pthread_attr_setstackaddr.texi.
38355         * doc/pastposix-functions/rindex.texi: Renamed from
38356         doc/posix-functions/rindex.texi.
38357         * doc/pastposix-functions/scalb.texi: Renamed from
38358         doc/posix-functions/scalb.texi.
38359         * doc/pastposix-functions/setcontext.texi: Renamed from
38360         doc/posix-functions/setcontext.texi.
38361         * doc/pastposix-functions/swapcontext.texi: Renamed from
38362         doc/posix-functions/swapcontext.texi.
38363         * doc/pastposix-functions/ualarm.texi: Renamed from
38364         doc/posix-functions/ualarm.texi.
38365         * doc/pastposix-functions/usleep.texi: Renamed from
38366         doc/posix-functions/usleep.texi.
38367         * doc/pastposix-functions/vfork.texi: Renamed from
38368         doc/posix-functions/vfork.texi.
38369         * doc/pastposix-functions/wcswcs.texi: Renamed from
38370         doc/posix-functions/wcswcs.texi.
38371         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38372         (Function Substitutes): Update.
38373
38374 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38375
38376         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38377         m4/strerror.m4.
38378
38379 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38380             Bruno Haible  <bruno@clisp.org>
38381
38382         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38383
38384 2008-12-13  Bruno Haible  <bruno@clisp.org>
38385
38386         * modules/strtoull (Depends-on): Remove unistd.
38387
38388 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38389
38390         * modules/strtoull (Depends-on): Add stdlib.
38391
38392 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38393
38394         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38395
38396 2008-12-10  Jim Meyering  <meyering@redhat.com>
38397
38398         gl_ASSERT: don't say assertions are disabled when they're not
38399         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38400         "checking whether to enable assertions... no", when they are in
38401         fact enabled.  This is solely a bug in the output of configure.
38402         In spite of saying "no", NDEBUG was not defined in that case.
38403         Also, as noted by Eric Blake, leave assertions enabled upon
38404         --enable-assert=INVALID.
38405
38406 2008-12-10  Bruno Haible  <bruno@clisp.org>
38407
38408         Change MODULES.html to refer to POSIX:2008 where possible.
38409         * MODULES.html.sh (POSIX2008_URL): New variable.
38410         (posix_headers): Remove sys/timeb, ucontext.
38411         (posix2001_headers): New variable.
38412         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38413         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38414         index, makecontext, mktemp, pthread_attr_getstackaddr,
38415         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38416         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38417         (posix2001_functions): New variable.
38418         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38419         otherwise.
38420
38421 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38422
38423         add missing include to parse-duration.c
38424         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38425         * modules/parse-duration (Depends-on): Add xalloc.
38426
38427         fix sed script reading maint.mk
38428         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38429         (syntax-check-rules): Use it.
38430
38431 2008-12-09  Bruno Haible  <bruno@clisp.org>
38432
38433         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38434         MacOS X 10.4/PowerPC.
38435         Reported by Simon Josefsson.
38436
38437 2008-12-08  Jim Meyering  <meyering@redhat.com>
38438
38439         work around mingw's lack of some S_IF definitions
38440         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38441         Reported by Simon Josefsson.
38442
38443 2008-12-08  Bruno Haible  <bruno@clisp.org>
38444
38445         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38446         applied to variables. Needed on MacOS X 10.4/PowerPC.
38447         Reported by Simon Josefsson.
38448
38449 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38450         and Eric Blake  <ebb9@byu.net>
38451
38452         assert: honor --enable-assert
38453         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38454         order to honor --enable-assert, rather than treating it as a
38455         synonym for --disable-assert.
38456
38457 2008-12-08  Jim Meyering  <meyering@redhat.com>
38458
38459         * lib/posixtm.c: Remove now-useless declaration of mktime.
38460
38461         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38462
38463 2008-12-07  Bruno Haible  <bruno@clisp.org>
38464
38465         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38466         test_once): Mark functions as static.
38467         * tests/test-tls.c (test_tls): Likewise.
38468
38469 2008-12-07  Bruno Haible  <bruno@clisp.org>
38470
38471         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38472         iconv_register_autodetect.
38473
38474 2008-12-07  Jim Meyering  <meyering@redhat.com>
38475
38476         posixtm.c: avoid a warning
38477         * lib/posixtm.c (posixtime): Don't initialize tm0.
38478         It's no longer needed to placate gcc4's -Wuninitialized,
38479         and the attempt to placate would elicit a new warning.
38480
38481         unicodeio.c: mark unused parameters
38482         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38483         (fallback_failure_callback): Likewise.
38484
38485 2008-12-07  Bruno Haible  <bruno@clisp.org>
38486
38487         * gnulib-tool (func_create_testdir): When building the tests
38488         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38489         Reported by Simon Josefsson.
38490
38491 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38492
38493         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38494
38495 2008-12-06  Bruno Haible  <bruno@clisp.org>
38496
38497         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38498         Suggested by Eric Blake.
38499
38500 2008-12-06  Bruno Haible  <bruno@clisp.org>
38501
38502         Fix a c-stack test failure on MacOS X.
38503         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38504         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38505         handler for SIGBUS as well.
38506         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38507         install a signal handler for SIGBUS as well.
38508         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38509
38510 2008-12-06  Bruno Haible  <bruno@clisp.org>
38511
38512         Advocacy documentation.
38513         * doc/gnulib-intro.texi (Benefits): New section.
38514         * doc/gnulib.texi: Update.
38515
38516 2008-12-06  Bruno Haible  <bruno@clisp.org>
38517
38518         Document the 'manywarnings' module.
38519         * doc/manywarnings.texi: New file.
38520         * doc/gnulib.texi: Include it.
38521
38522 2008-12-05  Eric Blake  <ebb9@byu.net>
38523
38524         tests: silence some gcc warnings
38525         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38526         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38527         type mismatches.
38528
38529 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38530             Bruno Haible  <bruno@clisp.org>
38531
38532         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38533
38534 2008-11-29  Jim Meyering  <meyering@redhat.com>
38535
38536         unicodeio.c: mark unused parameters
38537         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38538         (fallback_failure_callback): Likewise.
38539
38540         fts: fix a thinko
38541         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38542         (set_stat_type): Return S_IF*-valued "type" directly.
38543         Prompted by James Youngman's spotting a related bug.
38544         Confirmed by further testing through find.
38545
38546         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38547         * lib/fts.c (D_TYPE): Define.
38548         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38549         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38550         (s_ifmt_shift_bits): New function.
38551         (set_stat_type): New function.
38552         (fts_build): When not calling fts_stat, call set_stat_type
38553         to propagate dirent.d_type info to fts_read caller.
38554         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38555         fts_statp->st_mode type information may be valid.
38556
38557 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38558
38559         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38560         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38561         <sds@gnu.org>.
38562
38563 2008-11-20  Bruno Haible  <bruno@clisp.org>
38564
38565         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38566         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38567         INCLUDE_NEXT.
38568         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38569         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38570         * modules/math (Makefile.am): Substitute
38571         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38572         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38573
38574 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38575             Bruno Haible  <bruno@clisp.org>
38576
38577         * lib/stdint.in.h: Define all type macros so that their expansion is
38578         a single typedef'ed token. Fixes a compilation failure in Boost which
38579         does "using ::int8_t;".
38580
38581 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38582
38583         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38584         gl_MANYWARN_ALL_GCC.
38585         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38586         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38587         * modules/manywarnings: New file.
38588         * MODULES.html.sh: Mention manywarnings module.
38589
38590 2008-11-18  Bruno Haible  <bruno@clisp.org>
38591
38592         * doc/gnulib-tool.texi (Unit tests): New section.
38593
38594 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38595
38596         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38597         paths like 'lib/po/foo.po'.
38598
38599 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38600
38601         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38602         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38603
38604 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38605
38606         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38607         parameter works.
38608
38609 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38610
38611         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38612
38613 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38614
38615         * modules/parse-duration-tests: New file.
38616         * tests/test-parse-duration.sh: New file.
38617         * tests/test-parse-duration.c: New file.
38618
38619         New module 'parse-duration'.
38620         * lib/parse-duration.h: New file.
38621         * lib/parse-duration.c: New file.
38622         * modules/parse-duration: New file.
38623
38624 2008-11-17  Bruno Haible  <bruno@clisp.org>
38625
38626         * tests/test-select-out.sh: Comment out the first pipe test.
38627         Reported by Simon Josefsson.
38628
38629 2008-11-17  Bruno Haible  <bruno@clisp.org>
38630
38631         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38632         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38633         gl_HOSTENT.
38634
38635 2008-11-17  Bruno Haible  <bruno@clisp.org>
38636
38637         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38638         -lnetwork and -lnet. Needed for Haiku and BeOS.
38639
38640 2008-11-16  Bruno Haible  <bruno@clisp.org>
38641
38642         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38643
38644 2008-11-16  Bruno Haible  <bruno@clisp.org>
38645
38646         Avoid test failure on Haiku.
38647         * tests/test-fsync.c: Include <errno.h>.
38648         (main): Don't require that fsync (0) fails.
38649
38650 2008-11-15  Bruno Haible  <bruno@clisp.org>
38651
38652         New module 'hostent'.
38653         * modules/hostent: New file.
38654         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38655
38656 2008-11-15  Bruno Haible  <bruno@clisp.org>
38657
38658         New module 'servent'.
38659         * modules/servent: New file.
38660         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38661
38662 2008-11-15  Bruno Haible  <bruno@clisp.org>
38663
38664         Avoid generating same test program with two different rules.
38665         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38666         test-frexp to test-frexp-nolibm.
38667         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38668         test-frexpl to test-frexpl-nolibm.
38669
38670 2008-11-15  Bruno Haible  <bruno@clisp.org>
38671
38672         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38673         $(FREXPL_LIBM).
38674
38675 2008-11-15  Bruno Haible  <bruno@clisp.org>
38676
38677         * lib/netdb.in.h: Activate the definitions also when the system's
38678         <netdb.h> has 'struct addrinfo'.
38679         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38680         EAI_OVERFLOW or AI_NUMERICSERV.
38681         * doc/posix-headers/netdb.texi: Document the problem.
38682
38683 2008-11-15  Bruno Haible  <bruno@clisp.org>
38684
38685         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38686
38687         Make the 'sched' module work on platforms where <sched.h> exists but
38688         is incomplete (such as Haiku).
38689         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38690         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38691         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38692         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38693         HAVE_STRUCT_SCHED_PARAM.
38694         * modules/sched (Depends-on): Add include_next.
38695         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38696         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38697         * doc/posix-headers/sched.texi: Document the issue.
38698
38699 2008-11-13  Jim Meyering  <meyering@redhat.com>
38700
38701         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38702         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38703         test would fail due to the difference in the Report bugs to ...
38704         line.  The expected address is empty, "<>", while the actual
38705         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38706
38707 2008-11-12  Bruno Haible  <bruno@clisp.org>
38708
38709         lstat: don't compile lstat.c on systems lacking lstat
38710         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38711         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38712         Reported by Daniel P. Berrange via Jim Meyering.
38713
38714 2008-11-12  Jim Meyering  <meyering@redhat.com>
38715
38716         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38717
38718 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38719
38720         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38721         instead.
38722
38723 2008-11-12  Bruno Haible  <bruno@clisp.org>
38724
38725         * lib/unicodeio.c: Include unistr.h.
38726         (utf8_wctomb): Remove function.
38727         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38728
38729 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38730
38731         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38732         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38733         <bruno@clisp.org>.
38734         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38735
38736 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38737
38738         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38739         * doc/gnulib.texi: Add section for warnings.
38740
38741 2008-11-11  Bruno Haible  <bruno@clisp.org>
38742
38743         * lib/sockets.h: Add a comment.
38744
38745 2008-11-11  Karl Berry  <karl@gnu.org>
38746
38747         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38748
38749 2008-11-11  Eric Blake  <ebb9@byu.net>
38750
38751         fdl.texi: avoid git symlinks
38752         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38753
38754 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38755
38756         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38757
38758 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38759
38760         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38761         (gl_WARN_ADD): Substitute $2 if literal.
38762
38763 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38764
38765         * m4/warning.m4: Remove.
38766
38767 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38768
38769         * m4/warnings.m4: Almost complete rewrite. :-)
38770
38771 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38772
38773         * modules/warnings: New module.
38774         * m4/warnings.m4: New file.
38775         * MODULES.html.sh: Mention warnings module.
38776         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38777         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38778
38779 2008-11-10  Eric Blake  <ebb9@byu.net>
38780
38781         fdl.texi: make a symlink to the latest version
38782         * doc/standards.texi: Revert today's earlier change.
38783         * doc/fdl-1.2.texi: Rename from old fdl.texi...
38784         * doc/fdl.texi: ...and replace this with a symlink to the newer
38785         fdl-1.3.texi.
38786
38787 2008-11-10  Bruno Haible  <bruno@clisp.org>
38788
38789         * tests/test-select-fd.c (main): Accept the result file name as fourth
38790         argument.
38791         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
38792         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
38793
38794 2008-11-10  Bruno Haible  <bruno@clisp.org>
38795
38796         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
38797         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
38798         as autoconf-substituted macros.
38799         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
38800         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
38801         gl_NETDB_H_DEFAULTS. Set these variables.
38802         * modules/netdb (Makefile.am): Substitute these variables.
38803
38804 2008-11-10  Eric Blake  <ebb9@byu.net>
38805
38806         standards.texi: include correct file for FDL 1.3
38807         * doc/standards.texi (GNU Free Documentation License): Change
38808         include file to pull in FDL 1.3, not 1.2.
38809
38810         fdl.texi: revert accidental change to license
38811         * doc/fdl.texi: This is FDL 1.2, not 1.3.
38812
38813 2008-11-10  Bruno Haible  <bruno@clisp.org>
38814
38815         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
38816         cross-compiling guesses also when the native compile gives no result.
38817
38818 2008-11-10  Bruno Haible  <bruno@clisp.org>
38819
38820         * lib/spawni.c (__spawni): Force variable into the stack.
38821
38822 2008-11-10  Bruno Haible  <bruno@clisp.org>
38823
38824         Add support for Haiku.
38825         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
38826         glibc and BeOS, but also on Haiku.
38827         * lib/fpurge.c (fpurge): Likewise.
38828         * lib/freadable.c (freadable): Likewise.
38829         * lib/freadahead.c (freadahead): Likewise.
38830         * lib/freading.c (freading): Likewise.
38831         * lib/freadptr.c (freadptr): Likewise.
38832         * lib/freadseek.c (freadptrinc): Likewise.
38833         * lib/fseeko.c (rpl_fseeko): Likewise.
38834         * lib/fseterr.c (fseterr): Likewise.
38835         * lib/fwritable.c (fwritable): Likewise.
38836         * lib/fwriting.c (fwriting): Likewise.
38837         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
38838
38839 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38840
38841         * lib/config.charset: Treat Haiku like BeOS.
38842
38843 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38844
38845         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
38846         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
38847
38848 2008-11-08  Bruno Haible  <bruno@clisp.org>
38849
38850         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
38851         AC_CACHE_CHECK.
38852
38853 2008-11-08  Bruno Haible  <bruno@clisp.org>
38854
38855         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
38856
38857 2008-11-08  Bruno Haible  <bruno@clisp.org>
38858
38859         * tests/test-select-fd.c: New file.
38860         * tests/test-select-in.sh: New file.
38861         * tests/test-select-out.sh: New file.
38862         * tests/test-select-stdin.c: New file.
38863         * modules/select-tests (Files): Add the new files.
38864         (Depends-on): Add gettimeofday.
38865         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
38866         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
38867         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
38868
38869 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
38870             Bruno Haible  <bruno@clisp.org>
38871
38872         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
38873
38874 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
38875
38876         * build-aux/pmccabe2html: Added support for C++ source files.
38877
38878 2008-11-05  Ben Pfaff  <blp@gnu.org>
38879
38880         Fix lib/close.c build on Windows.
38881         * modules/close (Files): Add lib/w32sock.h.
38882
38883 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
38884
38885         Accept Bison's NEWS format.
38886         * build-aux/announce-gen (print_news_deltas): Tweak
38887         $re_prefix.
38888
38889 2008-11-04  Bruno Haible  <bruno@clisp.org>
38890
38891         * modules/random_r (Maintainer): Add glibc.
38892
38893 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38894
38895         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
38896         by karl@freefriends.org (Karl Berry).
38897         * doc/alloca.texi: Likewise.
38898         * doc/c-ctype.texi: Likewise.
38899         * doc/c-strcase.texi: Likewise.
38900         * doc/c-strcaseeq.texi: Likewise.
38901         * doc/c-strcasestr.texi: Likewise.
38902         * doc/c-strstr.texi: Likewise.
38903         * doc/c-strtod.texi: Likewise.
38904         * doc/c-strtold.texi: Likewise.
38905         * doc/ctime.texi: Likewise.
38906         * doc/error.texi: Likewise.
38907         * doc/fdl.texi: Likewise.
38908         * doc/gcd.texi: Likewise.
38909         * doc/getdate.texi: Likewise.
38910         * doc/gnulib-intro.texi: Likewise.
38911         * doc/gnulib-tool.texi: Likewise.
38912         * doc/gnulib.texi: Likewise.
38913         * doc/inet_ntoa.texi: Likewise.
38914         * doc/maintain.texi: Likewise.
38915         * doc/make-stds.texi: Likewise.
38916         * doc/quote.texi: Likewise.
38917         * doc/regexprops-generic.texi: Likewise.
38918         * doc/standards.texi: Likewise.
38919         * doc/verify.texi: Likewise.
38920         * doc/visibility.texi: Likewise.
38921         * doc/gnulib.texi (GNU Free Documentation License): Include
38922         fdl-1.3.texi instead of fdl.texi.
38923
38924 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38925
38926         * doc/fdl-1.3.texi: New file, from
38927         <http://www.gnu.org/licenses/fdl-1.3.texi>.
38928         * modules/fdl-1.3: Add.
38929         * MODULES.html.sh: Add fdl-1.3.
38930
38931 2008-11-03  Bruno Haible  <bruno@clisp.org>
38932
38933         Make determination of absolute name of header file work with AIX xlc.
38934         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
38935         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
38936         preprocessing.
38937         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38938         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38939
38940 2008-11-03  Simon Josefsson  <simon@josefsson.org>
38941
38942         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
38943         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
38944         <ludo@gnu.org>.
38945
38946 2008-11-02  Bruno Haible  <bruno@clisp.org>
38947
38948         Mark 'strpbrk' obsolete.
38949         * modules/strpbrk (Status, Notice): New sections.
38950         * modules/strtok_r (Depends-on): Add strpbrk.
38951
38952 2008-11-02  Bruno Haible  <bruno@clisp.org>
38953
38954         Mark 'strdup' obsolete.
38955         * modules/strdup (Status, Notice): New sections.
38956         * modules/findprog (Depends-on): Add strdup.
38957         * modules/getaddrinfo (Depends-on): Likewise.
38958         * modules/localename (Depends-on): Likewise.
38959         * modules/relocatable-lib (Depends-on): Likewise.
38960         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
38961         * modules/relocatable-prog (Depends-on): Likewise.
38962         * modules/trim (Depends-on): Likewise.
38963         * modules/unictype/gen-ctype (Depends-on): Likewise.
38964         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38965
38966 2008-11-02  Bruno Haible  <bruno@clisp.org>
38967
38968         Mark 'strcspn' obsolete.
38969         * modules/strcspn (Status, Notice): New sections.
38970
38971 2008-11-02  Bruno Haible  <bruno@clisp.org>
38972
38973         Mark 'rmdir' obsolete.
38974         * modules/rmdir (Status, Notice): New sections.
38975         * modules/clean-temp (Depends-on): Add rmdir.
38976         * modules/openat (Depends-on): Likewise.
38977
38978 2008-11-02  Bruno Haible  <bruno@clisp.org>
38979
38980         Mark 'raise' obsolete.
38981         * modules/raise (Status, Notice): New sections.
38982         (Include): Specify <signal.h>.
38983         * modules/stdio (Depends-on): Add raise.
38984         * modules/write (Depends-on): Likewise.
38985
38986 2008-11-02  Bruno Haible  <bruno@clisp.org>
38987
38988         Mark 'memset' obsolete.
38989         * modules/memset (Status, Notice): New sections.
38990
38991 2008-11-02  Bruno Haible  <bruno@clisp.org>
38992
38993         Mark 'memmove' obsolete.
38994         * modules/memmove (Status, Notice): New sections.
38995         * modules/argp (Depends-on): Add memmove.
38996         * modules/argz (Depends-on): Likewise.
38997         * modules/canonicalize (Depends-on): Likewise.
38998         * modules/canonicalize-lgpl (Depends-on): Likewise.
38999         * modules/fts (Depends-on): Likewise.
39000         * modules/getcwd (Depends-on): Likewise.
39001         * modules/human (Depends-on): Likewise.
39002         * modules/regex (Depends-on): Likewise.
39003         * modules/striconveh (Depends-on): Likewise.
39004         * modules/trim (Depends-on): Likewise.
39005         * modules/unistr/u8-move (Depends-on): Likewise.
39006         * modules/unistr/u16-move (Depends-on): Likewise.
39007         * modules/unistr/u32-move (Depends-on): Likewise.
39008
39009 2008-11-02  Bruno Haible  <bruno@clisp.org>
39010
39011         Mark 'memcpy' obsolete.
39012         * modules/memcpy (Status, Notice): New sections.
39013
39014 2008-11-02  Bruno Haible  <bruno@clisp.org>
39015
39016         Mark 'memcmp' obsolete.
39017         * modules/memcmp (Status, Notice): New sections.
39018         * modules/argmatch (Depends-on): Add memchr.
39019         * modules/backupfile (Depends-on): Likewise.
39020         * modules/c-strcasestr (Depends-on): Likewise.
39021         * modules/crypto/des (Depends-on): Likewise.
39022         * modules/csharpcomp (Depends-on): Likewise.
39023         * modules/fnmatch (Depends-on): Likewise.
39024         * modules/git-merge-changelog (Depends-on): Likewise.
39025         * modules/isnand (Depends-on): Likewise.
39026         * modules/isnand-nolibm (Depends-on): Likewise.
39027         * modules/isnanf (Depends-on): Likewise.
39028         * modules/isnanf-nolibm (Depends-on): Likewise.
39029         * modules/isnanl (Depends-on): Likewise.
39030         * modules/isnanl-nolibm (Depends-on): Likewise.
39031         * modules/mbchar (Depends-on): Likewise.
39032         * modules/memcoll (Depends-on): Likewise.
39033         * modules/quotearg (Depends-on): Likewise.
39034         * modules/regex (Depends-on): Likewise.
39035         * modules/relocatable-prog (Depends-on): Likewise.
39036         * modules/same (Depends-on): Likewise.
39037         * modules/signbit (Depends-on): Likewise.
39038         * modules/strcasestr-simple (Depends-on): Likewise.
39039         * modules/unictype/gen-ctype (Depends-on): Likewise.
39040         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39041         * modules/uniname/uniname (Depends-on): Likewise.
39042         * modules/unistr/u8-cmp (Depends-on): Likewise.
39043
39044 2008-11-02  Bruno Haible  <bruno@clisp.org>
39045
39046         Mark 'memchr' obsolete.
39047         * modules/memchr (Status, Notice): New sections.
39048         * modules/argp (Depends-on): Add memchr.
39049         * modules/base64 (Depends-on): Likewise.
39050         * modules/c-strcasestr (Depends-on): Likewise.
39051         * modules/chdir-long (Depends-on): Likewise.
39052         * modules/fnmatch (Depends-on): Likewise.
39053         * modules/getsubopt (Depends-on): Likewise.
39054         * modules/git-merge-changelog (Depends-on): Likewise.
39055         * modules/glob (Depends-on): Likewise.
39056         * modules/strcasestr-simple (Depends-on): Likewise.
39057         * modules/strnlen (Depends-on): Likewise.
39058
39059 2008-11-02  Bruno Haible  <bruno@clisp.org>
39060
39061         Mark 'atexit' obsolete.
39062         * modules/atexit (Status, Notice): New sections.
39063         * modules/chdir-long (Depends-on): Add atexit.
39064         * modules/wait-process (Depends-on): Likewise.
39065
39066 2008-11-02  Bruno Haible  <bruno@clisp.org>
39067
39068         * gnulib-tool: New option --with-obsolete.
39069         (func_usage): Document it.
39070         (func_modules_transitive_closure): Drop obsolete dependencies if
39071         incobsolete is not true.
39072         (func_import): Read and save the incobsolete variable to the cache.
39073
39074 2008-11-02  Bruno Haible  <bruno@clisp.org>
39075
39076         * modules/TEMPLATE-EXTENDED: New field 'Status'.
39077         * gnulib-tool: New option --extract-status.
39078         (func_usage): Document it.
39079         (sed_extract_prog): Recognize it.
39080         (func_get_status): New function.
39081
39082 2008-10-30  Simon Josefsson  <simon@josefsson.org>
39083
39084         * modules/sockets (License): Change from LGPL to LGPLv2+.
39085
39086 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39087
39088         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
39089
39090 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39091
39092         * MODULES.html.sh (Support for systems lacking POSIX:2001):
39093         Mention times and sys_times.
39094         * modules/sys_times, modules/sys_times-tests: New modules.
39095         * modules/times, modules/times-tests: Likewise
39096         * m4/sys_times_h.m4: New file.
39097         * lib/sys_times.in.h: Likewise
39098         * lib/times.c: Likewise.
39099         * tests/test-sys_times.c: Likewise.
39100         * tests/test-times.c: Likewise.
39101         * doc/posix-headers/sys_times.texi: Update.
39102         * doc/posix-functions/times.texi: Update.
39103
39104 2008-10-28  Jim Meyering  <meyering@redhat.com>
39105
39106         * modules/tempname (Depends-on): Add lstat.
39107
39108         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
39109
39110 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39111
39112         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
39113         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
39114         using idiom used elsewhere in gnulib.
39115
39116 2008-10-27  Jim Meyering  <meyering@redhat.com>
39117
39118         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
39119
39120 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39121
39122         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
39123         TESTS_ENVIRONMENT, for shell scripts that needs to call built
39124         programs.
39125         * tests/test-argp-2.sh: Use $EXEEXT when needed.
39126
39127 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39128
39129         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
39130
39131 2008-10-27  Bruno Haible  <bruno@clisp.org>
39132
39133         * tests/test-lstat.c: Include <stdio.h>.
39134
39135 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39136
39137         * modules/lstat-tests: New module.
39138         * tests/test-lstat.c: New file.
39139
39140 2008-10-26  Jim Meyering  <meyering@redhat.com>
39141
39142         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
39143
39144 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39145             Bruno Haible  <bruno@clisp.org>
39146
39147         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
39148         * modules/configmake (Include): Add a note that the include must come
39149         after all system headers.
39150         * lib/javaversion.c: Include configmake.h after all other includes.
39151
39152 2008-10-26  Bruno Haible  <bruno@clisp.org>
39153
39154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
39155         HAVE_STRUCT_RANDOM_DATA to 1.
39156         (gl_STDLIB_H): Simplify.
39157
39158 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39159
39160         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
39161         substitute HAVE_STRUCT_RANDOM_DATA.
39162         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
39163         random_data.
39164         * modules/stdlib (Makefile.am): Substitute
39165         HAVE_STRUCT_RANDOM_DATA.
39166
39167 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39168
39169         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
39170         * doc/gnulib-intro.texi (Copyright): Likewise.
39171
39172 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39173
39174         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
39175         findings.
39176
39177 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
39178             Bruno Haible  <bruno@clisp.org>
39179
39180         * lib/unistd.in.h: Include <winsock2.h>.
39181         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
39182         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
39183         Provide dummy declarations.
39184         (gethostname): Override.
39185         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
39186         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
39187         gl_PREREQ_SYS_H_WINSOCK2.
39188         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
39189         * doc/posix-functions/gethostname.texi: More details.
39190
39191 2008-10-25  Bruno Haible  <bruno@clisp.org>
39192
39193         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39194         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
39195         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
39196
39197         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
39198         here ...
39199         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
39200         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
39201         gl_UNISTD_H_DEFAULTS.
39202
39203 2008-10-25  Eric Blake  <ebb9@byu.net>
39204
39205         signbit: avoid spurious compiler failure
39206         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39207         declarations inside function.
39208
39209 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39210             Bruno Haible  <bruno@clisp.org>
39211
39212         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39213         * modules/random_r (Depends-on): Add stdint.
39214
39215 2008-10-24  Bruno Haible  <bruno@clisp.org>
39216
39217         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39218         Eggert.
39219         * modules/strerror (License): Likewise.
39220
39221 2008-10-24  Jim Meyering  <meyering@redhat.com>
39222
39223         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39224         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39225
39226 2008-10-24  Eric Blake  <ebb9@byu.net>
39227
39228         getgroups: fix compilation when getgroups is available
39229         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39230         but with <config.h> override of getgroups disabled.
39231
39232 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39233
39234         * doc/gnulib.texi (Header files): Add note about C++ problems.
39235         Explained by Bruno Haible <bruno@clisp.org>.
39236
39237 2008-10-23  Bruno Haible  <bruno@clisp.org>
39238
39239         Define a dummy SA_NODEFER macro on Interix.
39240         * lib/signal.in.h (SA_NODEFER): Define fallback.
39241         Reported by Aleksey Cheusov <cheusov@tut.by> via
39242         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39243
39244 2008-10-23  Bruno Haible  <bruno@clisp.org>
39245
39246         * modules/freadahead (License): Change to LGPLv2+.
39247         Suggested by Simon Josefsson.
39248
39249 2008-10-23  Jim Meyering  <meyering@redhat.com>
39250
39251         random_r: new module
39252         * modules/random_r: New file.
39253         * m4/random_r.m4: New file.
39254         * lib/random_r.c: New file, from glibc.
39255         * modules/random_r-tests: New file.
39256         * tests/test-random_r.c: New file.
39257         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39258          Declare.
39259         (RAND_MAX): Define.
39260         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39261         * modules/stdlib: Substitute them, too.
39262         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39263         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39264         * doc/glibc-functions/random_r.texi: Likewise.
39265         * doc/glibc-functions/setstate_r.texi: Likewise.
39266         * doc/glibc-functions/srandom_r.texi: Likewise.
39267         * config/srclist.txt: Mention it.
39268
39269 2008-10-23  David Lutterkort  <lutter@redhat.com>
39270
39271         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39272         link requirement
39273
39274 2008-10-23  Jim Meyering  <meyering@redhat.com>
39275
39276         selinux-h: mark parameters of stub functions as intentionally unused
39277         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39278         * lib/se-context.in.h: Likewise.
39279
39280 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39281
39282         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39283
39284 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39285
39286         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39287
39288 2008-10-22  Eric Blake  <ebb9@byu.net>
39289
39290         glthread/thread: avoid compiler warning
39291         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39292         Add unreachable abort to silence compiler.
39293
39294 2008-10-22  Eric Blake  <ebb9@byu.net>
39295
39296         netdb: also supply struct addrinfo for cygwin 1.5.x
39297         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39298         older cygwin.
39299         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39300         cygwin.
39301         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39302
39303 2008-10-22  Bruno Haible  <bruno@clisp.org>
39304
39305         * users.txt: Update entry about pspp.
39306
39307 2008-10-21  Bruno Haible  <bruno@clisp.org>
39308
39309         Simplification.
39310         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39311         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39312
39313         Simplification.
39314         * lib/ioctl.c (ioctl): Don't undefine.
39315         * lib/socket.c (socket): Don't undefine.
39316
39317         Remove unused module indicator macros.
39318         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39319         GNULIB_$1 as a C macro.
39320
39321         * doc/posix-functions/close.texi: Undo last change.
39322         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39323         Windows platforms.
39324
39325 2008-10-21  Bruno Haible  <bruno@clisp.org>
39326
39327         Add gethostname() declaration to <unistd.h>.
39328         * lib/unistd.in.h (gethostname): New declaration.
39329         * lib/gethostname.c: Include <unistd.h>.
39330         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39331         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39333         and HAVE_GETHOSTNAME.
39334         * modules/gethostname (Depends-on): Add unistd.
39335         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39336         (Include): Specify <unistd.h>.
39337         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39338         HAVE_GETHOSTNAME.
39339         * tests/test-gethostname.c: Include <unistd.h> first.
39340
39341 2008-10-21  Bruno Haible  <bruno@clisp.org>
39342
39343         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39344         * modules/select-tests (Depends-on): Likewise.
39345         Reported by Simon Josefsson.
39346
39347 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39348
39349         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39350         * lib/accept.c: New file, based on winsock.c.
39351         * lib/bind.c: New file, based on winsock.c.
39352         * lib/connect.c: New file, based on winsock.c.
39353         * lib/getpeername.c: New file, based on winsock.c.
39354         * lib/getsockname.c: New file, based on winsock.c.
39355         * lib/getsockopt.c: New file, based on winsock.c.
39356         * lib/ioctl.c: New file, based on winsock.c.
39357         * lib/listen.c: New file, based on winsock.c.
39358         * lib/recv.c: New file, based on winsock.c.
39359         * lib/recvfrom.c: New file, based on winsock.c.
39360         * lib/send.c: New file, based on winsock.c.
39361         * lib/sendto.c: New file, based on winsock.c.
39362         * lib/setsockopt.c: New file, based on winsock.c.
39363         * lib/shutdown.c: New file, based on winsock.c.
39364         * lib/socket.c: New file, based on winsock.c.
39365         * lib/w32sock.h: New file, based on winsock.c.
39366         * lib/winsock.c: Remove file.
39367         * modules/accept: Likewise.
39368         * modules/bind: Likewise.
39369         * modules/connect: Likewise.
39370         * modules/getpeername: Likewise.
39371         * modules/getsockname: Likewise.
39372         * modules/getsockopt: Likewise.
39373         * modules/ioctl: Likewise.
39374         * modules/listen: Likewise.
39375         * modules/recv: Likewise.
39376         * modules/recvfrom: Likewise.
39377         * modules/send: Likewise.
39378         * modules/sendto: Likewise.
39379         * modules/setsockopt: Likewise.
39380         * modules/shutdown: Likewise.
39381         * modules/socket: Use socket.c instead of winsock.c.
39382         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39383         * doc/posix-functions/accept.texi: Doc fix.
39384         * doc/posix-functions/bind.texi: Doc fix.
39385         * doc/posix-functions/close.texi: Doc fix.
39386         * doc/posix-functions/connect.texi: Doc fix.
39387         * doc/posix-functions/getpeername.texi: Doc fix.
39388         * doc/posix-functions/getsockname.texi: Doc fix.
39389         * doc/posix-functions/getsockopt.texi: Doc fix.
39390         * doc/posix-functions/ioctl.texi: Doc fix.
39391         * doc/posix-functions/listen.texi: Doc fix.
39392         * doc/posix-functions/recv.texi: Doc fix.
39393         * doc/posix-functions/recvfrom.texi: Doc fix.
39394         * doc/posix-functions/send.texi: Doc fix.
39395         * doc/posix-functions/sendto.texi: Doc fix.
39396         * doc/posix-functions/setsockopt.texi: Doc fix.
39397         * doc/posix-functions/shutdown.texi: Doc fix.
39398         * doc/posix-functions/socket.texi: Doc fix.
39399
39400 2008-10-20  Bruno Haible  <bruno@clisp.org>
39401
39402         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39403         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39404         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39405         as an alias for SIGABRT.
39406         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39407         (sigaction): Map it to SIGABRT.
39408         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39409
39410 2008-10-20  Bruno Haible  <bruno@clisp.org>
39411
39412         * lib/fts.c: Don't include lstat.h.
39413         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39414
39415         Move the lstat() declaration to <sys/stat.h>.
39416         * lib/lstat.h: Remove file.
39417         * lib/sys_stat.in.h: Add special invocation convention.
39418         (lstat): New declaration.
39419         * lib/lstat.c (orig_lstat): New function.
39420         (rpl_lstat): Use orig_lstat instead of lstat.
39421         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39422         AC_C_INLINE. Set REPLACE_LSTAT.
39423         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39424         and REPLACE_LSTAT.
39425         * modules/lstat (Files): Remove lib/lstat.h.
39426         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39427         (Include): Specify <sys/stat.h> instead of lstat.h.
39428         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39429         REPLACE_LSTAT.
39430         * NEWS: Mention the change.
39431
39432 2008-10-20  Bruno Haible  <bruno@clisp.org>
39433
39434         * modules/posix_spawn-tests: New file.
39435         * tests/test-posix_spawn3.c: New file.
39436
39437 2008-10-20  Bruno Haible  <bruno@clisp.org>
39438
39439         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39440         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39441         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39442         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39443         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39444
39445 2008-10-20  Bruno Haible  <bruno@clisp.org>
39446
39447         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39448         of posix_spawn on AIX 5.3.
39449
39450 2008-10-20  Bruno Haible  <bruno@clisp.org>
39451
39452         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39453
39454 2008-10-20  Bruno Haible  <bruno@clisp.org>
39455
39456         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39457         of AC_LANG_PROGRAM.
39458
39459 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39460
39461         * lib/netdb.in.h: Don't define GNU specific constants until they
39462         are supported or needed.  Reported by Bruno Haible
39463         <bruno@clisp.org>.
39464
39465 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39466
39467         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39468
39469 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39470
39471         * lib/getaddrinfo.h: Remove file.
39472         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39473         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39474         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39475         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39476         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39477         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39478         * tests/test-getaddrinfo.c: Likewise.
39479         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39480         * NEWS: Mention change.
39481
39482 2008-10-19  Bruno Haible  <bruno@clisp.org>
39483
39484         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39485
39486 2008-10-19  Bruno Haible  <bruno@clisp.org>
39487
39488         * lib/wait-process.c: Include simply <sys/wait.h>.
39489         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39490         WIFSTOPPED): Remove fallback definitions.
39491         * modules/wait-process (Depends-on): Add sys_wait.
39492
39493         New module 'sys_wait'.
39494         * modules/sys_wait: New file.
39495         * lib/sys_wait.in.h: New file, partially copied from
39496         lib/wait-process.c.
39497         * m4/sys_wait_h.m4: New file.
39498         * doc/posix-headers/sys_wait.texi: Mention the new module.
39499
39500 2008-10-19  Bruno Haible  <bruno@clisp.org>
39501
39502         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39503
39504 2008-10-19  Bruno Haible  <bruno@clisp.org>
39505
39506         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39507         * lib/wait-process.c (WAIT_T): Remove type.
39508         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39509         (wait_subprocess): Update.
39510
39511 2008-10-19  Bruno Haible  <bruno@clisp.org>
39512
39513         New module 'atoll'.
39514         * modules/atoll: New file.
39515         * lib/stdlib.in.h (atoll): New declaration.
39516         * lib/atoll.c: New file, from glibc with modifications.
39517         * m4/atoll.m4: New file.
39518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39519         HAVE_ATOLL.
39520         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39521         * doc/posix-functions/atoll.texi: Mention the new module.
39522
39523 2008-10-19  Bruno Haible  <bruno@clisp.org>
39524
39525         Add strtoull() declaration to <stdlib.h>.
39526         * lib/stdlib.in.h (strtoull): New declaration.
39527         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39528         Set HAVE_STRTOULL.
39529         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39530         HAVE_STRTOULL.
39531         * modules/strtoull (Depends-on): Add stdlib.
39532         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39533         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39534         HAVE_STRTOULL.
39535
39536 2008-10-19  Bruno Haible  <bruno@clisp.org>
39537
39538         Add strtoll() declaration to <stdlib.h>.
39539         * lib/stdlib.in.h (strtoll): New declaration.
39540         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39541         Set HAVE_STRTOLL.
39542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39543         HAVE_STRTOLL.
39544         * modules/strtoll (Depends-on): Add stdlib.
39545         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39546         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39547
39548 2008-10-19  Bruno Haible  <bruno@clisp.org>
39549
39550         * modules/bcopy (Depends-on): Add strings.
39551         (Include): Specify <strings.h>.
39552
39553 2008-10-19  Bruno Haible  <bruno@clisp.org>
39554
39555         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39556
39557 2008-10-19  Bruno Haible  <bruno@clisp.org>
39558
39559         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39560         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39561         mingw.
39562
39563 2008-10-19  Bruno Haible  <bruno@clisp.org>
39564
39565         * lib/atanl.c: Don't include isnanl.h.
39566         * lib/cosl.c: Likewise.
39567         * lib/ldexpl.c: Likewise.
39568         * lib/logl.c: Likewise.
39569         * lib/sinl.c: Likewise.
39570         * lib/sqrtl.c: Likewise.
39571         * lib/tanl.c: Likewise.
39572
39573         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39574         * lib/isnanf.h: Remove file.
39575         * lib/isnand.h: Remove file.
39576         * lib/isnanl.h: Remove file.
39577         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39578         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39579         macros.
39580         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39581         HAVE_ISNANF, don't define it as a C macro.
39582         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39583         HAVE_ISNAND, don't define it as a C macro.
39584         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39585         HAVE_ISNANL, don't define it as a C macro.
39586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39587         HAVE_ISNAN[FDL].
39588         * modules/isnanf (Files): Remove lib/isnanf.h.
39589         (Depends-on): Add math.
39590         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39591         (Include): Specify <math.h> instead of isnanf.h.
39592         * modules/isnand (Files): Remove lib/isnand.h.
39593         (Depends-on): Add math.
39594         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39595         (Include): Specify <math.h> instead of isnand.h.
39596         * modules/isnanl (Files): Remove lib/isnanl.h.
39597         (Depends-on): Add math.
39598         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39599         (Include): Specify <math.h> instead of isnanl.h.
39600         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39601         HAVE_ISNAN[FDL].
39602         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39603         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39604         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39605         * NEWS: Mention the change.
39606
39607 2008-10-18  Bruno Haible  <bruno@clisp.org>
39608
39609         Add getusershell(), setusershell(), endusershell() declarations to
39610         <unistd.h>.
39611         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39612         declarations.
39613         * lib/getusershell.c: Include unistd.h.
39614         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39615         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39616         HAVE_GETUSERSHELL.
39617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39618         and HAVE_GETUSERSHELL.
39619         * modules/getusershell (Depends-on): Add unistd, extensions.
39620         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39621         (Include): Specify <unistd.h>.
39622         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39623         HAVE_GETUSERSHELL.
39624
39625 2008-10-18  Bruno Haible  <bruno@clisp.org>
39626
39627         Add a getloadavg() declaration to <stdlib.h>.
39628         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39629         getloadavg declaration.
39630         (getloadavg): New declaration.
39631         * lib/getloadavg.c: Include <stdlib.h> first.
39632         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39633         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39634         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39636         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39637         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39638         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39639         (Include): Specify <stdlib.h>.
39640         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39641         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39642
39643 2008-10-18  Bruno Haible  <bruno@clisp.org>
39644
39645         * lib/dirchownmod.c: Don't include lchmod.h.
39646
39647         Move the lchmod() declaration to <sys/stat.h>.
39648         * lib/lchmod.h: Remove file.
39649         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39650         (lchmod): New declaration, moved here from lib/lchown.h.
39651         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39652         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39653         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39654         and HAVE_LCHMOD.
39655         * modules/lchmod (Files): Remove lib/lchmod.h.
39656         (Depends-on): Add sys_stat, extensions.
39657         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39658         (Include): Specify <sys/stat.h> instead of lchmod.h.
39659         * modules/sys_stat (Depends-on): Add link-warning.
39660         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39661         definition of GL_LINK_WARNING.
39662         * NEWS: Mention the change.
39663
39664 2008-10-18  Bruno Haible  <bruno@clisp.org>
39665
39666         * lib/fchdir.c: Don't include dirfd.h.
39667         * lib/fts.c: Likewise.
39668         * lib/getcwd.c: Likewise.
39669         * lib/glob.c: Likewise.
39670
39671         Move the dirfd() declaration to <dirent.h>.
39672         * lib/dirfd.h: Remove file.
39673         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39674         (dirfd): New declaration.
39675         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39676         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39677         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39678         HAVE_DECL_DIRFD.
39679         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39680         HAVE_DECL_DIRFD.
39681         * modules/dirfd (Files): Remove lib/dirfd.h.
39682         (Depends-on): Add dirent, extensions.
39683         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39684         (Include): Specify <dirent.h> instead of dirfd.h.
39685         * modules/dirent (Depends-on): Add link-warning.
39686         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39687         definition of GL_LINK_WARNING.
39688         * NEWS: Mention the change.
39689
39690 2008-10-18  Bruno Haible  <bruno@clisp.org>
39691
39692         Move the euidaccess() declaration to <unistd.h>.
39693         * lib/euidaccess.h: Remove file.
39694         * lib/unistd.in.h (euidaccess): New declaration.
39695         * lib/euidaccess.c: Don't include euidaccess.h.
39696         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39697         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39699         and HAVE_EUIDACCESS.
39700         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39701         (Depends-on): Add unistd.
39702         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39703         (Include): Specify <unistd.h> instead of euidaccess.h.
39704         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39705         HAVE_EUIDACCESS.
39706         * NEWS: Mention the change.
39707
39708 2008-10-18  Bruno Haible  <bruno@clisp.org>
39709
39710         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39711
39712         Move the getdomainname() declaration to <unistd.h>.
39713         * lib/getdomainname.h: Remove file.
39714         * lib/unistd.in.h (getdomainname): New declaration.
39715         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39716         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39717         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39718         HAVE_GETDOMAINNAME.
39719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39720         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39721         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39722         (Depends-on): Add unistd, extensions.
39723         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39724         (Includes): Specify <unistd.h> instead of getdomainname.h.
39725         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39726         HAVE_GETDOMAINNAME.
39727         * NEWS: Mention the change.
39728
39729 2008-10-18  Bruno Haible  <bruno@clisp.org>
39730
39731         * modules/dirent: New file.
39732         * m4/dirent_h.m4: New file.
39733         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39734         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39735         * modules/fchdir (Files): Remove lib/dirent.in.h.
39736         (Depends-on): Add dirent.
39737         (Makefile.am): Move rules to modules/dirent.
39738         * doc/posix-headers/dirent.texi: Mention the new module.
39739
39740 2008-10-18  Bruno Haible  <bruno@clisp.org>
39741
39742         Avoid -Wunused-parameter warnings in public gnulib header files.
39743         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39744         macro.
39745         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39746
39747 2008-10-18  Bruno Haible  <bruno@clisp.org>
39748
39749         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39750         * doc/glibc-functions/error.texi: Mention the module 'error'.
39751         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39752         * doc/glibc-functions/getdomainname.texi: Mention the module
39753         'getdomainname'.
39754         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39755         * doc/glibc-functions/getpagesize.texi: Mention the module
39756         'getpagesize'.
39757         * doc/glibc-functions/getusershell.texi: Mention the module
39758         'getusershell'.
39759         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39760         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39761         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39762         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39763         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39764         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39765         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39766         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39767         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39768         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39769         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39770         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39771         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39772         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39773
39774 2008-10-17  Bruno Haible  <bruno@clisp.org>
39775
39776         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39777         HP-UX and IRIX, use -0.0L.
39778         * tests/test-ceill.c (minus_zero): Likewise.
39779         * tests/test-floorl.c (minus_zero): Likewise.
39780         * tests/test-frexpl.c (minus_zero): Likewise.
39781         * tests/test-isnan.c (minus_zerol): Likewise.
39782         * tests/test-isnanl.h (minus_zero): Likewise.
39783         * tests/test-ldexpl.c (minus_zero): Likewise.
39784         * tests/test-roundl.c (minus_zero): Likewise.
39785         * tests/test-signbit.c (minus_zerol): Likewise.
39786         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39787         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39788         * tests/test-truncl.c (minus_zero): Likewise.
39789         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39790         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39791         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
39792         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39793
39794 2008-10-17  Bruno Haible  <bruno@clisp.org>
39795
39796         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
39797         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
39798         that it gets activated only for gcc >= 3.0.
39799         * lib/dirent.in.h: Likewise.
39800         * lib/errno.in.h: Likewise.
39801         * lib/fcntl.in.h: Likewise.
39802         * lib/float.in.h: Likewise.
39803         * lib/iconv.in.h: Likewise.
39804         * lib/inttypes.in.h: Likewise.
39805         * lib/locale.in.h: Likewise.
39806         * lib/math.in.h: Likewise.
39807         * lib/netdb.in.h: Likewise.
39808         * lib/netinet_in.in.h: Likewise.
39809         * lib/search.in.h: Likewise.
39810         * lib/signal.in.h: Likewise.
39811         * lib/spawn.in.h: Likewise.
39812         * lib/stdarg.in.h: Likewise.
39813         * lib/stdint.in.h: Likewise.
39814         * lib/stdio.in.h: Likewise.
39815         * lib/stdlib.in.h: Likewise.
39816         * lib/string.in.h: Likewise.
39817         * lib/strings.in.h: Likewise.
39818         * lib/sys_file.in.h: Likewise.
39819         * lib/sys_ioctl.in.h: Likewise.
39820         * lib/sys_select.in.h: Likewise.
39821         * lib/sys_socket.in.h: Likewise.
39822         * lib/sys_stat.in.h: Likewise.
39823         * lib/sys_time.in.h: Likewise.
39824         * lib/sysexits.in.h: Likewise.
39825         * lib/time.in.h: Likewise.
39826         * lib/unistd.in.h: Likewise.
39827         * lib/wchar.in.h: Likewise.
39828         * lib/wctype.in.h: Likewise.
39829         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39830
39831 2008-10-17  Jim Meyering  <meyering@redhat.com>
39832
39833         ignore-value: don't depend on inline module
39834         * modules/ignore-value (Depends-on): Remove 'inline'.
39835         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
39836         Suggestion from Bruno Haible.
39837
39838 2008-10-17  Bruno Haible  <bruno@clisp.org>
39839
39840         New implementation of condition variables for Win32.
39841         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
39842         (gl_linked_waitqueue_t): New type.
39843         (gl_cond_t): Use it.
39844         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
39845         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
39846         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
39847         (glthread_cond_init_func, glthread_cond_wait_func,
39848         glthread_cond_timedwait_func, glthread_cond_signal_func,
39849         glthread_cond_broadcast_func, glthread_cond_destroy_func):
39850         Reimplemented on the basis of gl_linked_waitqueue_t.
39851         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
39852         gl_waitqueue_t.
39853         (gl_rwlock_t): Update.
39854         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
39855
39856 2008-10-17  Simon Josefsson  <simon@josefsson.org>
39857
39858         * modules/recvfrom (Depends-on): Add dependency on getpeername.
39859         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39860
39861 2008-10-17  Jim Meyering  <meyering@redhat.com>
39862
39863         ignore-value: new module
39864         * modules/ignore-value: New file.
39865         * lib/ignore-value.h: New file.
39866         * MODULES.html.sh (Compiler warning management): New section,
39867         just for this module.  More to come.
39868
39869 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39870
39871         open-safer.c: avoid 'signed and unsigned in conditional...' warning
39872         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
39873         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
39874
39875 2008-10-16  Jim Meyering  <meyering@redhat.com>
39876
39877         openat-die.c: avoid 'no previous prototype' warning
39878         * lib/openat-die.c: Include "openat.h".
39879         Reported by Reuben Thomas <rrt@sc3d.org>.
39880
39881 2008-10-16  Simon Josefsson  <simon@josefsson.org>
39882
39883         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
39884         * lib/netdb.in.h: Fix typo.
39885         Reported by Bruno Haible  <bruno@clisp.org>
39886
39887         * lib/netdb.in.h: Include sys/socket.h for platforms without
39888         netdb.h, to get structures like hostent on MinGW.
39889         * modules/netdb (Depends-on): Add sys_socket.
39890
39891 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39892
39893         * modules/netdb, modules/netdb-tests: New file.
39894         * m4/netdb_h.m4: New file.
39895         * lib/netdb.in.h: Add, currently just an empty file pending
39896         definitions.
39897         * tests/test-netdb.c: New file.
39898         * doc/posix-headers/netdb.texi: Mention that we replace it if
39899         needed.
39900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39901         netdb.
39902
39903 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39904
39905         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
39906         with code.
39907
39908 2008-10-13  Bruno Haible  <bruno@clisp.org>
39909
39910         * lib/glthread/cond.c (glthread_cond_wait_func,
39911         glthread_cond_timedwait_func): Add a comment.
39912
39913 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39914
39915         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
39916         * tests/test-select.c: Likewise,
39917
39918 2008-10-13  Bruno Haible  <bruno@clisp.org>
39919
39920         * lib/glthread/cond.c (glthread_cond_wait_func,
39921         glthread_cond_timedwait_func): Fix variable name.
39922         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39923
39924 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
39925
39926         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
39927         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
39928         struct sockaddr.sa_len.
39929         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
39930
39931 2008-10-13  Simon Josefsson  <simon@josefsson.org>
39932
39933         * build-aux/pmccabe2html: Add css and css_url parameters.
39934
39935 2008-10-12  Bruno Haible  <bruno@clisp.org>
39936
39937         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
39938         calling aclx_get.
39939         Reported by Rainer Tammer <tammer@tammer.net>.
39940
39941 2008-10-12  Bruno Haible  <bruno@clisp.org>
39942
39943         Use msvcrt aware primitives for creation/termination of Win32 threads.
39944         * lib/glthread/thread.c: Include <process.h>.
39945         (glthread_create_func): Use _beginthreadex instead of CreateThread.
39946         (wrapper_func): Update signature.
39947         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
39948
39949 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39950             Bruno Haible  <bruno@clisp.org>
39951
39952         Provide a Win32 implementation of the 'cond' module.
39953         * lib/glthread/cond.h [USE_WIN32]: New implementation.
39954         * lib/glthread/cond.c (glthread_cond_init_func,
39955         glthread_cond_wait_func, glthread_cond_timedwait_func,
39956         glthread_cond_signal_func, glthread_cond_broadcast_func,
39957         glthread_cond_destroy_func) [USE_WIN32]: New functions.
39958         * modules/cond (Dependencies): Add gettimeofday.
39959
39960 2008-10-11  Bruno Haible  <bruno@clisp.org>
39961
39962         Make sleep work on older versions of mingw.
39963         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
39964         only whether it exists.
39965         * doc/posix-functions/sleep.texi: Mention the problem with older
39966         versions of mingw.
39967
39968 2008-10-11  Bruno Haible  <bruno@clisp.org>
39969
39970         New module 'shutdown'.
39971         * modules/shutdown: New file.
39972         * lib/sys_socket.in.h (shutdown): New declaration.
39973         * lib/winsock.c (shutdown): New function.
39974         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39975         GNULIB_SHUTDOWN.
39976         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
39977         * doc/posix-functions/shutdown.texi: Document the new module.
39978
39979 2008-10-11  Jim Meyering  <meyering@redhat.com>
39980
39981         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
39982
39983 2008-10-11  Bruno Haible  <bruno@clisp.org>
39984
39985         New module 'fclose'.
39986         * modules/fclose: New file.
39987         * lib/stdio.in.h (fclose): New declaration.
39988         * lib/fclose.c: New file.
39989         * m4/fclose.m4: New file.
39990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
39991         REPLACE_FCLOSE.
39992         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
39993         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
39994         REPLACE_FCLOSE.
39995         * modules/close (Depends-on): fclose.
39996         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
39997
39998 2008-10-11  Bruno Haible  <bruno@clisp.org>
39999
40000         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
40001         set errno and don't call _close.
40002
40003 2008-10-10  Bruno Haible  <bruno@clisp.org>
40004
40005         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
40006         ACL, not afterwards. Fixes test failure on Cygwin.
40007
40008 2008-10-09  Ben Pfaff  <blp@gnu.org>
40009
40010         * build-aux/announce-gen: Fix gnulib version related part of usage
40011         message.  Die with a useful error message if no tarballs are
40012         found.
40013
40014 2008-10-10  Jim Meyering  <meyering@redhat.com>
40015
40016         bootstrap: use git's --depth=N option only if it's supported
40017         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40018         recognize the --depth option.  Reported by Pádraig Brady.
40019
40020 2008-10-09  Bruno Haible  <bruno@clisp.org>
40021
40022         New module 'ioctl'.
40023         * modules/ioctl: New file.
40024         * lib/sys_socket.in.h (ioctl): Remove declaration.
40025         * lib/winsock.c: Include <sys/ioctl.h>.
40026         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40027         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40028         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40029         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
40030         * doc/posix-functions/ioctl.texi: Mention the new module.
40031
40032 2008-10-09  Bruno Haible  <bruno@clisp.org>
40033
40034         New module 'sys_ioctl'.
40035         * lib/sys_ioctl.in.h: New file.
40036         * m4/sys_ioctl_h.m4: New file.
40037         * modules/sys_ioctl: New file.
40038         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
40039
40040 2008-10-09  Bruno Haible  <bruno@clisp.org>
40041
40042         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
40043         * lib/winsock.c: Include <stdarg.h>.
40044         (rpl_ioctl): Change to second argument 'int' and then varargs.
40045
40046 2008-10-09  Bruno Haible  <bruno@clisp.org>
40047
40048         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
40049         when the sys_socket module is present and the system has <winsock2.h>.
40050
40051 2008-10-09  Bruno Haible  <bruno@clisp.org>
40052
40053         * doc/posix-functions/close.texi: Mention module 'close' instead of
40054         module 'sys_socket'.
40055
40056 2008-10-09  Bruno Haible  <bruno@clisp.org>
40057
40058         * doc/glibc-headers/sys_ioctl.texi: New file.
40059         * doc/gnulib.texi: Include it.
40060
40061 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40062             Bruno Haible  <bruno@clisp.org>
40063
40064         Combine the two replacements of 'close'.
40065         * lib/sys_socket.in.h (close): Define to a reminder to include
40066         <unistd.h>.
40067         (_gl_close_fd_maybe_socket): New declaration.
40068         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
40069         * lib/winsock.c (close): Remove undefinition.
40070         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
40071         needed for the gnulib module 'close'.
40072         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
40073         define to an error symbol or to a warning, if suitable.
40074         * lib/close.c: Include <sys/socket.h>.
40075         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
40076         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
40077         UNISTD_H_HAVE_WINSOCK2_H.
40078         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
40079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40080         UNISTD_H_HAVE_WINSOCK2_H.
40081         * modules/sys_socket (Files): Add m4/unistd_h.m4.
40082         (configure.ac): Set a module indicator.
40083         (Makefile.am): Substitute GNULIB_CLOSE.
40084         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
40085         * modules/poll-tests (Depends-on): Add close.
40086         * modules/select-tests (Depends-on): Likewise.
40087
40088 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40089             Bruno Haible  <bruno@clisp.org>
40090
40091         New module 'close'.
40092         * modules/close: New file.
40093         * lib/unistd.in.h (close): Move declaration out of the
40094         FCHDIR_REPLACEMENT scope.
40095         (_gl_unregister_fd): New declaration.
40096         * lib/close.c: New file.
40097         * lib/fchdir.c (rpl_close): Remove function.
40098         * m4/close.m4: New file.
40099         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40100         close.
40101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
40102         REPLACE_CLOSE.
40103         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
40104         REPLACE_CLOSE.
40105         * modules/fchdir (Depends-on): Add close.
40106
40107 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40108             Bruno Haible  <bruno@clisp.org>
40109
40110         * lib/fcntl.in.h (open): Simplify conditionals.
40111         (_gl_register_fd): New declaration.
40112         * lib/fchdir.c (rpl_open): Remove function.
40113         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
40114         also.
40115         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
40116         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40117         open.
40118
40119 2008-10-09  Jim Meyering  <meyering@redhat.com>
40120
40121         GNUmakefile: use the more name-space-friendly "_version"
40122         * top/GNUmakefile (_dummy): Update.
40123         (_version): Rename from "version".
40124
40125 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40126             Bruno Haible  <bruno@clisp.org>
40127
40128         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
40129         rpl_close.
40130         (_gl_register_fd): New function, extracted from rpl_open.
40131         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
40132         (rpl_open, rpl_opendir): Use _gl_register_fd.
40133
40134 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40135
40136         Fix organization of 'open' replacement.
40137         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
40138         (gl_FUNC_OPEN): Use it.
40139         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
40140
40141 2008-10-08  Bruno Haible  <bruno@clisp.org>
40142
40143         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
40144
40145 2008-10-08  Simon Josefsson  <simon@josefsson.org>
40146
40147         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
40148         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
40149         listen).
40150
40151 2008-10-08  Eric Blake  <ebb9@byu.net>
40152
40153         GNUmakefile: add 'make version' target
40154         * top/GNUmakefile (_curr-ver): Split version update rules...
40155         (version): ...into a target.
40156
40157 2008-10-07  Bruno Haible  <bruno@clisp.org>
40158
40159         Use a more portable replacement expression for -0.0L.
40160         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
40161         instead of -0.0L. Fix m4 quotation.
40162
40163         * tests/test-signbit.c: Include <float.h>.
40164         (minus_zero): New variable.
40165         (test_signbitl): Use minus_zero instead of -zero.
40166         * modules/signbit-tests (Depends-on): Add float.
40167
40168         * tests/test-ceill.c: Include <float.h>.
40169         (zero): Remove variable.
40170         (minus_zero): New variable.
40171         (main): Use minus_zero instead of -zero.
40172         * modules/ceill-tests (Depends-on): Add float.
40173
40174         * tests/test-floorl.c: Include <float.h>.
40175         (zero): Remove variable.
40176         (minus_zero): New variable.
40177         (main): Use minus_zero instead of -zero.
40178         * modules/floorl-tests (Depends-on): Add float.
40179
40180         * tests/test-roundl.c: Include <float.h>.
40181         (zero): Remove variable.
40182         (minus_zero): New variable.
40183         (main): Use minus_zero instead of -zero.
40184         * modules/roundl-tests (Depends-on): Add float.
40185
40186         * tests/test-truncl.c: Include <float.h>.
40187         (zero): Remove variable.
40188         (minus_zero): New variable.
40189         (main): Use minus_zero instead of -zero.
40190         * modules/truncl-tests (Depends-on): Add float.
40191
40192         * tests/test-frexpl.c (zero): Remove variable.
40193         (minus_zero): New variable.
40194         (main): Use minus_zero instead of -zero.
40195         * modules/frexpl-tests (Depends-on): Add float.
40196
40197         * tests/test-isnan.c (zerol): Remove variable.
40198         (minus_zerol): New variable.
40199         (test_long_double): Use minus_zerol instead of -zerol.
40200         * modules/isnan-tests (Depends-on): Add float.
40201
40202         * tests/test-isnanl.h (zero): Remove variable.
40203         (minus_zero): New variable.
40204         (main): Use minus_zero instead of -zero.
40205         * modules/isnanl-nolibm-tests (Depends-on): Add float.
40206         * modules/isnanl-tests (Depends-on): Add float.
40207
40208         * tests/test-ldexpl.c (zero): Remove variable.
40209         (minus_zero): New variable.
40210         (main): Use minus_zero instead of -zero.
40211         * modules/ldexpl-tests (Depends-on): Add float.
40212
40213         * tests/test-snprintf-posix.h (zerol): Remove variable.
40214         (minus_zerol): New variable.
40215         (test_function): Use minus_zerol instead of -zerol.
40216         * modules/snprintf-posix-tests (Depends-on): Add float.
40217         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40218
40219         * tests/test-sprintf-posix.h (zerol): Remove variable.
40220         (minus_zerol): New variable.
40221         (test_function): Use minus_zerol instead of -zerol.
40222         * modules/sprintf-posix-tests (Depends-on): Add float.
40223         * modules/vsprintf-posix-tests (Depends-on): Add float.
40224
40225         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40226         (minus_zerol): New variable.
40227         (test_function): Use minus_zerol instead of -zerol.
40228         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40229
40230         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40231         (minus_zerol): New variable.
40232         (test_function): Use minus_zerol instead of -zerol.
40233         * modules/vasprintf-posix-tests (Depends-on): Add float.
40234
40235 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40236
40237         * MODULES.html.sh (Support for building documentation): Mention
40238         pmccabe2html.  Sort entries.
40239
40240         Add pmccabe2html module, from gnupdf.
40241         * build-aux/pmccabe.css: New file.
40242         * build-aux/pmccabe2html: New file.
40243         * m4/pmccabe2html.m4: New file.
40244         * modules/pmccabe2html: New file.
40245
40246 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40247
40248         flock: new module
40249         * MODULES.html.sh: Add to list of modules.
40250         * lib/flock.c: flock implementation for Windows and Unix systems
40251         which have fcntl.
40252         * doc/glibc-functions/flock.texi: Update documentation.
40253         * lib/sys_file.in.h: <sys/file.h> header file.
40254         * m4/flock.m4: M4 macros.
40255         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40256         * modules/flock: flock module.
40257         * modules/flock-tests: flock tests module.
40258         * modules/sys_file: sys/file.h module.
40259         * tests/test-flock.c: test suite for flock.
40260
40261 2008-10-06  Jim Meyering  <meyering@redhat.com>
40262
40263         bootstrap: check for LT_INIT more portably still ;-)
40264         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40265         Spotted by Bruno Haible.
40266
40267 2008-10-06  Eric Blake  <ebb9@byu.net>
40268
40269         test-signbit: avoid tripping Irix cc bug on -0.0L
40270         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40271         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40272         entire testsuite consistent and avoids an Irix 6.2 bug.
40273
40274 2008-10-05  Bruno Haible  <bruno@clisp.org>
40275             Jim Meyering  <jim@meyering.net>
40276
40277         Add an option for ignoring EPIPE during close_stdout.
40278         * lib/closeout.h: Include <stdbool.h>.
40279         (close_stdout_set_ignore_EPIPE): New declaration.
40280         * lib/closeout.c: Include <stdbool.h>.
40281         (ignore_EPIPE): New variable.
40282         (close_stdout_set_ignore_EPIPE): New function.
40283         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40284         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40285         failure.
40286         * modules/closeout (Depends-on): Add stdbool.
40287
40288 2008-10-05  Bruno Haible  <bruno@clisp.org>
40289
40290         * modules/accept: New file.
40291         * modules/bind: New file.
40292         * modules/connect: New file.
40293         * modules/getpeername: New file.
40294         * modules/getsockname: New file.
40295         * modules/getsockopt: New file.
40296         * modules/listen: New file.
40297         * modules/recv: New file.
40298         * modules/recvfrom: New file.
40299         * modules/send: New file.
40300         * modules/sendto: New file.
40301         * modules/setsockopt: New file.
40302         * modules/socket: New file.
40303         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40304         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40305         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40306         the particular module is requested. Add a link warning when the
40307         particular module is not requested.
40308         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40309         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40310         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40311         the particular module is requested.
40312         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40313         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40314         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40315         * modules/sys_socket (Depends-on): Add link-warning.
40316         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40317         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40318         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40319         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40320         GL_LINK_WARNING.
40321         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40322         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40323         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40324         * doc/posix-functions/getpeername.texi: Mention the new module
40325         'getpeername'.
40326         * doc/posix-functions/getsockname.texi: Mention the new module
40327         'getsockname'.
40328         * doc/posix-functions/getsockopt.texi: Mention the new module
40329         'getsockopt'.
40330         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40331         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40332         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40333         * doc/posix-functions/send.texi: Mention the new module 'send'.
40334         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40335         * doc/posix-functions/setsockopt.texi: Mention the new module
40336         'setsockopt'.
40337         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40338         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40339         listen, connect, accept.
40340         * modules/select-tests (Depends-on): Likewise.
40341
40342 2008-10-05  Bruno Haible  <bruno@clisp.org>
40343
40344         * lib/winsock.c (strerror): Remove unused #undef.
40345         (rpl_close): Remove unused local variable.
40346
40347         * modules/sys_socket (Depends-on); Add errno.
40348
40349 2008-10-05  Bruno Haible  <bruno@clisp.org>
40350
40351         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40352         (select): Add a link warning when the 'select' module is not used.
40353         * modules/sys_select (Depends-on): Add link-warning.
40354         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40355         Suggested by Paolo Bonzini.
40356
40357 2008-10-05  Jim Meyering  <meyering@redhat.com>
40358
40359         bootstrap: check for LT_INIT more portably
40360         * build-aux/bootstrap: Avoid using grep -E, since it's not
40361         portable enough.  Suggestion from Bruno Haible.
40362
40363 2008-10-05  Bruno Haible  <bruno@clisp.org>
40364
40365         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40366         as being fixed by gnulib.
40367
40368 2008-10-05  Bruno Haible  <bruno@clisp.org>
40369
40370         * modules/select-tests: New file, mostly copied from
40371         modules/sys_select-tests.
40372         * tests/test-select.c: New file, mostly copied from
40373         tests/test-sys_select.c.
40374         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40375         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40376         (Makefile.am): Remove test_sys_select_LDADD.
40377
40378         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40379         to an undefined symbol, for an error message.
40380         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40381         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40382         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40383         winsock-select.c here.
40384         * modules/sys_select (Files): Remove lib/winsock-select.c.
40385         (Depends-on): Remove alloca.
40386         (Makefile.am): Substitute GNULIB_SELECT.
40387         * modules/select: New file.
40388         * doc/posix-functions/select.texi: Update.
40389
40390 2008-10-05  Bruno Haible  <bruno@clisp.org>
40391
40392         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40393         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40394         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40395         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40396         getdtablesize.
40397         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40398         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40399
40400 2008-10-05  Bruno Haible  <bruno@clisp.org>
40401
40402         * modules/getdtablesize-tests: New file.
40403         * tests/test-getdtablesize.c: New file.
40404
40405         New module 'getdtablesize'.
40406         * lib/unistd.in.h (getdtablesize): New declaration.
40407         * lib/getdtablesize.c: New file.
40408         * m4/getdtablesize.m4: New file.
40409         * modules/getdtablesize: New file.
40410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40411         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40412         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40413         HAVE_GETDTABLESIZE.
40414         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40415
40416 2008-10-05  Bruno Haible  <bruno@clisp.org>
40417
40418         * modules/sched (Makefile.am): Fix typo.
40419         Reported by Simon Josefsson.
40420
40421 2008-10-05  Jim Meyering  <meyering@redhat.com>
40422
40423         bootstrap: check for LT_INIT, too
40424         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40425         are deprecated.  Suggestion from Ralf Wildenhues.
40426
40427 2008-10-05  Bruno Haible  <bruno@clisp.org>
40428
40429         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40430         overriding them by ours.
40431         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40432
40433 2008-10-05  Jim Meyering  <meyering@redhat.com>
40434
40435         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40436         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40437         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40438
40439 2008-10-04  Bruno Haible  <bruno@clisp.org>
40440
40441         * modules/dup2 (License): Change to LGPLv2+.
40442         * modules/sleep (License): Likewise.
40443         * modules/perror (License): Likewise.
40444         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40445         Blake.
40446         * modules/signal (License): Likewise.
40447         * modules/sigprocmask (License): Likewise.
40448         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40449         Meyering.
40450
40451 2008-10-04  Bruno Haible  <bruno@clisp.org>
40452
40453         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40454         Reported by Rainer Tammer <tammer@tammer.net>.
40455
40456 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40457             Bruno Haible  <bruno@clisp.org>
40458
40459         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40460         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40461         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40462
40463 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40464
40465         filevercmp: new module
40466         * lib/filevercmp.h: New function filevercmp comparing version strings.
40467         * lib/filevercmp.c: Implementation of filevercmp function.
40468         * modules/filevercmp: Module metadata.
40469         * tests/test-filevercmp.c: Unit test for new module.
40470         * modules/filevercmp-tests: Unit test metadata.
40471         * MODULES.html.sh: Add filevercmp module.
40472
40473 2008-10-03  Bruno Haible  <bruno@clisp.org>
40474
40475         * lib/c-ctype.h: Add comment.
40476         Reported by Jim Meyering.
40477
40478 2008-10-02  Bruno Haible  <bruno@clisp.org>
40479
40480         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40481
40482 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40483
40484         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40485         name of bootstrap.conf accordingly.
40486
40487 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40488
40489         * build-aux/bootstrap: Install git-merge-changelog configuration
40490         items into .gitconfig if needed.
40491
40492 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40493
40494         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40495         git repository, and initialize/update it accordingly.
40496
40497 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40498
40499         * modules/fsync-tests: New file.
40500         * tests/test-fsync.c: New file.
40501
40502         New module 'fsync'.
40503         * lib/fsync.c: New file.
40504         * m4/fsync.m4: New file.
40505         * modules/fsync: New file.
40506         * lib/unistd.in.h (fsync): New declaration.
40507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40508         GNULIB_FSYNC and HAVE_FSYNC.
40509         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40510         * MODULES.html.sh (posix_functions): Add fsync.
40511         * doc/posix-functions/fsync.texi: Mention the new module.
40512
40513 2008-10-02  Jim Meyering  <meyering@redhat.com>
40514
40515         fts.c: sync with similar code from coreutils' remove.c
40516         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40517         Guard also with "#if defined __linux__", since for now at least,
40518         this code is Linux-kernel-specific.
40519
40520 2008-10-02  Jim Meyering  <meyering@redhat.com>
40521
40522         fts: bug fixes
40523         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40524         Include <sys/vfs.h>, not <sys/statfs.h>.
40525
40526         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40527         Include <sys/vfs.h>, not <sys/statfs.h>.
40528
40529 2008-10-01  Bruno Haible  <bruno@clisp.org>
40530
40531         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40532         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40533         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40534         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40535         * doc/posix-functions/posix_spawnp.texi: Likewise.
40536         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40537         whether posix_spawn actually works.
40538         * m4/pipe.m4 (gl_PIPE): Likewise.
40539         * modules/execute (Files): Add m4/posix_spawn.m4.
40540         * modules/pipe (Files): Add m4/posix_spawn.m4.
40541         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40542
40543 2008-10-01  Jim Meyering  <meyering@redhat.com>
40544
40545         remove trailing spaces
40546         * NEWS: Likewise.
40547         * lib/poll.c (poll): Likewise.
40548         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40549         * lib/winsock.c (rpl_close): Likewise.
40550         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40551         * modules/yield: Likewise.
40552         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40553         * tests/test-sys_select.c (connect_to_socket): Likewise.
40554
40555         fts.c: adjust a new interface to be more generally useful
40556         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40557         (fts_build): Adjust caller.
40558
40559 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40560
40561         * modules/cond-tests: New file.
40562         * tests/test-cond.c: New file.
40563
40564 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40565             Bruno Haible  <bruno@clisp.org>
40566
40567         * modules/cond (Dependencies): Add errno, time.
40568         * lib/glthread/cond.h: Include <time.h>.
40569         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40570         across platforms.
40571
40572 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40573             Bruno Haible  <bruno@clisp.org>
40574
40575         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40576
40577 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40578             Bruno Haible  <bruno@clisp.org>
40579
40580         * modules/tls-tests (Depends-on): Add thread, yield.
40581         (configure.ac): Remove all checks.
40582         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40583         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40584         gl_thread_self): Remove definitions. Include glthread/thread.h and
40585         glthread/yield.h instead.
40586         (test_tls): Pass an additional NULL argument to gl_thread_join.
40587
40588 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40589             Bruno Haible  <bruno@clisp.org>
40590
40591         * modules/lock-tests (Depends-on): Add thread, yield.
40592         (configure.ac): Remove all checks.
40593         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40594         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40595         gl_thread_self): Remove definitions. Include glthread/thread.h and
40596         glthread/yield.h instead.
40597         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40598         additional NULL argument to gl_thread_join.
40599
40600 2008-09-30  Bruno Haible  <bruno@clisp.org>
40601
40602         Fix the Win32 implementation of the 'thread' module.
40603         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40604         pointer type.
40605         (gl_thread_self): Invoke gl_thread_self_func.
40606         (gl_thread_self_func): New declaration.
40607         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40608         (do_init_self_key, init_self_key): New functions.
40609         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40610         Remove some fields.
40611         (running_threads, running_lock): Remove variables.
40612         (get_current_thread_handle): New function.
40613         (gl_thread_self_func, wrapper_func, glthread_create_func,
40614         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40615         simplified.
40616
40617 2008-09-30  Bruno Haible  <bruno@clisp.org>
40618
40619         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40620         files.
40621
40622 2008-09-30  Jim Meyering  <meyering@redhat.com>
40623
40624         fts.m4: correct the test for statfs.f_type
40625         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40626         when checking for statfs.f_type.
40627
40628 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40629
40630         tests: avoid some compiler warnings
40631         * tests/test-memchr.c (main): Pass NULL indirectly.
40632         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40633
40634 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
40635
40636         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40637         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40638         exactly specified dayshifts.
40639         (dayshift): New rule.
40640         (rel): Add dayshift.
40641         (relative_time_table) [tomorrow, yesterday, today, now]:
40642         Use tDAY_SHIFT in place of tDAY_UNIT.
40643         * tests/test-getdate.c: Add tests for now-disallowed countable
40644         dayshifts, e.g., "4 yesterday ago".
40645
40646 2008-09-29  Bruno Haible  <bruno@clisp.org>
40647
40648         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40649         * tests/test-posix_spawn1.in.sh: Renamed from
40650         tests/test-posix_spawn.in.sh.
40651         * tests/test-posix_spawn2.c: New file.
40652         * tests/test-posix_spawn2.in.sh: New file.
40653         * modules/posix_spawnp-tests (Files): Update.
40654         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40655
40656 2008-09-29  Bruno Haible  <bruno@clisp.org>
40657
40658         Propagate effects of putenv/setenv/unsetenv to child processes.
40659         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40660         * lib/pipe.c (create_pipe): Likewise.
40661
40662 2008-09-29  Bruno Haible  <bruno@clisp.org>
40663
40664         Enable use of shell scripts as executables in mingw.
40665         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40666         run the program as a shell script.
40667         * lib/pipe.c (create_pipe): Likewise.
40668         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40669         resulting array.
40670
40671 2008-09-29  Eric Blake  <ebb9@byu.net>
40672
40673         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40674
40675 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40676
40677         * doc/posix-functions/accept.texi: Update mingw problems.
40678         * doc/posix-functions/bind.texi: Update mingw problems.
40679         * doc/posix-functions/close.texi: Update mingw problems.
40680         * doc/posix-functions/connect.texi: Update mingw problems.
40681         * doc/posix-functions/getpeername.texi: Update mingw problems.
40682         * doc/posix-functions/getsockname.texi: Update mingw problems.
40683         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40684         * doc/posix-functions/ioctl.texi: Update mingw problems.
40685         * doc/posix-functions/listen.texi: Update mingw problems.
40686         * doc/posix-functions/recv.texi: Update mingw problems.
40687         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40688         * doc/posix-functions/select.texi: Update mingw problems.
40689         * doc/posix-functions/send.texi: Update mingw problems.
40690         * doc/posix-functions/sendto.texi: Update mingw problems.
40691         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40692         * doc/posix-functions/socket.texi: Update mingw problems.
40693
40694 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40695             Bruno Haible  <bruno@clisp.org>
40696
40697         * lib/sys_select.in.h: Include sys/time.h.
40698         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40699         * modules/sys_select: Depend on sys_time.
40700         * tests/test-sys_select.c: Test that sys/select.h defines struct
40701         timeval fully.
40702
40703 2008-09-29  Bruno Haible  <bruno@clisp.org>
40704
40705         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40706         * lib/sys_select.in.h: Likewise.
40707
40708 2008-09-29  Bruno Haible  <bruno@clisp.org>
40709
40710         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40711
40712 2008-09-29  Bruno Haible  <bruno@clisp.org>
40713
40714         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40715         Set LIBSOCKET instead of augmenting LIBS.
40716         * modules/sockets (Link): New section.
40717         * modules/sockets-tests (test_sockets_LDADD): New variable.
40718         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40719         * modules/poll-tests (test_poll_LDADD): New variable.
40720         * NEWS: Document the change.
40721
40722 2008-09-29  Bruno Haible  <bruno@clisp.org>
40723
40724         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40725         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40726         ARPA_INET_H directly.
40727         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40728
40729 2008-09-28  Bruno Haible  <bruno@clisp.org>
40730
40731         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40732         from gl_HEADER_SYS_SOCKET.
40733         (gl_HEADER_SYS_SOCKET): Invoke it.
40734         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40735
40736 2008-09-28  Bruno Haible  <bruno@clisp.org>
40737
40738         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40739         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40740         Needed on OSF/1 4.0.
40741
40742 2008-09-28  Bruno Haible  <bruno@clisp.org>
40743
40744         Override open more carefully.
40745         * lib/open.c (orig_open): New function.
40746         (rpl_open): Use orig_open instead of open.
40747         * lib/fcntl.in.h: Add special invocation convention.
40748         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40749         (gl_FUNC_OPEN): Invoke it.
40750
40751         Override freopen more carefully.
40752         * lib/freopen.c (orig_freopen): New function.
40753         (rpl_freopen): Use orig_freopen instead of freopen.
40754         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40755         (gl_FUNC_FREOPEN): Invoke it.
40756
40757         Override fopen more carefully.
40758         * lib/fopen.c (orig_fopen): New function.
40759         (rpl_fopen): Use orig_fopen instead of fopen.
40760         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40761         (gl_FUNC_FOPEN): Invoke it.
40762         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40763
40764 2008-09-28  Bruno Haible  <bruno@clisp.org>
40765
40766         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40767         SIGPIPE.
40768
40769 2008-09-28  Bruno Haible  <bruno@clisp.org>
40770
40771         * tests/test-sigaction.c (handler, main): Disable the check whether
40772         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40773         glibc systems with LinuxThreads.
40774
40775 2008-09-28  Bruno Haible  <bruno@clisp.org>
40776
40777         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40778
40779         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
40780         with AIX xlc.
40781         * lib/fcntl.in.h (open): Likewise.
40782         Reported by Rainer Tammer <tammer@tammer.net>.
40783
40784 2008-09-28  Bruno Haible  <bruno@clisp.org>
40785
40786         * modules/posix_spawnp-tests: New file.
40787         * tests/test-posix_spawn.c: New file.
40788         * tests/test-posix_spawn.in.sh: New file.
40789
40790         New module 'posix_spawnp'.
40791         * modules/posix_spawnp: New file.
40792         * lib/spawnp.c: New file, from GNU libc with modifications.
40793         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
40794
40795         New module 'posix_spawn'.
40796         * modules/posix_spawn: New file.
40797         * lib/spawn.c: New file, from GNU libc with modifications.
40798         * doc/posix-functions/posix_spawn.texi: Mention the new module.
40799
40800         New module 'posix_spawnattr_destroy'.
40801         * modules/posix_spawnattr_destroy: New file.
40802         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
40803         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
40804         module.
40805
40806         New module 'posix_spawnattr_setsigmask'.
40807         * modules/posix_spawnattr_setsigmask: New file.
40808         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
40809         modifications.
40810         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
40811         new module.
40812
40813         New module 'posix_spawnattr_getsigmask'.
40814         * modules/posix_spawnattr_getsigmask: New file.
40815         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
40816         modifications.
40817         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
40818         new module.
40819
40820         New module 'posix_spawnattr_setsigdefault'.
40821         * modules/posix_spawnattr_setsigdefault: New file.
40822         * lib/spawnattr_setdefault.c: New file, from GNU libc with
40823         modifications.
40824         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
40825         new module.
40826
40827         New module 'posix_spawnattr_getsigdefault'.
40828         * modules/posix_spawnattr_getsigdefault: New file.
40829         * lib/spawnattr_getdefault.c: New file, from GNU libc with
40830         modifications.
40831         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
40832         new module.
40833
40834         New module 'posix_spawnattr_setschedpolicy'.
40835         * modules/posix_spawnattr_setschedpolicy: New file.
40836         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
40837         modifications.
40838         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
40839         new module.
40840
40841         New module 'posix_spawnattr_getschedpolicy'.
40842         * modules/posix_spawnattr_getschedpolicy: New file.
40843         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
40844         modifications.
40845         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
40846         new module.
40847
40848         New module 'posix_spawnattr_setschedparam'.
40849         * modules/posix_spawnattr_setschedparam: New file.
40850         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
40851         modifications.
40852         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
40853         new module.
40854
40855         New module 'posix_spawnattr_getschedparam'.
40856         * modules/posix_spawnattr_getschedparam: New file.
40857         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
40858         modifications.
40859         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
40860         new module.
40861
40862         New module 'posix_spawnattr_setpgroup'.
40863         * modules/posix_spawnattr_setpgroup: New file.
40864         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
40865         modifications.
40866         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
40867         module.
40868
40869         New module 'posix_spawnattr_getpgroup'.
40870         * modules/posix_spawnattr_getpgroup: New file.
40871         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
40872         modifications.
40873         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
40874         module.
40875
40876         New module 'posix_spawnattr_setflags'.
40877         * modules/posix_spawnattr_setflags: New file.
40878         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
40879         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
40880         module.
40881
40882         New module 'posix_spawnattr_getflags'.
40883         * modules/posix_spawnattr_getflags: New file.
40884         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40885         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
40886         module.
40887
40888         New module 'posix_spawnattr_init'.
40889         * modules/posix_spawnattr_init: New file.
40890         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
40891         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
40892         module.
40893
40894         New module 'posix_spawn_file_actions_destroy'.
40895         * modules/posix_spawn_file_actions_destroy: New file.
40896         * lib/spawn_faction_destroy.c: New file, from GNU libc with
40897         modifications.
40898         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
40899         the new module.
40900
40901         New module 'posix_spawn_file_actions_addopen'.
40902         * modules/posix_spawn_file_actions_addopen: New file.
40903         * lib/spawn_faction_addopen.c: New file, from GNU libc with
40904         modifications.
40905         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40906         the new module.
40907
40908         New module 'posix_spawn_file_actions_adddup2'.
40909         * modules/posix_spawn_file_actions_adddup2: New file.
40910         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
40911         modifications.
40912         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40913         the new module.
40914
40915         New module 'posix_spawn_file_actions_addclose'.
40916         * modules/posix_spawn_file_actions_addclose: New file.
40917         * lib/spawn_faction_addclose.c: New file, from GNU libc with
40918         modifications.
40919         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40920         the new module.
40921
40922         New module 'posix_spawn_file_actions_init'.
40923         * modules/posix_spawn_file_actions_init: New file.
40924         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
40925         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
40926         new module.
40927
40928         New module 'posix_spawn-internal'.
40929         * modules/posix_spawn-internal: New file.
40930         * lib/spawn_int.h: New file, from GNU libc with modifications.
40931         * lib/spawni.c: New file, from GNU libc with modifications.
40932         * m4/posix_spawn.m4: New file.
40933
40934         New module 'spawn'.
40935         * modules/spawn: New file.
40936         * lib/spawn.in.h: New file, from GNU libc with modifications.
40937         * m4/spawn_h.m4: New file.
40938         * doc/posix-headers/spawn.texi: Mention the new module.
40939
40940 2008-09-28  Bruno Haible  <bruno@clisp.org>
40941
40942         * modules/sched-tests: New file.
40943         * tests/test-sched.c: New file.
40944
40945         New module 'sched'.
40946         * modules/sched: New file.
40947         * lib/sched.in.h: New file.
40948         * m4/sched_h.m4: New file.
40949         * doc/posix-headers/sched.texi: Mention the new module.
40950
40951 2008-09-27  Eric Blake  <ebb9@byu.net>
40952
40953         Fix previous patch, and tweak references to $0.
40954         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
40955         (func_version, func_gnulib_dir): Don't call this program
40956         gnulib-tool.
40957         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
40958         with using $0 in function.
40959         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
40960         (func_fatal_error): Reuse the name the user invoked us with.
40961
40962 2008-09-27  Bruno Haible  <bruno@clisp.org>
40963
40964         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
40965         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
40966         (gl_ICONV_H): Not here.
40967         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
40968         instead of assigning ICONV_H directly.
40969
40970         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
40971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
40972         WCHAR_H directly.
40973
40974 2008-09-27  Bruno Haible  <bruno@clisp.org>
40975
40976         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
40977         * modules/arpa_inet (Depends-on): Add link-warning.
40978         (Makefile.am): Insert the definition of GL_LINK-WARNING.
40979         * modules/unistd (Makefile.am): Likewise.
40980
40981 2008-09-26  Bruno Haible  <bruno@clisp.org>
40982
40983         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
40984         variables.
40985         (func_version): Essentially copied from gnulib-tool.
40986         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
40987         func_readlink): Copied from gnulib-tool.
40988
40989 2008-09-26  Bruno Haible  <bruno@clisp.org>
40990
40991         * gnulib-tool (func_version): Change directory to $gnulib_dir before
40992         invoking git-version-gen.
40993
40994 2008-09-26  Bruno Haible  <bruno@clisp.org>
40995
40996         * posix-modules: Update to directory names changed on 2008-01-19.
40997         Remove commas in output before splitting into words. No more need to
40998         avoid 'ftruncate' since 2007-02-19.
40999
41000 2008-09-26  Bruno Haible  <bruno@clisp.org>
41001
41002         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
41003
41004 2008-09-26  Bruno Haible  <bruno@clisp.org>
41005
41006         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
41007         * modules/fwriteerror (Depends-on): Add errno.
41008
41009 2008-09-26  Bruno Haible  <bruno@clisp.org>
41010
41011         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
41012         * tests/test-vc-list-files-cvs.sh: Likewise.
41013
41014 2008-09-26  Bruno Haible  <bruno@clisp.org>
41015
41016         * doc/posix-headers/sys_resource.texi: Reorder items.
41017
41018 2008-09-26  Jim Meyering  <meyering@redhat.com>
41019
41020         fts: tweak inode comparison function
41021         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
41022         inode numbers, as documented.
41023
41024         fts: sort dirent entries on inode number before traversing
41025         This avoids a quadratic, seek-related performance penalty when
41026         operating on a directory containing many entries (measurable at 10k;
41027         3.5 hours at 2 million entries with a cold cache) on certain types
41028         of file systems, including ext3 and ext4, but not tmpfs.
41029         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
41030         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
41031         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
41032         (fs_handles_readdir_ordered_dirents_efficiently): New function.
41033         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
41034         (fts_build): Set the stat.st_ino member from D_INO.
41035         If it is likely to be useful, sort dirent entries on inode number.
41036
41037         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
41038         and the struct statfs.f_type member.
41039         * modules/fts (Depends-on): Add d-ino.
41040
41041 2008-09-26  Bruno Haible  <bruno@clisp.org>
41042
41043         * modules/sigpipe-die (Depends-on): Add sigpipe.
41044
41045         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
41046         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
41047         and GNULIB_STDIO_H_SIGPIPE are set.
41048         * lib/stdio-write.c: New file.
41049         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
41050         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41051         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41052         REPLACE_STDIO_WRITE_FUNCS.
41053         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
41054         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41055         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41056         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41057         * modules/stdio (Files): Add lib/stdio-write.c.
41058         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
41059         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41060         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41061         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41062         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
41063         REPLACE_FPRINTF_POSIX.
41064         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
41065         REPLACE_PRINTF_POSIX.
41066         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
41067         REPLACE_VFPRINTF_POSIX.
41068         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
41069         REPLACE_VPRINTF_POSIX.
41070         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
41071         SIGPIPE issue.
41072         * doc/posix-functions/fputc.texi: Likewise.
41073         * doc/posix-functions/fputs.texi: Likewise.
41074         * doc/posix-functions/fwrite.texi: Likewise.
41075         * doc/posix-functions/printf.texi: Likewise.
41076         * doc/posix-functions/putc.texi: Likewise.
41077         * doc/posix-functions/putchar.texi: Likewise.
41078         * doc/posix-functions/puts.texi: Likewise.
41079         * doc/posix-functions/vfprintf.texi: Likewise.
41080         * doc/posix-functions/vprintf.texi: Likewise.
41081
41082         * modules/safe-write (Depends-on): Add write.
41083
41084         * modules/sigpipe-tests: New file.
41085         * tests/test-sigpipe.c: New file.
41086         * tests/test-sigpipe.sh: New file.
41087
41088         * modules/write: New file.
41089         * lib/unistd.in.h: Include <sys/types.h>.
41090         (write): New declaration.
41091         * lib/write.c: New file.
41092         * m4/write.m4: New file.
41093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41094         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
41095         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
41096         GNULIB_WRITE, REPLACE_WRITE.
41097         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
41098         and the SIGPIPE issue.
41099
41100         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
41101         (raise): New declaration.
41102         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
41103         (ext_signal): New function.
41104         (rpl_raise): New function.
41105         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41106         GNULIB_SIGNAL_H_SIGPIPE.
41107         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
41108         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
41109
41110         * modules/sigpipe: New file.
41111         * m4/sigpipe.m4: New file.
41112
41113 2008-09-25  Derek Price  <derek@ximbiot.com>
41114             Bruno Haible  <bruno@clisp.org>
41115
41116         * gnulib-tool (func_import): Report all license incompatibilities, not
41117         just the first one.
41118
41119 2008-09-25  Bruno Haible  <bruno@clisp.org>
41120
41121         * gnulib-tool (func_import): When computing the edits, consider not
41122         only the Makefile.ams that exist but also those that will be generated.
41123
41124 2008-09-25  Simon Josefsson  <simon@josefsson.org>
41125
41126         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
41127         fixes gnulib-tool --test warning about duplicate dependency.
41128
41129 2008-09-25  Bruno Haible  <bruno@clisp.org>
41130
41131         * gnulib-tool: Don't ask the user to perform edits in the generated
41132         Makefile.ams.
41133         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
41134         apply to the Makefile.am being generated.
41135         (func_emit_tests_Makefile_am): Execute edits that apply to the
41136         Makefile.am being generated.
41137         (func_import): Setup list of Makefile.am edits before emitting the
41138         Makefile.ams, not at the end.
41139         (func_create_testdir): Update.
41140         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41141
41142 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41143
41144         * gnulib-tool (func_import): Store the --tests-base option in the
41145         comment in gnulib-cache.m4.
41146
41147 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
41148
41149         * NEWS: Document increased portability that sys_select now provides.
41150
41151         * lib/sys_select.in.h: Install select wrapper.
41152         * lib/sys_socket.in.h: Use more descriptive name when there is no
41153         select wrapper.
41154         * lib/winsock-select.c: New.
41155         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
41156         Require gl_HEADER_SYS_SOCKET.
41157         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
41158         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
41159         * tests/test-sys_select.c: Add functional tests.
41160
41161 2008-09-24  Eric Blake  <ebb9@byu.net>
41162
41163         open, fopen: close fd leak in last patch
41164         * lib/open.c (rpl_open): Close fd before returning error.
41165         * lib/fopen.c (rpl_fopen): Close fd before returning error.
41166         * doc/posix-functions/open.texi (open): Document that Irix also
41167         has the bug.
41168         * doc/posix-functions/fopen.texi (fopen): Likewise.
41169         Reported by Paolo Bonzini.
41170
41171 2008-09-24  Bruno Haible  <bruno@clisp.org>
41172
41173         Ensure that a filename ending in a slash cannot be used to access a
41174         non-directory.
41175         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
41176         to check whether it's really a directory.
41177         * lib/fopen.c: Include fcntl.h, unistd.h.
41178         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
41179         and fdopen().
41180         * modules/fopen (Depends-on): Add unistd.
41181         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41182         * tests/test-fopen.c (main): Likewise.
41183         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
41184         * doc/posix-functions/fopen.texi: Likewise.
41185         Reported by Eric Blake.
41186
41187 2008-09-23  Eric Blake  <ebb9@byu.net>
41188
41189         c-stack: avoid compiler optimizations when provoking overflow
41190         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
41191         recursion harder to optimize, to ensure a stack overflow occurs.
41192         * tests/test-c-stack.c (recurse): Likewise.
41193         Borrowed from libsigsegv.
41194
41195         c-stack: work around Irix sigaltstack bug
41196         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
41197         whether sigaltstack uses wrong end of stack_t (copied in part from
41198         libsigsegv).
41199         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
41200         Irix bug, without requiring an over-allocation.
41201         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
41202         bug.
41203
41204         fopen: document mingw bug on directories
41205         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
41206         not allowing a stream visiting a directory, even though reading
41207         from such a stream is not portable.
41208
41209 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41210
41211         * lib/poll.c: Rewrite.
41212         * modules/poll: Depend on alloca.
41213
41214 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41215
41216         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41217         instead define prototypes for a full set of wrappers.  Ensure
41218         that Cygwin does not use the compatibility code, which is only
41219         for MinGW.
41220         * lib/winsock.c: New.
41221         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41222         * modules/sys_socket: Add lib/winsock.c.
41223
41224         * modules/poll-tests: Add errno and perror.
41225         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41226
41227 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41228
41229         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41230
41231 2008-09-23  Bruno Haible  <bruno@clisp.org>
41232
41233         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41234         * doc/glibc-functions/*: Likewise.
41235
41236 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41237
41238         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41239         success.
41240
41241 2008-09-22  Eric Blake  <ebb9@byu.net>
41242             Bruno Haible  <bruno@clisp.org>
41243
41244         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41245         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41246         supply %A but mishandle pseudo-NaN.
41247         Reported by Simon Josefsson.
41248
41249 2008-09-21  Bruno Haible  <bruno@clisp.org>
41250
41251         * tests/test-lock.c (main): Tweak skip message.
41252         * tests/test-tls.c (main): Likewise.
41253
41254 2008-09-21  Bruno Haible  <bruno@clisp.org>
41255
41256         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41257         whether 'struct sigaction' has sa_sigaction here...
41258         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41259         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41260
41261 2008-09-21  Bruno Haible  <bruno@clisp.org>
41262
41263         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41264         section.
41265         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41266         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41267         the new section.
41268         (Support for obsolete systems lacking POSIX:2001): New section.
41269         (String handling <string.h>): Move strdup to the new section.
41270         Suggested by Simon Josefsson and Paolo Bonzini.
41271
41272 2008-09-21  Bruno Haible  <bruno@clisp.org>
41273
41274         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41275         exponents in %e and %g results on 'long double'. Needed for mingw's
41276         improved *printf functions.
41277         * tests/test-vasprintf-posix.c (test_function): Likewise.
41278         * tests/test-snprintf-posix.h (test_function): Likewise.
41279         * tests/test-sprintf-posix.h (test_function): Likewise.
41280         Reported by Eric Blake.
41281
41282 2008-09-21  Bruno Haible  <bruno@clisp.org>
41283
41284         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41285         * tests/test-sprintf-posix.h (test_function): Likewise.
41286
41287 2008-09-21  Bruno Haible  <bruno@clisp.org>
41288
41289         * modules/getpass (Depends-on): Add strdup-posix.
41290
41291         New module 'strdup-posix'.
41292         * modules/strdup-posix: New file.
41293         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41294         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41296         REPLACE_STRDUP.
41297         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41298         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41299         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41300         strdup-posix.
41301
41302         * modules/strdup (Depends-on): Remove malloc-posix.
41303
41304 2008-09-20  Bruno Haible  <bruno@clisp.org>
41305
41306         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41307         Wildenhues.
41308
41309 2008-09-20  Bruno Haible  <bruno@clisp.org>
41310
41311         Ensure that wint_t gets defined on IRIX 5.3.
41312         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41313         * lib/wctype.in.h (wint_t): Likewise.
41314         (__wctype_wint_t): Remove type.
41315         (isw*): Use wint_t instead of __wctype_wint_t.
41316         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41317         * modules/wchar (Files): Add m4/wint_t.m4.
41318         (Makefile.am): Substitute HAVE_WINT_T.
41319         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41320         * tests/test-wctype.c: Check that wint_t is defined.
41321         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41322         * doc/posix-headers/wctype.texi: Likewise.
41323         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41324
41325 2008-09-18  Bruno Haible  <bruno@clisp.org>
41326
41327         * gnulib-tool (func_exit): Update comment.
41328
41329 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41330
41331         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41332         assumes strdup exists and does not depend on strdup to return
41333         ENOMEM on out of memory conditions.
41334
41335 2008-09-18  Bruno Haible  <bruno@clisp.org>
41336
41337         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
41338         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41339         digits for the exponent.
41340
41341 2008-09-18  Jim Meyering  <meyering@redhat.com>
41342             Bruno Haible  <bruno@clisp.org>
41343
41344         * lib/vasnprintf.c (decimal_point_char): Define also if
41345         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41346
41347 2008-09-16  Bruno Haible  <bruno@clisp.org>
41348         and Eric Blake  <ebb9@byu.net>
41349
41350         vasnprintf: support Irix 5.3
41351         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41352         that mishandle long double infinity.
41353         Reported by Tom G. Christensen.
41354
41355 2008-09-16  Bruno Haible  <bruno@clisp.org>
41356
41357         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41358         Solaris 9.
41359         * doc/glibc-functions/alphasort.texi: Likewise.
41360         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41361
41362 2008-09-16  Jim Meyering  <meyering@redhat.com>
41363
41364         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41365         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41366         a umask modification leak out of a subshell.  Otherwise, the
41367         opensolaris /bin/sh would be accepted and thus cause unwarranted
41368         failures in the coreutils test suite.
41369
41370 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41371
41372         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41373         to succeed.
41374
41375 2008-09-16  Jim Meyering  <meyering@redhat.com>
41376
41377         avoid spurious test failure when library is built without ACL support
41378         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41379         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41380         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41381         * tests/test-copy-acl.sh: Likewise.
41382
41383 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41384
41385         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41386         based on character occurrence counts.
41387
41388 2008-09-15  Eric Blake  <ebb9@byu.net>
41389
41390         tests: avoid some compiler warnings
41391         * tests/test-memchr.c (main): Pass NULL indirectly.
41392         * tests/test-closein.c (main): Avoid unused variable.
41393
41394 2008-09-15  Bruno Haible  <bruno@clisp.org>
41395
41396         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41397         are missing on OpenBSD 4.0 individually.
41398         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41399
41400 2008-09-15  Bruno Haible  <bruno@clisp.org>
41401
41402         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41403         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41404         * doc/posix-functions/perror.texi: Likewise.
41405         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41406         is missing.
41407         Reported by Eric Blake.
41408
41409         * lib/errno.in.h: Use replacement values >= 2000.
41410         Reported by Eric Blake.
41411
41412 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41413
41414         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41415         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41416         limit.
41417         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41418         compareseq was aborted.
41419
41420 2008-09-14  Bruno Haible  <bruno@clisp.org>
41421
41422         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41423         yvec_edit_count.
41424         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41425         (fstrcmp_bounded): Simplify result computation accordingly.
41426
41427 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41428
41429         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41430         (fstrcmp): Define in terms of fstrcmp_bounded.
41431         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41432         lower_bound argument.
41433         Return quickly if the result is certainly < lower_bound.
41434         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41435
41436 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41437
41438         * lib/diffseq.h (EARLY_ABORT): New macro.
41439         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41440         evaluates to true.
41441
41442 2008-09-14  Bruno Haible  <bruno@clisp.org>
41443
41444         * modules/perror-tests: New file.
41445         * tests/test-perror.sh: New file.
41446         * tests/test-perror.c: New file.
41447
41448         New module 'perror'.
41449         * lib/stdio.in.h (perror): New declaration.
41450         * lib/perror.c: New file.
41451         * m4/perror.m4: New file.
41452         * modules/perror: New file.
41453         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41454         * doc/posix-functions/perror.texi: Mention the perror module.
41455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41456         REPLACE_PERROR.
41457         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41458         REPLACE_PERROR.
41459
41460 2008-09-14  Bruno Haible  <bruno@clisp.org>
41461
41462         * modules/stdio (Makefile.am): Reorder to match the order in
41463         lib/stdio.in.h.
41464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41465
41466 2008-09-13  Bruno Haible  <bruno@clisp.org>
41467
41468         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41469
41470 2008-09-13  Bruno Haible  <bruno@clisp.org>
41471
41472         Extend strerror to cover the added errno values.
41473         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41474         (rpl_strerror): Provide error messages for the added errno values and
41475         for the WSA* values.
41476         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41477         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41478         strerror.
41479         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41480         * modules/strerror (Depends-on): Add errno.
41481         * doc/posix-functions/strerror.texi: Document the change.
41482         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41483         and EOVERFLOW.
41484
41485 2008-09-13  Bruno Haible  <bruno@clisp.org>
41486
41487         * modules/EOVERFLOW: Remove file.
41488         * m4/eoverflow.m4: Remove file.
41489         * modules/EOVERFLOW-tests: Remove file.
41490         * tests/test-EOVERFLOW.c: Remove file.
41491         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41492         * modules/ftell (Depends-on): Likewise.
41493         * modules/getdelim (Depends-on): Likewise.
41494         * modules/getugroups (Depends-on): Likewise.
41495         * modules/poll (Depends-on): Likewise.
41496         * modules/snprintf (Depends-on): Likewise.
41497         * modules/sprintf-posix (Depends-on): Likewise.
41498         * modules/vasnprintf (Depends-on): Likewise.
41499         * modules/vasprintf (Depends-on): Likewise.
41500         * modules/vfprintf-posix (Depends-on): Likewise.
41501         * modules/vsnprintf (Depends-on): Likewise.
41502         * modules/vsprintf-posix (Depends-on): Likewise.
41503         * modules/xvasprintf (Depends-on): Likewise.
41504         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41505         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41506         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41507         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41508         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41509         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41510         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41511         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41512         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41513         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41514         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41515         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41516         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41517         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41518         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41519         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41520         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41521         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41522         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41523         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41524         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41525         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41526         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41527         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41528         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41529         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41530         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41531         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41532         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41533         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41534         * MODULES.html.sh: Remove EOVERFLOW.
41535         * NEWS: Mention the change.
41536
41537 2008-09-13  Bruno Haible  <bruno@clisp.org>
41538
41539         * modules/errno-tests: New file.
41540         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41541
41542         * lib/errno.in.h: New file.
41543         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41544         * modules/errno: New file.
41545         * doc/posix-headers/errno.texi: Update documentation.
41546         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41547
41548 2008-09-13  Bruno Haible  <bruno@clisp.org>
41549
41550         * tests/test-poll.c: Use #if for native Windows, rather than testing
41551         __MSVCRT__.
41552
41553 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41554             Bruno Haible  <bruno@clisp.org>
41555
41556         * lib/glob.c: Don't include <pwd.h> on native Windows.
41557         (WINDOWS32): New macro.
41558         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41559
41560 2008-09-13  Bruno Haible  <bruno@clisp.org>
41561
41562         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41563         (ETIMEDOUT): Remove macro.
41564         (glthread_cond_timedwait_multithreaded): New declaration.
41565         (glthread_cond_timedwait): Use it.
41566         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41567         (glthread_cond_timedwait_multithreaded): New function.
41568
41569 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41570
41571         * modules/poll-tests: Do not check for io.h.
41572         * tests/test-poll.c: Check for __MSVCRT__ instead.
41573
41574 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41575
41576         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41577         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41578         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41579
41580 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41581
41582         * modules/poll-tests: New.
41583         * tests/test-poll.c: New.
41584
41585 2008-09-12  Eric Blake  <ebb9@byu.net>
41586
41587         frexp: test for NetBSD failure on -0.0
41588         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41589         not all, bugs from NetBSD 3.0 have been fixed.
41590         * doc/posix-functions/frexp.texi (frexp): Document bug.
41591         Reported by Thomas Klausner.
41592
41593         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41594         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41595         literal -0.0.
41596         Reported by Jonathan C. Patschke <jp@centtech.com>.
41597
41598 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41599
41600         * lib/glthread/cond.h: Use dummy implementation also if
41601         USE_WIN32_THREADS.
41602
41603 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41604
41605         * modules/fnmatch-posix (License): Change to LGPLv2+.
41606         * modules/fnmatch-gnu (License): Likewise.
41607
41608 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41609
41610         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41611
41612 2008-09-11  Jim Meyering  <meyering@redhat.com>
41613
41614         * users.txt: Add gtk-vnc.
41615
41616 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41617
41618         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41619         rotate amounts.
41620
41621         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41622         required for 16-bit and 8-bit rotates.
41623         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41624         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41625         UINT8_MAX instead of hard-coded constants.
41626         Suggested by Paul Eggert.
41627
41628 2008-09-07  Bruno Haible  <bruno@clisp.org>
41629
41630         * tests/test-striconveh.c (main): Check behaviour when converting from
41631         UTF-7.
41632
41633         Make striconveh work better with stateful encodings.
41634         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41635         that iconv does not increment the inptr when returning -1/EINVAL.
41636
41637 2008-09-07  Bruno Haible  <bruno@clisp.org>
41638
41639         * build-aux/config.rpath: Update according to libtool-2.2.6.
41640         * build-aux/config.libpath: Likewise.
41641
41642 2008-09-06  Bruno Haible  <bruno@clisp.org>
41643
41644         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41645         * lib/freadptr.c (freadptr): Likewise.
41646         * lib/freadseek.c (freadptrinc): Likewise.
41647         Reported by Simon Josefsson.
41648
41649 2008-09-06  Bruno Haible  <bruno@clisp.org>
41650
41651         * modules/freadptr (License): Change to LGPLv2+.
41652         * modules/freadseek (License): Likewise.
41653         Suggested by Eric Blake.
41654
41655         * modules/memchr2 (License): Change to LGPLv2+.
41656         Approved by Eric Blake.
41657
41658 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41659             Bruno Haible  <bruno@clisp.org>
41660
41661         Make gnulib-tool work with native 'sed' on AIX.
41662         * gnulib-tool (sed_noop): New variable.
41663         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41664         func_add_or_update, func_create_testdir): Use it to initialize sed
41665         script variables.
41666         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41667
41668 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41669             Bruno Haible  <bruno@clisp.org>
41670
41671         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41672         also works after #include directives.
41673
41674 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
41675
41676         getdate.y: reject an out-of-range timezone value
41677         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41678         the range [-24...+24].  When specified with only one or two digits,
41679         * tests/test-getdate.c: Tests for the fix.
41680         * doc/getdate.texi: Document this change.
41681
41682 2008-09-03  Bruno Haible  <bruno@clisp.org>
41683
41684         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41685
41686 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41687
41688         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41689         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41690         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41691         Blake <ebb9@byu.net>.
41692
41693         * tests/test-bitrotate.c: Add more test vectors.
41694
41695 2008-09-02  Eric Blake  <ebb9@byu.net>
41696
41697         vasnprintf-posix: handle large precision via %.*d
41698         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41699         when handling it ourselves.
41700         * tests/test-vasnprintf-posix.c (test_function): Add test.
41701         * tests/test-snprintf-posix.h (test_function): Likewise.
41702         * tests/test-sprintf-posix.h (test_function): Likewise.
41703         * tests/test-vasprintf-posix.c (test_function): Likewise.
41704         Reported by Alain Guibert.
41705
41706 2008-09-01  Eric Blake  <ebb9@byu.net>
41707
41708         c-stack: make configure-time check more robust
41709         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41710         successful sigaction call.
41711         Reported by Tom G. Christensen.
41712
41713 2008-09-01  Bruno Haible  <bruno@clisp.org>
41714
41715         New module 'findprog-lgpl'.
41716         * modules/findprog-lgpl: New file.
41717         * lib/findprog-lgpl.c: New file.
41718         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41719         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41720         to decide whether to use strdup or xstrdup, concatenated_filename or
41721         xconcatenated_filename.
41722
41723 2008-09-01  Bruno Haible  <bruno@clisp.org>
41724
41725         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41726         'xconcat-filename' (GPL).
41727         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41728         (License): Change to LGPLv2+.
41729         * modules/xconcat-filename: New file.
41730         * lib/concat-filename.h (concatenated_filename): Change specification.
41731         (xconcatenated_filename): New declaration.
41732         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41733         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41734         memory situations.
41735         * lib/xconcat-filename.c: New file.
41736         * NEWS: Mention the change.
41737         * lib/findprog.c: Include concat-filename.h, not filename.h.
41738         (find_in_path): Use xconcatenated_filename instead of
41739         concatenated_filename.
41740         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41741         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41742         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41743         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41744         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41745         instead of concatenated_filename.
41746         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41747         (execute_java_class): Use xconcatenated_filename instead of
41748         concatenated_filename.
41749         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41750         * modules/javacomp (Depends-on): Likewise.
41751         * modules/javaexec (Depends-on): Likewise.
41752
41753 2008-09-01  Bruno Haible  <bruno@clisp.org>
41754
41755         Split module 'filename' into 'filename' and 'concat-filename'.
41756         * modules/filename: Keep only lib/filename.h.
41757         (License): Change to LGPLv2+.
41758         * modules/concat-filename: New file, extracted from modules/filename.
41759         * lib/filename.h (concatenated_filename): Remove declaration.
41760         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41761         * lib/concat-filename.c: Include concat-filename.h.
41762         * NEWS: Mention the change.
41763
41764 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41765
41766         * lib/bitrotate.h (rotl8, rotr8): Add.
41767
41768         * modules/bitrotate (configure.ac): Need
41769         AC_REQUIRE([AC_C_INLINE]).
41770         (Description): Mention stdint.h.  Reported by Bruno Haible
41771         <bruno@clisp.org>.
41772
41773         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41774         Paolo Bonzini <bonzini@gnu.org>.
41775
41776 2008-08-31  Bruno Haible  <bruno@clisp.org>
41777
41778         Assume Solaris specific bi-arch conventions on Solaris systems.
41779         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
41780         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
41781         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
41782         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
41783         like acl_libdirstem.
41784         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
41785         acl_libdirstem.
41786         * NEWS: Mention the change.
41787         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
41788
41789 2008-08-31  Jim Meyering  <meyering@redhat.com>
41790
41791         * lib/strftime.h: Add comments describing the two added arguments.
41792
41793         remove duplicate #include directives
41794         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
41795         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
41796
41797 2008-08-31  Bruno Haible  <bruno@clisp.org>
41798
41799         New module 'sigpipe-die'.
41800         * modules/sigpipe-die: New file.
41801         * lib/sigpipe-die.h: New file.
41802         * lib/sigpipe-die.c: New file.
41803         * MODULES.html.sh (Signal handling): Add sigpipe-die.
41804
41805 2008-08-31  Bruno Haible  <bruno@clisp.org>
41806
41807         Don't override previously installed signal handlers.
41808         * lib/fatal-signal.c (saved_sigactions): New variable.
41809         (uninstall_handlers): Reset the signal to the saved handler, not
41810         to SIG_DFL (except when ignored).
41811         (install_handlers): Save the previous handlers.
41812
41813 2008-08-30  Bruno Haible  <bruno@clisp.org>
41814
41815         * gnulib-tool (func_reset_sigpipe): New function.
41816         (func_get_automake_snippet, func_modules_transitive_closure,
41817         func_import): Invoke it before a join command that reads from stdin,
41818         to avoid "echo: write error: Broken pipe" error messages on stderr.
41819         Reported by Sam Steingold <sds@gnu.org>.
41820
41821 2008-08-30  Bruno Haible  <bruno@clisp.org>
41822
41823         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
41824         Code copied from m4/open.m4.
41825         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
41826         access and the filename ends in a slash. Code copied from lib/open.c.
41827         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
41828         * tests/test-fopen.c (main): Check against bug with trailing slash.
41829
41830 2008-08-29  Bruno Haible  <bruno@clisp.org>
41831
41832         Avoid some "gcc -pedantic" warnings.
41833         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
41834         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
41835         * lib/dirent.in.h: Likewise.
41836         * lib/fcntl.in.h: Likewise.
41837         * lib/float.in.h: Likewise.
41838         * lib/iconv.in.h: Likewise.
41839         * lib/inttypes.in.h: Likewise.
41840         * lib/locale.in.h: Likewise.
41841         * lib/math.in.h: Likewise.
41842         * lib/netinet_in.in.h: Likewise.
41843         * lib/search.in.h: Likewise.
41844         * lib/signal.in.h: Likewise.
41845         * lib/stdarg.in.h: Likewise.
41846         * lib/stdint.in.h: Likewise.
41847         * lib/stdio.in.h: Likewise.
41848         * lib/stdlib.in.h: Likewise.
41849         * lib/string.in.h: Likewise.
41850         * lib/strings.in.h: Likewise.
41851         * lib/sys_select.in.h: Likewise.
41852         * lib/sys_socket.in.h: Likewise.
41853         * lib/sys_stat.in.h: Likewise.
41854         * lib/sys_time.in.h: Likewise.
41855         * lib/sysexits.in.h: Likewise.
41856         * lib/time.in.h: Likewise.
41857         * lib/unistd.in.h: Likewise.
41858         * lib/wchar.in.h: Likewise.
41859         * lib/wctype.in.h: Likewise.
41860         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
41861         * modules/fchdir (Makefile.am): Likewise.
41862         * modules/fcntl (Makefile.am): Likewise.
41863         * modules/float (Makefile.am): Likewise.
41864         * modules/iconv_open (Makefile.am): Likewise.
41865         * modules/inttypes (Makefile.am): Likewise.
41866         * modules/locale (Makefile.am): Likewise.
41867         * modules/math (Makefile.am): Likewise.
41868         * modules/netinet_in (Makefile.am): Likewise.
41869         * modules/search (Makefile.am): Likewise.
41870         * modules/signal (Makefile.am): Likewise.
41871         * modules/stdarg (Makefile.am): Likewise.
41872         * modules/stdint (Makefile.am): Likewise.
41873         * modules/stdio (Makefile.am): Likewise.
41874         * modules/stdlib (Makefile.am): Likewise.
41875         * modules/string (Makefile.am): Likewise.
41876         * modules/strings (Makefile.am): Likewise.
41877         * modules/sys_select (Makefile.am): Likewise.
41878         * modules/sys_socket (Makefile.am): Likewise.
41879         * modules/sys_stat (Makefile.am): Likewise.
41880         * modules/sys_time (Makefile.am): Likewise.
41881         * modules/sysexits (Makefile.am): Likewise.
41882         * modules/time (Makefile.am): Likewise.
41883         * modules/unistd (Makefile.am): Likewise.
41884         * modules/wchar (Makefile.am): Likewise.
41885         * modules/wctype (Makefile.am): Likewise.
41886         Reported by Reuben Thomas <rrt@sc3d.org>.
41887
41888 2008-08-29  Bruno Haible  <bruno@clisp.org>
41889
41890         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
41891         any more.
41892
41893 2008-08-29  Simon Josefsson  <simon@josefsson.org>
41894
41895         * MODULES.html.sh (Misc): Add bitrotate.
41896
41897         * modules/bitrotate: New file.
41898
41899         * lib/bitrotate.h: New file.
41900
41901         * modules/bitrotate-tests: New file.
41902
41903         * tests/test-bitrotate.c: New file.
41904
41905         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
41906         on the bitrotate module.
41907
41908         * lib/arctwo.c: Use new bitrotate module.
41909
41910 2008-08-29  Jim Meyering  <meyering@redhat.com>
41911
41912         bootstrap: merge changes from coreutils
41913         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
41914         of copied files.  Remove a kludge, now that this is fixed.
41915         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
41916         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
41917         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
41918
41919 2008-08-29  Bruno Haible  <bruno@clisp.org>
41920
41921         * MODULES.html.sh: Remove --cvs-urls option.
41922
41923 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
41924
41925         maint.mk: adjust to file name change
41926         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
41927
41928 2008-08-28  Jim Meyering  <meyering@redhat.com>
41929
41930         * modules/getndelim2 (License): Relicense to LGPLv2+.
41931         Approved by Richard Stallman for the version of 1995, and by
41932         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
41933
41934 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
41935
41936         * lib/getdelim.c (flockfile, funlockfile): Make all of them
41937         dummy if one is not available.  Do not touch them if
41938         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
41939         (getc_maybe_unlocked): New.
41940         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
41941
41942 2008-08-26  Eric Blake  <ebb9@byu.net>
41943
41944         doc/INSTALL: resync from autoconf
41945         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
41946         (INSTALL_PRELUDE): Delete; this is done more efficiently by
41947         moving...
41948         * install.texi [!autoconf]: ...here.  Resync from autoconf.
41949         * INSTALL: Regenerate.
41950         * INSTALL.ISO: New file.
41951         * INSTALL.UTF-8: Likewise.
41952
41953 2008-08-26  Jim Meyering  <meyering@redhat.com>
41954
41955         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
41956         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
41957         these definitions conditional, so that they may be overridden, too.
41958
41959 2008-08-26  Bruno Haible  <bruno@clisp.org>
41960
41961         Generate INSTALL file variants with prettier quotes.
41962         * doc/Makefile (INSTALL_PRELUDE): New macro.
41963         (INSTALL): Use it.
41964         (INSTALL.ISO, INSTALL.UTF-8): New rules.
41965
41966 2008-08-26  Bruno Haible  <bruno@clisp.org>
41967
41968         Run makeinfo in an English locale.
41969         * doc/Makefile (MAKEINFO): New variable.
41970
41971 2008-08-26  Bruno Haible  <bruno@clisp.org>
41972
41973         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
41974         Suggested by Eric Blake.
41975
41976 2008-08-25  Bruno Haible  <bruno@clisp.org>
41977
41978         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
41979
41980 2008-08-25  Eric Blake  <ebb9@byu.net>
41981
41982         c-stack: test that stack overflow can be caught
41983         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
41984         that platform allows handling stack overflow; at least OS/2 EMX
41985         has sigaltstack, but crashes before transferring control to
41986         handler on stack overflow.
41987         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
41988         check for HAVE_STACK_OVERFLOW_HANDLING.
41989         Reported by Elbert Pol.
41990
41991 2008-08-25  Bruno Haible  <bruno@clisp.org>
41992
41993         * doc/posix-functions/strftime.texi: Fix description of strftime
41994         module.
41995
41996 2008-08-24  Bruno Haible  <bruno@clisp.org>
41997
41998         * tests/uniwidth/test-uc_width2.c: New file.
41999         * tests/uniwidth/test-uc_width2.sh: New file.
42000         * modules/uniwidth/width-tests (Files): Add the new files.
42001         (TESTS): Add uniwidth/test-uc_width2.sh.
42002         (TESTS_ENVIRONMENT): New variable.
42003         (check_PROGRAMS): Add test-uc_width2.
42004         (test_uc_width2_SOURCES): New variable.
42005
42006         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
42007         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
42008         not 0x00AB.
42009         Reported by Alexander V. Lukyanov <lav@netis.ru>.
42010
42011 2008-08-22  Eric Blake  <ebb9@byu.net>
42012
42013         test-lock, test-tls: mention why a test is skipped
42014         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
42015         skipped.
42016         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
42017
42018         count-one-bits: relax license
42019         * modules/count-one-bits (License): Relicense to LGPLv2+.
42020         Suggested by Ludovic Courtès, approved by Ben Pfaff.
42021
42022 2008-08-22  Andreas Schwab  <schwab@suse.de>
42023
42024         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42025         Remove spurious space in assignment.
42026
42027 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42028
42029         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
42030         Paul Eggert <eggert@CS.UCLA.EDU>.
42031
42032 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
42033
42034         * modules/gettext: Add m4/threadlib.m4.
42035
42036 2008-08-19  Eric Blake  <ebb9@byu.net>
42037
42038         test-c-stack: fix compilation failure on FreeBSD 5.0
42039         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
42040         headers before <sys/resource.h>.
42041         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
42042         the bug.
42043         Reported by Nelson H. F. Beebe.
42044
42045         strverscmp: migrate from "strverscmp.h" to <string.h>
42046         * modules/string (Makefile.am): Add new hooks.
42047         * modules/strverscmp (Files): Remove strverscmp.h.
42048         (Depends-on): Add string.
42049         (configure.ac): Add indicator.
42050         (Include): Mention new header.
42051         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
42052         defaults.
42053         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
42054         results.
42055         * lib/strverscmp.h: Delete.
42056         * lib/string.in.h (strverscmp): Provide declaration, when needed.
42057         * tests/test-strverscmp.c (includes): Adjust client.
42058         * lib/check-version.c (includes): Likewise.
42059         * NEWS: Document the change.
42060
42061         strverscmp: add unit test
42062         * modules/strverscmp-tests: New file.
42063         * tests/test-strverscmp.c: Likewise.
42064
42065 2008-08-19  Simon Josefsson  <simon@josefsson.org>
42066
42067         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
42068         regarding Windows crypto stuff, from Mono.
42069
42070 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
42071
42072         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
42073         if present, for intel RND.  Return error on failures.
42074
42075 2008-08-18  Ben Pfaff  <blp@gnu.org>
42076
42077         gitlog-to-changelog: give better diagnostic for failed pipe-open
42078         * build-aux/gitlog-to-changelog: Improve error message: suggest
42079         that the version of Git may be too old.
42080
42081 2008-08-18  Simon Josefsson  <simon@josefsson.org>
42082
42083         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
42084         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
42085
42086 2008-08-18  Bruno Haible  <bruno@clisp.org>
42087
42088         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
42089         pthread_in_use().
42090
42091 2008-08-18  Bruno Haible  <bruno@clisp.org>
42092
42093         * lib/glthread/threadlib.c: Include <pthread.h>.
42094
42095 2008-08-18  Bruno Haible  <bruno@clisp.org>
42096
42097         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
42098         glthread_recursive_lock_* macros.
42099         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
42100         Fix syntax error.
42101
42102 2008-08-18  Bruno Haible  <bruno@clisp.org>
42103
42104         * lib/glthread/thread.c: Avoid forcing a context switch right after
42105         thread creation.
42106
42107 2008-08-17  Bruno Haible  <bruno@clisp.org>
42108
42109         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
42110         * lib/glthread/thread.h: Provide Win32 specific implementation.
42111         * modules/thread (Files): Add lib/glthread/thread.c.
42112         (Depends-on): Add lock.
42113         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
42114
42115 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42116
42117         New module 'yield'.
42118         * modules/yield: New file.
42119         * lib/glthread/yield.h: New file.
42120         * m4/yield.m4: New file.
42121         * MODULES.html.sh (Multithreading): Add yield.
42122
42123 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42124
42125         New module 'thread'.
42126         * modules/thread: New file.
42127         * lib/glthread/thread.h: New file.
42128         * m4/thread.m4: New file.
42129         * MODULES.html.sh (Multithreading): Add thread.
42130
42131 2008-08-17  Bruno Haible  <bruno@clisp.org>
42132
42133         * lib/glthread/lock.h: Include <stdlib.h> always.
42134         * lib/glthread/tls.h: Likewise.
42135         * lib/glthread/cond.h: Likewise.
42136
42137 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42138
42139         New module 'cond'.
42140         * modules/cond: New file.
42141         * lib/glthread/cond.h: New file.
42142         * lib/glthread/cond.c: New file.
42143         * m4/cond.m4: New file.
42144         * MODULES.html.sh (Multithreading): Add cond.
42145
42146 2008-08-16  Eric Blake  <ebb9@byu.net>
42147
42148         c-stack: fix regression on Irix 5.3 from 2008-06-21
42149         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
42150         sa_sigaction...
42151         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
42152         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
42153         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
42154         * modules/signal (Makefile.am): Use the value.
42155         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
42156         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
42157         * doc/posix-headers/signal.texi (signal.h): Document this
42158         portability issue.
42159         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
42160         Reported by Tom G. Christensen.
42161
42162 2008-08-17  Bruno Haible  <bruno@clisp.org>
42163
42164         New module 'threadlib'.
42165         * modules/threadlib: New file.
42166         * lib/glthread/threadlib.c: New file, extracted from
42167         lib/glthread/lock.c.
42168         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
42169         functions.
42170         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
42171         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
42172         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
42173         macros.
42174         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
42175         (gl_DISABLE_THREADS): Remove macro.
42176         * modules/lock (Files): Remove build-aux/config.rpath.
42177         (Depends-on): Remove havelib. Add threadlib.
42178         (configure.ac-early): Remove section.
42179         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
42180         * modules/tls (Depends-on): Remove lock. Add threadlib.
42181         (Link): New section, copied from threadlib.
42182         * MODULES.html.sh (Multithreading): Add threadlib.
42183
42184 2008-08-14  Bruno Haible  <bruno@clisp.org>
42185
42186         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
42187         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
42188         glthread_rwlock_unlock, glthread_rwlock_destroy,
42189         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
42190         glthread_recursive_lock_destroy): Define as macros always.
42191         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
42192         glthread_lock_lock.
42193         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
42194         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
42195         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
42196         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
42197         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
42198         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
42199         (glthread_recursive_lock_lock_func): Renamed from
42200         glthread_recursive_lock_lock.
42201         (glthread_recursive_lock_unlock_func): Renamed from
42202         glthread_recursive_lock_unlock.
42203         (glthread_recursive_lock_destroy_func): Renamed from
42204         glthread_recursive_lock_destroy.
42205
42206 2008-08-14  Bruno Haible  <bruno@clisp.org>
42207
42208         * lib/glthread/lock.h: Renamed from lib/lock.h.
42209         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42210         * lib/glthread/tls.h: Renamed from lib/tls.h.
42211         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42212         * lib/fstrcmp.c: Update includes.
42213         * lib/strsignal.c: Update includes.
42214         * modules/lock (Files, Makefile.am): Update.
42215         (Include): Change to "glthread/lock.h".
42216         * modules/tls (Files, Makefile.am): Update.
42217         (Include): Change to "glthread/tls.h".
42218         * tests/test-lock.c: Update includes.
42219         * tests/test-tls.c: Update includes.
42220         * NEWS: Mention the renamed header files.
42221
42222 2008-08-11  Jim Meyering  <meyering@redhat.com>
42223
42224         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42225
42226 2008-08-11  Eric Blake  <ebb9@byu.net>
42227
42228         test-c-stack: avoid C99-ism
42229         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42230         before statement.
42231         Reported by Alain Guibert.
42232
42233 2008-08-10  Jim Meyering  <meyering@redhat.com>
42234
42235         ensure that return value of uinttostr et al are not ignored
42236         * lib/inttostr.h (__GNUC_PREREQ): Define.
42237         (__attribute_warn_unused_result__): Define.
42238         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42239
42240 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42241
42242         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42243         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42244
42245 2008-08-07  Jim Meyering  <meyering@redhat.com>
42246
42247         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42248
42249         * modules/mkstemp (License): Relicense under LGPLv2+.
42250         * modules/tempname (License): Likewise.
42251
42252 2008-08-06  Bruno Haible  <bruno@clisp.org>
42253
42254         * lib/poll.c (poll): Further micro-optimization.
42255
42256 2008-08-06  Jim Meyering  <meyering@redhat.com>
42257
42258         inet_pton.c: use locale-independent tolower
42259         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42260         (inet_pton6): Use c_tolower rather than tolower.
42261         * modules/inet_pton (Depends-on): Add c-ctype.
42262
42263 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42264
42265         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42266         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42267
42268 2008-08-06  Jim Meyering  <meyering@redhat.com>
42269
42270         * modules/inet_pton (License): Relicense under LGPLv2+.
42271
42272 2008-08-03  Bruno Haible  <bruno@clisp.org>
42273
42274         Additional non-aborting API for lock and tls.
42275         * lib/lock.h: Include <errno.h>.
42276         (glthread_lock_init): New macro/function.
42277         (gl_lock_init): Define as wrapper around glthread_lock_init.
42278         (glthread_lock_lock): New macro/function.
42279         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42280         (glthread_lock_unlock): New macro/function.
42281         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42282         (glthread_lock_destroy): New macro/function.
42283         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42284         (glthread_rwlock_init): New macro/function.
42285         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42286         (glthread_rwlock_rdlock): New macro/function.
42287         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42288         (glthread_rwlock_wrlock): New macro/function.
42289         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42290         (glthread_rwlock_unlock): New macro/function.
42291         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42292         (glthread_rwlock_destroy): New macro/function.
42293         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42294         (glthread_recursive_lock_init): New macro/function.
42295         (gl_recursive_lock_init): Define as wrapper around
42296         glthread_recursive_lock_init.
42297         (glthread_recursive_lock_lock): New macro/function.
42298         (gl_recursive_lock_lock): Define as wrapper around
42299         glthread_recursive_lock_lock.
42300         (glthread_recursive_lock_unlock): New macro/function.
42301         (gl_recursive_lock_unlock): Define as wrapper around
42302         glthread_recursive_lock_unlock.
42303         (glthread_recursive_lock_destroy): New macro/function.
42304         (gl_recursive_lock_destroy): Define as wrapper around
42305         glthread_recursive_lock_destroy.
42306         (glthread_once): New macro/function.
42307         (gl_once): Define as wrapper around glthread_once.
42308         Update function declarations.
42309         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42310         glthread_rwlock_init. Return error code.
42311         (glthread_rwlock_rdlock_multithreaded): Renamed from
42312         glthread_rwlock_rdlock. Return error code.
42313         (glthread_rwlock_wrlock_multithreaded): Renamed from
42314         glthread_rwlock_wrlock. Return error code.
42315         (glthread_rwlock_unlock_multithreaded): Renamed from
42316         glthread_rwlock_unlock. Return error code.
42317         (glthread_rwlock_destroy_multithreaded): Renamed from
42318         glthread_rwlock_destroy. Return error code.
42319         (glthread_recursive_lock_init_multithreaded): Renamed from
42320         glthread_recursive_lock_init. Return error code.
42321         (glthread_recursive_lock_lock_multithreaded): Renamed from
42322         glthread_recursive_lock_lock. Return error code.
42323         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42324         glthread_recursive_lock_unlock. Return error code.
42325         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42326         glthread_recursive_lock_destroy. Return error code.
42327         (glthread_once_call): Make static.
42328         (glthread_once_multithreaded): Renamed from glthread_once.
42329         * lib/tls.h: Include <errno.h>.
42330         (glthread_tls_key_init): New macro/function.
42331         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42332         (glthread_tls_set): New macro/function.
42333         (gl_tls_set): Define as wrapper around glthread_tls_set.
42334         (glthread_tls_key_destroy): New macro/function.
42335         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42336         Update function declarations.
42337         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42338         glthread_tls_get.
42339         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42340
42341 2008-08-04  Eric Blake  <ebb9@byu.net>
42342
42343         gnumakefile: use space, not TAB, outside of targets
42344         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42345
42346 2008-08-02  Jim Meyering  <meyering@redhat.com>
42347
42348         getdate.y: avoid locale-dependent date parsing failure
42349         In Turkish locales, getdate would fail to recognize keywords
42350         containing a lowercase "i".  The solution is not to rely on
42351         locale-sensitive case-conversion.
42352         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42353         (lookup_word): Use c_toupper in place of toupper.
42354         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42355         Reported by Vefa Bicakci <bicave@superonline.com> in
42356         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42357         * modules/getdate (Depends-on): Add c-ctype.
42358
42359 2008-08-02  Bruno Haible  <bruno@clisp.org>
42360
42361         * gnulib-tool (func_import): When updating or creating a .gitignore
42362         file, prepend each added line with a slash, and ignore leading slashes
42363         from the existing lines.
42364         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42365
42366 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42367
42368         Portability fix for GNU make 3.79.1.
42369         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42370         versions do not understand.
42371
42372 2008-08-01  Bruno Haible  <bruno@clisp.org>
42373
42374         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42375         * tests/test-isnanf.h (zero): New variable.
42376         (main): Avoid literal -0.0f.
42377         * tests/test-isnand.h (zero): New variable.
42378         (main): Avoid literal -0.0.
42379         * tests/test-isnanl.h (zero): New variable.
42380         (main): Avoid literal -0.0L.
42381         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42382         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42383         -0.0, -0.0L.
42384         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42385         (test_signbitd): Avoid literal -0.0.
42386         (test_signbitl): Avoid literal -0.0L.
42387         * tests/test-ceilf1.c (zero): New variable.
42388         (main): Avoid literal -0.0f.
42389         * tests/test-ceill.c (zero): New variable.
42390         (main): Avoid literal -0.0L.
42391         * tests/test-floorf1.c (zero): New variable.
42392         (main): Avoid literal -0.0f.
42393         * tests/test-floorl.c (zero): New variable.
42394         (main): Avoid literal -0.0L.
42395         * tests/test-roundf1.c (zero): New variable.
42396         (main): Avoid literal -0.0f.
42397         * tests/test-round1.c (zero): New variable.
42398         (main): Avoid literal -0.0.
42399         * tests/test-roundl.c (zero): New variable.
42400         (main): Avoid literal -0.0L.
42401         * tests/test-truncf1.c (zero): New variable.
42402         (main): Avoid literal -0.0f.
42403         * tests/test-trunc1.c (zero): New variable.
42404         (main): Avoid literal -0.0.
42405         * tests/test-truncl.c (zero): New variable.
42406         (main): Avoid literal -0.0L.
42407         * tests/test-frexp.c (zero): New variable.
42408         (main): Avoid literal -0.0.
42409         * tests/test-frexpl.c (zero): New variable.
42410         (main): Avoid literal -0.0L.
42411         * tests/test-ldexpl.c (zero): New variable.
42412         (main): Avoid literal -0.0L.
42413         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42414         (zerod, zerol): New variables.
42415         (test_function): Avoid literals -0.0, -0.0L.
42416         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42417         (zerod, zerol): New variables.
42418         (test_function): Avoid literals -0.0, -0.0L.
42419         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42420         (zerod, zerol): New variables.
42421         (test_function): Avoid literals -0.0, -0.0L.
42422         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42423         (zerod, zerol): New variables.
42424         (test_function): Avoid literals -0.0, -0.0L.
42425         * tests/test-strtod.c (zero): New variable.
42426         (main): Avoid literal -0.0.
42427         Reported by Jonathan C. Patschke <jp@centtech.com>.
42428
42429 2008-07-31  Jim Meyering  <meyering@redhat.com>
42430
42431         sha256.h: correct definition of SHA224_DIGEST_SIZE
42432         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42433         Reported by Paulie Pena IV <paulie4@gmail.com>.
42434         Define as 224 / 8, rather than as a literal.
42435         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42436         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42437         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42438
42439 2008-07-31  Bruno Haible  <bruno@clisp.org>
42440
42441         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42442         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42443         Reported by Jonathan Patschke <jp@centtech.com>.
42444
42445 2008-07-31  Bruno Haible  <bruno@clisp.org>
42446
42447         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42448         Reported by Paolo Bonzini <bonzini@gnu.org>.
42449
42450 2008-07-30  Eric Blake  <ebb9@byu.net>
42451
42452         test-strtod: allow compilation without -lm
42453         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42454         Reported by Dennis Clarke <blastwave@gmail.com>.
42455
42456 2008-07-28  Jim Meyering  <meyering@redhat.com>
42457
42458         bootstrap: work also when there are no .po files in po/
42459         * build-aux/bootstrap (update_po_files): Complete the change
42460         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42461
42462 2008-07-27  Jim Meyering  <meyering@redhat.com>
42463
42464         * users.txt: Add zile.
42465
42466 2008-07-26  Ben Pfaff  <blp@gnu.org>
42467
42468         Add missing dependencies on new m4/exponent[fdl].m4 files.
42469         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42470         * modules/isnand-nolibm: Add m4/exponentd.m4.
42471         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42472         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42473         m4/isnan[fdl].m4, because the macros actually used moved.
42474         Reported by Jim Meyering.
42475
42476 2008-07-14  Ben Pfaff  <blp@gnu.org>
42477
42478         Add isinf module.
42479         * lib/isinf.c: New file.
42480         * lib/math.in.h: Define isinf macro if we have decided to replace
42481         it.
42482         * m4/isinf.m4: New file.
42483         * m4/math_h.m4: Initialize and substitute variables for isinf
42484         module.
42485         * modules/isinf: New file.
42486         * modules/isinf-tests: New file.
42487         * modules/math: Add substitutions for new module.
42488         * tests/test-isinf.c: New file.
42489         * doc/posix-functions/isinf.texi: Mention new module.
42490         * MODULES.html.sh: Mention new module.
42491
42492 2008-07-14  Ben Pfaff  <blp@gnu.org>
42493
42494         Factor out some macros for use by additional modules.
42495         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42496         exponentf.m4.
42497         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42498         exponentd.m4.
42499         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42500         file exponentl.m4.
42501         * m4/exponentf.m4: New file.
42502         * m4/exponentd.m4: New file.
42503         * m4/exponentl.m4: New file.
42504         * modules/isnanf: Use new file m4/exponentf.m4.
42505         * modules/isnand: Use new file m4/exponentd.m4.
42506         * modules/isnanl: Use new file m4/exponentl.m4.
42507
42508 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42509
42510         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42511         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42512         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42513         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42514
42515         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42516         readlink on platforms without PATH_MAX.
42517
42518 2008-07-21  Eric Blake  <ebb9@byu.net>
42519
42520         Warn, not fail, on stale version.
42521         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42522
42523         Don't allow installation with stale devel version number.
42524         * top/GNUmakefile (_is-install-target): New macro.
42525         (_curr-ver): Forbid installation with stale version number.
42526
42527 2008-07-20  Bruno Haible  <bruno@clisp.org>
42528
42529         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42530         TESTS_ENVIRONMENT.
42531         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42532
42533 2008-07-20  Bruno Haible  <bruno@clisp.org>
42534
42535         * lib/c-stack.h (c_stack_action): Add documentation.
42536         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42537
42538 2008-07-20  Bruno Haible  <bruno@clisp.org>
42539
42540         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42541         * modules/readlink (License): Likewise.
42542
42543 2008-07-17  Eric Blake  <ebb9@byu.net>
42544
42545         * modules/c-stack (Link): Fix typo.
42546
42547         Make c-stack use libsigsegv, when available.
42548         * modules/c-stack (Depends-on): Add libsigsegv.
42549         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42550         needed.
42551         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42552         (segv_handler, overflow_handler, c_stack_action)
42553         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42554         implementation when libsigsegv is available, but only when using
42555         the library is necessary.
42556         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42557         comment, explaining why XSI check fails on Linux.
42558         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42559         * tests/test-c-stack2.sh: Tweak skip message.
42560         * NEWS: Document new link-time requirements.
42561
42562 2008-07-16  Eric Blake  <ebb9@byu.net>
42563
42564         c-stack: Expose false positives when not using libsigsegv.
42565         * modules/c-stack-tests (Files): Expand test.
42566         * tests/test-c-stack.c (main): Add means to conditionally trigger
42567         non-overflow SIGSEGV.
42568         * tests/test-c-stack2.sh: New file.
42569
42570 2008-07-14  Bruno Haible  <bruno@clisp.org>
42571
42572         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42573         Reported by Eric Blake.
42574
42575 2008-07-14  Sam Steingold  <sds@gnu.org>
42576             Bruno Haible  <bruno@clisp.org>
42577
42578         New module libsigsegv.
42579         * modules/libsigsegv: New file.
42580         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42581         modifications.
42582         * MODULES.html.sh (Signal handling): New section.
42583
42584 2008-07-14  Bruno Haible  <bruno@clisp.org>
42585
42586         * modules/unictype/ctype-* (Description): Add the word "function".
42587         Improves the resulting doc in MODULES.html.
42588
42589 2008-07-12  Ben Pfaff  <blp@gnu.org>
42590
42591         Add longlong module.
42592         * modules/longlong: New file.
42593
42594 2008-07-12  Bruno Haible  <bruno@clisp.org>
42595
42596         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42597         to empty.
42598
42599 2008-07-10  Ben Pfaff  <blp@gnu.org>
42600
42601         Add isnan module.
42602         * doc/posix-functions/isnan.texi: Mention new module.
42603         * lib/math.in.h: Define isnan macro if we have decided to replace
42604         it.
42605         * m4/isnan.m4: New file.
42606         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42607         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42608         also.
42609         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42610         redundancy.
42611         * m4/math_h.m4: Initialize and substitute variables for isnan
42612         module.
42613         * modules/isnan: New file.
42614         * modules/isnan-tests: New file.
42615         * modules/math: Add substitutions for new module.
42616         * tests/test-isnan.c: New file.
42617         * MODULES.html.sh: Mention new module.
42618
42619 2008-07-10  Ben Pfaff  <blp@gnu.org>
42620
42621         Add isnanf module.
42622         * lib/isnanf.m4: New file.
42623         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42624         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42625         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42626         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42627         * modules/isnanf: New file.
42628         * modules/isnanf-tests: New file.
42629         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42630         files.
42631         * tests/test-isnanf-nolibm.c: factored most of its contents into
42632         new file tests/test-isnanf.h.
42633         * tests/test-isnanf.h: New file.
42634         * tests/test-isnanf.c: New file.
42635         * MODULES.html.sh: Mention new module.
42636         * doc/glibc-functions/isnanf.texi: Mention new module.
42637
42638 2008-07-10  Ben Pfaff  <blp@gnu.org>
42639
42640         Add isnand module.
42641         * lib/isnand.h: New file.
42642         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42643         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42644         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42645         functionality also.
42646         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42647         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42648         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42649         * modules/isnand: New file.
42650         * modules/isnand-tests: New file.
42651         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42652         files.
42653         * tests/test-isnand-nolibm.c: factored most of its contents into
42654         new file tests/test-isnand.h.
42655         * tests/test-isnand.h: New file.
42656         * tests/test-isnand.c: New file.
42657         * MODULES.html.sh: Mention new module.
42658
42659 2008-07-10  Ben Pfaff  <blp@gnu.org>
42660
42661         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42662         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42663         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42664         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42665         * modules/isnanf-nolibm: Update references to renamed files.
42666         * modules/isnand-nolibm: Likewise.
42667         * modules/isnanf-nolibm-tests: Likewise.
42668         * modules/isnand-nolibm-tests: Likewise.
42669         * lib/frexp.c: Likewise.
42670         * lib/isfinite.c: Likewise.
42671         * lib/signbitd.c: Likewise.
42672         * lib/signbitf.c: Likewise.
42673         * lib/vasnprintf.c: Likewise.
42674         * tests/test-ceilf1.c: Likewise.
42675         * tests/test-ceilf2.c: Likewise.
42676         * tests/test-floorf1.c: Likewise.
42677         * tests/test-floorf2.c: Likewise.
42678         * tests/test-frexp.c: Likewise.
42679         * tests/test-round1.c: Likewise.
42680         * tests/test-round2.c: Likewise.
42681         * tests/test-roundf1.c: Likewise.
42682         * tests/test-strtod.c: Likewise.
42683         * tests/test-trunc1.c: Likewise.
42684         * tests/test-trunc2.c: Likewise.
42685         * tests/test-truncf1.c: Likewise.
42686         * tests/test-truncf2.c: Likewise.
42687         * NEWS: Mention the renamed header files.
42688
42689 2008-07-11  Jim Meyering  <meyering@redhat.com>
42690
42691         vc-list-files: make the last-resort awk code more portable
42692         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42693         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42694         does not support it.
42695
42696 2008-07-10  Eric Blake  <ebb9@byu.net>
42697
42698         Work with tar's bootstrap.
42699         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42700         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42701         an m4 comment.
42702
42703 2008-07-09  Jim Meyering  <meyering@redhat.com>
42704
42705         posix-shell.m4: fix typo that made this test malfunction
42706         * m4/posix-shell.m4: Remove capitalization in variable name.
42707
42708 2008-07-08  Bruno Haible  <bruno@clisp.org>
42709
42710         * m4/onceonly.m4: Update comments.
42711         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42712
42713 2008-07-04  Jim Meyering  <meyering@redhat.com>
42714
42715         * users.txt: Add vc-dwim.
42716         (bison, coreutils): Use the gitweb URL.
42717
42718 2008-07-03  Jim Meyering  <meyering@redhat.com>
42719
42720         * users.txt: Add libffcall.  From Sam Steingold.
42721
42722 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
42723
42724         getdate.y: do not ignore TZ with relative day, month or year offset
42725         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42726         relative-date-handling, since otherwise, the latter would clobber the
42727         sole output (an updated Start value) of the tz-handling block.
42728         * tests/test-getdate.c: Tests for the fix
42729
42730 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42731
42732         Recognize 'foo_LIBRARIES += libgnu.a'.
42733         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42734         makefile snippet has already specified an installation location,
42735         also using '+='.
42736
42737 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
42738
42739         getdate.y: factor out common actions
42740         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42741         Use them in place of open-coded actions.
42742
42743 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42744
42745         Add self-test for getdate module.
42746         * modules/getdate-tests: New file.
42747         * tests/test-getdate.c: New file.
42748
42749 2008-06-29  Bruno Haible  <bruno@clisp.org>
42750
42751         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42752         .gitignore.
42753         Reported by Sylvain Beucler <beuc@beuc.net>.
42754
42755 2008-06-29  Bruno Haible  <bruno@clisp.org>
42756
42757         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42758         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42759
42760 2008-06-29  Bruno Haible  <bruno@clisp.org>
42761
42762         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42763         EXTRA_DIST.
42764         Reported by Sylvain Beucler <beuc@beuc.net>.
42765
42766 2008-06-26  Jim Meyering  <meyering@redhat.com>
42767
42768         make several modules depend on the "open" module
42769         This provides slightly increased consistency when opening-for-write
42770         the name of a non-directory spelled with a trailing slash.
42771         * modules/chdir-safer: Likewise.
42772         * modules/chown: Likewise.
42773         * modules/clean-temp: Likewise.
42774         * modules/copy-file: Likewise.
42775         * modules/fchdir: Likewise.
42776         * modules/fcntl-safer: Likewise.
42777         * modules/pipe: Likewise.
42778         * modules/utime: Likewise.
42779         Prompted by Eric Blake and Bruno Haible.
42780
42781 2008-06-24  Andreas Schwab  <schwab@suse.de>
42782
42783         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
42784         literals can be used as initializers for global variables.
42785
42786 2008-06-23  Eric Blake  <ebb9@byu.net>
42787
42788         Make gnulib-cache.m4 easier to diff.
42789         * gnulib-tool (func_import): Allow newlines when reading cached
42790         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
42791
42792 2008-06-23  Bruno Haible  <bruno@clisp.org>
42793
42794         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
42795         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
42796         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
42797         m4/signalblocking.m4.
42798         (gl_PREREQ_SIGACTION): Don't invoke it.
42799         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
42800         gl_PREREQ_SIG_HANDLER_H.
42801         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42802         Don't check for sigaction here.
42803
42804 2008-06-23  Bruno Haible  <bruno@clisp.org>
42805
42806         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
42807         (install_handlers): Don't set the SA_RESETHAND flag.
42808
42809 2008-06-23  Bruno Haible  <bruno@clisp.org>
42810
42811         * m4/sigaction.m4: Comment fixes.
42812         * lib/signal.in.h: Likewise.
42813
42814 2008-06-23  Eric Blake  <ebb9@byu.net>
42815
42816         Fix typo.
42817         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
42818
42819         Avoid SA_ namespace.
42820         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
42821         Reported by Ralf Wildenhues.
42822
42823         Avoid test failure due to SA_RESTORER.
42824         * tests/test-sigaction.c (SA_MASK): New macro.
42825         (main): Avoid failing due to extension flags being set.
42826         Reported by Jim Meyering.
42827
42828         Revert use of sig-handler.h in sigprocmask.c.
42829         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
42830         it requires the existence of struct sigaction.
42831         * lib/sigprocmask.c (handler_t): Restore typedef.
42832         (rpl_signal, old_handlers): Use local type.
42833
42834 2008-06-22  Bruno Haible  <bruno@clisp.org>
42835
42836         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
42837         conditionally.
42838         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42839
42840 2008-06-22  Bruno Haible  <bruno@clisp.org>
42841
42842         * doc/posix-functions/siginterrupt.texi: Move note.
42843
42844         * lib/signal.in.h (SA_RESTART): New macro.
42845         * lib/sigaction.c: Update comment.
42846
42847         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
42848
42849         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
42850         (gl_PREREQ_SIGPROCMASK): Invoke it.
42851         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
42852
42853         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
42854
42855         * lib/sigprocmask.c: Update a comment.
42856
42857 2008-06-21  Eric Blake  <ebb9@byu.net>
42858
42859         Use sigaction module rather than signal().
42860         * modules/c-stack (Depends-on): Add sigaction.
42861         * modules/fatal-signal (Depends-on): Likewise.
42862         * modules/nanosleep (Depends-on): Likewise.
42863         * modules/sigprocmask (Files): Add sig-handler.h.
42864         * modules/sigaction (Files): Likewise.
42865         * lib/sig-handler.h (get_handler): New file, suggested by Paul
42866         Eggert.
42867         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
42868         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
42869         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42870         (init_fatal_signals): Likewise.
42871         * lib/nanosleep.c (rpl_nanosleep): Likewise.
42872         (siginterrupt): Delete fallback.
42873         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
42874         instead.
42875         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
42876         siginterrupt.
42877
42878         New module sigaction, for mingw.
42879         * modules/sigaction: New module...
42880         * modules/sigaction-tests: ...and its test.
42881         * m4/sigaction.m4: New file.
42882         * lib/sigaction.c: Likewise.
42883         * tests/test-sigaction.c: Likewise.
42884         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
42885         * modules/signal (Makefile.am): Likewise.
42886         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
42887         needed.
42888         * doc/posix-headers/signal.texi (signal.h): Mention provided
42889         types.
42890         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
42891         that sigaction is preferable.
42892         * doc/posix-functions/sigaction.texi (sigaction): Mention new
42893         module.
42894         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42895         sigaction.
42896
42897         Improve robustness of sigprocmask by overriding signal.
42898         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
42899         is in use.
42900         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
42901         (SIGKILL, SIGSTOP): Provide fallbacks.
42902         (rpl_signal): Implement.
42903         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
42904         signal can be called inside handlers.
42905
42906         Fix nanosleep module on mingw.
42907         * modules/nanosleep (Depends-on): Add sys_select.
42908         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
42909
42910         Fix licensing of sigprocmask.
42911         * modules/raise (License): Relicense as LGPL.
42912
42913 2008-06-21  Bruno Haible  <bruno@clisp.org>
42914
42915         * lib/propername.c (proper_name_utf8): Don't use the transliterated
42916         result if it contains question marks.
42917         Reported by Michael Geng <linux@michaelgeng.de>.
42918
42919 2008-06-19  Bruno Haible  <bruno@clisp.org>
42920
42921         Fix CVS-ism.
42922         * doc/gnulib.texi: Include updated-stamp.texi.
42923         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
42924         (updated-stamp.texi): New rule.
42925         (gnulib.info): Depend on it.
42926         * doc/.gitignore: Add updated-stamp.texi.
42927         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
42928
42929 2008-06-19  Bruno Haible  <bruno@clisp.org>
42930
42931         * doc/Makefile (gnulib.info): Update and simplify dependencies.
42932         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42933
42934 2008-06-19  Eric Blake  <ebb9@byu.net>
42935
42936         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
42937         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
42938         Reported by Stepan Kasal.
42939
42940 2008-06-18  Bruno Haible  <bruno@clisp.org>
42941
42942         * lib/fatal-signal.c (init_fatal_signals): Add comment.
42943         Reported by Eric Blake.
42944
42945 2008-06-18  Eric Blake  <ebb9@byu.net>
42946
42947         Work around cygwin 1.5.25 strsignal bug.
42948         * tests/test-strsignal.c: Allow for const char *.
42949         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
42950
42951 2008-06-18  Simon Josefsson  <simon@josefsson.org>
42952
42953         * users.txt: Update URL to article and add author/date
42954         information.
42955
42956 2008-06-17  Bruno Haible  <bruno@clisp.org>
42957
42958         New macro gl_DISABLE_THREADS.
42959         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
42960         if the user did not pass --enable-threads or --disable-threads option.
42961         (gl_DISABLE_THREADS): New macro.
42962         Reported by Eric Blake <ebb9@byu.net>.
42963
42964 2008-06-17  Bruno Haible  <bruno@clisp.org>
42965
42966         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
42967         when the macro ignores it.
42968         Based on a patch by Eric Blake <ebb9@byu.net>.
42969
42970 2008-06-17  Bruno Haible  <bruno@clisp.org>
42971
42972         * modules/tls (License): Change to LGPLv2+.
42973         Reported by Eric Blake.
42974
42975 2008-06-17  Eric Blake  <ebb9@byu.net>
42976
42977         Simplify c-stack prerequisites.
42978         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
42979         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
42980         no longer requires <ucontext.h> to exist.  Optimize setrlimit
42981         check.
42982         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
42983         <sys/resource.h>.
42984
42985         Move c-stack test into testsuite.
42986         * modules/c-stack-tests: New file.
42987         * lib/c-stack.c [DEBUG]: Move test program...
42988         * tests/test-c-stack.c: ...into this new file.  Skip rather than
42989         fail test if sigaltstack is lacking.
42990         * tests/test-c-stack.sh: New driver file.
42991
42992 2008-06-16  Eric Blake  <ebb9@byu.net>
42993
42994         Use raise module consistently.
42995         * modules/fatal-signal (Depends-on): Add raise.
42996         * modules/sigprocmask (Depends-on): Likewise.
42997         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
42998         * lib/sigprocmask.c (sigprocmask): Likewise.
42999         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43000         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
43001
43002         Fix compliance bug in sigpending.
43003         * lib/sigprocmask.c (sigpending): Return pending array via
43004         parameter, not return value.
43005
43006 2008-06-14  Eric Blake  <ebb9@byu.net>
43007
43008         Improve obstack-printf test code.
43009         * tests/test-obstack-printf.c (test_function): Fix comment, and
43010         simplify usage of obstack_* in macros.  Add a test for coverage.
43011         Reported by Bruno Haible.
43012
43013 2008-06-14  Bruno Haible  <bruno@clisp.org>
43014
43015         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
43016         array size as a constant, not as a const variable.
43017         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
43018         AC_USE_SYSTEM_EXTENSIONS.
43019         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43020         Test whether the obstack_printf function actually exists.
43021         * modules/obstack-printf (Depends-on): Add extensions.
43022         (Include): Remove obstack.h.
43023         * modules/obstack-printf-posix (Depends-on): Add extensions.
43024         (Include): Remove obstack.h.
43025
43026 2008-06-13  Eric Blake  <ebb9@byu.net>
43027
43028         Add obstack-printf and obstack-printf-posix modules.
43029         * modules/obstack-printf: New file.
43030         * modules/obstack-printf-posix: Likewise.
43031         * MODULES.html.sh (Misc): Mention them.
43032         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43033         Likewise.
43034         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43035         Likewise.
43036         * modules/stdio (Makefile.am): Accomodate new modules.
43037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43038         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
43039         Declare.
43040         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
43041         functions.
43042         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
43043         (gl_REPLACE_OBSTACK_PRINTF): New macros
43044         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
43045         * tests/test-obstack-printf.c: New file.
43046         * modules/obstack-printf-tests: Likewise.
43047         * modules/obstack-printf-posix-tests: Likewise.
43048
43049 2008-06-11  Bruno Haible  <bruno@clisp.org>
43050
43051         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
43052         * lib/open.c: Include errno.h.
43053         (open): Fail when attempting to write to a file that has a trailing
43054         slash.
43055         * tests/test-open.c (main): Test against trailing slash bug.
43056         * doc/posix-functions/open.texi: Mention the trailing slash bug.
43057
43058 2008-06-10  Bruno Haible  <bruno@clisp.org>
43059
43060         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
43061         for $? to work inside the trap command, with various /bin/sh-s.
43062         * tests/test-vc-list-files-cvs.sh: Likewise.
43063
43064 2008-06-10  Bruno Haible  <bruno@clisp.org>
43065
43066         * lib/acl-internal.h: Don't include gettext.h here.
43067         * lib/set-mode-acl.c: Include gettext.h here.
43068         * lib/copy-acl.c: Likewise.
43069
43070 2008-06-10  Bruno Haible  <bruno@clisp.org>
43071
43072         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
43073         * lib/wait-process.c (wait_subprocess): Likewise.
43074         * lib/execute.h (execute): Add termsigp argument.
43075         * lib/execute.c (execute): Likewise.
43076         * lib/csharpcomp.c (compile_csharp_using_pnet,
43077         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
43078         * lib/csharpexec.c (execute_csharp_using_pnet,
43079         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
43080         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
43081         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
43082         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
43083         is_jikes_present): Update.
43084         * lib/javaexec.c (execute_java_class): Update.
43085         * lib/javaversion.c (execute_and_read_line): Update.
43086         * NEWS: Document the changes.
43087         Reported by Eric Blake.
43088
43089 2008-06-10  Eric Blake  <ebb9@byu.net>
43090
43091         Add missing include.
43092         * tests/test-strstr.c (includes): Add <signal.h>.
43093         * tests/test-strcasestr.c (includes): Likewise.
43094         * tests/test-memmem.c (includes): Likewise.
43095
43096 2008-06-10  Bruno Haible  <bruno@clisp.org>
43097
43098         * lib/wait-process.c (wait_subprocess): Add an assertion.
43099
43100 2008-06-10  Bruno Haible  <bruno@clisp.org>
43101
43102         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
43103
43104 2008-06-10  Bruno Haible  <bruno@clisp.org>
43105
43106         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
43107         using alarm().
43108         * tests/test-strcasestr.c (main): Likewise.
43109         * tests/test-strstr.c (main): Likewise.
43110
43111 2008-06-09  Bruno Haible  <bruno@clisp.org>
43112
43113         Work around the Solaris 10 ACE ACLs ABI change.
43114         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
43115         declare if ACL_NO_TRIVIAL is present.
43116         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
43117         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
43118         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
43119         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
43120         define if ACL_NO_TRIVIAL is present.
43121         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
43122         and use the current ABI.
43123         (file_has_acl): Use same #if condition as elsewhere.
43124         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
43125         in use, and use the current ABI.
43126         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
43127         Reported by Jim Meyering.
43128
43129 2008-06-09  Eric Blake  <ebb9@byu.net>
43130
43131         Work around environments that (stupidly) ignore SIGALRM.
43132         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
43133         before using alarm().
43134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43135         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43136         Reported by Ian Beckwith <ianb@erislabs.net>.
43137
43138         Produce autobuild blurb earlier in log.
43139         * modules/autobuild (configure.ac-early): Move AB_INIT here.
43140
43141 2008-06-09  Jim Meyering  <meyering@redhat.com>
43142         and OndÅ™ej Vašík  <ovasik@redhat.com>
43143
43144         utimens.c: correct kernel bug work-around
43145         OndÅ™ej Vašík found that the invalid return value of 280 indicates
43146         failure, not success, and the kernel bug we're trying to work
43147         around affects not just the utimensat call, but also the fallback
43148         futimens call.
43149         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
43150         not success.
43151         [HAVE_FUTIMENS]: Use the same work-around, here.
43152
43153 2008-06-09  Jim Meyering  <meyering@redhat.com>
43154
43155         add more guards around definition of ACE_-related code
43156         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
43157         ALLOW and ACE_OWNER are also defined.
43158
43159 2008-06-08  Bruno Haible  <bruno@clisp.org>
43160
43161         * lib/acl-internal.h: Add me as co-author.
43162         * lib/file-has-acl.c: Likewise.
43163         * lib/set-mode-acl.c: Likewise.
43164         * lib/copy-acl.c: Likewise.
43165
43166 2008-06-08  Bruno Haible  <bruno@clisp.org>
43167
43168         Add support for AIX ACLs.
43169         * lib/acl-internal.h (acl_nontrivial): New declaration.
43170         * lib/file-has-acl.c (acl_nontrivial): New function.
43171         (file_has_acl): Add implementation using AIX 4 ACL API.
43172         * lib/set-mode-acl.c (qset_acl): Likewise.
43173         * lib/copy-acl.c (qcopy_acl): Likewise.
43174
43175 2008-06-08  Bruno Haible  <bruno@clisp.org>
43176
43177         Add support for HP-UX ACLs.
43178         * lib/acl-internal.h (acl_nontrivial): New declaration.
43179         * lib/file-has-acl.c (acl_nontrivial): New function.
43180         (file_has_acl): Add implementation using HP-UX 11 ACL API.
43181         * lib/set-mode-acl.c (qset_acl): Likewise.
43182         * lib/copy-acl.c (qcopy_acl): Likewise.
43183
43184 2008-06-08  Bruno Haible  <bruno@clisp.org>
43185
43186         Add support for Cygwin ACLs.
43187         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
43188         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
43189         the chmod_or_fchmod call.
43190         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
43191
43192 2008-06-08  Bruno Haible  <bruno@clisp.org>
43193
43194         Fix bug with setuid modes in Solaris 10+ code.
43195         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
43196         succeeded, when the mode contains some special bits.
43197
43198 2008-06-08  Bruno Haible  <bruno@clisp.org>
43199
43200         Add support for Solaris 7..10 ACLs.
43201         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
43202         declarations.
43203         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
43204         functions.
43205         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
43206         * lib/set-mode-acl.c (qset_acl): Likewise.
43207         * lib/copy-acl.c (qcopy_acl): Likewise.
43208
43209 2008-06-08  Bruno Haible  <bruno@clisp.org>
43210
43211         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43212         declaration.
43213         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43214         (acl_access_nontrivial): Remove MacOS X case.
43215         (file_has_acl): Use acl_extended_nontrivial.
43216         * lib/copy-acl.c (qcopy_acl): Likewise.
43217
43218 2008-06-08  Bruno Haible  <bruno@clisp.org>
43219
43220         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43221
43222 2008-06-08  Jim Meyering  <meyering@redhat.com>
43223
43224         * modules/acl (Maintainer): Add Bruno Haible.
43225
43226 2008-06-07  Bruno Haible  <bruno@clisp.org>
43227
43228         Improve support for Tru64 ACLs.
43229         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43230         ACL on OSF/1.
43231
43232 2008-06-07  Bruno Haible  <bruno@clisp.org>
43233
43234         Add support for MacOS X ACLs.
43235         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43236         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43237         * lib/set-mode-acl.c (qset_acl): Likewise.
43238         * lib/copy-acl.c (qcopy_acl): Likewise.
43239
43240 2008-06-07  Bruno Haible  <bruno@clisp.org>
43241
43242         Fix memory leak introduced on 2008-05-22.
43243         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43244         use.
43245
43246 2008-06-07  Bruno Haible  <bruno@clisp.org>
43247
43248         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43249         to construct an empty ACL.
43250
43251 2008-06-07  Bruno Haible  <bruno@clisp.org>
43252
43253         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43254         precisely.
43255         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43256
43257 2008-06-07  Bruno Haible  <bruno@clisp.org>
43258
43259         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43260         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43261
43262 2008-06-07  Bruno Haible  <bruno@clisp.org>
43263
43264         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43265         regardless of POSIX.
43266         * doc/posix-functions/_longjmp.texi: Likewise.
43267         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43268         SystemV platform in this case.
43269
43270 2008-06-06  Eric Blake  <ebb9@byu.net>
43271
43272         Document abort() bugs.
43273         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43274
43275         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43276         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43277         sigsetjmp.
43278         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43279         siglongjmp, but only as a macro.
43280         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43281         is obsolete.
43282         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43283
43284         Tweak documentation to cover cygwin argz bugs.
43285         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43286         argz bug fix; no code change needed since no cygwin releases
43287         occurred between the last fix and the bug being tested.
43288         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43289         module and recently fixed cygwin bugs.
43290         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43291         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43292         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43293         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43294         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43295         Likewise.
43296         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43297         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43298         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43299         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43300         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43301         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43302         Likewise.
43303
43304         Avoid gcc warning on cygwin.
43305         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43306         !ACL_NO_TRIVIAL]: Avoid unused variable.
43307
43308 2008-06-05  Eric Blake  <ebb9@byu.net>
43309
43310         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43311         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43312         git-version-gen fails to come up with a version.
43313         Reported by Simon Josefsson.
43314
43315 2008-06-05  Jim Meyering  <meyering@redhat.com>
43316             Paul Eggert  <eggert@cs.ucla.edu>
43317
43318         utimens.c: work around a probable Linux kernel bug
43319         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43320         appears to be a kernel bug that causes utimensat to return 280
43321         instead of 0, indicating success.
43322
43323 2008-06-04  Bruno Haible  <bruno@clisp.org>
43324
43325         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43326         2008-06-01 commit.
43327
43328 2008-06-04  Bruno Haible  <bruno@clisp.org>
43329
43330         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43331         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43332         (file_has_acl): Use it. Save errno afterwards.
43333         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43334
43335 2008-06-03  Bruno Haible  <bruno@clisp.org>
43336
43337         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43338         draft code. Simplify #ifs.
43339         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43340         Put Solaris code after POSIX-draft code. Fix comments regarding
43341         Solaris 10, HP-UX. Mention Cygwin.
43342         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43343
43344 2008-06-03  Eric Blake  <ebb9@byu.net>
43345
43346         Provide fallback for older kernels.
43347         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43348         Provide runtime fallback if kernel lacks support.
43349         Reported by Mike Frysinger.
43350
43351 2008-06-02  Bruno Haible  <bruno@clisp.org>
43352
43353         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43354         it exists.
43355
43356 2008-06-02  Bruno Haible  <bruno@clisp.org>
43357
43358         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43359         * lib/copy-acl.c (qcopy_acl): Update comment.
43360
43361 2008-06-02  Bruno Haible  <bruno@clisp.org>
43362
43363         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43364         like ACL APIs.
43365
43366 2008-06-02  Bruno Haible  <bruno@clisp.org>
43367
43368         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43369         * tests/test-set-mode-acl.sh: Likewise.
43370         * tests/test-copy-acl.sh: Likewise.
43371         * tests/test-copy-file.sh: Likewise.
43372
43373 2008-06-02  Bruno Haible  <bruno@clisp.org>
43374
43375         * tests/test-file-has-acl.sh: Remove unused code.
43376
43377 2008-06-01  Bruno Haible  <bruno@clisp.org>
43378
43379         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43380         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43381         messages.
43382         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43383
43384 2008-06-01  Bruno Haible  <bruno@clisp.org>
43385
43386         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43387         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43388         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43389         APIs.
43390         * modules/acl-tests (configure.ac): Remove tests now contained in
43391         m4/acl.m4.
43392
43393 2008-06-02  Jim Meyering  <meyering@redhat.com>
43394
43395         announce-gen: use a better key-server host name
43396         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43397         it may be more consistently reliable.  Suggested by Werner Koch
43398         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43399
43400 2008-06-01  Bruno Haible  <bruno@clisp.org>
43401
43402         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43403         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43404
43405 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43406
43407         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43408
43409 2008-06-01  Bruno Haible  <bruno@clisp.org>
43410
43411         New ACL tests.
43412         * tests/test-file-has-acl.sh: New file.
43413         * tests/test-file-has-acl.c: New file.
43414         * tests/test-set-mode-acl.sh: New file.
43415         * tests/test-set-mode-acl.c: New file.
43416         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43417         * tests/test-copy-acl.c: New file.
43418         * modules/acl-tests: New file, based on modules/copy-file-tests.
43419         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43420         (Depends-on): Add acl-tests.
43421         (configure.ac): Remove checks.
43422         (Makefile.am): Don't create test-sameacls program here any more.
43423
43424 2008-06-01  Bruno Haible  <bruno@clisp.org>
43425
43426         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43427         * tests/test-sameacls.c: Include progname.h.
43428         (main): Invoke set_program_name. Portability fixes for MacOS X,
43429         Solaris, HP-UX.
43430
43431 2008-06-01  Bruno Haible  <bruno@clisp.org>
43432
43433         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43434         function.
43435         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43436
43437 2008-06-01  Bruno Haible  <bruno@clisp.org>
43438
43439         * modules/rpmatch (Depends-on): Add strdup.
43440
43441 2008-06-01  Bruno Haible  <bruno@clisp.org>
43442
43443         * lib/pipe.c: Include unistd-safer.h.
43444         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43445         * modules/pipe (Depends-on): Add unistd-safer.
43446
43447 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43448
43449         * modules/autobuild (configure.ac): Call AB_INIT.
43450
43451 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43452
43453         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43454         Suggested by Bruno Haible <bruno@clisp.org>.
43455
43456 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43457
43458         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43459         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43460         <bruno@clisp.org>.
43461
43462 2008-05-29  Eric Blake  <ebb9@byu.net>
43463
43464         Prefer new POSIX 200x interfaces over futimesat.
43465         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43466         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43467         when available.
43468         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43469
43470 2008-05-28  Bruno Haible  <bruno@clisp.org>
43471
43472         * modules/stpcpy (License): Change to LGPLv2+.
43473         Requested by David Lutterkort <dlutter@redhat.com>.
43474
43475 2008-05-27  Bruno Haible  <bruno@clisp.org>
43476
43477         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43478         current mingw.
43479         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43480
43481 2008-05-27  Bruno Haible  <bruno@clisp.org>
43482
43483         * modules/iconv_open (Link): New section, from module 'iconv'.
43484         * modules/striconv (Link): Likewise.
43485         * modules/striconveh (Link): Likewise.
43486         * modules/xstriconv (Link): Likewise.
43487         * modules/unicodeio (Link): Likewise.
43488         * modules/propername (Link): Likewise.
43489         Reported by Jim Meyering.
43490
43491 2008-05-26  Jim Meyering  <meyering@redhat.com>
43492
43493         sha256: do not artificially restrict buffer length to be < 2^32
43494         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43495         uint32_t to size_t.
43496         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43497         to match.
43498
43499         avoid unaligned access errors, e.g., on sparc
43500         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43501         direct access through a possibly-unaligned uint64* pointer.
43502         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43503         direct access through a possibly-unaligned uint32* pointer.
43504         Prompted by this patch from Tom "spot" Callaway:
43505         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43506
43507         sha512.c: fix typo in comment
43508         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43509
43510 2008-05-25  Bruno Haible  <bruno@clisp.org>
43511
43512         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43513         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43514         (Makefile.am): Update lib_SOURCES.
43515
43516 2008-05-25  Bruno Haible  <bruno@clisp.org>
43517
43518         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43519
43520 2008-05-25  Jim Meyering  <meyering@redhat.com>
43521
43522         useless-if-before-free: freed expr may have white-space differences
43523         * build-aux/useless-if-before-free: Recognize cases in which the
43524         freed expression differs from the tested one in embedded white
43525         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43526         $1 was used, so we can't make any regexp shy.  Improved tests now
43527         detect this.
43528
43529         useless-if-before-free: accept white space in the expression.
43530         * build-aux/useless-if-before-free: For now, any white space
43531         in the expression must be identical in the free argument.
43532
43533         useless-if-before-free: efficiency tweak
43534         * build-aux/useless-if-before-free: Make the expression-matching
43535         regexp "shy".
43536         Make the *outer* regexp shy, not the expr-matching one.
43537
43538         update code-in-comment to accept cast of free arg
43539         * build-aux/useless-if-before-free: Update regexp.
43540
43541 2008-05-25  Bruno Haible  <bruno@clisp.org>
43542
43543         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43544         * modules/copy-file-tests (Files, Makefile.am): Update.
43545         * tests/test-copy-file.c (func_test_copy): Update.
43546
43547 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43548
43549         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43550
43551 2008-05-23  Bruno Haible  <bruno@clisp.org>
43552
43553         Improve support for ACLs on OSF/1.
43554         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43555         Remove fallback for unknown flavors of ACLs.
43556
43557 2008-05-22  Bruno Haible  <bruno@clisp.org>
43558
43559         Add support for ACLs on OSF/1.
43560         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43561         replacements.
43562         (acl_free_text): New macro fallback.
43563         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43564         acl_free.
43565         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43566         acl_free_text function. Require AC_C_INLINE.
43567
43568 2008-05-22  Bruno Haible  <bruno@clisp.org>
43569
43570         Make copy_acl work on MacOS X 10.5.
43571         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43572         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43573         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43574         If MODE_INSIDE_ACL, don't assume that every system has the same text
43575         representation for ACLs as FreeBSD.
43576         * lib/copy-acl.c (copy_acl): Add support for platforms with
43577         !MODE_INSIDE_ACL.
43578         * lib/file-has-acl.c (file_has_acl): Likewise.
43579         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43580         FreeBSD, MacOS X, or IRIX, respectively.
43581
43582 2008-05-22  Bruno Haible  <bruno@clisp.org>
43583
43584         * lib/acl.h: Don't include <sys/acl.h>.
43585         (GETACLCNT): Move fallback to lib/acl-internal.h.
43586         * lib/acl-internal.h: Include <sys/acl.h> here.
43587         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43588
43589 2008-05-22  Bruno Haible  <bruno@clisp.org>
43590
43591         Split off copy_acl function to separate file.
43592         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43593         * lib/acl.c (copy_acl): Moved function to separate file.
43594         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43595         * modules/acl (Files): Add lib/copy-acl.c.
43596         (Makefiles.am): Augment lib_SOURCES.
43597
43598 2008-05-22  Bruno Haible  <bruno@clisp.org>
43599
43600         * modules/copy-file-tests: New file.
43601         * tests/test-copy-file.sh: New file.
43602         * tests/test-copy-file.c: New file.
43603         * tests/test-copy-file-sameacls.c: New file.
43604
43605 2008-05-22  Eric Blake  <ebb9@byu.net>
43606
43607         Avoid gcc warning.
43608         * tests/test-memcmp.c (main): Pass NULL indirectly.
43609
43610 2008-05-21  Bruno Haible  <bruno@clisp.org>
43611
43612         Add reference doc about ACLs.
43613         * doc/acl-resources.txt: New file.
43614         * doc/acl-cygwin.txt: New file.
43615
43616 2008-05-21  Bruno Haible  <bruno@clisp.org>
43617
43618         Avoid one more warning from gcc.
43619         * lib/vasnprintf.c (IF_LINT): Update comments.
43620         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43621
43622 2008-05-21  Jim Meyering  <meyering@redhat.com>
43623
43624         avoid a warning from gcc
43625         * lib/vasnprintf.c (IF_LINT): Define.
43626         (scale10_round_decimal_long_double):
43627         Use it to avoid a "may be used uninitialized" warning.
43628         (scale10_round_decimal_double): Likewise.
43629
43630 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43631
43632         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43633         declared.
43634
43635 2008-05-20  Bruno Haible  <bruno@clisp.org>
43636
43637         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43638         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43639
43640 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43641
43642         * modules/memcmp-tests: New file.
43643         * tests/test-memcmp.c: New file.
43644
43645 2008-05-19  Bruno Haible  <bruno@clisp.org>
43646
43647         * modules/propername (Notice, configure.ac): Put quoted "..." into
43648         --keyword option.
43649         * lib/propername.h: Update comments accordingly.
43650         Reported by Eric Blake.
43651
43652 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43653
43654         * modules/getpass-gnu (Depends-on): Add fseeko.
43655
43656 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43657
43658         * modules/base64-tests: New file.
43659
43660 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43661
43662         * lib/base64.c (base64_decode_ctx): If a decode context structure
43663         was passed in use it to ignore newlines.  If a context structure
43664         was _not_ passed in, continue to treat newlines as garbage (this
43665         is the historical behavior).  Formerly base64_decode.
43666         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43667         takes a decode context structure.
43668         * lib/base64.h (base64_decode): Macro for four-argument calls.
43669         (base64_decode_alloc): Likewise.
43670         * lib/base64.c (base64_decode_ctx): If a decode context structure
43671         was passed in use it to ignore newlines.  If a context structure
43672         was _not_ passed in, continue to treat newlines as garbage (this
43673         is the historical behavior).  Formerly base64_decode.
43674         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43675         takes a decode context structure.
43676         * lib/base64.h (base64_decode): Macro for four-argument calls.
43677         (base64_decode_alloc): Likewise.
43678
43679 2008-05-19  Jim Meyering  <meyering@redhat.com>
43680
43681         avoid a warning from gcc
43682         * lib/trim.c (IF_LINT): Define.
43683         (trim2): Use it to avoid a "may be used uninitialized" warning.
43684
43685         Fix doc typo.
43686         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43687
43688 2008-05-19  Bruno Haible  <bruno@clisp.org>
43689
43690         * doc/glibc-functions/getpass.texi: Document limits of other
43691         implementations.
43692
43693 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43694             Bruno Haible <bruno@clisp.org>
43695
43696         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43697
43698 2008-05-18  Bruno Haible  <bruno@clisp.org>
43699
43700         * modules/propername: New file, from GNU gettext.
43701         * lib/propername.h: New file, from GNU gettext.
43702         * lib/propername.c: New file, from GNU gettext.
43703         * MODULES.html.sh (Internationalization functions): Add propername.
43704
43705 2008-05-16  Jim Meyering  <meyering@redhat.com>
43706             Bruno Haible  <bruno@clisp.org>
43707
43708         Avoid some warnings from "gcc -Wshadow".
43709         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43710
43711 2008-05-15  Eric Blake  <ebb9@byu.net>
43712
43713         Extend previous patch to cygwin 1.7.0.
43714         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43715         fast implementation in cygwin >= 1.7.0.
43716         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43717         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43718
43719 2008-05-15  Bruno Haible  <bruno@clisp.org>
43720
43721         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43722         implementation in glibc >= 2.9.
43723         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43724         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43725
43726 2008-05-15  Bruno Haible  <bruno@clisp.org>
43727
43728         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43729         (Unicode string functions): Add unilbrk/*.
43730         Reported by Karl Berry.
43731
43732 2008-05-15  Eric Blake  <ebb9@byu.net>
43733
43734         Fix violation of <stdbool.h> replacement in regex.
43735         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43736         * lib/regexec.c (re_search_internal): Likewise.
43737         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43738
43739 2008-05-15  Jim Meyering  <meyering@redhat.com>
43740
43741         avoid distracting test output when git or cvs is not found
43742         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43743         * tests/test-vc-list-files-git.sh: Likewise.
43744
43745 2008-05-15  Eric Blake  <ebb9@byu.net>
43746
43747         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43748         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43749         glibc version.
43750         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43751         * doc/posix-functions/strstr.texi (strstr): Likewise.
43752         * lib/str-two-way.h (MAX): Sychronize with glibc.
43753
43754 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43755
43756         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43757         opr.ctx_type.
43758         (calc_first): Initialize constraint field.
43759         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43760         Fix grammar.
43761         (duplicate_node): Merge constraint field for all node types.
43762         (calc_eclosure_iter): Look at constraint field for all node types.
43763         * lib/regex_internal.c (create_cd_newstate): Don't look at
43764         opr.ctx_type.
43765
43766 2008-05-14  Bruno Haible  <bruno@clisp.org>
43767
43768         Help GCC to do better code generation.
43769         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43770         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43771         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43772         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43773         Declare with attribute 'malloc' if supported.
43774
43775 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43776
43777         use "echo STR|wc -c" rather than unportable "expr length STR"
43778         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43779         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
43780
43781 2008-05-14  Jim Meyering  <meyering@redhat.com>
43782
43783         use dd ibs=$n count=1 ... rather than less-portable head -c$n
43784         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
43785         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
43786         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
43787         via Collin Lasse.
43788
43789 2008-05-14  Eric Blake  <ebb9@byu.net>
43790
43791         Avoid quadratic growth in gl_LIBSOURCES.
43792         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
43793         Suggested by Bruno Haible.
43794
43795         Test xmemdup0.
43796         * modules/xmemdup0-tests: New file.
43797         * tests/test-xmemdup0.c: Likewise.
43798
43799 2008-05-13  Eric Blake  <ebb9@byu.net>
43800
43801         Split xmemdup0 into its own module.
43802         * modules/xmemdup0: New file.
43803         * lib/xmemdup0.h: Likewise.
43804         * lib/xmemdup0.c: Likewise.
43805         * MODULES.html.sh (Memory management functions): Add xmemdup0.
43806         * lib/xalloc.h (xmemdup0): Remove.
43807         * lib/xmalloc.c (xmemdup0): Likewise.
43808
43809 2008-05-13  Eric Blake  <ebb9@byu.net>
43810             Bruno Haible  <bruno@clisp.org>
43811
43812         Reduce number of forks required during autoconf.
43813         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
43814         and gl_LIBSOURCES_DIR.
43815         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
43816         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
43817         m4_syscmd per file.
43818         <m4_foreach_w>: Move...
43819         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
43820
43821 2008-05-13  Eric Blake  <ebb9@byu.net>
43822
43823         * gnulib-tool: Fix various comment typos.
43824
43825 2008-05-12  Bruno Haible  <bruno@clisp.org>
43826
43827         Tailor the linebreaking algorithm.
43828         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
43829
43830 2008-05-12  Bruno Haible  <bruno@clisp.org>
43831
43832         Update to Unicode 5.0.0.
43833         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43834         LBP_JV, LBP_JT. Redistribute values.
43835         (unilbrk_table): Change size.
43836         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
43837         Unicode TR#14 rev. 22.
43838         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43839         LBP_JV, LBP_JT. Redistribute values.
43840         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
43841         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
43842         Update.
43843         * lib/unilbrk/lbrkprop1.h: Regenerated.
43844         * lib/unilbrk/lbrkprop2.h: Regenerated.
43845         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
43846         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
43847         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
43848         Likewise.
43849         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
43850         Likewise.
43851         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
43852         result.
43853         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43854         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43855         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43856         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
43857         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
43858         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
43859
43860 2008-05-11  Bruno Haible  <bruno@clisp.org>
43861
43862         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
43863
43864 2008-05-11  Bruno Haible  <bruno@clisp.org>
43865
43866         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
43867         * modules/unilbrk/gen-lbrk: New file.
43868
43869 2008-05-11  Bruno Haible  <bruno@clisp.org>
43870
43871         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
43872         * m4/sha512.m4 (gl_SHA512): Likewise.
43873
43874 2008-05-11  Jim Meyering  <meyering@redhat.com>
43875
43876         New modules: crypto/sha256, crypto/sha512 (from coreutils)
43877         * modules/crypto/sha256: New file.
43878         * modules/crypto/sha512: Likewise.
43879         * lib/sha256.c: Likewise.
43880         * lib/sha256.h: Likewise.
43881         * lib/sha512.c: Likewise.
43882         * lib/sha512.h: Likewise.
43883         * lib/u64.h: Likewise.
43884         * m4/sha256.m4: Likewise.
43885         * m4/sha512.m4: Likewise.
43886         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
43887
43888 2008-05-10  Bruno Haible  <bruno@clisp.org>
43889
43890         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
43891         (Input/Output <stdio.h>): Add xprintf.
43892         (Signal handling <signal.h>): Add strsignal.
43893         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
43894         (Core language properties): Add func.
43895         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
43896         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
43897         strings.
43898         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
43899         (Input/output): New section.
43900         (File system functions): Add openat-die, stat-macros.
43901         (Networking functions): Add sockets.
43902         (Unicode string functions): Add unictype/*.
43903         (Support for building libraries and executables): Add gperf.
43904         (Support for building documentation): Add agpl-3.0.
43905         (Misc): Add nocrash.
43906
43907 2008-05-10  Bruno Haible  <bruno@clisp.org>
43908
43909         * modules/unictype/gen-ctype: New file.
43910
43911 2008-05-10  Jim Meyering  <meyering@redhat.com>
43912
43913         Make chdir-safer.c more efficient on a system with no symlinks.
43914         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
43915         also if ELOOP is zero.  Suggested by Bruno Haible.
43916
43917         Make chdir-safer.c slightly safer.
43918         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
43919         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
43920
43921         Avoid compile failure on systems without ELOOP (like mingw).
43922         * lib/chdir-safer.c (ELOOP): Define if not already defined.
43923         Reported by Bruno Haible.
43924
43925 2008-05-10  Bruno Haible  <bruno@clisp.org>
43926
43927         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
43928         (is_utf8_encoding): Use a case-insensitive comparison.
43929         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
43930         streq.
43931
43932 2008-05-10  Bruno Haible  <bruno@clisp.org>
43933
43934         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
43935         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
43936         * lib/unilbrk/ulc-common.h (iconv_string_length,
43937         iconv_string_keeping_offsets): Remove declarations.
43938         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
43939         Don't include <iconv.h>, streq.h, xsize.h.
43940         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
43941         conversion.
43942         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
43943         <iconv.h>, streq.h, xsize.h.
43944         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
43945         conversion.
43946         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
43947         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
43948         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
43949         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
43950
43951 2008-05-10  Bruno Haible  <bruno@clisp.org>
43952
43953         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
43954         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
43955
43956         * modules/unilbrk/u32-width-linebreaks-tests: New file.
43957         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
43958
43959         * modules/unilbrk/u16-width-linebreaks-tests: New file.
43960         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
43961
43962         * modules/unilbrk/u8-width-linebreaks-tests: New file.
43963         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
43964
43965         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
43966         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
43967
43968         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
43969         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
43970
43971         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
43972         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
43973
43974         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
43975         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
43976
43977 2008-05-10  Bruno Haible  <bruno@clisp.org>
43978
43979         Split up 'linebreak' module.
43980         * lib/unilbrk.h: New file, based on lib/linebreak.h.
43981         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
43982         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
43983         modifications.
43984         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
43985         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
43986         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
43987         lib/linebreak.c.
43988         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
43989         lib/linebreak.c.
43990         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
43991         lib/linebreak.c.
43992         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
43993         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
43994         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
43995         lib/linebreak.c.
43996         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
43997         lib/linebreak.c.
43998         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
43999         lib/linebreak.c.
44000         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
44001         lib/linebreak.c.
44002         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
44003         lib/linebreak.c.
44004         * modules/unilbrk/base: New file.
44005         * modules/unilbrk/tables: New file.
44006         * modules/unilbrk/u8-possible-linebreaks: New file.
44007         * modules/unilbrk/u16-possible-linebreaks: New file.
44008         * modules/unilbrk/u32-possible-linebreaks: New file.
44009         * modules/unilbrk/ulc-common: New file.
44010         * modules/unilbrk/ulc-possible-linebreaks: New file.
44011         * modules/unilbrk/u8-width-linebreaks: New file.
44012         * modules/unilbrk/u16-width-linebreaks: New file.
44013         * modules/unilbrk/u32-width-linebreaks: New file.
44014         * modules/unilbrk/ulc-width-linebreaks: New file.
44015         * lib/linebreak.h: Remove file.
44016         * lib/linebreak.c: Remove file.
44017         * m4/linebreak.m4: Remove file.
44018         * modules/linebreak: Remove file.
44019         * NEWS: Mention the changes.
44020
44021 2008-05-09  Eric Blake  <ebb9@byu.net>
44022
44023         Add xmemdup0.
44024         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44025         implementation.
44026         * lib/xmalloc.c (xmemdup0): New C implementation.
44027
44028 2008-05-08  Bruno Haible  <bruno@clisp.org>
44029
44030         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
44031
44032 2008-05-07  Eric Blake  <ebb9@byu.net>
44033
44034         Support cross-compilation of <wctype.h>.
44035         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
44036         AC_CACHE_CHECK.
44037
44038 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
44039
44040         * build-aux/vc-list-files: Add support for bzr.
44041
44042 2008-05-03  Jim Meyering  <meyering@redhat.com>
44043
44044         avoid failed assertion with tight malloc
44045         * tests/test-getndelim2.c: Correct an off-by-one assertion.
44046
44047 2008-05-03  Simon Josefsson  <simon@josefsson.org>
44048
44049         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
44050         are needed from arpa/inet.h.
44051         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
44052         Reported by Bruno Haible.
44053
44054 2008-05-02  Jim Meyering  <meyering@redhat.com>
44055
44056         avoid compilation error on FreeBSD 6
44057         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
44058
44059 2008-05-01  Jim Meyering  <meyering@redhat.com>
44060
44061         useless-if-before-free: correct --help's exit status description
44062         * build-aux/useless-if-before-free (usage): Like grep, exit 0
44063         for one or more matches, etc.  Reported by Bruno Haible.
44064
44065         vc-list-files: make the stand-alone gnulib test work
44066         * modules/vc-list-files-tests (configure.ac):
44067         Define and AC_SUBST abs_aux_dir.
44068         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
44069         $(abs_top_srcdir) to each script and having each of them
44070         duplicate the work of setting PATH, set PATH here, using
44071         the new variable, abs_aux_dir instead.
44072         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
44073         * tests/test-vc-list-files-git.sh: Likewise.
44074         Reported by Bruno Haible.
44075
44076 2008-05-01  Bruno Haible  <bruno@clisp.org>
44077
44078         * lib/getndelim2.c (getndelim2): Fix newsize computation during
44079         reallocation. Rename 'done' to 'found_delimiter'.
44080
44081 2008-05-01  Jim Meyering  <meyering@redhat.com>
44082
44083         vc-list-files: accommodate /bin/sh like the one from Solaris 10
44084         * build-aux/vc-list-files: Use `...`, not $(...).
44085
44086 2008-04-30  Jim Meyering  <meyering@redhat.com>
44087
44088         add tests for vc-list-files
44089         * modules/vc-list-files-tests: New module.
44090         * tests/test-vc-list-files-cvs.sh: New file.
44091         * tests/test-vc-list-files-git.sh: New file.
44092
44093         avoid a warning from gcc
44094         * lib/getndelim2.c (IF_LINT): Define.
44095         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
44096
44097         vc-list-files: work properly with build-aux/cvsu, too
44098         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
44099         to all cvs-based clauses.
44100
44101         vc-list-files: work properly in the CVS+awk case, too
44102         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
44103
44104         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
44105         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
44106         take more than one file argument, so .  Add quotes, just in case $dir
44107         ever contains a shell meta-character.  Prompted by Soren Hansen in
44108         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
44109
44110 2008-04-29  Eric Blake  <ebb9@byu.net>
44111
44112         Optimize getndelim2 to use block operations when possible.
44113         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
44114         freadseek, and memchr2.
44115         * lib/getndelim2.c (getndelim2): Use them for block reads.
44116
44117 2008-04-29  Bruno Haible  <bruno@clisp.org>
44118
44119         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
44120         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44121         * modules/inet_ntop (Depends-on): Add extensions.
44122         * modules/inet_pton (Depends-on): Likewise.
44123         Reported by Simon Josefsson.
44124
44125 2008-04-29  Jim Meyering  <meyering@redhat.com>
44126
44127         When the is more than one match in a block, match all of them.
44128         * build-aux/useless-if-before-free: Iterate through each block
44129         until there are no more matches.
44130
44131         Fix broken useless-if-before-free script.
44132         * build-aux/useless-if-before-free: Fix typo: missing "?" after
44133         the expression to match cast of argument to free-like function.
44134
44135 2008-04-29  Eric Blake  <ebb9@byu.net>
44136
44137         Use new header.
44138         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
44139
44140 2008-04-29  Jim Meyering  <meyering@redhat.com>
44141
44142         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
44143         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
44144         by gnulib to exist and to declare e.g., inet_ntop.
44145         Don't include "inet_ntop.h", now removed.
44146
44147         * m4/arpa_inet_h.m4: Remove trailing blanks.
44148
44149 2008-04-29  Eric Blake  <ebb9@byu.net>
44150
44151         Silence valgrind on safe reads beyond potential array bounds.
44152         * lib/rawmemchr.valgrind: New file.
44153         * lib/strchrnul.valgrind: Likewise.
44154         * modules/rawmemchr (Files): Distribute new file.
44155         * modules/strchrnul (Files): Likewise.
44156         Suggested by Bruno Haible.
44157
44158 2008-04-29  Bruno Haible  <bruno@clisp.org>
44159
44160         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
44161         (inet_ntop, inet_pton): Change portability warning's wording.
44162         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
44163         Invoke gl_CHECK_NEXT_HEADERS.
44164         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
44165         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
44166         set ARPA_INET_H.
44167         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44168         * modules/arpa_inet (Description): No longer only for systems that
44169         lack it.
44170         (Depends-on): Add include_next.
44171         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
44172         HAVE_ARPA_INET_H.
44173
44174 2008-04-29  Jim Meyering  <meyering@redhat.com>
44175
44176         * modules/mkdir (License): Re-license as LGPLv2+.
44177
44178 2008-04-29  Bruno Haible  <bruno@clisp.org>
44179
44180         * modules/rawmemchr (Maintainer): Set to Eric.
44181         * modules/strchrnul (Maintainer): Likewise.
44182
44183 2008-04-29  Simon Josefsson  <simon@josefsson.org>
44184
44185         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
44186         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
44187
44188         * modules/arpa_inet (arpa/inet.h): Use them.
44189
44190 2008-04-28  Eric Blake  <ebb9@byu.net>
44191
44192         Test getndelim2.
44193         * modules/getndelim2-tests: New file.
44194         * tests/test-getndelim2.c: Likewise.
44195         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
44196         stream.
44197         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
44198
44199         * MODULES.html.sh: Document new module.
44200
44201 2008-04-20  Bruno Haible  <bruno@clisp.org>
44202
44203         * lib/c-stack.c (die): Use raise.
44204         * modules/c-stack (Depends-on): Add raise.
44205
44206 2008-04-28  Bruno Haible  <bruno@clisp.org>
44207
44208         Expect rpmatch to be declared.
44209         * lib/yesno.c (rpmatch): Remove declaration.
44210
44211         Declare rpmatch.
44212         * lib/stdlib.in.h (rpmatch): New declaration.
44213         * lib/rpmatch.c: Include <stdlib.h> first.
44214         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44215         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44217         HAVE_RPMATCH.
44218         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44219         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44220         (Include): Set to <stdlib.h>.
44221         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44222         HAVE_RPMATCH.
44223         * NEWS: Document the change.
44224
44225 2008-04-28  Bruno Haible  <bruno@clisp.org>
44226
44227         Change rpmatch to use nl_langinfo when appropriate.
44228         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44229         (N_): New macro.
44230         (localized_pattern): New function/macro.
44231         (try): Remove match, nomatch arguments. Copy the pattern into safe
44232         memory before caching it.
44233         (rpmatch): Use localized_pattern. Add translator comments.
44234         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44235         Suggested by Eric Blake.
44236         * modules/rpmatch (Depends-on): Add stdbool.
44237
44238 2008-04-28  Eric Blake  <ebb9@byu.net>
44239
44240         Add rawmemchr module, matching glibc.
44241         * modules/string (Makefile.am): New indicator.
44242         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44243         * lib/string.in.h (rawmemchr): Declare when appropriate.
44244         * modules/rawmemchr: New file.
44245         * m4/rawmemchr.m4: Likewise.
44246         * lib/rawmemchr.c: Likewise.
44247         * modules/rawmemchr-tests: Likewise.
44248         * tests/test-rawmemchr.c: Likewise.
44249         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44250         module.
44251         * modules/strchrnul (Depends-on): Add rawmemchr.
44252         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44253
44254         Whitespace cleanup.
44255         * tests/test-strchrnul.c: Reindent.
44256         * lib/strchrnul.c: Likewise.
44257
44258         Optimize and test strchrnul.
44259         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44260         * modules/strchrnul-tests: New file.
44261         * tests/test-strchrnul.c: Likewise.
44262
44263         Remove intprops dependency.
44264         * modules/memchr (Depends-on): Remove intprops.
44265         * modules/memrchr (Depends-on): Likewise.
44266         * modules/memchr2 (Depends-on): Likewise.
44267         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44268         * lib/memrchr.c (__memrchr): Likewise.
44269         * lib/memrchr2.c (memchr2): Likewise.
44270         Reported by Simon Josefsson.
44271
44272 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44273
44274         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44275         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44276
44277 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44278
44279         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44280
44281         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44282
44283         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44284
44285         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44286         declarations.
44287         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44288
44289         * m4/inet_pton.m4: Don't check for header files.
44290
44291         * m4/inet_ntop.m4: Don't check for header files.
44292
44293 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44294
44295         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44296         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44297         trigger for cygwin).
44298         Reported by Bruno Haible  <bruno@clisp.org>.
44299
44300 2008-04-28  Bruno Haible  <bruno@clisp.org>
44301
44302         * doc/posix-functions/strdup.texi: Mention mingw problem.
44303
44304 2008-04-27  Bruno Haible  <bruno@clisp.org>
44305
44306         * modules/stat-time-tests (Depends-on): Add sleep.
44307         * tests/test-stat-time.c (force_unlink): New function.
44308         (cleanup): Use it.
44309         (test_mtime): Remove the ctime related tests.
44310         (test_ctime): New function, containing the ctime related tests.
44311         (main): Call test_ctime, except on native Windows platforms.
44312
44313 2008-04-27  Bruno Haible  <bruno@clisp.org>
44314
44315         * lib/rpmatch.c (rpmatch): Add some comments.
44316         Reported by James Youngman <jay@gnu.org>.
44317
44318 2008-04-27  Bruno Haible  <bruno@clisp.org>
44319
44320         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44321         quiet NaNs.
44322
44323 2008-04-27  Bruno Haible  <bruno@clisp.org>
44324
44325         Make test-yesno.sh work on mingw.
44326         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44327         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44328         (main): Set stdin to binary mode.
44329         * modules/yesno-tests (Depends-on): Add binary-io.
44330
44331 2008-04-27  Bruno Haible  <bruno@clisp.org>
44332
44333         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44334         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44335         argument that lie outside the IEEE 854 domain.
44336         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44337         (gl_ISFINITE): Use it.
44338         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44339
44340 2008-04-27  Bruno Haible  <bruno@clisp.org>
44341
44342         Allow local renaming in config.h.
44343         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44344
44345 2008-04-27  Bruno Haible  <bruno@clisp.org>
44346
44347         * lib/memchr.c (__memchr): Change type of 'i'.
44348         * lib/memchr2.c (memchr2): Likewise.
44349
44350 2008-04-26  Eric Blake  <ebb9@byu.net>
44351         and Bruno Haible  <bruno@clisp.org>
44352
44353         Optimize and test memrchr.
44354         * modules/memrchr (Depends-on): Add intprops.
44355         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44356         * modules/memrchr-tests: New file.
44357         * tests/test-memrchr.c: New file.
44358
44359 2008-04-26  Bruno Haible  <bruno@clisp.org>
44360
44361         Add tentative support for DragonFly BSD.
44362         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44363         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44364         fp.
44365         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44366         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44367         * lib/fpurge.c (fpurge): Likewise.
44368         * lib/freadable.c (freaadable): Likewise.
44369         * lib/freadahead.c (freadahead): Likewise.
44370         * lib/freading.c (freading): Likewise.
44371         * lib/freadptr.c (freadptr): Likewise.
44372         * lib/freadseek.c (freadptrinc): Likewise.
44373         * lib/fseeko.c (fseeko): Likewise.
44374         * lib/fseterr.c (fseterr): Likewise.
44375         * lib/fwritable.c (fwritable): Likewise.
44376         * lib/fwriting.c (fwriting): Likewise.
44377
44378 2008-04-26  Bruno Haible  <bruno@clisp.org>
44379
44380         * lib/stdio-impl.h: New file.
44381         * lib/fbufmode.c: Include stdio-impl.h.
44382         (fbufmode): Use fp_, remove redundant #defines.
44383         * lib/fflush.c: Include stdio-impl.h.
44384         (clear_ungetc_buffer): Remove redundant #defines.
44385         * lib/fpurge.c: Include stdio-impl.h.
44386         (fpurge): Remove redundant #defines.
44387         * lib/freadable.c: Include stdio-impl.h.
44388         (freadable): Remove redundant #defines.
44389         * lib/freadahead.c: Include stdio-impl.h.
44390         (freadahead): Remove redundant #defines.
44391         * lib/freading.c: Include stdio-impl.h.
44392         (freading): Remove redundant #defines.
44393         * lib/freadptr.c: Include stdio-impl.h.
44394         (freadptr): Remove redundant #defines.
44395         * lib/freadseek.c: Include stdio-impl.h.
44396         (freadptrinc): Remove redundant #defines.
44397         * lib/fseeko.c: Include stdio-impl.h.
44398         (rpl_fseeko): Remove redundant #defines.
44399         * lib/fseterr.c: Include stdio-impl.h.
44400         (fseterr): Remove redundant #defines.
44401         * lib/fwritable.c: Include stdio-impl.h.
44402         (fwritable: Remove redundant #defines.
44403         * lib/fwriting.c: Include stdio-impl.h.
44404         (fwriting): Remove redundant #defines.
44405         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44406         * modules/fflush (Files): Likewise.
44407         * modules/fpurge (Files): Likewise.
44408         * modules/freadable (Files): Likewise.
44409         * modules/freadahead (Files): Likewise.
44410         * modules/freading (Files): Likewise.
44411         * modules/freadptr (Files): Likewise.
44412         * modules/freadseek (Files): Likewise.
44413         * modules/fseeko (Files): Likewise.
44414         * modules/fseterr (Files): Likewise.
44415         * modules/fwritable (Files): Likewise.
44416         * modules/fwriting (Files): Likewise.
44417
44418 2008-04-26  Bruno Haible  <bruno@clisp.org>
44419
44420         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44421         restore_seek_optimization, update_fpos_cache): New functions, extracted
44422         from rpl_fflush.
44423         (rpl_fflush): Use them.
44424         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44425         (gl_REPLACE_FFLUSH): Use it.
44426
44427 2008-04-26  Bruno Haible  <bruno@clisp.org>
44428
44429         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44430         on Solaris.
44431         * tests/test-xstrtoimax.sh: Likewise.
44432         * tests/test-xstrtoumax.sh: Likewise.
44433         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44434
44435 2008-04-26  Bruno Haible  <bruno@clisp.org>
44436
44437         * modules/memchr-tests: New file.
44438         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44439
44440 2008-04-26  Eric Blake  <ebb9@byu.net>
44441             Bruno Haible  <bruno@clisp.org>
44442
44443         * lib/memchr.c: Include intprops.h.
44444         (__memchr): Optimize parallel detection of matching bytes. Rename local
44445         variables. Add explanatory comments.
44446
44447 2008-04-26  Bruno Haible  <bruno@clisp.org>
44448
44449         Fix module 'memchr', broken since 2000-10-28.
44450         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44451
44452 2008-04-26  Bruno Haible  <bruno@clisp.org>
44453
44454         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44455         comments.
44456
44457 2008-04-25  Eric Blake  <ebb9@byu.net>
44458
44459         Use native fstatat on cygwin 1.7.0.
44460         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44461         first.
44462
44463 2008-04-23  Eric Blake  <ebb9@byu.net>
44464
44465         Improve memchr2 performance.
44466         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44467         NUL bytes.
44468         * modules/memchr2 (Depends-on): Use intprops.h.
44469
44470 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44471
44472         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44473         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44474         <blp@cs.stanford.edu>.
44475
44476 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44477
44478         * lib/arpa_inet.in.h: New file.
44479
44480         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44481         (Makefile.am): Sed in substitute header file.
44482
44483         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44484         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44485
44486         * modules/inet_ntop (configure.ac): Use
44487         gl_ARPA_INET_MODULE_INDICATOR.
44488
44489         * modules/inet_pton (configure.ac): Use
44490         gl_ARPA_INET_MODULE_INDICATOR.
44491
44492 2008-04-22  Jim Meyering  <meyering@redhat.com>
44493
44494         * modules/verify (License): Re-license as LGPLv2+.
44495
44496 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44497
44498         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44499         parameter to void* as per POSIX standard (MinGW uses char*).
44500
44501 2008-04-21  Bruno Haible  <bruno@clisp.org>
44502
44503         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44504         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44505         Define to replacements if REPLACE_ISWCNTRL is 1.
44506         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44507         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44508         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44509         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44510         what it fixes.
44511         * doc/posix-functions/iswalpha.texi: Likewise.
44512         * doc/posix-functions/iswblank.texi: Likewise.
44513         * doc/posix-functions/iswcntrl.texi: Likewise.
44514         * doc/posix-functions/iswdigit.texi: Likewise.
44515         * doc/posix-functions/iswgraph.texi: Likewise.
44516         * doc/posix-functions/iswlower.texi: Likewise.
44517         * doc/posix-functions/iswprint.texi: Likewise.
44518         * doc/posix-functions/iswpunct.texi: Likewise.
44519         * doc/posix-functions/iswspace.texi: Likewise.
44520         * doc/posix-functions/iswupper.texi: Likewise.
44521         * doc/posix-functions/iswxdigit.texi: Likewise.
44522         Reported by Alain Guibert.
44523
44524 2008-04-21  Bruno Haible  <bruno@clisp.org>
44525
44526         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44527         Patch by Alain Guibert.
44528
44529 2008-04-21  Bruno Haible  <bruno@clisp.org>
44530
44531         Fix test failures on mingw.
44532         * tests/test-xstrtol.c (print_no_progname): New function.
44533         (main): Install it in error_print_progname hook.
44534         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44535         * tests/test-xstrtoimax.sh: Likewise.
44536         * tests/test-xstrtoumax.sh: Likewise.
44537
44538 2008-04-21  Bruno Haible  <bruno@clisp.org>
44539
44540         Fix test failure on mingw.
44541         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44542
44543 2008-04-21  Bruno Haible  <bruno@clisp.org>
44544
44545         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44546         Actually assign a value.
44547
44548 2008-04-20  Bruno Haible  <bruno@clisp.org>
44549
44550         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44551         take 2.
44552         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44553         'canonicalize-lgpl' module is also used.
44554         * lib/canonicalize-lgpl.c: Undo last change.
44555         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44556
44557 2008-04-20  Bruno Haible  <bruno@clisp.org>
44558
44559         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44560         config.h. Provide _mkdir based fallback for mingw.
44561         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44562         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44563         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44564         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44565         rather than defining mkdir in config.h.
44566         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44567         (gl_SYS_STAT_H_DEFAULTS): New macro.
44568         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44569         HAVE_IO_H any more.
44570         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44571         HAVE_DECL_MKDIR and HAVE_IO_H.
44572
44573 2008-04-20  Bruno Haible  <bruno@clisp.org>
44574
44575         * lib/isapipe.c: Port to native Windows platforms.
44576
44577 2008-04-20  Bruno Haible  <bruno@clisp.org>
44578
44579         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44580
44581 2008-04-21  Eric Blake  <ebb9@byu.net>
44582
44583         Work around preprocessors that don't handle UINTMAX_MAX.
44584         * lib/memchr2.c (memchr2): Avoid embedded #if.
44585         Reported by Alain Guibert, fix suggested by Bruno Haible.
44586
44587 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44588
44589         * doc/posix-functions/strftime.texi (strftime): Explain better
44590         Windows incompatibility.  Suggested by Micah Cowan
44591         <micah@cowan.name>.
44592
44593 2008-04-20  Bruno Haible  <bruno@clisp.org>
44594
44595         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44596         unistr/u8-mblen.
44597
44598 2008-04-20  Bruno Haible  <bruno@clisp.org>
44599
44600         Fix test failure on platforms with non-GNU iconv.
44601         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44602         (U_TO_U8): Use it, rather than u16_to_u8.
44603         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44604         units at the end of the input string.
44605         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44606
44607 2008-04-20  Bruno Haible  <bruno@clisp.org>
44608
44609         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44610         when the resulting length is 0.
44611         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44612
44613 2008-04-20  Bruno Haible  <bruno@clisp.org>
44614
44615         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44616         works.
44617         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44618
44619 2008-04-20  Bruno Haible  <bruno@clisp.org>
44620
44621         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44622         * modules/tsearch-tests (configure.ac): Test for initstate function.
44623
44624 2008-04-20  Bruno Haible  <bruno@clisp.org>
44625
44626         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44627         for nlink_t if missing.
44628         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44629
44630 2008-04-19  Bruno Haible  <bruno@clisp.org>
44631
44632         Work around snprintf bug on Linux libc5.
44633         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44634         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44635         gl_SNPRINTF_SIZE1.
44636         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44637         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44638         that test failed.
44639         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44640         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44641         * modules/snprintf (Files): Add m4/printf.m4.
44642         * modules/vsnprintf (Files): Likewise.
44643         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44644         * doc/posix-functions/vsnprintf.texi: Likewise.
44645
44646 2008-04-19  Bruno Haible  <bruno@clisp.org>
44647
44648         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44649         from 0.0058 to less than 10^-7.
44650
44651 2008-04-19  Bruno Haible  <bruno@clisp.org>
44652
44653         Fix rounding when a precision is given.
44654         * lib/vasnprintf.c (is_borderline): New function.
44655         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44656         9...9x.
44657         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44658         %e, %g.
44659         * tests/test-vasprintf-posix.c (test_function): Likewise.
44660         * tests/test-snprintf-posix.h (test_function): Likewise.
44661         * tests/test-sprintf-posix.h (test_function): Likewise.
44662         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44663         * tests/test-printf-posix.h (test_function): Likewise.
44664         * tests/test-printf-posix.output: Update.
44665         Reported by John Darrington <john@darrington.wattle.id.au> via
44666         Ben Pfaff <blp@cs.stanford.edu>.
44667
44668 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44669
44670         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44671         Suggested by Bruno Haible <bruno@clisp.org>.
44672
44673 2008-04-17  Bruno Haible  <bruno@clisp.org>
44674
44675         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44676         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44677         implementation.
44678         Patch by Bruce Merry <bmerry@gmail.com>.
44679
44680 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44681
44682         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44683         doesn't work under Windows.
44684
44685 2008-04-16  Bruno Haible  <bruno@clisp.org>
44686
44687         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44688         New macros.
44689         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44690         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44691         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44692         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44693         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44694         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44695         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44696         macros.
44697         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44698         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44699         Northern Sotho, Uighur.
44700
44701 2008-04-16  Bruno Haible  <bruno@clisp.org>
44702
44703         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44704         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44705         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44706         Reported by Daniel Bergström <daniel@octocode.com>.
44707
44708 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44709             Bruno Haible  <bruno@clisp.org>
44710
44711         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44712         function.
44713         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44714         New functions, mostly extracted from gl_locale_name_default.
44715         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44716
44717 2008-04-16  Eric Blake  <ebb9@byu.net>
44718
44719         Adjust strtod detection to catch glibc 2.7 bug.
44720         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44721         Reported by John Gatewood Ham.
44722
44723 2008-04-16  Bruno Haible  <bruno@clisp.org>
44724
44725         Add tentative support for Linux libc5.
44726         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44727         * lib/fpurge.c (fpurge): Likewise.
44728         * lib/freadable.c (freadable): Likewise.
44729         * lib/freadahead.c (freadahead): Likewise.
44730         * lib/freading.c (freading): Likewise.
44731         * lib/freadptr.c (freadptr): Likewise.
44732         * lib/freadseek.c (freadptrinc): Likewise.
44733         * lib/fseeko.c (rpl_fseeko): Likewise.
44734         * lib/fseterr.c (fseterr): Likewise.
44735         * lib/fwritable.c (fwritable): Likewise.
44736         * lib/fwriting.c (fwriting): Likewise.
44737         Reported by Alain Guibert <alguibert+bts@free.fr>.
44738
44739 2008-04-15  Bruno Haible  <bruno@clisp.org>
44740
44741         * modules/mathl (configure.ac): Define module indicator.
44742
44743 2008-04-15  Bruno Haible  <bruno@clisp.org>
44744
44745         * lib/logl.c (logl): Remove unused variables.
44746
44747 2008-04-15  Bruno Haible  <bruno@clisp.org>
44748
44749         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44750         fails.
44751
44752 2008-04-15  Bruno Haible  <bruno@clisp.org>
44753
44754         * lib/trim.c (trim2): Fix argument of isspace() macro.
44755
44756 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44757
44758         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44759         to 0.
44760         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44761
44762 2008-04-14  Bruno Haible  <bruno@clisp.org>
44763
44764         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44765         AC_LANG_PROGRAM argument.
44766         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44767         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44768         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44769         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44770         * m4/math_h.m4 (gl_MATH_H): Likewise.
44771         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44772         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44773         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44774         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44775         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44776         * m4/regex.m4 (gl_REGEX): Likewise.
44777         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44778         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44779         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44780         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
44781         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44782         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44785
44786 2008-04-14  Jim Meyering  <meyering@redhat.com>
44787
44788         test-strtod: fix typos: s/abs/fabs/
44789         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
44790
44791 2008-04-13  Bruno Haible  <bruno@clisp.org>
44792
44793         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
44794         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
44795         module is also used and while not building the reloc-wrapper.
44796
44797 2008-04-13  Bruno Haible  <bruno@clisp.org>
44798
44799         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
44800
44801 2008-04-13  Bruno Haible  <bruno@clisp.org>
44802
44803         Fix AIX compilation failure introduced on 2008-04-02.
44804         * tests/test-frexp.c (exp): Undefine before redefining.
44805         * tests/test-frexpl.c (exp): Likewise.
44806
44807 2008-04-13  Bruno Haible  <bruno@clisp.org>
44808
44809         Work around a HP-UX stdio bug.
44810         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
44811         * tests/test-ftello.c (main): Likewise.
44812         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
44813         * doc/posix-functions/ftello.texi: Likewise.
44814
44815 2008-04-13  Bruno Haible  <bruno@clisp.org>
44816
44817         Make test-signbit pass on HP-UX/hppa.
44818         * tests/test-signbit.c (minus_zerol): New variable.
44819         (test_signbitl): Use it.
44820
44821 2008-04-13  Bruno Haible  <bruno@clisp.org>
44822
44823         Make truncl work on OSF/1 4.0.
44824         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
44825         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44826         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
44828         HAVE_DECL_TRUNCL.
44829         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
44830         HAVE_DECL_TRUNCL.
44831         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
44832
44833 2008-04-13  Bruno Haible  <bruno@clisp.org>
44834
44835         * lib/unictype.h: Remove trailing comma from enumeration definitions.
44836
44837 2008-04-13  Bruno Haible  <bruno@clisp.org>
44838
44839         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
44840         expression, so as to avoid HP-UX 11 cc compiler bug.
44841
44842 2008-04-13  Bruno Haible  <bruno@clisp.org>
44843
44844         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
44845
44846 2008-04-13  Bruno Haible  <bruno@clisp.org>
44847
44848         * lib/git-merge-changelog.c: Remove empty declaration outside of
44849         functions.
44850
44851 2008-04-13  Bruno Haible  <bruno@clisp.org>
44852
44853         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
44854
44855 2008-04-13  Bruno Haible  <bruno@clisp.org>
44856
44857         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
44858         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
44859         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
44860         also if it exists but lacks definitions of the SHUT_* macros.
44861         * modules/sys_socket (Description): Update.
44862         Reported by Elbert Pol <e.pol@chello.nl>.
44863
44864 2008-04-13  Bruno Haible  <bruno@clisp.org>
44865
44866         * lib/localcharset.c (OS2): Don't redefine if already defined.
44867         Reported by Elbert Pol <e.pol@chello.nl>.
44868
44869 2008-04-13  Bruno Haible  <bruno@clisp.org>
44870
44871         * lib/binary-io.h [__EMX__]: Include <io.h>.
44872         Reported by Elbert Pol <e.pol@chello.nl>.
44873
44874 2008-04-12  Bruno Haible  <bruno@clisp.org>
44875
44876         * lib/fpucw.h: Enable the definitions also for x86_64.
44877         Needed for NetBSD/x86_64.
44878         Reported by Thomas Klausner <tk@giga.or.at>.
44879
44880 2008-04-12  Bruno Haible  <bruno@clisp.org>
44881
44882         * tests/test-strtod.c: Include isnand.h.
44883         (main): Use isnand instead of isnan.
44884         Reported by Jim Meyering.
44885
44886 2008-04-12  Bruno Haible  <bruno@clisp.org>
44887
44888         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
44889         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44890
44891 2008-04-12  Jim Meyering  <meyering@redhat.com>
44892
44893         * m4/math_h.m4 (gl_MATH_H): Fix typos.
44894
44895 2008-04-12  Bruno Haible  <bruno@clisp.org>
44896
44897         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
44898         Reported by Elbert Pol <e.pol@chello.nl>.
44899
44900 2008-04-12  Eric Blake  <ebb9@byu.net>
44901
44902         Work around Solaris 10 math.h bug.
44903         * m4/math_h.m4 (gl_MATH_H): Check for bug.
44904         (gl_MATH_H_DEFAULTS): Set up default.
44905         * modules/math (Makefile.am): Replace new indicators.
44906         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
44907         * tests/test-math.c (main): Test this.
44908         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
44909         * doc/posix-headers/math.texi (math.h): Mention bug.
44910         Reported by Nelson H. F. Beebe and Jim Meyering.
44911
44912 2008-04-11  Bruno Haible  <bruno@clisp.org>
44913
44914         Adapt to future versions of Apple GCC.
44915         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
44916         Reported by Peter O'Gorman <peter@pogma.com>.
44917
44918 2008-04-11  Bruno Haible  <bruno@clisp.org>
44919
44920         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
44921
44922 2008-04-11  Bruno Haible  <bruno@clisp.org>
44923
44924         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
44925
44926         * modules/getaddrinfo-tests (Makefile.am): Define
44927         test_getaddrinfo_LDADD.
44928
44929 2008-04-11  Bruno Haible  <bruno@clisp.org>
44930
44931         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
44932         (init): Fix syntax error.
44933         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
44934         is declared.
44935
44936 2008-04-11  Bruno Haible  <bruno@clisp.org>
44937
44938         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
44939         * modules/glob (Depends-on): Add stdbool.
44940
44941 2008-04-11  Bruno Haible  <bruno@clisp.org>
44942
44943         * lib/trim.c: Include <string.h>.
44944
44945 2008-04-11  Eric Blake  <ebb9@byu.net>
44946
44947         Avoid compile failure on OS/2.
44948         * lib/regex_internal.h (internal_function): Disable optimization
44949         on OS/2 (__EMX__), where it caused compiler error.
44950         Reported by Elbert Pol.
44951
44952 2008-04-11  Bruno Haible  <bruno@clisp.org>
44953
44954         Flush the standard error stream before aborting. Needed on mingw.
44955         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
44956         * tests/test-array_list.c (ASSERT): Likewise.
44957         * tests/test-array_oset.c (ASSERT): Likewise.
44958         * tests/test-avltree_list.c (ASSERT): Likewise.
44959         * tests/test-avltree_oset.c (ASSERT): Likewise.
44960         * tests/test-avltreehash_list.c (ASSERT): Likewise.
44961         * tests/test-binary-io.c (ASSERT): Likewise.
44962         * tests/test-byteswap.c (ASSERT): Likewise.
44963         * tests/test-c-ctype.c (ASSERT): Likewise.
44964         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
44965         * tests/test-c-strcasestr.c (ASSERT): Likewise.
44966         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
44967         * tests/test-c-strstr.c (ASSERT): Likewise.
44968         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
44969         * tests/test-canonicalize.c (ASSERT): Likewise.
44970         * tests/test-carray_list.c (ASSERT): Likewise.
44971         * tests/test-ceilf1.c (ASSERT): Likewise.
44972         * tests/test-ceilf2.c (ASSERT): Likewise.
44973         * tests/test-ceill.c (ASSERT): Likewise.
44974         * tests/test-count-one-bits.c (ASSERT): Likewise.
44975         * tests/test-fbufmode.c (ASSERT): Likewise.
44976         * tests/test-fflush2.c (ASSERT): Likewise.
44977         * tests/test-floorf1.c (ASSERT): Likewise.
44978         * tests/test-floorf2.c (ASSERT): Likewise.
44979         * tests/test-floorl.c (ASSERT): Likewise.
44980         * tests/test-fopen.c (ASSERT): Likewise.
44981         * tests/test-fpending.c (ASSERT): Likewise.
44982         * tests/test-fprintf-posix.c (ASSERT): Likewise.
44983         * tests/test-fpurge.c (ASSERT): Likewise.
44984         * tests/test-freadable.c (ASSERT): Likewise.
44985         * tests/test-freadahead.c (ASSERT): Likewise.
44986         * tests/test-freading.c (ASSERT): Likewise.
44987         * tests/test-freadptr.c (ASSERT): Likewise.
44988         * tests/test-freadptr2.c (ASSERT): Likewise.
44989         * tests/test-freadseek.c (ASSERT): Likewise.
44990         * tests/test-freopen.c (ASSERT): Likewise.
44991         * tests/test-frexp.c (ASSERT): Likewise.
44992         * tests/test-frexpl.c (ASSERT): Likewise.
44993         * tests/test-fseek.c (ASSERT): Likewise.
44994         * tests/test-fseeko.c (ASSERT): Likewise.
44995         * tests/test-fstrcmp.c (ASSERT): Likewise.
44996         * tests/test-ftell.c (ASSERT): Likewise.
44997         * tests/test-ftello.c (ASSERT): Likewise.
44998         * tests/test-func.c (ASSERT): Likewise.
44999         * tests/test-fwritable.c (ASSERT): Likewise.
45000         * tests/test-fwriting.c (ASSERT): Likewise.
45001         * tests/test-getdelim.c (ASSERT): Likewise.
45002         * tests/test-getline.c (ASSERT): Likewise.
45003         * tests/test-i-ring.c (ASSERT): Likewise.
45004         * tests/test-iconv-utf.c (ASSERT): Likewise.
45005         * tests/test-iconv.c (ASSERT): Likewise.
45006         * tests/test-isfinite.c (ASSERT): Likewise.
45007         * tests/test-isnand.c (ASSERT): Likewise.
45008         * tests/test-isnanf.c (ASSERT): Likewise.
45009         * tests/test-isnanl.h (ASSERT): Likewise.
45010         * tests/test-ldexpl.c (ASSERT): Likewise.
45011         * tests/test-linked_list.c (ASSERT): Likewise.
45012         * tests/test-linkedhash_list.c (ASSERT): Likewise.
45013         * tests/test-localename.c (ASSERT): Likewise.
45014         * tests/test-lseek.c (ASSERT): Likewise.
45015         * tests/test-mbscasecmp.c (ASSERT): Likewise.
45016         * tests/test-mbscasestr1.c (ASSERT): Likewise.
45017         * tests/test-mbscasestr2.c (ASSERT): Likewise.
45018         * tests/test-mbscasestr3.c (ASSERT): Likewise.
45019         * tests/test-mbscasestr4.c (ASSERT): Likewise.
45020         * tests/test-mbschr.c (ASSERT): Likewise.
45021         * tests/test-mbscspn.c (ASSERT): Likewise.
45022         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
45023         * tests/test-mbspbrk.c (ASSERT): Likewise.
45024         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45025         * tests/test-mbsrchr.c (ASSERT): Likewise.
45026         * tests/test-mbsspn.c (ASSERT): Likewise.
45027         * tests/test-mbsstr1.c (ASSERT): Likewise.
45028         * tests/test-mbsstr2.c (ASSERT): Likewise.
45029         * tests/test-mbsstr3.c (ASSERT): Likewise.
45030         * tests/test-memchr2.c (ASSERT): Likewise.
45031         * tests/test-memmem.c (ASSERT): Likewise.
45032         * tests/test-open.c (ASSERT): Likewise.
45033         * tests/test-printf-frexp.c (ASSERT): Likewise.
45034         * tests/test-printf-frexpl.c (ASSERT): Likewise.
45035         * tests/test-printf-posix.c (ASSERT): Likewise.
45036         * tests/test-quotearg.c (ASSERT): Likewise.
45037         * tests/test-rbtree_list.c (ASSERT): Likewise.
45038         * tests/test-rbtree_oset.c (ASSERT): Likewise.
45039         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
45040         * tests/test-round1.c (ASSERT): Likewise.
45041         * tests/test-roundf1.c (ASSERT): Likewise.
45042         * tests/test-roundl.c (ASSERT): Likewise.
45043         * tests/test-signbit.c (ASSERT): Likewise.
45044         * tests/test-sleep.c (ASSERT): Likewise.
45045         * tests/test-snprintf-posix.c (ASSERT): Likewise.
45046         * tests/test-snprintf.c (ASSERT): Likewise.
45047         * tests/test-sprintf-posix.c (ASSERT): Likewise.
45048         * tests/test-stat-time.c (ASSERT): Likewise.
45049         * tests/test-strcasestr.c (ASSERT): Likewise.
45050         * tests/test-strerror.c (ASSERT): Likewise.
45051         * tests/test-striconv.c (ASSERT): Likewise.
45052         * tests/test-striconveh.c (ASSERT): Likewise.
45053         * tests/test-striconveha.c (ASSERT): Likewise.
45054         * tests/test-strsignal.c (ASSERT): Likewise.
45055         * tests/test-strstr.c (ASSERT): Likewise.
45056         * tests/test-strtod.c (ASSERT): Likewise.
45057         * tests/test-trunc1.c (ASSERT): Likewise.
45058         * tests/test-trunc2.c (ASSERT): Likewise.
45059         * tests/test-truncf1.c (ASSERT): Likewise.
45060         * tests/test-truncf2.c (ASSERT): Likewise.
45061         * tests/test-truncl.c (ASSERT): Likewise.
45062         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
45063         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
45064         * tests/test-vasnprintf.c (ASSERT): Likewise.
45065         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
45066         * tests/test-vasprintf.c (ASSERT): Likewise.
45067         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
45068         * tests/test-vprintf-posix.c (ASSERT): Likewise.
45069         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
45070         * tests/test-vsnprintf.c (ASSERT): Likewise.
45071         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
45072         * tests/test-wcwidth.c (ASSERT): Likewise.
45073         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
45074         * tests/test-xprintf-posix.c (ASSERT): Likewise.
45075         * tests/test-xvasprintf.c (ASSERT): Likewise.
45076         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
45077         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
45078         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
45079         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
45080         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
45081         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
45082         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
45083         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
45084         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
45085         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
45086         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
45087         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
45088         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
45089         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
45090         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
45091         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
45092         * tests/unictype/test-block_list.c (ASSERT): Likewise.
45093         * tests/unictype/test-block_of.c (ASSERT): Likewise.
45094         * tests/unictype/test-block_test.c (ASSERT): Likewise.
45095         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
45096         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
45097         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
45098         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
45099         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
45100         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
45101         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
45102         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
45103         * tests/unictype/test-combining.c (ASSERT): Likewise.
45104         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
45105         * tests/unictype/test-digit.c (ASSERT): Likewise.
45106         * tests/unictype/test-mirror.c (ASSERT): Likewise.
45107         * tests/unictype/test-numeric.c (ASSERT): Likewise.
45108         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
45109         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
45110         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
45111         * tests/unictype/test-scripts.c (ASSERT): Likewise.
45112         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
45113         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
45114         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
45115         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
45116         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
45117         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
45118         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
45119         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
45120         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
45121         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
45122         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
45123         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
45124         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
45125         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
45126         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
45127         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
45128         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
45129         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
45130         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
45131         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
45132         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
45133         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
45134         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
45135         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
45136         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
45137         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
45138         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
45139         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
45140         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
45141         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
45142         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
45143         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
45144         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
45145         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
45146         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
45147         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
45148         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
45149         Reported by Eric Blake.
45150
45151 2008-04-11  Bruno Haible  <bruno@clisp.org>
45152
45153         * lib/wchar.in.h: Tweak comment.
45154
45155 2008-04-11  Bruno Haible  <bruno@clisp.org>
45156
45157         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
45158         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
45159         gl_COMMON.
45160         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
45161
45162 2008-04-11  Bruno Haible  <bruno@clisp.org>
45163
45164         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
45165
45166 2008-04-11  Simon Josefsson  <simon@josefsson.org>
45167
45168         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
45169         of attempting to use non-existing /dev/*random.  Based on patch
45170         from Adam Strzelecki <ono@java.pl> in
45171         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
45172
45173 2008-04-08  Bruno Haible  <bruno@clisp.org>
45174
45175         Add tentative support for emx+gcc.
45176         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
45177         * lib/fpurge.c (fpurge): Likewise.
45178         * lib/freadable.c (freadable): Likewise.
45179         * lib/freadahead.c (freadahead): Likewise.
45180         * lib/freading.c (freading): Likewise.
45181         * lib/freadptr.c (freadptr): Likewise.
45182         * lib/freadseek.c (freadptrinc): Likewise.
45183         * lib/fseeko.c (rpl_fseeko): Likewise.
45184         * lib/fseterr.c (fseterr): Likewise.
45185         * lib/fwritable.c (fwritable): Likewise.
45186         * lib/fwriting.c (fwriting): Likewise.
45187         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
45188
45189 2008-04-09  Eric Blake  <ebb9@byu.net>
45190
45191         Avoid some autoconf warnings.
45192         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
45193         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
45194         * m4/afs.m4 (gl_AFS): Likewise.
45195         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
45196         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
45197         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45198         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
45199         (gl_INTEGER_TYPE_SUFFIX): Likewise.
45200         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
45201         (AC_CHECK_DECLS_ONCE): Likewise.
45202         Rename file...
45203         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
45204         gnulib-tool requires autoconf 2.59 or better.
45205         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
45206
45207 2008-04-08  Eric Blake  <ebb9@byu.net>
45208
45209         Use 'git describe --match' if present (added in git 1.5.5).
45210         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45211         if possible.
45212
45213 2008-04-08  Bruno Haible  <bruno@clisp.org>
45214
45215         Add tentative support for OpenServer.
45216         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45217         _ptr, _cnt.
45218         * lib/fpurge.c (fpurge): Likewise.
45219         * lib/freadable.c (freadable): Likewise.
45220         * lib/freadahead.c (freadahead): Likewise.
45221         * lib/freading.c (freading): Likewise.
45222         * lib/freadptr.c (freadptr): Likewise.
45223         * lib/freadseek.c (freadptrinc): Likewise.
45224         * lib/fseeko.c (rpl_fseeko): Likewise.
45225         * lib/fseterr.c (fseterr): Likewise.
45226         * lib/fwritable.c (fwritable): Likewise.
45227         * lib/fwriting.c (fwriting): Likewise.
45228         Reported by Roger Cornelius <rac@tenzing.org> and
45229         Brian K. White <brian@aljex.com>.
45230
45231 2008-04-06  Jim Meyering  <meyering@redhat.com>
45232
45233         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45234
45235 2008-04-06  Bruno Haible  <bruno@clisp.org>
45236
45237         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45238         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45239         * tests/test-printf-posix.sh: Likewise.
45240         * tests/test-vfprintf-posix.sh: Likewise.
45241         * tests/test-vprintf-posix.sh: Likewise.
45242         * tests/test-xprintf-posix.sh: Likewise.
45243
45244 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45245
45246         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45247         hide error from 'ls', needed on OS/2.
45248         Report by Elbert Pol <elbert.pol@gmail.com>.
45249
45250 2008-04-04  Eric Blake  <ebb9@byu.net>
45251
45252         Make test-fseeko.c failures meaningful.
45253         * tests/test-fseeko.c: Print line number on failure.
45254         * tests/test-fseek.c: Likewise.
45255         Reported by Nelson H. F. Beebe.
45256
45257         Improve strtod bug detection check.
45258         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45259         required for Solaris 10.
45260         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45261
45262 2008-04-04  Bruno Haible  <bruno@clisp.org>
45263
45264         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45265         by m4/setenv.m4.
45266
45267 2008-04-03  Eric Blake  <ebb9@byu.net>
45268
45269         Ensure sane .version contents.
45270         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45271         version string.
45272         * build-aux/git-version-gen: Improve documentation.
45273
45274         Make GNU make output nicer.
45275         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45276         MAKECMDGOALS to enforce message for all command line targets.  Set
45277         srcdir for use in maint.mk.
45278
45279         Another maintainer tweak.
45280         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45281         a target that regenerates version.
45282
45283 2008-04-03  Jim Meyering  <meyering@redhat.com>
45284
45285         vc-list-files: don't cause coreutils "make po-check" failure
45286         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45287
45288 2008-04-03  Eric Blake  <ebb9@byu.net>
45289
45290         Allow VPATH usage of vc-list-files.
45291         * build-aux/vc-list-files (scriptversion): Add timestamp.
45292         (options): Add --help, --version, -C.
45293         (CVS): Support installed cvsu.
45294
45295 2008-04-02  Bruno Haible  <bruno@clisp.org>
45296
45297         Avoid some "statement with no effect" warnings from gcc.
45298         * tests/test-wctype.c (main): Explicitly ignore unused values.
45299         Reported by Jim Meyering.
45300
45301 2008-04-02  Jim Meyering  <meyering@redhat.com>
45302
45303         Avoid some warnings from "gcc -Wshadow".
45304         * tests/test-frexp.c (exp): Define to a different identifier.
45305         * tests/test-frexpl.c (exp): Likewise.
45306
45307 2008-04-03  Jim Meyering  <meyering@redhat.com>
45308
45309         bootstrap: remove dangling *.[ch] symlinks from lib
45310         * build-aux/bootstrap [dangling symlink removal]: Move find's
45311         -depth option to precede all others, to avoid a warning.
45312         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45313
45314 2008-04-02  Bruno Haible  <bruno@clisp.org>
45315
45316         Avoid some warnings from "gcc -Wshadow".
45317         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45318         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45319         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45320         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45321         Reported by Jim Meyering.
45322
45323 2008-04-01  Bruno Haible  <bruno@clisp.org>
45324
45325         Fix test to work on IRIX 6.5 with cc.
45326         * tests/test-math.c (numeric_equal): New function.
45327         (main): Use it.
45328
45329 2008-04-01  Bruno Haible  <bruno@clisp.org>
45330
45331         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45332
45333 2008-04-01  Bruno Haible  <bruno@clisp.org>
45334
45335         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45336         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45337         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45338         (Depends-on): Remove math.
45339
45340         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45341         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45342         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45343         (Depends-on): Remove math.
45344
45345         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45346         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45347         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45348         (Depends-on): Remove math.
45349         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45350         (Depends-on): Remove math.
45351
45352         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45353         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45354         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45355         (Depends-on): Remove math.
45356         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45357         (Depends-on): Remove math.
45358
45359         * tests/test-round1.c: Include nan.h.
45360         (main): Use NaNd instead of NAN.
45361         * modules/round-tests (Files): Add tests/nan.h.
45362
45363         * tests/test-trunc1.c: Include nan.h.
45364         (main): Use NaNd instead of NAN.
45365         * modules/trunc-tests (Files): Add tests/nan.h.
45366
45367         * tests/test-roundf1.c: Include nan.h.
45368         (main): Use NaNf instead of NAN.
45369         * modules/roundf-tests (Files): Add tests/nan.h.
45370
45371         * tests/test-truncf1.c: Include nan.h.
45372         (main): Use NaNf instead of NAN.
45373         * modules/truncf-tests (Files): Add tests/nan.h.
45374
45375         * tests/test-ceilf1.c: Include nan.h.
45376         (main): Use NaNf instead of NAN.
45377         * modules/ceilf-tests (Files): Add tests/nan.h.
45378
45379         * tests/test-floorf1.c: Include nan.h.
45380         (main): Use NaNf instead of NAN.
45381         * modules/floorf-tests (Files): Add tests/nan.h.
45382
45383         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45384         (main): Use NaNf instead of NAN.
45385         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45386
45387         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45388         (main): Use NaNd instead of NAN.
45389         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45390
45391         * tests/test-frexp.c: Include nan.h.
45392         (main): Use NaNd instead of NAN.
45393         * modules/frexp-tests (Files): Add tests/nan.h.
45394
45395         * lib/isnan.c: Don't include <math.h>.
45396         (FUNC): Don't use NAN macro.
45397         * modules/isnand-nolibm (Depends-on): Remove math.
45398         * modules/isnanf-nolibm (Depends-on): Remove math.
45399         * modules/isnanl (Depends-on): Remove math.
45400         * modules/isnanl-nolibm (Depends-on): Remove math.
45401
45402         * tests/nan.h: New file.
45403
45404 2008-04-01  Eric Blake  <ebb9@byu.net>
45405
45406         Fix typos.
45407         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45408         values to be the right type.
45409
45410         For now, cater to gnulib strtod inaccuracies.
45411         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45412         fractional results.  While not as nice from a QoI perspective, it
45413         is a quicker patch than correctly implementing decimal to binary
45414         rounding.
45415
45416 2008-03-31  Eric Blake  <ebb9@byu.net>
45417
45418         Guarantee a definition of NAN.
45419         * lib/math.in.h (NAN): Define if missing.
45420         * tests/test-math.c (main): Test it.
45421         * doc/posix-headers/math.texi (math.h): Document this.
45422         * lib/isnan.c (rpl_isnand): Use it.
45423         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45424         * tests/test-floorf1.c (NaN): Likewise.
45425         * tests/test-frexp.c (NaN): Likewise.
45426         * tests/test-isnand.c (NaN): Likewise.
45427         * tests/test-isnanf.c (NaN): Likewise.
45428         * tests/test-round1.c (NaN): Likewise.
45429         * tests/test-roundf1.c (NaN): Likewise.
45430         * tests/test-snprintf-posix.h (NaN): Likewise.
45431         * tests/test-sprintf-posix.h (NaN): Likewise.
45432         * tests/test-trunc1.c (NaN): Likewise.
45433         * tests/test-truncf1.c (NaN): Likewise.
45434         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45435         * tests/test-vasprintf-posix.c (NaN): Likewise.
45436         * modules/isnand-nolibm (Depends-on): Add math.
45437         * modules/isnanf-nolibm (Depends-on): Likewise.
45438         * modules/isnanl (Depends-on): Likewise.
45439         * modules/isnanl-nolibm (Depends-on): Likewise.
45440         * modules/snprintf-posix-tests (Depends-on): Likewise.
45441         * modules/sprintf-posix-tests (Depends-on): Likewise.
45442         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45443         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45444         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45445         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45446
45447 2008-03-31  Bruno Haible  <bruno@clisp.org>
45448
45449         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45450         * doc/posix-functions/strtod.texi: Likewise.
45451
45452 2008-03-31  Bruno Haible  <bruno@clisp.org>
45453
45454         * tests/test-strtod.c (main): Don't use C99 syntax.
45455
45456 2008-03-31  Bruno Haible  <bruno@clisp.org>
45457
45458         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45459         Reported by Eric Blake.
45460
45461 2008-03-31  Jim Meyering  <meyering@redhat.com>
45462
45463         Don't compare actual signbit return values.
45464         * tests/test-strtod.c (main): Rather, compare only their
45465         zero/non-zero nature.
45466
45467 2008-03-31  Eric Blake  <ebb9@byu.net>
45468
45469         More strtod documentation.
45470         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45471         failures as distinct bugs.
45472
45473 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45474
45475         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45476         Problem reported by Erik Benada in
45477         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45478
45479 2008-03-30  Bruno Haible  <bruno@clisp.org>
45480
45481         * tests/test-strtod.c: Add comments about which assertion fails on which
45482         platform.
45483         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45484
45485 2008-03-30  Eric Blake  <ebb9@byu.net>
45486
45487         Test signbit behavior on zeros.
45488         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45489         (test_signbitd, test_signbitl): Likewise.
45490
45491         More strtod touchups.
45492         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45493         sign of negative underflow, for now.  Use .5, not .1.
45494         * doc/posix-functions/strtod.texi (strtod): Mention these
45495         limitations.
45496         Reported by Jim Meyering.
45497
45498 2008-03-30  Bruno Haible  <bruno@clisp.org>
45499
45500         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45501         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45502
45503 2008-03-30  Bruno Haible  <bruno@clisp.org>
45504
45505         Avoid failure when attempting to return empty iconv results on some
45506         platforms.
45507         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45508         allocation, don't report ENOMEM when the resulting string is empty.
45509
45510 2008-03-30  Bruno Haible  <bruno@clisp.org>
45511
45512         Fix buffer overrun.
45513         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45514         Don't consider the width for tmp_length. Check count against tmp_length
45515         before doing the padding. Ensure enough allocation during padding.
45516
45517 2008-03-30  Eric Blake  <ebb9@byu.net>
45518
45519         strtod touchups.
45520         * lib/strtod.c (strtod): Avoid compiler warnings.
45521         Reported by Jim Meyering.
45522
45523 2008-03-30  Bruno Haible  <bruno@clisp.org>
45524
45525         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45526         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45527         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45528         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45529         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45530         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45531         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45532         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45533
45534         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45535         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45536         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45537         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45538         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45539         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45540         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45541         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45542
45543         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45544         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45545         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45546         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45547         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45548         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45549         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45550         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45551
45552         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45553         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45554
45555         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45556         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45557
45558         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45559         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45560
45561         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45562         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45563         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45564
45565         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45566         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45567         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45568
45569         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45570         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45571         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45572
45573         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45575         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45576
45577         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45578         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45579         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45580         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45581         (Depends-on): Add EOVERFLOW.
45582         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45583         (Depends-on): Add EOVERFLOW.
45584         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45585         (Depends-on): Add EOVERFLOW.
45586         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45587         (Depends-on): Add EOVERFLOW.
45588         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45589         (Depends-on): Add EOVERFLOW.
45590         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45591         (Depends-on): Add EOVERFLOW.
45592         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45593         (Depends-on): Add EOVERFLOW.
45594         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45595         (Depends-on): Add EOVERFLOW.
45596
45597         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45598         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45599         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45600
45601         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45602         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45603         * modules/snprintf (Depends-on): Add EOVERFLOW.
45604
45605         * lib/poll.c (EOVERFLOW): Remove fallback.
45606         * modules/poll (Depends-on): Add EOVERFLOW.
45607
45608         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45609         * modules/getugroups (Depends-on): Add EOVERFLOW.
45610
45611         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45612         * modules/getdelim (Depends-on): Add EOVERFLOW.
45613
45614         * lib/ftell.c (EOVERFLOW): Remove fallback.
45615         * modules/ftell (Depends-on): Add EOVERFLOW.
45616
45617         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45618         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45619         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45620
45621         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45622
45623         * modules/EOVERFLOW-tests: New file.
45624         * tests/test-EOVERFLOW.c: New file.
45625
45626         * modules/EOVERFLOW: New file.
45627         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45628
45629 2008-03-30  Bruno Haible  <bruno@clisp.org>
45630
45631         Fix bug introduced on 2007-06-10.
45632         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45633         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45634
45635 2008-03-30  Bruno Haible  <bruno@clisp.org>
45636
45637         Improve freadseek's efficiency after ungetc.
45638         * lib/freadseek.c: Include freadahead.h.
45639         (freadptrinc): New function, extracted from freadseek.
45640         (freadseek): Use it in a loop. Use freadahead to determine the number
45641         of loop iterations.
45642         * modules/freadseek (Depends-on): Add freadahead.
45643         (configure.ac): Require AC_C_INLINE.
45644
45645 2008-03-30  Bruno Haible  <bruno@clisp.org>
45646
45647         * lib/freadseek.c (freadseek): Don't ignore the return value of
45648         freadptr.
45649
45650 2008-03-29  Eric Blake  <ebb9@byu.net>
45651
45652         Add hex float support.
45653         * modules/strtod (Depends-on): Add c-ctype.
45654         (Link): Mention POW_LIB.
45655         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45656         whitespace between 'e' and exponent.
45657         * tests/test-strtod.c (main): Enable hex float tests.
45658         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45659         now provides.
45660
45661         Document various strtod bugs, with some fixes.
45662         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45663         "-0x", "inf", "nan", and hex constants.
45664         * doc/posix-functions/atof.texi (atof): Likewise.
45665         * modules/stdlib (Makefile.am): Support strtod.
45666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45667         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45668         detect additional strtod bugs.
45669         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45670         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45671         bool where appropriate.  Parse 'inf' and 'nan'.
45672         * tests/test-strtod.c: New file.
45673         * modules/strtod (Depends-on): Add stdbool, stdlib.
45674         (configure.ac): Turn on module indicator.
45675         * modules/strtod-tests: New module.
45676
45677 2008-03-29  Eric Blake  <ebb9@byu.net>
45678
45679         Fix ftell on mingw.
45680         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45681         * modules/ftell-tests (Depends-on): Add binary-io.
45682         * modules/ftello-tests (Depends-on): Likewise.
45683         * tests/test-ftell.c (main): Enhance test to cover behavior after
45684         ungetc.  Enforce binary mode.
45685         * tests/test-ftello.c (main): Likewise.
45686
45687         Pass test-freadseek on cygwin.
45688         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45689         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45690         ungetc buffer.
45691
45692         * tests/test-fflush2.c (main): Fix typo.
45693
45694 2008-03-29  Bruno Haible  <bruno@clisp.org>
45695
45696         * tests/test-fflush2.c (main): Temporarily disable the contents of
45697         this test.
45698         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45699         Reported by Eric Blake.
45700
45701 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45702
45703         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45704         (GC_SHA224_DIGEST_SIZE): Add.
45705
45706         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45707         (gc_hash_digest_length): Likewise.
45708         (gc_hash_buffer): Likewise.
45709
45710 2008-03-25  Bruno Haible  <bruno@clisp.org>
45711
45712         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45713         detail which gettext release to use.
45714         Reported by Simon Josefsson.
45715
45716 2008-03-26  Jim Meyering  <meyering@redhat.com>
45717
45718         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45719         * modules/gnumakefile (clean-GNUmakefile): Also, use
45720         test ... && ... || : syntax rather than if-then ... fi.
45721
45722         gnumakefile: Don't double-quote-expand $(VPATH) value.
45723         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45724
45725 2008-03-24  Eric Blake  <ebb9@byu.net>
45726
45727         Alter GNUmakefile to install into top directory.
45728         * modules/maintainer-makefile: Split, and add dependency...
45729         * modules/gnumakefile: to this new module.
45730         * build-aux/GNUmakefile: Move...
45731         * top/GNUmakefile: ...here.
45732         * build-aux/maint.mk: Move...
45733         * top/maint.mk: ...here.
45734         * MODULES.html.sh (Support for maintaining...): Document new
45735         module.
45736
45737 2008-03-23  Bruno Haible  <bruno@clisp.org>
45738
45739         * gnulib-tool: New options --vc-files, --no-vc-files.
45740         (func_usage): Document them.
45741         (vc_files): New variable.
45742         (func_import): Consider vc_files.
45743         (func_create_testdir): Set vc_files to empty.
45744         Suggested by Jim Meyering and Karl Berry.
45745
45746 2008-03-23  Bruno Haible  <bruno@clisp.org>
45747
45748         Fix regex compilation error on HP-UX 11.
45749         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45750         * modules/regex (Files): Add m4/mbstate_t.m4.
45751         Reported by Ton Voon <ton.voon@altinity.com>.
45752
45753 2008-03-23  Bruno Haible  <bruno@clisp.org>
45754
45755         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45756
45757 2008-03-23  Eric Blake  <ebb9@byu.net>
45758             Bruno Haible  <bruno@clisp.org>
45759
45760         Install files from top/ in the destination directory.
45761         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45762         augmentation also for the files from top/.
45763         (func_import, func_create_testdir): Rewrite file names:
45764         top/filename -> filename.
45765
45766 2008-03-23  Bruno Haible  <bruno@clisp.org>
45767
45768         Tweak "gnulib --version" output.
45769         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45770
45771 2008-03-23  Bruno Haible  <bruno@clisp.org>
45772
45773         Tweak "gnulib --version" output.
45774         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45775         rather than contents of ChangeLog, when possible.
45776
45777 2008-03-21  Eric Blake  <ebb9@byu.net>
45778
45779         More --version tweaks.
45780         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
45781         date of last ChangeLog entry.
45782
45783 2008-03-21  Jim Meyering  <meyering@redhat.com>
45784
45785         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
45786
45787 2008-03-20  Eric Blake  <ebb9@byu.net>
45788
45789         VPATH fix.
45790         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
45791
45792 2008-03-20  Simon Josefsson  <simon@josefsson.org>
45793
45794         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
45795         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
45796
45797 2008-03-20  Eric Blake  <ebb9@byu.net>
45798
45799         Sync GNUmakefile with coreutils.
45800         * build-aux/GNUmakefile (have-Makefile): Rename...
45801         (_have-Makefile): ...to this, for namespace consideration.
45802         (GNUmakefile.cfg): Include, if present.
45803         (_autoreconf): Define a default.
45804         (_is-dist-target): New rule for rebuilds to pick up intra-release
45805         version.
45806         (maint-cfg.mk): Rename...
45807         (cfg.mk): ...to this.
45808
45809 2008-03-18  Jim Meyering  <meyering@redhat.com>
45810
45811         New script and module: mktempd
45812         * MODULES.html.sh (maint+release support): Add mktempd.
45813         * build-aux/mktempd: New file.
45814         * modules/mktempd: New file.
45815
45816 2008-03-15  Jim Meyering  <meyering@redhat.com>
45817
45818         Undo last change.
45819         * lib/sha1.c, lib/md5.c: 63 != ~63.
45820         Reported by Andreas Schwab.
45821
45822         sha1.c, md5.c: Hoist a redundant expression.
45823         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
45824         "ctx->buflen" only once, before calling *_process_block.
45825         * lib/md5.c (md5_process_bytes): Likewise.
45826
45827 2008-03-14  Eric Blake  <ebb9@byu.net>
45828
45829         Bump copyright year in files generated by gnulib-tool.
45830         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
45831         gnulib-tool, rather than hard-coding it.
45832
45833         Fix 'gnulib-tool --version' output to work with git.
45834         * gnulib-tool (func_gnulib_dir): New function, extracted from...
45835         (startup): ...here.
45836         (func_version): Use it to invoke git-version-gen, rather than
45837         relying on CVS keyword expansion.  Modernize wording.
45838         (cvsdatestamp, last_checkin_date, version): Kill unused
45839         variables.
45840
45841 2008-03-12  Jim Meyering  <meyering@redhat.com>
45842
45843         Recognize optional cast of the argument to free.
45844         * build-aux/useless-if-before-free: Update regexps.
45845
45846         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
45847
45848 2008-03-11  Bruno Haible  <bruno@clisp.org>
45849
45850         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
45851         by a single package.
45852         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
45853         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
45854         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
45855         Reported by Sam Steingold <sds@gnu.org>.
45856
45857 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45858
45859         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
45860         repositories.
45861
45862 2008-03-11  Bruno Haible  <bruno@clisp.org>
45863
45864         Avoid conflicts between local macro definitions.
45865         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45866         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
45867
45868 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
45869             Bruno Haible  <bruno@clisp.org>
45870
45871         Make va_copy work with some version of xlc on AIX 5.1.
45872         * lib/stdarg.in.h: New file.
45873         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
45874         On AIX, use a <stdarg.h> file substitute.
45875         * modules/stdarg (Files): Add lib/stdarg.in.h.
45876         (Depends-on): Add include_next.
45877         (Makefile.am): Build a stdarg.h substitute if requested.
45878         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
45879
45880 2008-03-10  Bruno Haible  <bruno@clisp.org>
45881
45882         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
45883         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45884         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45885
45886 2008-03-10  Bruno Haible  <bruno@clisp.org>
45887
45888         * modules/stdlib (Depends-on): Add include_next, remove
45889         absolute-header.
45890
45891 2008-03-09  Bruno Haible  <bruno@clisp.org>
45892
45893         * lib/freadahead.h (freadahead): Document more precisely.
45894         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
45895         the sum of both buffer sizes.
45896         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
45897         * NEWS: Document the change.
45898
45899 2008-03-09  Bruno Haible  <bruno@clisp.org>
45900
45901         Extend freadptr to return also the buffer size.
45902         * lib/freadptr.h (freadptr): Add sizep argument.
45903         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
45904         (freadptr): Add sizep argument. Determine buffer size like freadahead
45905         does.
45906         * tests/test-freadptr.c: Don't include freadahead.h.
45907         (main): Adapt for new calling convention of freadptr.
45908         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
45909         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
45910         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
45911         tests/test-freadptr2.sh.
45912         (Depends): Remove freadahead.
45913         (TESTS): Add test-freadptr2.sh.
45914         (check_PROGRAMS): Add test-freadptr2.
45915
45916 2008-03-09  Bruno Haible  <bruno@clisp.org>
45917
45918         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
45919         Report and solution by Simon Josefsson.
45920
45921 2008-03-06  Bruno Haible  <bruno@clisp.org>
45922
45923         Make fflush after ungetc work on BSD platforms.
45924         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
45925         * tests/test-fflush2.c: New file.
45926         * tests/test-fflush2.sh: New file.
45927         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
45928         tests/test-fflush2.c.
45929         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
45930         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
45931
45932 2008-03-06  Eric Blake  <ebb9@byu.net>
45933
45934         Likewise for ftello.
45935         * modules/ftello (Dependencies): Add extensions.
45936         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
45937
45938 2008-03-06  Bruno Haible  <bruno@clisp.org>
45939
45940         * modules/fseeko (Dependencies): Add extensions.
45941         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
45942         Needed on glibc systems.
45943
45944 2008-03-06  Bruno Haible  <bruno@clisp.org>
45945
45946         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
45947         email address.
45948         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45949
45950 2008-03-06  Bruno Haible  <bruno@clisp.org>
45951
45952         * users.txt: Add libgnupdf.
45953
45954 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45955
45956         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
45957         (Header File Substitutes, Function Substitutes,
45958         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
45959         (Build robot for gnulib): Fix typo.
45960
45961 2008-03-06  Bruno Haible  <bruno@clisp.org>
45962
45963         * doc/gnulib-tool.texi (VCS Issues): Small updates.
45964         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45965
45966 2008-03-06  Bruno Haible  <bruno@clisp.org>
45967
45968         * doc/func.texi: New file, extracted from doc/gnulib.texi.
45969         * doc/gnulib.texi: Include it.
45970
45971 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45972
45973         * modules/func (License): Change license to unlimited; there was
45974         no LGPL parts in the module anyway.
45975
45976 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45977
45978         * modules/__func__: Renamed to modules/func.
45979         * modules/__func__-tests: Renamed to modules/func-tests.
45980         * tests/test-__func__.c: Renamed to tests/test-func.c.
45981         * m4/__func__.m4: Renamed to m4/func.m4.
45982         * doc/gnulib.texi (__func__): Section renamed to func.
45983         Suggested by Eric Blake <ebb9@byu.net>.
45984
45985 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45986
45987         * doc/gnulib.texi (__func__): Use C99 terminology when talking
45988         about __func__.  Make example self-contained.  Suggested by Eric
45989         Blake <ebb9@byu.net>.
45990
45991         * tests/test-__func__.c (main): Avoid extraneous () around __func.
45992         Suggested by Eric Blake <ebb9@byu.net>.
45993
45994 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45995
45996         * modules/__func__: New file.
45997         * modules/__func__-tests: New file.
45998         * tests/test-__func__.c: New file.
45999         * m4/__func__.m4: New file.
46000         * doc/gnulib.texi (__func__): Document __func__ module.
46001
46002 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46003
46004         * modules/byteswap (License): Re-license as LGPLv2+.
46005
46006 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46007
46008         * doc/Makefile: Add pdf target.
46009
46010 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46011
46012         * modules/inline (License): Use 'unlimited', since there are only
46013         *.m4 files in this module.
46014
46015 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46016             Bruno Haible  <bruno@clisp.org>
46017
46018         Add support for HP C 7.1 on OpenVMS 8.3.
46019         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
46020
46021 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46022
46023         Update VMS specifics.
46024         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46025
46026 2008-03-02  Jim Meyering  <meyering@redhat.com>
46027
46028         Remove the last dependency on the "free" module.
46029         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
46030         Reported by Bob Proulx.
46031
46032         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
46033
46034         Remove useless "if" tests before free.  Deprecate "free" module.
46035         * doc/posix-functions/free.texi: Mention that this
46036         module is no longer useful.
46037         * modules/free (Notice): Say this module is obsolete.
46038         * modules/readutmp (Depends-on): Remove free.
46039         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
46040         * lib/putenv.c (putenv): Likewise.
46041         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
46042         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
46043         * tests/test-c-strcasestr.c (main): Likewise.
46044         * tests/test-c-strstr.c (main): Likewise.
46045         * tests/test-mbscasestr1.c (main): Likewise.
46046         * tests/test-mbscasestr2.c (main): Likewise.
46047         * tests/test-mbsstr1.c (main): Likewise.
46048         * tests/test-mbsstr2.c (main): Likewise.
46049         * tests/test-memmem.c (main): Likewise.
46050         * tests/test-strcasestr.c (main): Likewise.
46051         * tests/test-striconv.c (main): Likewise.
46052         * tests/test-striconveh.c (main): Likewise.
46053         * tests/test-striconveha.c (main): Likewise.
46054         * tests/test-strstr.c (main): Likewise.
46055
46056         * build-aux/git-version-gen: Adjust a comment and the Usage string.
46057
46058         bootstrap: sync from coreutils again
46059         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
46060
46061 2008-03-01  Jim Meyering  <meyering@redhat.com>
46062
46063         bootstrap: sync from coreutils
46064         * build-aux/bootstrap (update_po_files): Copy a .po file into place
46065         also when the target doesn't exist.
46066
46067 2008-03-01  Eric Blake  <ebb9@byu.net>
46068
46069         Fix bugs in last patch.
46070         * lib/memchr2.c (memchr2): Fix typo.
46071         * tests/test-memchr2.c: Test previous bug, and don't use GNU
46072         extension.
46073         Reported by Bruce Korb.
46074
46075         New module 'memchr2'.
46076         * modules/memchr2: New file.
46077         * modules/memchr2-tests: Likewise.
46078         * lib/memchr2.h: Likewise.
46079         * lib/memchr2.c: Likewise, based on memchr.c.
46080         * tests/test-memchr2.c: New test.
46081         * MODULES.html.sh (String handling): Add memchr2.
46082
46083 2008-02-29  Bruno Haible  <bruno@clisp.org>
46084
46085         * modules/freadseek-tests: New file.
46086         * tests/test-freadseek.sh: New file.
46087         * tests/test-freadseek.c: New file.
46088
46089         New module 'freadseek'.
46090         * modules/freadseek: New file.
46091         * lib/freadseek.h: New file.
46092         * lib/freadseek.c: New file.
46093         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
46094
46095 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46096
46097         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
46098         wydawca.
46099
46100         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
46101         program_invocation_name and program_invocation_short_name are
46102         present.
46103
46104 2008-02-28  Bruno Haible  <bruno@clisp.org>
46105
46106         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
46107         * tests/test-freadptr.sh: Also test non-seekable stdin.
46108
46109 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
46110
46111         * build-aux/bootstrap (source_base, m4_base)
46112         (doc_base, tests_base): New variables.
46113         (gnulib_tool_options): Do not hardcode base directories, use
46114         the above variables instead.
46115
46116 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
46117
46118         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
46119
46120 2008-02-28  Bruno Haible  <bruno@clisp.org>
46121
46122         * modules/freadptr-tests: New file.
46123         * tests/test-freadptr.sh: New file.
46124         * tests/test-freadptr.c: New file.
46125
46126         New module 'freadptr'.
46127         * modules/freadptr: New file.
46128         * lib/freadptr.h: New file.
46129         * lib/freadptr.c: New file.
46130         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
46131
46132 2008-02-26  Karl Berry  <karl@freefriends.org>
46133
46134         Sync from Libtool:
46135         * libltdl/argz.c (argz_add, argz_count): New functions.
46136         * libltdl/argz.in.h: Declare them.
46137         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
46138
46139 2008-02-22  Bruno Haible  <bruno@clisp.org>
46140
46141         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
46142         is a pointer type.  Needed for HP-UX 10.
46143         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
46144         * doc/posix-functions/gmtime_r.texi: Likewise.
46145         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46146
46147 2008-02-24  Bruno Haible  <bruno@clisp.org>
46148
46149         * modules/environ-tests: New file.
46150         * tests/test-environ.c: New file.
46151
46152         New module 'environ'.
46153         * modules/environ: New file.
46154         * lib/unistd.in.h (environ): New declaration.
46155         * m4/environ.m4: New file.
46156         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
46157         after use.
46158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
46159         HAVE_DECL_ENVIRON.
46160         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
46161         HAVE_DECL_ENVIRON.
46162         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
46163         wrong claim that 'environ' is missing on some systems.
46164         * modules/execute (Depends-on): Add environ.
46165         * lib/execute.c (environ): Remove fallback declaration.
46166         * modules/pipe (Depends-on): Add environ.
46167         * lib/pipe.c (environ): Remove fallback declaration.
46168         * modules/setenv (Depends-on): Add environ.
46169         * lib/setenv.c (environ): Remove fallback declaration.
46170         * modules/unsetenv (Depends-on): Add environ.
46171         * lib/unsetenv.c (environ): Remove fallback declaration.
46172         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
46173         m4/environ.m4.
46174         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
46175         (gl_PREREQ_UNSETENV): Likewise.
46176
46177 2008-02-24  Bruno Haible  <bruno@clisp.org>
46178
46179         * doc/posix-functions/environ.texi: Document the MacOS X problem.
46180
46181 2008-02-20  Bob Proulx  <bob@proulx.com>
46182
46183         Enable use of older two part flavor 'git describe'.
46184         * build-aux/git-version-gen: If using the older two part flavor of
46185         git version then recreate the third part now present in the
46186         newer three part flavor of git describe.
46187
46188 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
46189
46190         * lib/fts.c (fts_build): Typo correction to comment.
46191
46192 2008-02-17  Bruno Haible  <bruno@clisp.org>
46193
46194         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46195         generating no-op conflicts.
46196
46197 2008-02-17  Bruno Haible  <bruno@clisp.org>
46198
46199         Speed up by 10%.
46200         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
46201         result_entries, rather than an index-based loop.
46202
46203 2008-02-17  Bruno Haible  <bruno@clisp.org>
46204
46205         Speed up by 25%.
46206         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46207         'hashcode_cached'.
46208         (entry_create): New function.
46209         (entry_hashcode): Use the cached hashcode if possible.
46210         (read_changelog_file, try_split_merged_entry): Use entry_create.
46211
46212 2008-02-17  Bruno Haible  <bruno@clisp.org>
46213
46214         Speed up from O(n^2) to O(n) for long ChangeLog files.
46215         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46216         (read_changelog_file): Change implementation of entries_reversed list
46217         to rbtreehash.
46218         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46219
46220 2008-02-17  Bruno Haible  <bruno@clisp.org>
46221
46222         New option --split-merged-entry.
46223         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46224         (find_paragraph_end, try_split_merged_entry): New functions.
46225         (long_options): Add option --split-merged-entry.
46226         (usage): Document option --split-merged-entry.
46227         (main): Implement option --split-merged-entry.
46228         Reported by Eric Blake.
46229
46230 2008-02-17  Bruno Haible  <bruno@clisp.org>
46231
46232         * lib/git-merge-changelog.c: Include c-strstr.h.
46233         (main): Support the "git pull --rebase" situation.
46234         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46235         Reported by Eric Blake.
46236
46237 2008-02-16  Eric Blake  <ebb9@byu.net>
46238
46239         Avoid doubling \ in common case of "c-maybe" quoting style.
46240         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46241         eliding outer quotes.
46242         * lib/quotearg.h: Document this.
46243         * tests/test-quotearg.c (result_strings, inputs, results_g)
46244         (flag_results, locale_results): Test it by adding a new string to
46245         each test group.
46246         (compare_strings): Test new string.
46247
46248 2008-02-13  Eric Blake  <ebb9@byu.net>
46249
46250         Avoid trigraph quoting in default output.
46251         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46252         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46253         unless explicitly requested.
46254         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46255
46256 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46257
46258         Don't rely on signed integer overflowing to negative value.
46259         * lib/getugroups.c (getugroups): Include <limits.h>.
46260         Instead, compare against INT_MAX, and increment only if the test passes.
46261
46262 2008-02-13  Jim Meyering  <meyering@redhat.com>
46263         and Eric Blake  <ebb9@byu.net>
46264
46265         Avoid shadowing warning and compile errors on Linux.
46266         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46267         forwarding macros on Linux.
46268         (dcgettext): Define a stub, for Linux.
46269         (results_g, main): Avoid warnings.
46270
46271 2008-02-12  Eric Blake  <ebb9@byu.net>
46272
46273         Silence warning in last patch.
46274         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46275
46276         Quotearg part 4: add tests, fix c-maybe colon quoting.
46277         * lib/quotearg.h: Improve documentation.
46278         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46279         escapes when adding outer quotes.  When quoting trigraphs, use
46280         valid C notation.  When quoting NUL, omit extra characters if next
46281         character is not digit.  Alter prototype.
46282         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46283         callers.
46284         * modules/quotearg-tests: New module.
46285         * tests/test-quotearg.c: New test.
46286
46287 2008-02-07  Eric Blake  <ebb9@byu.net>
46288
46289         Quotearg part 3: add flag to control outer quote elision.
46290         * lib/quotearg.h (c_maybe_quoting_style): New style.
46291         (enum quoting_flags): Better documentation of flags.
46292         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46293         c-maybe style.
46294         (quotearg_buffer_restyled): Handle new flag to elide outer
46295         quotes.
46296
46297         Quotearg part 2: add flag that can control NUL elision.
46298         * lib/quotearg.h (set_quoting_flags): New prototype.
46299         * lib/quotearg.c (struct quoting_options): Add flag field.
46300         (set_quoting_flags): New function.
46301         (quotearg_buffer_restyled): Add flags parameter.
46302         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46303         (quotearg_n_options): Set the flag, since length cannot be
46304         returned.
46305         (quoting_options_from_style): Default flags correctly.
46306
46307         Quotearg part 1: more wrappers, restore quotearg_char state.
46308         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46309         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46310         (quotearg_colon_mem): New wrappers.
46311         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46312         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46313         functions.
46314         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46315         (quotearg_colon_mem): New functions.
46316
46317 2008-02-11  Bruno Haible  <bruno@clisp.org>
46318
46319         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46320         library in the current directory: it does not work with parallel make.
46321         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46322
46323 2008-02-11  Bruno Haible  <bruno@clisp.org>
46324
46325         * .gitattributes: New file.
46326
46327 2008-02-11  Jim Meyering  <meyering@redhat.com>
46328
46329         useless-if-before-free: Fix reversed exit values.
46330         * build-aux/useless-if-before-free: Use correct values
46331         for EXIT_MATCH and EXIT_NO_MATCH.
46332
46333         * build-aux/useless-if-before-free: Close stdout carefully.
46334
46335 2008-02-10  Bruno Haible  <bruno@clisp.org>
46336
46337         New module 'git-merge-changelog'.
46338         * modules/git-merge-changelog: New file.
46339         * lib/git-merge-changelog.c: New file.
46340
46341 2008-02-10  Jim Meyering  <meyering@redhat.com>
46342
46343         useless-if-before-free: New option: --list (-l).
46344
46345         useless-if-before-free: Don't exit immediately upon open failure.
46346         * build-aux/useless-if-before-free: Exit 2 for errors.
46347         Upon failure to open a file, don't exit immediately.
46348         Rather, just warn and continue with any remaining files.
46349
46350 2008-02-10  Bruno Haible  <bruno@clisp.org>
46351
46352         New abstract list operation 'node_set_value'.
46353         * lib/gl_list.h (gl_list_node_set_value): New function.
46354         (struct gl_list_implementation): New field node_set_value.
46355         * lib/gl_list.c (gl_list_node_set_value): New function.
46356         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46357         (gl_array_list_implementation): Update.
46358         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46359         (gl_carray_list_implementation): Update.
46360         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46361         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46362         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46363         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46364         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46365         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46366         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46367         Update.
46368         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46369         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46370         (gl_sublist_list_implementation): Update.
46371
46372 2008-02-10  Bruno Haible  <bruno@clisp.org>
46373
46374         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46375         Needed when ELEMENT is #defined to 'some_type *'.
46376
46377 2008-02-10  Jim Meyering  <meyering@redhat.com>
46378
46379         New script and module: useless-if-before-free
46380         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46381         * build-aux/useless-if-before-free: New file.
46382         * modules/useless-if-before-free: New file.
46383
46384         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46385
46386         xstrtol_error: Fix typo.
46387         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46388         s/exit_failure/exit_status/.
46389
46390 2008-02-09  Jim Meyering  <meyering@redhat.com>
46391
46392         New script and module: gitlog-to-changelog
46393         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46394         * modules/gitlog-to-changelog: New file.
46395         * build-aux/gitlog-to-changelog: New file.
46396
46397 2008-02-08  Jim Meyering  <meyering@redhat.com>
46398
46399         Avoid two "parameter unused" warnings.
46400         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46401         Mark "st" as used.
46402
46403         Use "git COMMAND", not "git-COMMAND".
46404         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46405         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46406         * build-aux/git-version-gen: Use "git status", not "git-status".
46407
46408 2008-02-07  Bruno Haible  <bruno@clisp.org>
46409
46410         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46411         Avoids a crash on Windows Vista.
46412         Reported by Adam Strzelecki <ono@java.pl> via
46413         Simon Josefsson <simon@josefsson.org>.
46414
46415 2008-02-06  Bruno Haible  <bruno@clisp.org>
46416
46417         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46418         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46419         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46421         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46422         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46423         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46424         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46425         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46426         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46427         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46428         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46429         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46430         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46431         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46432         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46433         left-adjust flag.
46434         * tests/test-snprintf-posix.h (test_function): Likewise.
46435         * tests/test-sprintf-posix.h (test_function): Likewise.
46436         * tests/test-vasprintf-posix.c (test_function): Likewise.
46437         * doc/posix-functions/fprintf.texi: Update.
46438         * doc/posix-functions/printf.texi: Update.
46439         * doc/posix-functions/snprintf.texi: Update.
46440         * doc/posix-functions/sprintf.texi: Update.
46441         * doc/posix-functions/vfprintf.texi: Update.
46442         * doc/posix-functions/vprintf.texi: Update.
46443         * doc/posix-functions/vsnprintf.texi: Update.
46444         * doc/posix-functions/vsprintf.texi: Update.
46445         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46446
46447 2008-02-06  Bruno Haible  <bruno@clisp.org>
46448
46449         Fix bug introduced on 2008-01-26.
46450         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46451
46452 2008-02-06  Bruno Haible  <bruno@clisp.org>
46453
46454         Fix bug introduced on 2007-06-10.
46455         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46456         !NEED_PRINTF_FLAG_ZERO.
46457
46458 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46459
46460         getloadavg: use libperfstat on AIX5
46461         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46462
46463 2008-02-03  Bruno Haible  <bruno@clisp.org>
46464
46465         * lib/diffseq.h: Add comments about required #includes.
46466         Reported by Michael Biggs <gnulib@doubleplum.net>.
46467
46468 2008-02-01  Bruno Haible  <bruno@clisp.org>
46469
46470         * users.txt: Add gnuit.
46471
46472 2008-01-31  Bruno Haible  <bruno@clisp.org>
46473
46474         * lib/md4.c (set_uint32): Mark as inline.
46475         * lib/md5.c (set_uint32): Likewise.
46476         * lib/sha1.c (set_uint32): Likewise.
46477         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46478         * m4/md5.m4 (gl_MD5): Likewise.
46479         * m4/sha1.m4 (gl_SHA1): Likewise.
46480
46481 2008-01-31  Jim Meyering  <meyering@redhat.com>
46482
46483         Use "sizeof VAR", rather than a literal "4".
46484         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46485         * lib/md4.c (md4_read_ctx): Likewise.
46486         * lib/sha1.c (sha1_read_ctx): Likewise.
46487
46488 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46489
46490         * tests/test-sha1.c: New file, based on test-md5.c.
46491
46492         * modules/crypto/sha1-tests: New file.
46493
46494 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46495
46496         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46497
46498 2008-01-31  Jim Meyering  <meyering@redhat.com>
46499
46500         Prefer "sizeof v" over the equivalent "4".
46501         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46502         * lib/md5.c (set_uint32): Likewise.
46503         * lib/sha1.c (set_uint32): Likewise.
46504
46505 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46506
46507         * lib/sha1.c (set_uint32): Mark function as static.
46508
46509 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46510
46511         md2: clarify comments to say that alignment is not required.
46512         * lib/md2.h: Remove warning about alignment in comment.
46513         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46514         never been required.
46515
46516 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46517
46518         md4: adapt alignment constraint fix from sha1.
46519         * lib/md4.c (set_uint32): New function, from sha1.c
46520         (md4_read_ctx): Use it.
46521         (md4_finish_ctx): Doc fix.
46522         * lib/md4.h: Doc fix.
46523
46524 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46525
46526         md5: adapt alignment constraint fix from sha1.
46527         * lib/md5.c (set_uint32): New function, from sha1.c
46528         (md5_read_ctx): Use it.
46529         (md5_finish_ctx): Doc fix.
46530         * lib/md5.h: Doc fix.
46531
46532 2008-01-30  Peter Palfrader  <weasel@debian.org>
46533
46534         sha1: remove the result buffer alignment constraint
46535         * lib/sha1.c (set_uint32): New function.
46536         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46537         constraint.
46538         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46539         * lib/sha1.h: Likewise.
46540
46541 2008-01-30  Andreas Schwab  <schwab@suse.de>
46542             Bruno Haible  <bruno@clisp.org>
46543
46544         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46545         correct definition of LDBL_MIN_EXP.
46546
46547 2008-01-30  Karl Berry  <karl@gnu.org>
46548
46549         * config/srclist-update: try to preserve x bit on updates.
46550         * config/srclistvars.sh: update for karl.
46551
46552 2008-01-29  Jim Meyering  <meyering@redhat.com>
46553
46554         vasnprintf.c: Avoid warning about unused label
46555         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46556         "overflow" label definition and associated code with the
46557         same cpp condition that guards the sole use of that label.
46558
46559 2008-01-26  Bruno Haible  <bruno@clisp.org>
46560
46561         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46562         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46563         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46564         * lib/isnanl-nolibm.h (isnanl): Likewise.
46565         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46566
46567 2008-01-26  Bruno Haible  <bruno@clisp.org>
46568
46569         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46570         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46571
46572 2008-01-26  Bruno Haible  <bruno@clisp.org>
46573
46574         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46575         GCC >= 4.0 built-in.
46576         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46577
46578 2008-01-26  Bruno Haible  <bruno@clisp.org>
46579
46580         Rename isnan, applicable to 'double' only, to isnand.
46581         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46582         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46583         (configure.ac): Update.
46584         (Include): Replace "isnan.h" with "isnand.h".
46585         * m4/isnand.m4: Renamed from m4/isnan.m4.
46586         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46587         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46588         instead of isnan.c.
46589         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46590         instead of HAVE_ISNAN_IN_LIBC.
46591         (isnand): Renamed from isnan.
46592         * lib/isnand.c: New file.
46593         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46594         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46595         (Makefile.am): Update.
46596         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46597         Include isnand.h instead of isnan.h.
46598         (main): Test isnand instead of isnan.
46599         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46600         isnan-nolibm.
46601         * modules/frexp (Depends-on): Likewise.
46602         * modules/frexp-tests (Depends-on): Likewise.
46603         * modules/frexp-nolibm (Depends-on): Likewise.
46604         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46605         * modules/isfinite (Depends-on): Likewise.
46606         * modules/round-tests (Depends-on): Likewise.
46607         * modules/signbit (Depends-on): Likewise.
46608         * modules/signbit-tests (Depends-on): Likewise.
46609         * modules/snprintf-posix (Depends-on): Likewise.
46610         * modules/sprintf-posix (Depends-on): Likewise.
46611         * modules/trunc-tests (Depends-on): Likewise.
46612         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46613         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46614         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46615         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46616         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46617         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46618         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46619         * modules/vasnprintf-posix (Depends-on): Likewise.
46620         * modules/vasprintf-posix (Depends-on): Likewise.
46621         * modules/vfprintf-posix (Depends-on): Likewise.
46622         * modules/vsnprintf-posix (Depends-on): Likewise.
46623         * modules/vsprintf-posix (Depends-on): Likewise.
46624         * lib/frexp.c: Include isnand.h instead of isnan.h.
46625         (ISNAN): Set to isnand instead of isnan.
46626         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46627         (gl_isfinited): Use isnand instead of isnan.
46628         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46629         (gl_signbitd): Use isnand instead of isnan.
46630         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46631         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46632         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46633         (main): Use isnand instead of isnan.
46634         * tests/test-round1.c: Include isnand.h.
46635         (main): Use isnand instead of isnan.
46636         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46637         (ISNAN): Set to isnand instead of isnan.
46638         * tests/test-trunc1.c: Include isnand.h.
46639         (main): Use isnand instead of isnan.
46640         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46641         (equal): Use isnand instead of isnan.
46642         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46643         isnand-nolibm.
46644         * NEWS: Mention the change.
46645
46646 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46647             Bruno Haible  <bruno@clisp.org>
46648
46649         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46650         the GCC builtins for signbits are present and set
46651         REPLACE_SIGNBIT_USING_GCC if so.
46652         * lib/math.in.h (signbit): Define using GCC builtins if
46653         REPLACE_SIGNBIT_USING_GCC is set.
46654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46655         REPLACE_SIGNBIT_USING_GCC.
46656         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46657
46658 2008-01-25  Jim Meyering  <meyering@redhat.com>
46659
46660         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46661         * lib/poll.c: Include <config.h>, not "config.h".
46662         * tests/test-getaddrinfo.c: Likewise.
46663
46664 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46665
46666         * modules/sockets-tests: New file.
46667
46668 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46669
46670         * modules/sockets: New module, can be used to call WSA_Startup and
46671         WSA_Cleanup when needed.
46672
46673         * lib/sockets.h, lib/sockets.c: New files.
46674
46675         * m4/sockets.m4: New file.
46676
46677         * tests/test-sockets.c: New file.
46678
46679 2008-01-19  Bruno Haible  <bruno@clisp.org>
46680
46681         * doc/posix-headers: Renamed from doc/headers.
46682         * doc/posix-functions: Renamed from doc/functions.
46683         * doc/gnulib.texi: Update.
46684
46685 2008-01-19  Bruno Haible  <bruno@clisp.org>
46686
46687         * doc/glibc-functions/strcasestr.texi: Include contents of
46688         doc/functions/strcasestr.texi, fixing the list of platforms.
46689         * doc/functions/strcasestr.texi: Remove file.
46690
46691 2008-01-19  Bruno Haible  <bruno@clisp.org>
46692
46693         * doc/glibc-functions/memmem.texi: Include contents of
46694         doc/functions/memmem.texi.
46695         * doc/functions/memmem.texi: Remove file.
46696
46697 2008-01-18  Bruno Haible  <bruno@clisp.org>
46698
46699         * doc/glibc-functions/*.texi: New files.
46700         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46701         to use the new files.
46702
46703 2008-01-17  Bruno Haible  <bruno@clisp.org>
46704
46705         * tests/test-gethostname.c (main): Fix printf statement.
46706
46707 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46708
46709         * modules/gethostname-tests: New file.
46710
46711         * tests/test-gethostname.c: New file.
46712
46713 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46714
46715         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46716         used by the UNAME case.  Reported by Bruno Haible
46717         <bruno@clisp.org>.
46718
46719 2008-01-17  Eric Blake  <ebb9@byu.net>
46720
46721         Convert c-strcasestr to be more efficient.
46722         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46723         (Depends-on): Add c-strcase, remove malloca, strnlen.
46724         * tests/test-c-strcasestr.c (main): Enhance test.
46725         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46726
46727 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46728
46729         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46730         Use it in creating po/Makevars.
46731
46732 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46733
46734         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46735         Applications that requires it should initialize libgcrypt
46736         manually.
46737
46738 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46739
46740         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46741
46742 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46743
46744         Fix problem with getdate on mingw32 reported by Simon Josefsson
46745         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46746         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46747         tzname", when deciding whether to declare tzname.
46748         * lib/strftime.c (tzname): Likewise.
46749
46750 2008-01-15  Bruno Haible  <bruno@clisp.org>
46751
46752         Work around a MacOS X 10.5 bug in frexpl().
46753         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46754         * doc/functions/frexpl.texi: Document the bug.
46755         Reported by Elias Pipping <pipping@gentoo.org>.
46756
46757 2008-01-14  Eric Blake  <ebb9@byu.net>
46758
46759         Touch up previous patch.
46760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46761         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46762
46763         Convert strcasestr module to use Two-Way algorithm.
46764         * modules/strcasestr-simple: New module, based on the old
46765         strcasestr, but with Two-Way rather than KMP.
46766         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46767         * lib/string.in.h (rpl_strcasestr): Declare.
46768         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46769         performance.
46770         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46771         * modules/string (Makefile.am): Support strcasestr.
46772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46773         * modules/strcasestr-tests (Depends-on): Check for alarm.
46774         * tests/test-strcasestr.c: Augment test.
46775         * lib/str-two-way.h: Clean up stray macro.
46776         * NEWS: Document new module.
46777         * MODULES.html.sh (string handling): Likewise.
46778         * doc/functions/strcasestr.texi: New file.
46779         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
46780         here, since it is not a POSIX function.
46781
46782 2008-01-14  Colin Watson  <cjwatson@debian.org>
46783             Bruno Haible  <bruno@clisp.org>
46784
46785         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
46786         works fine; if not, set REPLACE_STRSIGNAL.
46787         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
46788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46789         REPLACE_STRSIGNAL.
46790         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
46791         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
46792         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
46793
46794 2008-01-14  Bruno Haible  <bruno@clisp.org>
46795
46796         * modules/strsignal (Include): Change to <string.h>.
46797
46798 2008-01-14  Colin Watson  <cjwatson@debian.org>
46799
46800         * modules/argp (Notice): Add a notice recommending to change
46801         XGETTEXT_OPTIONS.
46802         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
46803
46804 2008-01-13  Colin Watson  <cjwatson@debian.org>
46805
46806         * modules/strsignal-tests: New file.
46807         * tests/test-strsignal.c: New file.
46808
46809         * lib/strsignal.c: New file, from glibc with modifications.
46810         * lib/siglist.h: New file, from glibc with modifications.
46811         * lib/string.in.h (strsignal): New declaration.
46812         * m4/strsignal.m4: New file.
46813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46814         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
46815         * modules/strsignal: New file.
46816         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
46817         HAVE_DECL_STRSIGNAL.
46818
46819 2008-01-13  Bruno Haible  <bruno@clisp.org>
46820
46821         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
46822         locale encoding is not ASCII. Needed for OpenBSD 4.0.
46823         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46824         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46825
46826 2008-01-13  Bruno Haible  <bruno@clisp.org>
46827
46828         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
46829         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
46830         * lib/argp.h (__attribute__): Likewise.
46831         * lib/c-stack.c (__attribute__): Likewise.
46832         * lib/error.h (__attribute__): Likewise.
46833         * lib/fts.c (__attribute__): Likewise.
46834         * lib/openat.h (__attribute__): Likewise.
46835         * lib/stdio.in.h (__attribute__): Likewise.
46836         * lib/string.in.h (__attribute__): Likewise.
46837         * lib/utimens.c (__attribute__): Likewise.
46838         * lib/vasnprintf.h (__attribute__): Likewise.
46839         * lib/xalloc.h (__attribute__): Likewise.
46840         * lib/xprintf.h (__attribute__): Likewise.
46841         * lib/xstrtol.h (__attribute__): Likewise.
46842         * lib/xvasprintf.h (__attribute__): Likewise.
46843
46844 2008-01-12  Bruno Haible  <bruno@clisp.org>
46845
46846         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
46847         * doc/glibc-headers/a.out.texi: New file.
46848         * doc/glibc-headers/aliases.texi: New file.
46849         * doc/glibc-headers/alloca.texi: New file.
46850         * doc/glibc-headers/ar.texi: New file.
46851         * doc/glibc-headers/argp.texi: New file.
46852         * doc/glibc-headers/argz.texi: New file.
46853         * doc/glibc-headers/byteswap.texi: New file.
46854         * doc/glibc-headers/crypt.texi: New file.
46855         * doc/glibc-headers/endian.texi: New file.
46856         * doc/glibc-headers/envz.texi: New file.
46857         * doc/glibc-headers/err.texi: New file.
46858         * doc/glibc-headers/error.texi: New file.
46859         * doc/glibc-headers/execinfo.texi: New file.
46860         * doc/glibc-headers/fpu_control.texi: New file.
46861         * doc/glibc-headers/fstab.texi: New file.
46862         * doc/glibc-headers/fts.texi: New file.
46863         * doc/glibc-headers/getopt.texi: New file.
46864         * doc/glibc-headers/ieee754.texi: New file.
46865         * doc/glibc-headers/ifaddrs.texi: New file.
46866         * doc/glibc-headers/libintl.texi: New file.
46867         * doc/glibc-headers/mcheck.texi: New file.
46868         * doc/glibc-headers/mntent.texi: New file.
46869         * doc/glibc-headers/obstack.texi: New file.
46870         * doc/glibc-headers/paths.texi: New file.
46871         * doc/glibc-headers/printf.texi: New file.
46872         * doc/glibc-headers/pty.texi: New file.
46873         * doc/glibc-headers/resolv.texi: New file.
46874         * doc/glibc-headers/shadow.texi: New file.
46875         * doc/glibc-headers/sysexits.texi: New file.
46876         * doc/glibc-headers/ttyent.texi: New file.
46877
46878 2008-01-12  Jim Meyering  <meyering@redhat.com>
46879
46880         announce-gen: emit Gnulib's git-based version string.
46881         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
46882         New option --gnulib-version=V, where V is expected to be
46883         the output of running git describe in the gnulib directory.
46884         (get_tool_versions): Request feedback on xdelta.  I suspect it's
46885         not useful, and plan to stop publishing an xdelta file with each
46886         coreutils release.
46887
46888         * build-aux/announce-gen: Also check for lzma-compressed files.
46889
46890 2008-01-11  Bruno Haible  <bruno@clisp.org>
46891
46892         * tests/test-memmem.c (main): Increase maximum allowed time.
46893         * tests/test-strstr.c (main): Likewise.
46894
46895 2008-01-11  Bruno Haible  <bruno@clisp.org>
46896
46897         * doc/functions/memmem.texi: Add more precisions about platforms.
46898         * doc/functions/strstr.texi: Likewise.
46899
46900 2008-01-10  Eric Blake  <ebb9@byu.net>
46901
46902         * m4/strstr.m4: Delete cruft from copy-n-paste.
46903         Reported by Bruno Haible.
46904
46905 2008-01-10  Bruno Haible  <bruno@clisp.org>
46906
46907         Make c-strstr rely on strstr.
46908         * lib/c-strstr.c: Don't include str-kmp.h.
46909         (c_strstr): Define in terms of strstr.
46910         * modules/c-strstr (Files): Remove lib/str-kmp.h.
46911         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
46912
46913 2008-01-10  Bruno Haible  <bruno@clisp.org>
46914
46915         * doc/gnulib.texi (String Functions in C Locale): New section.
46916         * doc/c-ctype.texi: New file.
46917         * doc/c-strcase.texi: New file.
46918         * doc/c-strcaseeq.texi: New file.
46919         * doc/c-strcasestr.texi: New file.
46920         * doc/c-strstr.texi: New file.
46921         * doc/c-strtod.texi: New file.
46922         * doc/c-strtold.texi: New file.
46923
46924 2008-01-10  Eric Blake  <ebb9@byu.net>
46925
46926         * lib/relocatable.h: Fix a comment.
46927
46928 2008-01-10  Eric Blake  <ebb9@byu.net>
46929
46930         Share two-way algorithm.
46931         * lib/str-two-way.h: New file, merged from...
46932         * lib/memmem.c: ...here...
46933         * lib/strstr.c: ...and here.
46934         * modules/memmem (Files): Use it.
46935         * modules/strstr (Files): Likewise.
46936
46937         Avoid quadratic strstr implementations.
46938         * lib/strstr.c: New file.
46939         * m4/strstr.m4: Likewise.
46940         * modules/strstr: Likewise.
46941         * modules/strstr-tests: Likewise.
46942         * tests/test-strstr.c: Likewise.
46943         * lib/string.in.h (rpl_strstr): Declare.
46944         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
46945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
46946         * modules/string (Makefile.am): Likewise.
46947         * MODULES.html.sh (string handling): Mention new module.
46948         * doc/functions/strstr.texi (strstr): Document the bug.
46949
46950 2008-01-10  Bruno Haible  <bruno@clisp.org>
46951
46952         * lib/relocatable.h (relocate): State whether result is freshly
46953         allocated or not.
46954         * lib/relocatable.c (relocate): Return a freshly allocated string
46955         instead of a pointer to a privately held string.
46956         Reported by Sylvain Beucler <beuc@gnu.org>.
46957
46958 2008-01-10  Colin Watson  <cjwatson@debian.org>
46959
46960         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
46961         s/S_ISNLK/S_ISLNK/.
46962
46963 2008-01-09  Bruno Haible  <bruno@clisp.org>
46964
46965         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
46966         and other files.
46967         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
46968         if it's only a guess.
46969         * modules/memmem: Simplify by depending on memmem-simple.
46970
46971 2008-01-09  Bruno Haible  <bruno@clisp.org>
46972
46973         Work around OpenBSD 4.0 tdelete() bug.
46974         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
46975         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
46976         macros and don't redefine the enum values.
46977         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
46978         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
46979         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
46980
46981 2008-01-09  Bruno Haible  <bruno@clisp.org>
46982
46983         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
46984         (main): Don't perform the tests if setlocale did not install a UTF-8
46985         locale. Needed on OpenBSD 4.0.
46986         * modules/wcwidth-tests (Depends-on): Add localcharset.
46987
46988 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46989
46990         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
46991         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
46992         * NEWS: announce this.
46993         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
46994
46995 2008-01-09  Simon Josefsson  <simon@josefsson.org>
46996         and Eric Blake  <ebb9@byu.net>
46997
46998         Add memmem-simple module.
46999         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
47000         (gl_FUNC_MEMMEM): Separate performance from presence checks.
47001         * modules/memmem-simple: New file.
47002         * modules/memmem (Description): Tweak.
47003         * MODULES.html.sh (string handling): Mention new module.
47004         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
47005         addressed by memmem-simple.
47006         * NEWS: Document the difference.
47007
47008 2008-01-09  Eric Blake  <ebb9@byu.net>
47009
47010         Give gcc some memmem optimization hints.
47011         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
47012         (strcasestr): Declare as pure.
47013         * modules/memmem (Maintainer): Claim my implementation.
47014
47015 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47016
47017         Support AIX 6.1 and higher.
47018         * build-aux/config.libpath: Likewise.
47019         * build-aux/config.rpath: Likewise.
47020
47021 2008-01-08  Jim Meyering  <meyering@redhat.com>
47022             Bruno Haible  <bruno@clisp.org>
47023
47024         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47025         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47026         Reported by Peter Fales in
47027         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47028
47029 2008-01-08  Bruno Haible  <bruno@clisp.org>
47030
47031         * modules/unictype/category-of (Depends-on): Add
47032         unictype/category-none.
47033         * modules/unictype/category-and-tests (Depends-on): Add
47034         unictype/category-{L,N,Lu,Nd}.
47035         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
47036         * modules/unictype/category-or-tests (Depends-on): Add
47037         unictype/category-{L,N}.
47038         * modules/unictype/category-name-tests (Depends-on): Add
47039         unictype/category-{Z,Nl}.
47040         Reported by Simon Josefsson.
47041
47042 2008-01-08  Bruno Haible  <bruno@clisp.org>
47043
47044         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
47045         convention better.
47046         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
47047         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
47048         Reported by Peter Miller <millerp@canb.auug.org.au>.
47049
47050 2008-01-08  Eric Blake  <ebb9@byu.net>
47051
47052         Rewrite memmem to guarantee linear complexity without malloc.
47053         * lib/memmem.c (memmem): Use Two-Way rather than
47054         Knuth-Morris-Pratt, to allow O(1) space usage.
47055         (critical_factorization, two_way_short_needle)
47056         (two_way_long_needle): New functions.
47057         (knuth_morris_pratt): Delete.
47058         * modules/memmem (Depends-on): No longer need malloca or stdbool.
47059         Add stdint.
47060         * tests/test-memmem.c (main): Add tests for periodic needle and
47061         sublinear performance.
47062         * doc/functions/memmem.texi (memmem): Document other deficiencies
47063         in cygwin and older glibc.
47064
47065 2008-01-08  Bruno Haible  <bruno@clisp.org>
47066
47067         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
47068         augmentation.
47069
47070 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
47071
47072         Add a configure time option: --disable-acl.
47073         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
47074         AC_ARG_ENABLE(acl).
47075
47076 2008-01-06  Simon Josefsson  <simon@josefsson.org>
47077
47078         * tests/test-localename.c: Don't include obsolete "setenv.h".
47079
47080         * modules/localename-tests (Depends-on): Need unsetenv.
47081
47082 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47083
47084         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
47085
47086 2008-01-06  Colin Watson  <cjwatson@debian.org>
47087
47088         * users.txt: Add man-db.
47089
47090 2008-01-07  Bruno Haible  <bruno@clisp.org>
47091
47092         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
47093         previous section name.
47094
47095 2008-01-07  Bruno Haible  <bruno@clisp.org>
47096
47097         * lib/progname.c (set_program_name): Don't strip off a leading
47098         "lt-" prefix outside a .libs directory.
47099         Suggested by Paul Eggert.
47100
47101 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
47102             Bruno Haible  <bruno@clisp.org>
47103
47104         Improve memory cleanup in 'relocatable' module.
47105         * lib/relocatable.h (compute_curr_prefix): Change return type to
47106         'char *'.
47107         * lib/relocatable.c (compute_curr_prefix): Change return type to
47108         'char *'. Free curr_installdir after use.
47109         (relocate): Free curr_prefix_better after use.
47110         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
47111
47112 2008-01-01  Bruno Haible  <bruno@clisp.org>
47113
47114         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
47115         failure on older glibc systems.
47116         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47117
47118 2008-01-05  Eric Blake  <ebb9@byu.net>
47119
47120         Avoid quadratic system memmem.
47121         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
47122         Reported by Ralf Wildenhues.
47123
47124         Fix memmem test for mingw.
47125         * modules/memmem-tests (configure.ac): Check for alarm.
47126         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
47127         it.
47128         * doc/functions/memmem.texi: New file.
47129         * doc/gnulib.texi (Function Substitutes): Add memmem.
47130         Reported by Bruno Haible.
47131
47132 2008-01-04  Bruno Haible  <bruno@clisp.org>
47133
47134         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
47135         Require gl_HEADER_STRINGS_H_DEFAULTS, not
47136         gl_HEADER_STRING_H_DEFAULTS.
47137
47138 2008-01-04  Eric Blake  <ebb9@byu.net>
47139
47140         Shorten duration of memmem test.
47141         * tests/test-memmem.c (main): Use alarm to declare failure if test
47142         is taking too long.
47143         Reported by Ralf Wildenhues.
47144
47145 2007-12-21  Simon Josefsson  <simon@josefsson.org>
47146
47147         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
47148         string, needed by strerror.
47149
47150 2008-01-03  Colin Watson  <cjwatson@debian.org>
47151             Bruno Haible  <bruno@clisp.org>
47152
47153         * doc/gnulib-tool.texi (Localization): New section.
47154
47155 2008-01-02  Bruno Haible  <bruno@clisp.org>
47156
47157         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
47158         variables to 'unsigned char *' type.
47159         Reported by Paul Eggert.
47160
47161 2008-01-02  Jim Meyering  <jim@meyering.net>
47162
47163         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
47164
47165 2007-12-31  Jim Meyering  <jim@meyering.net>
47166
47167         Avoid use of private FTS type name.
47168         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
47169
47170 2007-12-30  Karl Berry  <karl@gnu.org>
47171
47172         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
47173         work around defect in Texinfo and/or the standalone Info browser.
47174
47175 2007-12-30  Bruno Haible  <bruno@clisp.org>
47176
47177         Unify 5 copies of the KMP code.
47178         * lib/str-kmp.h: New file.
47179         * lib/c-strcasestr.c: Include str-kmp.h.
47180         (knuth_morris_pratt): Remove function.
47181         (c_strcasestr): Update.
47182         * lib/c-strstr.c: Include str-kmp.h.
47183         (knuth_morris_pratt): Remove function.
47184         (c_strcasestr): Update.
47185         * lib/mbscasestr.c: Include str-kmp.h.
47186         (knuth_morris_pratt_unibyte): Remove function.
47187         * lib/mbsstr.c: Include str-kmp.h.
47188         (knuth_morris_pratt_unibyte): Remove function.
47189         * lib/strcasestr.c: Include str-kmp.h.
47190         (knuth_morris_pratt): Remove function.
47191         (strcasestr): Update.
47192         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
47193         * modules/c-strstr (Files): Likewise.
47194         * modules/mbscasestr (Files): Likewise.
47195         * modules/mbsstr (Files): Likewise.
47196         * modules/strcasestr (Files): Likewise.
47197         Suggested by Paul Eggert.
47198
47199 2007-12-30  Bruno Haible  <bruno@clisp.org>
47200
47201         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
47202         defined.
47203
47204 2007-12-30  Bruno Haible  <bruno@clisp.org>
47205
47206         * lib/xmalloca.h: Include xalloc.h.
47207         (xnmalloca): New macro.
47208
47209 2007-12-30  Bruno Haible  <bruno@clisp.org>
47210
47211         * lib/malloca.h (nmalloca): New macro.
47212         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47213         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47214         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47215         knuth_morris_pratt_multibyte): Likewise.
47216         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47217         knuth_morris_pratt_multibyte): Likewise.
47218         * lib/memmem.c (knuth_morris_pratt): Likewise.
47219         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47220
47221 2007-12-25  Bruno Haible  <bruno@clisp.org>
47222
47223         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47224         * lib/glob.c: Don't include openat.h.
47225         (link_exists2_p): Add back the code that deals with the
47226         !GLOB_ALTDIRFUNC case.
47227         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47228         let it do the filename concatenation.
47229         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47230         * modules/glob (Depends-on): Remove openat.
47231
47232 2007-12-31  Bruno Haible  <bruno@clisp.org>
47233
47234         * modules/dirfd (License): Change to LGPLv2+.
47235         Approved by Jim Meyering.
47236
47237 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47238
47239         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47240         when multiplying M by sizeof (size_t).
47241
47242 2007-12-10  Martin Lambers  <marlam@marlam.de>
47243
47244         Override getpagesize on mingw.
47245         * lib/getpagesize.c: New file.
47246         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47247         * modules/getpagesize (Files): Add lib/getpagesize.c.
47248         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47250         REPLACE_GETPAGESIZE.
47251         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47252
47253 2007-12-25  Bruno Haible  <bruno@clisp.org>
47254
47255         * modules/localcharset (Notice): New field.
47256         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47257         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47258
47259 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47260             Bruno Haible  <bruno@clisp.org>
47261
47262         Avoid using the syntax symbol() in formatted documentation.
47263         * MODULES.html.sh (func_module): When replacing symbol() with a
47264         hyperlink, remove the parentheses. Show an error if some remain.
47265         Recognize and render the '...' syntax.
47266         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47267         Rework. Add paragraph about GCC's inlining.
47268         * doc/alloca.texi: Likewise.
47269         * doc/error.texi: Remove parentheses from symbol reference.
47270         * doc/gnulib-intro.texi: Likewise.
47271         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47272         * modules/fnmatch (Description): Reword to say "the ... function".
47273         * modules/full-read (Description): Likewise.
47274         * modules/full-write (Description): Likewise.
47275         * modules/safe-read (Description): Likewise.
47276         * modules/safe-write (Description): Likewise.
47277         * modules/strchrnul (Description): Likewise.
47278         * modules/trim (Description): Likewise.
47279         * modules/error (Description): Remove parentheses from symbol
47280         references.
47281         * modules/verror (Description): Likewise.
47282         Reported by Karl Berry.
47283
47284 2007-12-25  Bruno Haible  <bruno@clisp.org>
47285
47286         Fixup after 2007-10-16 commit.
47287         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47288
47289 2007-12-24  Bruno Haible  <bruno@clisp.org>
47290
47291         Make --enable-relocatable work with DESTDIR.
47292         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47293         to compute installdir from destprog.
47294         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47295         also set the RELOC_DESTDIR variable.
47296         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47297
47298 2007-12-24  Bruno Haible  <bruno@clisp.org>
47299
47300         Fix link error due to xalloc_die().
47301         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47302         of xreadlink.
47303         * lib/relocwrapper.c: Update comments.
47304         * build-aux/install-reloc: Remove xreadlink.c from file list.
47305         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47306         xreadlink.c.
47307         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47308
47309 2007-12-24  Bruno Haible  <bruno@clisp.org>
47310
47311         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47312         * lib/setenv.h: Remove file.
47313         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47314         lib/setenv.h.
47315         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47316         (Depends-on): Add stdlib.
47317         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47318         gl_FUNC_UNSETENV.
47319         (Include): Replace setenv.h with <stdlib.h>.
47320         * modules/unsetenv: New file.
47321         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47322         * lib/unsetenv.c: Include <stdlib.h> first.
47323         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47324         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47325         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47326         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47327         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47328         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47330         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47331         * doc/functions/unsetenv.texi: Update.
47332         * modules/xsetenv (Depends-on): Add unsetenv.
47333         * modules/getdate (Depends-on): Likewise.
47334         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47335         * lib/xsetenv.c: Don't include setenv.h.
47336         * lib/getdate.y: Likewise.
47337         * lib/relocwrapper.c: Likewise.
47338         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47339         (Depends-on): Add stdlib.
47340         * NEWS: Mention the changes.
47341         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47342
47343 2007-12-23  Bruno Haible  <bruno@clisp.org>
47344
47345         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47346         indentation.
47347
47348 2007-12-23  Bruno Haible  <bruno@clisp.org>
47349
47350         * lib/c-strcasestr.c: Add more comments.
47351         * lib/c-strstr.c: Likewise.
47352         * lib/mbscasestr.c: Likewise.
47353         * lib/mbsstr.c: Likewise.
47354         * lib/strcasestr.c: Likewise.
47355         * lib/memmem.c: Likewise.
47356
47357 2007-12-23  Bruno Haible  <bruno@clisp.org>
47358
47359         * tests/test-memmem.c: Include <string.h> first.
47360
47361 2007-12-22  Bruno Haible  <bruno@clisp.org>
47362
47363         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47364         the contents of $testsbase.
47365         Reported by Ralf Wildenhues.
47366
47367 2007-12-22  Bruno Haible  <bruno@clisp.org>
47368
47369         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47370         two variables local_ldadd_before, local_ldadd_last.
47371
47372 2007-12-20  Eric Blake  <ebb9@byu.net>
47373
47374         Work around circular library issue when cross-compiling.
47375         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47376         that progname.o does not need to pull in rpl_memcmp.
47377
47378 2007-12-19  Eric Blake  <ebb9@byu.net>
47379
47380         Fix memmem to avoid O(n^2) worst-case complexity.
47381         * lib/memmem.c (knuth_morris_pratt): New function.
47382         (memmem): Use it if first few naive iterations fail.
47383         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47384         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47385         * modules/memchr (License): Likewise.
47386         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47387         malloca.
47388         * tests/test-memmem.c: Rewrite, borrowing ideas from
47389         test-mbsstr1.c; the old version wouldn't even compile!
47390         * modules/memmem-tests: New file.
47391         * lib/string.in.h (rpl_memmem): Add declaration.
47392         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47394         REPLACE_MEMMEM.
47395
47396 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47397
47398         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47399         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47400         before any system include files, and undef after them all.  This
47401         should fix a problem on VMS reported by John E. Malmberg in
47402         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47403
47404 2007-12-17  Eric Blake  <ebb9@byu.net>
47405
47406         Revert addition of verify, for BSD/OS.
47407         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47408         can't handle large files, for the sake of obsolete platforms.
47409         * modules/fseeko (Depends-on): Remove verify.
47410         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47411         * doc/functions/ftello.texi (ftello): Likewise.
47412         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47413         Reported by Larry Jones.
47414
47415 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47416
47417         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47418         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47419
47420 2007-12-17  Jim Meyering  <meyering@redhat.com>
47421
47422         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47423         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47424         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47425         * modules/getcwd (Depends-on): Add openat.
47426         Reported by Petr Salinger.
47427
47428 2007-12-17  Bruno Haible  <bruno@clisp.org>
47429
47430         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47431         avoid a segmentation fault of the configure test on x86_64 systems.
47432
47433 2007-12-15  Jim Meyering  <meyering@redhat.com>
47434
47435         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47436
47437 2007-12-13  Eric Blake  <ebb9@byu.net>
47438
47439         Another fseek test.
47440         * tests/test-fseek.c (main): Also test ungetc handling.
47441         * tests/test-fseeko.c (main): Likewise.
47442         * modules/fseeko (Depends-on): Add verify.
47443         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47444         large.
47445         Reported by Larry Jones.
47446
47447         Fix fseeko on mingw.
47448         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47449         seek.
47450
47451         Beef up fseek tests.
47452         * tests/test-fseek.c (main): Also test eof handling.
47453         * tests/test-fseeko.c (main): Likewise.
47454         Reported by Larry Jones.
47455
47456 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47457
47458         Fix fseeko on BSD-based platforms.
47459         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47460         successful seek.
47461
47462 2007-12-12  Eric Blake  <ebb9@byu.net>
47463
47464         Allow circular dependency of separate libtests.a
47465         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47466         when use_libtests.
47467
47468 2007-12-11  Eric Blake  <ebb9@byu.net>
47469
47470         Fix bug with -0.0L in previous patch.
47471         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47472         * tests/test-isnan.c (main): Also test on zeroes.
47473         * tests/test-isnanf.c (main): Likewise.
47474         * tests/test-isnanl.h (main): Likewise.
47475
47476         Detect pseudo-denormals on x86 even when cross-compiling.
47477         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47478         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47479         invalid bit patterns that happen to satisfy ==.
47480
47481         Avoid link failures with separate libtests.a.
47482         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47483         last, to satisfy circular dependencies.
47484
47485 2007-12-11  Eric Blake  <ebb9@byu.net>
47486         and Bruno Haible  <bruno@clisp.org>
47487
47488         Fix OpenBSD 4.0 <float.h> handling of long double.
47489         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47490         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47491         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47492
47493 2007-12-11  Jim Meyering  <meyering@redhat.com>
47494
47495         * users.txt: Add libvirt.
47496
47497         Support versions of autoconf prior to 2.59c.
47498         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47499         if it is not already defined.
47500
47501 2007-12-09  Bruno Haible  <bruno@clisp.org>
47502
47503         Let 'gnulib-tool --import' collect sources needed for the tests in
47504         tests/ rather than in lib/.
47505         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47506         argument. If true, add rules to generate libtests.a, and put libtests.a
47507         into $(LDADD). Consider source files in subdirectories and set
47508         uses_subdirs.
47509         (func_emit_initmacro_start, func_emit_initmacro_end,
47510         func_emit_initmacro_done): Pass all arguments explicitly.
47511         (func_import): Determine two module lists main_modules,
47512         testsrelated_modules. Determine use_libtests. Determine two variables
47513         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47514         instead of just sed_transform_lib_file. Determine two variables
47515         main_files and testsrelated_files. Compute 'files' as the union of
47516         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47517         func_add_or_update. In the generated gnulib-comp.m4, collect the
47518         object files for tests/ in different variables than those for lib/.
47519         Substitute LIBTESTS_LIBDEPS.
47520         (func_create_testdir): Combine the uses_subdirs results from
47521         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47522
47523 2007-12-09  Bruno Haible  <bruno@clisp.org>
47524
47525         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47526         the build-aux directory.
47527
47528 2007-12-09  Bruno Haible  <bruno@clisp.org>
47529
47530         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47531         introduced on 2006-09-09.
47532
47533 2007-12-07  Jim Meyering  <meyering@redhat.com>
47534
47535         Let these macros work also with autoconf-2.59.
47536         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47537         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47538         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47539
47540 2007-12-06  Jim Meyering  <meyering@redhat.com>
47541
47542         Avoid a configure-time syntax error in gl_FUNC_ACL.
47543         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47544         function in each branch, before testing the cache variable.
47545
47546 2007-12-04  Eric Blake  <ebb9@byu.net>
47547
47548         Make scripts executable.
47549         * build-aux/config.guess: Add execute permissions.
47550         * build-aux/config.sub: Likewise.
47551         * build-aux/gendocs.sh: Likewise.
47552
47553         Fix frexp on mingw.
47554         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47555         cross-compiling.
47556         * doc/functions/frexp.texi (frexp): Document the bug.
47557
47558         Make cygwin fseeko check more reliable.
47559         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47560         version numbers, rather than unrelated feature check.
47561         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47562         * doc/functions/ftello.texi (ftello): Likewise.
47563         Reported by Bruno Haible.
47564
47565         * m4/strerror.m4: Bump version number.
47566
47567 2007-12-03  Bruno Haible  <bruno@clisp.org>
47568
47569         * doc/functions/mprotect.texi: Mention the mingw problem.
47570
47571 2007-12-03  Eric Blake  <ebb9@byu.net>
47572
47573         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47574         REPLACE_STRERROR is initialized before this macro.
47575
47576 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47577
47578         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47579         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47580         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47581         put -lsec in even for programs other than 'ls'.  This fixes a problem
47582         for gettext reported by Bruno Haible in
47583         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47584         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47585         Add support for Solaris 10.  This isn't efficient, but should get the
47586         job done for now.
47587
47588 2007-12-03  James Youngman  <jay@gnu.org>
47589
47590         * doc/regexprops-generic.texi: change "an close-group" to "a
47591         close-group" and "illegal" to "not allowed".
47592
47593 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47594
47595         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47596         pr_byname.h. Needed for the rare case when the maintainer has done
47597         "make maintainer-clean" in the source directory and then attempts a
47598         build outside the source directory.
47599         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47600         scripts_byname.h.
47601
47602 2007-12-02  Martin Lambers <marlam@marlam.de>
47603             Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/getpagesize.h: Remove file.
47606         * lib/unistd.in.h: Include declaration of getpagesize here.
47607         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47608         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47609         HAVE_SYS_PARAM_H.
47610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47611         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47612         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47613         (Depends-on): Add unistd.
47614         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47615         (Include): Use <unistd.h> instead of getpagesize.h.
47616         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47617         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47618         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47619         gl_GETPAGESIZE invocation, already handled by module dependency.
47620         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47621
47622 2007-12-02  Bruno Haible  <bruno@clisp.org>
47623
47624         * modules/strings-tests: New file.
47625         * tests/test-strings.c: New file.
47626
47627         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47628         * lib/strings.in.h: New file.
47629         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47630         * m4/strings_h.m4: New file.
47631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47632         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47633         * modules/strings: New file.
47634         * modules/string (Makefile.am): Update.
47635         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47636         Reported by Karl Berry.
47637
47638 2007-12-01  Eric Blake  <ebb9@byu.net>
47639
47640         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47641         accomodate fix in cygwin 1.5.25.
47642
47643 2007-12-01  Jim Meyering  <meyering@redhat.com>
47644
47645         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47646         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47647         that would inhibit utf8-optimization of a regexp containing line-
47648         or buffer-anchors, e.g., `^', `$'.
47649
47650 2007-11-30  Bruno Haible  <bruno@clisp.org>
47651
47652         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47653         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47654         glthread_recursive_lock_init.
47655         * lib/lock.c (glthread_recursive_lock_init)
47656         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47657         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47658
47659 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47660
47661         New function qset_acl, like set_acl but with syscall semantics.
47662         * lib/acl.h (qset_acl): New decl.
47663         * lib/acl.c (qset_acl): New function.
47664         (set_acl): Use new function.  Use more-consistent diagnostics.
47665
47666 2007-11-28  Jim Meyering  <meyering@redhat.com>
47667
47668         * modules/physmem (License): Change from GPL to LGPLv2+.
47669
47670 2007-11-26  Bruno Haible  <bruno@clisp.org>
47671
47672         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47673         'long double' type has excess precision.
47674         Reported by Jim Meyering in
47675         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47676
47677 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47678
47679         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47680         Sync from <http://gnu.org/licenses>.
47681         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47682         with license text from same location.
47683         * doc/maintain.texi, doc/standards.texi:  Sync from
47684         <http://savannah.gnu.org/projects/gnustandards>.
47685
47686 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
47687         and Jim Meyering  <meyering@redhat.com>
47688
47689         Adjust getdate' grammar to accept a slightly more regular language.
47690         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47691         Before, the former was rejected.
47692         * lib/getdate.y (digits_to_date_time): New function, factored
47693         out of ...
47694         (number): ...here.  Just call digits_to_date_time.
47695         (hybrid): New non-terminal to handle an <unsigned number,
47696         signed relative offset> sequence consistently.
47697
47698 2007-11-18  Jim Meyering  <meyering@redhat.com>
47699
47700         Pull my changes from coreutils:
47701         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47702         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47703         use of $gnulib_tool_option_extras, so that it's separated from the
47704         preceding argument.
47705
47706         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47707         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47708         parent destination directories before copying a file into place.
47709
47710 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47711
47712         bootstrap: work also with 4-argument variant of AC_INIT
47713         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47714
47715 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47716
47717         Port test-getaddrinfo to Solaris.
47718         Problem reported by Bruno Haible in
47719         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47720         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47721         explanation of setting 'hints'.
47722         Don't reject an implementation merely because it returns EAI_SERVICE.
47723         (EAI_SERVICE): Define to 0 if not defined.
47724
47725 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47726
47727         The license of gnu-make and posix-shell is now "GPLed build tool".
47728         * modules/gnu-make (License): Likewise.
47729         * modules/posix-shell (License): Likewise.
47730
47731         New module posix-shell, for determining a POSIX shell
47732         or perhaps something that is close enough to a POSIX shell.
47733         * m4/posix-shell.m4: New file.
47734         * modules/posix-shell: New file.
47735
47736         * MODULES.html.sh: Mention new module.
47737
47738         New module gnu-make, for determining whether we're using GNU Make.
47739         * m4/gnu-make.m4: New file.
47740         * modules/gnu-make: New file.
47741         * MODULES.html.sh: Mention new module.
47742
47743 2007-11-14  Jim Meyering  <meyering@redhat.com>
47744
47745         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47746         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47747         use this macro to create a function _definition_.
47748         Remove useless "#undef ARGMATCH_DIE".
47749
47750 2007-11-14  Bruno Haible  <bruno@clisp.org>
47751
47752         * lib/config.charset: Update for OpenBSD 4.1.
47753         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47754
47755 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47756
47757         Document 64-bit #if problems in stdint.texi.
47758         * doc/headers/stdint.texi (stdint.h): Mention problems with
47759         64-bit-#if, and how to work around them.
47760
47761         Don't insist on 'long long int' support in the preprocessor.  It
47762         breaks too many things.  For example, PRIdMAX still uses a 'long
47763         long int' format with the latest Sun compiler, even though
47764         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47765         preprocessor problem.  This causes the latest coreutils to dump
47766         core on Solaris 10 sparc with the Sun C compiler.
47767         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47768         the troublesome expressions at configure-time, not at #if-time.
47769         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47770         preprocessor.
47771         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47772         compile-time C checks, done at 'configure'-time.
47773         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47774         * modules/inttypes (Makefile): Substitute the new symbols that
47775         gl_INTTYPES_H now generates.
47776         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47777
47778 2007-11-12  Bruno Haible  <bruno@clisp.org>
47779
47780         Tests for Unicode character classification functions.
47781
47782         * modules/unictype/bidicategory-byname-tests: New file.
47783         * modules/unictype/bidicategory-name-tests: New file.
47784         * modules/unictype/bidicategory-of-tests: New file.
47785         * modules/unictype/bidicategory-test-tests: New file.
47786         * modules/unictype/block-list-tests: New file.
47787         * modules/unictype/block-of-tests: New file.
47788         * modules/unictype/block-test-tests: New file.
47789         * modules/unictype/category-C-tests: New file.
47790         * modules/unictype/category-Cc-tests: New file.
47791         * modules/unictype/category-Cf-tests: New file.
47792         * modules/unictype/category-Cn-tests: New file.
47793         * modules/unictype/category-Co-tests: New file.
47794         * modules/unictype/category-Cs-tests: New file.
47795         * modules/unictype/category-L-tests: New file.
47796         * modules/unictype/category-Ll-tests: New file.
47797         * modules/unictype/category-Lm-tests: New file.
47798         * modules/unictype/category-Lo-tests: New file.
47799         * modules/unictype/category-Lt-tests: New file.
47800         * modules/unictype/category-Lu-tests: New file.
47801         * modules/unictype/category-M-tests: New file.
47802         * modules/unictype/category-Mc-tests: New file.
47803         * modules/unictype/category-Me-tests: New file.
47804         * modules/unictype/category-Mn-tests: New file.
47805         * modules/unictype/category-N-tests: New file.
47806         * modules/unictype/category-Nd-tests: New file.
47807         * modules/unictype/category-Nl-tests: New file.
47808         * modules/unictype/category-No-tests: New file.
47809         * modules/unictype/category-P-tests: New file.
47810         * modules/unictype/category-Pc-tests: New file.
47811         * modules/unictype/category-Pd-tests: New file.
47812         * modules/unictype/category-Pe-tests: New file.
47813         * modules/unictype/category-Pf-tests: New file.
47814         * modules/unictype/category-Pi-tests: New file.
47815         * modules/unictype/category-Po-tests: New file.
47816         * modules/unictype/category-Ps-tests: New file.
47817         * modules/unictype/category-S-tests: New file.
47818         * modules/unictype/category-Sc-tests: New file.
47819         * modules/unictype/category-Sk-tests: New file.
47820         * modules/unictype/category-Sm-tests: New file.
47821         * modules/unictype/category-So-tests: New file.
47822         * modules/unictype/category-Z-tests: New file.
47823         * modules/unictype/category-Zl-tests: New file.
47824         * modules/unictype/category-Zp-tests: New file.
47825         * modules/unictype/category-Zs-tests: New file.
47826         * modules/unictype/category-and-not-tests: New file.
47827         * modules/unictype/category-and-tests: New file.
47828         * modules/unictype/category-byname-tests: New file.
47829         * modules/unictype/category-name-tests: New file.
47830         * modules/unictype/category-none-tests: New file.
47831         * modules/unictype/category-of-tests: New file.
47832         * modules/unictype/category-or-tests: New file.
47833         * modules/unictype/category-test-withtable-tests: New file.
47834         * modules/unictype/combining-class-tests: New file.
47835         * modules/unictype/ctype-alnum-tests: New file.
47836         * modules/unictype/ctype-alpha-tests: New file.
47837         * modules/unictype/ctype-blank-tests: New file.
47838         * modules/unictype/ctype-cntrl-tests: New file.
47839         * modules/unictype/ctype-digit-tests: New file.
47840         * modules/unictype/ctype-graph-tests: New file.
47841         * modules/unictype/ctype-lower-tests: New file.
47842         * modules/unictype/ctype-print-tests: New file.
47843         * modules/unictype/ctype-punct-tests: New file.
47844         * modules/unictype/ctype-space-tests: New file.
47845         * modules/unictype/ctype-upper-tests: New file.
47846         * modules/unictype/ctype-xdigit-tests: New file.
47847         * modules/unictype/decimal-digit-tests: New file.
47848         * modules/unictype/digit-tests: New file.
47849         * modules/unictype/mirror-tests: New file.
47850         * modules/unictype/numeric-tests: New file.
47851         * modules/unictype/property-alphabetic-tests: New file.
47852         * modules/unictype/property-ascii-hex-digit-tests: New file.
47853         * modules/unictype/property-bidi-arabic-digit-tests: New file.
47854         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
47855         * modules/unictype/property-bidi-block-separator-tests: New file.
47856         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
47857         * modules/unictype/property-bidi-common-separator-tests: New file.
47858         * modules/unictype/property-bidi-control-tests: New file.
47859         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
47860         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
47861         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
47862         * modules/unictype/property-bidi-european-digit-tests: New file.
47863         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
47864         * modules/unictype/property-bidi-left-to-right-tests: New file.
47865         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
47866         * modules/unictype/property-bidi-other-neutral-tests: New file.
47867         * modules/unictype/property-bidi-pdf-tests: New file.
47868         * modules/unictype/property-bidi-segment-separator-tests: New file.
47869         * modules/unictype/property-bidi-whitespace-tests: New file.
47870         * modules/unictype/property-byname-tests: New file.
47871         * modules/unictype/property-combining-tests: New file.
47872         * modules/unictype/property-composite-tests: New file.
47873         * modules/unictype/property-currency-symbol-tests: New file.
47874         * modules/unictype/property-dash-tests: New file.
47875         * modules/unictype/property-decimal-digit-tests: New file.
47876         * modules/unictype/property-default-ignorable-code-point-tests: New file.
47877         * modules/unictype/property-deprecated-tests: New file.
47878         * modules/unictype/property-diacritic-tests: New file.
47879         * modules/unictype/property-extender-tests: New file.
47880         * modules/unictype/property-format-control-tests: New file.
47881         * modules/unictype/property-grapheme-base-tests: New file.
47882         * modules/unictype/property-grapheme-extend-tests: New file.
47883         * modules/unictype/property-grapheme-link-tests: New file.
47884         * modules/unictype/property-hex-digit-tests: New file.
47885         * modules/unictype/property-hyphen-tests: New file.
47886         * modules/unictype/property-id-continue-tests: New file.
47887         * modules/unictype/property-id-start-tests: New file.
47888         * modules/unictype/property-ideographic-tests: New file.
47889         * modules/unictype/property-ids-binary-operator-tests: New file.
47890         * modules/unictype/property-ids-trinary-operator-tests: New file.
47891         * modules/unictype/property-ignorable-control-tests: New file.
47892         * modules/unictype/property-iso-control-tests: New file.
47893         * modules/unictype/property-join-control-tests: New file.
47894         * modules/unictype/property-left-of-pair-tests: New file.
47895         * modules/unictype/property-line-separator-tests: New file.
47896         * modules/unictype/property-logical-order-exception-tests: New file.
47897         * modules/unictype/property-lowercase-tests: New file.
47898         * modules/unictype/property-math-tests: New file.
47899         * modules/unictype/property-non-break-tests: New file.
47900         * modules/unictype/property-not-a-character-tests: New file.
47901         * modules/unictype/property-numeric-tests: New file.
47902         * modules/unictype/property-other-alphabetic-tests: New file.
47903         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
47904         * modules/unictype/property-other-grapheme-extend-tests: New file.
47905         * modules/unictype/property-other-id-continue-tests: New file.
47906         * modules/unictype/property-other-id-start-tests: New file.
47907         * modules/unictype/property-other-lowercase-tests: New file.
47908         * modules/unictype/property-other-math-tests: New file.
47909         * modules/unictype/property-other-uppercase-tests: New file.
47910         * modules/unictype/property-paired-punctuation-tests: New file.
47911         * modules/unictype/property-paragraph-separator-tests: New file.
47912         * modules/unictype/property-pattern-syntax-tests: New file.
47913         * modules/unictype/property-pattern-white-space-tests: New file.
47914         * modules/unictype/property-private-use-tests: New file.
47915         * modules/unictype/property-punctuation-tests: New file.
47916         * modules/unictype/property-quotation-mark-tests: New file.
47917         * modules/unictype/property-radical-tests: New file.
47918         * modules/unictype/property-sentence-terminal-tests: New file.
47919         * modules/unictype/property-soft-dotted-tests: New file.
47920         * modules/unictype/property-space-tests: New file.
47921         * modules/unictype/property-terminal-punctuation-tests: New file.
47922         * modules/unictype/property-test-tests: New file.
47923         * modules/unictype/property-titlecase-tests: New file.
47924         * modules/unictype/property-unassigned-code-value-tests: New file.
47925         * modules/unictype/property-unified-ideograph-tests: New file.
47926         * modules/unictype/property-uppercase-tests: New file.
47927         * modules/unictype/property-variation-selector-tests: New file.
47928         * modules/unictype/property-white-space-tests: New file.
47929         * modules/unictype/property-xid-continue-tests: New file.
47930         * modules/unictype/property-xid-start-tests: New file.
47931         * modules/unictype/property-zero-width-tests: New file.
47932         * modules/unictype/scripts-tests: New file.
47933         * modules/unictype/syntax-c-ident-tests: New file.
47934         * modules/unictype/syntax-c-whitespace-tests: New file.
47935         * modules/unictype/syntax-java-ident-tests: New file.
47936         * modules/unictype/syntax-java-whitespace-tests: New file.
47937         * tests/unictype/test-bidi_byname.c: New file.
47938         * tests/unictype/test-bidi_name.c: New file.
47939         * tests/unictype/test-bidi_of.c: New file.
47940         * tests/unictype/test-bidi_test.c: New file.
47941         * tests/unictype/test-block_list.c: New file.
47942         * tests/unictype/test-block_of.c: New file.
47943         * tests/unictype/test-block_test.c: New file.
47944         * tests/unictype/test-categ_and.c: New file.
47945         * tests/unictype/test-categ_and_not.c: New file.
47946         * tests/unictype/test-categ_byname.c: New file.
47947         * tests/unictype/test-categ_name.c: New file.
47948         * tests/unictype/test-categ_none.c: New file.
47949         * tests/unictype/test-categ_of.c: New file.
47950         * tests/unictype/test-categ_or.c: New file.
47951         * tests/unictype/test-categ_test_withtable.c: New file.
47952         * tests/unictype/test-combining.c: New file.
47953         * tests/unictype/test-decdigit.c: New file.
47954         * tests/unictype/test-digit.c: New file.
47955         * tests/unictype/test-mirror.c: New file.
47956         * tests/unictype/test-numeric.c: New file.
47957         * tests/unictype/test-pr_byname.c: New file.
47958         * tests/unictype/test-pr_test.c: New file.
47959         * tests/unictype/test-predicate-part1.h: New file.
47960         * tests/unictype/test-predicate-part2.h: New file.
47961         * tests/unictype/test-scripts.c: New file.
47962         * tests/unictype/test-sy_c_ident.c: New file.
47963         * tests/unictype/test-sy_java_ident.c: New file.
47964
47965         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
47966         for Unicode 5.0.0.
47967         * tests/unictype/test-categ_Cc.c: Likewise.
47968         * tests/unictype/test-categ_Cf.c: Likewise.
47969         * tests/unictype/test-categ_Cn.c: Likewise.
47970         * tests/unictype/test-categ_Co.c: Likewise.
47971         * tests/unictype/test-categ_Cs.c: Likewise.
47972         * tests/unictype/test-categ_L.c: Likewise.
47973         * tests/unictype/test-categ_Ll.c: Likewise.
47974         * tests/unictype/test-categ_Lm.c: Likewise.
47975         * tests/unictype/test-categ_Lo.c: Likewise.
47976         * tests/unictype/test-categ_Lt.c: Likewise.
47977         * tests/unictype/test-categ_Lu.c: Likewise.
47978         * tests/unictype/test-categ_M.c: Likewise.
47979         * tests/unictype/test-categ_Mc.c: Likewise.
47980         * tests/unictype/test-categ_Me.c: Likewise.
47981         * tests/unictype/test-categ_Mn.c: Likewise.
47982         * tests/unictype/test-categ_N.c: Likewise.
47983         * tests/unictype/test-categ_Nd.c: Likewise.
47984         * tests/unictype/test-categ_Nl.c: Likewise.
47985         * tests/unictype/test-categ_No.c: Likewise.
47986         * tests/unictype/test-categ_P.c: Likewise.
47987         * tests/unictype/test-categ_Pc.c: Likewise.
47988         * tests/unictype/test-categ_Pd.c: Likewise.
47989         * tests/unictype/test-categ_Pe.c: Likewise.
47990         * tests/unictype/test-categ_Pf.c: Likewise.
47991         * tests/unictype/test-categ_Pi.c: Likewise.
47992         * tests/unictype/test-categ_Po.c: Likewise.
47993         * tests/unictype/test-categ_Ps.c: Likewise.
47994         * tests/unictype/test-categ_S.c: Likewise.
47995         * tests/unictype/test-categ_Sc.c: Likewise.
47996         * tests/unictype/test-categ_Sk.c: Likewise.
47997         * tests/unictype/test-categ_Sm.c: Likewise.
47998         * tests/unictype/test-categ_So.c: Likewise.
47999         * tests/unictype/test-categ_Z.c: Likewise.
48000         * tests/unictype/test-categ_Zl.c: Likewise.
48001         * tests/unictype/test-categ_Zp.c: Likewise.
48002         * tests/unictype/test-categ_Zs.c: Likewise.
48003         * tests/unictype/test-ctype_alnum.c: Likewise.
48004         * tests/unictype/test-ctype_alpha.c: Likewise.
48005         * tests/unictype/test-ctype_blank.c: Likewise.
48006         * tests/unictype/test-ctype_cntrl.c: Likewise.
48007         * tests/unictype/test-ctype_digit.c: Likewise.
48008         * tests/unictype/test-ctype_graph.c: Likewise.
48009         * tests/unictype/test-ctype_lower.c: Likewise.
48010         * tests/unictype/test-ctype_print.c: Likewise.
48011         * tests/unictype/test-ctype_punct.c: Likewise.
48012         * tests/unictype/test-ctype_space.c: Likewise.
48013         * tests/unictype/test-ctype_upper.c: Likewise.
48014         * tests/unictype/test-ctype_xdigit.c: Likewise.
48015         * tests/unictype/test-decdigit.h: Likewise.
48016         * tests/unictype/test-digit.h: Likewise.
48017         * tests/unictype/test-numeric.h: Likewise.
48018         * tests/unictype/test-pr_alphabetic.c: Likewise.
48019         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
48020         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
48021         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
48022         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
48023         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48024         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48025         * tests/unictype/test-pr_bidi_control.c: Likewise.
48026         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48027         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48028         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48029         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
48030         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
48031         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
48032         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
48033         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
48034         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
48035         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
48036         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
48037         * tests/unictype/test-pr_combining.c: Likewise.
48038         * tests/unictype/test-pr_composite.c: Likewise.
48039         * tests/unictype/test-pr_currency_symbol.c: Likewise.
48040         * tests/unictype/test-pr_dash.c: Likewise.
48041         * tests/unictype/test-pr_decimal_digit.c: Likewise.
48042         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
48043         * tests/unictype/test-pr_deprecated.c: Likewise.
48044         * tests/unictype/test-pr_diacritic.c: Likewise.
48045         * tests/unictype/test-pr_extender.c: Likewise.
48046         * tests/unictype/test-pr_format_control.c: Likewise.
48047         * tests/unictype/test-pr_grapheme_base.c: Likewise.
48048         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
48049         * tests/unictype/test-pr_grapheme_link.c: Likewise.
48050         * tests/unictype/test-pr_hex_digit.c: Likewise.
48051         * tests/unictype/test-pr_hyphen.c: Likewise.
48052         * tests/unictype/test-pr_id_continue.c: Likewise.
48053         * tests/unictype/test-pr_id_start.c: Likewise.
48054         * tests/unictype/test-pr_ideographic.c: Likewise.
48055         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
48056         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
48057         * tests/unictype/test-pr_ignorable_control.c: Likewise.
48058         * tests/unictype/test-pr_iso_control.c: Likewise.
48059         * tests/unictype/test-pr_join_control.c: Likewise.
48060         * tests/unictype/test-pr_left_of_pair.c: Likewise.
48061         * tests/unictype/test-pr_line_separator.c: Likewise.
48062         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
48063         * tests/unictype/test-pr_lowercase.c: Likewise.
48064         * tests/unictype/test-pr_math.c: Likewise.
48065         * tests/unictype/test-pr_non_break.c: Likewise.
48066         * tests/unictype/test-pr_not_a_character.c: Likewise.
48067         * tests/unictype/test-pr_numeric.c: Likewise.
48068         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
48069         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
48070         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
48071         * tests/unictype/test-pr_other_id_continue.c: Likewise.
48072         * tests/unictype/test-pr_other_id_start.c: Likewise.
48073         * tests/unictype/test-pr_other_lowercase.c: Likewise.
48074         * tests/unictype/test-pr_other_math.c: Likewise.
48075         * tests/unictype/test-pr_other_uppercase.c: Likewise.
48076         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
48077         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
48078         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
48079         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
48080         * tests/unictype/test-pr_private_use.c: Likewise.
48081         * tests/unictype/test-pr_punctuation.c: Likewise.
48082         * tests/unictype/test-pr_quotation_mark.c: Likewise.
48083         * tests/unictype/test-pr_radical.c: Likewise.
48084         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
48085         * tests/unictype/test-pr_soft_dotted.c: Likewise.
48086         * tests/unictype/test-pr_space.c: Likewise.
48087         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
48088         * tests/unictype/test-pr_titlecase.c: Likewise.
48089         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
48090         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
48091         * tests/unictype/test-pr_uppercase.c: Likewise.
48092         * tests/unictype/test-pr_variation_selector.c: Likewise.
48093         * tests/unictype/test-pr_white_space.c: Likewise.
48094         * tests/unictype/test-pr_xid_continue.c: Likewise.
48095         * tests/unictype/test-pr_xid_start.c: Likewise.
48096         * tests/unictype/test-pr_zero_width.c: Likewise.
48097         * tests/unictype/test-sy_c_whitespace.c: Likewise.
48098         * tests/unictype/test-sy_java_whitespace.c: Likewise.
48099
48100 2007-11-12  Bruno Haible  <bruno@clisp.org>
48101
48102         Unicode character classification functions.
48103         * lib/unictype.h: New file.
48104         * modules/unictype/base: New file.
48105         * modules/unictype/category-L: New file.
48106         * modules/unictype/category-Lu: New file.
48107         * modules/unictype/category-Ll: New file.
48108         * modules/unictype/category-Lt: New file.
48109         * modules/unictype/category-Lm: New file.
48110         * modules/unictype/category-Lo: New file.
48111         * modules/unictype/category-M: New file.
48112         * modules/unictype/category-Mn: New file.
48113         * modules/unictype/category-Mc: New file.
48114         * modules/unictype/category-Me: New file.
48115         * modules/unictype/category-N: New file.
48116         * modules/unictype/category-Nd: New file.
48117         * modules/unictype/category-Nl: New file.
48118         * modules/unictype/category-No: New file.
48119         * modules/unictype/category-P: New file.
48120         * modules/unictype/category-Pc: New file.
48121         * modules/unictype/category-Pd: New file.
48122         * modules/unictype/category-Ps: New file.
48123         * modules/unictype/category-Pe: New file.
48124         * modules/unictype/category-Pi: New file.
48125         * modules/unictype/category-Pf: New file.
48126         * modules/unictype/category-Po: New file.
48127         * modules/unictype/category-S: New file.
48128         * modules/unictype/category-Sm: New file.
48129         * modules/unictype/category-Sc: New file.
48130         * modules/unictype/category-Sk: New file.
48131         * modules/unictype/category-So: New file.
48132         * modules/unictype/category-Z: New file.
48133         * modules/unictype/category-Zs: New file.
48134         * modules/unictype/category-Zl: New file.
48135         * modules/unictype/category-Zp: New file.
48136         * modules/unictype/category-C: New file.
48137         * modules/unictype/category-Cc: New file.
48138         * modules/unictype/category-Cf: New file.
48139         * modules/unictype/category-Cs: New file.
48140         * modules/unictype/category-Co: New file.
48141         * modules/unictype/category-Cn: New file.
48142         * modules/unictype/category-or: New file.
48143         * modules/unictype/category-of: New file.
48144         * modules/unictype/category-test: New file.
48145         * modules/unictype/category-test-withtable: New file.
48146         * modules/unictype/category-byname: New file.
48147         * modules/unictype/category-none: New file.
48148         * modules/unictype/category-and: New file.
48149         * modules/unictype/category-and-not: New file.
48150         * modules/unictype/category-name: New file.
48151         * modules/unictype/combining-class: New file.
48152         * modules/unictype/category-all: New file.
48153         * modules/unictype/bidicategory-all: New file.
48154         * modules/unictype/bidicategory-byname: New file.
48155         * modules/unictype/bidicategory-name: New file.
48156         * modules/unictype/bidicategory-of: New file.
48157         * modules/unictype/bidicategory-test: New file.
48158         * modules/unictype/decimal-digit: New file.
48159         * modules/unictype/digit: New file.
48160         * modules/unictype/numeric: New file.
48161         * modules/unictype/mirror: New file.
48162         * modules/unictype/property-white-space: New file.
48163         * modules/unictype/property-alphabetic: New file.
48164         * modules/unictype/property-other-alphabetic: New file.
48165         * modules/unictype/property-not-a-character: New file.
48166         * modules/unictype/property-default-ignorable-code-point: New file.
48167         * modules/unictype/property-other-default-ignorable-code-point: New
48168         file.
48169         * modules/unictype/property-deprecated: New file.
48170         * modules/unictype/property-logical-order-exception: New file.
48171         * modules/unictype/property-variation-selector: New file.
48172         * modules/unictype/property-private-use: New file.
48173         * modules/unictype/property-unassigned-code-value: New file.
48174         * modules/unictype/property-uppercase: New file.
48175         * modules/unictype/property-other-uppercase: New file.
48176         * modules/unictype/property-lowercase: New file.
48177         * modules/unictype/property-other-lowercase: New file.
48178         * modules/unictype/property-titlecase: New file.
48179         * modules/unictype/property-soft-dotted: New file.
48180         * modules/unictype/property-id-start: New file.
48181         * modules/unictype/property-other-id-start: New file.
48182         * modules/unictype/property-id-continue: New file.
48183         * modules/unictype/property-other-id-continue: New file.
48184         * modules/unictype/property-xid-start: New file.
48185         * modules/unictype/property-xid-continue: New file.
48186         * modules/unictype/property-pattern-white-space: New file.
48187         * modules/unictype/property-pattern-syntax: New file.
48188         * modules/unictype/property-join-control: New file.
48189         * modules/unictype/property-grapheme-base: New file.
48190         * modules/unictype/property-grapheme-extend: New file.
48191         * modules/unictype/property-other-grapheme-extend: New file.
48192         * modules/unictype/property-grapheme-link: New file.
48193         * modules/unictype/property-bidi-control: New file.
48194         * modules/unictype/property-bidi-left-to-right: New file.
48195         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
48196         * modules/unictype/property-bidi-arabic-right-to-left: New file.
48197         * modules/unictype/property-bidi-european-digit: New file.
48198         * modules/unictype/property-bidi-eur-num-separator: New file.
48199         * modules/unictype/property-bidi-eur-num-terminator: New file.
48200         * modules/unictype/property-bidi-arabic-digit: New file.
48201         * modules/unictype/property-bidi-common-separator: New file.
48202         * modules/unictype/property-bidi-block-separator: New file.
48203         * modules/unictype/property-bidi-segment-separator: New file.
48204         * modules/unictype/property-bidi-whitespace: New file.
48205         * modules/unictype/property-bidi-non-spacing-mark: New file.
48206         * modules/unictype/property-bidi-boundary-neutral: New file.
48207         * modules/unictype/property-bidi-pdf: New file.
48208         * modules/unictype/property-bidi-embedding-or-override: New file.
48209         * modules/unictype/property-bidi-other-neutral: New file.
48210         * modules/unictype/property-hex-digit: New file.
48211         * modules/unictype/property-ascii-hex-digit: New file.
48212         * modules/unictype/property-ideographic: New file.
48213         * modules/unictype/property-unified-ideograph: New file.
48214         * modules/unictype/property-radical: New file.
48215         * modules/unictype/property-ids-binary-operator: New file.
48216         * modules/unictype/property-ids-trinary-operator: New file.
48217         * modules/unictype/property-zero-width: New file.
48218         * modules/unictype/property-space: New file.
48219         * modules/unictype/property-non-break: New file.
48220         * modules/unictype/property-iso-control: New file.
48221         * modules/unictype/property-format-control: New file.
48222         * modules/unictype/property-dash: New file.
48223         * modules/unictype/property-hyphen: New file.
48224         * modules/unictype/property-punctuation: New file.
48225         * modules/unictype/property-line-separator: New file.
48226         * modules/unictype/property-paragraph-separator: New file.
48227         * modules/unictype/property-quotation-mark: New file.
48228         * modules/unictype/property-sentence-terminal: New file.
48229         * modules/unictype/property-terminal-punctuation: New file.
48230         * modules/unictype/property-currency-symbol: New file.
48231         * modules/unictype/property-math: New file.
48232         * modules/unictype/property-other-math: New file.
48233         * modules/unictype/property-paired-punctuation: New file.
48234         * modules/unictype/property-left-of-pair: New file.
48235         * modules/unictype/property-combining: New file.
48236         * modules/unictype/property-composite: New file.
48237         * modules/unictype/property-decimal-digit: New file.
48238         * modules/unictype/property-numeric: New file.
48239         * modules/unictype/property-diacritic: New file.
48240         * modules/unictype/property-extender: New file.
48241         * modules/unictype/property-ignorable-control: New file.
48242         * modules/unictype/property-test: New file.
48243         * modules/unictype/property-byname: New file.
48244         * modules/unictype/property-all: New file.
48245         * modules/unictype/scripts: New file.
48246         * modules/unictype/scripts-all: New file.
48247         * modules/unictype/block-of: New file.
48248         * modules/unictype/block-test: New file.
48249         * modules/unictype/block-list: New file.
48250         * modules/unictype/block-all: New file.
48251         * modules/unictype/syntax-c-whitespace: New file.
48252         * modules/unictype/syntax-java-whitespace: New file.
48253         * modules/unictype/syntax-c-ident: New file.
48254         * modules/unictype/syntax-java-ident: New file.
48255         * modules/unictype/ctype-alnum: New file.
48256         * modules/unictype/ctype-alpha: New file.
48257         * modules/unictype/ctype-cntrl: New file.
48258         * modules/unictype/ctype-digit: New file.
48259         * modules/unictype/ctype-graph: New file.
48260         * modules/unictype/ctype-lower: New file.
48261         * modules/unictype/ctype-print: New file.
48262         * modules/unictype/ctype-punct: New file.
48263         * modules/unictype/ctype-space: New file.
48264         * modules/unictype/ctype-upper: New file.
48265         * modules/unictype/ctype-xdigit: New file.
48266         * modules/unictype/ctype-blank: New file.
48267         * lib/unictype/bidi_byname.c: New file.
48268         * lib/unictype/bidi_name.c: New file.
48269         * lib/unictype/bidi_of.c: New file.
48270         * lib/unictype/bidi_test.c: New file.
48271         * lib/unictype/bitmap.h: New file.
48272         * lib/unictype/block_test.c: New file.
48273         * lib/unictype/blocks.c: New file.
48274         * lib/unictype/categ_C.c: New file.
48275         * lib/unictype/categ_Cc.c: New file.
48276         * lib/unictype/categ_Cf.c: New file.
48277         * lib/unictype/categ_Cn.c: New file.
48278         * lib/unictype/categ_Co.c: New file.
48279         * lib/unictype/categ_Cs.c: New file.
48280         * lib/unictype/categ_L.c: New file.
48281         * lib/unictype/categ_Ll.c: New file.
48282         * lib/unictype/categ_Lm.c: New file.
48283         * lib/unictype/categ_Lo.c: New file.
48284         * lib/unictype/categ_Lt.c: New file.
48285         * lib/unictype/categ_Lu.c: New file.
48286         * lib/unictype/categ_M.c: New file.
48287         * lib/unictype/categ_Mc.c: New file.
48288         * lib/unictype/categ_Me.c: New file.
48289         * lib/unictype/categ_Mn.c: New file.
48290         * lib/unictype/categ_N.c: New file.
48291         * lib/unictype/categ_Nd.c: New file.
48292         * lib/unictype/categ_Nl.c: New file.
48293         * lib/unictype/categ_No.c: New file.
48294         * lib/unictype/categ_P.c: New file.
48295         * lib/unictype/categ_Pc.c: New file.
48296         * lib/unictype/categ_Pd.c: New file.
48297         * lib/unictype/categ_Pe.c: New file.
48298         * lib/unictype/categ_Pf.c: New file.
48299         * lib/unictype/categ_Pi.c: New file.
48300         * lib/unictype/categ_Po.c: New file.
48301         * lib/unictype/categ_Ps.c: New file.
48302         * lib/unictype/categ_S.c: New file.
48303         * lib/unictype/categ_Sc.c: New file.
48304         * lib/unictype/categ_Sk.c: New file.
48305         * lib/unictype/categ_Sm.c: New file.
48306         * lib/unictype/categ_So.c: New file.
48307         * lib/unictype/categ_Z.c: New file.
48308         * lib/unictype/categ_Zl.c: New file.
48309         * lib/unictype/categ_Zp.c: New file.
48310         * lib/unictype/categ_Zs.c: New file.
48311         * lib/unictype/categ_and.c: New file.
48312         * lib/unictype/categ_and_not.c: New file.
48313         * lib/unictype/categ_byname.c: New file.
48314         * lib/unictype/categ_name.c: New file.
48315         * lib/unictype/categ_none.c: New file.
48316         * lib/unictype/categ_of.c: New file.
48317         * lib/unictype/categ_or.c: New file.
48318         * lib/unictype/categ_test.c: New file.
48319         * lib/unictype/combining.c: New file.
48320         * lib/unictype/ctype_alnum.c: New file.
48321         * lib/unictype/ctype_alpha.c: New file.
48322         * lib/unictype/ctype_blank.c: New file.
48323         * lib/unictype/ctype_cntrl.c: New file.
48324         * lib/unictype/ctype_digit.c: New file.
48325         * lib/unictype/ctype_graph.c: New file.
48326         * lib/unictype/ctype_lower.c: New file.
48327         * lib/unictype/ctype_print.c: New file.
48328         * lib/unictype/ctype_punct.c: New file.
48329         * lib/unictype/ctype_space.c: New file.
48330         * lib/unictype/ctype_upper.c: New file.
48331         * lib/unictype/ctype_xdigit.c: New file.
48332         * lib/unictype/decdigit.c: New file.
48333         * lib/unictype/digit.c: New file.
48334         * lib/unictype/identsyntaxmap.h: New file.
48335         * lib/unictype/mirror.c: New file.
48336         * lib/unictype/numeric.c: New file.
48337         * lib/unictype/pr_alphabetic.c: New file.
48338         * lib/unictype/pr_ascii_hex_digit.c: New file.
48339         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48340         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48341         * lib/unictype/pr_bidi_block_separator.c: New file.
48342         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48343         * lib/unictype/pr_bidi_common_separator.c: New file.
48344         * lib/unictype/pr_bidi_control.c: New file.
48345         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48346         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48347         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48348         * lib/unictype/pr_bidi_european_digit.c: New file.
48349         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48350         * lib/unictype/pr_bidi_left_to_right.c: New file.
48351         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48352         * lib/unictype/pr_bidi_other_neutral.c: New file.
48353         * lib/unictype/pr_bidi_pdf.c: New file.
48354         * lib/unictype/pr_bidi_segment_separator.c: New file.
48355         * lib/unictype/pr_bidi_whitespace.c: New file.
48356         * lib/unictype/pr_byname.c: New file.
48357         * lib/unictype/pr_byname.gperf: New file.
48358         * lib/unictype/pr_combining.c: New file.
48359         * lib/unictype/pr_composite.c: New file.
48360         * lib/unictype/pr_currency_symbol.c: New file.
48361         * lib/unictype/pr_dash.c: New file.
48362         * lib/unictype/pr_decimal_digit.c: New file.
48363         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48364         * lib/unictype/pr_deprecated.c: New file.
48365         * lib/unictype/pr_diacritic.c: New file.
48366         * lib/unictype/pr_extender.c: New file.
48367         * lib/unictype/pr_format_control.c: New file.
48368         * lib/unictype/pr_grapheme_base.c: New file.
48369         * lib/unictype/pr_grapheme_extend.c: New file.
48370         * lib/unictype/pr_grapheme_link.c: New file.
48371         * lib/unictype/pr_hex_digit.c: New file.
48372         * lib/unictype/pr_hyphen.c: New file.
48373         * lib/unictype/pr_id_continue.c: New file.
48374         * lib/unictype/pr_id_start.c: New file.
48375         * lib/unictype/pr_ideographic.c: New file.
48376         * lib/unictype/pr_ids_binary_operator.c: New file.
48377         * lib/unictype/pr_ids_trinary_operator.c: New file.
48378         * lib/unictype/pr_ignorable_control.c: New file.
48379         * lib/unictype/pr_iso_control.c: New file.
48380         * lib/unictype/pr_join_control.c: New file.
48381         * lib/unictype/pr_left_of_pair.c: New file.
48382         * lib/unictype/pr_line_separator.c: New file.
48383         * lib/unictype/pr_logical_order_exception.c: New file.
48384         * lib/unictype/pr_lowercase.c: New file.
48385         * lib/unictype/pr_math.c: New file.
48386         * lib/unictype/pr_non_break.c: New file.
48387         * lib/unictype/pr_not_a_character.c: New file.
48388         * lib/unictype/pr_numeric.c: New file.
48389         * lib/unictype/pr_other_alphabetic.c: New file.
48390         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48391         * lib/unictype/pr_other_grapheme_extend.c: New file.
48392         * lib/unictype/pr_other_id_continue.c: New file.
48393         * lib/unictype/pr_other_id_start.c: New file.
48394         * lib/unictype/pr_other_lowercase.c: New file.
48395         * lib/unictype/pr_other_math.c: New file.
48396         * lib/unictype/pr_other_uppercase.c: New file.
48397         * lib/unictype/pr_paired_punctuation.c: New file.
48398         * lib/unictype/pr_paragraph_separator.c: New file.
48399         * lib/unictype/pr_pattern_syntax.c: New file.
48400         * lib/unictype/pr_pattern_white_space.c: New file.
48401         * lib/unictype/pr_private_use.c: New file.
48402         * lib/unictype/pr_punctuation.c: New file.
48403         * lib/unictype/pr_quotation_mark.c: New file.
48404         * lib/unictype/pr_radical.c: New file.
48405         * lib/unictype/pr_sentence_terminal.c: New file.
48406         * lib/unictype/pr_soft_dotted.c: New file.
48407         * lib/unictype/pr_space.c: New file.
48408         * lib/unictype/pr_terminal_punctuation.c: New file.
48409         * lib/unictype/pr_test.c: New file.
48410         * lib/unictype/pr_titlecase.c: New file.
48411         * lib/unictype/pr_unassigned_code_value.c: New file.
48412         * lib/unictype/pr_unified_ideograph.c: New file.
48413         * lib/unictype/pr_uppercase.c: New file.
48414         * lib/unictype/pr_variation_selector.c: New file.
48415         * lib/unictype/pr_white_space.c: New file.
48416         * lib/unictype/pr_xid_continue.c: New file.
48417         * lib/unictype/pr_xid_start.c: New file.
48418         * lib/unictype/pr_zero_width.c: New file.
48419         * lib/unictype/scripts.c: New file.
48420         * lib/unictype/sy_c_ident.c: New file.
48421         * lib/unictype/sy_c_whitespace.c: New file.
48422         * lib/unictype/sy_java_ident.c: New file.
48423         * lib/unictype/sy_java_whitespace.c: New file.
48424
48425         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48426         Unicode 5.0.0.
48427         * lib/unictype/blocks.h: Likewise.
48428         * lib/unictype/categ_C.h: Likewise.
48429         * lib/unictype/categ_Cc.h: Likewise.
48430         * lib/unictype/categ_Cf.h: Likewise.
48431         * lib/unictype/categ_Cn.h: Likewise.
48432         * lib/unictype/categ_Co.h: Likewise.
48433         * lib/unictype/categ_Cs.h: Likewise.
48434         * lib/unictype/categ_L.h: Likewise.
48435         * lib/unictype/categ_Ll.h: Likewise.
48436         * lib/unictype/categ_Lm.h: Likewise.
48437         * lib/unictype/categ_Lo.h: Likewise.
48438         * lib/unictype/categ_Lt.h: Likewise.
48439         * lib/unictype/categ_Lu.h: Likewise.
48440         * lib/unictype/categ_M.h: Likewise.
48441         * lib/unictype/categ_Mc.h: Likewise.
48442         * lib/unictype/categ_Me.h: Likewise.
48443         * lib/unictype/categ_Mn.h: Likewise.
48444         * lib/unictype/categ_N.h: Likewise.
48445         * lib/unictype/categ_Nd.h: Likewise.
48446         * lib/unictype/categ_Nl.h: Likewise.
48447         * lib/unictype/categ_No.h: Likewise.
48448         * lib/unictype/categ_P.h: Likewise.
48449         * lib/unictype/categ_Pc.h: Likewise.
48450         * lib/unictype/categ_Pd.h: Likewise.
48451         * lib/unictype/categ_Pe.h: Likewise.
48452         * lib/unictype/categ_Pf.h: Likewise.
48453         * lib/unictype/categ_Pi.h: Likewise.
48454         * lib/unictype/categ_Po.h: Likewise.
48455         * lib/unictype/categ_Ps.h: Likewise.
48456         * lib/unictype/categ_S.h: Likewise.
48457         * lib/unictype/categ_Sc.h: Likewise.
48458         * lib/unictype/categ_Sk.h: Likewise.
48459         * lib/unictype/categ_Sm.h: Likewise.
48460         * lib/unictype/categ_So.h: Likewise.
48461         * lib/unictype/categ_Z.h: Likewise.
48462         * lib/unictype/categ_Zl.h: Likewise.
48463         * lib/unictype/categ_Zp.h: Likewise.
48464         * lib/unictype/categ_Zs.h: Likewise.
48465         * lib/unictype/categ_of.h: Likewise.
48466         * lib/unictype/combining.h: Likewise.
48467         * lib/unictype/ctype_alnum.h: Likewise.
48468         * lib/unictype/ctype_alpha.h: Likewise.
48469         * lib/unictype/ctype_blank.h: Likewise.
48470         * lib/unictype/ctype_cntrl.h: Likewise.
48471         * lib/unictype/ctype_digit.h: Likewise.
48472         * lib/unictype/ctype_graph.h: Likewise.
48473         * lib/unictype/ctype_lower.h: Likewise.
48474         * lib/unictype/ctype_print.h: Likewise.
48475         * lib/unictype/ctype_punct.h: Likewise.
48476         * lib/unictype/ctype_space.h: Likewise.
48477         * lib/unictype/ctype_upper.h: Likewise.
48478         * lib/unictype/ctype_xdigit.h: Likewise.
48479         * lib/unictype/decdigit.h: Likewise.
48480         * lib/unictype/digit.h: Likewise.
48481         * lib/unictype/mirror.h: Likewise.
48482         * lib/unictype/numeric.h: Likewise.
48483         * lib/unictype/pr_alphabetic.h: Likewise.
48484         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48485         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48486         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48487         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48488         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48489         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48490         * lib/unictype/pr_bidi_control.h: Likewise.
48491         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48492         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48493         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48494         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48495         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48496         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48497         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48498         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48499         * lib/unictype/pr_bidi_pdf.h: Likewise.
48500         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48501         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48502         * lib/unictype/pr_combining.h: Likewise.
48503         * lib/unictype/pr_composite.h: Likewise.
48504         * lib/unictype/pr_currency_symbol.h: Likewise.
48505         * lib/unictype/pr_dash.h: Likewise.
48506         * lib/unictype/pr_decimal_digit.h: Likewise.
48507         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48508         * lib/unictype/pr_deprecated.h: Likewise.
48509         * lib/unictype/pr_diacritic.h: Likewise.
48510         * lib/unictype/pr_extender.h: Likewise.
48511         * lib/unictype/pr_format_control.h: Likewise.
48512         * lib/unictype/pr_grapheme_base.h: Likewise.
48513         * lib/unictype/pr_grapheme_extend.h: Likewise.
48514         * lib/unictype/pr_grapheme_link.h: Likewise.
48515         * lib/unictype/pr_hex_digit.h: Likewise.
48516         * lib/unictype/pr_hyphen.h: Likewise.
48517         * lib/unictype/pr_id_continue.h: Likewise.
48518         * lib/unictype/pr_id_start.h: Likewise.
48519         * lib/unictype/pr_ideographic.h: Likewise.
48520         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48521         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48522         * lib/unictype/pr_ignorable_control.h: Likewise.
48523         * lib/unictype/pr_iso_control.h: Likewise.
48524         * lib/unictype/pr_join_control.h: Likewise.
48525         * lib/unictype/pr_left_of_pair.h: Likewise.
48526         * lib/unictype/pr_line_separator.h: Likewise.
48527         * lib/unictype/pr_logical_order_exception.h: Likewise.
48528         * lib/unictype/pr_lowercase.h: Likewise.
48529         * lib/unictype/pr_math.h: Likewise.
48530         * lib/unictype/pr_non_break.h: Likewise.
48531         * lib/unictype/pr_not_a_character.h: Likewise.
48532         * lib/unictype/pr_numeric.h: Likewise.
48533         * lib/unictype/pr_other_alphabetic.h: Likewise.
48534         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48535         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48536         * lib/unictype/pr_other_id_continue.h: Likewise.
48537         * lib/unictype/pr_other_id_start.h: Likewise.
48538         * lib/unictype/pr_other_lowercase.h: Likewise.
48539         * lib/unictype/pr_other_math.h: Likewise.
48540         * lib/unictype/pr_other_uppercase.h: Likewise.
48541         * lib/unictype/pr_paired_punctuation.h: Likewise.
48542         * lib/unictype/pr_paragraph_separator.h: Likewise.
48543         * lib/unictype/pr_pattern_syntax.h: Likewise.
48544         * lib/unictype/pr_pattern_white_space.h: Likewise.
48545         * lib/unictype/pr_private_use.h: Likewise.
48546         * lib/unictype/pr_punctuation.h: Likewise.
48547         * lib/unictype/pr_quotation_mark.h: Likewise.
48548         * lib/unictype/pr_radical.h: Likewise.
48549         * lib/unictype/pr_sentence_terminal.h: Likewise.
48550         * lib/unictype/pr_soft_dotted.h: Likewise.
48551         * lib/unictype/pr_space.h: Likewise.
48552         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48553         * lib/unictype/pr_titlecase.h: Likewise.
48554         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48555         * lib/unictype/pr_unified_ideograph.h: Likewise.
48556         * lib/unictype/pr_uppercase.h: Likewise.
48557         * lib/unictype/pr_variation_selector.h: Likewise.
48558         * lib/unictype/pr_white_space.h: Likewise.
48559         * lib/unictype/pr_xid_continue.h: Likewise.
48560         * lib/unictype/pr_xid_start.h: Likewise.
48561         * lib/unictype/pr_zero_width.h: Likewise.
48562         * lib/unictype/scripts.h: Likewise.
48563         * lib/unictype/scripts_byname.gperf: Likewise.
48564         * lib/unictype/sy_c_ident.h: Likewise.
48565         * lib/unictype/sy_c_whitespace.h: Likewise.
48566         * lib/unictype/sy_java_ident.h: Likewise.
48567         * lib/unictype/sy_java_whitespace.h: Likewise.
48568
48569         * lib/unictype/Makefile: New file.
48570         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48571         glibc.
48572         * lib/unictype/3level.h: New file, copied from glibc.
48573         * lib/unictype/3levelbit.h: New file.
48574
48575 2007-11-11  Bruno Haible  <bruno@clisp.org>
48576
48577         * modules/gperf: New file.
48578         * modules/iconv_open (Depends-on): Add it.
48579         (Makefile.am): Remove the GPERF definition.
48580
48581 2007-11-11  Bruno Haible  <bruno@clisp.org>
48582
48583         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48584         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48585
48586 2007-11-11  Bruno Haible  <bruno@clisp.org>
48587
48588         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48589         (usage): Remove function.
48590
48591 2007-11-11  Bruno Haible  <bruno@clisp.org>
48592
48593         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48594         gl_FUNC_CEILF_LIBS.
48595         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48596         gl_FUNC_CEIL_LIBS.
48597         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48598         gl_FUNC_CEILL_LIBS.
48599         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48600         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48601         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48602
48603 2007-11-11  Bruno Haible  <bruno@clisp.org>
48604
48605         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48606         roundf were declared but do not exist on functions.
48607         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48608         roundl were declared but do not exist on functions.
48609         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48610         HAVE_FLOORL_AND_CEILL, respectively.
48611         Needed for Sun C on Solaris 10.
48612
48613 2007-11-11  Bruno Haible  <bruno@clisp.org>
48614
48615         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48616         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48617         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48618         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48619         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48620         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48621         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48622         HAVE_DECL_ROUNDF.
48623         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48624         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48626         of HAVE_DECL_ROUND*.
48627         * modules/math (Makefile.am): Update.
48628
48629 2007-11-10  Bruno Haible  <bruno@clisp.org>
48630
48631         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48632         ptrdiff_t as m4/intl.m4.
48633
48634 2007-11-10  Jim Meyering  <meyering@redhat.com>
48635
48636         Avoid link failure for the argmatch test.
48637         * tests/test-argmatch.c (usage): Define function to avoid a link
48638         failure: argmatch_die requires a usage function.
48639
48640 2007-11-09  Bruno Haible  <bruno@clisp.org>
48641
48642         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48643         * doc/functions/vsnprintf.texi: Likewise.
48644         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48645         with a size argument < 2.
48646
48647 2007-11-09  Bruno Haible  <bruno@clisp.org>
48648
48649         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48650         buffer. Fixes an inefficiency introduced on 2007-11-03.
48651
48652 2007-11-09  Bruno Haible  <bruno@clisp.org>
48653
48654         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48655         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48656
48657 2007-11-08  Jim Meyering  <meyering@redhat.com>
48658
48659         Change cache variable name prefix "jm_" to "gl_" everywhere.
48660         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48661         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48662         * m4/uptime.m4: s/gl_/jm_/
48663
48664 2007-11-07  Bruno Haible  <bruno@clisp.org>
48665
48666         Update to GNU gettext 0.17.
48667         * m4/intl.m4: Update to GNU gettext 0.17.
48668         * m4/po.m4: Likewise.
48669         * modules/gettext (Files): Remove m4/ulonglong.m4.
48670         (configure.ac): Require gettext infrastructure from version 0.17.
48671
48672 2007-11-06  Bruno Haible  <bruno@clisp.org>
48673
48674         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48675         symbolic values are not defined in a public header.
48676         * lib/freadable.c (freadable) [QNX]: Likewise.
48677         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48678         * lib/freading.c (freading) [QNX]: Likewise.
48679         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48680         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48681         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48682         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48683         Reported by Alain Magloire.
48684
48685         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48686
48687 2007-11-05  Bruno Haible  <bruno@clisp.org>
48688
48689         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48690         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48691         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48692         Reported by Eric Blake.
48693
48694 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48695             Bruno Haible  <bruno@clisp.org>
48696
48697         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48698         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48699         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48700         (malloc): Undefine also before including <stdlib.h>.
48701         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48702         Needed on OSF/1 4.0.
48703
48704 2007-11-05  Jim Meyering  <meyering@redhat.com>
48705
48706         git-version-gen: sync from coreutils.
48707         * build-aux/git-version-gen: Add comments.
48708         Change the first '-' to '.' in the snapshot version string,
48709         e.g., 6.9-377-08144 -> 6.9.377-08144
48710         Remove first parameter.
48711         Don't declare a version "-dirty" merely because a time
48712         stamp has changed.
48713
48714 2007-11-04  Bruno Haible  <bruno@clisp.org>
48715
48716         * lib/lock.h: Protect all macro definitions containing an 'if'
48717         statement through a "do { ... } while (0)".
48718         * lib/tls.h: Likewise.
48719
48720 2007-11-04  Bruno Haible  <bruno@clisp.org>
48721
48722         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48723
48724 2007-11-04  Bruno Haible  <bruno@clisp.org>
48725
48726         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48727         * modules/fprintf-posix (Depends-on): Add nocrash.
48728         * modules/snprintf-posix (Depends-on): Likewise.
48729         * modules/sprintf-posix (Depends-on): Likewise.
48730         * modules/vasnprintf-posix (Depends-on): Likewise.
48731         * modules/vasprintf-posix (Depends-on): Likewise.
48732         * modules/vfprintf-posix (Depends-on): Likewise.
48733         * modules/vsnprintf-posix (Depends-on): Likewise.
48734         * modules/vsprintf-posix (Depends-on): Likewise.
48735         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48736         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48737         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48738         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48739         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48740         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48741         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48742
48743 2007-11-04  Bruno Haible  <bruno@clisp.org>
48744
48745         * modules/nocrash: New file.
48746         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48747         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48748
48749 2007-11-04  Bruno Haible  <bruno@clisp.org>
48750
48751         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48752         precision handling.
48753         * tests/test-vasprintf-posix.c (test_function): Likewise.
48754         * tests/test-snprintf-posix.h (test_function): Likewise.
48755         * tests/test-sprintf-posix.h (test_function): Likewise.
48756
48757         Fix *printf behaviour for large precisions on mingw and BeOS.
48758         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48759         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48761         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48763         gl_PRINTF_PRECISION and test its result. Invoke
48764         gl_PREREQ_VASNPRINTF_PRECISION.
48765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48766         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48767         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48768         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48769         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48772         * doc/functions/fprintf.texi: Update.
48773         * doc/functions/printf.texi: Update.
48774         * doc/functions/snprintf.texi: Update.
48775         * doc/functions/sprintf.texi: Update.
48776         * doc/functions/vfprintf.texi: Update.
48777         * doc/functions/vprintf.texi: Update.
48778         * doc/functions/vsnprintf.texi: Update.
48779         * doc/functions/vsprintf.texi: Update.
48780
48781 2007-11-04  Bruno Haible  <bruno@clisp.org>
48782
48783         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
48784
48785 2007-11-04  Bruno Haible  <bruno@clisp.org>
48786
48787         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
48788         Reported by Sylvain Beucler <beuc@gnu.org>.
48789
48790 2007-11-03  Bruno Haible  <bruno@clisp.org>
48791
48792         * tests/test-fprintf-posix2.sh: New file.
48793         * tests/test-fprintf-posix2.c: New file.
48794         * modules/fprintf-posix-tests (Files): Add them.
48795         (TESTS): Add test-fprintf-posix2.sh.
48796         (configure.ac): Check for getrlimit and setrlimit.
48797         (check_PROGRAMS): Add test-fprintf-posix2.
48798
48799         * tests/test-printf-posix2.sh: New file.
48800         * tests/test-printf-posix2.c: New file.
48801         * modules/printf-posix-tests (Files): Add them.
48802         (TESTS): Add test-printf-posix2.sh.
48803         (configure.ac): Check for getrlimit and setrlimit.
48804         (check_PROGRAMS): Add test-printf-posix2.
48805
48806         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
48807         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
48808         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
48809         (decode_double): New function, copied from decode_long_double.
48810         (scale10_round_decimal_decoded): New function, extracted from
48811         scale10_round_decimal_long_double.
48812         (scale10_round_decimal_long_double): Use it.
48813         (scale10_round_decimal_double): New function.
48814         (floorlog10): New function.
48815         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
48816         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
48817         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48818         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48819         gl_PRINTF_ENOMEM and test its result. Invoke
48820         gl_PREREQ_VASNPRINTF_ENOMEM.
48821         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48822         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48823         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48824         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48825         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48826         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48827         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48828         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
48829         * modules/snprintf-posix (Depends-on): Likewise.
48830         * modules/sprintf-posix (Depends-on): Likewise.
48831         * modules/vasnprintf-posix (Depends-on): Likewise.
48832         * modules/vasprintf-posix (Depends-on): Likewise.
48833         * modules/vfprintf-posix (Depends-on): Likewise.
48834         * modules/vsnprintf-posix (Depends-on): Likewise.
48835         * modules/vsprintf-posix (Depends-on): Likewise.
48836         * doc/functions/fprintf.texi: Update.
48837         * doc/functions/printf.texi: Update.
48838         * doc/functions/snprintf.texi: Update.
48839         * doc/functions/sprintf.texi: Update.
48840         * doc/functions/vfprintf.texi: Update.
48841         * doc/functions/vprintf.texi: Update.
48842         * doc/functions/vsnprintf.texi: Update.
48843         * doc/functions/vsprintf.texi: Update.
48844
48845 2007-11-03  Bruno Haible  <bruno@clisp.org>
48846
48847         * modules/frexp-nolibm-tests: New file.
48848
48849         * modules/frexp-nolibm: New file.
48850         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
48851
48852 2007-11-03  Bruno Haible  <bruno@clisp.org>
48853
48854         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
48855         value is C99 compliant.
48856         Needed for OSF/1 5.1.
48857
48858 2007-11-03  Bruno Haible  <bruno@clisp.org>
48859
48860         Fix out-of-memory handling of vasnprintf.
48861         * lib/printf-parse.c: Include <errno.h>.
48862         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
48863         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
48864         is already set.
48865
48866 2007-11-02  Eric Blake  <ebb9@byu.net>
48867
48868         Fix tests on cygwin.
48869         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
48870
48871 2007-11-01  Bruno Haible  <bruno@clisp.org>
48872
48873         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
48874         warning.
48875         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
48876         needed for POSIX compatibility.
48877
48878 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48879
48880         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
48881         for compatibility with GNU.
48882
48883 2007-11-01  Bruno Haible  <bruno@clisp.org>
48884
48885         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
48886         (putenv): Renamed from rpl_putenv. Change argument type from
48887         'const char *' to 'char *'.
48888         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
48889         of defining putenv in config.h, just set REPLACE_PUTENV.
48890         * modules/putenv (Depends-on): Add stdlib.
48891         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48892         (Include): Use <stdlib.h>.
48893         * lib/stdlib.in.h (putenv): New declaration.
48894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
48895         REPLACE_PUTENV.
48896         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
48897         REPLACE_PUTENV.
48898         Needed for MacOS X 10.5.0.
48899         Reported by Peter O'Gorman <peter@pogma.com>.
48900
48901 2007-11-01  Jim Meyering  <meyering@redhat.com>
48902
48903         Treat an empty date string exactly like "0".
48904         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
48905         if the remaining date string (to be parsed) is empty, use "0".
48906         Reported by Mischa Molhoek and discussed in this thread:
48907         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
48908
48909 2007-10-31  Bruno Haible  <bruno@clisp.org>
48910
48911         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
48912         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
48913         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
48914         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
48915         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
48916         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
48917
48918 2007-10-31  Bruno Haible  <bruno@clisp.org>
48919
48920         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
48921         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
48922         (AC_TYPE_LONG_LONG_INT): Use it.
48923         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
48924         it as well.
48925         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
48926         to m4/longlong.m4.
48927         * modules/stdint (Files): Remove m4/ulonglong.m4.
48928         * modules/strtoull (Files): Use m4/longlong.m4 instead of
48929         m4/ulonglong.m4.
48930         * modules/strtoumax (Files): Likewise.
48931
48932 2007-10-30  Bruno Haible  <bruno@clisp.org>
48933
48934         * modules/xvasprintf-posix: New file.
48935         Suggested by Eric Blake.
48936
48937 2007-10-30  Bruno Haible  <bruno@clisp.org>
48938
48939         * modules/xprintf-posix-tests: New file.
48940         * tests/test-xprintf-posix.sh: New file.
48941         * tests/test-xprintf-posix.c: New file.
48942         * tests/test-xfprintf-posix.c: New file.
48943
48944         * modules/xprintf-posix: New file.
48945
48946 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48947
48948         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
48949         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
48950         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
48951
48952 2007-10-29  Bruno Haible  <bruno@clisp.org>
48953
48954         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
48955         contain the special marker '_cv_'.
48956         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48957         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48958         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48959         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
48960         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48961         Reported by Ralf Wildenhues.
48962
48963 2007-10-29  Bruno Haible  <bruno@clisp.org>
48964
48965         * gnulib-tool (func_import): When --lgpl is not specified, set
48966         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
48967         GPLv3.
48968         Reported by Simon Josefsson.
48969
48970 2007-10-28  Bruno Haible  <bruno@clisp.org>
48971
48972         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
48973         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
48974         HAVE_DECL_ISFINITE.
48975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48976         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
48977         HAVE_DECL_ISFINITE.
48978
48979 2007-10-28  Bruno Haible  <bruno@clisp.org>
48980
48981         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
48982         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
48983
48984 2007-10-28  Bruno Haible  <bruno@clisp.org>
48985
48986         Fix link errors with Sun C 5.0 on Solaris 10.
48987         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
48988         function is declared but not present in the compiler's libm.
48989         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48990         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48991         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
48992         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
48993         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
48994         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
48995         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
48996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48997         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
48998         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
48999         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
49000         HAVE_DECL_FLOORL.
49001
49002 2007-10-28  Bruno Haible  <bruno@clisp.org>
49003
49004         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
49005         gl_FUNC_FLOORL. Cache the result.
49006         (gl_FUNC_FLOORL): Use it.
49007         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
49008         gl_FUNC_CEILL. Cache the result.
49009         (gl_FUNC_CEILL): Use it.
49010
49011         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
49012         gl_FUNC_FLOOR. Cache the result.
49013         (gl_FUNC_FLOOR): Use it.
49014         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
49015         gl_FUNC_CEIL. Cache the result.
49016         (gl_FUNC_CEIL): Use it.
49017
49018         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
49019         gl_FUNC_FLOORF. Cache the result.
49020         (gl_FUNC_FLOORF): Use it.
49021         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
49022         gl_FUNC_CEILF. Cache the result.
49023         (gl_FUNC_CEILF): Use it.
49024
49025 2007-10-28  Bruno Haible  <bruno@clisp.org>
49026
49027         * gnulib-tool: Allow specifying the LGPL version number through
49028         --lgpl=2 or --lgpl=3.
49029         (func_usage): Document --lgpl with argument.
49030         Handle --lgpl=... arguments.
49031         (func_import): Recognize also gl_LGPL calls with an argument. When
49032         --lgpl=2 is used and the module's license is just LGPL, report an
49033         error. Set sed_transform_lib_file according to the lgpl variable. In
49034         the generated files, use --lgpl or gl_LGPL invocations with argument,
49035         if necessary.
49036         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
49037         an LGPv2+ license.
49038         * doc/gnulib-tool.texi (Modified imports): Update explanation of
49039         gl_LGPL macro.
49040
49041 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49042             Bruno Haible  <bruno@clisp.org>
49043
49044         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
49045         (u16_uctomb_aux): Likewise.
49046         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
49047         !HAVE_INLINE.
49048         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
49049
49050 2007-10-28  Bruno Haible  <bruno@clisp.org>
49051
49052         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
49053         Invoke AM_GETTEXT_OPTION if it exists.
49054         * modules/vasprintf: Likewise.
49055         * modules/verror: Likewise.
49056         * modules/xprintf: Likewise.
49057         * modules/xvasprintf: Likewise.
49058
49059 2007-10-27  Ben Pfaff  <blp@gnu.org>
49060
49061         * lib/math.in.h: Define isfinite macro and prototypes for
49062         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
49063         implementations.
49064         * m4/math_h.m4: New substitutions for isfinite module.
49065         * lib/isfinite.c: New file.
49066         * m4/isfinite.m4: New file.
49067         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
49068         * modules/isfinite: New file.
49069         * modules/isfinite-tests: New file.
49070         * tests/tests-isfinite.c: New file.
49071         * doc/functions/isfinite.texi: Mention isfinite module.
49072         * MODULES.html.sh: Mention new module.
49073
49074 2007-10-27  Ben Pfaff  <blp@gnu.org>
49075
49076         Ralf Wildenhues reported that Tru64 4.0D declares the round
49077         functions but does not have definitions.
49078         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
49079         cannot be found in any library, set the output variable to
49080         "missing" instead of "".
49081         * m4/round.m4: Also use our substitute if we cannot find round in
49082         any library, even if it is declared.
49083         * m4/roundf.m4: Likewise for roundf.
49084         * m4/roundl.m4: Likewise for roundl.
49085         * lib/math.in.h: Undefine roundf, round, roundl before defining
49086         their replacements, to allow for hypothetical systems where these
49087         may be defined as macros but not available in libraries.
49088
49089 2007-10-27  Bruno Haible  <bruno@clisp.org>
49090
49091         * doc/gnulib.texi: Invoke @firstparagraphindent.
49092         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
49093         changes in gnulib.
49094         (Source changes): New section.
49095
49096 2007-10-26  Bruno Haible  <bruno@clisp.org>
49097
49098         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
49099         borrowed from autoconf.
49100
49101 2007-10-26  Bruno Haible  <bruno@clisp.org>
49102
49103         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
49104         strerror returned the empty string. Needed on HP-UX 11.00.
49105
49106 2007-10-24  Micah Cowan  <micah@cowan.name>
49107
49108         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
49109         * build-aux/bootstrap: Remove support for now-unnecessary option,
49110         --cvs-user, and envvars CVS_USER, CVS_RSH.
49111
49112 2007-10-24  Jim Meyering  <meyering@redhat.com>
49113
49114         Avoid diagnostics from sha1sum when there is no cached checksum.
49115         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
49116         if the po.s1 file hasn't been created yet.
49117
49118         * build-aux/bootstrap: Sync from coreutils:
49119         2007-10-24  Jim Meyering  <meyering@redhat.com>
49120         Get gnulib from the git repository, not from an obsolete cvs one.
49121         * build-aux/bootstrap: Suggestion from Micah Cowan.
49122         2007-10-04  Jim Meyering  <jim@meyering.net>
49123         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
49124         (update_po_files): Work also when there are no .po files in po/.
49125
49126 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49127
49128         * README: Append ".git" to git and cg examples.
49129         Problem reported by Benoit Sigoure.
49130
49131 2007-10-23  Micah Cowan  <micah@cowan.name>
49132
49133         * users.txt: Add wget.
49134
49135 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49136
49137         Fix linking of some unistdio tests on FreeBSD.
49138         * modules/unistdio/u16-vsnprintf-tests
49139         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
49140         * modules/unistdio/u16-vsprintf-tests
49141         (test_u16_vsnprintf1_LDADD): Likewise.
49142         * modules/unistdio/u32-vsnprintf-tests
49143         (test_u32_vsnprintf1_LDADD): Likewise.
49144         * modules/unistdio/u32-vsprintf-tests
49145         (test_u32_vsprintf1_LDADD): Likewise.
49146         * modules/unistdio/u8-vsnprintf-tests
49147         (test_u8_vsnprintf1_LDADD): Likewise.
49148         * modules/unistdio/u8-vsprintf-tests
49149         (test_u8_vsprintf1_LDADD): Likewise.
49150         * modules/unistdio/ulc-vsnprintf-tests
49151         (test_ulc_vsnprintf1_LDADD): Likewise.
49152         * modules/unistdio/ulc-vsprintf-tests
49153         (test_ulc_vsprintf1_LDADD): Likewise.
49154
49155         Fix linking of some uniconv tests on FreeBSD.
49156         * modules/uniconv/u16-conv-from-enc-tests
49157         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
49158         * modules/uniconv/u16-conv-to-enc-tests
49159         (test_u16_conv_to_enc_LDADD): Likewise.
49160         * modules/uniconv/u16-strconv-from-enc-tests
49161         (test_u16_strconv_from_enc_LDADD): Likewise.
49162         * modules/uniconv/u16-strconv-to-enc-tests
49163         (test_u16_strconv_to_enc_LDADD): Likewise.
49164         * modules/uniconv/u32-conv-from-enc-tests
49165         (test_u32_conv_from_enc_LDADD): Likewise.
49166         * modules/uniconv/u32-conv-to-enc-tests
49167         (test_u32_conv_to_enc_LDADD): Likewise.
49168         * modules/uniconv/u32-strconv-from-enc-tests
49169         (test_u32_strconv_from_enc_LDADD): Likewise.
49170         * modules/uniconv/u32-strconv-to-enc-tests
49171         (test_u32_strconv_to_enc_LDADD): Likewise.
49172         * modules/uniconv/u8-conv-from-enc-tests
49173         (test_u8_conv_from_enc_LDADD): Likewise.
49174         * modules/uniconv/u8-conv-to-enc-tests
49175         (test_u8_conv_to_enc_LDADD): Likewise.
49176         * modules/uniconv/u8-strconv-from-enc-tests
49177         (test_u8_strconv_from_enc_LDADD): Likewise.
49178         * modules/uniconv/u8-strconv-to-enc-tests
49179         (test_u8_strconv_to_enc_LDADD): Likewise.
49180
49181 2007-10-22  Bruno Haible  <bruno@clisp.org>
49182
49183         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
49184         size.
49185
49186 2007-10-22  Eric Blake  <ebb9@byu.net>
49187
49188         Tweak x*printf documentation.
49189         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
49190         variable name and comments.
49191         Suggested by Bruno Haible.
49192
49193 2007-10-22  Bruno Haible  <bruno@clisp.org>
49194
49195         * lib/acl.c (copy_acl): Fix file name in comment.
49196
49197 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49198
49199         Fix Tru64 problem with stdbool.h.
49200         * lib/stdbool.in.h (false, true):
49201         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
49202         Don't declare as an enum in this situation; it runs afoul of Tru64.
49203         Problem reported by Steven M. Schweda in
49204         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
49205
49206 2007-10-22  Eric Blake  <ebb9@byu.net>
49207
49208         Also wrap vf?printf.
49209         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49210         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49211         (xvprintf, xvfprintf): New functions.
49212
49213 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49214
49215         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49216         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49217
49218         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49219         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49220
49221 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49222
49223         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49224         by Bruno Haible.
49225
49226 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49227
49228         * lib/getloadavg.c
49229         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49230         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49231
49232         * tests/test-i-ring.c: Work for C89.
49233
49234 2007-10-22  Bruno Haible  <bruno@clisp.org>
49235
49236         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49237         -1u, in preprocessor expression, so that we don't test for the bug
49238         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49239         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49240
49241 2007-10-22  Eric Blake  <ebb9@byu.net>
49242
49243         * tests/test-yesno.sh: Silence stderr during test.
49244
49245 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49246
49247         * modules/crypto/gc-camellia: New file.
49248
49249         * m4/gc-camellia.m4: New file.
49250
49251         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49252
49253         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49254
49255 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49256
49257         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49258         --help to stdout.  Reported by sms@antinode.org (Steven
49259         M. Schweda).
49260
49261 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49262
49263         * users.txt: Fix link to libksba.
49264
49265 2007-10-21  Ben Pfaff  <blp@gnu.org>
49266
49267         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49268         round.c roundf implementation that depends on floorf and ceilf to
49269         be tested unconditionally.
49270
49271 2007-10-21  Ben Pfaff  <blp@gnu.org>
49272
49273         * m4/check-libm-func.m4: Removed.
49274         * m4/check-math-lib.m4: New file.
49275         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49276         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49277         definition and lack of AC_LIBOBJ([roundf]).
49278         * m4/roundl.m4: Ditto, and similarly for roundl.
49279         * modules/round: Reference new m4 file.
49280         * modules/roundf: Ditto.
49281         * modules/roundl: Ditto.
49282         * tests/test-round2.c (main): Use ROUND instead of round.
49283         Bug report from Bruno Haible.
49284
49285 2007-10-21  Bruno Haible  <bruno@clisp.org>
49286
49287         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49288         context.
49289
49290 2007-10-21  Bruno Haible  <bruno@clisp.org>
49291
49292         * tests/test-wcwidth.c (main): Allow negative result for some control
49293         characters.
49294
49295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49296         Needed on OSF/1 5.1.
49297
49298 2007-10-21  Bruno Haible  <bruno@clisp.org>
49299
49300         * tests/test-floorf1.c: Include isnanf.h.
49301         (main): Use isnanf() instead of isnan().
49302         * tests/test-ceilf1.c: Include isnanf.h.
49303         (main): Use isnanf() instead of isnan().
49304         * tests/test-truncf1.c: Include isnanf.h.
49305         (main): Use isnanf() instead of isnan().
49306         * tests/test-roundf1.c: Include isnanf.h.
49307         (main): Use isnanf() instead of isnan().
49308
49309 2007-10-21  Eric Blake  <ebb9@byu.net>
49310
49311         * users.txt: Update URL for m4.
49312
49313 2007-10-21  Bruno Haible  <bruno@clisp.org>
49314
49315         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49316
49317 2007-10-21  Bruno Haible  <bruno@clisp.org>
49318
49319         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49320         Git's management files if the CVS files are not present.
49321
49322 2007-10-20  Bruno Haible  <bruno@clisp.org>
49323
49324         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49325         gcc-3.4.x.
49326
49327 2007-10-20  Ben Pfaff  <blp@gnu.org>
49328
49329         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49330         implementations.
49331         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49332         * lib/round.c: New file.
49333         * lib/roundf.c: New file.
49334         * lib/roundl.c: New file.
49335         * m4/round.m4: New file.
49336         * m4/roundf.m4: New file.
49337         * m4/roundl.m4: New file.
49338         * m4/check-libm-func-m4: New file.
49339         * modules/math: Replace round, roundf, roundl related @VARS@ in
49340         math.in.h.
49341         * modules/round: New file.
49342         * modules/round-tests: New file.
49343         * modules/roundf: New file.
49344         * modules/roundf-tests: New file.
49345         * modules/roundl: New file.
49346         * modules/roundl-tests: New file.
49347         * tests/test-round1.c: New file.
49348         * tests/test-round2.c: New file.
49349         * tests/test-roundf1.c: New file.
49350         * tests/test-roundf2.c: New file.
49351         * tests/test-roundl.c: New file.
49352         * doc/functions/round.texi: Mention round module.
49353         * doc/functions/roundf.texi: Mention roundf module.
49354         * doc/functions/roundl.texi: Mention roundl module.
49355         * MODULES.html.sh: Mention new modules.
49356         Thanks to Bruno Haible for suggestions.
49357
49358 2007-10-20  Jim Meyering  <meyering@redhat.com>
49359
49360         * lib/xprintf.c: Include <config.h> unconditionally.
49361
49362         Change xprintf's license to GPL.
49363         * modules/xprintf (License): s/LGPL/GPL/, since this module
49364         depends on modules (exit and exitfail) which are GPL.
49365         Suggestion from Bruno Haible.
49366
49367         xprintf fixes.
49368         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49369         Use a clearer diagnostic.
49370         Patch from Bruno Haible.
49371
49372 2007-10-20  Bruno Haible  <bruno@clisp.org>
49373
49374         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49375         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49376         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49377
49378 2007-10-20  Bruno Haible  <bruno@clisp.org>
49379
49380         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49381         precision in the comparison result > x - 1 or similar.
49382         * tests/test-ceilf2.c (correct_result_p): Likewise.
49383         * tests/test-truncf2.c (correct_result_p): Likewise.
49384         * tests/test-trunc2.c (correct_result_p): Likewise.
49385         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49386
49387 2007-10-20  Bruno Haible  <bruno@clisp.org>
49388
49389         * modules/ceil: New file.
49390         * m4/ceil.m4: New file.
49391         * doc/functions/ceil.texi: Mention the 'ceil' module.
49392
49393 2007-10-20  Bruno Haible  <bruno@clisp.org>
49394
49395         * modules/floor: New file.
49396         * m4/floor.m4: New file.
49397         * doc/functions/floor.texi: Mention the 'floor' module.
49398
49399 2007-10-20  Bruno Haible  <bruno@clisp.org>
49400
49401         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49402         of %a.
49403         * modules/floorf-tests (Depends-on): Likewise.
49404         * modules/truncf-tests (Depends-on): Likewise.
49405         * modules/trunc-tests (Depends-on): Likewise.
49406         Reported by Ben Pfaff.
49407
49408 2007-10-19  Jim Meyering  <meyering@redhat.com>
49409
49410         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49411         Don't bother testing specific errno values.  Just test ferror.
49412
49413         New module: xprintf
49414         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49415
49416 2007-10-19  Bruno Haible  <bruno@clisp.org>
49417
49418         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49419         syntax.
49420         * modules/javaexec (Makefile.am): Likewise.
49421         * modules/relocatable-prog (Makefile.am): Likewise.
49422         Suggested by Jim Meyering.
49423
49424 2007-10-18  Bruno Haible  <bruno@clisp.org>
49425
49426         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49427         Reported by Jim Meyering.
49428
49429 2007-10-18  Eric Blake  <ebb9@byu.net>
49430
49431         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49432
49433 2007-10-18  Bruno Haible  <bruno@clisp.org>
49434
49435         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49436         the format string into writable memory. Needed in Fortify conditions.
49437
49438 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49439             Bruno Haible  <bruno@clisp.org>
49440
49441         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49442         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49443         * modules/trim (Depends-on): Add mbchar.
49444         (configure.ac): Add gl_FUNC_MBRTOWC.
49445         (Makefile.am): Augment lib_SOURCES.
49446
49447 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49448
49449         Modify glob.c to use fstatat and dirfd, to simplify it.
49450         Suggested by Eric Blake.
49451         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49452         Don't include <stdbool.h>; not used.
49453         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49454         (link_exists_p): Simplify implementation, since we can now assume
49455         dirfd and fstatat.
49456         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49457
49458 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49459
49460         * gnulib-tool (func_get_dependencies): Fix sed script to
49461         match only tests.
49462
49463 2007-10-17  Bruno Haible  <bruno@clisp.org>
49464
49465         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49466         allow locale names without encoding suffix.
49467         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49468         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49469
49470 2007-10-16  Bruno Haible  <bruno@clisp.org>
49471
49472         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49473         * lib/getgroups.c (getgroups): Likewise.
49474         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49475
49476 2007-10-16  Bruno Haible  <bruno@clisp.org>
49477
49478         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49479         * modules/malloc-posix (License): Likewise.
49480         * modules/realloc-posix (License): Likewise.
49481         * modules/calloc-posix (License): Likewise.
49482         * modules/intprops (License): Change from GPL to LGPL, with
49483         Paul Eggert's approval.
49484
49485 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49486
49487         Merge glibc changes into lib/glob.c.
49488
49489         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49490         2007-10-15 04:59:03 UTC.  Here are the changes:
49491
49492         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49493
49494         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49495
49496         * lib/glob.c: Add some branch prediction throughout.
49497
49498         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49499
49500         [BZ #5103]
49501         * lib/glob.c (glob): Recognize patterns starting \/.
49502
49503         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49504
49505         [BZ #3996]
49506         * lib/glob.c (attribute_hidden): Define if not defined.
49507         (glob): Unescape dirname, filename or username when needed and not
49508         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49509         is NULL.  Handle unescaped [ in pattern without closing ].
49510         Don't pass GLOB_CHECK down to recursive glob for directories.
49511         (__glob_pattern_type): New function.
49512         (__glob_pattern_p): Implement using __glob_pattern_type.
49513         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49514         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49515         Remove unreachable code.
49516
49517         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49518
49519         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49520         explain why there are no leaks.
49521
49522         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49523
49524         [BZ #3253]
49525         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49526         time, rather allocate increasingly bigger arrays of pointers, if
49527         possible with alloca, if too large with malloc.
49528
49529 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49530
49531         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49532         Problem reported by H.Merijn Brand in
49533         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49534         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49535         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49536
49537 2007-10-15  Bruno Haible  <bruno@clisp.org>
49538
49539         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49540         with explicit rpl_ prefix.
49541         * lib/fopen.c (fopen): Likewise.
49542         * lib/freopen.c (freopen): Likewise.
49543         * lib/iconv.c (iconv): Likewise.
49544         * lib/iconv_close.c (iconv_close): Likewise.
49545
49546 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49547
49548         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49549
49550 2007-10-15  Bruno Haible  <bruno@clisp.org>
49551
49552         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49553         <stddef.h> instead of <stdlib.h> since we only need NULL.
49554         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49555
49556 2007-10-15  Bruno Haible  <bruno@clisp.org>
49557
49558         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49559         Replace paragraph talking about LIBOBJS.
49560         Reported by Colin Watson <cjwatson@debian.org>.
49561
49562 2007-10-15  Bruno Haible  <bruno@clisp.org>
49563
49564         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49565         <stdlib.h> before using NULL.
49566
49567 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49568
49569         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49570         Reported by Albert Chin <china@thewrittenword.com>.
49571
49572 2007-10-14  Bruno Haible  <bruno@clisp.org>
49573
49574         * modules/iconv_open-utf-tests: New file.
49575         * tests/test-iconv-utf.c: New file.
49576
49577         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49578         * modules/iconv_open-utf: New file.
49579         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49580         (iconv, iconv_close): New declarations.
49581         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49582         be defined.
49583         (iconv_open): Add special handling of conversion between UTF-8 and
49584         UTF-{16,32}{BE,LE}.
49585         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49586         * lib/iconv_close.c: New file.
49587         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49588         gl_FUNC_ICONV_OPEN.
49589         (gl_FUNC_ICONV_OPEN): Use it.
49590         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49591         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49592         and REPLACE_ICONV_UTF.
49593         * modules/iconv_open (Depends-on): Add c-strcase.
49594         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49595         ICONV_CONST.
49596         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49597
49598 2007-10-13  Albert Chin  <china@thewrittenword.com>
49599             Bruno Haible  <bruno@clisp.org>
49600
49601         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49602         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49603
49604 2007-10-13  Bruno Haible  <bruno@clisp.org>
49605
49606         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49607         defined, use the ISO C99 inline semantics.
49608         * lib/argp.h (ARGP_EI): Likewise.
49609
49610 2007-10-13  Bruno Haible  <bruno@clisp.org>
49611
49612         Handle 'inline' change in gcc 4.3.0.
49613         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49614         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49615         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49616         argp_fmtstream_point): Disable 'extern' declaration if the function
49617         definition is going to be provided inline.
49618         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49619         semantics, not the ISO C99 inline semantics.
49620         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49621         'extern' declaration if the function definition is going to be provided
49622         inline.
49623         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49624         the GNU C inline semantics, not the ISO C99 inline semantics. With
49625         GCC 4.2, avoid a warning.
49626
49627 2007-10-13  Bruno Haible  <bruno@clisp.org>
49628
49629         * lib/freading.h (freading): Enable the use of __freading for
49630         glibc >= 2.7.
49631         * lib/freading.c (freading): Likewise.
49632
49633 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49634
49635         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49636         "warning: C99 inline functions are not supported; using GNU89".
49637
49638 2007-10-12  Bruno Haible  <bruno@clisp.org>
49639
49640         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49641         of 2.
49642         * tests/test-ceilf2.c: New file.
49643         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49644
49645         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49646         * modules/ceilf-tests: Update.
49647
49648 2007-10-12  Bruno Haible  <bruno@clisp.org>
49649
49650         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49651         of 2.
49652         * tests/test-floorf2.c: New file.
49653         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49654
49655         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49656         * modules/floorf-tests: Update.
49657
49658 2007-10-12  Bruno Haible  <bruno@clisp.org>
49659
49660         * tests/test-trunc2.c: New file.
49661         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49662
49663         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49664         * modules/trunc-tests: Update.
49665
49666 2007-10-12  Bruno Haible  <bruno@clisp.org>
49667
49668         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49669         of 2.
49670         * tests/test-truncf2.c: New file.
49671         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49672
49673         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49674         * modules/truncf-tests: Update.
49675
49676 2007-10-11  Eric Blake  <ebb9@byu.net>
49677
49678         Don't claim strerror is broken on Interix.
49679         * doc/functions/strerror.texi (strerror): Known broken systems are
49680         now Solaris 8, and not Interix.
49681         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49682         Interix on cross-compile.
49683         Reported by Martin Koeppe in
49684         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49685
49686 2007-10-11  Bruno Haible  <bruno@clisp.org>
49687
49688         * modules/i-ring-tests: New file.
49689         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49690         instead of assert.
49691
49692 2007-10-11  Bruno Haible  <bruno@clisp.org>
49693
49694         * modules/filenamecat-tests: New file.
49695         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49696         * lib/filenamecat.c: Remove test code.
49697
49698 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49699
49700         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49701
49702         * lib/strerror.c: Include <string.h> always, to test interface,
49703         and to remove the need for the dummy.
49704         Include intprops.h to compute width instead of doing it ourselves
49705         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49706         (strerror): Define it to return NULL if there's no system strerror.
49707         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49708         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49709         ancient pre-strerror Unix systems well any more.  Saying "unknown
49710         system error" is enough.
49711         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49712         simpler strerror.c implementation.
49713         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49714         Simplify the tests to reflect the simpler strerror implementation.
49715         * modules/strerror (Depends-on): Add intprops.
49716
49717 2007-10-09  Eric Blake  <ebb9@byu.net>
49718
49719         Silence test-fpending.
49720         * modules/fpending-tests (Files): Add wrapper script.
49721         * tests/test-fpending.sh: New file.
49722
49723 2007-10-09  Bruno Haible  <bruno@clisp.org>
49724
49725         * MODULES.html.sh (func_module): Don't create a hyperlink for
49726         function names like 'printf_frexp'.
49727         (Misc): Add crc, memxor.
49728         (Characteristics of floating types): New section.
49729         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49730         isnanf-nolibm, signbit, trunc, truncf, truncl.
49731         (Enhancements for ISO C 99 functions): New subsection Input/output.
49732         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49733         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49734         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49735         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49736         (Enhancements for POSIX:2001 functions): Add chdir-long.
49737         (File system functions): Add areadlink, chdir-safer, read-file.
49738         Remove cycle-check.
49739         (File system as inode set): New section.
49740         (Date and time): Add gethrxtime.
49741         (Multithreading): Add openmp.
49742         (Internationalization functions): Add localename.
49743         (Unicode string functions): Add unistr/u*-mbsnlen.
49744         (Support for maintaining and releasing projects): Add git-version-gen.
49745         (Lone files): Remove directories.
49746
49747 2007-10-08  Ben Pfaff  <blp@gnu.org>
49748
49749         * lib/xmalloca.h: Fix typo in comment.
49750
49751 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49752
49753         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49754         when avoiding problems with integer overflow.  Use a portable test
49755         instead.
49756
49757 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49758
49759         * modules/dummy (License): Change to LGPLv2+.
49760         * modules/float (License): Likewise
49761         * modules/realloc (License): Likewise
49762         * modules/stdlib (License): Likewise
49763
49764 2007-10-07  Bruno Haible  <bruno@clisp.org>
49765
49766         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49767         * floor.c (TWO_MANT_DIG): Likewise.
49768         * ceil.c (TWO_MANT_DIG): Likewise.
49769         Reported by Ben Pfaff.
49770
49771 2007-10-07  Bruno Haible  <bruno@clisp.org>
49772
49773         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49774         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49775         * lib/frexp.c (FUNC): Likewise.
49776         * lib/printf-frexp.h (printf_frexp): Likewise.
49777         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49778         * lib/printf-frexp.c (FUNC): Likewise.
49779         Suggested by Jim Meyering.
49780
49781 2007-10-07  Jim Meyering  <meyering@redhat.com>
49782
49783         Make xnanosleep's integer overflow test more robust.
49784         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
49785         so that gcc-4.3.0 doesn't optimize away this test for overflow.
49786
49787 2007-10-07  Bruno Haible  <bruno@clisp.org>
49788
49789         * NEWS: Mention the license change.
49790
49791         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
49792         abbreviations in the modules files.
49793
49794         Change copyright notice from GPLv2+ to GPLv3+.
49795         * README: Change copyright notice.
49796         * MODULES.html.sh: Likewise.
49797         * build-aux/bootstrap.conf: Likewise.
49798         * build-aux/config.libpath: Likewise.
49799         * build-aux/csharpcomp.sh.in: Likewise.
49800         * build-aux/csharpexec.sh.in: Likewise.
49801         * build-aux/install-reloc: Likewise.
49802         * build-aux/javacomp.sh.in: Likewise.
49803         * build-aux/javaexec.sh.in: Likewise.
49804         * build-aux/ldd.sh.in: Likewise.
49805         * build-aux/reloc-ldflags: Likewise.
49806         * build-aux/relocatable.sh.in: Likewise.
49807         * build-aux/x-to-1.in: Likewise.
49808         * check-module: Likewise.
49809         * config/srclistvars.sh: Likewise.
49810         * gnulib-tool: Likewise.
49811         * lib/acl-internal.h: Likewise.
49812         * lib/acl.c: Likewise.
49813         * lib/acl.h: Likewise.
49814         * lib/acl_entries.c: Likewise.
49815         * lib/areadlink-with-size.c: Likewise.
49816         * lib/areadlink.c: Likewise.
49817         * lib/areadlink.h: Likewise.
49818         * lib/argmatch.c: Likewise.
49819         * lib/argmatch.h: Likewise.
49820         * lib/argp-ba.c: Likewise.
49821         * lib/argp-eexst.c: Likewise.
49822         * lib/argp-fmtstream.c: Likewise.
49823         * lib/argp-fmtstream.h: Likewise.
49824         * lib/argp-fs-xinl.c: Likewise.
49825         * lib/argp-help.c: Likewise.
49826         * lib/argp-namefrob.h: Likewise.
49827         * lib/argp-parse.c: Likewise.
49828         * lib/argp-pin.c: Likewise.
49829         * lib/argp-pv.c: Likewise.
49830         * lib/argp-pvh.c: Likewise.
49831         * lib/argp-xinl.c: Likewise.
49832         * lib/argp.h: Likewise.
49833         * lib/at-func.c: Likewise.
49834         * lib/atanl.c: Likewise.
49835         * lib/backupfile.c: Likewise.
49836         * lib/backupfile.h: Likewise.
49837         * lib/basename.c: Likewise.
49838         * lib/binary-io.h: Likewise.
49839         * lib/byteswap.in.h: Likewise.
49840         * lib/c-stack.c: Likewise.
49841         * lib/c-stack.h: Likewise.
49842         * lib/c-strcasestr.c: Likewise.
49843         * lib/c-strcasestr.h: Likewise.
49844         * lib/c-strstr.c: Likewise.
49845         * lib/c-strstr.h: Likewise.
49846         * lib/c-strtod.c: Likewise.
49847         * lib/calloc.c: Likewise.
49848         * lib/canon-host.c: Likewise.
49849         * lib/canon-host.h: Likewise.
49850         * lib/canonicalize-lgpl.c: Likewise.
49851         * lib/canonicalize.c: Likewise.
49852         * lib/canonicalize.h: Likewise.
49853         * lib/ceil.c: Likewise.
49854         * lib/ceilf.c: Likewise.
49855         * lib/ceill.c: Likewise.
49856         * lib/chdir-long.c: Likewise.
49857         * lib/chdir-long.h: Likewise.
49858         * lib/chdir-safer.c: Likewise.
49859         * lib/chdir-safer.h: Likewise.
49860         * lib/chown.c: Likewise.
49861         * lib/classpath.c: Likewise.
49862         * lib/classpath.h: Likewise.
49863         * lib/clean-temp.c: Likewise.
49864         * lib/clean-temp.h: Likewise.
49865         * lib/cloexec.c: Likewise.
49866         * lib/close-stream.c: Likewise.
49867         * lib/closein.c: Likewise.
49868         * lib/closein.h: Likewise.
49869         * lib/closeout.c: Likewise.
49870         * lib/closeout.h: Likewise.
49871         * lib/concat-filename.c: Likewise.
49872         * lib/copy-file.c: Likewise.
49873         * lib/copy-file.h: Likewise.
49874         * lib/count-one-bits.h: Likewise.
49875         * lib/crc.c: Likewise.
49876         * lib/crc.h: Likewise.
49877         * lib/creat-safer.c: Likewise.
49878         * lib/csharpcomp.c: Likewise.
49879         * lib/csharpcomp.h: Likewise.
49880         * lib/csharpexec.c: Likewise.
49881         * lib/csharpexec.h: Likewise.
49882         * lib/cycle-check.c: Likewise.
49883         * lib/cycle-check.h: Likewise.
49884         * lib/diacrit.c: Likewise.
49885         * lib/diacrit.h: Likewise.
49886         * lib/diffseq.h: Likewise.
49887         * lib/dirchownmod.c: Likewise.
49888         * lib/dirent.in.h: Likewise.
49889         * lib/dirfd.c: Likewise.
49890         * lib/dirfd.h: Likewise.
49891         * lib/dirname.c: Likewise.
49892         * lib/dirname.h: Likewise.
49893         * lib/dummy.c: Likewise.
49894         * lib/dup-safer.c: Likewise.
49895         * lib/dup2.c: Likewise.
49896         * lib/eealloc.h: Likewise.
49897         * lib/error.c: Likewise.
49898         * lib/error.h: Likewise.
49899         * lib/euidaccess.c: Likewise.
49900         * lib/exclude.c: Likewise.
49901         * lib/exclude.h: Likewise.
49902         * lib/execute.c: Likewise.
49903         * lib/execute.h: Likewise.
49904         * lib/exitfail.c: Likewise.
49905         * lib/exitfail.h: Likewise.
49906         * lib/expl.c: Likewise.
49907         * lib/fatal-signal.c: Likewise.
49908         * lib/fatal-signal.h: Likewise.
49909         * lib/fbufmode.c: Likewise.
49910         * lib/fbufmode.h: Likewise.
49911         * lib/fchdir.c: Likewise.
49912         * lib/fchmodat.c: Likewise.
49913         * lib/fchownat.c: Likewise.
49914         * lib/fcntl--.h: Likewise.
49915         * lib/fcntl-safer.h: Likewise.
49916         * lib/fcntl.in.h: Likewise.
49917         * lib/fd-safer.c: Likewise.
49918         * lib/fflush.c: Likewise.
49919         * lib/file-has-acl.c: Likewise.
49920         * lib/file-set.c: Likewise.
49921         * lib/file-type.c: Likewise.
49922         * lib/file-type.h: Likewise.
49923         * lib/fileblocks.c: Likewise.
49924         * lib/filemode.c: Likewise.
49925         * lib/filemode.h: Likewise.
49926         * lib/filename.h: Likewise.
49927         * lib/filenamecat.c: Likewise.
49928         * lib/filenamecat.h: Likewise.
49929         * lib/findprog.c: Likewise.
49930         * lib/findprog.h: Likewise.
49931         * lib/float.in.h: Likewise.
49932         * lib/floor.c: Likewise.
49933         * lib/floorf.c: Likewise.
49934         * lib/floorl.c: Likewise.
49935         * lib/fopen-safer.c: Likewise.
49936         * lib/fopen.c: Likewise.
49937         * lib/fpending.c: Likewise.
49938         * lib/fpending.h: Likewise.
49939         * lib/fprintf.c: Likewise.
49940         * lib/fprintftime.h: Likewise.
49941         * lib/fpucw.h: Likewise.
49942         * lib/fpurge.c: Likewise.
49943         * lib/fpurge.h: Likewise.
49944         * lib/freadable.c: Likewise.
49945         * lib/freadable.h: Likewise.
49946         * lib/freadahead.c: Likewise.
49947         * lib/freadahead.h: Likewise.
49948         * lib/freading.c: Likewise.
49949         * lib/freading.h: Likewise.
49950         * lib/free.c: Likewise.
49951         * lib/freopen.c: Likewise.
49952         * lib/frexp.c: Likewise.
49953         * lib/frexpl.c: Likewise.
49954         * lib/fseek.c: Likewise.
49955         * lib/fseterr.c: Likewise.
49956         * lib/fseterr.h: Likewise.
49957         * lib/fstatat.c: Likewise.
49958         * lib/fstrcmp.c: Likewise.
49959         * lib/fstrcmp.h: Likewise.
49960         * lib/fsusage.c: Likewise.
49961         * lib/fsusage.h: Likewise.
49962         * lib/ftell.c: Likewise.
49963         * lib/ftello.c: Likewise.
49964         * lib/fts-cycle.c: Likewise.
49965         * lib/fts.c: Likewise.
49966         * lib/fts_.h: Likewise.
49967         * lib/full-read.c: Likewise.
49968         * lib/full-read.h: Likewise.
49969         * lib/full-write.c: Likewise.
49970         * lib/full-write.h: Likewise.
49971         * lib/fwritable.c: Likewise.
49972         * lib/fwritable.h: Likewise.
49973         * lib/fwriteerror.c: Likewise.
49974         * lib/fwriteerror.h: Likewise.
49975         * lib/fwriting.c: Likewise.
49976         * lib/fwriting.h: Likewise.
49977         * lib/gcd.c: Likewise.
49978         * lib/gcd.h: Likewise.
49979         * lib/getcwd.c: Likewise.
49980         * lib/getdate.h: Likewise.
49981         * lib/getdate.y: Likewise.
49982         * lib/getdomainname.c: Likewise.
49983         * lib/getdomainname.h: Likewise.
49984         * lib/getgroups.c: Likewise.
49985         * lib/gethostname.c: Likewise.
49986         * lib/gethrxtime.c: Likewise.
49987         * lib/gethrxtime.h: Likewise.
49988         * lib/getloadavg.c: Likewise.
49989         * lib/getndelim2.c: Likewise.
49990         * lib/getndelim2.h: Likewise.
49991         * lib/getnline.c: Likewise.
49992         * lib/getnline.h: Likewise.
49993         * lib/getopt.c: Likewise.
49994         * lib/getopt.in.h: Likewise.
49995         * lib/getopt1.c: Likewise.
49996         * lib/getopt_int.h: Likewise.
49997         * lib/getpagesize.h: Likewise.
49998         * lib/getsubopt.c: Likewise.
49999         * lib/gettime.c: Likewise.
50000         * lib/getugroups.c: Likewise.
50001         * lib/getugroups.h: Likewise.
50002         * lib/getusershell.c: Likewise.
50003         * lib/gl_anyavltree_list1.h: Likewise.
50004         * lib/gl_anyavltree_list2.h: Likewise.
50005         * lib/gl_anyhash_list1.h: Likewise.
50006         * lib/gl_anyhash_list2.h: Likewise.
50007         * lib/gl_anylinked_list1.h: Likewise.
50008         * lib/gl_anylinked_list2.h: Likewise.
50009         * lib/gl_anyrbtree_list1.h: Likewise.
50010         * lib/gl_anyrbtree_list2.h: Likewise.
50011         * lib/gl_anytree_list1.h: Likewise.
50012         * lib/gl_anytree_list2.h: Likewise.
50013         * lib/gl_anytree_oset.h: Likewise.
50014         * lib/gl_anytreehash_list1.h: Likewise.
50015         * lib/gl_anytreehash_list2.h: Likewise.
50016         * lib/gl_array_list.c: Likewise.
50017         * lib/gl_array_list.h: Likewise.
50018         * lib/gl_array_oset.c: Likewise.
50019         * lib/gl_array_oset.h: Likewise.
50020         * lib/gl_avltree_list.c: Likewise.
50021         * lib/gl_avltree_list.h: Likewise.
50022         * lib/gl_avltree_oset.c: Likewise.
50023         * lib/gl_avltree_oset.h: Likewise.
50024         * lib/gl_avltreehash_list.c: Likewise.
50025         * lib/gl_avltreehash_list.h: Likewise.
50026         * lib/gl_carray_list.c: Likewise.
50027         * lib/gl_carray_list.h: Likewise.
50028         * lib/gl_linked_list.c: Likewise.
50029         * lib/gl_linked_list.h: Likewise.
50030         * lib/gl_linkedhash_list.c: Likewise.
50031         * lib/gl_linkedhash_list.h: Likewise.
50032         * lib/gl_list.c: Likewise.
50033         * lib/gl_list.h: Likewise.
50034         * lib/gl_oset.c: Likewise.
50035         * lib/gl_oset.h: Likewise.
50036         * lib/gl_rbtree_list.c: Likewise.
50037         * lib/gl_rbtree_list.h: Likewise.
50038         * lib/gl_rbtree_oset.c: Likewise.
50039         * lib/gl_rbtree_oset.h: Likewise.
50040         * lib/gl_rbtreehash_list.c: Likewise.
50041         * lib/gl_rbtreehash_list.h: Likewise.
50042         * lib/gl_sublist.c: Likewise.
50043         * lib/gl_sublist.h: Likewise.
50044         * lib/group-member.c: Likewise.
50045         * lib/group-member.h: Likewise.
50046         * lib/hard-locale.c: Likewise.
50047         * lib/hard-locale.h: Likewise.
50048         * lib/hash-pjw.c: Likewise.
50049         * lib/hash-pjw.h: Likewise.
50050         * lib/hash-triple.c: Likewise.
50051         * lib/hash.c: Likewise.
50052         * lib/hash.h: Likewise.
50053         * lib/human.c: Likewise.
50054         * lib/human.h: Likewise.
50055         * lib/i-ring.c: Likewise.
50056         * lib/i-ring.h: Likewise.
50057         * lib/idcache.c: Likewise.
50058         * lib/imaxabs.c: Likewise.
50059         * lib/imaxdiv.c: Likewise.
50060         * lib/inet_pton.c: Likewise.
50061         * lib/inet_pton.h: Likewise.
50062         * lib/intprops.h: Likewise.
50063         * lib/inttostr.c: Likewise.
50064         * lib/inttostr.h: Likewise.
50065         * lib/inttypes.in.h: Likewise.
50066         * lib/isapipe.c: Likewise.
50067         * lib/isdir.c: Likewise.
50068         * lib/isnan.c: Likewise.
50069         * lib/isnan.h: Likewise.
50070         * lib/isnanf.c: Likewise.
50071         * lib/isnanf.h: Likewise.
50072         * lib/isnanl-nolibm.h: Likewise.
50073         * lib/isnanl.c: Likewise.
50074         * lib/isnanl.h: Likewise.
50075         * lib/javacomp.c: Likewise.
50076         * lib/javacomp.h: Likewise.
50077         * lib/javaexec.c: Likewise.
50078         * lib/javaexec.h: Likewise.
50079         * lib/javaversion.c: Likewise.
50080         * lib/javaversion.h: Likewise.
50081         * lib/javaversion.java: Likewise.
50082         * lib/lbrkprop.h: Likewise.
50083         * lib/lchmod.h: Likewise.
50084         * lib/lchown.c: Likewise.
50085         * lib/ldexpl.c: Likewise.
50086         * lib/linebreak.c: Likewise.
50087         * lib/linebreak.h: Likewise.
50088         * lib/linebuffer.c: Likewise.
50089         * lib/linebuffer.h: Likewise.
50090         * lib/locale.in.h: Likewise.
50091         * lib/logl.c: Likewise.
50092         * lib/long-options.c: Likewise.
50093         * lib/long-options.h: Likewise.
50094         * lib/lstat.c: Likewise.
50095         * lib/lstat.h: Likewise.
50096         * lib/math.in.h: Likewise.
50097         * lib/mbchar.c: Likewise.
50098         * lib/mbchar.h: Likewise.
50099         * lib/mbfile.h: Likewise.
50100         * lib/mbiter.h: Likewise.
50101         * lib/mbscasecmp.c: Likewise.
50102         * lib/mbscasestr.c: Likewise.
50103         * lib/mbschr.c: Likewise.
50104         * lib/mbscspn.c: Likewise.
50105         * lib/mbslen.c: Likewise.
50106         * lib/mbsncasecmp.c: Likewise.
50107         * lib/mbsnlen.c: Likewise.
50108         * lib/mbspbrk.c: Likewise.
50109         * lib/mbspcasecmp.c: Likewise.
50110         * lib/mbsrchr.c: Likewise.
50111         * lib/mbssep.c: Likewise.
50112         * lib/mbsspn.c: Likewise.
50113         * lib/mbsstr.c: Likewise.
50114         * lib/mbstok_r.c: Likewise.
50115         * lib/mbswidth.c: Likewise.
50116         * lib/mbswidth.h: Likewise.
50117         * lib/mbuiter.h: Likewise.
50118         * lib/memcasecmp.c: Likewise.
50119         * lib/memcasecmp.h: Likewise.
50120         * lib/memchr.c: Likewise.
50121         * lib/memcmp.c: Likewise.
50122         * lib/memcoll.c: Likewise.
50123         * lib/memcoll.h: Likewise.
50124         * lib/memcpy.c: Likewise.
50125         * lib/memrchr.c: Likewise.
50126         * lib/mkancesdirs.c: Likewise.
50127         * lib/mkdir-p.c: Likewise.
50128         * lib/mkdir-p.h: Likewise.
50129         * lib/mkdir.c: Likewise.
50130         * lib/mkdirat.c: Likewise.
50131         * lib/mkdtemp.c: Likewise.
50132         * lib/mkstemp-safer.c: Likewise.
50133         * lib/mkstemp.c: Likewise.
50134         * lib/modechange.c: Likewise.
50135         * lib/modechange.h: Likewise.
50136         * lib/mountlist.c: Likewise.
50137         * lib/mountlist.h: Likewise.
50138         * lib/mpsort.c: Likewise.
50139         * lib/nanosleep.c: Likewise.
50140         * lib/obstack.c: Likewise.
50141         * lib/obstack.h: Likewise.
50142         * lib/open-safer.c: Likewise.
50143         * lib/open.c: Likewise.
50144         * lib/openat-die.c: Likewise.
50145         * lib/openat-priv.h: Likewise.
50146         * lib/openat-proc.c: Likewise.
50147         * lib/openat.c: Likewise.
50148         * lib/openat.h: Likewise.
50149         * lib/pagealign_alloc.c: Likewise.
50150         * lib/pagealign_alloc.h: Likewise.
50151         * lib/physmem.c: Likewise.
50152         * lib/physmem.h: Likewise.
50153         * lib/pipe-safer.c: Likewise.
50154         * lib/pipe.c: Likewise.
50155         * lib/pipe.h: Likewise.
50156         * lib/posixtm.c: Likewise.
50157         * lib/posixtm.h: Likewise.
50158         * lib/posixver.c: Likewise.
50159         * lib/printf-frexp.c: Likewise.
50160         * lib/printf-frexp.h: Likewise.
50161         * lib/printf-frexpl.c: Likewise.
50162         * lib/printf-frexpl.h: Likewise.
50163         * lib/printf.c: Likewise.
50164         * lib/progname.c: Likewise.
50165         * lib/progname.h: Likewise.
50166         * lib/progreloc.c: Likewise.
50167         * lib/putenv.c: Likewise.
50168         * lib/quote.c: Likewise.
50169         * lib/quote.h: Likewise.
50170         * lib/quotearg.c: Likewise.
50171         * lib/quotearg.h: Likewise.
50172         * lib/raise.c: Likewise.
50173         * lib/readline.c: Likewise.
50174         * lib/readline.h: Likewise.
50175         * lib/readlink.c: Likewise.
50176         * lib/readtokens.c: Likewise.
50177         * lib/readtokens.h: Likewise.
50178         * lib/readtokens0.c: Likewise.
50179         * lib/readtokens0.h: Likewise.
50180         * lib/readutmp.c: Likewise.
50181         * lib/readutmp.h: Likewise.
50182         * lib/realloc.c: Likewise.
50183         * lib/relocwrapper.c: Likewise.
50184         * lib/rename-dest-slash.c: Likewise.
50185         * lib/rename.c: Likewise.
50186         * lib/rmdir.c: Likewise.
50187         * lib/rpmatch.c: Likewise.
50188         * lib/safe-read.c: Likewise.
50189         * lib/safe-read.h: Likewise.
50190         * lib/safe-write.c: Likewise.
50191         * lib/safe-write.h: Likewise.
50192         * lib/same-inode.h: Likewise.
50193         * lib/same.c: Likewise.
50194         * lib/same.h: Likewise.
50195         * lib/save-cwd.c: Likewise.
50196         * lib/save-cwd.h: Likewise.
50197         * lib/savedir.c: Likewise.
50198         * lib/savedir.h: Likewise.
50199         * lib/savewd.c: Likewise.
50200         * lib/savewd.h: Likewise.
50201         * lib/search.in.h: Likewise.
50202         * lib/setenv.c: Likewise.
50203         * lib/setenv.h: Likewise.
50204         * lib/settime.c: Likewise.
50205         * lib/sh-quote.c: Likewise.
50206         * lib/sh-quote.h: Likewise.
50207         * lib/sig2str.c: Likewise.
50208         * lib/sig2str.h: Likewise.
50209         * lib/signal.in.h: Likewise.
50210         * lib/signbitd.c: Likewise.
50211         * lib/signbitf.c: Likewise.
50212         * lib/signbitl.c: Likewise.
50213         * lib/sigprocmask.c: Likewise.
50214         * lib/sincosl.c: Likewise.
50215         * lib/sleep.c: Likewise.
50216         * lib/sprintf.c: Likewise.
50217         * lib/sqrtl.c: Likewise.
50218         * lib/stat-time.h: Likewise.
50219         * lib/stdio--.h: Likewise.
50220         * lib/stdio-safer.h: Likewise.
50221         * lib/stdlib--.h: Likewise.
50222         * lib/stdlib-safer.h: Likewise.
50223         * lib/stdlib.in.h: Likewise.
50224         * lib/stpcpy.c: Likewise.
50225         * lib/stpncpy.c: Likewise.
50226         * lib/strchrnul.c: Likewise.
50227         * lib/strcspn.c: Likewise.
50228         * lib/strerror.c: Likewise.
50229         * lib/strftime.c: Likewise.
50230         * lib/strftime.h: Likewise.
50231         * lib/striconveh.c: Likewise.
50232         * lib/striconveh.h: Likewise.
50233         * lib/striconveha.c: Likewise.
50234         * lib/striconveha.h: Likewise.
50235         * lib/stripslash.c: Likewise.
50236         * lib/strnlen1.c: Likewise.
50237         * lib/strnlen1.h: Likewise.
50238         * lib/strtod.c: Likewise.
50239         * lib/strtoimax.c: Likewise.
50240         * lib/strtok_r.c: Likewise.
50241         * lib/strtol.c: Likewise.
50242         * lib/strtoll.c: Likewise.
50243         * lib/strtoul.c: Likewise.
50244         * lib/strtoull.c: Likewise.
50245         * lib/sysexits.in.h: Likewise.
50246         * lib/tempname.c: Likewise.
50247         * lib/tempname.h: Likewise.
50248         * lib/timespec.h: Likewise.
50249         * lib/tls.c: Likewise.
50250         * lib/tls.h: Likewise.
50251         * lib/tmpdir.c: Likewise.
50252         * lib/tmpdir.h: Likewise.
50253         * lib/tmpfile-safer.c: Likewise.
50254         * lib/tmpfile.c: Likewise.
50255         * lib/trigl.c: Likewise.
50256         * lib/trigl.h: Likewise.
50257         * lib/trim.c: Likewise.
50258         * lib/trim.h: Likewise.
50259         * lib/trunc.c: Likewise.
50260         * lib/truncf.c: Likewise.
50261         * lib/truncl.c: Likewise.
50262         * lib/tsearch.c: Likewise.
50263         * lib/unicodeio.c: Likewise.
50264         * lib/unicodeio.h: Likewise.
50265         * lib/unistd--.h: Likewise.
50266         * lib/unistd-safer.h: Likewise.
50267         * lib/unistdio/ulc-fprintf.c: Likewise.
50268         * lib/unistdio/ulc-vfprintf.c: Likewise.
50269         * lib/unlinkdir.c: Likewise.
50270         * lib/unlinkdir.h: Likewise.
50271         * lib/unlocked-io.h: Likewise.
50272         * lib/unsetenv.c: Likewise.
50273         * lib/userspec.c: Likewise.
50274         * lib/utime.c: Likewise.
50275         * lib/utimecmp.c: Likewise.
50276         * lib/utimecmp.h: Likewise.
50277         * lib/utimens.c: Likewise.
50278         * lib/verify.h: Likewise.
50279         * lib/verror.c: Likewise.
50280         * lib/verror.h: Likewise.
50281         * lib/version-etc-fsf.c: Likewise.
50282         * lib/version-etc.c: Likewise.
50283         * lib/version-etc.h: Likewise.
50284         * lib/vfprintf.c: Likewise.
50285         * lib/vprintf.c: Likewise.
50286         * lib/vsprintf.c: Likewise.
50287         * lib/w32spawn.h: Likewise.
50288         * lib/wait-process.c: Likewise.
50289         * lib/wait-process.h: Likewise.
50290         * lib/wcwidth.c: Likewise.
50291         * lib/write-any-file.c: Likewise.
50292         * lib/xalloc-die.c: Likewise.
50293         * lib/xalloc.h: Likewise.
50294         * lib/xasprintf.c: Likewise.
50295         * lib/xgetcwd.c: Likewise.
50296         * lib/xgetcwd.h: Likewise.
50297         * lib/xgetdomainname.c: Likewise.
50298         * lib/xgetdomainname.h: Likewise.
50299         * lib/xgethostname.c: Likewise.
50300         * lib/xmalloc.c: Likewise.
50301         * lib/xmalloca.c: Likewise.
50302         * lib/xmalloca.h: Likewise.
50303         * lib/xmemcoll.c: Likewise.
50304         * lib/xnanosleep.c: Likewise.
50305         * lib/xreadlink.c: Likewise.
50306         * lib/xreadlink.h: Likewise.
50307         * lib/xsetenv.c: Likewise.
50308         * lib/xsetenv.h: Likewise.
50309         * lib/xstriconv.c: Likewise.
50310         * lib/xstriconv.h: Likewise.
50311         * lib/xstrndup.c: Likewise.
50312         * lib/xstrndup.h: Likewise.
50313         * lib/xstrtod.c: Likewise.
50314         * lib/xstrtod.h: Likewise.
50315         * lib/xstrtol-error.c: Likewise.
50316         * lib/xstrtol.c: Likewise.
50317         * lib/xstrtol.h: Likewise.
50318         * lib/xtime.h: Likewise.
50319         * lib/xvasprintf.c: Likewise.
50320         * lib/xvasprintf.h: Likewise.
50321         * lib/yesno.c: Likewise.
50322         * lib/yesno.h: Likewise.
50323         * posix-modules: Likewise.
50324         * tests/test-alloca-opt.c: Likewise.
50325         * tests/test-arcfour.c: Likewise.
50326         * tests/test-arctwo.c: Likewise.
50327         * tests/test-argmatch.c: Likewise.
50328         * tests/test-argp-2.sh: Likewise.
50329         * tests/test-argp.c: Likewise.
50330         * tests/test-arpa_inet.c: Likewise.
50331         * tests/test-array_list.c: Likewise.
50332         * tests/test-array_oset.c: Likewise.
50333         * tests/test-atexit.c: Likewise.
50334         * tests/test-avltree_list.c: Likewise.
50335         * tests/test-avltree_oset.c: Likewise.
50336         * tests/test-avltreehash_list.c: Likewise.
50337         * tests/test-base64.c: Likewise.
50338         * tests/test-binary-io.c: Likewise.
50339         * tests/test-byteswap.c: Likewise.
50340         * tests/test-c-ctype.c: Likewise.
50341         * tests/test-c-strcasecmp.c: Likewise.
50342         * tests/test-c-strcasestr.c: Likewise.
50343         * tests/test-c-strncasecmp.c: Likewise.
50344         * tests/test-c-strstr.c: Likewise.
50345         * tests/test-canonicalize-lgpl.c: Likewise.
50346         * tests/test-canonicalize.c: Likewise.
50347         * tests/test-carray_list.c: Likewise.
50348         * tests/test-ceilf.c: Likewise.
50349         * tests/test-ceill.c: Likewise.
50350         * tests/test-count-one-bits.c: Likewise.
50351         * tests/test-crc.c: Likewise.
50352         * tests/test-dirname.c: Likewise.
50353         * tests/test-fbufmode.c: Likewise.
50354         * tests/test-fcntl.c: Likewise.
50355         * tests/test-fflush.c: Likewise.
50356         * tests/test-floorf.c: Likewise.
50357         * tests/test-floorl.c: Likewise.
50358         * tests/test-fopen.c: Likewise.
50359         * tests/test-fprintf-posix.c: Likewise.
50360         * tests/test-fprintf-posix.h: Likewise.
50361         * tests/test-fpurge.c: Likewise.
50362         * tests/test-freadable.c: Likewise.
50363         * tests/test-freadahead.c: Likewise.
50364         * tests/test-freading.c: Likewise.
50365         * tests/test-freopen.c: Likewise.
50366         * tests/test-frexp.c: Likewise.
50367         * tests/test-frexpl.c: Likewise.
50368         * tests/test-fseek.c: Likewise.
50369         * tests/test-fseeko.c: Likewise.
50370         * tests/test-fseterr.c: Likewise.
50371         * tests/test-fstrcmp.c: Likewise.
50372         * tests/test-ftell.c: Likewise.
50373         * tests/test-ftello.c: Likewise.
50374         * tests/test-fwritable.c: Likewise.
50375         * tests/test-fwriting.c: Likewise.
50376         * tests/test-getaddrinfo.c: Likewise.
50377         * tests/test-getpass.c: Likewise.
50378         * tests/test-gettimeofday.c: Likewise.
50379         * tests/test-hmac-md5.c: Likewise.
50380         * tests/test-hmac-sha1.c: Likewise.
50381         * tests/test-iconv.c: Likewise.
50382         * tests/test-iconvme.c: Likewise.
50383         * tests/test-inttypes.c: Likewise.
50384         * tests/test-isnan.c: Likewise.
50385         * tests/test-isnanf.c: Likewise.
50386         * tests/test-isnanl-nolibm.c: Likewise.
50387         * tests/test-isnanl.c: Likewise.
50388         * tests/test-isnanl.h: Likewise.
50389         * tests/test-ldexpl.c: Likewise.
50390         * tests/test-linked_list.c: Likewise.
50391         * tests/test-linkedhash_list.c: Likewise.
50392         * tests/test-locale.c: Likewise.
50393         * tests/test-localename.c: Likewise.
50394         * tests/test-lock.c: Likewise.
50395         * tests/test-lseek.c: Likewise.
50396         * tests/test-malloca.c: Likewise.
50397         * tests/test-math.c: Likewise.
50398         * tests/test-mbscasecmp.c: Likewise.
50399         * tests/test-mbscasestr1.c: Likewise.
50400         * tests/test-mbscasestr2.c: Likewise.
50401         * tests/test-mbscasestr3.c: Likewise.
50402         * tests/test-mbscasestr4.c: Likewise.
50403         * tests/test-mbschr.c: Likewise.
50404         * tests/test-mbscspn.c: Likewise.
50405         * tests/test-mbsncasecmp.c: Likewise.
50406         * tests/test-mbspbrk.c: Likewise.
50407         * tests/test-mbspcasecmp.c: Likewise.
50408         * tests/test-mbsrchr.c: Likewise.
50409         * tests/test-mbsspn.c: Likewise.
50410         * tests/test-mbsstr1.c: Likewise.
50411         * tests/test-mbsstr2.c: Likewise.
50412         * tests/test-mbsstr3.c: Likewise.
50413         * tests/test-md5.c: Likewise.
50414         * tests/test-memmem.c: Likewise.
50415         * tests/test-netinet_in.c: Likewise.
50416         * tests/test-open.c: Likewise.
50417         * tests/test-printf-frexp.c: Likewise.
50418         * tests/test-printf-frexpl.c: Likewise.
50419         * tests/test-printf-posix.c: Likewise.
50420         * tests/test-printf-posix.h: Likewise.
50421         * tests/test-rbtree_list.c: Likewise.
50422         * tests/test-rbtree_oset.c: Likewise.
50423         * tests/test-rbtreehash_list.c: Likewise.
50424         * tests/test-read-file.c: Likewise.
50425         * tests/test-rijndael.c: Likewise.
50426         * tests/test-search.c: Likewise.
50427         * tests/test-signbit.c: Likewise.
50428         * tests/test-sleep.c: Likewise.
50429         * tests/test-snprintf-posix.c: Likewise.
50430         * tests/test-snprintf-posix.h: Likewise.
50431         * tests/test-snprintf.c: Likewise.
50432         * tests/test-sprintf-posix.c: Likewise.
50433         * tests/test-sprintf-posix.h: Likewise.
50434         * tests/test-stat-time.c: Likewise.
50435         * tests/test-stdbool.c: Likewise.
50436         * tests/test-stdint.c: Likewise.
50437         * tests/test-stdio.c: Likewise.
50438         * tests/test-stdlib.c: Likewise.
50439         * tests/test-stpncpy.c: Likewise.
50440         * tests/test-strcasestr.c: Likewise.
50441         * tests/test-striconv.c: Likewise.
50442         * tests/test-striconveh.c: Likewise.
50443         * tests/test-striconveha.c: Likewise.
50444         * tests/test-string.c: Likewise.
50445         * tests/test-sys_select.c: Likewise.
50446         * tests/test-sys_socket.c: Likewise.
50447         * tests/test-sys_stat.c: Likewise.
50448         * tests/test-sys_time.c: Likewise.
50449         * tests/test-sysexits.c: Likewise.
50450         * tests/test-time.c: Likewise.
50451         * tests/test-tls.c: Likewise.
50452         * tests/test-trunc.c: Likewise.
50453         * tests/test-truncf.c: Likewise.
50454         * tests/test-truncl.c: Likewise.
50455         * tests/test-unistd.c: Likewise.
50456         * tests/test-vasnprintf-posix.c: Likewise.
50457         * tests/test-vasnprintf-posix2.c: Likewise.
50458         * tests/test-vasnprintf.c: Likewise.
50459         * tests/test-vasprintf-posix.c: Likewise.
50460         * tests/test-vasprintf.c: Likewise.
50461         * tests/test-verify.c: Likewise.
50462         * tests/test-vfprintf-posix.c: Likewise.
50463         * tests/test-vprintf-posix.c: Likewise.
50464         * tests/test-vsnprintf-posix.c: Likewise.
50465         * tests/test-vsnprintf.c: Likewise.
50466         * tests/test-vsprintf-posix.c: Likewise.
50467         * tests/test-wchar.c: Likewise.
50468         * tests/test-wctype.c: Likewise.
50469         * tests/test-wcwidth.c: Likewise.
50470         * tests/test-xstrtol.c: Likewise.
50471         * tests/test-xvasprintf.c: Likewise.
50472         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50473         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50474         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50475         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50476         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50477         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50478         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50479         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50480         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50481         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50482         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50483         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50484         * tests/uniname/test-uninames.c: Likewise.
50485         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50486         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50487         * tests/unistdio/test-u16-printf1.h: Likewise.
50488         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50489         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50490         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50491         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50492         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50493         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50494         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50495         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50496         * tests/unistdio/test-u32-printf1.h: Likewise.
50497         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50498         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50499         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50500         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50501         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50502         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50503         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50504         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50505         * tests/unistdio/test-u8-printf1.h: Likewise.
50506         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50507         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50508         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50509         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50510         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50511         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50512         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50513         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50514         * tests/unistdio/test-ulc-printf1.h: Likewise.
50515         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50516         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50517         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50518         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50519         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50520         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50521         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50522         * tests/uniwidth/test-u16-width.c: Likewise.
50523         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50524         * tests/uniwidth/test-u32-width.c: Likewise.
50525         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50526         * tests/uniwidth/test-u8-width.c: Likewise.
50527         * tests/uniwidth/test-uc_width.c: Likewise.
50528         * config/srclist-update: Likewise.
50529         (fixlicense): Update to GPLv3+.
50530
50531         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50532         * tests/test-tsearch.c: Change copyright notice.
50533
50534         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50535         * lib/c-strcaseeq.h: Change copyright notice.
50536         * lib/streq.h: Likewise.
50537         * lib/uniconv.h: Likewise.
50538         * lib/uniconv/u-conv-from-enc.h: Likewise.
50539         * lib/uniconv/u-conv-to-enc.h: Likewise.
50540         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50541         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50542         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50543         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50544         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50545         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50546         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50547         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50548         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50549         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50550         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50551         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50552         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50553         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50554         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50555         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50556         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50557         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50558         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50559         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50560         * lib/uniname.h: Likewise.
50561         * lib/uniname/uniname.c: Likewise.
50562         * lib/unistdio.h: Likewise.
50563         * lib/unistdio/u-asnprintf.h: Likewise.
50564         * lib/unistdio/u-asprintf.h: Likewise.
50565         * lib/unistdio/u-printf-args.c: Likewise.
50566         * lib/unistdio/u-printf-args.h: Likewise.
50567         * lib/unistdio/u-printf-parse.h: Likewise.
50568         * lib/unistdio/u-snprintf.h: Likewise.
50569         * lib/unistdio/u-sprintf.h: Likewise.
50570         * lib/unistdio/u-vasprintf.h: Likewise.
50571         * lib/unistdio/u-vsnprintf.h: Likewise.
50572         * lib/unistdio/u-vsprintf.h: Likewise.
50573         * lib/unistdio/u16-asnprintf.c: Likewise.
50574         * lib/unistdio/u16-asprintf.c: Likewise.
50575         * lib/unistdio/u16-printf-parse.c: Likewise.
50576         * lib/unistdio/u16-snprintf.c: Likewise.
50577         * lib/unistdio/u16-sprintf.c: Likewise.
50578         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50579         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50580         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50581         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50582         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50583         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50584         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50585         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50586         * lib/unistdio/u16-vasnprintf.c: Likewise.
50587         * lib/unistdio/u16-vasprintf.c: Likewise.
50588         * lib/unistdio/u16-vsnprintf.c: Likewise.
50589         * lib/unistdio/u16-vsprintf.c: Likewise.
50590         * lib/unistdio/u32-asnprintf.c: Likewise.
50591         * lib/unistdio/u32-asprintf.c: Likewise.
50592         * lib/unistdio/u32-printf-parse.c: Likewise.
50593         * lib/unistdio/u32-snprintf.c: Likewise.
50594         * lib/unistdio/u32-sprintf.c: Likewise.
50595         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50596         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50597         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50598         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50599         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50600         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50601         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50602         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50603         * lib/unistdio/u32-vasnprintf.c: Likewise.
50604         * lib/unistdio/u32-vasprintf.c: Likewise.
50605         * lib/unistdio/u32-vsnprintf.c: Likewise.
50606         * lib/unistdio/u32-vsprintf.c: Likewise.
50607         * lib/unistdio/u8-asnprintf.c: Likewise.
50608         * lib/unistdio/u8-asprintf.c: Likewise.
50609         * lib/unistdio/u8-printf-parse.c: Likewise.
50610         * lib/unistdio/u8-snprintf.c: Likewise.
50611         * lib/unistdio/u8-sprintf.c: Likewise.
50612         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50613         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50614         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50615         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50616         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50617         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50618         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50619         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50620         * lib/unistdio/u8-vasnprintf.c: Likewise.
50621         * lib/unistdio/u8-vasprintf.c: Likewise.
50622         * lib/unistdio/u8-vsnprintf.c: Likewise.
50623         * lib/unistdio/u8-vsprintf.c: Likewise.
50624         * lib/unistdio/ulc-asnprintf.c: Likewise.
50625         * lib/unistdio/ulc-asprintf.c: Likewise.
50626         * lib/unistdio/ulc-printf-parse.c: Likewise.
50627         * lib/unistdio/ulc-snprintf.c: Likewise.
50628         * lib/unistdio/ulc-sprintf.c: Likewise.
50629         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50630         * lib/unistdio/ulc-vasprintf.c: Likewise.
50631         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50632         * lib/unistdio/ulc-vsprintf.c: Likewise.
50633         * lib/unistr.h: Likewise.
50634         * lib/unistr/u-cpy-alloc.h: Likewise.
50635         * lib/unistr/u-cpy.h: Likewise.
50636         * lib/unistr/u-endswith.h: Likewise.
50637         * lib/unistr/u-move.h: Likewise.
50638         * lib/unistr/u-set.h: Likewise.
50639         * lib/unistr/u-startswith.h: Likewise.
50640         * lib/unistr/u-stpcpy.h: Likewise.
50641         * lib/unistr/u-stpncpy.h: Likewise.
50642         * lib/unistr/u-strcat.h: Likewise.
50643         * lib/unistr/u-strcpy.h: Likewise.
50644         * lib/unistr/u-strcspn.h: Likewise.
50645         * lib/unistr/u-strdup.h: Likewise.
50646         * lib/unistr/u-strlen.h: Likewise.
50647         * lib/unistr/u-strncat.h: Likewise.
50648         * lib/unistr/u-strncpy.h: Likewise.
50649         * lib/unistr/u-strnlen.h: Likewise.
50650         * lib/unistr/u-strpbrk.h: Likewise.
50651         * lib/unistr/u-strspn.h: Likewise.
50652         * lib/unistr/u-strstr.h: Likewise.
50653         * lib/unistr/u-strtok.h: Likewise.
50654         * lib/unistr/u16-check.c: Likewise.
50655         * lib/unistr/u16-chr.c: Likewise.
50656         * lib/unistr/u16-cmp.c: Likewise.
50657         * lib/unistr/u16-cpy-alloc.c: Likewise.
50658         * lib/unistr/u16-cpy.c: Likewise.
50659         * lib/unistr/u16-endswith.c: Likewise.
50660         * lib/unistr/u16-mblen.c: Likewise.
50661         * lib/unistr/u16-mbsnlen.c: Likewise.
50662         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50663         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50664         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50665         * lib/unistr/u16-mbtouc.c: Likewise.
50666         * lib/unistr/u16-mbtoucr.c: Likewise.
50667         * lib/unistr/u16-move.c: Likewise.
50668         * lib/unistr/u16-next.c: Likewise.
50669         * lib/unistr/u16-prev.c: Likewise.
50670         * lib/unistr/u16-set.c: Likewise.
50671         * lib/unistr/u16-startswith.c: Likewise.
50672         * lib/unistr/u16-stpcpy.c: Likewise.
50673         * lib/unistr/u16-stpncpy.c: Likewise.
50674         * lib/unistr/u16-strcat.c: Likewise.
50675         * lib/unistr/u16-strchr.c: Likewise.
50676         * lib/unistr/u16-strcmp.c: Likewise.
50677         * lib/unistr/u16-strcpy.c: Likewise.
50678         * lib/unistr/u16-strcspn.c: Likewise.
50679         * lib/unistr/u16-strdup.c: Likewise.
50680         * lib/unistr/u16-strlen.c: Likewise.
50681         * lib/unistr/u16-strmblen.c: Likewise.
50682         * lib/unistr/u16-strmbtouc.c: Likewise.
50683         * lib/unistr/u16-strncat.c: Likewise.
50684         * lib/unistr/u16-strncmp.c: Likewise.
50685         * lib/unistr/u16-strncpy.c: Likewise.
50686         * lib/unistr/u16-strnlen.c: Likewise.
50687         * lib/unistr/u16-strpbrk.c: Likewise.
50688         * lib/unistr/u16-strrchr.c: Likewise.
50689         * lib/unistr/u16-strspn.c: Likewise.
50690         * lib/unistr/u16-strstr.c: Likewise.
50691         * lib/unistr/u16-strtok.c: Likewise.
50692         * lib/unistr/u16-to-u32.c: Likewise.
50693         * lib/unistr/u16-to-u8.c: Likewise.
50694         * lib/unistr/u16-uctomb-aux.c: Likewise.
50695         * lib/unistr/u16-uctomb.c: Likewise.
50696         * lib/unistr/u32-check.c: Likewise.
50697         * lib/unistr/u32-chr.c: Likewise.
50698         * lib/unistr/u32-cmp.c: Likewise.
50699         * lib/unistr/u32-cpy-alloc.c: Likewise.
50700         * lib/unistr/u32-cpy.c: Likewise.
50701         * lib/unistr/u32-endswith.c: Likewise.
50702         * lib/unistr/u32-mblen.c: Likewise.
50703         * lib/unistr/u32-mbsnlen.c: Likewise.
50704         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50705         * lib/unistr/u32-mbtouc.c: Likewise.
50706         * lib/unistr/u32-mbtoucr.c: Likewise.
50707         * lib/unistr/u32-move.c: Likewise.
50708         * lib/unistr/u32-next.c: Likewise.
50709         * lib/unistr/u32-prev.c: Likewise.
50710         * lib/unistr/u32-set.c: Likewise.
50711         * lib/unistr/u32-startswith.c: Likewise.
50712         * lib/unistr/u32-stpcpy.c: Likewise.
50713         * lib/unistr/u32-stpncpy.c: Likewise.
50714         * lib/unistr/u32-strcat.c: Likewise.
50715         * lib/unistr/u32-strchr.c: Likewise.
50716         * lib/unistr/u32-strcmp.c: Likewise.
50717         * lib/unistr/u32-strcpy.c: Likewise.
50718         * lib/unistr/u32-strcspn.c: Likewise.
50719         * lib/unistr/u32-strdup.c: Likewise.
50720         * lib/unistr/u32-strlen.c: Likewise.
50721         * lib/unistr/u32-strmblen.c: Likewise.
50722         * lib/unistr/u32-strmbtouc.c: Likewise.
50723         * lib/unistr/u32-strncat.c: Likewise.
50724         * lib/unistr/u32-strncmp.c: Likewise.
50725         * lib/unistr/u32-strncpy.c: Likewise.
50726         * lib/unistr/u32-strnlen.c: Likewise.
50727         * lib/unistr/u32-strpbrk.c: Likewise.
50728         * lib/unistr/u32-strrchr.c: Likewise.
50729         * lib/unistr/u32-strspn.c: Likewise.
50730         * lib/unistr/u32-strstr.c: Likewise.
50731         * lib/unistr/u32-strtok.c: Likewise.
50732         * lib/unistr/u32-to-u16.c: Likewise.
50733         * lib/unistr/u32-to-u8.c: Likewise.
50734         * lib/unistr/u32-uctomb.c: Likewise.
50735         * lib/unistr/u8-check.c: Likewise.
50736         * lib/unistr/u8-chr.c: Likewise.
50737         * lib/unistr/u8-cmp.c: Likewise.
50738         * lib/unistr/u8-cpy-alloc.c: Likewise.
50739         * lib/unistr/u8-cpy.c: Likewise.
50740         * lib/unistr/u8-endswith.c: Likewise.
50741         * lib/unistr/u8-mblen.c: Likewise.
50742         * lib/unistr/u8-mbsnlen.c: Likewise.
50743         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50744         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50745         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50746         * lib/unistr/u8-mbtouc.c: Likewise.
50747         * lib/unistr/u8-mbtoucr.c: Likewise.
50748         * lib/unistr/u8-move.c: Likewise.
50749         * lib/unistr/u8-next.c: Likewise.
50750         * lib/unistr/u8-prev.c: Likewise.
50751         * lib/unistr/u8-set.c: Likewise.
50752         * lib/unistr/u8-startswith.c: Likewise.
50753         * lib/unistr/u8-stpcpy.c: Likewise.
50754         * lib/unistr/u8-stpncpy.c: Likewise.
50755         * lib/unistr/u8-strcat.c: Likewise.
50756         * lib/unistr/u8-strchr.c: Likewise.
50757         * lib/unistr/u8-strcmp.c: Likewise.
50758         * lib/unistr/u8-strcpy.c: Likewise.
50759         * lib/unistr/u8-strcspn.c: Likewise.
50760         * lib/unistr/u8-strdup.c: Likewise.
50761         * lib/unistr/u8-strlen.c: Likewise.
50762         * lib/unistr/u8-strmblen.c: Likewise.
50763         * lib/unistr/u8-strmbtouc.c: Likewise.
50764         * lib/unistr/u8-strncat.c: Likewise.
50765         * lib/unistr/u8-strncmp.c: Likewise.
50766         * lib/unistr/u8-strncpy.c: Likewise.
50767         * lib/unistr/u8-strnlen.c: Likewise.
50768         * lib/unistr/u8-strpbrk.c: Likewise.
50769         * lib/unistr/u8-strrchr.c: Likewise.
50770         * lib/unistr/u8-strspn.c: Likewise.
50771         * lib/unistr/u8-strstr.c: Likewise.
50772         * lib/unistr/u8-strtok.c: Likewise.
50773         * lib/unistr/u8-to-u16.c: Likewise.
50774         * lib/unistr/u8-to-u32.c: Likewise.
50775         * lib/unistr/u8-uctomb-aux.c: Likewise.
50776         * lib/unistr/u8-uctomb.c: Likewise.
50777         * lib/unitypes.h: Likewise.
50778         * lib/uniwidth.h: Likewise.
50779         * lib/uniwidth/cjk.h: Likewise.
50780         * lib/uniwidth/u16-strwidth.c: Likewise.
50781         * lib/uniwidth/u16-width.c: Likewise.
50782         * lib/uniwidth/u32-strwidth.c: Likewise.
50783         * lib/uniwidth/u32-width.c: Likewise.
50784         * lib/uniwidth/u8-strwidth.c: Likewise.
50785         * lib/uniwidth/u8-width.c: Likewise.
50786         * lib/uniwidth/width.c: Likewise.
50787
50788 2007-10-07  Bruno Haible  <bruno@clisp.org>
50789
50790         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
50791         The file is still under LGPL (see modules/inttypes).
50792
50793 2007-10-06  Bruno Haible  <bruno@clisp.org>
50794
50795         * modules/trunc (Dependencies): Add 'extensions'.
50796         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
50797         Reported by Ben Pfaff <blp@gnu.org>.
50798
50799 2007-10-06  Bruno Haible  <bruno@clisp.org>
50800
50801         * modules/freopen-tests: New file.
50802         * tests/test-freopen.c: New file.
50803
50804         * modules/fopen-tests: New file.
50805         * tests/test-fopen.c: New file.
50806
50807         * modules/fopen: New file.
50808         * lib/fopen.c: New file.
50809         * m4/fopen.m4: New file.
50810         * modules/freopen: New file.
50811         * lib/freopen.c: New file.
50812         * m4/freopen.m4: New file.
50813         * lib/stdio.in.h (fopen, freopen): New declarations.
50814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
50815         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50816         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
50817         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50818         * doc/functions/fopen.texi: Mention the 'fopen' module.
50819         * doc/functions/freopen.texi: Mention the 'freopen' module.
50820
50821 2007-10-06  Bruno Haible  <bruno@clisp.org>
50822
50823         * modules/open-tests: New file.
50824         * tests/test-open.c: New file.
50825
50826         * modules/open: New file.
50827         * lib/open.c: New file.
50828         * m4/open.m4: New file.
50829         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
50830         lib/open.c does.
50831         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
50832         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
50833         macros.
50834         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
50835         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
50836         REPLACE_OPEN.
50837         * doc/functions/open.texi: Mention the 'open' module.
50838
50839 2007-10-04  Bruno Haible  <bruno@clisp.org>
50840
50841         * modules/ceill-tests: New file.
50842         * tests/test-ceill.c: New file.
50843
50844         * modules/ceill: New file.
50845         * lib/ceill.c: Replace entire file.
50846         * m4/ceill.m4: New file.
50847         * lib/math.in.h (ceill): Replace declaration.
50848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
50849         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
50850         * doc/functions/ceill.texi: Mention the 'ceill' module.
50851         * modules/mathl (Files): Remove lib/ceill.c.
50852         (Depends-on): Add ceill.
50853
50854 2007-10-04  Bruno Haible  <bruno@clisp.org>
50855
50856         * modules/ceilf-tests: New file.
50857         * tests/test-ceilf.c: New file.
50858
50859         * modules/ceilf: New file.
50860         * lib/ceil.c: New file.
50861         * lib/ceilf.c: New file.
50862         * m4/ceilf.m4: New file.
50863         * lib/math.in.h (ceilf): New declaration.
50864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
50865         HAVE_DECL_CEILF.
50866         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
50867         HAVE_DECL_CEILF.
50868         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
50869
50870 2007-10-04  Bruno Haible  <bruno@clisp.org>
50871
50872         * modules/floorl-tests: New file.
50873         * tests/test-floorl.c: New file.
50874
50875         * modules/floorl: New file.
50876         * lib/floorl.c: Replace entire file.
50877         * m4/floorl.m4: New file.
50878         * lib/math.in.h (floorl): Replace declaration.
50879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
50880         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
50881         * doc/functions/floorl.texi: Mention the 'floorl' module.
50882         * modules/mathl (Files): Remove lib/floorl.c.
50883         (Depends-on): Add floorl.
50884
50885 2007-10-04  Bruno Haible  <bruno@clisp.org>
50886
50887         * modules/floorf-tests: New file.
50888         * tests/test-floorf.c: New file.
50889
50890         * modules/floorf: New file.
50891         * lib/floor.c: New file.
50892         * lib/floorf.c: New file.
50893         * m4/floorf.m4: New file.
50894         * lib/math.in.h (floorf): New declaration.
50895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
50896         HAVE_DECL_FLOORF.
50897         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
50898         HAVE_DECL_FLOORF.
50899         * doc/functions/floorf.texi: Mention the 'floorf' module.
50900
50901 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
50902             Bruno Haible  <bruno@clisp.org>
50903
50904         Advertise for the Git server instead of the CVS server.
50905         * doc/gnulib-intro.texi (Steady Development): Mention the Git
50906         repository instead of the CVS one.
50907         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
50908         about all VCS systems generically.
50909         * doc/gnulib.texi (Introduction): Capitalize `Git'.
50910
50911 2007-10-04  Bruno Haible  <bruno@clisp.org>
50912
50913         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
50914         means.
50915         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
50916
50917 2007-10-04  Bruno Haible  <bruno@clisp.org>
50918
50919         * modules/truncl-tests: New file.
50920         * tests/test-truncl.c: New file.
50921
50922         * modules/truncl: New file.
50923         * lib/truncl.c: New file.
50924         * m4/truncl.m4: New file.
50925         * lib/math.in.h (truncl): New declaration.
50926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
50927         HAVE_DECL_TRUNCL.
50928         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
50929         HAVE_DECL_TRUNCL.
50930         * doc/functions/truncl.texi: Mention the 'truncl' module.
50931
50932 2007-10-04  Bruno Haible  <bruno@clisp.org>
50933
50934         * modules/truncf-tests: New file.
50935         * tests/test-truncf.c: New file.
50936
50937         * modules/truncf: New file.
50938         * lib/trunc.c: Make paramerizable through USE_* macros.
50939         * lib/truncf.c: New file.
50940         * m4/truncf.m4: New file.
50941         * lib/math.in.h (truncf): New declaration.
50942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
50943         HAVE_DECL_TRUNCF.
50944         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
50945         HAVE_DECL_TRUNCF.
50946         * doc/functions/truncf.texi: Mention the 'truncf' module.
50947
50948 2007-10-03  Bruno Haible  <bruno@clisp.org>
50949
50950         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50951         augmentation also for tests modules.
50952         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
50953         * modules/atexit-tests (Makefile.am): Likewise.
50954         * modules/binary-io-tests (Makefile.am): Likewise.
50955         * modules/c-strcase-tests (Makefile.am): Likewise.
50956         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
50957         * modules/canonicalize-tests (Makefile.am): Likewise.
50958         * modules/closein-tests (Makefile.am): Likewise.
50959         * modules/fprintf-posix-tests (Makefile.am): Likewise.
50960         * modules/freadahead-tests (Makefile.am): Likewise.
50961         * modules/fseek-tests (Makefile.am): Likewise.
50962         * modules/fseeko-tests (Makefile.am): Likewise.
50963         * modules/ftell-tests (Makefile.am): Likewise.
50964         * modules/ftello-tests (Makefile.am): Likewise.
50965         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
50966         * modules/isnanl-tests (Makefile.am): Likewise.
50967         * modules/lseek-tests (Makefile.am): Likewise.
50968         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50969         * modules/mbscasestr-tests (Makefile.am): Likewise.
50970         * modules/mbschr-tests (Makefile.am): Likewise.
50971         * modules/mbscspn-tests (Makefile.am): Likewise.
50972         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50973         * modules/mbspbrk-tests (Makefile.am): Likewise.
50974         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50975         * modules/mbsrchr-tests (Makefile.am): Likewise.
50976         * modules/mbsspn-tests (Makefile.am): Likewise.
50977         * modules/mbsstr-tests (Makefile.am): Likewise.
50978         * modules/printf-posix-tests (Makefile.am): Likewise.
50979         * modules/snprintf-posix-tests (Makefile.am): Likewise.
50980         * modules/sprintf-posix-tests (Makefile.am): Likewise.
50981         * modules/tsearch-tests (Makefile.am): Likewise.
50982         * modules/uniname/uniname-tests (Makefile.am): Likewise.
50983         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
50984         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
50985         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
50986         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
50987         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
50988         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
50989         * modules/vprintf-posix-tests (Makefile.am): Likewise.
50990         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
50991         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
50992         * modules/xstrtoimax-tests (Makefile.am): Likewise.
50993         * modules/xstrtol-tests (Makefile.am): Likewise.
50994         * modules/xstrtoumax-tests (Makefile.am): Likewise.
50995         * modules/yesno-tests (Makefile.am): Likewise.
50996
50997 2007-10-03  Bruno Haible  <bruno@clisp.org>
50998
50999         * modules/trunc-tests: New file.
51000         * tests/test-trunc.c: New file.
51001
51002         * modules/trunc: New file.
51003         * lib/trunc.c: New file.
51004         * m4/trunc.m4: New file.
51005         * lib/math.in.h (trunc): New declaration.
51006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
51007         HAVE_DECL_TRUNC.
51008         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
51009         HAVE_DECL_TRUNC.
51010         * doc/functions/trunc.texi: Mention the 'trunc' module.
51011
51012 2007-10-03  Bruno Haible  <bruno@clisp.org>
51013
51014         * tests/test-fpending.c: New file, mostly copied
51015         from coreutils/lib/t-fpending.c.
51016         * modules/fpending-tests: New file.
51017
51018 2007-10-03  Bruno Haible  <bruno@clisp.org>
51019
51020         Port the stdio extensions to QNX (untested).
51021         * lib/fseterr.c (fseterr): Add support for QNX.
51022         * lib/fbufmode.c (fbufmode): Likewise.
51023         * lib/freadable.c (freadable): Likewise.
51024         * lib/fwritable.c (fwritable): Likewise.
51025         * lib/freading.c (freading): Likewise.
51026         * lib/fwriting.c (fwriting): Likewise.
51027         * lib/freadahead.c (freadahed): Likewise.
51028         * lib/fpurge.c (fpurge): Likewise.
51029         * lib/fseeko.c (rpl_fseeko): Likewise.
51030
51031 2007-10-03  Bruno Haible  <bruno@clisp.org>
51032             Jim Meyering  <jim@meyering.net>
51033             Eric Blake  <ebb9@byu.net>
51034
51035         * doc/relocatable.texi: Use @command instead of @program.
51036
51037 2007-10-02  Jim Meyering  <jim@meyering.net>
51038
51039         Perform one more "_.h" -> ".in.h" substitution.
51040         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
51041         instead of unistd_.h here, too.
51042
51043 2007-10-01  Bruno Haible  <bruno@clisp.org>
51044
51045         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
51046         Needed for the alloca-opt module.
51047
51048 2007-09-30  Bruno Haible  <bruno@clisp.org>
51049
51050         * lib/alloca.in.h: Renamed from lib/alloca_.h.
51051         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
51052         alloca_.h.
51053         * lib/argz.in.h: Renamed from lib/argz_.h.
51054         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
51055         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
51056         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
51057         byteswap_.h.
51058         * lib/dirent.in.h: Renamed from lib/dirent_.h.
51059         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
51060         dirent_.h.
51061         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
51062         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
51063         fcntl_.h.
51064         * lib/float.in.h: Renamed from lib/float_.h.
51065         * modules/float (Files, Makefile.am): Use float.in.h instead of
51066         float_.h.
51067         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51068         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
51069         fnmatch_.h.
51070         * lib/getopt.in.h: Renamed from lib/getopt_.h.
51071         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
51072         getopt_.h.
51073         * lib/glob.in.h: Renamed from lib/glob_.h.
51074         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
51075         * lib/iconv.in.h: Renamed from lib/iconv_.h.
51076         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
51077         iconv_.h.
51078         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
51079         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
51080         inttypes_.h.
51081         * lib/locale.in.h: Renamed from lib/locale_.h.
51082         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
51083         locale_.h.
51084         * lib/math.in.h: Renamed from lib/math_.h.
51085         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
51086         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
51087         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
51088         of netinet_in_.h. Add dependency.
51089         * lib/poll.in.h: Renamed from lib/poll_.h.
51090         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
51091         * lib/search.in.h: Renamed from lib/search_.h.
51092         * modules/search (Files, Makefile.am): Use search.in.h instead of
51093         search_.h.
51094         * lib/signal.in.h: Renamed from lib/signal_.h.
51095         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
51096         _signal.h.
51097         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
51098         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
51099         stdbool_.h.
51100         * lib/stdint.in.h: Renamed from lib/stdint_.h.
51101         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
51102         stdint_.h.
51103         * lib/stdio.in.h: Renamed from lib/stdio_.h.
51104         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
51105         stdio_.h.
51106         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
51107         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
51108         stdlib_.h.
51109         * lib/string.in.h: Renamed from lib/string_.h.
51110         * modules/string (Files, Makefile.am): Use string.in.h instead of
51111         string_.h.
51112         * doc/gnulib-tool.texi (Initial import): Update.
51113         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
51114         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
51115         of sys_select_.h. Add dependency.
51116         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
51117         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
51118         of sys_socket_.h.
51119         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
51120         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
51121         sys_stat_.h.
51122         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
51123         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
51124         sys_time_.h.
51125         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
51126         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
51127         sysexits_.h.
51128         * lib/time.in.h: Renamed from lib/time_.h.
51129         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
51130         * lib/unistd.in.h: Renamed from lib/unistd_.h.
51131         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
51132         unistd_.h.
51133         * lib/wchar.in.h: Renamed from lib/wchar_.h.
51134         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
51135         wchar_.h.
51136         * lib/wctype.in.h: Renamed from lib/wctype_.h.
51137         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
51138         wctype_.h.
51139         * build-aux/bootstrap (slurp): Update.
51140         * lib/.cppi-disable: Update.
51141
51142 2007-09-30  Bruno Haible  <bruno@clisp.org>
51143
51144         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
51145         Needed on BeOS.
51146
51147 2007-09-30  Bruno Haible  <bruno@clisp.org>
51148
51149         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
51150
51151 2007-09-29  Bruno Haible  <bruno@clisp.org>
51152
51153         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
51154
51155 2007-09-29  Bruno Haible  <bruno@clisp.org>
51156
51157         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
51158         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
51159         * build-aux/install-reloc: Compile also areadlink.c.
51160         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
51161
51162 2007-09-29  Bruno Haible  <bruno@clisp.org>
51163
51164         * gnulib-tool (func_emit_initmacro_done): Indentation.
51165
51166 2007-09-29  Bruno Haible  <bruno@clisp.org>
51167
51168         * README: Add CVS checkout update instructions.
51169         Info from Bob Proulx <bob@proulx.com>.
51170
51171 2007-09-28  Eric Blake  <ebb9@byu.net>
51172
51173         Provide move-if-change.
51174         * build-aux/move-if-change: New file, based on best practice
51175         rather than any canonical upstream location.
51176
51177 2007-09-28  Jim Meyering  <jim@meyering.net>
51178
51179         Fix canonicalize loop-detection corner case.
51180         Do not attempt to stat the symlink values stored via seen_triple.
51181         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
51182         on linux-2.6.18, (but not 2.6.22).
51183         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
51184         triple_compare.  The former compares dev,ino,filename, while the latter
51185         would actually stat dirname(filename) when dev and ino were equal.
51186         * lib/hash-triple.c: Install <string.h>.
51187         (STREQ): Define.
51188         (triple_compare_ino_str): New function.
51189         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
51190
51191 2007-09-28  Eric Blake  <ebb9@byu.net>
51192
51193         Enforce that AC_REPLACE_FUNCS files exist.
51194         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
51195         override check for typos.
51196
51197         Fix test-closein on Solaris 10.
51198         * tests/test-closein.c (main): Don't assume stdin can be inherited
51199         closed on all systems.
51200         * tests/test-closein.sh: Likewise.
51201         Reported by Piotr Tarnowski.
51202
51203 2007-09-28  Jim Meyering  <jim@meyering.net>
51204
51205         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
51206
51207 2007-09-27  Jim Meyering  <jim@meyering.net>
51208
51209         canonicalize: Avoid a false-positive cycle failure.
51210         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51211         Sort.  Remove cycle-check.
51212         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51213         not cycle-check.h.
51214         (seen_triple): New function.
51215         (canonicalize_filename_mode): Use it instead of cycle-check.
51216         * tests/test-canonicalize.c: Add a test for this bug.
51217         * tests/test-canonicalize.sh: Set up and run the test.
51218
51219         New module, file-set, from coreutils.
51220         * modules/file-set: Define it.
51221         * lib/file-set.c, lib/file-set.h: Implement.
51222
51223         New module, hash-triple, from coreutils.
51224         * modules/hash-triple: Define it.
51225         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51226
51227 2007-09-25  Eric Blake  <ebb9@byu.net>
51228
51229         Fix strerror on Interix.
51230         * lib/string_.h (strerror): Declare replacement.
51231         * doc/functions/strerror.texi (strerror): Document the Interix
51232         shortcoming.
51233         * modules/string (Makefile.am): Support new hooks.
51234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51235         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51236         gl_FUNC_STRERROR_SEPARATE.
51237         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51238         * lib/strerror.c (rpl_strerror): Provide replacement.
51239         * modules/strerror (Depends-on): Add string.
51240         (configure.ac): Detect use of module.
51241         * tests/test-strerror.c: New file.
51242         * modules/strerror-tests: New test module.
51243         * modules/argp (Depends-on): Add strerror.
51244         * modules/error (Depends-on): Likewise.
51245         Reported by Martin Koeppe.
51246
51247 2007-09-24  Bruno Haible  <bruno@clisp.org>
51248
51249         * README: Update git instructions.
51250
51251 2007-09-24  Eric Blake  <ebb9@byu.net>
51252
51253         Revert fpending breakage from 2007-09-08.
51254         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51255         __fpending.c.
51256
51257 2007-09-24  Jim Meyering  <jim@meyering.net>
51258
51259         filenamecat.c: Add a test.
51260         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51261         showing how the function works when DIR is the empty string.
51262
51263 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51264
51265         * tests/test-canonicalize.sh: Turn on executable bit.
51266
51267 2007-09-19  Eric Blake  <ebb9@byu.net>
51268
51269         * README: Update CVS instructions.
51270
51271 2007-09-18  Bruno Haible  <bruno@clisp.org>
51272
51273         * modules/areadlink: New file.
51274         * lib/areadlink.h (areadlink): New declaration.
51275         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51276
51277 2007-09-17  Jim Meyering  <jim@meyering.net>
51278
51279         * lib/savewd.c (ESTALE) [!defined]: Define.
51280         Reported to be required on Interix by Martin Koeppe.
51281
51282 2007-09-17  Bruno Haible  <bruno@clisp.org>
51283
51284         * gnulib-tool (func_version): Use $version.
51285
51286 2007-09-16  Bruno Haible  <bruno@clisp.org>
51287
51288         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51289         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51290         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51291         Reported by Greg Schafer <gschafer@zip.com.au>.
51292
51293 2007-09-15  Bruno Haible  <bruno@clisp.org>
51294
51295         * gnulib-tool (sed): Try a little harder to make bash understand the
51296         alias.
51297         Reported by Bruce Korb <bruce.korb@gmail.com>.
51298
51299 2007-09-13  Eric Blake  <ebb9@byu.net>
51300
51301         * ChangeLog: Remove conflict markers.
51302
51303 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51304
51305         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51306         Reported by Bruno Haible <bruno@clisp.org>.
51307
51308 2007-09-12  Bruno Haible  <bruno@clisp.org>
51309
51310         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51311         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51312         is not defined.
51313
51314 2007-09-12  Eric Blake  <ebb9@byu.net>
51315
51316         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51317         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51318         Autoconf definition.
51319         * modules/euidaccess (Depends-on): Add extensions, for
51320         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51321         * modules/fnmatch (Depends-on): Likewise.
51322         * modules/getaddrinfo (Depends-on): Likewise.
51323         * modules/getdelim (Depends-on): Likewise.
51324         * modules/getline (Depends-on): Likewise.
51325         * modules/getsubopt (Depends-on): Likewise.
51326         * modules/gettext (Depends-on): Likewise.
51327         * modules/group-member (Depends-on): Likewise.
51328         * modules/mbchar (Depends-on): Likewise.
51329         * modules/memmem (Depends-on): Likewise.
51330         * modules/mempcpy (Depends-on): Likewise.
51331         * modules/memrchr (Depends-on): Likewise.
51332         * modules/pagealign_alloc (Depends-on): Likewise.
51333         * modules/readutmp (Depends-on): Likewise.
51334         * modules/stpcpy (Depends-on): Likewise.
51335         * modules/stpncpy (Depends-on): Likewise.
51336         * modules/strchrnul (Depends-on): Likewise.
51337         * modules/strndup (Depends-on): Likewise.
51338         * modules/strsep (Depends-on): Likewise.
51339         * modules/strverscmp (Depends-on): Likewise.
51340         * modules/vasprintf (Depends-on): Likewise.
51341         * modules/wcwidth (Depends-on): Likewise.
51342         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51343         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51344         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51345         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51346         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51347         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51348         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51349         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51350         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51351         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51352         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51353         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51354         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51355         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51356         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51357         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51358         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51359         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51360         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51361         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51362         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51363         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51364         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51365         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51366         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51368         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51369         so that lock.m4 can be used in gettext without extensions module.
51370
51371 2007-09-11  Bruno Haible  <bruno@clisp.org>
51372
51373         * m4/isc-posix.m4: Remove file.
51374         Suggested by Eric Blake.
51375
51376 2007-09-11  Eric Blake  <ebb9@byu.net>
51377
51378         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51379
51380 2007-09-10  Bruno Haible  <bruno@clisp.org>
51381
51382         * posix-modules: Fix typo in error message.
51383         Reported by Matt <mkraai@beckman.com>.
51384
51385 2007-09-09  Bruno Haible  <bruno@clisp.org>
51386
51387         * doc/functions/getdelim.texi: Update list of platforms lacking the
51388         function.
51389         * doc/functions/getline.texi: Likewise.
51390
51391 2007-09-09  Jim Meyering  <jim@meyering.net>
51392
51393         * lib/hash.c (hash_initialize): Detect calloc failure.
51394         Reported by Bruno Haible.
51395
51396 2007-09-09  Bruno Haible  <bruno@clisp.org>
51397
51398         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51399         malloc or realloc fails.
51400
51401 2007-09-09  Bruno Haible  <bruno@clisp.org>
51402
51403         * modules/getcwd (Depends-on): Add malloc-posix.
51404         * modules/glob (Depends-on): Likewise.
51405         * modules/putenv (Depends-on): Likewise.
51406         * modules/strdup (Depends-on): Likewise.
51407         * modules/getdelim (Depends-on): Add realloc-posix.
51408         * modules/read-file (Depends-on): Likewise.
51409
51410 2007-09-09  Bruno Haible  <bruno@clisp.org>
51411
51412         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51413         (gl_FUNC_MALLOC_POSIX): Require it.
51414         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51415         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51416         * modules/realloc (Files): Add m4/malloc.m4.
51417         * modules/calloc (Files): Likewise.
51418
51419 2007-09-09  Bruno Haible  <bruno@clisp.org>
51420
51421         * modules/malloc-posix: New file.
51422         * modules/malloc (Depends-on): Add malloc-posix.
51423         * lib/malloc.c: Include errno.h.
51424         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51425         and a POSIX-compatible malloc into a single function. Set ENOMEM
51426         when returning NULL.
51427         * m4/malloc.m4: New file.
51428         * doc/functions/malloc.texi: Mention the malloc-posix module.
51429         * lib/stdlib_.h (malloc): New declaration.
51430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51431         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51432         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51433         and HAVE_MALLOC_POSIX.
51434
51435 2007-09-09  Bruno Haible  <bruno@clisp.org>
51436
51437         * modules/realloc-posix: New file.
51438         * modules/realloc (Depends-on): Add realloc-posix.
51439         * lib/realloc.c: Include errno.h.
51440         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51441         and a POSIX-compatible realloc into a single function. Set ENOMEM
51442         when returning NULL.
51443         * m4/realloc.m4: New file.
51444         * doc/functions/realloc.texi: Mention the realloc-posix module.
51445         * lib/stdlib_.h (realloc): New declaration.
51446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51447         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51448         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51449         and HAVE_REALLOC_POSIX.
51450
51451 2007-09-09  Bruno Haible  <bruno@clisp.org>
51452
51453         * modules/calloc-posix: New file.
51454         * modules/calloc (Depends-on): Add calloc-posix.
51455         * lib/calloc.c: Include errno.h.
51456         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51457         and a POSIX-compatible calloc into a single function. Set ENOMEM
51458         when returning NULL.
51459         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51460         * doc/functions/calloc.texi: Mention the calloc-posix module.
51461         * lib/stdlib_.h (calloc): New declaration.
51462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51463         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51464         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51465         and HAVE_CALLOC_POSIX.
51466
51467 2007-09-09  Bruno Haible  <bruno@clisp.org>
51468
51469         Allow for modules to show an arbitrary notice.
51470         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51471         * gnulib-tool: New option --extract-notice.
51472         (func_usage): Document it.
51473         (sed_extract_prog): Update.
51474         (func_get_notice): New function.
51475         (func_modules_notice): New function.
51476         (func_import, func_create_testdir): Invoke it.
51477         Suggested by Jim Meyering.
51478
51479 2007-09-09  Bruno Haible  <bruno@clisp.org>
51480
51481         * gnulib-tool: New options --verbose, --quiet.
51482         (func_usage): Document them.
51483         (verbose): New variable.
51484         (func_execute_command): New function.
51485         (func_import): Don't show the module list and the file list if
51486         $verbose < 0.
51487         (func_create_testdir): Likewise. Use func_execute_command.
51488         (func_create_megatestdir): Use func_execute_command.
51489
51490 2007-09-08  Bruno Haible  <bruno@clisp.org>
51491
51492         * gnulib-tool (func_import): Prefer rsync over wget when available,
51493         for fetching the PO files.
51494
51495 2007-09-08  Bruno Haible  <bruno@clisp.org>
51496
51497         * posix-modules: New file. Portions copied from gnulib-tool.
51498         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51499
51500 2007-09-08  Jim Meyering  <jim@meyering.net>
51501
51502         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51503         * lib/fpending.h: Rename from __fpending.h.
51504         * lib/fpending.c: Rename from __fpending.c.
51505         Include "fpending.h", not "__fpending.h".
51506         * lib/__fpending.h, lib/__fpending.c: Remove files.
51507         * modules/fpending (Files): Reflect new file names.
51508         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51509
51510 2007-09-08  Bruno Haible  <bruno@clisp.org>
51511
51512         * m4/inttypes-h.m4: Remove stub file.
51513
51514 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51515
51516         * doc/headers/stdint.texi: Discuss #include_next issue.
51517
51518 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51519
51520         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51521
51522 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51523
51524         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51525         in variable name.
51526
51527 2007-09-03  Jim Meyering  <jim@meyering.net>
51528
51529         New module: git-version-gen.
51530         * modules/git-version-gen: New file.
51531
51532         Import changes from coreutils for bootstrap script.
51533
51534         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51535
51536         bootstrap: uses rsync to download the .po files
51537         * build-aux/bootstrap (po_download_command_format): New global.
51538         (download_po_files): Use rsync.
51539         (update_po_files): Don't remove .po files after download,
51540         so future rsync runs can take advantage of the copies.
51541
51542         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51543
51544         Solve the unnecessary-.po-file-regeneration problem once and for all.
51545         * build-aux/bootstrap (download_po_files): New function, renamed from
51546         get_translations.  Now, downloads, but doesn't update LINGUAS.
51547         (update_po_files): New function.
51548
51549         bootstrap: Ignore more.
51550         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51551         uniwidth to e.g., lib/.gitignore.
51552         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51553
51554         * build-aux/bootstrap: New setting: vc_ignore.
51555         (insert_sorted_if_absent): Create $file if absent.
51556         Adapt to new, possibly empty, list: $vc_ignore.
51557
51558         bootstrap: generate more ignorable names
51559         * build-aux/bootstrap (slurp): When generating ignorable names,
51560         also map .sin to .sed, .gperf to .c, and .y to .c.
51561
51562 2007-09-03  Jim Meyering  <jim@meyering.net>
51563
51564         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51565         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51566
51567 2007-09-02  Bruno Haible  <bruno@clisp.org>
51568
51569         Fix mis-recognition of 'mcs' on QNX 6.
51570         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51571         output contains the string "Mono".
51572         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51573         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51574
51575 2007-09-01  Bruno Haible  <bruno@clisp.org>
51576
51577         Fix collision between uniwidth/* and linebreak modules.
51578         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51579         u32_width): Remove declarations.
51580         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51581         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51582         streq3, streq2, streq1, streq0): Remove functions.
51583         (STREQ): Remove macro.
51584         (is_cjk_encoding): Remove function.
51585         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51586         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51587         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51588         * NEWS: Document the change.
51589
51590 2007-09-01  Bruno Haible  <bruno@clisp.org>
51591
51592         * lib/streq.h: Add double-inclusion guard.
51593
51594 2007-09-01  Karl Berry  <karl@gnu.org>
51595
51596         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51597
51598 2007-08-28  Jim Meyering  <jim@meyering.net>
51599
51600         Rename mreadlink_with_size to areadlink_with_size.
51601         * NEWS: Document the change.
51602         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51603         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51604         * lib/mreadlink.h: Rename this to...
51605         * lib/areadlink.h: ...this.
51606         * modules/mreadlink-with-size: Rename this to...
51607         * modules/areadlink-with-size: ...this.
51608         * lib/canonicalize.c: Reflect the renaming.
51609         * modules/canonicalize: Likewise.
51610
51611 2007-08-26  Bruno Haible  <bruno@clisp.org>
51612
51613         * gnulib-tool (func_import): When deciding which files to remove,
51614         consider also dangling symbolic links.
51615         Reported by Eric Blake.
51616
51617 2007-08-26  Bruno Haible  <bruno@clisp.org>
51618
51619         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51620
51621 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51622
51623         * lib/readline.c: Don't include getline.h, the prototype is now
51624         found in stdio.h.
51625
51626 2007-08-23  Jim Meyering  <jim@meyering.net>
51627
51628         Getdelim touchup.
51629         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51630         around the funlockfile call, since funlockfile never sets errno.
51631         Don't set errno upon failed realloc.
51632
51633 2007-08-22  Eric Blake  <ebb9@byu.net>
51634
51635         Getline touchups.
51636         * lib/getdelim.c (getdelim): Revert regression that required *n to
51637         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51638         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51639         getdelim, rather than whether implementation is missing.
51640         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51641         * lib/stdio_.h (getline): Also declare if replacement is
51642         required.
51643         * doc/functions/getdelim.texi: New file.
51644         * doc/functions/getline.texi: Likewise.
51645         * doc/gnulib.texi (Function Substitutes): Add new files.
51646         Reported by Bruno Haible.
51647
51648 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51649
51650         * users.txt: Add Guile.
51651
51652 2007-08-22  Eric Blake  <ebb9@byu.net>
51653
51654         * tests/test-getdelim.c (main): Use remove, not unlink.
51655         * tests/test-getline.c (main): Likewise.
51656
51657         Move getline and getdelim into stdio.h, per POSIX 200x.
51658         * modules/getline (Files): Remove getline.h.
51659         (Depends-on): Add stdio.
51660         (configure.ac): Add module indicator.
51661         * modules/getdelim (Files): Remove getdelim.h.
51662         (Depends-on): Add stdio.
51663         (configure.ac): Add module indicator.
51664         * modules/stdio (Makefile.am): Work with new indicators.
51665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51666         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51667         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51668         * lib/getdelim.h: Delete.
51669         * lib/getline.h: Delete.
51670         * lib/stdio_.h (getdelim, getline): Declare.
51671         * modules/getdelim-tests: New module.
51672         * modules/getline-tests: Likewise.
51673         * tests/test-getdelim.c: New file.
51674         * tests/test-getline.c: Likewise.
51675         * NEWS: Document the change.
51676         * lib/getline.c: Update choice of header.
51677         * lib/csharpcomp.c: Likewise.
51678         * lib/getpass.c: Likewise.
51679         * lib/javacomp.c: Likewise.
51680         * lib/javaversion.c: Likewise.
51681         * lib/yesno.c: Likewise.
51682         * lib/getdelim.c: Likewise.
51683         (getdelim): Set errno on failure, and avoid memory leak.
51684
51685 2007-08-19  Bruno Haible  <bruno@clisp.org>
51686
51687         * modules/closein (Depends-on): Add freadahead.
51688         * lib/closein.c: Include freadahead.h.
51689         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51690         is zero.
51691
51692 2007-08-19  Bruno Haible  <bruno@clisp.org>
51693
51694         * modules/freadahead-tests: New file.
51695         * tests/test-freadahead.sh: New file.
51696         * tests/test-freadahead.c: New file.
51697
51698         * modules/freadahead: New file.
51699         * lib/freadahead.h: New file.
51700         * lib/freadahead.c: New file.
51701         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51702         fbufmode, fpurge, freadable, fwritable.
51703
51704 2007-08-19  Eric Blake  <ebb9@byu.net>
51705
51706         Test yesno in combination with closein.
51707         * lib/yesno.c (yesno): Document use of stdin.
51708         * modules/yesno-tests (Files): New module.
51709         * tests/test-yesno.c (main): New file.
51710         * tests/test-yesno.sh: Likewise.
51711
51712 2007-08-19  Bruno Haible  <bruno@clisp.org>
51713
51714         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51715         * lib/fseeko.c (rpl_fseeko): Likewise.
51716         * lib/fseterr.c (fseterr): Likewise.
51717
51718 2007-08-19  Bruno Haible  <bruno@clisp.org>
51719
51720         * tests/test-lseek.c (main): Disable a test for BeOS.
51721         * doc/functions/lseek.texi: Document the BeOS bug.
51722
51723 2007-08-19  Bruno Haible  <bruno@clisp.org>
51724             Eric Blake  <ebb9@byu.net>
51725
51726         * lib/lseek.c: Include <sys/stat.h>.
51727         (rpl_lseek): Add workaround code also for Unix platforms.
51728         Needed for BeOS.
51729         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51730         * doc/functions/lseek.texi: Document BeOS definiency.
51731
51732 2007-08-18  Bruno Haible  <bruno@clisp.org>
51733
51734         * modules/fstrcmp-tests: New file.
51735         * tests/test-fstrcmp.c: New file.
51736
51737 2007-08-18  Bruno Haible  <bruno@clisp.org>
51738
51739         * modules/fstrcmp: New file, from GNU gettext with modifications.
51740         * lib/fstrcmp.h: New file, from GNU gettext.
51741         * lib/fstrcmp.c: New file, from GNU gettext.
51742         * MODULES.html.sh (String handling): Add fstrcmp.
51743
51744 2007-08-18  Bruno Haible  <bruno@clisp.org>
51745
51746         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51747         'bool'.
51748         (diag, compareseq): Remove const from the ctxt argument.
51749         (USE_HEURISTIC): Undefine at the end.
51750
51751 2007-08-18  Jim Meyering  <jim@meyering.net>
51752
51753         New file: lib/idcache.h
51754         * NEWS: Mention the addition.
51755         * modules/idcache (Files): Add lib/idcache.h
51756         * lib/idcache.c: Include "idcache.h".
51757         Don't include <sys/types.h>.
51758         Add a FIXME comment.
51759         Move file-scoped "static" declarations to the top.
51760         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51761
51762 2007-08-17  Bruno Haible  <bruno@clisp.org>
51763         and Paul Eggert  <eggert@cs.ucla.edu>
51764
51765         * MODULES.html.sh: Add diffseq.
51766         * modules/diffseq: New file.
51767         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51768         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51769
51770 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51771
51772         Import changes from coreutils for bootstrap script.
51773
51774         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51775
51776         * build-aux/bootstrap (slurp): Work even in environments where
51777         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51778         current code does not slurp files whose names start with ".", and
51779         this looks like it might be a troublesome area.
51780
51781         2007-07-11  Jim Meyering  <jim@meyering.net>
51782
51783         If there's a GPL vN copyright comment, require that N == 3.
51784
51785         2007-07-08  Jim Meyering  <jim@meyering.net>
51786
51787         Run the coreutils-specific code only if tests/Makefile.am.in exists.
51788         * build-aux/bootstrap (mam_template): Move definition out of loop.
51789
51790         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
51791
51792         * build-aux/bootstrap (symlink_to_dir): Rename function from
51793         symlink_to_gnulib.  Add a directory parameter.  Update all
51794         callers.
51795         (cp_mark_as_generated): Also check for -- and link to -- files in
51796         gl/.
51797
51798         2007-07-08  Jim Meyering  <jim@meyering.net>
51799
51800         Adapt to deeper hierarchy in gnulib.
51801         * build-aux/bootstrap (symlink_to_dir): If the destination
51802         directory doesn't exist, create it. This is required at least for
51803         "lib/uniwidth/cjk.h".
51804
51805         2007-05-15  Jim Meyering  <jim@meyering.net>
51806
51807         * build-aux/bootstrap: Now that generated Makefile.am files
51808         are no longer under version control, they must be created at
51809         bootstrap time.
51810
51811 2007-08-14  Ben Pfaff  <blp@gnu.org>
51812
51813         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
51814
51815 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51816
51817         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
51818         given the changes below.
51819         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
51820         even on hosts that have padding bits beyond the supported 64.
51821
51822 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51823
51824         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
51825         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
51826         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
51827         depends on it.
51828         (xstrtol_error): Remove.
51829         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
51830         but with a different signature.
51831         (ATTRIBUTE_NORETURN, __attribute__): New macros.
51832         * lib/xstrtol-error.c: Include exitfail.h.
51833         (xstrtol_fatal): New function, with a different signature from the
51834         old xstrtol_error, so that the caller need not worry about passing
51835         in an exit status, or about storage management of the option argument.
51836         (xstrtol_error): Now a static function.  Redo signature to
51837         implement xstrtol_fatal.  Output the correct number of hyphens in
51838         front of the option so that the caller need not worry about
51839         storage management.
51840         (N_): New macro.
51841         (_): Remove; not used now.
51842         * modules/xstrtol: Depend on getopt.
51843         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
51844         of old STRTOL_FATAL_ERROR macro.
51845         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
51846         of test program.
51847         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
51848         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
51849
51850 2007-08-08  Eric Blake  <ebb9@byu.net>
51851
51852         * lib/xstrtol-error.c: Add missing include.
51853
51854         Move xstrtol messages into gnulib domain, when --pobase is used.
51855         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
51856         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
51857         * modules/xstrtol (Files): Distribute new file.
51858         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
51859         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
51860         * tests/test-xstrtol.c: ...into new file.
51861         * tests/test-xstrtoul.c: Also test xstrtoul.
51862         * tests/test-xstrtoimax.c: Also test xstrtoimax.
51863         * tests/test-xstrtoumax.c: Also test xstrtoumax.
51864         * tests/test-xstrtol.sh: Drive the tests.
51865         * tests/test-xstrtoimax.sh: Likewise.
51866         * tests/test-xstrtoumax.sh: Likewise.
51867         * modules/xstrtol-tests: New module.
51868         * modules/xstrtoimax-tests: Likewise.
51869         * modules/xstrtoumax-tests: Likewise.
51870
51871 2007-08-08  Jim Meyering  <jim@meyering.net>
51872
51873         New function: mfile_name_concat.
51874         * lib/filenamecat.c (mfile_name_concat): New function, just like
51875         file_name_concat, but return NULL upon failure rather than exiting
51876         with a diagnostic.
51877         * lib/filenamecat.h: Declare it.
51878
51879 2007-08-07  Bruno Haible  <bruno@clisp.org>
51880
51881         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
51882         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
51883         warning from gcc.
51884         Reported by Eric Blake.
51885
51886 2007-08-07  Simon Josefsson  <simon@josefsson.org>
51887
51888         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
51889         * modules/crypto/arcfour (License): Likewise.
51890         * modules/crypto/des-tests (License): Likewise.
51891         * modules/crypto/gc-arctwo-tests (License): Likewise.
51892         * modules/crypto/gc-des-tests (License): Likewise.
51893         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
51894         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
51895         * modules/crypto/gc-md2-tests (License): Likewise.
51896         * modules/crypto/gc-md4-tests (License): Likewise.
51897         * modules/crypto/gc-md5-tests (License): Likewise.
51898         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
51899         * modules/crypto/gc-rijndael-tests (License): Likewise.
51900         * modules/crypto/gc-sha1-tests (License): Likewise.
51901         * modules/crypto/gc-tests (License): Likewise.
51902         * modules/crypto/hmac-md5 (License): Likewise.
51903         * modules/crypto/hmac-sha1 (License): Likewise.
51904         * modules/crypto/md2-tests (License): Likewise.
51905         * modules/crypto/md4-tests (License): Likewise.
51906         * modules/crypto/md5 (License): Likewise.
51907         * modules/crypto/rijndael (License): Likewise.
51908         * modules/crypto/sha1 (License): Likewise.
51909         * modules/memxor (License): Likewise.
51910
51911 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51912         and Bruno Haible  <bruno@clisp.org>
51913
51914         * NEWS: Describe interface changes to human, xstrtol.
51915         * lib/human.h: Include <xstrtol.h>.
51916         (human_options): Return enum strtol_error, not int.  Remove
51917         bool arg; take int * instead.
51918         * lib/human.c: Don't include "gettext.h".
51919         (_): Remove; no longer used.
51920         Don't include <xstrtol.h>, since human.h does it.
51921         (human_options): Adjust to abovementioned interface changes.
51922         Do not report error to stderr; that's now the caller's
51923         responsibility.
51924         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
51925         interface change.
51926         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
51927         Str, Argument_type_string.  All uses changed.  Put " argument"
51928         in diagnostics to make them clearer.  Change wording of suffix
51929         message for clarity.
51930         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
51931         Argument_type_string.
51932         (STRTOL_FATAL_WARN): Remove; no longer used.
51933         * modules/human (Depends-on): Remove gettext-h.
51934
51935 2007-08-06  Simon Josefsson  <simon@josefsson.org>
51936
51937         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
51938
51939 2007-07-31  Bruno Haible  <bruno@clisp.org>
51940
51941         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
51942         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
51943         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
51944
51945 2007-07-31  Bruno Haible  <bruno@clisp.org>
51946
51947         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
51948         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
51949
51950 2007-07-30  Bruno Haible  <bruno@clisp.org>
51951
51952         * modules/base64 (License): Use the synonymous term "LGPLv2+".
51953         * modules/c-ctype (License): Likewise.
51954         * modules/c-strcase (License): Likewise.
51955         * modules/check-version (License): Likewise.
51956         * modules/iconv (License): Likewise.
51957         * modules/iconv_open (License): Likewise.
51958         * modules/read-file (License): Likewise.
51959         * modules/striconv (License): Likewise.
51960         * modules/strverscmp (License): Likewise.
51961         * modules/vasprintf (License): Likewise.
51962         * modules/crypto/des (License): Likewise.
51963         * modules/crypto/gc (License): Likewise.
51964         * modules/crypto/gc-arcfour (License): Likewise.
51965         * modules/crypto/gc-arctwo (License): Likewise.
51966         * modules/crypto/gc-des (License): Likewise.
51967         * modules/crypto/gc-hmac-md5 (License): Likewise.
51968         * modules/crypto/gc-hmac-sha1 (License): Likewise.
51969         * modules/crypto/gc-md2 (License): Likewise.
51970         * modules/crypto/gc-md4 (License): Likewise.
51971         * modules/crypto/gc-md5 (License): Likewise.
51972         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
51973         * modules/crypto/gc-random (License): Likewise.
51974         * modules/crypto/gc-rijndael (License): Likewise.
51975         * modules/crypto/gc-sha1 (License): Likewise.
51976         * modules/crypto/md2 (License): Likewise.
51977         * modules/crypto/md4 (License): Likewise.
51978
51979 2007-07-30  Jim Meyering  <jim@meyering.net>
51980
51981         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
51982         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
51983         it has valid stat data.  This bug would cause du not to count the
51984         sizes of inaccessible directories.
51985         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
51986         in <http://bugzilla.redhat.com/250077>.
51987
51988 2007-07-25  Peter O'Gorman  <peter@pogma.com>
51989             Bruno Haible  <bruno@clisp.org>
51990
51991         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
51992         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
51993         #include_next, gives a diagnostic about it, but reports no error in
51994         the exit code.
51995         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51996
51997 2007-07-24  Ben Pfaff  <blp@gnu.org>
51998
51999         Improve name: "count-one-bits" is better than "popcount".
52000         * MODULES.html.sh: Update name.
52001         * lib/popcount.h: Renamed lib/count-one-bits.h.
52002         (popcount): Renamed count_one_bits.
52003         (popcountl): Renamed count_one_bits_l.
52004         (popcountll): Renamed count_one_bits_ll.
52005         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
52006         * modules/popcount: Renamed module/count-one-bits.
52007         * modules/popcount-tests: Renamed module/count-one-bits-tests.
52008         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
52009
52010 2007-07-23  Ben Pfaff  <blp@gnu.org>
52011
52012         * lib/popcount.h (popcount32): Reduce size of constants, to allow
52013         better code generation, and add U to large constants to avoid
52014         warnings, in non-GCC case.
52015         Suggested by Bruno Haible.
52016
52017 2007-07-23  Ben Pfaff  <blp@gnu.org>
52018
52019         * lib/popcount.h: Use verify_true instead of if...abort.
52020         * modules/popcount: Depend on verify module.
52021         Suggested by Jim Meyering.
52022
52023 2007-07-23  Bruno Haible  <bruno@clisp.org>
52024
52025         * gnulib-tool (func_import): Create a .cvsignore file also when the
52026         directory is not yet in CVS but the toplevel directory is. When
52027         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52028         Reported by Karl Berry.
52029
52030 2007-07-22  Ben Pfaff  <blp@gnu.org>
52031
52032         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
52033         case.
52034         Suggested by Eric Blake.
52035
52036 2007-07-22  Ben Pfaff  <blp@gnu.org>
52037
52038         New module: popcount.
52039         * MODULES.html.sh: Add popcount.
52040         * modules/popcount: New file.
52041         * modules/popcount-tests: New file.
52042         * tests/test-popcount.c: New file.
52043         * lib/popcount.h: New file.
52044         * m4/popcount.m4: New file.
52045
52046 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52047
52048         * build-aux/announce-gen: Update to GPLv3.
52049
52050         * build-aux/config.guess: Update from config.
52051
52052 2007-07-21  Bruno Haible  <bruno@clisp.org>
52053
52054         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
52055         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
52056
52057 2007-07-20  Jim Meyering  <jim@meyering.net>
52058
52059         * check-module: Diagnose a self-dependency.
52060
52061 2007-07-19  Bruno Haible  <bruno@clisp.org>
52062
52063         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
52064         empty.
52065         Reported by Eric Blake.
52066
52067 2007-07-18  Bruno Haible  <bruno@clisp.org>
52068
52069         * gnulib-tool: New options --po-base, --po-domain.
52070         (func_usage): Document them.
52071         (pobase, po_domain): New variables.
52072         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
52073         DEFAULT_TEXT_DOMAIN.
52074         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
52075         (func_import): Consider pobase and po_domain. Create a po/ directory.
52076         (func_create_testdir): Set pobase and po_domain to empty.
52077         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
52078         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
52079
52080 2007-07-18  Bruno Haible  <bruno@clisp.org>
52081
52082         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52083         EXTRA_DIST augmentation for files in build-aux/.
52084
52085 2007-07-16  Bruno Haible  <bruno@clisp.org>
52086
52087         * modules/lseek (License): Use the synonymous term "LGPLv2+".
52088         * modules/getdelim (License): Likewise.
52089
52090 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52091
52092         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
52093         * modules/d-type (License): Likewise.
52094         * modules/extensions (License): Likewise.
52095         * modules/fnmatch (License): Likewise.
52096         * modules/fseeko (License): Likewise.
52097         * modules/getaddrinfo (License): Likewise.
52098         * modules/getline (License): Likewise.
52099         * modules/getlogin_r (License): Likewise.
52100         * modules/getpass (License): Likewise.
52101         * modules/gettimeofday (License): Likewise.
52102         * modules/glob (License): Likewise.
52103         * modules/inet_ntop (License): Likewise.
52104         * modules/malloc (License): Likewise.
52105         * modules/malloca (License): Likewise.
52106         * modules/memmem (License): Likewise.
52107         * modules/mempcpy (License): Likewise.
52108         * modules/memset (License): Likewise.
52109         * modules/minmax (License): Likewise.
52110         * modules/mktime (License): Likewise.
52111         * modules/netinet_in (License): Likewise.
52112         * modules/pathmax (License): Likewise.
52113         * modules/poll (License): Likewise.
52114         * modules/regex (License): Likewise.
52115         * modules/snprintf (License): Likewise.
52116         * modules/stdbool (License): Likewise.
52117         * modules/stdint (License): Likewise.
52118         * modules/stdio (License): Likewise.
52119         * modules/strcase (License): Likewise.
52120         * modules/strcasestr (License): Likewise.
52121         * modules/strdup (License): Likewise.
52122         * modules/string (License): Likewise.
52123         * modules/strndup (License): Likewise.
52124         * modules/strnlen (License): Likewise.
52125         * modules/strpbrk (License): Likewise.
52126         * modules/strptime (License): Likewise.
52127         * modules/strsep (License): Likewise.
52128         * modules/sys_select (License): Likewise.
52129         * modules/sys_socket (License): Likewise.
52130         * modules/sys_stat (License): Likewise.
52131         * modules/sys_time (License): Likewise.
52132         * modules/time (License): Likewise.
52133         * modules/time_r (License): Likewise.
52134         * modules/timegm (License): Likewise.
52135         * modules/unistd (License): Likewise.
52136         * modules/vsnprintf (License): Likewise.
52137         * modules/wctype (License): Likewise.
52138
52139 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52140
52141         * modules/argz (License): LGPLv2+.
52142
52143 2007-07-15  Karl Berry  <karl@gnu.org>
52144
52145         * doc/gnulib.texi: revise node structure per new fdl.texi.
52146
52147 2007-07-14  Bruno Haible  <bruno@clisp.org>
52148
52149         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
52150         the output file.
52151         * lib/uniname/uninames.h: Regenerated.
52152
52153 2007-07-14  Karl Berry  <karl@gnu.org>
52154
52155         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
52156         omitting sectioning and index commands.
52157
52158 2007-07-13  Bruno Haible  <bruno@clisp.org>
52159
52160         New gnulib-tool option --more-symlinks.
52161         * gnulib-tool (func_usage): Document --more-symlinks.
52162         (do_copyrights): New variable.
52163         Recognize option --more-symlinks.
52164         (func_import): Don't add a copyright notice transform to
52165         sed_transform_lib_file if do_copyrights is empty.
52166
52167 2007-07-13  Bruno Haible  <bruno@clisp.org>
52168
52169         * lib/vasnprintf.c (decimal_point_char): Define also if
52170         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
52171         && !NEED_PRINTF_DIRECTIVE_A.
52172         Reported by Clemens Koller <clemens.koller@anagramm.de> via
52173         Gary V. Vaughan <gary@gnu.org>.
52174
52175 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
52176
52177         * lib/inttypes_.h: Undo previous change, since it was fixed
52178         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
52179
52180 2007-07-13  Bruno Haible  <bruno@clisp.org>
52181
52182         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
52183         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
52184
52185 2007-07-13  Jim Meyering  <jim@meyering.net>
52186
52187         df: Don't fail for Tru64's "file-on-file mount".
52188         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
52189         so we fall through and use statfs instead.  Details here:
52190         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
52191         Reported by Albert Chin.
52192
52193 2007-07-13  Bruno Haible  <bruno@clisp.org>
52194
52195         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
52196         * modules/configmake (License): Likewise.
52197         * modules/gettext (License): Likewise.
52198         * modules/gettext-h (License): Likewise.
52199         * modules/include_next (License): Likewise.
52200         * modules/link-warning (License): Likewise.
52201         * modules/localcharset (License): Likewise.
52202         * modules/localename (License): Likewise.
52203         * modules/lock (License): Likewise.
52204         * modules/relocatable-lib-lgpl (License): Likewise.
52205         * modules/size_max (License): Likewise.
52206         * modules/vasnprintf (License): Likewise.
52207         * modules/wchar (License): Likewise.
52208         * modules/xsize (License): Likewise.
52209
52210 2007-07-13  Bruno Haible  <bruno@clisp.org>
52211
52212         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52213         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52214
52215 2007-07-12  Bruno Haible  <bruno@clisp.org>
52216
52217         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52218         in the modules files.
52219
52220 2007-07-11  Karl Berry  <karl@gnu.org>
52221
52222         * MODULES.html.sh (func_module): use
52223          sed -e '\|^'"${includefile}"'$|d'
52224          instead of /.../d, to avoid errors on $includefile's containing /.
52225
52226 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52227
52228         * gnulib-tool (func_import): Avoid duplication of --avoid
52229         statements
52230         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52231         names to `_' in variable names.
52232
52233 2007-07-10  Eric Blake  <ebb9@byu.net>
52234
52235         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52236         * NEWS: Document this change.
52237
52238 2007-07-08  Bruno Haible  <bruno@clisp.org>
52239
52240         Update to Unicode 5.0.
52241         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52242         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52243         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52244         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52245         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52246         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52247         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52248         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52249         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52250         U+10A3F, U+1D242..U+1D244.
52251         (nonspacing_table_ind): Update.
52252         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52253         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52254
52255 2007-07-08  Bruno Haible  <bruno@clisp.org>
52256
52257         Update to Unicode 5.0.
52258         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52259         code transform. Extend the name index field of unicode_name_to_code and
52260         unicode_code_to_name from 16 to 24 bits.
52261         * lib/uniname/uniname.c (unicode_character_name,
52262         unicode_name_character): Add the range 0x12xxx to the code transform.
52263         * lib/uniname/uninames.h: Regenerated.
52264         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52265
52266 2007-07-07  Bruno Haible  <bruno@clisp.org>
52267
52268         * modules/wcwidth-tests: New file.
52269         * tests/test-wcwidth.c: New file.
52270
52271         Work around MacOS X wcwidth() bug.
52272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52273         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52274         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52275         original wcwidth in non-UTF-8 locales.
52276         * modules/wcwidth (Depends-on): Add localcharset, streq,
52277         uniwidth/width.
52278         * doc/functions/wcwidth.texi: Update.
52279
52280 2007-07-07  Bruno Haible  <bruno@clisp.org>
52281
52282         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52283         (wcwidth): New declaration.
52284         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52285         macros.
52286         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52287         here. Prepare for creating <wchar.h> unconditionally.
52288         * modules/wchar (Depends-on): Add link-warning.
52289         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52290         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52291         * lib/wcwidth.h: Remove file.
52292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52293         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52294         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52295         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52296         (Include): Replace wcwidth.h with <wchar.h>.
52297         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52298         * lib/mbchar.h: Don't include wcwidth.h.
52299         * lib/mbswidth.c: Likewise.
52300         * NEWS: Mention the change.
52301
52302 2007-07-07  Bruno Haible  <bruno@clisp.org>
52303
52304         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52305         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52306         definition with an external declaration.
52307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52308         defined as a function. Remove AC_C_INLINE requirement.
52309         * modules/wcwidth (Files): Add lib/wcwidth.c.
52310         (Makefile.am): Remove redundant statement.
52311
52312 2007-07-07  Bruno Haible  <bruno@clisp.org>
52313
52314         * MODULES.html.sh (Unicode string functions): Add the new modules.
52315
52316         * tests/uniwidth/test-u32-strwidth.c: New file.
52317         * modules/uniwidth/u32-strwidth-tests: New file.
52318
52319         * lib/uniwidth/u32-strwidth.c: New file.
52320         * modules/uniwidth/u32-strwidth: New file.
52321
52322         * tests/uniwidth/test-u16-strwidth.c: New file.
52323         * modules/uniwidth/u16-strwidth-tests: New file.
52324
52325         * lib/uniwidth/u16-strwidth.c: New file.
52326         * modules/uniwidth/u16-strwidth: New file.
52327
52328         * tests/uniwidth/test-u8-strwidth.c: New file.
52329         * modules/uniwidth/u8-strwidth-tests: New file.
52330
52331         * lib/uniwidth/u8-strwidth.c: New file.
52332         * modules/uniwidth/u8-strwidth: New file.
52333
52334         * tests/uniwidth/test-u32-width.c: New file.
52335         * modules/uniwidth/u32-width-tests: New file.
52336
52337         * lib/uniwidth/u32-width.c: New file.
52338         * modules/uniwidth/u32-width: New file.
52339
52340         * tests/uniwidth/test-u16-width.c: New file.
52341         * modules/uniwidth/u16-width-tests: New file.
52342
52343         * lib/uniwidth/u16-width.c: New file.
52344         * modules/uniwidth/u16-width: New file.
52345
52346         * tests/uniwidth/test-u8-width.c: New file.
52347         * modules/uniwidth/u8-width-tests: New file.
52348
52349         * lib/uniwidth/u8-width.c: New file.
52350         * modules/uniwidth/u8-width: New file.
52351
52352         * tests/uniwidth/test-uc_width.c: New file.
52353         * modules/uniwidth/width-tests: New file.
52354
52355         * lib/uniwidth/width.c: New file, from GNU libiconv.
52356         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52357         * modules/uniwidth/width: New file.
52358
52359         * lib/uniwidth.h: New file, from GNU libiconv.
52360         * modules/uniwidth/base: New file.
52361
52362 2007-07-07  Bruno Haible  <bruno@clisp.org>
52363
52364         * lib/uniname.h: New file, from GNU gettext.
52365         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52366         * lib/uniname/uninames.h: New file, from GNU gettext.
52367         * lib/uniname/uniname.c: New file, from GNU gettext.
52368         * tests/uniname/test-uninames.sh: New file.
52369         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52370         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52371         * modules/uniname/base: New file.
52372         * modules/uniname/uniname: New file.
52373         * modules/uniname/uniname-tests: New file.
52374         * MODULES.html.sh (Unicode string functions): Add the new modules.
52375
52376 2007-07-06  Bruno Haible  <bruno@clisp.org>
52377
52378         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52379
52380 2007-07-06  Bruno Haible  <bruno@clisp.org>
52381
52382         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52383         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52384         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52385         include <sys/time.h>.
52386         Reported by Eric Blake.
52387
52388 2007-07-06  Eric Blake  <ebb9@byu.net>
52389
52390         Fix testing canonicalize on cygwin.
52391         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52392         Revert patch from 2007-06-19.
52393         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52394         canonicalize module is also in use.
52395         * tests/test-canonicalize.c: New file.
52396         * tests/test-canonicalize.sh: Likewise.
52397         * modules/canonicalize-tests: Likewise.
52398
52399 2007-07-06  Jim Meyering  <jim@meyering.net>
52400
52401         * lib/getugroups.c (getugroups): Detect getgrent failure.
52402         Adjust comment to reflect reality: this function may return -1.
52403
52404 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52405
52406         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52407         the new TP address.
52408         (usage): Fix typo
52409         (gnulib_mk): New variable.
52410
52411 2007-07-05  Jim Meyering  <jim@meyering.net>
52412
52413         Don't let endgrent clobber errno, no matter how improbable.
52414         * lib/getugroups.c (getugroups): Save and restore errno around
52415         endgrent call.
52416
52417         Close the group DB even when failing with 2^31 or more members.
52418         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52419
52420 2007-07-04  Jim Meyering  <jim@meyering.net>
52421
52422         * lib/getugroups.h: New file.
52423         * lib/getugroups.c: Include "getugroups.h".
52424         Remove uses of "register" keyword.
52425         Move local variable, "cp", down into scope where used.
52426         Give "username" parameter the "const" attribute.
52427         * modules/getugroups (Files): Add lib/getugroups.h
52428
52429 2007-07-04  Karl Berry  <karl@gnu.org>
52430
52431         * MODULES.html.sh (func_all_modules): Complete rename of
52432         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52433
52434 2007-07-02  Bruno Haible  <bruno@clisp.org>
52435
52436         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52437         mode, when inttypes.h comes from gnulib.
52438         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52439
52440 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52441
52442         * NEWS: Mention lgpl module name change.
52443
52444         * modules/lgpl-2.1: Renamed from lgpl.
52445
52446         * NEWS: Mention gpl module name change.
52447
52448         * modules/gpl-3.0: New file, based on gpl-2.0.
52449
52450         * modules/gpl-2.0: Renamed from gpl.
52451
52452         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52453         doc/gpl-2.0.texi.
52454
52455 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52456
52457         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52458         #define __STDC_LIMIT_MACROS temporarily while including
52459         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52460         Problem reported by Joel E. Denny in
52461         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52462
52463 2007-07-01  Bruno Haible  <bruno@clisp.org>
52464
52465         * lib/unistdio.h: New file.
52466         * lib/unistdio/u-asnprintf.h: New file.
52467         * lib/unistdio/u-asprintf.h: New file.
52468         * lib/unistdio/u-printf-args.c: New file.
52469         * lib/unistdio/u-printf-args.h: New file.
52470         * lib/unistdio/u-printf-parse.h: New file.
52471         * lib/unistdio/u-snprintf.h: New file.
52472         * lib/unistdio/u-sprintf.h: New file.
52473         * lib/unistdio/u-vasprintf.h: New file.
52474         * lib/unistdio/u-vsnprintf.h: New file.
52475         * lib/unistdio/u-vsprintf.h: New file.
52476         * lib/unistdio/ulc-asnprintf.c: New file.
52477         * lib/unistdio/ulc-asprintf.c: New file.
52478         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52479         * lib/unistdio/ulc-printf-parse.c: New file.
52480         * lib/unistdio/ulc-snprintf.c: New file.
52481         * lib/unistdio/ulc-sprintf.c: New file.
52482         * lib/unistdio/ulc-vasnprintf.c: New file.
52483         * lib/unistdio/ulc-vasprintf.c: New file.
52484         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52485         * lib/unistdio/ulc-vsnprintf.c: New file.
52486         * lib/unistdio/ulc-vsprintf.c: New file.
52487         * lib/unistdio/u8-asnprintf.c: New file.
52488         * lib/unistdio/u8-asprintf.c: New file.
52489         * lib/unistdio/u8-printf-parse.c: New file.
52490         * lib/unistdio/u8-snprintf.c: New file.
52491         * lib/unistdio/u8-sprintf.c: New file.
52492         * lib/unistdio/u8-vasnprintf.c: New file.
52493         * lib/unistdio/u8-vasprintf.c: New file.
52494         * lib/unistdio/u8-vsnprintf.c: New file.
52495         * lib/unistdio/u8-vsprintf.c: New file.
52496         * lib/unistdio/u8-u8-asnprintf.c: New file.
52497         * lib/unistdio/u8-u8-asprintf.c: New file.
52498         * lib/unistdio/u8-u8-snprintf.c: New file.
52499         * lib/unistdio/u8-u8-sprintf.c: New file.
52500         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52501         * lib/unistdio/u8-u8-vasprintf.c: New file.
52502         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52503         * lib/unistdio/u8-u8-vsprintf.c: New file.
52504         * lib/unistdio/u16-asnprintf.c: New file.
52505         * lib/unistdio/u16-asprintf.c: New file.
52506         * lib/unistdio/u16-printf-parse.c: New file.
52507         * lib/unistdio/u16-snprintf.c: New file.
52508         * lib/unistdio/u16-sprintf.c: New file.
52509         * lib/unistdio/u16-vasnprintf.c: New file.
52510         * lib/unistdio/u16-vasprintf.c: New file.
52511         * lib/unistdio/u16-vsnprintf.c: New file.
52512         * lib/unistdio/u16-vsprintf.c: New file.
52513         * lib/unistdio/u16-u16-asnprintf.c: New file.
52514         * lib/unistdio/u16-u16-asprintf.c: New file.
52515         * lib/unistdio/u16-u16-snprintf.c: New file.
52516         * lib/unistdio/u16-u16-sprintf.c: New file.
52517         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52518         * lib/unistdio/u16-u16-vasprintf.c: New file.
52519         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52520         * lib/unistdio/u16-u16-vsprintf.c: New file.
52521         * lib/unistdio/u32-asnprintf.c: New file.
52522         * lib/unistdio/u32-asprintf.c: New file.
52523         * lib/unistdio/u32-printf-parse.c: New file.
52524         * lib/unistdio/u32-snprintf.c: New file.
52525         * lib/unistdio/u32-sprintf.c: New file.
52526         * lib/unistdio/u32-vasnprintf.c: New file.
52527         * lib/unistdio/u32-vasprintf.c: New file.
52528         * lib/unistdio/u32-vsnprintf.c: New file.
52529         * lib/unistdio/u32-vsprintf.c: New file.
52530         * lib/unistdio/u32-u32-asnprintf.c: New file.
52531         * lib/unistdio/u32-u32-asprintf.c: New file.
52532         * lib/unistdio/u32-u32-snprintf.c: New file.
52533         * lib/unistdio/u32-u32-sprintf.c: New file.
52534         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52535         * lib/unistdio/u32-u32-vasprintf.c: New file.
52536         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52537         * lib/unistdio/u32-u32-vsprintf.c: New file.
52538         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52539         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52540         * tests/unistdio/test-ulc-printf1.h: New file.
52541         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52542         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52543         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52544         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52545         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52546         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52547         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52548         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52549         * tests/unistdio/test-u8-asnprintf1.c: New file.
52550         * tests/unistdio/test-u8-asnprintf1.h: New file.
52551         * tests/unistdio/test-u8-printf1.h: New file.
52552         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52553         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52554         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52555         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52556         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52557         * tests/unistdio/test-u8-vasprintf1.c: New file.
52558         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52559         * tests/unistdio/test-u8-vsprintf1.c: New file.
52560         * tests/unistdio/test-u16-asnprintf1.c: New file.
52561         * tests/unistdio/test-u16-asnprintf1.h: New file.
52562         * tests/unistdio/test-u16-printf1.h: New file.
52563         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52564         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52565         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52566         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52567         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52568         * tests/unistdio/test-u16-vasprintf1.c: New file.
52569         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52570         * tests/unistdio/test-u16-vsprintf1.c: New file.
52571         * tests/unistdio/test-u32-asnprintf1.c: New file.
52572         * tests/unistdio/test-u32-asnprintf1.h: New file.
52573         * tests/unistdio/test-u32-printf1.h: New file.
52574         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52575         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52576         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52577         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52578         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52579         * tests/unistdio/test-u32-vasprintf1.c: New file.
52580         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52581         * tests/unistdio/test-u32-vsprintf1.c: New file.
52582         * modules/unistdio/base: New file.
52583         * modules/unistdio/u-printf-args: New file.
52584         * modules/unistdio/ulc-asnprintf: New file.
52585         * modules/unistdio/ulc-asprintf: New file.
52586         * modules/unistdio/ulc-fprintf: New file.
52587         * modules/unistdio/ulc-printf-parse: New file.
52588         * modules/unistdio/ulc-snprintf: New file.
52589         * modules/unistdio/ulc-sprintf: New file.
52590         * modules/unistdio/ulc-vasnprintf: New file.
52591         * modules/unistdio/ulc-vasprintf: New file.
52592         * modules/unistdio/ulc-vfprintf: New file.
52593         * modules/unistdio/ulc-vsnprintf: New file.
52594         * modules/unistdio/ulc-vsprintf: New file.
52595         * modules/unistdio/u8-asnprintf: New file.
52596         * modules/unistdio/u8-asprintf: New file.
52597         * modules/unistdio/u8-printf-parse: New file.
52598         * modules/unistdio/u8-snprintf: New file.
52599         * modules/unistdio/u8-sprintf: New file.
52600         * modules/unistdio/u8-vasnprintf: New file.
52601         * modules/unistdio/u8-vasprintf: New file.
52602         * modules/unistdio/u8-vsnprintf: New file.
52603         * modules/unistdio/u8-vsprintf: New file.
52604         * modules/unistdio/u8-u8-asnprintf: New file.
52605         * modules/unistdio/u8-u8-asprintf: New file.
52606         * modules/unistdio/u8-u8-snprintf: New file.
52607         * modules/unistdio/u8-u8-sprintf: New file.
52608         * modules/unistdio/u8-u8-vasnprintf: New file.
52609         * modules/unistdio/u8-u8-vasprintf: New file.
52610         * modules/unistdio/u8-u8-vsnprintf: New file.
52611         * modules/unistdio/u8-u8-vsprintf: New file.
52612         * modules/unistdio/u16-asnprintf: New file.
52613         * modules/unistdio/u16-asprintf: New file.
52614         * modules/unistdio/u16-printf-parse: New file.
52615         * modules/unistdio/u16-snprintf: New file.
52616         * modules/unistdio/u16-sprintf: New file.
52617         * modules/unistdio/u16-vasnprintf: New file.
52618         * modules/unistdio/u16-vasprintf: New file.
52619         * modules/unistdio/u16-vsnprintf: New file.
52620         * modules/unistdio/u16-vsprintf: New file.
52621         * modules/unistdio/u16-u16-asnprintf: New file.
52622         * modules/unistdio/u16-u16-asprintf: New file.
52623         * modules/unistdio/u16-u16-snprintf: New file.
52624         * modules/unistdio/u16-u16-sprintf: New file.
52625         * modules/unistdio/u16-u16-vasnprintf: New file.
52626         * modules/unistdio/u16-u16-vasprintf: New file.
52627         * modules/unistdio/u16-u16-vsnprintf: New file.
52628         * modules/unistdio/u16-u16-vsprintf: New file.
52629         * modules/unistdio/u32-asnprintf: New file.
52630         * modules/unistdio/u32-asprintf: New file.
52631         * modules/unistdio/u32-printf-parse: New file.
52632         * modules/unistdio/u32-snprintf: New file.
52633         * modules/unistdio/u32-sprintf: New file.
52634         * modules/unistdio/u32-vasnprintf: New file.
52635         * modules/unistdio/u32-vasprintf: New file.
52636         * modules/unistdio/u32-vsnprintf: New file.
52637         * modules/unistdio/u32-vsprintf: New file.
52638         * modules/unistdio/u32-u32-asnprintf: New file.
52639         * modules/unistdio/u32-u32-asprintf: New file.
52640         * modules/unistdio/u32-u32-snprintf: New file.
52641         * modules/unistdio/u32-u32-sprintf: New file.
52642         * modules/unistdio/u32-u32-vasnprintf: New file.
52643         * modules/unistdio/u32-u32-vasprintf: New file.
52644         * modules/unistdio/u32-u32-vsnprintf: New file.
52645         * modules/unistdio/u32-u32-vsprintf: New file.
52646         * modules/unistdio/ulc-asnprintf-tests: New file.
52647         * modules/unistdio/ulc-vasnprintf-tests: New file.
52648         * modules/unistdio/ulc-vasprintf-tests: New file.
52649         * modules/unistdio/ulc-vsnprintf-tests: New file.
52650         * modules/unistdio/ulc-vsprintf-tests: New file.
52651         * modules/unistdio/u8-asnprintf-tests: New file.
52652         * modules/unistdio/u8-vasnprintf-tests: New file.
52653         * modules/unistdio/u8-vasprintf-tests: New file.
52654         * modules/unistdio/u8-vsnprintf-tests: New file.
52655         * modules/unistdio/u8-vsprintf-tests: New file.
52656         * modules/unistdio/u16-asnprintf-tests: New file.
52657         * modules/unistdio/u16-vasnprintf-tests: New file.
52658         * modules/unistdio/u16-vasprintf-tests: New file.
52659         * modules/unistdio/u16-vsnprintf-tests: New file.
52660         * modules/unistdio/u16-vsprintf-tests: New file.
52661         * modules/unistdio/u32-asnprintf-tests: New file.
52662         * modules/unistdio/u32-vasnprintf-tests: New file.
52663         * modules/unistdio/u32-vasprintf-tests: New file.
52664         * modules/unistdio/u32-vsnprintf-tests: New file.
52665         * modules/unistdio/u32-vsprintf-tests: New file.
52666         * MODULES.html.sh (Unicode string functions): Add the new modules.
52667
52668 2007-07-01  Bruno Haible  <bruno@clisp.org>
52669
52670         * lib/sprintf.c (sprintf): Limit the available length estimation,
52671         to avoid address wraparound.
52672         * lib/vsprintf.c (vsprintf): Likewise.
52673         * modules/sprintf-posix (Dependencies): Add stdint.
52674         * modules/vsprintf-posix (Dependencies): Likewise.
52675
52676 2007-07-01  Bruno Haible  <bruno@clisp.org>
52677
52678         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52679         Windows PATH as well. Conservative double-quoting. Comments.
52680
52681 2007-07-01  Bruno Haible  <bruno@clisp.org>
52682             Eric Blake  <ebb9@byu.net>
52683             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52684
52685         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52686         empty components in $PATH, denoting '.'.
52687
52688 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52689
52690         * gnulib-tool: Fix indentation.
52691         (func_create_megatestdir): Likewise.
52692         Report by Bruno Haible.
52693
52694 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52695
52696         Sync from Automake.
52697         * build-aux/gnupload: Fix shell portability issues with for loops.
52698         Report by Karl Berry.
52699
52700 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52701
52702         * build-aux/maint.mk (POURL): Use translationproject.org.
52703
52704 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52705             Bruno Haible  <bruno@clisp.org>
52706
52707         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52708         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52709         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52710         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52711         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52712
52713 2007-06-27  Bruno Haible  <bruno@clisp.org>
52714
52715         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52716         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52717
52718 2007-06-26  Karl Berry  <karl@gnu.org>
52719
52720         * MODULES.html.sh: remove xreadlink-with-size.
52721
52722 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52723
52724         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52725         method that I hope also handles the double-include problem noted
52726         by Bruno Haible in
52727         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52728
52729 2007-06-23  Bruno Haible  <bruno@clisp.org>
52730
52731         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52732         Don't let the 'mostlyclean' target fail if the last subdirectory could
52733         not be removed.
52734         Reported by Karl Berry.
52735
52736 2007-06-23  Bruno Haible  <bruno@clisp.org>
52737
52738         * gnulib-tool (echo): Add a speedier workaround for ksh.
52739         * tests/test-echo.sh: Likewise.
52740
52741 2007-06-23  Bruno Haible  <bruno@clisp.org>
52742
52743         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52744         * tests/test-echo.sh: Likewise.
52745
52746 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52747
52748         * gnulib-tool (IFS): Initialize early, so we don't set it to
52749         empty later.
52750         (self_abspathname): Rewrite algorithm to set it, reindent.
52751         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52752         (func_create_megatestdir): Merge some sed scripts.
52753
52754 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52755
52756         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52757         exposed by Sun Studio 11 cc on Solaris 8.
52758
52759 2007-06-22  Bruno Haible  <bruno@clisp.org>
52760
52761         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52762         backslashes.
52763         * tests/test-echo.sh: New file.
52764
52765 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52766
52767         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52768         simplify `sed_replace_build_aux' scripts, they are portable but
52769         echoing them with `echo' is not.
52770         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52771
52772 2007-06-21  Karl Berry  <karl@gnu.org>
52773
52774         * config/srclist.txt: guess we can't handle the licenses via
52775         srclist at the moment.
52776
52777 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52778
52779         * MODULES.html.sh: Add include_next.
52780         * modules/include_next: New file.
52781
52782 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52783
52784         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
52785         INCLUDE_NEXT.
52786         (gl_CHECK_NEXT_HEADERS): New macro.
52787         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
52788         the obsolescent gl_ABSOLUTE_HEADER.
52789         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
52790         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
52791         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52792         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52793         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52794         * m4/math_h.m4 (gl_MATH_H): Likewise.
52795         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52796         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52797         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52798         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52799         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52800         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52801         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52802         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52803         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52804         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52805         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52806         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
52807         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
52808         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52809         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52810         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52811         * m4/inttypes.m4 (gl_INTTYPES_H): Define
52812         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
52813         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
52814         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
52815         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
52816         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
52817         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
52818         * lib/float_.h: Likewise.
52819         * lib/inttypes_.h: Likewise.
52820         * lib/math_.h: Likewise.
52821         * lib/search_.h: Likewise.
52822         * lib/signal_.h: Likewise.
52823         * lib/stdint_.h: Likewise.
52824         * lib/stdio_.h: Likewise.
52825         * lib/stdlib_.h: Likewise.
52826         * lib/string_.h: Likewise.
52827         * lib/sys_stat_.h: Likewise.
52828         * lib/sys_time_.h: Likewise.
52829         * lib/time_.h: Likewise.
52830         * lib/unistd_.h: Likewise.
52831         * lib/wchar_.h: Likewise.
52832         * lib/wctype_.h: Likewise.
52833         * lib/dirent_.h: Likewise.
52834         * lib/iconv_.h: Likewise.
52835         * lib/locale_.h: Likewise.
52836         * lib/netinet_in_.h: Likewise.
52837         * lib/sys_select_.h: Likewise.
52838         * lib/sys_socket_.h: Likewise.
52839         * lib/sysexits_.h: Likewise.
52840         * modules/fcntl (Depends-on): Depend on include_next, not
52841         absolute_header.
52842         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
52843         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
52844         * modules/fchdir: Likewise.
52845         * modules/float: Likewise.
52846         * modules/iconv_open: Likewise.
52847         * modules/inttypes: Likewise.
52848         * modules/locale: Likewise.
52849         * modules/math: Likewise.
52850         * modules/netinet_in: Likewise.
52851         * modules/search: Likewise.
52852         * modules/signal: Likewise.
52853         * modules/stdint: Likewise.
52854         * modules/stdio: Likewise.
52855         * modules/stdlib: Likewise.
52856         * modules/string: Likewise.
52857         * modules/sys_select: Likewise.
52858         * modules/sys_socket: Likewise.
52859         * modules/sys_stat: Likewise.
52860         * modules/sys_time: Likewise.
52861         * modules/sysexits: Likewise.
52862         * modules/time: Likewise.
52863         * modules/unistd: Likewise.
52864         * modules/wchar: Likewise.
52865         * modules/wctype: Likewise.
52866         * modules/sys_stat: Change maintainer to "all".
52867         * modules/unistd: Likewise.
52868
52869 2007-06-20  Karl Berry  <karl@gnu.org>
52870
52871         * config/srclist.txt: track www changes in license files.
52872
52873 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
52874
52875         * build-aux/bootstrap: Remove stray dot.
52876         Make sure build_aux settings are honored when linking
52877         gnulib_extra_files.
52878
52879 2007-06-19  Eric Blake  <ebb9@byu.net>
52880
52881         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52882         Allow compilation on cygwin.
52883
52884 2007-06-19  Jim Meyering  <jim@meyering.net>
52885
52886         xreadlink-with-size: Remove module.  No longer used.
52887         Ex-callers now use xreadlink or mreadlink-with-size.
52888         * modules/xreadlink-with-size: Remove module.
52889         * lib/xreadlink-with-size.c: Remove file.
52890         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
52891         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
52892         just before the function definition *is* accurate.
52893
52894         Eliminate one way canonicalize_filename_mode could exit.
52895         * lib/canonicalize.c (canonicalize_filename_mode):
52896         Use mreadlink_with_size, not xreadlink_with_size.
52897
52898 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
52899
52900         Detect porting problems to FreeBSD/arm, which has time_t wider than
52901         long int.  Original problem reported for GNU diff by Xin Li in
52902         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
52903         * modules/getdate (Depends-on): Add intprops, verify.
52904         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
52905         is an integer type no wider than long int.
52906
52907 2007-06-18  Jim Meyering  <jim@meyering.net>
52908
52909         New module: mreadlink-with-size.
52910         * MODULES.html.sh: Add mreadlink-with-size.
52911         * modules/mreadlink-with-size: New module
52912         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
52913         not xreadlink-with-size.
52914         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
52915
52916 2007-06-16  Bruno Haible  <bruno@clisp.org>
52917
52918         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
52919         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
52920         Reported by Gary V. Vaughan <gary@gnu.org>.
52921
52922 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52923
52924         Revamp lchown so that it lives in unistd.h where it belongs.
52925         * lib/lchown.h: Remove.
52926         * lib/dirchownmod.c: Don't include lib/lchown.h.
52927         * lib/fchownat.c: Likewise.
52928         * lib/openat.c: Likewise.
52929         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
52930         does not follow symlinks.
52931         (EOPNOTSUPP): Define if not defined.
52932         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
52933         is defined to 0.
52934         (lchown): New decl.
52935         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
52936         Do not check for lchown decl.
52937         Set REPLACE_LCHOWN.
52938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
52939         REPLACE_LCHOWN.
52940         * modules/chown: Make it clear it follows symlinks.
52941         * modules/lchown: Make it clear it doesn't follow symlinks.
52942         (Files): Remove lib/lchown.h
52943         (Depends-on): Add unistd.
52944         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
52945         (Include): Include <unistd.h>, not "lchown.h".
52946         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
52947         REPLACE_LCHOWN.
52948
52949 2007-06-15  Jim Meyering  <jim@meyering.net>
52950
52951         Change license (GPL to LGPL) of fsusage and dependents.
52952         * modules/fsusage (License): Change to LGPL.
52953         * modules/full-read (License): Likewise.
52954         * modules/full-write (License): Likewise.
52955         * modules/safe-read (License): Likewise.
52956         * modules/safe-write (License): Likewise.
52957
52958 2007-06-14  Ben Pfaff  <blp@gnu.org>
52959
52960         Missing part of allocsa -> malloca transition.
52961         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
52962         gl_MALLOCA.
52963
52964 2007-06-12  Bruno Haible  <bruno@clisp.org>
52965
52966         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
52967         to ia64, x86_64, i386.
52968         Reported by Eric Blake.
52969
52970 2007-06-12  Bruno Haible  <bruno@clisp.org>
52971
52972         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
52973         cross-compiling to x86_64.
52974
52975 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
52976
52977         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
52978         glitch reported by Ralf Wildenhues in
52979         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
52980
52981         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
52982         Vin Shelton.
52983
52984 2007-06-11  Bruno Haible  <bruno@clisp.org>
52985
52986         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
52987         replacement string.
52988         Reported by Eric Blake.
52989
52990 2007-06-10  Bruno Haible  <bruno@clisp.org>
52991
52992         Prepare vasnprintf code for use with Unicode strings.
52993         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
52994         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
52995         TYPE_U32_STRING.
52996         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
52997         a_u32_string variants.
52998         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52999         * lib/printf-args.c: Don't include config.h and the specification
53000         header if PRINTF_FETCHARGS is already defined.
53001         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53002         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
53003         TYPE_U16_STRING, TYPE_U32_STRING.
53004         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
53005         u16_directive, u16_directives, u32_directive, u32_directives): New
53006         types.
53007         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
53008         New declarations.
53009         * lib/printf-parse.c: Don't include config.h and the specification
53010         header if PRINTF_PARSE is already defined. Eliminate the set of
53011         parameters for WIDE_CHAR_VERSION; the user of this file must provide
53012         them now. Include c-ctype.h.
53013         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
53014         directive and CHAR_T_ONLY_ASCII.
53015         * lib/vasnprintf.c: Don't include config.h and the specification header
53016         if VASNPRINTF is already defined.
53017         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
53018         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
53019         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
53020         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
53021         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
53022         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
53023         code accordingly.
53024         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53025         pad_ourselves also in this case, with the 'c' and 's' directives, and
53026         with a different notion of "width".
53027         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53028
53029 2007-06-10  Bruno Haible  <bruno@clisp.org>
53030
53031         * modules/unistr/u32-mbsnlen: New file.
53032         * lib/unistr/u32-mbsnlen.c: New file.
53033
53034         * modules/unistr/u16-mbsnlen: New file.
53035         * lib/unistr/u16-mbsnlen.c: New file.
53036
53037         * modules/unistr/u8-mbsnlen: New file.
53038         * lib/unistr/u8-mbsnlen.c: New file.
53039
53040         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
53041         declarations.
53042
53043 2007-06-10  Bruno Haible  <bruno@clisp.org>
53044
53045         * lib/string_.h (mbsnlen): New declaration.
53046         * lib/mbsnlen.c: New file.
53047         * m4/mbsnlen.m4: New file.
53048         * modules/mbsnlen: New file.
53049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
53050         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
53051         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
53052
53053 2007-06-10  Bruno Haible  <bruno@clisp.org>
53054
53055         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
53056
53057 2007-06-10  Bruno Haible  <bruno@clisp.org>
53058
53059         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
53060         * lib/mbuiter.h: Likewise.
53061
53062 2007-06-10  Bruno Haible  <bruno@clisp.org>
53063
53064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
53065         declaration.
53066
53067 2007-06-10  Karl Berry  <karl@gnu.org>
53068
53069         * config/srclist.txt: remove gettext entries, Bruno prefers
53070         to update individually.
53071
53072 2007-06-10  Bruno Haible  <bruno@clisp.org>
53073
53074         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
53075         'maxlen'. Ensure only length + width bytes are allocated, not
53076         length + 1 + width.
53077
53078 2007-06-09  Bruno Haible  <bruno@clisp.org>
53079
53080         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
53081         (CHAR_T): Remove macro.
53082         (VASNPRINTF): Update.
53083
53084 2007-06-09  Bruno Haible  <bruno@clisp.org>
53085
53086         * MODULES.html.sh (Unicode string functions): Add the new modules.
53087
53088         * modules/uniconv/u32-conv-to-enc: New file.
53089         * lib/uniconv/u32-conv-to-enc.c: New file.
53090         * modules/uniconv/u32-conv-to-enc-tests: New file.
53091         * tests/uniconv/test-u32-conv-to-enc.c: New file.
53092
53093         * modules/uniconv/u16-conv-to-enc: New file.
53094         * lib/uniconv/u16-conv-to-enc.c: New file.
53095         * lib/uniconv/u-conv-to-enc.h: New file.
53096         * modules/uniconv/u16-conv-to-enc-tests: New file.
53097         * tests/uniconv/test-u16-conv-to-enc.c: New file.
53098
53099         * modules/uniconv/u8-conv-to-enc: New file.
53100         * lib/uniconv/u8-conv-to-enc.c: New file.
53101         * modules/uniconv/u8-conv-to-enc-tests: New file.
53102         * tests/uniconv/test-u8-conv-to-enc.c: New file.
53103
53104         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
53105         u32_conv_to_encoding): New declarations.
53106
53107 2007-06-09  Bruno Haible  <bruno@clisp.org>
53108
53109         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
53110
53111 2007-06-09  Bruno Haible  <bruno@clisp.org>
53112
53113         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
53114         * modules/malloca: Renamed from modules/allocsa, updated.
53115         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
53116         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
53117         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
53118         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
53119         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
53120         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
53121         * modules/xmalloca: Renamed from modules/xallocsa, updated.
53122         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
53123         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
53124         * modules/c-strcasestr (Depends-on): Update.
53125         * lib/c-strcasestr.c: Update.
53126         * modules/c-strstr (Depends-on): Update.
53127         * lib/c-strstr.c: Update.
53128         * modules/canonicalize-lgpl (Depends-on): Update.
53129         * lib/canonicalize-lgpl.c: Update.
53130         * modules/clean-temp (Depends-on): Update.
53131         * lib/clean-temp.c: Update.
53132         * modules/csharpcomp (Depends-on): Update.
53133         * lib/csharpcomp.c: Update.
53134         * modules/csharpexec (Depends-on): Update.
53135         * lib/csharpexec.c: Update.
53136         * modules/javacomp (Depends-on): Update.
53137         * lib/javacomp.c: Update.
53138         * modules/javaexec (Depends-on): Update.
53139         * lib/javaexec.c: Update.
53140         * modules/mbscasestr (Depends-on): Update.
53141         * lib/mbscasestr.c: Update.
53142         * modules/mbsstr (Depends-on): Update.
53143         * lib/mbsstr.c: Update.
53144         * modules/setenv (Depends-on): Update.
53145         * lib/setenv.c: Update.
53146         * modules/strcasestr (Depends-on): Update.
53147         * lib/strcasestr.c: Update.
53148         * modules/striconveha (Depends-on): Update.
53149         * lib/striconveha.c: Update.
53150         * modules/relocatable-prog-wrapper (Files): Update.
53151         * lib/relocwrapper.c: Update.
53152         * build-aux/install-reloc: Update.
53153         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
53154
53155 2007-06-08  Bruno Haible  <bruno@clisp.org>
53156
53157         Port to uClibc.
53158         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
53159         * lib/fpurge.c (fpurge): Likewise.
53160         * lib/freading.c (freading): Likewise.
53161         * lib/fseeko.c (rpl_fseeko): Likewise.
53162         * lib/fseterr.c (fseterr): Likewise.
53163         * lib/fwriting.c (fwriting): Likewise.
53164         * tests/test-fflush.c (main): Avoid a failure on uClibc.
53165
53166 2007-06-08  Bruno Haible  <bruno@clisp.org>
53167
53168         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
53169         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
53170         * modules/gettext (Files): Add m4/intlmacosx.m4.
53171
53172 2007-06-07  Bruno Haible  <bruno@clisp.org>
53173
53174         * modules/localename-tests: New file.
53175         * tests/test-localename.c: New file.
53176
53177         New module 'localename'.
53178         * lib/localename.h: New file.
53179         * lib/localename.c: New file, from GNU gettext.
53180         * m4/localename.m4: New file.
53181         * modules/localename: New file.
53182
53183 2007-06-07  Bruno Haible  <bruno@clisp.org>
53184
53185         Work around the lack of <wchar.h> on some builds of uClibc.
53186         * doc/headers/wchar.texi: Update.
53187         * lib/wchar_.h: Include <wchar.h> only if it exists.
53188         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
53189         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
53190         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
53191         doesn't exist.
53192         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
53193         * modules/mbfile (Depends-on): Add wchar.
53194         * modules/mbiter (Depends-on): Likewise.
53195         * modules/mbuiter (Depends-on): Likewise.
53196         Reported by Simon Josefsson.
53197
53198 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53199
53200         Work around problem reported by Steven M. Schweda in
53201         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
53202         Tru64 5.1B with the Compaq compiler environment installed declares
53203         an 'isblank' function but does not define it in the C library.
53204         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
53205         * lib/regex_internal.h (isblank): Likewise.
53206         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53207         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53208
53209 2007-06-05  Bruno Haible  <bruno@clisp.org>
53210
53211         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53212         ia64.
53213         * modules/printf-safe: New file.
53214         * modules/fprintf-posix (Depends-on): Add printf-safe.
53215         * modules/printf-posix (Depends-on): Likewise.
53216         * modules/snprintf-posix (Depends-on): Likewise.
53217         * modules/sprintf-posix (Depends-on): Likewise.
53218         * modules/vasnprintf-posix (Depends-on): Likewise.
53219         * modules/vasprintf-posix (Depends-on): Likewise.
53220         * modules/vfprintf-posix (Depends-on): Likewise.
53221         * modules/vprintf-posix (Depends-on): Likewise.
53222         * modules/vsnprintf-posix (Depends-on): Likewise.
53223         * modules/vsprintf-posix (Depends-on): Likewise.
53224         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53225         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53226         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53227         "no" on i386, x86_64, ia64.
53228         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53229         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53230         on i386, x86_64, ia64.
53231         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53232         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53233         on i386, x86_64, ia64.
53234         * tests/test-vasnprintf-posix.c: Include float.h.
53235         (LDBL80_WORDS): New macro.
53236         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53237         on i386, x86_64, ia64.
53238         * tests/test-vasprintf-posix.c: Include float.h.
53239         (LDBL80_WORDS): New macro.
53240         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53241         on i386, x86_64, ia64.
53242         * tests/test-snprintf-posix.c: Include float.h.
53243         * tests/test-sprintf-posix.c: Likewise.
53244         * tests/test-vsnprintf-posix.c: Likewise.
53245         * tests/test-vsprintf-posix.c: Likewise.
53246
53247 2007-06-05  Bruno Haible  <bruno@clisp.org>
53248
53249         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53250         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53251         non-IEEE numbers on i386, x86_64, ia64.
53252         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53253         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53254         * tests/test-isnanl.h: Include float.h.
53255         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53256
53257 2007-06-05  Bruno Haible  <bruno@clisp.org>
53258
53259         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53260         also the %a / %A. Handle the %a / %A code before this extra handling.
53261
53262 2007-06-05  Bruno Haible  <bruno@clisp.org>
53263
53264         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53265         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53266
53267 2007-06-05  Bruno Haible  <bruno@clisp.org>
53268
53269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53270         typo in variable name.
53271
53272 2007-06-05  Eric Blake  <ebb9@byu.net>
53273
53274         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53275         Reported by Simon Josefsson.
53276
53277 2007-06-04  Bruno Haible  <bruno@clisp.org>
53278
53279         Avoid test failures on some PowerPC platforms.
53280         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53281         Define differently for PowerPC.
53282         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53283         Reported by Gary V. Vaughan <gary@gnu.org>.
53284
53285 2007-06-02  Bruno Haible  <bruno@clisp.org>
53286
53287         Fix test-stdint failure on FreeBSD/ia64.
53288         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53289         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53290         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53291         * doc/headers/stdint.texi: Update.
53292
53293 2007-06-01  Bruno Haible  <bruno@clisp.org>
53294
53295         * tests/test-binary-io.c (main): Pass a third argument to open().
53296         Reported by Gary V. Vaughan <gary@gnu.org>.
53297
53298 2007-06-01  Bruno Haible  <bruno@clisp.org>
53299
53300         * doc/functions/frexpl.texi: Update for mingw.
53301
53302 2007-06-01  Bruno Haible  <bruno@clisp.org>
53303
53304         * tests/test-lseek.c (main): Disable test of errno for invalid third
53305         argument.
53306         * doc/functions/lseek.texi: Update.
53307         Reported by Gary V. Vaughan <gary@gnu.org>.
53308
53309 2007-05-28  Bruno Haible  <bruno@clisp.org>
53310
53311         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53312
53313 2007-05-31  Eric Blake  <ebb9@byu.net>
53314
53315         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53316         cross compiling.
53317
53318 2007-05-30  Eric Blake  <ebb9@byu.net>
53319         and Bruno Haible  <bruno@clisp.org>
53320
53321         Work around mingw test failures exposed by m4-1.4.9b.
53322         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53323         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53324         moment.
53325
53326 2007-05-30  Bruno Haible  <bruno@clisp.org>
53327
53328         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53329         assuming that they are closed. Needed on HP-UX 11.
53330
53331 2007-05-29  Bruno Haible  <bruno@clisp.org>
53332
53333         Fix a problem with #include_next.
53334         * lib/dirent_.h: Split the double-inclusion guard.
53335         * lib/fcntl_.h: Likewise.
53336         * lib/float_.h: Likewise.
53337         * lib/iconv_.h: Likewise.
53338         * lib/inttypes_.h: Likewise.
53339         * lib/locale_.h: Likewise.
53340         * lib/math_.h: Likewise.
53341         * lib/netinet_in_.h: Likewise.
53342         * lib/search_.h: Likewise.
53343         * lib/signal_.h: Likewise.
53344         * lib/stdint_.h: Likewise.
53345         * lib/stdio_.h: Likewise.
53346         * lib/stdlib_.h: Likewise.
53347         * lib/string_.h: Likewise.
53348         * lib/sys_select_.h: Likewise.
53349         * lib/sys_socket_.h: Likewise.
53350         * lib/sys_stat_.h: Likewise.
53351         * lib/sys_time_.h: Likewise.
53352         * lib/sysexits_.h: Likewise.
53353         * lib/time_.h: Likewise.
53354         * lib/unistd_.h: Likewise.
53355         * lib/wchar_.h: Likewise.
53356         * lib/wctype_.h: Likewise.
53357
53358 2007-05-29  Bruno Haible  <bruno@clisp.org>
53359
53360         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53361         for the moment.
53362
53363 2007-05-29  Bruno Haible  <bruno@clisp.org>
53364
53365         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53366         invocation.
53367         Reported by Eric Blake.
53368
53369 2007-05-29  Bruno Haible  <bruno@clisp.org>
53370
53371         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53372         compiling case.
53373
53374 2007-05-29  Eric Blake  <ebb9@byu.net>
53375             Bruno Haible  <bruno@clisp.org>
53376
53377         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53378         cross compiles.
53379
53380 2007-05-28  Eric Blake  <ebb9@byu.net>
53381
53382         * modules/closein-tests (test_closein_LDADD): Support test on
53383         cygwin with libtool.
53384
53385 2007-05-28  Bruno Haible  <bruno@clisp.org>
53386
53387         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53388         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53389         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53390         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53391         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53392         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53393         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53394         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53395         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53396
53397 2007-05-28  Eric Blake  <ebb9@byu.net>
53398
53399         Unconditionally include <config.h> in unit tests.
53400         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53401         * tests/test-allocsa.c, tests/test-arcfour.c,
53402         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53403         tests/test-array_list.c, tests/test-array_oset.c,
53404         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53405         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53406         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53407         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53408         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53409         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53410         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53411         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53412         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53413         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53414         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53415         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53416         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53417         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53418         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53419         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53420         test-md5.c, test-memmem.c, test-printf-posix.c,
53421         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53422         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53423         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53424         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53425         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53426         test-vasnprintf-posix2.c, test-vasnprintf.c,
53427         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53428         test-vfprintf-posix.c, test-vprintf-posix.c,
53429         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53430         test-xvasprintf.c: Likewise.
53431
53432 2007-05-28  Bruno Haible  <bruno@clisp.org>
53433
53434         * gnulib-tool (func_import): Remember the --with-tests command-line
53435         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53436         Reported by Eric Blake.
53437
53438 2007-05-28  Bruno Haible  <bruno@clisp.org>
53439
53440         * modules/ftell-tests: New file.
53441         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53442         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53443
53444         * lib/ftell.c: New file.
53445         * modules/ftell: New file.
53446         * m4/ftell.m4: New file.
53447         * doc/functions/ftell.texi: Update.
53448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53449         REPLACE_FTELL.
53450         * lib/stdio_.h (rpl_ftell): New declaration.
53451         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53452         REPLACE_FTELL.
53453
53454 2007-05-28  Eric Blake  <ebb9@byu.net>
53455
53456         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53457
53458 2007-05-28  Bruno Haible  <bruno@clisp.org>
53459
53460         * modules/fseek-tests: New file.
53461         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53462         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53463
53464         * lib/fseek.c: New file.
53465         * modules/fseek: New file.
53466         * m4/fseek.m4: New file.
53467         * doc/functions/fseek.texi: Update.
53468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53469         REPLACE_FSEEK.
53470         * lib/stdio_.h (rpl_fseek): New declaration.
53471         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53472         REPLACE_FSEEK.
53473
53474 2007-05-28  Bruno Haible  <bruno@clisp.org>
53475
53476         * lib/stdio_.h (fflush): More comments.
53477
53478 2007-05-28  Bruno Haible  <bruno@clisp.org>
53479
53480         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53481         runtime test.
53482
53483 2007-05-28  Eric Blake  <ebb9@byu.net>
53484
53485         Improve lseek module.
53486         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53487         * lib/unistd_.h (lseek): Scale back link warning message.
53488         * tests/test-lseek.c: Beef up test.
53489         * tests/test-lseek.sh: Exercise more facets of lseek.
53490         Reported by Bruno Haible.
53491
53492 2007-05-28  Bruno Haible  <bruno@clisp.org>
53493
53494         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53495         to define.
53496
53497 2007-05-27  Bruno Haible  <bruno@clisp.org>
53498
53499         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53500
53501 2007-05-27  Bruno Haible  <bruno@clisp.org>
53502
53503         * modules/openmp: New file.
53504         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53505         Noah Misch.
53506
53507 2007-05-26  Bruno Haible  <bruno@clisp.org>
53508
53509         * modules/chdir-long (Depends-on): Add fchdir.
53510         * modules/chdir-safer (Depends-on): Likewise.
53511         * modules/fts (Depends-on): Likewise.
53512         * modules/fts-lgpl (Depends-on): Likewise.
53513         * modules/openat (Depends-on): Likewise.
53514         * modules/savewd (Depends-on): Likewise.
53515
53516 2007-05-24  Eric Blake  <ebb9@byu.net>
53517
53518         Fix lseek on mingw.
53519         * modules/lseek: New module.
53520         * m4/lseek.m4: New file.
53521         * lib/lseek.c: New file.
53522         * modules/lseek-tests: New file.
53523         * tests/test-lseek.c: New file.
53524         * tests/test-lseek.sh: New file.
53525         * MODULES.html.sh: Document lseek module.
53526         * modules/fflush (Depends-on): Add lseek, fseeko.
53527         * modules/fseeko (Depends-on): Likewise.
53528         * modules/ftello (Depends-on): Likewise.
53529         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53530         broken.
53531         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53532         broken.
53533         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53534         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53535         * lib/ftello.c (rpl_ftello): Likewise.
53536         * tests/test-fseeko.c (main): Test this.
53537         * tests/test-fseeko.sh: Likewise.
53538         * tests/test-ftello.c (main): Likewise.
53539         * tests/test-ftello.sh: Likewise.
53540         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53541         implies replacing fseek.
53542         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53543         HAVE_FTELLO.
53544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53545         * modules/unistd (Makefile.am): Likewise.
53546         * lib/unistd_.h (lseek): Declare a replacement.
53547         * doc/functions/lseek.texi (lseek): Document this fix.
53548         * doc/functions/fseek.texi (fseek): Likewise.
53549         * doc/functions/ftell.texi (ftell): Likewise.
53550
53551 2007-05-24  Bruno Haible  <bruno@clisp.org>
53552
53553         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53554         in the printed representation of a NaN.
53555         * tests/test-vasprintf-posix.c (test_function): Likewise.
53556         * tests/test-snprintf-posix.h (test_function): Likewise.
53557         * tests/test-sprintf-posix.h (test_function): Likewise.
53558         Reported by Eric Blake.
53559
53560 2007-05-23  Eric Blake  <ebb9@byu.net>
53561
53562         Fix fseeko/ftello on cygwin 1.5.24.
53563         * doc/functions/fseeko.texi (fseeko): Document the fix.
53564         * doc/functions/ftello.texi (ftello): Document the fix.
53565         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53566         * doc/functions/stdout.text (stdout): New file.
53567         * doc/functions/stderr.text (stderr): New file.
53568         * doc/gnulib.texi (Function Substitutes): Use new files.
53569         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53570         prior to 1.7.0.
53571         * tests/test-ftello.c (main): Likewise for ftello.
53572         * tests/test-fseeko.sh: New file.
53573         * tests/test-ftello.sh: New file.
53574         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53575         with seekable stdin.
53576         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53577         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53578         (gl_REPLACE_FSEEKO): New macro.
53579         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53580         * modules/fseeko (Files): Distribute fseeko.c.
53581         * modules/ftello (Files): Distribute ftello.c.
53582         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53583         mode.
53584         * lib/ftello.c (rpl_ftello): New file.
53585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53586         fseeko, ftello.
53587         (gl_STDIN_LARGE_OFFSET): New macro.
53588         * modules/stdio (Makefile.am): Perform the replacement.
53589         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53590
53591 2007-05-23  Bruno Haible  <bruno@clisp.org>
53592
53593         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53594         GNULIB_POSIXCHECK is defined.
53595
53596 2007-05-21  Bruno Haible  <bruno@clisp.org>
53597
53598         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53599         Check also the output for NaN arguments. When cross-compiling, guess
53600         no on IRIX.
53601         * lib/vasnprintf.c: Update comments.
53602         * tests/test-vasnprintf-posix.c (strisnan): New function.
53603         (test_function): Use it.
53604         * tests/test-vasprintf-posix.c (strisnan): New function.
53605         (test_function): Use it.
53606         * tests/test-snprintf-posix.h (strisnan): New function.
53607         (test_function): Use it.
53608         * tests/test-sprintf-posix.h (strisnan): New function.
53609         (test_function): Use it.
53610         Reported by Eric Blake.
53611
53612 2007-05-20  Bruno Haible  <bruno@clisp.org>
53613
53614         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53615         numbers that fails on BeOS.
53616         * doc/functions/frexpl.texi: Update.
53617
53618 2007-05-20  Jim Meyering  <jim@meyering.net>
53619
53620         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53621         forced upon us by glibc-2.6.
53622
53623 2007-05-20  Bruno Haible  <bruno@clisp.org>
53624
53625         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53626         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53627         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53628         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53629         NEED_PRINTF_INFINITE.
53630         (is_infinitel): New function.
53631         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53632         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53633         gl_PREREQ_VASNPRINTF_INFINITE.
53634         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53635         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53636         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53637         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53638         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53639         gl_PREREQ_VASNPRINTF_INFINITE.
53640         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53641         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53644         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53645         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53646         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53647         * doc/functions/fprintf.texi: Update.
53648         * doc/functions/printf.texi: Update.
53649         * doc/functions/snprintf.texi: Update.
53650         * doc/functions/sprintf.texi: Update.
53651         * doc/functions/vfprintf.texi: Update.
53652         * doc/functions/vprintf.texi: Update.
53653         * doc/functions/vsnprintf.texi: Update.
53654         * doc/functions/vsprintf.texi: Update.
53655
53656 2007-05-20  Bruno Haible  <bruno@clisp.org>
53657
53658         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53659         was not found in libc.
53660         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53661
53662 2007-05-20  Bruno Haible  <bruno@clisp.org>
53663
53664         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53665         printed as "-nan" instead of "nan".
53666         * tests/test-vasprintf-posix.c (test_function): Likewise.
53667         * tests/test-snprintf-posix.h (test_function): Likewise.
53668         * tests/test-sprintf-posix.h (test_function): Likewise.
53669         Needed for HP-UX 11.
53670
53671 2007-05-20  Jim Meyering  <jim@meyering.net>
53672
53673         Fix buggy test for the fchownat-deref bug.
53674         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53675         symlink required for the run-test.  Without it, this test would
53676         always declare that fchownat doesn't work, and client code would
53677         unnecessarily use the replacement function with fixed libc.
53678         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53679         Reported by Greg Schafer.
53680
53681 2007-05-19  Bruno Haible  <bruno@clisp.org>
53682
53683         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53684         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53685         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53686         Needed for IRIX 6.5 and Solaris 2.5.1.
53687
53688 2007-05-19  Bruno Haible  <bruno@clisp.org>
53689
53690         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53691         (test_function): Skip tests involving -0.0 on platforms where
53692         -0.0 = 0.0.
53693         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53694         (test_function): Skip tests involving -0.0 on platforms where
53695         -0.0 = 0.0.
53696         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53697         (test_function): Skip tests involving -0.0 on platforms where
53698         -0.0 = 0.0.
53699         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53700         (test_function): Skip tests involving -0.0 on platforms where
53701         -0.0 = 0.0.
53702         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53703         tests.
53704         * tests/test-printf-posix.h (test_function): Likewise.
53705         * tests/test-printf-posix.output: Remove all -0.0 related results.
53706         Needed for IRIX 6.5.
53707
53708 2007-05-19  Bruno Haible  <bruno@clisp.org>
53709
53710         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53711         printed as "nan0x7fffffff" instead of "nan".
53712         * tests/test-vasprintf-posix.c (test_function): Likewise.
53713         * tests/test-snprintf-posix.h (test_function): Likewise.
53714         * tests/test-sprintf-posix.h (test_function): Likewise.
53715         * tests/test-fprintf-posix.h (NaN): Remove macro.
53716         (test_function): Remove all NaN related tests.
53717         * tests/test-printf-posix.h (NaN): Remove macro.
53718         (test_function): Remove all NaN related tests.
53719         * tests/test-printf-posix.output: Remove all NaN related results.
53720         Needed for IRIX 6.5.
53721
53722 2007-05-19  Bruno Haible  <bruno@clisp.org>
53723
53724         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53725         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53726
53727 2007-05-19  Bruno Haible  <bruno@clisp.org>
53728
53729         * lib/float_.h: New file.
53730         * m4/float_h.m4: New file.
53731         * modules/float: New file.
53732         * modules/isnanl (Dependencies): Add float.
53733         * modules/isnanl-nolibm (Dependencies): Likewise.
53734         * modules/mathl (Dependencies): Likewise.
53735         * modules/printf-frexpl (Dependencies): Likewise.
53736         * modules/signbit (Dependencies): Likewise.
53737         * modules/vasnprintf (Dependencies): Likewise.
53738         * doc/headers/float.texi: Update.
53739
53740 2007-05-19  Jim Meyering  <jim@meyering.net>
53741
53742         * lib/utimens.c (gl_futimens): Rename from futimens,
53743         now that glibc-2.6 declares futimens.
53744         * lib/utimens.h: Likewise.
53745
53746 2007-05-19  Bruno Haible  <bruno@clisp.org>
53747
53748         Avoid test failures on mingw.
53749         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53750         * tests/test-printf-posix.sh: Likewise.
53751         * tests/test-vfprintf-posix.sh: Likewise.
53752         * tests/test-vprintf-posix.sh: Likewise.
53753
53754 2007-05-19  Bruno Haible  <bruno@clisp.org>
53755
53756         Fix *printf result for NaN, Inf, -0.0 on mingw.
53757         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53758         * lib/vasnprintf.c: Include math.h and isnan.h.
53759         (is_infinite_or_zero): New function.
53760         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53761         values in the %f, %F, %e, %E, %g, %G directives.
53762         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53763         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53764         gl_PRINTF_INFINITE and test its result. Invoke
53765         gl_PREREQ_VASNPRINTF_INFINITE.
53766         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53767         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53768         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53769         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53770         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53771         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53772         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53773         * doc/functions/fprintf.texi: Update.
53774         * doc/functions/printf.texi: Update.
53775         * doc/functions/snprintf.texi: Update.
53776         * doc/functions/sprintf.texi: Update.
53777         * doc/functions/vfprintf.texi: Update.
53778         * doc/functions/vprintf.texi: Update.
53779         * doc/functions/vsnprintf.texi: Update.
53780         * doc/functions/vsprintf.texi: Update.
53781
53782 2007-05-19  Bruno Haible  <bruno@clisp.org>
53783
53784         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
53785         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
53786         Instead of multiplying with 10^k, set extra_zeroes to k.
53787         (scale10_round_long_double): Remove function.
53788
53789 2007-05-18  Bruno Haible  <bruno@clisp.org>
53790
53791         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
53792         introduced on 2007-05-06.
53793
53794 2007-05-18  Bruno Haible  <bruno@clisp.org>
53795
53796         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
53797         %g directives.
53798         * tests/test-vasprintf-posix.c (test_function): Likewise.
53799         * tests/test-snprintf-posix.h (test_function): Likewise.
53800         * tests/test-sprintf-posix.h (test_function): Likewise.
53801
53802 2007-05-18  Bruno Haible  <bruno@clisp.org>
53803
53804         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
53805         (strmatch): New function.
53806         (test_function): Test the %f directive on numbers of various exponents.
53807         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
53808         (strmatch): New function.
53809         (test_function): Test the %f directive on numbers of various exponents.
53810         * tests/test-snprintf-posix.h (strmatch): New function.
53811         (test_function): Test the %f directive on numbers of various exponents.
53812         * tests/test-sprintf-posix.h (strmatch): New function.
53813         (test_function): Test the %f directive on numbers of various exponents.
53814         * tests/test-snprintf-posix.c (SIZEOF): New macro.
53815         * tests/test-sprintf-posix.c (SIZEOF): New macro.
53816         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
53817         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
53818
53819 2007-05-18  Bruno Haible  <bruno@clisp.org>
53820
53821         Add support for 'long double' number output.
53822         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
53823         * lib/vasnprintf.c: Include math.h and float+.h.
53824         (mp_limb_t): New type.
53825         (GMP_LIMB_BITS): New macro.
53826         (mp_twolimb_t): New type.
53827         (GMP_TWOLIMB_BITS): New macro.
53828         (mpn_t): New type.
53829         (multiply, divide, convert_to_decimal, decode_long_double,
53830         scale10_round_long_double, scale10_round_decimal_long_double,
53831         floorlog10l): New functions.
53832         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
53833         for the %f, %F, %e, %E, %g, %G directives.
53834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
53835         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53836         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
53837         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
53838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53839         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53840         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53841         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53842         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53844         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53845         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
53846         * modules/snprintf-posix (Depends-on): Likewise.
53847         * modules/sprintf-posix (Depends-on): Likewise.
53848         * modules/vasnprintf-posix (Depends-on): Likewise.
53849         * modules/vasprintf-posix (Depends-on): Likewise.
53850         * modules/vfprintf-posix (Depends-on): Likewise.
53851         * modules/vsnprintf-posix (Depends-on): Likewise.
53852         * modules/vsprintf-posix (Depends-on): Likewise.
53853         * modules/vasnprintf (Files): Add lib/float+.h.
53854         * doc/functions/fprintf.texi: Update.
53855         * doc/functions/printf.texi: Update.
53856         * doc/functions/snprintf.texi: Update.
53857         * doc/functions/sprintf.texi: Update.
53858         * doc/functions/vfprintf.texi: Update.
53859         * doc/functions/vprintf.texi: Update.
53860         * doc/functions/vsnprintf.texi: Update.
53861         * doc/functions/vsprintf.texi: Update.
53862
53863 2007-05-18  Bruno Haible  <bruno@clisp.org>
53864
53865         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
53866
53867 2007-05-18  Bruno Haible  <bruno@clisp.org>
53868
53869         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
53870         for printing 64-bit integers. Needed for mingw.
53871
53872 2007-05-18  Bruno Haible  <bruno@clisp.org>
53873
53874         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53875         gl_FUNC_FREXPL_WORKS.
53876         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
53877
53878 2007-05-18  Bruno Haible  <bruno@clisp.org>
53879
53880         * modules/frexpl-nolibm-tests: New file.
53881
53882         * modules/frexpl-nolibm: New file.
53883         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
53884
53885 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53886
53887         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
53888         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53889         GCC 4.2, which otherwise issues a lot of warnings.
53890         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
53891         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
53892         Likewise.
53893         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
53894         * modules/iconv_open (iconv.h): Likewise.
53895         * modules/locale (locale.h): Likewise.
53896         * modules/netinet_in (netinet/in.h): Likewise.
53897         * modules/sys_select (sys_select.h): Likewise.
53898         * modules/sys_socket (sys/socket.h): Likewise.
53899         * modules/sys_stat (sys/stat.h): Likewise.
53900         * modules/sysexits (sysexits.h): Likewise.
53901         * modules/unistd (unistd.h): Likewise.
53902
53903 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53904
53905         * modules/closein-tests (Makefile.am): Distribute
53906         `test-closein.sh'.
53907
53908 2007-05-17  Bruno Haible  <bruno@clisp.org>
53909
53910         * tests/test-printf-posix.output: Renamed from
53911         tests/test-fprintf-posix.out.
53912         * modules/fprintf-posix-tests: Update.
53913         * modules/printf-posix-tests: Update.
53914         * modules/vfprintf-posix-tests: Update.
53915         * modules/vprintf-posix-tests: Update.
53916         * tests/test-fprintf-posix.sh: Update.
53917         * tests/test-printf-posix.sh: Update.
53918         * tests/test-vfprintf-posix.sh: Update.
53919         * tests/test-vprintf-posix.sh: Update.
53920         Reported by Ralf Wildenhues.
53921
53922 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53923
53924         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
53925         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53926         GCC 4.2, which otherwise issues a lot of warnings.
53927         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
53928         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
53929         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
53930         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
53931         it should no longer be needed.
53932         * lib/string_.h: Likewise.
53933         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
53934         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
53935         * modules/inttypes (inttypes.h): Likewise.
53936         * modules/math (math.h): Likewise.
53937         * modules/search (search.h): Likewise.
53938         * modules/signal (signal.h): Likewise.
53939         * modules/stdint (stdint.h): Likewise.
53940         * modules/stdio (stdio.h): Likewise.
53941         * modules/stdlib (stdlib.h): Likewise.
53942         * modules/string (string.h): Likewise.
53943         * modules/sys_time (sys/time.h): Likewise.
53944         * modules/time (time.h): Likewise.
53945         * modules/wchar (wchar.h): Likewise.
53946         * modules/wctype (wtype.h): Likewise.
53947
53948 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53949
53950         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
53951
53952 2007-05-13  Bruno Haible  <bruno@clisp.org>
53953
53954         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
53955         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53956         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
53957         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53958         (gl_PREREQ_STRTOK_R): Don't require it here.
53959
53960 2007-05-13  Bruno Haible  <bruno@clisp.org>
53961
53962         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
53963         when used in C++ mode.
53964
53965 2007-05-12  Bruno Haible  <bruno@clisp.org>
53966
53967         * lib/linebuffer.h: Tweak doc.
53968         * lib/linebuffer.c: Likewise.
53969
53970 2007-05-12  James Youngman  <jay@gnu.org>
53971
53972         * lib/linebuffer.c (readlinebuffer_delim): New function,
53973         like readlinebuffer, but use a caller-specified delimiter.
53974         (readlinebuffer): Just call readlinebuffer_delim with '\n'
53975         as the delimiter.
53976         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
53977
53978 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53979
53980         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
53981         * modules/openat (Files): Remove openat-die.c.
53982         (Depends-on): Add openat-die.
53983         * modules/openat-die: New module.
53984
53985 2007-05-06  Bruno Haible  <bruno@clisp.org>
53986
53987         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
53988         Update with info about Cygwin.
53989         * doc/functions/fprintf.texi: Update.
53990         * doc/functions/printf.texi: Update.
53991         * doc/functions/snprintf.texi: Update.
53992         * doc/functions/sprintf.texi: Update.
53993         * doc/functions/vfprintf.texi: Update.
53994         * doc/functions/vprintf.texi: Update.
53995         * doc/functions/vsnprintf.texi: Update.
53996         * doc/functions/vsprintf.texi: Update.
53997         Reported by Eric Blake.
53998
53999 2007-05-06  Bruno Haible  <bruno@clisp.org>
54000
54001         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
54002         padding ourselves for the floating-point directives.
54003         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
54004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
54005         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54006         gl_PRINTF_FLAG_ZERO and test its result. Invoke
54007         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
54008         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54009         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54010         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54011         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54012         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54014         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54015         * tests/test-snprintf-posix.h (test_function): Also check the width
54016         and some flags in the %f directive.
54017         * tests/test-sprintf-posix.h (test_function): Likewise.
54018         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54019         * tests/test-vasprintf-posix.c (test_function): Likewise.
54020         * doc/functions/fprintf.texi: Update.
54021         * doc/functions/printf.texi: Update.
54022         * doc/functions/snprintf.texi: Update.
54023         * doc/functions/sprintf.texi: Update.
54024         * doc/functions/vfprintf.texi: Update.
54025         * doc/functions/vprintf.texi: Update.
54026         * doc/functions/vsnprintf.texi: Update.
54027         * doc/functions/vsprintf.texi: Update.
54028
54029 2007-05-06  Bruno Haible  <bruno@clisp.org>
54030
54031         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
54032         pass the ' flag character to sprintf or snprintf.
54033         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
54034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
54035         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54036         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
54037         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
54038         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54039         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54040         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54041         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54042         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54043         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54044         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54045         * tests/test-snprintf-posix.h (test_function): Also check the grouping
54046         flag.
54047         * tests/test-sprintf-posix.h (test_function): Likewise.
54048         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54049         * tests/test-vasprintf-posix.c (test_function): Likewise.
54050         * doc/functions/fprintf.texi: Update.
54051         * doc/functions/printf.texi: Update.
54052         * doc/functions/snprintf.texi: Update.
54053         * doc/functions/sprintf.texi: Update.
54054         * doc/functions/vfprintf.texi: Update.
54055         * doc/functions/vprintf.texi: Update.
54056         * doc/functions/vsnprintf.texi: Update.
54057         * doc/functions/vsprintf.texi: Update.
54058
54059 2007-05-01  Bruno Haible  <bruno@clisp.org>
54060
54061         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
54062
54063 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
54064
54065         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
54066         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
54067
54068 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54069
54070         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
54071         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
54072         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
54073
54074 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
54075
54076         * lib/argp-help.c (struct hol_entry): New member `ord'.
54077         (HOL_ENTRY_PTRCMP): Use ord for comparison
54078         (hol_sort): Initialize ord.
54079
54080 2007-05-01  Bruno Haible  <bruno@clisp.org>
54081
54082         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
54083         Reported by Eric Blake.
54084         * doc/gnulib.texi (Function Substitutes): Update.
54085
54086 2007-05-01  Bruno Haible  <bruno@clisp.org>
54087
54088         * doc/functions.texi: Remove file, now redundant through
54089         doc/functions/*.texi.
54090
54091 2007-05-01  Bruno Haible  <bruno@clisp.org>
54092
54093         * modules/argp (Depends-on): Add sleep.
54094
54095 2007-05-01  Bruno Haible  <bruno@clisp.org>
54096
54097         * modules/sleep-tests: New file.
54098         * tests/test-sleep.c: New file.
54099
54100         * modules/sleep: New file.
54101         * lib/sleep.c: New file.
54102         * m4/sleep.m4: New file.
54103         * lib/unistd_.h (sleep): New declaration.
54104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
54105         HAVE_SLEEP.
54106         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
54107         * doc/functions/sleep.texi: Document the sleep module.
54108
54109 2007-05-01  Bruno Haible  <bruno@clisp.org>
54110
54111         * lib/sigprocmask.h: Remove file.
54112         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
54113         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
54114         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
54115         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
54116         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
54117         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
54118         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
54119         HAVE_SIGSET_T as a shell variable.
54120         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
54121         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
54122         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
54123         (Depends-on): Add signal. Remove verify.
54124         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
54125         (Include): Mention <signal.h> instead of sigprocmask.h.
54126         * NEWS: Mention the change.
54127         * lib/fatal-signal.c: Don't include sigprocmask.h.
54128
54129 2007-05-01  Bruno Haible  <bruno@clisp.org>
54130
54131         * modules/signal: New file.
54132         * lib/signal_.h: New file.
54133         * m4/signal_h.m4: New file.
54134
54135 2007-05-01  Bruno Haible  <bruno@clisp.org>
54136
54137         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
54138         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
54139         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
54140         HAVE_WCTYPE_CTMP_BUG into wctype.h.
54141
54142 2007-05-01  Bruno Haible  <bruno@clisp.org>
54143
54144         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
54145         configure time.
54146         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
54147         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
54148         * modules/sys_stat (Makefile.am): Substitute their values into
54149         sys/stat.h.
54150
54151 2007-05-01  Bruno Haible  <bruno@clisp.org>
54152
54153         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
54154         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
54155         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
54156
54157 2007-05-01  Bruno Haible  <bruno@clisp.org>
54158
54159         * doc/header/assert.texi: Undo last change: don't mention the gnulib
54160         'assert' module here.
54161
54162 2007-05-01  Bruno Haible  <bruno@clisp.org>
54163
54164         * doc/functions/*.texi: New files.
54165         * doc/functions/google-ranking.txt: New file.
54166         * doc/gnulib.texi (Function Substitutes): New chapter.
54167         (ctime, inet_ntoa): Remove sections.
54168         * doc/ctime.texi: Remove file.
54169         * doc/inet_ntoa.texi: Remove file.
54170         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
54171         dependencies.
54172         (%.info): New rule, specifying a --reference-limit.
54173
54174 2007-05-01  Bruno Haible  <bruno@clisp.org>
54175
54176         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
54177
54178 2007-05-01  Bruno Haible  <bruno@clisp.org>
54179
54180         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
54181         the portability of 'mkdir' to mingw systems.
54182
54183 2007-05-01  Bruno Haible  <bruno@clisp.org>
54184
54185         * doc/headers/google-ranking.txt: New file.
54186
54187 2007-04-30  Eric Blake  <ebb9@byu.net>
54188
54189         Prefer fseeko to fseek.
54190         * modules/getpass (Depends-on): Add fseeko.
54191         * lib/getpass.c (getpass): Use fseeko, not fseek.
54192
54193 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
54194
54195         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
54196         assumes the sorting is stable, while most qsort implementations
54197         are not.  Use argument addresses to ensure they never compare as
54198         equal.
54199
54200         * tests/test-argp-2.sh (usage-indent test): Fix output
54201         (func_compare): Restore diff options
54202         * tests/test-argp.c: Restore #include "progname.h"
54203
54204 2007-04-29  Bruno Haible  <bruno@clisp.org>
54205
54206         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54207         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54208         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54209         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54210         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54211         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54212         (TESTS, check_PROGRAMS): Add test-snprintf.
54213         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54214         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54215         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54216         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54217         assertions that fail on HP-UX, OSF/1, or IRIX.
54218         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54219
54220 2007-04-29  Bruno Haible  <bruno@clisp.org>
54221
54222         * MODULES.html.sh (posix_functions): Remove 'contents'.
54223
54224 2007-04-29  Karl Berry  <karl@gnu.org>
54225
54226         * config/srclist.txt (gendocs_template_min): new entry.
54227
54228 2007-04-29  Bruno Haible  <bruno@clisp.org>
54229
54230         Work around fpurge bug on BSD systems.
54231         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54232         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54233         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54234         fpurge to rpl_fpurge if the system already has this function.
54235         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54236         the case where the system already has this function. Correct invariants
54237         on BSD systems.
54238         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54239         BSD systems.
54240
54241 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54242
54243         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54244         proposed by Sven Verdoolaege.
54245
54246         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54247         options.
54248         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54249         (usage and help tests): Update
54250
54251 2007-04-29  Bruno Haible  <bruno@clisp.org>
54252
54253         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54254         Print more information in case of failure. Disable a test on BeOS.
54255
54256 2007-04-29  Bruno Haible  <bruno@clisp.org>
54257
54258         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54259         This helps debugging on systems on which no gdb is available.
54260
54261 2007-04-29  Bruno Haible  <bruno@clisp.org>
54262
54263         * lib/freading.h: Improve comments.
54264         * lib/fwriting.h: Likewise.
54265         * tests/test-freading.c (main): Don't check freading immediately after
54266         repositioning. Needed for glibc.
54267
54268 2007-04-29  Bruno Haible  <bruno@clisp.org>
54269
54270         * lib/freading.c (freading): Trivial simplification.
54271
54272 2007-04-28  Bruno Haible  <bruno@clisp.org>
54273
54274         * tests/test-fwriting.c (main): Also test the interaction between
54275         fflush and fwriting.
54276         * modules/fwriting-tests (Depends-on): Add fflush.
54277
54278         * tests/test-freading.c (main): Also test the interaction between
54279         fflush and freading.
54280         * modules/freading-tests (Depends-on): Add fflush.
54281
54282 2007-04-28  Bruno Haible  <bruno@clisp.org>
54283
54284         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54285         fseeko and ftello.
54286         Suggested by Eric Blake.
54287
54288 2007-04-28  Jim Meyering  <jim@meyering.net>
54289
54290         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54291         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54292         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54293
54294 2007-04-27  Eric Blake  <ebb9@byu.net>
54295
54296         * doc/headers/assert.texi (assert.h): Document assert module use.
54297
54298 2007-04-27  Bruno Haible  <bruno@clisp.org>
54299
54300         * doc/headers/*.texi: New files.
54301         * doc/gnulib.texi (Header File Substitutes): New chapter.
54302         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54303         dependencies.
54304         (standards.info ,standards.html, standards.dvi): Update dependencies.
54305         (mostlyclean, clean): New targets.
54306
54307 2007-04-27  Bruno Haible  <bruno@clisp.org>
54308
54309         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54310         * modules/sysexits (Files, Makefile.am): Update.
54311
54312         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54313         * modules/sys_socket (Files, Makefile.am): Update.
54314
54315         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54316         * modules/sys_stat (Files, Makefile.am): Update.
54317
54318 2007-04-27  Eric Blake  <ebb9@byu.net>
54319
54320         * lib/freading.h: Improve comments.
54321         * lib/fwriting.h: Likewise.
54322         * lib/fflush.c: Likewise.
54323
54324         Fix closein for mingw.
54325         * modules/closein-tests: Add tests for closein.
54326         * tests/test-closein.c: New file.
54327         * tests/test-closein.sh: Likewise.
54328         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54329         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54330
54331 2007-04-27  Bruno Haible  <bruno@clisp.org>
54332
54333         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54334         version is < 6.
54335         * lib/math_.h [__DECC]: Likewise.
54336         * lib/stdio_.h [__DECC]: Likewise.
54337         * lib/stdlib_.h [__DECC]: Likewise.
54338         * lib/string_.h [__DECC]: Likewise.
54339         * lib/time_.h [__DECC]: Likewise.
54340         * lib/wchar_.h [__DECC]: Likewise.
54341         * lib/wctype_.h [__DECC]: Likewise.
54342
54343 2007-04-27  Bruno Haible  <bruno@clisp.org>
54344
54345         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54346
54347 2007-04-27  Bruno Haible  <bruno@clisp.org>
54348
54349         * lib/fflush.c: Add comments.
54350         * modules/fpurge-tests (Depends-on): Add fflush.
54351         * modules/freadable-tests (Depends-on): Likewise.
54352         * modules/fwritable-tests (Depends-on): Likewise.
54353
54354 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54355
54356         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54357         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54358         Report by Bruno Haible <bruno@clisp.org>.
54359
54360 2007-04-26  Eric Blake  <ebb9@byu.net>
54361
54362         Fix fflush on mingw.
54363         * modules/fflush (Depends-on): Add freading.
54364         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54365         but unread data.
54366
54367 2007-04-26  Eric Blake  <ebb9@byu.net>
54368         and Bruno Haible  <bruno@clisp.org>
54369
54370         Implement freading and fwriting.
54371         * lib/freading.c: New file.
54372         * lib/freading.h: Likewise.
54373         * m4/freading.m4: Likewise.
54374         * modules/freading: Likewise.
54375         * modules/freading-tests: Likewise.
54376         * tests/test-freading.c: Likewise.
54377         * lib/fwriting.c: New file.
54378         * lib/fwriting.h: Likewise.
54379         * m4/fwriting.m4: Likewise.
54380         * modules/fwriting: Likewise.
54381         * modules/fwriting-tests: Likewise.
54382         * tests/test-fwriting.c: Likewise.
54383         * MODULES.html.sh (File stream based Input/Output): Mention them.
54384
54385 2007-04-26  Bruno Haible  <bruno@clisp.org>
54386
54387         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54388         'long' when we assume it.
54389         Suggested by Eric Blake.
54390
54391 2007-04-26  Bruno Haible  <bruno@clisp.org>
54392
54393         Ensure fseeko, ftello are declared on glibc systems.
54394         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54395         * modules/fseeko (configure.ac-early): Likewise.
54396         * modules/ftello (configure.ac-early): Likewise.
54397         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54398         AC_FUNC_FSEEKO for this.
54399         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54400         (gl_CHECK_FSEEKO): Remove macro.
54401
54402 2007-04-26  Bruno Haible  <bruno@clisp.org>
54403
54404         * tests/test-fflush.c (main): Also check the ftell result after
54405         fflush and fseek/fseeko.
54406         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54407         file descriptor position cache in the stream.
54408         * lib/fseeko.c (rpl_fseeko): Likewise.
54409
54410 2007-04-26  Bruno Haible  <bruno@clisp.org>
54411
54412         * modules/fflush-tests (Depends-on): Add fseeko.
54413
54414 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54415             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54416
54417         * lib/argz_.h: ensure error_t definition is obtained in same
54418         mechanism system argz.h would have.
54419         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54420         argz facilities are known bad.  Err on the side of caution if
54421         cross-compiling.
54422
54423 2007-04-25  Eric Blake  <ebb9@byu.net>
54424
54425         * lib/fpurge.c (includes): Use stdlib.h for free.
54426         * tests/test-fflush.c (main): Also test fflush-fseeko.
54427
54428 2007-04-25  Bruno Haible  <bruno@clisp.org>
54429
54430         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54431         * lib/fseeko.c: New file.
54432         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54433         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54434         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54435         gl_FUNC_FSEEKO.
54436         (gl_FUNC_FSEEKO): Invoke it.
54437         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54438         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54439         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54440
54441 2007-04-25  Bruno Haible  <bruno@clisp.org>
54442
54443         * modules/fflush (Depends-on): Add ftello.
54444
54445 2007-04-25  Bruno Haible  <bruno@clisp.org>
54446
54447         * modules/ftello-tests: New file.
54448         * tests/test-ftello.c: New file.
54449
54450         * modules/ftello: New file.
54451         * m4/ftello.m4: New file.
54452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54453         HAVE_FTELLO.
54454         * lib/stdio_.h (ftello): New declaration.
54455         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54456         HAVE_FTELLO.
54457
54458 2007-04-25  Bruno Haible  <bruno@clisp.org>
54459
54460         * modules/fseeko-tests: New file.
54461         * tests/test-fseeko.c: New file.
54462
54463         * modules/fseeko: New file.
54464         * m4/fseeko.m4: New file.
54465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54466         HAVE_FSEEKO.
54467         * lib/stdio_.h (fseeko): New declaration.
54468         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54469         HAVE_FSEEKO.
54470
54471 2007-04-25  Bruno Haible  <bruno@clisp.org>
54472
54473         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54474
54475 2007-04-25  Bruno Haible  <bruno@clisp.org>
54476
54477         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54478         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54479         * tests/test-unistd.c: Likewise.
54480         * tests/test-fcntl.c: Likewise.
54481
54482 2007-04-23  Eric Blake  <ebb9@byu.net>
54483
54484         * lib/fflush.c: Fix missing include.
54485         Reported by Bruno Haible.
54486
54487 2007-04-23  Bruno Haible  <bruno@clisp.org>
54488
54489         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54490         Reported by Eric Blake.
54491
54492 2007-04-23  Bruno Haible  <bruno@clisp.org>
54493
54494         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54495
54496 2007-04-23  Bruno Haible  <bruno@clisp.org>
54497
54498         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54499
54500 2007-04-23  Bruno Haible  <bruno@clisp.org>
54501
54502         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54503         Needed on HP-UX 11.
54504
54505 2007-04-16  Eric Blake  <ebb9@byu.net>
54506
54507         Make fflush rely on fpurge.
54508         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54509         open coding all variants.
54510         * modules/fflush (Depends-on): Add fpurge and unistd.
54511         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54512         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54513
54514         Fix --with-tests compilation on cygwin.
54515         * modules/argmatch-tests (Makefile.am): List gnulib library first
54516         in LDADD.
54517         * modules/argp-tests (Makefile.am): Likewise.
54518         * modules/array-list-tests (Makefile.am): Likewise.
54519         * modules/array-oset-tests (Makefile.am): Likewise.
54520         * modules/avltree-list-tests (Makefile.am): Likewise.
54521         * modules/avltree-oset-tests (Makefile.am): Likewise.
54522         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54523         * modules/carray-list-tests (Makefile.am): Likewise.
54524         * modules/dirname-tests (Makefile.am): Likewise.
54525         * modules/frexp-tests (Makefile.am): Likewise.
54526         * modules/isnanl-tests (Makefile.am): Likewise.
54527         * modules/linked-list-tests (Makefile.am): Likewise.
54528         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54529         * modules/lock-tests (Makefile.am): Likewise.
54530         * modules/rbtree-list-tests (Makefile.am): Likewise.
54531         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54532         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54533         * modules/tls-tests (Makefile.am): Likewise.
54534         * modules/tsearch-tests (Makefile.am): Likewise.
54535         * modules/xvasprintf-tests (Makefile.am): Likewise.
54536
54537         Fix fpurge for cygwin.
54538         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54539         value.
54540         * modules/fpurge-tests (Depends-on): Clean up trash.
54541
54542 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54543
54544         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54545
54546         * m4/autobuild.m4: Re-indent.
54547
54548 2007-04-13  Bruno Haible  <bruno@clisp.org>
54549
54550         * modules/fpurge-tests: New file.
54551         * tests/test-fpurge.c: New file.
54552
54553         * modules/fpurge: New file.
54554         * lib/fpurge.h: New file.
54555         * lib/fpurge.c: New file.
54556         * m4/fpurge.m4: New file.
54557
54558 2007-04-13  Bruno Haible  <bruno@clisp.org>
54559
54560         * modules/fbufmode-tests: New file.
54561         * tests/test-fbufmode.c: New file.
54562
54563         * modules/fbufmode: New file.
54564         * lib/fbufmode.h: New file.
54565         * lib/fbufmode.c: New file.
54566         * m4/fbufmode.m4: New file.
54567
54568 2007-04-13  Bruno Haible  <bruno@clisp.org>
54569
54570         * modules/fwritable-tests: New file.
54571         * tests/test-fwritable.c: New file.
54572
54573         * modules/fwritable: New file.
54574         * lib/fwritable.h: New file.
54575         * lib/fwritable.c: New file.
54576         * m4/fwritable.m4: New file.
54577
54578 2007-04-13  Bruno Haible  <bruno@clisp.org>
54579
54580         * modules/freadable-tests: New file.
54581         * tests/test-freadable.c: New file.
54582
54583         * modules/freadable: New file.
54584         * lib/freadable.h: New file.
54585         * lib/freadable.c: New file.
54586         * m4/freadable.m4: New file.
54587
54588 2007-04-13  Bruno Haible  <bruno@clisp.org>
54589
54590         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54591         MOSTLYCLEANFILES.
54592
54593 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54594
54595         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54596         gzip bootstrap.conf to avoid dragging in i18n machinery.
54597         (gnulib_tool_option): Use it.
54598
54599 2007-04-13  Bruno Haible  <bruno@clisp.org>
54600
54601         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54602         %F directives.
54603         * tests/test-vasprintf-posix.c (test_function): Likewise.
54604         * tests/test-snprintf-posix.h (test_function): Likewise.
54605         * tests/test-sprintf-posix.h (test_function): Likewise.
54606         * tests/test-fprintf-posix.h (test_function): Likewise.
54607         * tests/test-printf-posix.h (test_function): Likewise.
54608         * tests/test-fprintf-posix.out: Likewise.
54609
54610 2007-04-13  Bruno Haible  <bruno@clisp.org>
54611
54612         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54613         * modules/tls-tests (configure.ac): Likewise.
54614         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54615
54616 2007-04-13  Bruno Haible  <bruno@clisp.org>
54617
54618         * lib/tls.c (glthread_tls_get): Fix return type.
54619         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54620
54621 2007-04-12  Eric Blake  <ebb9@byu.net>
54622
54623         * modules/gettime (Depends-on): Remove gettime.
54624         Reported by Dmitry V. Levin.
54625
54626 2007-04-12  Bruno Haible  <bruno@clisp.org>
54627
54628         * modules/fflush (Include): Mention <stdio.h>.
54629         * modules/strtoimax (Include): Mention <inttypes.h>.
54630         * modules/strtoumax (Include): Likewise.
54631
54632 2007-04-12  Eric Blake  <ebb9@byu.net>
54633
54634         * .cvsignore: New file.
54635         * .gitignore: Likewise.
54636
54637 2007-04-12  Bruno Haible  <bruno@clisp.org>
54638
54639         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54640         not before, since $(LDADD) often contains libgnu.a.
54641         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54642         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54643         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54644         Needed on Cygwin.
54645
54646 2007-04-12  Eric Blake  <ebb9@byu.net>
54647
54648         Work around glibc's failure to flush stdin on fclose.
54649         * lib/closein.c (close_stdin): Flush stdin before closing.
54650
54651         Work around glibc's failure to reset seekable stdin on exit.
54652         * modules/closein: New module.
54653         * lib/closein.c: New file.
54654         * lib/closein.h: Likewise.
54655         * m4/closein.m4: Likewise.
54656         * MODULES.html.sh (File stream based Input/Output): Document it.
54657
54658 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54659
54660         * gnulib-tool: Rename generated 'autobuild' script to
54661         'do-autobuild' in --create-megatestdir output.
54662
54663         * doc/gnulib.texi (Build robot for gnulib): Fix.
54664
54665 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54666
54667         * modules/sysexits (Depends-on): Add absolute-header.
54668
54669 2007-04-12  Eric Blake  <ebb9@byu.net>
54670
54671         No need to preserve errno on success.
54672         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54673         Reported by Bruno Haible.
54674
54675 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54676
54677         * MODULES.html.sh (Support for maintaining and releasing
54678         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54679
54680 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54681
54682         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54683
54684 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54685
54686         * modules/autobuild: New module.
54687
54688         * m4/autobuild.m4: New file.
54689
54690 2007-04-11  Bruno Haible  <bruno@clisp.org>
54691
54692         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54693         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54695         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54696         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54697         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54698         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54699         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54700         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54701         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54702         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54703         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54704         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54705         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54706         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54707         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54708         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54709         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54710         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54711         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54712         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54713         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54714         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54715         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54716         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54717         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54718         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54719         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54720         Reported by Eric Blake.
54721
54722 2007-04-11  Bruno Haible  <bruno@clisp.org>
54723
54724         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54725
54726 2007-04-10  Bruno Haible  <bruno@clisp.org>
54727
54728         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54729         for NaN and Infinity. Needed on FreeBSD 6.1.
54730         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54731         regarding results for "%010a" of Infinity and NaN.
54732         * tests/test-vasprintf-posix.c (test_function): Likewise.
54733         * tests/test-snprintf-posix.h (test_function): Likewise.
54734         * tests/test-sprintf-posix.h (test_function): Likewise.
54735         * tests/test-fprintf-posix.h (test_function): Likewise.
54736         * tests/test-printf-posix.h (test_function): Likewise.
54737         * tests/test-fprintf-posix.out: Likewise.
54738
54739 2007-04-10  Bruno Haible  <bruno@clisp.org>
54740
54741         * modules/locale-tests: New file.
54742         * tests/test-locale.c: New file.
54743
54744         * modules/locale: New file.
54745         * lib/locale_.h: New file.
54746         * m4/locale_h.m4: New file.
54747
54748 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54749             Bruno Haible  <bruno@clisp.org>
54750
54751         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54752         be determined, test for availability of the copysignf, copysign,
54753         copysignl functions.
54754         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54755         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54756         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54757
54758 2007-04-09  Eric Blake  <ebb9@byu.net>
54759
54760         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54761         * modules/stdio (Makefile.am): Support fflush.
54762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54763         * modules/fflush: New file.
54764         * lib/fflush.c: Likewise.
54765         * m4/fflush.m4: Likewise.
54766         * modules/fflush-tests: New test.
54767         * tests/test-fflush.c: Likewise.
54768         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54769
54770 2007-04-06  Bruno Haible  <bruno@clisp.org>
54771
54772         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54773         (VASNPRINTF): Use signbit for faster determination whether to print a
54774         minus sign.
54775         * modules/vasnprintf (Files): Remove lib/float+.h.
54776         * modules/fprintf-posix (Depends-on): Add signbit.
54777         * modules/snprintf-posix (Depends-on): Likewise.
54778         * modules/sprintf-posix (Depends-on): Likewise.
54779         * modules/vasnprintf-posix (Depends-on): Likewise.
54780         * modules/vasprintf-posix (Depends-on): Likewise.
54781         * modules/vfprintf-posix (Depends-on): Likewise.
54782         * modules/vsnprintf-posix (Depends-on): Likewise.
54783         * modules/vsprintf-posix (Depends-on): Likewise.
54784
54785 2007-04-06  Bruno Haible  <bruno@clisp.org>
54786
54787         * tests/test-frexp.c (main): Test also the sign bit of zero results.
54788         * tests/test-frexpl.c (main): Likewise.
54789         * tests/test-ldexpl.c (main): Likewise.
54790         * modules/frexp-tests (Depends-on): Add signbit.
54791         * modules/frexpl-tests (Depdends-on): Likewise.
54792         * modules/ldexpl-tests (Depdends-on): Likewise.
54793
54794 2007-04-06  Bruno Haible  <bruno@clisp.org>
54795
54796         * modules/signbit-tests: New file.
54797         * tests/test-signbit.c: New file.
54798
54799         * modules/signbit: New file.
54800         * lib/signbitf.c: New file.
54801         * lib/signbitd.c: New file.
54802         * lib/signbitl.c: New file.
54803         * m4/signbit.m4: New file.
54804         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
54805         (signbit): New macro.
54806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
54807         REPLACE_SIGNBIT.
54808         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
54809         REPLACE_FREXPL into math.h.
54810
54811 2007-04-06  Bruno Haible  <bruno@clisp.org>
54812
54813         * modules/isnanf-nolibm-tests: New file.
54814         * tests/test-isnanf.c: New file.
54815
54816         * modules/isnanf-nolibm: New file.
54817         * lib/isnanf.h: New file.
54818         * lib/isnanf.c: New file.
54819         * lib/isnan.c: Consider the USE_FLOAT macro.
54820         * m4/isnanf.m4: New file.
54821
54822 2007-04-06  Bruno Haible  <bruno@clisp.org>
54823
54824         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
54825         (Link): New section.
54826
54827         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
54828
54829 2007-04-06  Bruno Haible  <bruno@clisp.org>
54830
54831         Assume the 'long double' type.
54832         * m4/longdouble.m4: Remove file.
54833         * config/srclist.txt: Don't mention longdouble.m4.
54834         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
54835         * lib/float+.h: Likewise.
54836         * lib/frexp.c: Likewise.
54837         * lib/printf-args.h: Likewise.
54838         * lib/printf-args.c: Likewise.
54839         * lib/printf-frexp.c: Likewise.
54840         * lib/printf-parse.c: Likewise.
54841         * lib/vasnprintf.c: Likewise.
54842         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
54843         * m4/intl.m4: Likewise.
54844         * m4/isnanl.m4: Likewise.
54845         * m4/printf.m4: Likewise.
54846         * m4/printf-frexpl.m4: Likewise.
54847         * m4/vasnprintf.m4: Likewise.
54848         * modules/allocsa (Files): Remove m4/longdouble.m4.
54849         * modules/gettext (Files): Likewise.
54850         * modules/relocatable-prog-wrapper (Files): Likewise.
54851         * modules/vasnprintf (Files): Likewise.
54852         * modules/isnanl (Files): Likewise.
54853         (Include): Simplify.
54854         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
54855         (Include): Simplify.
54856         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
54857         (Include): Simplify.
54858         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
54859         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54860         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
54861         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54862         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54863         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54864         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
54865         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54866         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54867         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54868         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
54869         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54870         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
54871         * tests/test-isnanl.c: Likewise.
54872         * tests/test-snprintf-posix.h: Likewise.
54873         * tests/test-sprintf-posix.h: Likewise.
54874         * tests/test-vasnprintf-posix.c: Likewise.
54875         * tests/test-vasnprintf-posix2.c: Likewise.
54876         * tests/test-vasprintf-posix.c: Likewise.
54877
54878 2007-04-06  Bruno Haible  <bruno@clisp.org>
54879
54880         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
54881         * lib/math_.h [__DECC]: Include the overridden include file through
54882         #include_next, outside the double-inclusion guard.
54883         * lib/stdio_.h [__DECC]: Likewise.
54884         * lib/stdlib_.h [__DECC]: Likewise.
54885         * lib/string_.h [__DECC]: Likewise.
54886         * lib/time_.h [__DECC]: Likewise.
54887         * lib/wchar_.h [__DECC]: Likewise.
54888         * lib/wctype_.h [__DECC]: Likewise.
54889         * lib/inttypes_.h [__DECC]: Likewise.
54890         Reported by Albert Chin <china@thewrittenword.com> in
54891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
54892
54893 2007-04-04  Eric Blake  <ebb9@byu.net>
54894
54895         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
54896         1.5.x.
54897
54898 2007-04-04  Bruno Haible  <bruno@clisp.org>
54899
54900         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
54901         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
54902
54903 2007-04-04  Bruno Haible  <bruno@clisp.org>
54904
54905         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
54906         results for "%010a" of Infinity and NaN.
54907         * tests/test-vasprintf-posix.c (test_function): Likewise.
54908         * tests/test-snprintf-posix.h (test_function): Likewise.
54909         * tests/test-sprintf-posix.h (test_function): Likewise.
54910         * tests/test-fprintf-posix.h (test_function): Remove these tests.
54911         * tests/test-printf-posix.h (test_function): Likewise.
54912         * tests/test-fprintf-posix.out: Update.
54913         Needed for FreeBSD 6.1.
54914
54915 2007-04-04  Bruno Haible  <bruno@clisp.org>
54916
54917         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
54918         directly used by the gnulib modules nor by gnulib-tool.
54919
54920 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
54921
54922         * DEPENDENCIES: Give overall description of version dependency
54923         desirability.  Use more-typical names for apps.
54924         Add shell, coreutils, diffutils, grep, tar, gzip.
54925
54926 2007-04-04  Simon Josefsson  <simon@josefsson.org>
54927
54928         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
54929
54930 2007-04-04  Karl Berry  <karl@gnu.org>
54931
54932         * MODULES.html.sh (func_module): missing '.
54933
54934 2007-04-03  Bruno Haible  <bruno@clisp.org>
54935
54936         * modules/argmatch-tests (Makefile.am): New variable
54937         test_argmatch_LDADD.
54938         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
54939         * modules/array-list-tests (Makefile.am): New variable
54940         test_array_list_LDADD.
54941         * modules/array-oset-tests (Makefile.am): New variable
54942         test_array_oset_LDADD.
54943         * modules/avltree-list-tests (Makefile.am): New variable
54944         test_avltree_list_LDADD.
54945         * modules/avltree-oset-tests (Makefile.am): New variable
54946         test_avltree_oset_LDADD.
54947         * modules/avltreehash-list-tests (Makefile.am): New variable
54948         test_avltreehash_list_LDADD.
54949         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
54950         test_canonicalize_lgpl_LDADD.
54951         * modules/carray-list-tests (Makefile.am): New variable
54952         test_carray_list_LDADD.
54953         * modules/dirname-tests (Makefile.am): New variable
54954         test_dirname_LDADD.
54955         * modules/linked-list-tests (Makefile.am): New variable
54956         test_linked_list_LDADD.
54957         * modules/linkedhash-list-tests (Makefile.am): New variable
54958         test_linkedhash_list_LDADD.
54959         * modules/rbtree-list-tests (Makefile.am): New variable
54960         test_rbtree_list_LDADD.
54961         * modules/rbtree-oset-tests (Makefile.am): New variable
54962         test_rbtree_oset_LDADD.
54963         * modules/rbtreehash-list-tests (Makefile.am): New variable
54964         test_rbtreehash_list_LDADD.
54965         * modules/xvasprintf-tests (Makefile.am): New variable
54966         test_xvasprintf_LDADD.
54967         Reported by Eric Blake.
54968
54969 2007-04-03  Eric Blake  <ebb9@byu.net>
54970
54971         * DEPENDENCIES: Weaken m4 requirements.
54972
54973 2007-04-03  Bruno Haible  <bruno@clisp.org>
54974
54975         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
54976         * modules/isnanl-tests (configure.ac): Likewise.
54977
54978 2007-04-03  Ben Pfaff  <blp@gnu.org>
54979
54980         * modules/iconv_open: Add $(srcdir)/ to source directory
54981         references in Makefile fragments that call gperf, to fix VPATH
54982         builds.
54983
54984 2007-04-03  Bruno Haible  <bruno@clisp.org>
54985
54986         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
54987         * lib/ldexpl.c: Undo last change.
54988
54989 2007-04-03  Bruno Haible  <bruno@clisp.org>
54990
54991         * modules/printf-frexpl (Depends-on): Undo last change.
54992         (Files): Add m4/ldexpl.m4.
54993
54994 2007-04-03  Bruno Haible  <bruno@clisp.org>
54995
54996         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
54997         * modules/isnanl (Link): New section.
54998
54999         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
55000         * modules/frexp (Link): New section.
55001
55002         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
55003         * modules/frexpl (Link): New section.
55004
55005         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
55006         * modules/ldexpl (Link): New section.
55007
55008 2007-04-03  Bruno Haible  <bruno@clisp.org>
55009
55010         * modules/TEMPLATE-EXTENDED: New file.
55011         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
55012
55013 2007-04-03  Bruno Haible  <bruno@clisp.org>
55014
55015         * DEPENDENCIES: New file.
55016         Suggested by Simon Josefsson.
55017
55018 2007-04-03  Bruno Haible  <bruno@clisp.org>
55019
55020         * doc/gnulib.texi: Escape @.
55021
55022 2007-04-03  James Youngman  <jay@gnu.org>
55023         and Paul Eggert  <eggert@cs.ucla.edu>
55024
55025         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55026         birthtime on all systems that have birthtime, not just those which
55027         use st_birthtimensec rather than st_birthtim.  Putting zero in
55028         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55029         that the birth time is not available for files on an NFS mount.
55030
55031 2007-04-03  Simon Josefsson  <simon@josefsson.org>
55032
55033         * modules/memxor: Move back from crypto/, suggested by Bruno.
55034         * modules/crypto/hmac-sha1: Fix memxor dependency.
55035
55036         * modules/crypto/gc: Moved from ../.
55037
55038 2007-04-02  Eric Blake  <ebb9@byu.net>
55039
55040         * lib/ldexpl.c (includes): Avoid libm.
55041
55042         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
55043
55044 2007-04-02  Bruno Haible  <bruno@clisp.org>
55045
55046         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
55047         on IRIX.
55048
55049 2007-04-02  Bruno Haible  <bruno@clisp.org>
55050
55051         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
55052         x86 or x86_64 platforms running MacOS X.
55053         Reported by Ryan Schmidt <@ryandesign.com>.
55054
55055 2007-04-02  Bruno Haible  <bruno@clisp.org>
55056
55057         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
55058         i386.
55059
55060 2007-04-01  Simon Josefsson  <simon@josefsson.org>
55061
55062         * modules/crypto/arcfour: Moved from ../.
55063         * modules/crypto/arcfour-tests: Moved from ../.
55064         * modules/crypto/arctwo: Moved from ../.
55065         * modules/crypto/arctwo-tests: Moved from ../.
55066         * modules/crypto/des: Moved from ../.
55067         * modules/crypto/des-tests: Moved from ../.
55068         * modules/crypto/gc-arcfour: Moved from ../.
55069         * modules/crypto/gc-arcfour-tests: Moved from ../.
55070         * modules/crypto/gc-arctwo: Moved from ../.
55071         * modules/crypto/gc-arctwo-tests: Moved from ../.
55072         * modules/crypto/gc-des: Moved from ../.
55073         * modules/crypto/gc-des-tests: Moved from ../.
55074         * modules/crypto/gc-hmac-md5: Moved from ../.
55075         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
55076         * modules/crypto/gc-hmac-sha1: Moved from ../.
55077         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
55078         * modules/crypto/gc-md2: Moved from ../.
55079         * modules/crypto/gc-md2-tests: Moved from ../.
55080         * modules/crypto/gc-md4: Moved from ../.
55081         * modules/crypto/gc-md4-tests: Moved from ../.
55082         * modules/crypto/gc-md5: Moved from ../.
55083         * modules/crypto/gc-md5-tests: Moved from ../.
55084         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
55085         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
55086         * modules/crypto/gc-random: Moved from ../.
55087         * modules/crypto/gc-rijndael: Moved from ../.
55088         * modules/crypto/gc-rijndael-tests: Moved from ../.
55089         * modules/crypto/gc-sha1: Moved from ../.
55090         * modules/crypto/gc-sha1-tests: Moved from ../.
55091         * modules/crypto/gc-tests: Moved from ../.
55092         * modules/crypto/hmac-md5: Moved from ../.
55093         * modules/crypto/hmac-md5-tests: Moved from ../.
55094         * modules/crypto/hmac-sha1: Moved from ../.
55095         * modules/crypto/hmac-sha1-tests: Moved from ../.
55096         * modules/crypto/md2: Moved from ../.
55097         * modules/crypto/md2-tests: Moved from ../.
55098         * modules/crypto/md4: Moved from ../.
55099         * modules/crypto/md4-tests: Moved from ../.
55100         * modules/crypto/md5: Moved from ../.
55101         * modules/crypto/md5-tests: Moved from ../.
55102         * modules/crypto/memxor: Moved from ../.
55103         * modules/crypto/rijndael: Moved from ../.
55104         * modules/crypto/rijndael-tests: Moved from ../.
55105         * modules/crypto/sha1: Moved from ../.
55106
55107 2007-03-30  James Youngman  <jay@gnu.org>
55108
55109         * tests/test-stat-time.c (prepare_test): use chmod() rather than
55110         rename() to change the ctime of a file (because ctime is unaffected
55111         by rename on jfs2 on AIX 5.1).
55112         (main): Start by doing cleanup, in case a previous run failed leaving
55113         test files behind.
55114
55115 2007-03-31  Bruno Haible  <bruno@clisp.org>
55116
55117         Support old proprietary implementations of iconv.
55118         * modules/iconv_open: New file.
55119         * lib/iconv_.h: New file.
55120         * m4/iconv_h.m4: New file.
55121         * lib/iconv_open.c: New file.
55122         * lib/iconv_open-aix.gperf: New file.
55123         * lib/iconv_open-hpux.gperf: New file.
55124         * lib/iconv_open-irix.gperf: New file.
55125         * lib/iconv_open-osf.gperf: New file.
55126         * m4/iconv_open.m4: New file.
55127         * modules/linebreak (Depends-on): Add iconv_open.
55128         * modules/striconv (Depends-on): Likewise.
55129         * modules/striconveh (Depends-on): Likewise.
55130         * modules/unicodeio (Depends-on): Likewise.
55131         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
55132         (iconv_t)(-1).
55133         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
55134         conversion if cd is (iconv_t)(-1).
55135         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
55136         is not possible.
55137
55138 2007-03-31  Bruno Haible  <bruno@clisp.org>
55139
55140         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55141         work on Solaris either. Protect also second use of "autodetect_jp".
55142
55143 2007-03-31  Bruno Haible  <bruno@clisp.org>
55144
55145         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
55146         the function is not present.
55147
55148 2007-03-31  Bruno Haible  <bruno@clisp.org>
55149
55150         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
55151         the function is not present.
55152
55153 2007-03-31  Bruno Haible  <bruno@clisp.org>
55154
55155         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
55156         a bug in HP-UX iconv_open().
55157
55158 2007-03-31  Bruno Haible  <bruno@clisp.org>
55159
55160         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
55161         (Mathematics <math.h>): New section, add fpieee.
55162         (Input/output <stdio.h>): Add fseterr.
55163         (Mathematics <math.h>): New section, add printf-frexp.
55164         (Container data structures): Add sublist.
55165         (Core language properties): Add fpucw, inline.
55166         (Functions for greatest-width integer types <inttypes.h>): Add
55167         imaxabs, imaxdiv, inttypes.
55168         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
55169         isnanl-nolibm, ldexp.
55170         (Mathematics <math.h>): New section, add printf-frexpl.
55171         (Support for systems lacking POSIX:2001): Add fprintf-posix,
55172         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
55173         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
55174         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
55175         (Unicode string functions): Add unistr/u*-mbtoucr.
55176         (Java): Add javacomp-script, javaexec-script.
55177         (C#): Add csharpcomp-script, csharpexec-script.
55178         (Support for building libraries and executables): Add havelib,
55179         relocatable-*.
55180         (Support for maintaining and releasing projects): Renamed from
55181         'Support for maintaining and release projects'. Add announce-gen.
55182
55183 2007-03-31  Bruno Haible  <bruno@clisp.org>
55184
55185         * README: Talk primarily about git.
55186         (git and CVS): Renamed from CVS.
55187         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
55188         gnulib is available through git.
55189         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
55190
55191 2007-03-30  Bruno Haible  <bruno@clisp.org>
55192
55193         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
55194         * lib/poll_.h: Likewise.
55195         * lib/stat_.h: Likewise.
55196         * lib/sys_time_.h: Likewise.
55197         * lib/sysexit_.h: Likewise.
55198         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
55199         * lib/stdbool_.h: Likewise.
55200         * lib/byteswap_.h: Add double-inclusion guard.
55201
55202 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
55203
55204         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
55205
55206 2007-03-30  Karl Berry  <karl@gnu.org>
55207
55208         * config/srclist-update: double space after USA in the license
55209         substitution, since that's how it's usually (?) written.
55210
55211 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55212
55213         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55214         reported by Bruno Haible.
55215
55216 2007-03-29  Bruno Haible  <bruno@clisp.org>
55217
55218         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55219         a bug in AIX iconv().
55220
55221 2007-03-29  Bruno Haible  <bruno@clisp.org>
55222
55223         * modules/ldexpl-tests: New file.
55224         * tests/test-ldexpl.c: New file.
55225
55226 2007-03-29  Bruno Haible  <bruno@clisp.org>
55227
55228         * lib/ldexpl.c: Include fpucw.h.
55229         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55230         multiplication.
55231         * modules/ldexpl (Depends-on): Add fpucw.
55232
55233 2007-03-29  Bruno Haible  <bruno@clisp.org>
55234
55235         * modules/ldexpl: New file.
55236         * m4/ldexpl.m4: New file.
55237         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55238         set.
55239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55240         REPLACE_LDEXPL.
55241         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55242         REPLACE_LDEXPL.
55243         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55244         gl_FUNC_LDEXPL_WORKS.
55245         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55246         * modules/mathl (Files): Remove lib/ldexpl.c.
55247         (Depends-on): Add ldexpl.
55248
55249 2007-03-29  Bruno Haible  <bruno@clisp.org>
55250
55251         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55252
55253 2007-03-29  Bruno Haible  <bruno@clisp.org>
55254
55255         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55256         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55257         and possibly also HP-UX.
55258         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55259         work on AIX, IRIX, HP-UX, OSF/1.
55260         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55261         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55262         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55263         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55264         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55265         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55266
55267 2007-03-29  Bruno Haible  <bruno@clisp.org>
55268
55269         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55270
55271 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55272
55273         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55274         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55275
55276 2007-03-29  Eric Blake  <ebb9@byu.net>
55277
55278         * lib/acl-internal.h: Remove redundant include.
55279         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55280         Cygwin when a file is locked.
55281
55282 2007-03-29  Bruno Haible  <bruno@clisp.org>
55283
55284         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55285         file.
55286         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55287
55288 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55289
55290         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55291         try to remove a parent directory if the child couldn't be removed
55292         (except for the first rmdir, which could fail because the child
55293         doesn't exist).  Problem reported by Jeff Blaine in
55294         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55295
55296 2007-03-28  Bruno Haible  <bruno@clisp.org>
55297
55298         * lib/striconveh.c (utf8conv_carefully): New function.
55299         (mem_cd_iconveh_internal): Invoke it.
55300
55301 2007-03-28  Bruno Haible  <bruno@clisp.org>
55302
55303         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55304         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55305         input.
55306         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55307         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55308         unistr/u8-uctomb.
55309
55310 2007-03-28  Bruno Haible  <bruno@clisp.org>
55311
55312         * modules/unistr/u8-mbtoucr: New file.
55313         * lib/unistr/u8-mbtoucr.c: New file.
55314         * modules/unistr/u16-mbtoucr: New file.
55315         * lib/unistr/u16-mbtoucr.c: New file.
55316         * modules/unistr/u16-mbtoucr: New file.
55317         * lib/unistr/u16-mbtoucr.c: New file.
55318         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55319
55320 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55321             Bruno Haible  <bruno@clisp.org>
55322
55323         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55324         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55325         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55326
55327         * m4/stdio_h.m4: Add stubs for vasprintf too.
55328
55329         * modules/stdio: Support vasprintf in sed command.
55330
55331         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55332         vasprintf.h.  Add stdio module indicator.
55333
55334         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55335         vasprintf.h.
55336
55337         * lib/vasprintf.h: File removed.
55338
55339         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55340         * lib/vasprintf.c: Ditto.
55341         * lib/xvasprintf.c: Ditto.
55342         * tests/test-vasprintf-posix.c: Ditto.
55343         * tests/test-vasprintf.c: Ditto.
55344
55345 2007-03-27  Bruno Haible  <bruno@clisp.org>
55346
55347         Make vasnprintf multithread-safe.
55348         * lib/vasnprintf.c (decimal_point_char): New function.
55349         (VASNPRINTF): Use it.
55350         Suggested by Simon Josefsson.
55351
55352 2007-03-27  Eric Blake  <ebb9@byu.net>
55353
55354         Support sub-second birthtime on cygwin.
55355         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55356         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55357         (get_stat_birthtime): Also work with st_birthtim.
55358
55359 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55360
55361         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55362         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55363         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55364         (get_stat_birthtime_ns): Simplify compile-time tests.
55365         (get_stat_birthtime): Change the API to look like
55366         get_stat_mtime etc., except return a negative tv_nsec on error.
55367         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55368         Don't check for "spare" fields.
55369         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55370         or for struct stat.st_birthtime, as these tests aren't used.
55371         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55372
55373 2007-03-27  Bruno Haible  <bruno@clisp.org>
55374
55375         * lib/stat-time.h: Include <sys/stat.h>.
55376
55377 2007-03-27  James Youngman  <jay@gnu.org>
55378
55379         * lib/stat-time.h (get_stat_birthtime): New function for
55380           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55381         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55382           and its variants.
55383         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55384         * modules/stat-time-test: New file.
55385         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55386
55387 2007-03-26  Bruno Haible  <bruno@clisp.org>
55388
55389         Better support of signalling NaNs.
55390         * lib/atanl.c: Include isnanl.h.
55391         (atanl): Perform test for NaN at the beginning of the function and
55392         through a call to isnanl.
55393         * lib/cosl.c: Include isnanl.h.
55394         (cosl): Perform test for NaN at the beginning of the function and
55395         through a call to isnanl.
55396         * lib/ldexpl.c: Include isnanl.h.
55397         (ldexpl): Perform test for NaN through a call to isnanl.
55398         * lib/logl.c: Include isnanl.h.
55399         (logl): Perform test for NaN at the beginning of the function and
55400         through a call to isnanl.
55401         * lib/sinl.c: Include isnanl.h.
55402         (sinl): Perform test for NaN at the beginning of the function and
55403         through a call to isnanl.
55404         * lib/sqrtl.c: Include isnanl.h.
55405         (sqrtl): Perform test for NaN at the beginning of the function and
55406         through a call to isnanl.
55407         * lib/tanl.c: Include isnanl.h.
55408         (tanl): Perform test for NaN at the beginning of the function and
55409         through a call to isnanl.
55410         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55411         * modules/mathl (Depends-on): Add isnanl.
55412
55413 2007-03-26  Eric Blake  <ebb9@byu.net>
55414
55415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55416         regression in logic sense of previous patch.
55417
55418 2007-03-26  Bruno Haible  <bruno@clisp.org>
55419
55420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55421         unportable shell command "if ! ...".
55422         Reported by Ralf Wildenhues.
55423
55424 2007-03-25  Bruno Haible  <bruno@clisp.org>
55425
55426         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55427         <sysexits.h> file, and only add EX_CONFIG.
55428         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55429         absolute file name and whether it is sufficient. Substitute also
55430         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55431         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55432         ABSOLUTE_SYSEXITS_H into sysexits.h.
55433
55434 2007-03-25  Bruno Haible  <bruno@clisp.org>
55435
55436         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55437         hints is NULL.
55438
55439 2007-03-25  Bruno Haible  <bruno@clisp.org>
55440
55441         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55442         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55443
55444 2007-03-25  Bruno Haible  <bruno@clisp.org>
55445
55446         * lib/vasnprintf.c: Include langinfo.h.
55447         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55448         multithread-safe.
55449         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55450         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55451         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55452         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55453         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55454         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55455         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55456         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55457         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55458         Reported by Simon Josefsson.
55459
55460 2007-03-25  Bruno Haible  <bruno@clisp.org>
55461
55462         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55463         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55464         * modules/vasnprintf (Depends-on): Add stdint.
55465
55466 2007-03-25  Bruno Haible  <bruno@clisp.org>
55467
55468         * modules/fpieee: New file.
55469         * m4/fpieee.m4: New file.
55470         * modules/isnan-nolibm (Depends-on): Add fpieee.
55471         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55472         * modules/isnanl (Depends-on): Add fpieee.
55473
55474 2007-03-25  Bruno Haible  <bruno@clisp.org>
55475
55476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55477
55478 2007-03-25  Bruno Haible  <bruno@clisp.org>
55479
55480         Avoid test failures on IRIX 6.5.
55481         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55482         (main): Use it.
55483         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55484         macros.
55485         (main): Use them.
55486
55487 2007-03-25  Bruno Haible  <bruno@clisp.org>
55488
55489         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55490         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55491         exists but doesn't work.
55492         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55493         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55495         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55496         math.h.
55497
55498 2007-03-25  Bruno Haible  <bruno@clisp.org>
55499
55500         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55501         returns inf. Needed on IRIX 6.5.
55502
55503 2007-03-25  Bruno Haible  <bruno@clisp.org>
55504
55505         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55506         (main): Use isnanl instead of x != x idiom.
55507         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55508
55509         * tests/test-frexp.c: Include isnan.h.
55510         (main): Use isnan instead of x != x idiom.
55511         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55512
55513 2007-03-25  Bruno Haible  <bruno@clisp.org>
55514
55515         * tests/test-frexp.c (NaN): New function/macro.
55516         (main): Use it instead of 0.0 / 0.0.
55517         * tests/test-isnan.c (NaN): New function/macro.
55518         (main): Use it instead of 0.0 / 0.0.
55519         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55520         (test_function): Use it instead of 0.0 / 0.0.
55521         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55522         (test_function): Use it instead of 0.0 / 0.0.
55523         * tests/test-snprintf-posix.h (NaN): New function/macro.
55524         (test_function): Use it instead of 0.0 / 0.0.
55525         * tests/test-sprintf-posix.h (NaN): New function/macro.
55526         (test_function): Use it instead of 0.0 / 0.0.
55527         * tests/test-fprintf-posix.h (NaN): New function/macro.
55528         (test_function): Use it instead of 0.0 / 0.0.
55529         * tests/test-printf-posix.h (NaN): New function/macro.
55530         (test_function): Use it instead of 0.0 / 0.0.
55531
55532         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55533
55534 2007-03-25  Bruno Haible  <bruno@clisp.org>
55535
55536         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55537
55538 2007-03-25  Bruno Haible  <bruno@clisp.org>
55539
55540         * lib/regexec.c (merge_state_with_log): Make static.
55541
55542 2007-03-25  Bruno Haible  <bruno@clisp.org>
55543
55544         * lib/trigl.c (kernel_rem_pio2): Make static.
55545
55546 2007-03-25  Bruno Haible  <bruno@clisp.org>
55547
55548         * lib/sincosl.c (sincosl_table): Make static.
55549
55550 2007-03-25  Bruno Haible  <bruno@clisp.org>
55551
55552         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55553         if the compiler does not support C99.
55554
55555 2007-03-25  Bruno Haible  <bruno@clisp.org>
55556
55557         * modules/time (Makefile.am): Ensure all rule action lines start with a
55558         tab.
55559
55560 2007-03-24  Bruno Haible  <bruno@clisp.org>
55561
55562         * modules/tsearch-tests: New file.
55563         * tests/test-tsearch.sh: New file.
55564         * tests/test-tsearch.c: New file, mostly copied from glibc.
55565
55566         * modules/search-tests: New file.
55567         * tests/test-search.c: New file.
55568
55569         * modules/search: New file.
55570         * lib/search_.h: New file, incorporating lib/tsearch.h.
55571         * m4/search_h.m4: New file.
55572         * lib/tsearch.h: Remove file.
55573         * lib/tsearch.c: Include search.h instead of tsearch.h.
55574         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55575         HAVE_TSEARCH.
55576         * modules/tsearch (Files): Remove lib/tsearch.h.
55577         (Depends-on): Add search.
55578         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55579         (Include): Change tsearch.h into search.h.
55580
55581 2007-03-24  Bruno Haible  <bruno@clisp.org>
55582
55583         * modules/fpucw: New file.
55584         * lib/fpucw.h: New file.
55585         * lib/frexp.c: Include fpucw.h.
55586         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55587         (FUNC): Use them.
55588         * lib/printf-frexp.c: Include fpucw.h.
55589         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55590         (FUNC): Use them.
55591         * lib/vasnprintf.c: Include fpucw.h.
55592         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55593         'long double' calculations.
55594         * tests/test-frexpl.c: Include fpucw.h.
55595         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55596         * tests/test-printf-frexpl.c: Include fpucw.h.
55597         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55598         * modules/frexpl (Depends-on): Add fpucw.
55599         * modules/printf-frexpl (Depends-on): Likewise.
55600         * modules/fprintf-posix (Depends-on): Likewise.
55601         * modules/snprintf-posix (Depends-on): Likewise.
55602         * modules/sprintf-posix (Depends-on): Likewise.
55603         * modules/vasnprintf-posix (Depends-on): Likewise.
55604         * modules/vasprintf-posix (Depends-on): Likewise.
55605         * modules/vfprintf-posix (Depends-on): Likewise.
55606         * modules/vsnprintf-posix (Depends-on): Likewise.
55607         * modules/vsprintf-posix (Depends-on): Likewise.
55608         * modules/frexpl-tests (Depends-on): Likewise.
55609         * modules/printf-frexpl-tests (Depends-on): Likewise.
55610
55611 2007-03-24  Bruno Haible  <bruno@clisp.org>
55612
55613         * lib/float+.h: New file.
55614         * lib/isnan.c: Include float+.h.
55615         (SIZE): New macro.
55616         (FUNC): Compare only SIZE bytes of the value.
55617         * lib/vasnprintf.c: Include float+.h.
55618         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55619         SIZEOF_LDBL or SIZEOF_DBL bytes.
55620         * modules/isnan-nolibm (Files): Add lib/float+.h.
55621         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55622         * modules/isnanl (Files): Add lib/float+.h.
55623         * modules/vasnprintf (Files): Add lib/float+.h.
55624
55625 2007-03-24  Bruno Haible  <bruno@clisp.org>
55626
55627         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55628         include isnanl-nolibm.h.
55629
55630 2007-03-24  Bruno Haible  <bruno@clisp.org>
55631
55632         * tests/test-read-file.c (main): Don't produce spurious output for
55633         expected situations. Make the test fail if it encountered unexpected
55634         results.
55635
55636 2007-03-24  Bruno Haible  <bruno@clisp.org>
55637
55638         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55639         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55640
55641 2007-03-24  Bruno Haible  <bruno@clisp.org>
55642
55643         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55644
55645 2007-03-24  Bruno Haible  <bruno@clisp.org>
55646
55647         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55648         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55649
55650         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55651         * modules/utf8-ucs4: Turn into a symbolic link to module
55652         unistr/u8-mbtouc.
55653
55654         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55655         utf8-ucs4-unsafe.
55656         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55657         unistr/u8-mbtouc-unsafe.
55658
55659         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55660         * modules/utf16-ucs4: Turn into a symbolic link to module
55661         unistr/u16-mbtouc.
55662
55663         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55664         utf16-ucs4-unsafe.
55665         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55666         unistr/u16-mbtouc-unsafe.
55667
55668         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55669         * modules/ucs4-utf8: Turn into a symbolic link to module
55670         unistr/u8-ubtomb.
55671
55672         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55673         * modules/ucs4-utf16: Turn into a symbolic link to module
55674         unistr/u16-ubtomb.
55675
55676 2007-03-24  Bruno Haible  <bruno@clisp.org>
55677
55678         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55679         Enable the function only if HAVE_INLINE.
55680         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55681         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55682         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55683         Enable the function only if HAVE_INLINE.
55684         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55685         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55686         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55687         Enable the function only if HAVE_INLINE.
55688         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55689         Enable the function only if HAVE_INLINE.
55690         * modules/utf8-ucs4: Update.
55691         * modules/utf8-ucs4-unsafe: Update.
55692         * modules/utf16-ucs4: Update.
55693         * modules/utf16-ucs4-unsafe: Update.
55694         * modules/ucs4-utf8: Update.
55695         * modules/ucs4-utf16: Update.
55696
55697 2007-03-24  Bruno Haible  <bruno@clisp.org>
55698
55699         * lib/utf8-ucs4.h: Remove file.
55700         * lib/utf8-ucs4-unsafe.h: Remove file.
55701         * lib/utf16-ucs4.h: Remove file.
55702         * lib/utf16-ucs4-unsafe.h: Remove file.
55703         * lib/ucs4-utf8.h: Remove file.
55704         * lib/ucs4-utf16.h: Remove file.
55705         * lib/unistr.h: Include their previous contents.
55706         * m4/utf-ucs4.m4: Remove file.
55707         * m4/ucs4-utf.m4: Remove file.
55708         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55709         (Depends-on): Add unistr/base.
55710         (configure.ac): Remove gl_UTF_UCS4.
55711         (Makefile.am): Update.
55712         (Include): Change to unistr.h.
55713         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55714         (Depends-on): Add unistr/base.
55715         (configure.ac): Remove gl_UTF_UCS4.
55716         (Makefile.am): Update.
55717         (Include): Change to unistr.h.
55718         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
55719         (Depends-on): Add unistr/base.
55720         (configure.ac): Remove gl_UTF_UCS4.
55721         (Makefile.am): Update.
55722         (Include): Change to unistr.h.
55723         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55724         (Depends-on): Add unistr/base.
55725         (configure.ac): Remove gl_UTF_UCS4.
55726         (Makefile.am): Update.
55727         (Include): Change to unistr.h.
55728         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
55729         (Depends-on): Add unistr/base.
55730         (configure.ac): Remove gl_UCS4_UTF.
55731         (Makefile.am): Update.
55732         (Include): Change to unistr.h.
55733         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55734         (Depends-on): Add unistr/base.
55735         (configure.ac): Remove gl_UCS4_UTF.
55736         (Makefile.am): Update.
55737         (Include): Change to unistr.h.
55738         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55739         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55740         utf8-ucs4-unsafe.h.
55741         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55742         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55743         utf16-ucs4-unsafe.h.
55744         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55745         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55746         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55747         * lib/unistr/u8-strchr.c: Likewise.
55748         * lib/unistr/u8-strrchr.c: Likewise.
55749         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55750         * lib/unistr/u16-strchr.c: Likewise.
55751         * lib/unistr/u16-strrchr.c: Likewise.
55752         * lib/striconveh.c: Update.
55753         * lib/linebreak.c: Update.
55754
55755 2007-03-24  Bruno Haible  <bruno@clisp.org>
55756
55757         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55758         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55759
55760 2007-03-22  Bruno Haible  <bruno@clisp.org>
55761
55762         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55763
55764 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55765
55766         * MODULES.html.sh (File system functions): New module write-any-file.
55767         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55768         * m4/write-any-file.m4: New files.
55769
55770 2007-03-23  Eric Blake  <ebb9@byu.net>
55771
55772         * gnulib-tool: Rearrange space-tab sequences, since some editors
55773         like to eat them.
55774
55775 2007-03-23  Eric Blake  <ebb9@byu.net>
55776
55777         * lib/version-etc.c (version_etc_va): Update license wording to
55778         be more concise.  Recommended by Richard Stallman.
55779
55780 2007-03-22  Bruno Haible  <bruno@clisp.org>
55781
55782         * lib/poll.c (MSG_PEEK): New fallback definition.
55783
55784 2007-03-22  Bruno Haible  <bruno@clisp.org>
55785
55786         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
55787         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
55788         (main): Update.
55789         Fixes a compilation error on BeOS.
55790
55791 2007-03-22  Bruno Haible  <bruno@clisp.org>
55792
55793         * modules/frexpl-tests: New file.
55794         * tests/test-frexpl.c: New file.
55795
55796         * modules/frexpl: New file.
55797         * m4/frexpl.m4: New file.
55798         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
55799         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
55800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
55801         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
55802         (Depends-on): Add frexpl. Remove isnanl-nolibm.
55803         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
55804
55805 2007-03-22  Bruno Haible  <bruno@clisp.org>
55806
55807         * lib/frexpl.c: Share code with lib/frexp.c.
55808         * modules/mathl (Files): Add lib/frexp.c.
55809         (Depends-on): Add isnanl-nolibm.
55810
55811 2007-03-22  Bruno Haible  <bruno@clisp.org>
55812
55813         * modules/printf-frexp (Files): Add m4/frexp.m4.
55814         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
55815         only if the found frexp function actually works.
55816
55817 2007-03-22  Bruno Haible  <bruno@clisp.org>
55818
55819         * lib/frexp.c: Remove older implementation that uses divisions.
55820
55821 2007-03-21  Bruno Haible  <bruno@clisp.org>
55822
55823         * modules/frexp-tests: New file.
55824         * tests/test-frexp.c: New file.
55825
55826         * modules/frexp: New file.
55827         * lib/frexp.c: New file.
55828         * m4/frexp.m4: New file.
55829         * lib/math_.h (frexp): New declaration.
55830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
55831         REPLACE_FREXP.
55832         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
55833
55834 2007-03-21  Bruno Haible  <bruno@clisp.org>
55835
55836         * modules/isnanl-tests: New file.
55837         * tests/test-isnanl.c: New file.
55838
55839         * modules/isnanl: New file.
55840         * lib/isnanl.h: New file.
55841         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
55842         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
55843         gl_FUNC_ISNANL_WORKS.
55844         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
55845         New macros.
55846
55847 2007-03-21  Bruno Haible  <bruno@clisp.org>
55848
55849         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
55850         lib/isnanl.h.
55851         (Include): Update.
55852         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
55853         * lib/vasnprintf.c: Update.
55854         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
55855         tests/test-isnanl.h, remove tests/test-isnanl.c.
55856         (Makefile.am): Update.
55857         * tests/test-isnanl-nolibm.c: New file.
55858         * tests/test-isnanl.h: New file.
55859         * tests/test-isnanl.c: Remove file.
55860
55861 2007-03-21  Jim Meyering  <jim@meyering.net>
55862
55863         When trying to open ".", treat ESTALE like EACCES.
55864         * lib/savewd.c (savewd_save): Resort to forking not just upon
55865         failure with EACCES, but also when errno is ESTALE.
55866
55867 2007-03-20  Bruno Haible  <bruno@clisp.org>
55868
55869         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
55870         Needed on AIX 5.1. Reported by Matthew Woehlke.
55871
55872 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55873
55874         Suggestions by Bruno Haible:
55875         * lib/acl-internal.h: Include "gettext.h" rather than rolling
55876         our own.
55877         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
55878         * modules/acl (Depends-on): Add gettext.
55879
55880 2007-03-19  Bruno Haible  <bruno@clisp.org>
55881
55882         * modules/iconvme: Remove file.
55883         * lib/iconvme.h: Remove file.
55884         * lib/iconvme.c: Remove file.
55885         * m4/iconvme.m4: Remove file.
55886
55887 2007-03-19  Bruno Haible  <bruno@clisp.org>
55888
55889         * doc/relocatable-maint.texi: Break long shell script line.
55890         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55891
55892 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55893
55894         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
55895         handle file_has_acl.
55896         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
55897         * lib/acl.c: Move header inclusions and related macro defns into
55898         lib/acl-internal.h.
55899         (S_ISLNK): Remove defn, since that's now done for us.
55900         (file_has_acl): Move to lib/file-has-acl.c.
55901         Call acl_trivial if available.  This is the crucial part of the fix.
55902         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
55903         shared within the library.  Rewrite a bit, partly to make it compatible
55904         with the GNU coding style.
55905         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
55906         Remove unnecessary double-quotes.
55907         Don't test for acl_to_text; the build will catch that.
55908         Replace acl_entries if it doesn't exist and it is needed.
55909         Check for -lsec and acl_trivial (as used on Solaris 10).
55910         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
55911         lib/file-has-acl.c.
55912         (Depends-on): Add sys_stat, for S_ISLNK.
55913
55914 2007-03-19  Ben Pfaff  <blp@gnu.org>
55915
55916         * doc/gnulib.texi: Fix typos.
55917         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55918
55919 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55920
55921         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
55922         If size is zero here, buf must be zero.
55923
55924 2007-03-19  Simon Josefsson  <simon@josefsson.org>
55925
55926         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
55927         <bruno@clisp.org>.
55928
55929 2007-03-18  Bruno Haible  <bruno@clisp.org>
55930
55931         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
55932         Suggested by Eric Blake.
55933
55934 2007-03-18  Ben Pfaff  <blp@gnu.org>
55935
55936         * doc/relocatable.texi: Recommend using as prefix a directory
55937         that does not exist and will never be created.  Based on
55938         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
55939         and others.
55940
55941 2007-03-17  Bruno Haible  <bruno@clisp.org>
55942
55943         * lib/fchownat.c: Include lchown.h.
55944
55945 2007-03-17  Bruno Haible  <bruno@clisp.org>
55946
55947         Fix endless loop when the given allocated size was > INT_MAX.
55948         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
55949         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
55950         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
55951         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
55952         * lib/sprintf.c (sprintf): Likewise.
55953
55954 2007-03-17  Bruno Haible  <bruno@clisp.org>
55955
55956         * tests/test-argp-2.sh (func_compare): Output a context diff.
55957
55958 2007-03-17  Bruno Haible  <bruno@clisp.org>
55959
55960         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
55961         locale's decimal-point character.
55962
55963 2007-03-17  Bruno Haible  <bruno@clisp.org>
55964
55965         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
55966         before comparing it. Needed because on some platforms (e.g. x86) a
55967         'long double' occupies less bytes than sizeof (long double).
55968
55969 2007-03-17  Bruno Haible  <bruno@clisp.org>
55970
55971         * tests/test-crc.c (main): Make printf statements 64-bit clean.
55972         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
55973         * tests/test-getaddrinfo.c (simple): Likewise.
55974         * tests/test-read-file.c (main): Likewise.
55975
55976 2007-03-17  Bruno Haible  <bruno@clisp.org>
55977
55978         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
55979
55980 2007-03-17  Bruno Haible  <bruno@clisp.org>
55981
55982         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
55983         unused variable.
55984
55985 2007-03-17  Bruno Haible  <bruno@clisp.org>
55986
55987         * tests/test-c-strcasecmp.c: Include c-strcase.h.
55988         * tests/test-c-strncasecmp.c: Likewise.
55989
55990 2007-03-17  Bruno Haible  <bruno@clisp.org>
55991
55992         * modules/stdlib (Depends-on): Add unistd.
55993         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
55994         Needed for MacOS X 10.3.
55995
55996 2007-03-17  Bruno Haible  <bruno@clisp.org>
55997
55998         * lib/unistr/u-strdup.h: Include <stdlib.h>.
55999
56000 2007-03-17  Bruno Haible  <bruno@clisp.org>
56001
56002         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
56003
56004 2007-03-17  Bruno Haible  <bruno@clisp.org>
56005
56006         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
56007         to reflect files copied from gnulib (with or without modifications).
56008         Suggested by Jim Meyering.
56009
56010 2007-03-17  Eric Blake  <ebb9@byu.net>
56011
56012         * NEWS: Document stdlib change from 2007-02-18.
56013
56014 2007-03-17  Jim Meyering  <jim@meyering.net>
56015
56016         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
56017         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
56018         someone uses a name containing shell meta-characters.
56019         Reported by Alfred M. Szmidt.
56020
56021         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
56022
56023 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56024
56025         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56026         and copy gettext configuration files only if configure.ac contains
56027         a use of AM_GNU_GETTEXT_VERSION.
56028
56029 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56030
56031         * build-aux/bootstrap (gnulib_name): New variable.
56032         (gnulib_tool_options): Use it.
56033
56034 2007-03-13  Simon Josefsson  <simon@josefsson.org>
56035
56036         * tests/test-des.c: Use new namespace.
56037
56038 2007-03-15  Bruno Haible  <bruno@clisp.org>
56039
56040         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
56041         Reported by James Youngman <jay@gnu.org>.
56042
56043 2007-03-15  Bruno Haible  <bruno@clisp.org>
56044
56045         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
56046         declared prototype. Needed with cc on OSF/1 5.1.
56047
56048 2007-03-15  Bruno Haible  <bruno@clisp.org>
56049
56050         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
56051         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
56052         (struct gl_list_implementation): Add dispose_fn argument to the
56053         'create_empty', 'create' methods.
56054         (struct gl_list_impl_base): Add field 'dispose_fn'.
56055         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
56056         argument.
56057         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
56058         dispose_fn argument.
56059         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
56060         dispose_fn on the dropped values.
56061         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
56062         dispose_fn argument.
56063         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
56064         dropped values.
56065         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
56066         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56067         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
56068         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56069         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
56070         argument.
56071         (gl_tree_list_free): Call dispose_fn on the dropped values.
56072         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
56073         the dropped values.
56074         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56075         Add dispose_fn argument.
56076         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
56077         Call dispose_fn on the dropped values.
56078         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
56079         Add dispose_fn argument.
56080         (gl_sublist_create): Initialize the 'dispose_fn' field.
56081         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
56082         * tests/test-array_list.c (main): Update.
56083         * tests/test-carray_list.c (main): Update.
56084         * tests/test-avltree_list.c (main): Update.
56085         * tests/test-rbtree_list.c (main): Update.
56086         * tests/test-avltreehash_list.c (main): Update.
56087         * tests/test-rbtreehash_list.c (main): Update.
56088         * tests/test-linked_list.c (main): Update.
56089         * tests/test-linkedhash_list.c (main): Update.
56090         * tests/test-array_oset.c (main): Update.
56091
56092 2007-03-15  Bruno Haible  <bruno@clisp.org>
56093
56094         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
56095         (gl_oset_create_empty): Add dispose_fn argument.
56096         (struct gl_oset_implementation): Add dispose_fn argument to
56097         'create_empty' method.
56098         (struct gl_oset_impl_base): Add dispose_fn field.
56099         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
56100         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
56101         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
56102         values.
56103         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
56104         (gl_tree_oset_free): Call dispose_fn on the dropped values.
56105         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56106         dropped value.
56107         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56108         dropped value.
56109         * tests/test-array_oset.c (main): Update.
56110         * tests/test-avltree_oset.c (main): Update.
56111         * tests/test-rbtree_oset.c (main): Update.
56112         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
56113
56114 2007-03-13  Bruno Haible  <bruno@clisp.org>
56115
56116         * tests/test-stdbool.c (i): Update after last patch.
56117
56118 2007-03-12  Bruno Haible  <bruno@clisp.org>
56119
56120         * lib/quotearg.c: Include <wctype.h> early, before the definition of
56121         the iswprint macro. Needed on Solaris 2.5.1.
56122
56123 2007-03-12  Bruno Haible  <bruno@clisp.org>
56124
56125         * tests/test-printf-frexp.c (main): Declare x as volatile.
56126
56127 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56128
56129         * doc/gnulib.texi (Build robot for gnulib): New section.
56130
56131 2007-03-12  Jim Meyering  <jim@meyering.net>
56132
56133         * build-aux/bootstrap: New file.
56134         * build-aux/bootstrap.conf: New file, from coreutils.
56135
56136 2007-03-11  Bruno Haible  <bruno@clisp.org>
56137
56138         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
56139
56140 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56141
56142         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
56143         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
56144         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
56145
56146 2007-03-11  Bruno Haible  <bruno@clisp.org>
56147
56148         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
56149         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
56150
56151 2007-03-11  Bruno Haible  <bruno@clisp.org>
56152
56153         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
56154         formula. Needed for SunPRO C 5.0.
56155
56156 2007-03-11  Bruno Haible  <bruno@clisp.org>
56157
56158         * modules/long-options (Depends-on): Add getopt.
56159
56160 2007-03-11  Bruno Haible  <bruno@clisp.org>
56161
56162         * modules/modechange (Depends-on): Add stdbool.
56163
56164 2007-03-11  Bruno Haible  <bruno@clisp.org>
56165
56166         * modules/i-ring (Depends-on): Add stdbool.
56167
56168 2007-03-11  Bruno Haible  <bruno@clisp.org>
56169
56170         * modules/gc-des (Depends-on): Add stdbool.
56171
56172 2007-03-11  Bruno Haible  <bruno@clisp.org>
56173
56174         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
56175
56176 2007-03-11  Bruno Haible  <bruno@clisp.org>
56177
56178         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
56179
56180 2007-03-11  Bruno Haible  <bruno@clisp.org>
56181
56182         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
56183
56184 2007-03-11  Bruno Haible  <bruno@clisp.org>
56185
56186         * lib/vasnprintf.c (sprintf): Undefine.
56187
56188 2007-03-11  Bruno Haible  <bruno@clisp.org>
56189
56190         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
56191         initializers in SunPRO C and Compaq C compilers.
56192
56193 2007-03-11  Bruno Haible  <bruno@clisp.org>
56194
56195         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
56196         decrementing code ANSI C compliant.
56197
56198 2007-03-11  Bruno Haible  <bruno@clisp.org>
56199
56200         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
56201         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
56202
56203 2007-03-11  Bruno Haible  <bruno@clisp.org>
56204
56205         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
56206         <stdbool.h> substitute doesn't pass.
56207
56208 2007-03-11  Bruno Haible  <bruno@clisp.org>
56209
56210         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56211
56212 2007-03-11  Bruno Haible  <bruno@clisp.org>
56213
56214         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56215         script, for submission to autobuild.josefsson.org.
56216
56217 2007-03-10  Bruno Haible  <bruno@clisp.org>
56218
56219         * modules/canonicalize-lgpl-tests: New file.
56220         * tests/test-canonicalize-lgpl.sh: New file.
56221         * tests/test-canonicalize-lgpl.c: New file.
56222
56223         * modules/c-strcase-tests: New file.
56224         * tests/test-c-strcase.sh: New file.
56225         * tests/test-c-strcasecmp.c: New file.
56226         * tests/test-c-strncasecmp.c: New file.
56227
56228         * modules/atexit-tests: New file.
56229         * tests/test-atexit.sh: New file.
56230         * tests/test-atexit.c: New file.
56231
56232 2007-03-10  Bruno Haible  <bruno@clisp.org>
56233
56234         * tests/test-binary-io.sh: Use temporary filenames that are not so
56235         likely to clash with those of other tests (in a parallel make).
56236         * tests/test-binary-io.c: Likewise.
56237
56238 2007-03-10  Bruno Haible  <bruno@clisp.org>
56239
56240         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56241         fallback; use #error instead.
56242         Suggested by Simon Josefsson.
56243
56244 2007-03-10  Bruno Haible  <bruno@clisp.org>
56245
56246         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56247         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56248         first and the last.
56249
56250 2007-03-10  Bruno Haible  <bruno@clisp.org>
56251
56252         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56253
56254 2007-03-10  Bruno Haible  <bruno@clisp.org>
56255
56256         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56257         "make distcheck".
56258         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56259         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56260         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56261
56262 2007-03-10  Bruno Haible  <bruno@clisp.org>
56263
56264         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56265         variable.
56266         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56267         variable.
56268
56269 2007-03-09  Eric Blake  <ebb9@byu.net>
56270         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56271
56272         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56273         types are not being provided by gnulib.
56274         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56275         types are supported.
56276
56277 2007-03-10  Bruno Haible  <bruno@clisp.org>
56278
56279         * lib/stdio_.h (__attribute__): New macro.
56280         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56281         vsprintf): Specify __attribute__ __format__ for GCC.
56282         Suggested by Eric Blake.
56283
56284 2007-03-09  Bruno Haible  <bruno@clisp.org>
56285
56286         * modules/printf-posix-tests: New file.
56287         * tests/test-printf-posix.sh: New file.
56288         * tests/test-printf-posix.c: New file.
56289
56290         * modules/printf-posix: New file.
56291         * lib/printf.c: New file.
56292         * m4/printf-posix-rpl.m4: New file.
56293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56294         REPLACE_PRINTF.
56295         * lib/stdio_.h (printf): New declaration.
56296         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56297         ____strfmon____): New macros.
56298         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56299         REPLACE_PRINTF.
56300
56301 2007-03-09  Bruno Haible  <bruno@clisp.org>
56302
56303         * tests/test-vasnprintf-posix2.sh: New file.
56304         * tests/test-vasnprintf-posix2.c: New file.
56305         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56306         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56307         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56308
56309         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56310         a locale dependent decimal point, rather than always '.'.
56311
56312 2007-03-09  Eric Blake  <ebb9@byu.net>
56313
56314         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56315         spite of platforms like Tandem/NSK that define it to -1.
56316
56317 2007-03-08  Bruno Haible  <bruno@clisp.org>
56318
56319         * modules/vprintf-posix-tests: New file.
56320         * tests/test-vprintf-posix.sh: New file.
56321         * tests/test-vprintf-posix.c: New file.
56322         * tests/test-printf-posix.h: New file.
56323
56324         * modules/vprintf-posix: New file.
56325         * lib/vprintf.c: New file.
56326         * m4/vprintf-posix.m4: New file.
56327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56328         REPLACE_VPRINTF.
56329         * lib/stdio_.h (vprintf): New declaration.
56330         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56331         REPLACE_VPRINTF.
56332
56333 2007-03-08  Bruno Haible  <bruno@clisp.org>
56334
56335         * modules/fprintf-posix-tests: New file.
56336         * tests/test-fprintf-posix.sh: New file.
56337         * tests/test-fprintf-posix.c: New file.
56338
56339         * modules/fprintf-posix: New file.
56340         * lib/fprintf.c: New file.
56341         * m4/fprintf-posix.m4: New file.
56342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56343         REPLACE_FPRINTF.
56344         * lib/stdio_.h (fprintf): New declaration.
56345         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56346         REPLACE_FPRINTF.
56347
56348 2007-03-08  Bruno Haible  <bruno@clisp.org>
56349
56350         * modules/vfprintf-posix-tests: New file.
56351         * tests/test-vfprintf-posix.sh: New file.
56352         * tests/test-vfprintf-posix.c: New file.
56353         * tests/test-fprintf-posix.h: New file.
56354         * tests/test-fprintf-posix.out: New file.
56355
56356         * modules/vfprintf-posix: New file.
56357         * lib/vfprintf.c: New file.
56358         * m4/vfprintf-posix.m4: New file.
56359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56360         REPLACE_VFPRINTF.
56361         * lib/stdio_.h (vfprintf): New declaration.
56362         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56363         REPLACE_VFPRINTF.
56364
56365 2007-03-08  Bruno Haible  <bruno@clisp.org>
56366
56367         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56368
56369 2007-03-08  Bruno Haible  <bruno@clisp.org>
56370
56371         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56372         instead of 'expr' invocations.
56373         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56374         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56375         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56376         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56377         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56378         Suggested by Paul Eggert.
56379
56380 2007-03-08  Bruno Haible  <bruno@clisp.org>
56381
56382         * modules/fseterr-tests: New file.
56383         * tests/test-fseterr.c: New file.
56384
56385         * modules/fseterr: New file.
56386         * lib/fseterr.h: New file.
56387         * lib/fseterr.c: New file.
56388
56389 2007-03-08  Bruno Haible  <bruno@clisp.org>
56390
56391         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56392         * lib/getopt_.h: Likewise.
56393         * lib/mbswidth.h: Likewise.
56394         * lib/setenv.h: Likewise.
56395         * lib/vasnprintf.h: Likewise.
56396         * lib/vasprintf.h: Likewise.
56397         * lib/verror.h: Likewise.
56398         * lib/xsetenv.h: Likewise.
56399         * lib/xvasprintf.h: Likewise.
56400
56401 2007-03-08  Jim Meyering  <jim@meyering.net>
56402
56403         * users.txt: Add parted.
56404
56405         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56406
56407 2007-03-07  Bruno Haible  <bruno@clisp.org>
56408
56409         * m4/printf.m4: Make the shell script snippets copy&pastable.
56410
56411 2007-03-02  Bruno Haible  <bruno@clisp.org>
56412
56413         * lib/netinet_in_.h: New file.
56414         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56415         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56416         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56417         (Depends-on): Add absolute-header.
56418         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56419         into netinet/in.h.
56420
56421 2007-03-03  Bruno Haible  <bruno@clisp.org>
56422
56423         * lib/sys_select_.h: New file.
56424         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56425         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56426         * modules/sys_select (Files): Add lib/sys_select_.h.
56427         (Depends-on): Add absolute-header.
56428         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56429         into sys/select.h.
56430
56431 2007-03-02  Bruno Haible  <bruno@clisp.org>
56432
56433         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56434         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56435         values.
56436         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56437         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56438         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56439         * modules/sys_socket (Depends-on): Add absolute-header.
56440         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56441         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56442         (Include): Remove requirement of inclusion of <sys/types.h>.
56443
56444 2007-03-02  Bruno Haible  <bruno@clisp.org>
56445
56446         * lib/byteswap_.h (bswap_32): Fix formula.
56447
56448 2007-03-06  Bruno Haible  <bruno@clisp.org>
56449
56450         * modules/sprintf-posix-tests: New file.
56451         * tests/test-sprintf-posix.c: New file.
56452
56453         * modules/sprintf-posix: New file.
56454         * lib/sprintf.c: New file.
56455         * m4/sprintf-posix.m4: New file.
56456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56457         REPLACE_SPRINTF.
56458         * lib/stdio_.h (sprintf): New declaration.
56459         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56460         REPLACE_SPRINTF.
56461
56462 2007-03-06  Bruno Haible  <bruno@clisp.org>
56463
56464         * modules/vsprintf-posix-tests: New file.
56465         * tests/test-vsprintf-posix.c: New file.
56466         * tests/test-sprintf-posix.h: New file.
56467
56468         * modules/vsprintf-posix: New file.
56469         * lib/vsprintf.c: New file.
56470         * m4/vsprintf-posix.m4: New file.
56471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56472         REPLACE_VSPRINTF.
56473         * lib/stdio_.h (vsprintf): New declaration.
56474         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56475         REPLACE_VSPRINTF.
56476
56477 2007-03-06  Bruno Haible  <bruno@clisp.org>
56478
56479         * modules/vsnprintf (Depend-on): Remove minmax.
56480
56481 2007-03-06  Bruno Haible  <bruno@clisp.org>
56482
56483         * modules/snprintf-posix-tests: New file.
56484         * tests/test-snprintf-posix.c: New file.
56485
56486         * modules/snprintf-posix: New file.
56487         * m4/snprintf-posix.m4: New file.
56488         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56489         gl_FUNC_SNPRINTF.
56490         (gl_FUNC_SNPRINTF): Invoke it.
56491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56492         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56493         is set.
56494         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56495
56496 2007-03-06  Bruno Haible  <bruno@clisp.org>
56497
56498         * modules/vsnprintf-posix-tests: New file.
56499         * tests/test-vsnprintf-posix.c: New file.
56500         * tests/test-snprintf-posix.h: New file.
56501
56502         * modules/vsnprintf-posix: New file.
56503         * m4/vsnprintf-posix.m4: New file.
56504         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56505         gl_FUNC_VSNPRINTF.
56506         (gl_FUNC_VSNPRINTF): Invoke it.
56507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56508         * lib/stdio_.h (vsnprintf): Define as a replacement if
56509         REPLACE_VSNPRINTF is set.
56510         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56511
56512 2007-03-06  Bruno Haible  <bruno@clisp.org>
56513
56514         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56515         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56516
56517 2007-03-06  Bruno Haible  <bruno@clisp.org>
56518
56519         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56520         (asinl): Declare also if HAVE_DECL_ASINL is set.
56521         (atanl): Declare also if HAVE_DECL_ATANL is set.
56522         (ceill): Declare also if HAVE_DECL_CEILL is set.
56523         (cosl): Declare also if HAVE_DECL_COSL is set.
56524         (expl): Declare also if HAVE_DECL_EXPL is set.
56525         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56526         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56527         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56528         (logl): Declare also if HAVE_DECL_LOGL is set.
56529         (sinl): Declare also if HAVE_DECL_SINL is set.
56530         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56531         (tanl): Declare also if HAVE_DECL_TANL is set.
56532         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56534         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56535         declaration of frexpl, ldexpl.
56536         * modules/printf-frexpl (Depends-on): Add math.
56537         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56538
56539 2007-03-05  Bruno Haible  <bruno@clisp.org>
56540
56541         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56542         frexpl and ldexpl are declared.
56543         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56544
56545 2007-03-05  Bruno Haible  <bruno@clisp.org>
56546
56547         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56548         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56549
56550 2007-03-05  Bruno Haible  <bruno@clisp.org>
56551
56552         * lib/stdio_.h: Include <stddef.h>.
56553
56554 2007-03-05  Bruno Haible  <bruno@clisp.org>
56555
56556         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56557
56558 2007-03-05  Bruno Haible  <bruno@clisp.org>
56559
56560         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56561         NetBSD 4, from Ralf Wildenhues.
56562
56563 2007-03-04  Bruno Haible  <bruno@clisp.org>
56564
56565         * lib/vasprintf.h: Update #if logic for the case when the functions
56566         exist but are overridden.
56567
56568 2007-03-04  Bruno Haible  <bruno@clisp.org>
56569
56570         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56571         implementations: glibc-2.4 and MacOS X 10.3.
56572         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56573         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56574         * tests/test-vasprintf-posix.c (test_function): Likewise.
56575
56576 2007-03-04  Bruno Haible  <bruno@clisp.org>
56577
56578         * modules/vasprintf-posix-tests: New file.
56579         * tests/test-vasprintf-posix.c: New file.
56580
56581         * modules/vasprintf-posix: New file.
56582         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56583         defined.
56584         * m4/vasprintf-posix.m4: New file.
56585         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56586         gl_FUNC_VASPRINTF.
56587         (gl_FUNC_VASPRINTF): Invoke it.
56588         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56589         here.
56590         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56591
56592 2007-03-04  Bruno Haible  <bruno@clisp.org>
56593
56594         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56595         REPLACE_GETTIMEOFDAY.
56596         * modules/sys_time (Makefile.am): Likewise.
56597         * m4/sys_time_h.m4: Likewise.
56598         * m4/gettimeofday.m4: Likewise.
56599
56600 2007-03-04  Bruno Haible  <bruno@clisp.org>
56601
56602         * modules/vasnprintf-posix-tests: New file.
56603         * tests/test-vasnprintf-posix.c: New file.
56604
56605         * modules/vasnprintf-posix: New file.
56606         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56607         printf-frexpl.h.
56608         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56609         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56610         REPLACE_VASNPRINTF is defined.
56611         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56612         gl_FUNC_VASNPRINTF.
56613         (gl_FUNC_VASNPRINTF): Invoke it.
56614         * m4/vasnprintf-posix.m4: New file.
56615         * m4/printf.m4: New file.
56616
56617 2007-03-04  Bruno Haible  <bruno@clisp.org>
56618
56619         Compile progreloc.c only if --enable-relocatable is specified.
56620         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56621         if --enable-relocatable was specified.
56622         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56623         lib_SOURCES.
56624
56625 2007-03-04  Jim Meyering  <jim@meyering.net>
56626
56627         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56628         Use it consistently, rather than enumerating errno constants.
56629
56630 2007-03-04  Bruno Haible  <bruno@clisp.org>
56631
56632         * modules/xvasprintf-tests: New file.
56633         * tests/test-xvasprintf.c: New file.
56634
56635         * modules/vasprintf-tests: New file.
56636         * tests/test-vasprintf.c: New file.
56637
56638         * modules/vasnprintf-tests: New file.
56639         * tests/test-vasnprintf.c: New file.
56640
56641         * modules/vsnprintf-tests: New file.
56642         * tests/test-vsnprintf.c: New file.
56643
56644         * modules/snprintf-tests: New file.
56645         * tests/test-snprintf.c: New file.
56646
56647 2007-03-04  Bruno Haible  <bruno@clisp.org>
56648
56649         Compile relocatable.c only if --enable-relocatable is specified.
56650         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56651         gl_RELOCATABLE_LIBRARY.
56652         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56653         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56654         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56655         gl_RELOCATABLE_LIBRARY.
56656         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56657         (Makefile.am): Remove lib_SOURCES.
56658         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56659         gl_RELOCATABLE_LIBRARY.
56660         (Makefile.am): Remove lib_SOURCES.
56661         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56662         always.
56663         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56664         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56665
56666 2007-03-04  Bruno Haible  <bruno@clisp.org>
56667
56668         * modules/argmatch-tests: New file.
56669         * tests/test-argmatch.c: New file.
56670
56671         * tests/test-allocsa.c (main): Halve the number of loop runs.
56672
56673         * modules/alloca-opt-tests: New file.
56674         * tests/test-alloca-opt.c: New file.
56675
56676 2007-03-04  Jim Meyering  <jim@meyering.net>
56677
56678         Work around difference between Linux ACLs and Solaris 10 ZFS.
56679         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56680         for EINVAL.
56681
56682 2007-03-03  Bruno Haible  <bruno@clisp.org>
56683
56684         * modules/relocatable-prog (Depends-on): Add back progreloc's
56685         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56686
56687 2007-03-03  Bruno Haible  <bruno@clisp.org>
56688
56689         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56690         * modules/relocatable-lib: New file.
56691
56692 2007-03-03  Bruno Haible  <bruno@clisp.org>
56693
56694         * modules/relocatable-prog: Renamed from modules/relocatable.
56695         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56696
56697 2007-03-03  Bruno Haible  <bruno@clisp.org>
56698
56699         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56700         m4/relocatable-lib.m4.
56701         (Depends-on): Remove 'relocatable'.
56702         (configure.ac): Add gl_RELOCATABLE_NOP.
56703
56704 2007-03-03  Bruno Haible  <bruno@clisp.org>
56705
56706         * modules/relocatable-prog-wrapper: New file.
56707         * modules/relocatable (Depends-on): Add it. Remove all other
56708         dependencies except progname.
56709         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56710
56711         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56712         (gl_FUNC_STRERROR): Nop.
56713         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56714
56715         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56716         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56717
56718         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56719         (gl_FUNC_READLINK): Update.
56720
56721         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56722
56723 2007-03-03  Bruno Haible  <bruno@clisp.org>
56724
56725         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56726         * modules/xreadlink (Depends-on): Add unistd.
56727         * modules/xreadlink-with-size (Depends-on): Likewise.
56728
56729 2007-03-03  Bruno Haible  <bruno@clisp.org>
56730
56731         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56732         extracted from gt_FUNC_SETENV.
56733         (gt_FUNC_SETENV): Remove macro.
56734         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56735         remove gt_FUNC_SETENV.
56736
56737 2007-03-03  Bruno Haible  <bruno@clisp.org>
56738
56739         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56740         ENABLE_RELOCATABLE here.
56741         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56742
56743 2007-03-03  Bruno Haible  <bruno@clisp.org>
56744
56745         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56746         * tests/test-rbtreehash_list.c: Include progname.h.
56747         (main): Call set_program_name.
56748
56749         * modules/rbtree-oset-tests (Depends-on): Add progname.
56750         * tests/test-rbtree_oset.c: Include progname.h.
56751         (main): Call set_program_name.
56752
56753         * modules/rbtree-list-tests (Depends-on): Add progname.
56754         * tests/test-rbtree_list.c: Include progname.h.
56755         (main): Call set_program_name.
56756
56757         * modules/linked-list-tests (Depends-on): Add progname.
56758         * tests/test-linked_list.c: Include progname.h.
56759         (main): Call set_program_name.
56760
56761 2007-03-03  Bruno Haible  <bruno@clisp.org>
56762
56763         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56764         All uses of __restrict changed to _Restrict_.
56765         * lib/glob_.h (__restrict): Remove macro.
56766
56767 2007-03-02  Bruno Haible  <bruno@clisp.org>
56768
56769         * modules/gettext (configure.ac): Require gettext infrastructure
56770         from version 0.16.1.
56771
56772 2007-03-02  Bruno Haible  <bruno@clisp.org>
56773
56774         * modules/linkedhash-list-tests (Depends-on): Add progname.
56775         * tests/test-linkedhash_list.c: Include progname.h.
56776         (main): Call set_program_name.
56777
56778         * modules/carray-list-tests (Depends-on): Add progname.
56779         * tests/test-carray_list.c: Include progname.h.
56780         (main): Call set_program_name.
56781
56782         * modules/avltreehash-list-tests (Depends-on): Add progname.
56783         * tests/test-avltreehash_list.c: Include progname.h.
56784         (main): Call set_program_name.
56785
56786         * modules/avltree-oset-tests (Depends-on): Add progname.
56787         * tests/test-avltree_oset.c: Include progname.h.
56788         (main): Call set_program_name.
56789
56790         * modules/avltree-list-tests (Depends-on): Add progname.
56791         * tests/test-avltree_list.c: Include progname.h.
56792         (main): Call set_program_name.
56793
56794         * modules/array-oset-tests (Depends-on): Add progname.
56795         * tests/test-array_oset.c: Include progname.h.
56796         (main): Call set_program_name.
56797
56798         * modules/array-list-tests (Depends-on): Add progname.
56799         * tests/test-array_list.c: Include progname.h.
56800         (main): Call set_program_name.
56801
56802         * modules/argp-tests (Depends-on): Add progname.
56803         * tests/test-argp.c: Include argp.h first. Include progname.h.
56804         (main): Call set_program_name.
56805
56806 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
56807
56808         * doc/gnulib-tool.texi (Initial import): Reword description of
56809         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
56810         limited effect even if defined after the first system include.
56811
56812 2007-03-01  Bruno Haible  <bruno@clisp.org>
56813
56814         * build-aux/config.libpath: Update to libtool-1.5.22.
56815         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56816
56817 2007-03-01  Bruno Haible  <bruno@clisp.org>
56818
56819         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
56820         foo_CFLAGS.
56821         Reported by Ralf Wildenhues.
56822
56823 2007-03-01  Bruno Haible  <bruno@clisp.org>
56824
56825         * build-aux/install-reloc: Remove object files left over by some
56826         compilers.
56827         Reported by Ralf Wildenhues.
56828
56829 2007-03-01  Bruno Haible  <bruno@clisp.org>
56830
56831         * build-aux/install-reloc: Break long lines.
56832
56833 2007-03-01  Bruno Haible  <bruno@clisp.org>
56834
56835         * doc/relocatable.texi: Document that it may not work on OpenBSD.
56836         Reported by Ralf Wildenhues.
56837
56838 2007-03-01  Bruno Haible  <bruno@clisp.org>
56839
56840         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
56841         include ordering constraints.
56842
56843 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56844
56845         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
56846         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
56847         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
56848         as another example.
56849         * lib/time_.h: Fix misspelling.
56850         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56851         Require gl_HEADER_TIME_H_DEFAULTS.
56852         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
56853         * m4/time_r.m4 (gl_TIME_R): Likewise.
56854         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
56855
56856 2007-03-01  Bruno Haible  <bruno@clisp.org>
56857
56858         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
56859         * m4/utimens.m4 (gl_UTIMENS): Likewise.
56860
56861 2007-03-01  Jim Meyering  <jim@meyering.net>
56862
56863         * modules/xreadlink (Maintainer): Add my name.
56864         * modules/xreadlink-with-size (Depends-on): Alphabetize.
56865
56866 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
56867             Bruno Haible  <bruno@clisp.org>
56868
56869         * build-aux/install-reloc: Compile also c-ctype.c.
56870         * build-aux/relocatable.sh.in: New file.
56871         * doc/relocatable.texi: New file.
56872         * doc/relocatable-maint.texi: New file.
56873         * doc/gnulib.texi: Include relocatable-maint.texi.
56874         * lib/progreloc.c: Include unistd.h unconditionally.
56875         * lib/relocwrapper.c: Include unistd.h unconditionally.
56876         Include c-ctype.h.
56877         (add_dotbin): Use c_tolower.
56878         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
56879         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
56880         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
56881         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
56882         to m4/relocatable-lib.m4.
56883         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
56884         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
56885         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
56886         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
56887         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
56888         * modules/relocatable: New file.
56889         * modules/relocatable-lib: New file.
56890         * modules/relocatable-script: New file.
56891
56892 2007-02-28  Bruno Haible  <bruno@clisp.org>
56893
56894         Import --enable-relocatable infrastructure.
56895         * build-aux/config.libpath: New file, from GNU gettext.
56896         * build-aux/install-reloc: New file, from GNU gettext.
56897         * build-aux/reloc-ldflags: New file, from GNU gettext.
56898         * lib/relocatable.h: New file, from GNU gettext.
56899         * lib/relocatable.c: New file, from GNU gettext.
56900         * lib/relocwrapper.c: New file, from GNU gettext.
56901         * m4/relocatable.m4: New file, from GNU gettext.
56902
56903 2007-02-28  Bruno Haible  <bruno@clisp.org>
56904
56905         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
56906
56907         * modules/xreadlink: New file, from GNU gettext with modifications.
56908         * lib/xreadlink.c: New file, from GNU gettext.
56909         * lib/xreadlink.h: Add comments.
56910         (xreadlink): New declaration.
56911
56912         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
56913         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
56914         lib/xreadlink-with-size.c.
56915         (configure.ac): Remove gl_XREADLINK invocation.
56916         (Makefile.am): Augment lib_SOURCES.
56917         * m4/xreadlink.m4: Remove file.
56918         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
56919         (xreadlink_with_size): Renamed from xreadink.
56920         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
56921         * modules/canonicalize (Depends-on): Replace xreadlink with
56922         xreadlink-with-size.
56923         * lib/canonicalize.c (canonicalize_filename_mode): Update.
56924
56925 2007-02-25  Jim Meyering  <jim@meyering.net>
56926
56927         * build-aux/announce-gen: When complaining about excess arguments,
56928         list them.
56929
56930 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56931
56932         * README: Document signed integer overflow situation more
56933         accurately.
56934
56935 2007-02-25  Bruno Haible  <bruno@clisp.org>
56936
56937         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
56938         'a' or 'A' conversion.
56939
56940 2007-02-25  Bruno Haible  <bruno@clisp.org>
56941
56942         * modules/filename: Renamed from modules/pathname.
56943         (Files): Replace lib/pathname.h with lib/filename.h. Replace
56944         lib/concatpath.c with lib/concat-filename.c.
56945         (Makefile.am): Update.
56946         (Include): Replace pathname.h with filename.h.
56947         * lib/filename.h: Renamed from lib/pathname.h.
56948         (concatenated_filename): Renamed from concatenated_pathname.
56949         * lib/concat-filename.c: Renamed from lib/concatpath.c.
56950         (concatenated_filename): Renamed from concatenated_pathname.
56951         * lib/findprog.c: Include filename.h instead of pathname.h.
56952         (find_in_path): Update.
56953         * lib/javacomp.c: Include filename.h instead of pathname.h.
56954         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56955         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56956         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56957         is_oldgcj_14_13_usable, is_javac_usable): Update.
56958         * lib/javaexec.c: Include filename.h instead of pathname.h.
56959         (execute_java_class): Update.
56960         * modules/findprog: Update.
56961         * modules/javacomp: Update.
56962         * modules/javaexec: Update.
56963         * MODULES.html.sh (File system functions): Add 'filename', remove
56964         'pathname'.
56965
56966 2007-02-25  Bruno Haible  <bruno@clisp.org>
56967
56968         * modules/printf-frexpl-tests: New file.
56969         * tests/test-printf-frexpl.c: New file.
56970
56971         * modules/printf-frexpl: New file.
56972         * lib/printf-frexpl.h: New file.
56973         * lib/printf-frexpl.c: New file.
56974         * m4/printf-frexpl.m4: New file.
56975
56976 2007-02-25  Bruno Haible  <bruno@clisp.org>
56977
56978         * modules/printf-frexp-tests: New file.
56979         * tests/test-printf-frexp.c: New file.
56980
56981         * modules/printf-frexp: New file.
56982         * lib/printf-frexp.h: New file.
56983         * lib/printf-frexp.c: New file.
56984         * m4/printf-frexp.m4: New file.
56985
56986 2007-02-25  Bruno Haible  <bruno@clisp.org>
56987
56988         Assume automake >= 1.10 for the tests.
56989         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
56990         * modules/arctwo-tests: Likewise.
56991         * modules/argp-tests: Likewise.
56992         * modules/avltree-list-tests: Likewise.
56993         * modules/avltree-oset-tests: Likewise.
56994         * modules/avltreehash-list-tests: Likewise.
56995         * modules/carray-list-tests: Likewise.
56996         * modules/crc-tests: Likewise.
56997         * modules/des-tests: Likewise.
56998         * modules/gc-arcfour-tests: Likewise.
56999         * modules/gc-arctwo-tests: Likewise.
57000         * modules/gc-des-tests: Likewise.
57001         * modules/gc-hmac-md5-tests: Likewise.
57002         * modules/gc-hmac-sha1-tests: Likewise.
57003         * modules/gc-md2-tests: Likewise.
57004         * modules/gc-md4-tests: Likewise.
57005         * modules/gc-md5-tests: Likewise.
57006         * modules/gc-pbkdf2-sha1-tests: Likewise.
57007         * modules/gc-rijndael-tests: Likewise.
57008         * modules/gc-sha1-tests: Likewise.
57009         * modules/gc-tests: Likewise.
57010         * modules/getaddrinfo-tests: Likewise.
57011         * modules/hmac-md5-tests: Likewise.
57012         * modules/hmac-sha1-tests: Likewise.
57013         * modules/linked-list-tests: Likewise.
57014         * modules/linkedhash-list-tests: Likewise.
57015         * modules/lock-tests: Likewise.
57016         * modules/md2-tests: Likewise.
57017         * modules/md4-tests: Likewise.
57018         * modules/md5-tests: Likewise.
57019         * modules/rbtree-list-tests: Likewise.
57020         * modules/rbtree-oset-tests: Likewise.
57021         * modules/rbtreehash-list-tests: Likewise.
57022         * modules/read-file-tests: Likewise.
57023         * modules/rijndael-tests: Likewise.
57024         * modules/stdint-tests: Likewise.
57025         * modules/tls-tests: Likewise.
57026
57027 2007-02-24  Bruno Haible  <bruno@clisp.org>
57028
57029         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
57030         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
57031         function; instead check whether isnan with a double argument links.
57032         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
57033         function; instead check whether isnan with a 'long double' argument
57034         links.
57035         Reported by Eric Blake <ebb9@byu.net>.
57036
57037 2007-02-24  Bruno Haible  <bruno@clisp.org>
57038
57039         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
57040         defined.
57041         * lib/isnanl.c: Remove all code. Just include isnan.c.
57042         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
57043
57044 2007-02-25  Jim Meyering  <jim@meyering.net>
57045
57046         Avoid conflicting types for 'unsetenv' on FreeBSD.
57047         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
57048         conflicting with FreeBSD's (5.0 and 6.1) function declaration
57049         in stdlib.h.
57050
57051 2007-02-24  Bruno Haible  <bruno@clisp.org>
57052
57053         * modules/isnanl-nolibm-tests: New file.
57054         * tests/test-isnanl.c: New file.
57055
57056         * modules/isnanl-nolibm: New file.
57057         * lib/isnanl.h: New file.
57058         * lib/isnanl.c: New file.
57059         * m4/isnanl.m4: New file.
57060
57061 2007-02-24  Bruno Haible  <bruno@clisp.org>
57062
57063         * modules/isnan-nolibm-tests: New file.
57064         * tests/test-isnan.c: New file.
57065
57066         * modules/isnan-nolibm: New file.
57067         * lib/isnan.h: New file.
57068         * lib/isnan.c: New file.
57069         * m4/isnan.m4: New file.
57070
57071 2007-02-24  Bruno Haible  <bruno@clisp.org>
57072
57073         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
57074         assume that an exponent fits in 20 bits.
57075
57076 2007-02-24  Jim Meyering  <jim@meyering.net>
57077
57078         * m4/regex.m4: Update the description of the configure-time option,
57079         --without-included-regex, to state accurately what the defaults are,
57080         and perhaps to give people an idea why using this option is risky.
57081
57082 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57083
57084         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
57085         loops on small arguments.  This attempts to avoid the problem
57086         Bruno Haible reported for AIX 4.3.2 in
57087         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
57088
57089 2007-02-23  Bruno Haible  <bruno@clisp.org>
57090
57091         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
57092         Needed for help2man.
57093
57094 2007-02-23  Karl Berry  <karl@gnu.org>
57095
57096         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
57097         exists, foo.h should be cvs-ignored, not committed.
57098
57099 2007-02-23  Eric Blake  <ebb9@byu.net>
57100
57101         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
57102         * lib/stat-time.h (includes): Likewise.
57103         * lib/utimecmp.c (includes): Likewise.
57104         * lib/utimens.h (includes): Likewise.
57105         * lib/getdate.y (includes): Also include "timespec.h" for use
57106         internal to the module.
57107         * modules/utimens (Depends-on): Revert yesterday's patch.
57108         * modules/nanosleep (Depends-on): Add missing dependency.
57109
57110 2007-02-22  Bruno Haible  <bruno@clisp.org>
57111
57112         * lib/glob.c: Don't include getlogin_r.h.
57113
57114 2007-02-22  Jim Meyering  <jim@meyering.net>
57115
57116         * modules/utimens (Depends-on): Add timespec, required for
57117         utimens.h's inclusion of timespec.h.
57118
57119 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
57120
57121         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
57122         long unreadable paths in GNU/Linux.  Problem reported by Andreas
57123         Schwab in
57124         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
57125         I'll try to think of a better way to fix the Solaris problem.
57126
57127         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
57128         like glibc; on Solaris 10, it fails with errno == EINVAL.
57129         POSIX says the behavior is unspecified if the first argument is NULL,
57130         so play it safe and never pass NULL to the system getcwd.
57131
57132 2007-02-21  Jim Meyering  <jim@meyering.net>
57133
57134         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
57135         of gettimeofday.  It would conflict with the one now always
57136         provided via sys_time_.h.  Reported by Matthew Woehlke, as
57137         an IRIX 6.5 build failure.
57138
57139 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57140
57141         Minor fixups to port to Solaris 10 with Sun C 5.8.
57142         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
57143         * modules/getcwd (Depends-on): Add dirfd.
57144         * lib/putenv.c (putenv): #undef it.
57145         (rpl_putenv): New decl.
57146         (malloc, free): Include <stdlib.h> rather than prototyping separately.
57147
57148 2007-02-20  Bruno Haible  <bruno@clisp.org>
57149
57150         * modules/stdio-tests: New file.
57151         * tests/test-stdio.c: New file.
57152
57153         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
57154         (Depends-on): Add stdio.
57155         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57156         (Include): Use <stdio.h> instead of vsnprintf.h.
57157         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57158         HAVE_DECL_VSNPRINTF.
57159         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
57160
57161         * modules/snprintf (Files): Remove lib/snprintf.h.
57162         (Depends-on): Add stdio.
57163         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57164         (Include): Use <stdio.h> instead of snprintf.h.
57165         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57166         HAVE_DECL_SNPRINTF.
57167         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
57168         * lib/getaddrinfo.c: Likewise.
57169
57170         * modules/stdio: New file.
57171         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
57172         * lib/snprintf.h: Remove file.
57173         * lib/vsnprintf.h: Remove file.
57174         * lib/.cppi-disable: Remove snprintf.h.
57175         * m4/stdio_h.m4: New file.
57176         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
57177
57178 2007-02-20  Jim Meyering  <jim@meyering.net>
57179
57180         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
57181         used by e.g., mingw.  From Bruno Haible.
57182
57183 2007-02-19  Bruno Haible  <bruno@clisp.org>
57184
57185         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
57186         warnings.
57187         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57188
57189 2007-02-19  Bruno Haible  <bruno@clisp.org>
57190
57191         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
57192         from mingw users.
57193
57194 2007-02-19  Bruno Haible  <bruno@clisp.org>
57195
57196         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
57197         warnings.
57198         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
57199
57200 2007-02-19  Jim Meyering  <jim@meyering.net>
57201
57202         Don't use FD after a successful "fdopendir (fd)".
57203         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
57204         Reset it by calling dirfd on the just-obtained DIR*.
57205
57206         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57207         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57208
57209 2007-02-18  Bruno Haible  <bruno@clisp.org>
57210
57211         * lib/readlink.c: Include <unistd.h>.
57212         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57213         HAVE_READLINK.
57214         * modules/readlink (Depends-on): Add unistd.
57215         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57216         (Include): Add <unistd.h>.
57217
57218         * lib/getlogin_r.h: Remove file.
57219         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57220         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57221         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57222         HAVE_DECL_GETLOGIN_R.
57223         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57224         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57225         (Include): Use <unistd.h> instead of getlogin_r.h.
57226
57227         * lib/getcwd.h: Remove file.
57228         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57229         * lib/xgetcwd.c: Likewise.
57230         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57231         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57232         * modules/getcwd (Files): Remove lib/getcwd.h.
57233         (Depends-on): Add unistd.
57234         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57235         (Include): Use <unistd.h> instad of getcwd.h.
57236
57237         * lib/ftruncate.c: Include <unistd.h> first.
57238         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57239         Set HAVE_FTRUNCATE.
57240         * modules/ftruncate (Depends-on): Add unistd.
57241         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57242
57243         * lib/fchdir.c: Include <unistd.h> first.
57244         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57246         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57247         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57248         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57249
57250         * lib/dup2.c: Include <unistd.h> first.
57251         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57252         HAVE_DUP2.
57253         * modules/dup2 (Depends-on): Add unistd.
57254         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57255
57256         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57257         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57258         REPLACE_CHOWN. Don't define chown as a macro here.
57259         * modules/chown (Depends-on): Add unistd.
57260         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57261
57262         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57263         Add definition for GL_LINK_WARNING.
57264         (chown, dup2): New declarations.
57265         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57266         link warning.
57267         (ftruncate): New declaration.
57268         (getcwd): New declaration, taken from old getcwd.h.
57269         (getlogin_r): New declaration, taken from old getlogin_r.h.
57270         (readlink): New declaration.
57271         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57272         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57273         (gl_PREREQ_UNISTD): Remove macro.
57274         (gl_UNISTD_MODULE_INDICATOR): New macro.
57275         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57276         many new variables. Don't set UNISTD_H.
57277         * modules/unistd (Description): Change.
57278         (Depends-on): Add link-warning.
57279         (configure.ac): Update.
57280         (Makefile.am): Create unistd.h always. Substitute many new variables
57281         into it.
57282
57283 2007-02-18  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57286         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57287         HAVE_GETSUBOPT.
57288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57289         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57290         * lib/getsubopt.h: Remove file.
57291         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57292         (Depends-on): Add stdlib.
57293         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57294         (Includes): Use <stdlib.h> instead of getsubopt.h.
57295         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57296         Set HAVE_GETSUBOPT.
57297         * lib/getsubopt.c: Don't include getsubopt.h.
57298
57299 2007-02-18  Bruno Haible  <bruno@clisp.org>
57300
57301         * modules/fchdir (Depends-on): Add dup2.
57302
57303 2007-02-18  Bruno Haible  <bruno@clisp.org>
57304
57305         * lib/stdlib_.h: Handle glibc's special invocation convention
57306         specially.
57307
57308 2007-02-18  Bruno Haible  <bruno@clisp.org>
57309
57310         * modules/stdlib-tests: New file.
57311         * tests/test-stdlib.c: New file.
57312
57313         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57314         (Depends-on): Add stdlib.
57315         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57316         (Includes): Use <stdlib.h> instead of mkstemp.h.
57317         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57318         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57319         * lib/mkstemp.c: Don't include mkstemp.h.
57320         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57321         * lib/stdlib--.h: Don't include mkstemp.h.
57322
57323         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57324         (Depends-on): Add stdlib.
57325         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57326         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57327         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57328         HAVE_MKDTEMP.
57329         * lib/mkdtemp.c: Don't include mkdtemp.h.
57330         * lib/clean-temp.c: Don't include mkdtemp.h.
57331
57332         * modules/exit (Files): Remove lib/exit.h.
57333         (Depends-on): Add stdlib.
57334         (Makefile.am): Remove lib_SOURCES.
57335         (Include): Use <stdlib.h> instead of exit.h.
57336         * lib/argmatch.c: Don't include exit.h.
57337         * lib/execute.c: Likewise.
57338         * lib/pagealign_alloc.c: Likewise.
57339         * lib/pipe.c: Likewise.
57340         * lib/wait-process.c: Likewise.
57341         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57342         * lib/exitfail.c: Likewise.
57343         * lib/savewd.c: Likewise.
57344         * lib/xsetenv.c: Likewise.
57345
57346         * modules/stdlib: New file.
57347         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57348         and extra comments about mkstemp().
57349         * lib/exit.h: Remove file.
57350         * lib/mkdtemp.h: Remove file.
57351         * lib/mkstemp.h: Remove file.
57352         * m4/stdlib_h.m4: New file.
57353         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57354
57355 2007-02-18  Bruno Haible  <bruno@clisp.org>
57356
57357         * modules/math-tests: New file.
57358         * tests/test-math.c: New file.
57359
57360         * modules/math: New file.
57361         * modules/mathl (Files): Remove lib/mathl.h.
57362         (Depends-on): Add math.
57363         (Makefile.am): Don't mention mathl.h.
57364         (Include): Use <math.h> instead of mathl.h.
57365         * lib/math_.h: New file.
57366         * lib/mathl.h: Remove file.
57367         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57368         mathl.h.
57369         * lib/asinl.c: Likewise.
57370         * lib/atanl.c: Likewise.
57371         * lib/ceill.c: Likewise.
57372         * lib/cosl.c: Likewise.
57373         * lib/expl.c: Likewise.
57374         * lib/floorl.c: Likewise.
57375         * lib/frexpl.c: Likewise.
57376         * lib/ldexpl.c: Likewise.
57377         * lib/logl.c: Likewise.
57378         * lib/sincosl.c: Likewise.
57379         * lib/sinl.c: Likewise.
57380         * lib/sqrtl.c: Likewise.
57381         * lib/tanl.c: Likewise.
57382         * lib/trigl.c: Likewise.
57383         * m4/math_h.m4: New file.
57384         * MODULES.html.sh (Mathematics): Add math.
57385
57386 2007-02-17  Bruno Haible  <bruno@clisp.org>
57387
57388         * modules/wctype-tests: New file.
57389         * tests/test-wctype.c: New file.
57390
57391         * modules/wchar-tests: New file.
57392         * tests/test-wchar.c: New file.
57393
57394         * modules/unistd-tests: New file.
57395         * tests/test-unistd.c: New file.
57396
57397         * modules/time-tests: New file.
57398         * tests/test-time.c: New file.
57399
57400         * modules/sysexits-tests: New file.
57401         * tests/test-sysexits.c: New file.
57402
57403         * modules/sys_time-tests: New file.
57404         * tests/test-sys_time.c: New file.
57405
57406         * modules/sys_stat-tests: New file.
57407         * tests/test-sys_stat.c: New file.
57408
57409         * modules/sys_socket-tests: New file.
57410         * tests/test-sys_socket.c: New file.
57411
57412         * modules/sys_select-tests: New file.
57413         * tests/test-sys_select.c: New file.
57414
57415         * modules/string-tests: New file.
57416         * tests/test-string.c: New file.
57417
57418         * modules/stdbool-tests: New file.
57419         * tests/test-stdbool.c: New file.
57420
57421         * modules/netinet_in-tests: New file.
57422         * tests/test-netinet_in.c: New file.
57423
57424         * modules/inttypes-tests: New file.
57425         * tests/test-inttypes.c: New file.
57426
57427         * modules/fcntl-tests: New file.
57428         * tests/test-fcntl.c: New file.
57429
57430         * modules/byteswap-tests: New file.
57431         * tests/test-byteswap.c: New file.
57432
57433         * modules/arpa_inet-tests: New file.
57434         * tests/test-arpa_inet.c: New file.
57435
57436 2007-02-17  Bruno Haible  <bruno@clisp.org>
57437
57438         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57439         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57440         if the corresponding module is not enabled. Emit link warnings if
57441         the function is used nevertheless.
57442         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57443         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57444         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57445         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57446         * modules/inttypes (Depends-on): Add link-warning.
57447         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57448         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57449         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57450         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57451         * modules/imaxdiv (configure.ac): Likewise.
57452         * modules/strtoimax (configure.ac): Likewise.
57453         * modules/strtoumax (configure.ac): Likewise.
57454
57455 2007-02-17  Bruno Haible  <bruno@clisp.org>
57456
57457         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57458         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57459         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57460         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57461
57462 2007-02-17  Bruno Haible  <bruno@clisp.org>
57463
57464         * modules/link-warning: New file.
57465         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57466         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57467         * modules/string (Depends-on): Add link-warning.
57468         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57469         string.h.
57470         * MODULES.html.sh (Support for building libraries and executables): Add
57471         link-warning.
57472
57473 2007-02-17  Bruno Haible  <bruno@clisp.org>
57474
57475         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57476         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57477         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57478         long lines.
57479
57480 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57481             Bruno Haible  <bruno@clisp.org>
57482
57483         * modules/tmpfile: New file.
57484         * lib/tmpfile.c: New file.
57485         * m4/tmpfile.m4: New file.
57486         * MODULES.html.sh (func_all_modules): New section "Input/output".
57487
57488 2007-02-15  Bruno Haible  <bruno@clisp.org>
57489
57490         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57491         (supports_delete_on_close): New function.
57492         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57493
57494 2007-02-14  Bruno Haible  <bruno@clisp.org>
57495
57496         * modules/mbspcasecmp-tests: New file.
57497         * tests/test-mbspcasecmp.sh: New file.
57498         * tests/test-mbspcasecmp.c: New file.
57499
57500         New module mbspcasecmp.
57501         * modules/mbspcasecmp: New file.
57502         * lib/mbspcasecmp.c: New file.
57503         * lib/string_.h (strncasecmp): Change warning message.
57504         (mbspcasecmp): New declaration.
57505         * m4/mbspcasecmp.m4: New file.
57506         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57507         GNULIB_MBSPCASECMP.
57508         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57509         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57510
57511 2007-02-14  Bruno Haible  <bruno@clisp.org>
57512
57513         * modules/mbsncasecmp-tests: New file.
57514         * tests/test-mbsncasecmp.sh: New file.
57515         * tests/test-mbsncasecmp.c: New file.
57516
57517         New module mbsncasecmp.
57518         * modules/mbsncasecmp: New file.
57519         * lib/mbsncasecmp.c: New file.
57520         * lib/string_.h (mbsncasecmp): New declaration.
57521         * m4/mbsncasecmp.m4: New file.
57522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57523         GNULIB_MBSNCASECMP.
57524         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57525         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57526
57527 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57528
57529         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57530         Verify that it doesn't overlap with our flags.
57531         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57532         do not have the desired effect in multibyte locales; instead, use
57533         mbscasecmp.
57534         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57535         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57536         we don't require GNU fnmatch ourselves (if our users require it, they
57537         should do so explicitly).
57538
57539         Fix regex code so it doesn't rely on strcasecmp.
57540         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57541         Otherwise, include gnulib's langinfo.h.
57542         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57543         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57544         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57545         * modules/regex (FILES): Remove m4/codeset.m4.
57546         (Depends-on): Add localcharset.  Remove strcase.
57547
57548 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57549
57550         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57551         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57552
57553 2007-02-13  Bruno Haible  <bruno@clisp.org>
57554
57555         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57556         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57557
57558 2007-02-12  Bruno Haible  <bruno@clisp.org>
57559
57560         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57561         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57562         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57563         time warning rather than a link error.
57564
57565 2007-02-12  Bruno Haible  <bruno@clisp.org>
57566
57567         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57568         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57569         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57570
57571 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57572
57573         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57574         args, not 2.
57575
57576 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57577
57578         New module 'time', so that apps can include <time.h> as per
57579         POSIX and GNU instead of separate include files like time_r.h
57580         and timegm.h.  This implementation tries out a simpler approach
57581         for replacing decls in standard include files (as compared to
57582         the string module), somewhat as an experiment.
57583
57584         * config/srclist.txt: Comment out mktime.c for now.
57585         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57586         since it doesn't apply any more.  Use generic wording instead.
57587         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57588         'time'.
57589         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57590         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57591         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57592         Don't include <sys/types.h>; no longer needed since we assume C89.
57593         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57594         * lib/strftime.c: Likewise.
57595         * lib/time_r.c: Likewise.
57596         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57597         * lib/nanosleep.c: Include <time.h> first, to check interface.
57598         * lib/strptime.c: Likewise.
57599         * lib/time_r.c: Likewise.
57600         * lib/timegm.c: Likewise.
57601         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57602         needed.
57603         * lib/timegm.c: Don't include timegm.h; no longer needed.
57604         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57605         time.h now handles any problems in that area.
57606         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57607         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57608         that time.h defines struct timespec.
57609         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57610         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57611         handles that.
57612         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57613         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57614         needed.  Set REPLACE_LOCALTIME.
57615         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57616         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57617         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57618         nanosleep; time_h.m4 now does that.  Don't require
57619         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57620         module handles this now.
57621         * modules/getdate (Depends-on): Remove timespec.  Add time.
57622         * modules/nanosleep (Depends-on): Likewise.
57623         * modules/stat-time (Depends-on): Likewise.
57624         * modules/nanosleep (Include): Include time.h, not timespec.h.
57625         * modules/strptime (Files): Remove lib/strptime.h.
57626         (Depends-on): Add extensions, time.
57627         (Include): Include time.h, not strptime.h.
57628         * modules/time_r (Files): Remove lib/time_r.h.
57629         (Depends-on): Add time.
57630         (Include): Include time.h, not time_r.h.
57631         * modules/timegm: Likewise.
57632         * modules/timespec (Description): Now does timespec-related decls
57633         of our own, instead of struct timespec itself.
57634         (Depends-on): Add time; remove extensions.
57635         (Maintainer): Add self.
57636         * modules/utimecmp (Depends-on): Add time; remove timespec.
57637         * modules/utimens (Depends-on): Likewise.
57638         * modules/xnanosleep (Depends-on): Likewise.
57639
57640 2007-02-11  Bruno Haible  <bruno@clisp.org>
57641
57642         * lib/c-strstr.c: Include allocsa.h.
57643         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57644         * lib/c-strcasestr.c: Include allocsa.h.
57645         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57646         * lib/strcasestr.c: Include allocsa.h.
57647         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57648         * lib/mbsstr.c: Include allocsa.h.
57649         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57650         allocsa/freesa instead of malloc/free.
57651         * lib/mbscasestr.c: Include allocsa.h.
57652         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57653         allocsa/freesa instead of malloc/free.
57654         * modules/c-strstr (Depends-on): Add allocsa.
57655         * modules/c-strcasestr (Depends-on): Likewise.
57656         * modules/strcasestr (Depends-on): Likewise.
57657         * modules/mbsstr (Depends-on): Likewise.
57658         * modules/mbscasestr (Depends-on): Likewise.
57659
57660 2007-02-11  Bruno Haible  <bruno@clisp.org>
57661
57662         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57663
57664         * modules/mbsspn-tests: New file.
57665         * tests/test-mbsspn.sh: New file.
57666         * tests/test-mbsspn.c: New file.
57667
57668 2007-02-11  Bruno Haible  <bruno@clisp.org>
57669
57670         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57671
57672         * modules/mbspbrk-tests: New file.
57673         * tests/test-mbspbrk.sh: New file.
57674         * tests/test-mbspbrk.c: New file.
57675
57676 2007-02-11  Bruno Haible  <bruno@clisp.org>
57677
57678         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57679         unneeded cast.
57680
57681         * modules/mbscspn-tests: New file.
57682         * tests/test-mbscspn.sh: New file.
57683         * tests/test-mbscspn.c: New file.
57684
57685 2007-02-11  Bruno Haible  <bruno@clisp.org>
57686
57687         * modules/mbscasecmp-tests: New file.
57688         * tests/test-mbscasecmp.sh: New file.
57689         * tests/test-mbscasecmp.c: New file.
57690
57691 2007-02-11  Bruno Haible  <bruno@clisp.org>
57692
57693         Ensure O(n) worst-case complexity of mbscasestr.
57694         * lib/mbscasestr.c: Include stdbool.h.
57695         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57696         functions.
57697         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57698         the bookkeeping indicates that it's worth it.
57699         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57700
57701         * modules/mbscasestr-tests: New file.
57702         * tests/test-mbscasestr1.c: New file.
57703         * tests/test-mbscasestr2.sh: New file.
57704         * tests/test-mbscasestr2.c: New file.
57705         * tests/test-mbscasestr3.sh: New file.
57706         * tests/test-mbscasestr3.c: New file.
57707         * tests/test-mbscasestr4.sh: New file.
57708         * tests/test-mbscasestr4.c: New file.
57709         * m4/locale-tr.m4: New file.
57710
57711 2007-02-11  Bruno Haible  <bruno@clisp.org>
57712
57713         Ensure O(n) worst-case complexity of mbsstr.
57714         * lib/mbsstr.c: Include stdbool.h.
57715         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57716         functions.
57717         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57718         bookkeeping indicates that it's worth it.
57719         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57720
57721         * modules/mbsstr-tests: New file.
57722         * tests/test-mbsstr1.c: New file.
57723         * tests/test-mbsstr2.sh: New file.
57724         * tests/test-mbsstr2.c: New file.
57725         * tests/test-mbsstr3.sh: New file.
57726         * tests/test-mbsstr3.c: New file.
57727         * m4/locale-fr.m4: New file.
57728
57729 2007-02-11  Bruno Haible  <bruno@clisp.org>
57730
57731         * lib/mbsrchr.c (mbsrchr): Fix bug.
57732
57733         * modules/mbsrchr-tests: New file.
57734         * tests/test-mbsrchr.sh: New file.
57735         * tests/test-mbsrchr.c: New file.
57736
57737 2007-02-11  Bruno Haible  <bruno@clisp.org>
57738
57739         * lib/mbschr.c (mbschr): Fix bug.
57740
57741         * modules/mbschr-tests: New file.
57742         * tests/test-mbschr.sh: New file.
57743         * tests/test-mbschr.c: New file.
57744         * m4/locale-zh.m4: New file.
57745
57746 2007-02-11  Bruno Haible  <bruno@clisp.org>
57747
57748         Support for copying multibyte string iterators.
57749         * lib/mbiter.h: Include <string.h>.
57750         (mbiter_multi_copy): New function.
57751         (mbi_copy): New macro.
57752         * lib/mbuiter.h: Include <string.h>.
57753         (mbuiter_multi_copy): New function.
57754         (mbui_copy): New macro.
57755
57756 2007-02-11  Bruno Haible  <bruno@clisp.org>
57757
57758         New module mbslen.
57759         * modules/mbslen: New file.
57760         * lib/mbslen.c: New file.
57761         * lib/string_.h (mbslen): New declaration.
57762         * m4/mbslen.m4: New file.
57763         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57764         GNULIB_MBSLEN.
57765         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57766         * MODULES.html.sh (Internationalization functions): Add mbslen.
57767
57768 2007-02-11  Bruno Haible  <bruno@clisp.org>
57769
57770         Ensure O(n) worst-case complexity of strcasestr substitute.
57771         * lib/strcasestr.c: Include stdbool.h.
57772         (knuth_morris_pratt): New function.
57773         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57774         bookkeeping indicates that it's worth it.
57775         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57776
57777         * modules/strcasestr-tests: New file.
57778         * tests/test-strcasestr.c: New file.
57779
57780 2007-02-11  Bruno Haible  <bruno@clisp.org>
57781
57782         Ensure O(n) worst-case complexity of c_strcasestr.
57783         * lib/c-strcasestr.c: Include stdbool.h, string.h.
57784         (knuth_morris_pratt): New function.
57785         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
57786         the bookkeeping indicates that it's worth it.
57787         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
57788
57789         * modules/c-strcasestr-tests: New file.
57790         * tests/test-c-strcasestr.c: New file.
57791
57792 2007-02-11  Bruno Haible  <bruno@clisp.org>
57793
57794         Ensure O(n) worst-case complexity of c_strstr.
57795         * lib/c-strstr.c: Include stdbool.h, string.h.
57796         (knuth_morris_pratt): New function.
57797         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57798         bookkeeping indicates that it's worth it.
57799         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
57800
57801         * lib/c-strstr.c: Complete rewrite for maintainability.
57802
57803         * modules/c-strstr-tests: New file.
57804         * tests/test-c-strstr.c: New file.
57805
57806 2007-02-11  Bruno Haible  <bruno@clisp.org>
57807
57808         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
57809         5.2.1 and earlier, whereby \055 was treated just like the range
57810         delimiter '-'.
57811         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57812
57813 2007-02-08  Bruno Haible  <bruno@clisp.org>
57814
57815         * modules/regex (Depends-on): Add stdbool.
57816         Reported by Dalibor Topic <robilad@kaffe.org>.
57817
57818 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57819
57820         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
57821         Prefer returning from main to exiting from it.
57822         Remove unnecessary parens after sizeof.
57823
57824 2007-02-05  Bruno Haible  <bruno@clisp.org>
57825
57826         New module mbssep.
57827         * modules/mbssep: New file.
57828         * lib/mbssep.c: New file.
57829         * lib/string_.h (strsep): Add a conditional link warning.
57830         (mbssep): New declaration.
57831         * m4/mbssep.m4: New file.
57832         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57833         GNULIB_MBSSEP.
57834         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
57835         * MODULES.html.sh (Internationalization functions): Add mbssep.
57836
57837 2007-02-05  Bruno Haible  <bruno@clisp.org>
57838
57839         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
57840         Optimize search in case of 1 delimiter.
57841
57842 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57843
57844         * lib/acl.h: Include sys/types.h before sys/acl.h.
57845
57846 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57847
57848         Merge upstream fix for glibc bugzilla #3957:
57849
57850         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
57851
57852         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
57853         bit for RE_HAT_LISTS_NOT_NEWLINE.
57854         (build_charclass_op): Remove bogus comment.
57855
57856 2007-02-05  Simon Josefsson  <simon@josefsson.org>
57857
57858         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
57859
57860 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57861
57862         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
57863         * lib/memmem.c [!defined _LIBC]: Include config.h.
57864
57865 2007-02-04  Bruno Haible  <bruno@clisp.org>
57866
57867         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
57868         warning message.
57869
57870 2007-02-04  Bruno Haible  <bruno@clisp.org>
57871
57872         New module mbstok_r.
57873         * modules/mbstok_r: New file.
57874         * lib/mbstok_r.c: New file.
57875         * lib/string_.h (strtok_r): Change argument names to match the
57876         comments. Add a conditional link warning.
57877         (mbstok_r): New declaration.
57878         * m4/mbstok_r.m4: New file.
57879         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57880         GNULIB_MBSTOK_R.
57881         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
57882         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
57883
57884 2007-02-04  Bruno Haible  <bruno@clisp.org>
57885
57886         New module mbsspn.
57887         * modules/mbsspn: New file.
57888         * lib/mbsspn.c: New file.
57889         * lib/string_.h (strspn): Add a conditional link warning.
57890         (mbsspn): New declaration.
57891         * m4/mbsspn.m4: New file.
57892         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57893         GNULIB_MBSSPN.
57894         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
57895         * MODULES.html.sh (Internationalization functions): Add mbsspn.
57896
57897 2007-02-04  Bruno Haible  <bruno@clisp.org>
57898
57899         New module mbspbrk.
57900         * modules/mbspbrk: New file.
57901         * lib/mbspbrk.c: New file.
57902         * lib/string_.h (strpbrk): Add a conditional link warning.
57903         (mbspbrk): New declaration.
57904         * m4/mbspbrk.m4: New file.
57905         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57906         GNULIB_MBSPBRK.
57907         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
57908         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
57909
57910 2007-02-04  Bruno Haible  <bruno@clisp.org>
57911
57912         New module mbscspn.
57913         * modules/mbscspn: New file.
57914         * lib/mbscspn.c: New file.
57915         * lib/string_.h (strcspn): Add a conditional link warning.
57916         (mbscspn): New declaration.
57917         * m4/mbscspn.m4: New file.
57918         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57919         GNULIB_MBSCSPN.
57920         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
57921         * MODULES.html.sh (Internationalization functions): Add mbscspn.
57922
57923 2007-02-04  Bruno Haible  <bruno@clisp.org>
57924
57925         New module mbscasestr, reduced goal of strcasestr.
57926         * modules/mbscasestr: New file.
57927         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
57928         (mbscasestr): Renamed from strcasestr.
57929         * lib/strcasestr.c: Don't include mbuiter.h.
57930         (strcasestr): Remove support for multibyte locales.
57931         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
57932         Change the conditional link warning.
57933         (mbscasestr): New declaration.
57934         * m4/mbscasestr.m4: New file.
57935         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
57936         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
57937         REPLACE_STRCASESTR.
57938         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
57939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57940         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57941         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
57942         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
57943         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57944         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
57945         (Depends-on): Remove mbuiter.
57946         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
57947
57948 2007-02-04  Bruno Haible  <bruno@clisp.org>
57949
57950         Simplify handling of strncasecmp.
57951         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
57952         the conditional link warning.
57953         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57954         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
57955         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
57956         * modules/strcase (configure.ac): Don't invoke
57957         gl_STRING_MODULE_INDICATOR.
57958         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
57959
57960 2007-02-04  Bruno Haible  <bruno@clisp.org>
57961
57962         New module mbscasecmp, reduced goal of strcasecmp.
57963         * modules/mbscasecmp: New file.
57964         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
57965         (mbscasecmp): Renamed from strcasecmp.
57966         * lib/strcasecmp.c: Don't include mbuiter.h.
57967         (strcasecmp): Remove support for multibyte locales.
57968         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
57969         Change the conditional link warning.
57970         (mbscasecmp): New declaration.
57971         * m4/mbscasecmp.m4: New file.
57972         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
57973         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
57974         REPLACE_STRCASECMP.
57975         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
57976         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57977         GNULIB_MBSCASECMP.
57978         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
57979         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
57980         * modules/strcase (Files): Remove m4/mbrtowc.m4.
57981         (Depends-on): Remove mbuiter.
57982         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
57983
57984 2007-02-04  Bruno Haible  <bruno@clisp.org>
57985
57986         New module mbsstr. Remove module strstr.
57987         * modules/mbsstr: New file.
57988         * modules/strstr: Remove file.
57989         * lib/mbsstr.c: Renamed from lib/strstr.c.
57990         (mbsstr): Renamed from strstr.
57991         * lib/string_.h (strstr): Remove declaration. Change the conditional
57992         link warning.
57993         (mbsstr): New declaration.
57994         * m4/mbsstr.m4: New file.
57995         * m4/strstr.m4: Remove file.
57996         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
57997         REPLACE_STRSTR.
57998         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
57999         Don't initialize GNULIB_STRSTR.
58000         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
58001         substitute GNULIB_STRSTR and REPLACE_STRSTR.
58002         * MODULES.html.sh (Internationalization functions): Add mbsstr.
58003         (Support for systems lacking ANSI C 89): Remove strstr.
58004
58005 2007-02-04  Bruno Haible  <bruno@clisp.org>
58006
58007         New module mbsrchr.
58008         * modules/mbsrchr: New file.
58009         * lib/mbsrchr.c: New file.
58010         * lib/string_.h (strrchr): Add a conditional link warning.
58011         (mbsrchr): New declaration.
58012         * m4/mbsrchr.m4: New file.
58013         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58014         GNULIB_MBSRCHR.
58015         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
58016         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
58017
58018 2007-02-04  Bruno Haible  <bruno@clisp.org>
58019
58020         New module mbschr.
58021         * modules/mbschr: New file.
58022         * lib/mbschr.c: New file.
58023         * lib/string_.h (strchr): Add a conditional link warning.
58024         (mbschr): New declaration.
58025         * m4/mbschr.m4: New file.
58026         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58027         GNULIB_MBSCHR.
58028         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58029         * MODULES.html.sh (Internationalization functions): Add mbschr.
58030
58031 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58032
58033         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
58034
58035         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
58036
58037 2007-02-04  Bruno Haible  <bruno@clisp.org>
58038
58039         New module description section 'configure.ac-early'.
58040         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
58041         (func_get_autoconf_early_snippet): New function.
58042         (func_import, func_create_testdir): Use it. Remove special cases for
58043         modules 'extensions' and 'lock'.
58044         * modules/extensions (configure.ac-early): Require
58045         gl_USE_SYSTEM_EXTENSIONS.
58046         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
58047
58048 2007-02-04  Bruno Haible  <bruno@clisp.org>
58049
58050         Make use of gcj-4.3's -fsource and -ftarget option.
58051         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
58052         and if so try the options -fsource and -ftarget.
58053         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
58054         source_version, ftarget_option, target_version arguments.
58055         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
58056         (is_envjavac_oldgcj_14_14_usable): Renamed from
58057         is_envjavac_gcj_14_14_usable.
58058         (is_envjavac_oldgcj_14_13_usable): Renamed from
58059         is_envjavac_gcj_14_13_usable.
58060         (is_gcj_present): Update.
58061         (is_gcj_43, is_gcj43_usable): New functions.
58062         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
58063         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
58064         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
58065         try the options -fsource and -ftarget.
58066
58067 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58068
58069         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
58070         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
58071         larger value.
58072
58073 2007-02-03  Jim Meyering  <jim@meyering.net>
58074
58075         Give tools a better chance to allocate space for very large buffers.
58076         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
58077
58078         Make pwd and readlink work also when run with an unreadable parent dir
58079         on systems with openat support.
58080         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
58081         provided getcwd function, even when we have openat support.
58082         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
58083
58084 2007-02-02  Bruno Haible  <bruno@clisp.org>
58085
58086         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58087         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
58088         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
58089         portability problems if one of these functions is only used on specific
58090         platforms.
58091         Reported by Paul Eggert.
58092
58093 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
58094
58095         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
58096         is causing more trouble than it's curing.
58097         * lib/regex_internal.h (__mempcpy): Remove.
58098         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
58099         (and make the code a tad smaller to boot).
58100         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
58101
58102 2007-02-02  Jim Meyering  <jim@meyering.net>
58103
58104         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
58105         section, not in the Makefile.am: one.
58106
58107 2007-02-02  Eric Blake  <ebb9@byu.net>
58108
58109         * lib/strchrnul.c: Always include config.h first.
58110
58111         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
58112         gnulib strstr is not necessary here.
58113
58114 2007-02-02  Simon Josefsson  <simon@josefsson.org>
58115
58116         * m4/socklen.m4: Fix typo.
58117
58118 2007-02-02  Eric Blake  <ebb9@byu.net>
58119
58120         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
58121         * modules/netinet_in (Makefile.am): Likewise.
58122
58123 2007-02-01  Bruno Haible  <bruno@clisp.org>
58124
58125         * lib/string_.h (GL_LINK_WARNING): New macro.
58126         (strcasecmp, strstr, strcasestr): If provided by the system,
58127         conditionally define as a macro that leads to a warning instead of to
58128         an error.
58129         (strncasecmp): Conditionally define as a macro that leads to a warning.
58130
58131 2007-02-01  Karl Berry  <karl@gnu.org>
58132
58133         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
58134
58135 2007-02-01  Bruno Haible  <bruno@clisp.org>
58136
58137         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
58138         renamings.
58139
58140 2007-02-01  Eric Blake  <ebb9@byu.net>
58141
58142         * modules/regex (Depends-on): Revert dependence on mempcpy.
58143         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
58144         module's definition of mempcpy.
58145         Reported by Paul Eggert.
58146
58147 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58148
58149         * lib/string_.h: If the gnulib module XYZ is not present, undefine
58150         the symbol XYZ before redefining it.  This fixes a problem with
58151         programs that don't use XYZ, when compiled on systems that define
58152         XYZ to something else.
58153
58154 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
58155
58156         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
58157         occurs when "mkdir -m foo" creates a setgid directory that is (1)
58158         writeable to group or other and (2) is intended to have a special
58159         mode bit that is set or cleared.  In such a case, the directory
58160         should be neither group- nor other-writeable until the special
58161         mode bits are right.
58162
58163 2007-01-31  Eric Blake  <ebb9@byu.net>
58164
58165         * modules/mountlist (Depends-on): Add strstr.
58166
58167         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
58168         bug.
58169         * modules/string (Makefile.am): Remove redundant replacement.
58170         * modules/regex (Depends-on): Add mempcpy.
58171
58172 2007-01-31  Bruno Haible  <bruno@clisp.org>
58173
58174         New module description field 'Link'.
58175         * gnulib-tool (func_usage): Document --extract-link-directive.
58176         (sed_extract_prog): Recognize 'Link' directive.
58177         (func_get_link_directive): New function.
58178         (func_import): Show summary of link directives.
58179         Handle --extract-link-directive option.
58180         * modules/acl (Link): New section.
58181         * modules/clock-time (Link): New section.
58182         * modules/euidaccess (Link): New section.
58183         * modules/gettext (Link): New section.
58184         * modules/iconv (Link): New section.
58185         * modules/lock (Link): New section.
58186         * modules/nanosleep (Link): New section.
58187         * modules/readline (Link): New section.
58188
58189 2007-01-27  Bruno Haible  <bruno@clisp.org>
58190
58191         Enforce the use of gnulib modules for unportable <string.h> functions.
58192         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
58193         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
58194         (gl_HEADER_STRING_H_BODY): Require it.
58195         * lib/string_.h: If the gnulib module XYZ is not present, redefine
58196         the symbol XYZ to one that gives a link error.
58197         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
58198         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
58199         * modules/mempcpy (configure.ac): Likewise.
58200         * modules/memrchr (configure.ac): Likewise.
58201         * modules/stpcpy (configure.ac): Likewise.
58202         * modules/stpncpy (configure.ac): Likewise.
58203         * modules/strcase (configure.ac): Likewise.
58204         * modules/strcasestr (configure.ac): Likewise.
58205         * modules/strchrnul (configure.ac): Likewise.
58206         * modules/strdup (configure.ac): Likewise.
58207         * modules/strndup (configure.ac): Likewise.
58208         * modules/strnlen (configure.ac): Likewise.
58209         * modules/strpbrk (configure.ac): Likewise.
58210         * modules/strsep (configure.ac): Likewise.
58211         * modules/strstr (configure.ac): Likewise.
58212         * modules/strtok_r (configure.ac): Likewise.
58213
58214 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58215
58216         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58217
58218 2007-01-30  Jim Meyering  <jim@meyering.net>
58219
58220         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58221
58222 2007-01-29  Bruno Haible  <bruno@clisp.org>
58223
58224         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58225         * lib/execute.c: Likewise.
58226         * lib/pipe.c: Likewise.
58227         * lib/printf-args.h: Likewise.
58228         * lib/printf-args.c: Likewise.
58229         * lib/printf-parse.c: Likewise.
58230         * lib/vasnprintf.c: Likewise.
58231
58232 2007-01-29  Eric Blake  <ebb9@byu.net>
58233
58234         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58235         declaration.
58236
58237 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58238
58239         * lib/strptime.h (strptime): Use 'restrict' for args where
58240         POSIX requires this.
58241         * lib/strptime.c (strptime): Likewise.
58242         Change license notice from LGPL to GPL, since gnulib-tool will
58243         change this as needed.
58244         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58245         defined.
58246         Include "strptime.h" first, to check interface.
58247         Do not #undef _LIBC and _NL_CURRENT.
58248         Do not include <stdlib.h>; no longer needed.
58249         Include "time_r.h" and declare ptime_locale_status
58250         only if _LIBC is not defined.
58251         (__P): Remove unused macro.
58252         (match_string): Bring back glibc version, but use it only if _LIBC
58253         is defined.
58254         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58255         Remove unnecessary assertion and abort() call.
58256         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58257         * m4/strptime.m4: Fix serial number comment.
58258         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58259         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58260         (Depends-on): Add time_r.
58261
58262 2007-01-29  Bruno Haible  <bruno@clisp.org>
58263
58264         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58265         strptime.
58266         * modules/strptime (Depends-on): Add stdbool.
58267         * lib/strptime.h: Include <time.h> always. Add comments.
58268
58269 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58270
58271         * modules/strptime: New file.
58272         * lib/strptime.h: New file.
58273         * lib/strptime.c: New file.
58274         * m4/strptime.m4: New file.
58275
58276 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58277
58278         * MODULES.html.sh: New module mpsort.
58279         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58280
58281         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58282         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58283         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58284         All uses changed.
58285         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58286         All uses changed.
58287         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58288         to _Restrict_.
58289         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58290         the parameter matches the prototype.
58291
58292 2007-01-28  Jim Meyering  <jim@meyering.net>
58293
58294         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58295         sys/time.h here, reverting that part of the previous patch:
58296         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58297
58298 2007-01-28  Bruno Haible  <bruno@clisp.org>
58299
58300         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58301         value of $(SYS_TIME_H).
58302         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58303         remove it conditionally, too. [added by Jim Meyering]
58304         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58305         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58306         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58307         GETTIMEOFDAY_REPLACEMENT to 1.
58308
58309 2007-01-28  Bruno Haible  <bruno@clisp.org>
58310
58311         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58312         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58314         Set UNISTD_H instead of UNISTD_H2.
58315         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58316
58317 2007-01-28  Bruno Haible  <bruno@clisp.org>
58318
58319         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58320         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58321
58322 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58323
58324         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58325         (func_create_testdir): Ensure C locale for `grep' and `tr'
58326         character ranges.
58327         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58328         ACLOCAL_AMFLAGS parsing state machine.
58329
58330 2007-01-27  Bruno Haible  <bruno@clisp.org>
58331
58332         * modules/unistr/base: Update.
58333
58334 2007-01-27  Bruno Haible  <bruno@clisp.org>
58335
58336         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58337         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58338         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58339         modules/unistr/u32-mbtouc.
58340         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58341         * lib/unistr.h: Update.
58342         * lib/linebreak.c: Update.
58343         * modules/unistr/u32-mbtouc: Renamed from
58344         modules/unistr/u32-mbtouc-safe.
58345         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58346         * lib/unistr.h: Update.
58347         * lib/unistr/u32-to-u8.c: Update.
58348         * lib/unistr/u32-to-u16.c: Update.
58349
58350 2007-01-27  Bruno Haible  <bruno@clisp.org>
58351
58352         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58353         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58354         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58355         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58356         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58357         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58358         modules/unistr/u16-mbtouc.
58359         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58360         * lib/unistr.h: Update.
58361         * lib/linebreak.c: Update.
58362         * modules/linebreak: Update.
58363         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58364         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58365         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58366         * modules/unistr/u16-mbtouc: Renamed from
58367         modules/unistr/u16-mbtouc-safe.
58368         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58369         * lib/unistr.h: Update.
58370         * lib/unistr/u16-to-u8.c: Update.
58371         * modules/unistr/u16-to-u8: Update.
58372         * lib/unistr/u16-to-u32.c: Update.
58373         * modules/unistr/u16-to-u32: Update.
58374
58375 2007-01-27  Bruno Haible  <bruno@clisp.org>
58376
58377         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58378         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58379         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58380         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58381         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58382         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58383         modules/unistr/u8-mbtouc.
58384         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58385         * lib/unistr.h: Update.
58386         * lib/striconveh.c: Update.
58387         * modules/striconveh: Update.
58388         * lib/linebreak.c: Update.
58389         * modules/linebreak: Update.
58390         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58391         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58392         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58393         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58394         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58395         * lib/unistr.h: Update.
58396         * lib/striconveh.c: Update.
58397         * modules/striconveh: Update.
58398         * lib/unistr/u8-to-u16.c: Update.
58399         * modules/unistr/u8-to-u16: Update.
58400         * lib/unistr/u8-to-u32.c: Update.
58401         * modules/unistr/u8-to-u32: Update.
58402
58403 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58404
58405         Sync from Libtool.
58406         * lib/argz.c: Do not include strings.h nor memory.h, include
58407         string.h unconditionally.  Patch by Simon Josefsson.
58408
58409 2007-01-27  Bruno Haible  <bruno@clisp.org>
58410
58411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58412         from gl_HEADER_STRING_H_BODY.
58413         (gl_HEADER_STRING_H_BODY): Require it.
58414         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58415         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58416         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58417         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58418         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58419         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58420         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58421         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58422         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58423         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58424         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58425         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58426         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58427         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58428         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58429
58430 2007-01-27  Bruno Haible  <bruno@clisp.org>
58431
58432         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58433         check_PROGRAMS into noinst_PROGRAMS.
58434         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58435         check_PROGRAMS in this case.
58436         (func_import): Set for_test to false.
58437         (func_create_testdir): Set for_test to true.
58438
58439 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58440             Bruno Haible  <bruno@clisp.org>
58441
58442         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58443         (Depends-on): Add string.
58444         (Includes): Use <string.h> instead of strcasestr.h.
58445         * modules/string (Makefile.am): Also substitute the value of
58446         REPLACE_STRCASESTR.
58447         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58448         assume strcasestr is declared in <string.h> not <strings.h>. Also
58449         set REPLACE_STRCASESTR.
58450         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58451         REPLACE_STRCASESTR.
58452         * lib/strcasestr.h: Remove file.
58453         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58454         * lib/string_.h (strcasestr): New declaration.
58455
58456 2007-01-27  Bruno Haible  <bruno@clisp.org>
58457
58458         * lib/string_.h: Use 'extern'.
58459
58460 2007-01-27  Jim Meyering  <jim@meyering.net>
58461
58462         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58463         of set-but-not-used local, "q".
58464
58465         * lib/mempcpy.c: Include <config.h> before <string.h>.
58466         This fixes a compilation error on HP-UX, due to the system's
58467         "restrict"-using mempcpy prototype.
58468
58469 2007-01-26  Bruno Haible  <bruno@clisp.org>
58470
58471         Small optimization.
58472         * lib/javacomp.c: Include c-strstr.h.
58473          (is_envjavac_gcj): Use c_strstr instead of strstr.
58474         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58475
58476 2007-01-26  Bruno Haible  <bruno@clisp.org>
58477
58478         * MODULES.html.sh (Unicode string functions): Add the new modules.
58479
58480         * modules/uniconv/u32-strconv-to-locale: New file.
58481         * lib/uniconv/u32-strconv-to-locale.c: New file.
58482
58483         * modules/uniconv/u16-strconv-to-locale: New file.
58484         * lib/uniconv/u16-strconv-to-locale.c: New file.
58485
58486         * modules/uniconv/u8-strconv-to-locale: New file.
58487         * lib/uniconv/u8-strconv-to-locale.c: New file.
58488
58489         * modules/uniconv/u32-strconv-from-locale: New file.
58490         * lib/uniconv/u32-strconv-from-locale.c: New file.
58491
58492         * modules/uniconv/u16-strconv-from-locale: New file.
58493         * lib/uniconv/u16-strconv-from-locale.c: New file.
58494
58495         * modules/uniconv/u8-strconv-from-locale: New file.
58496         * lib/uniconv/u8-strconv-from-locale.c: New file.
58497
58498         * modules/uniconv/u32-strconv-to-enc: New file.
58499         * lib/uniconv/u32-strconv-to-enc.c: New file.
58500         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58501         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58502
58503         * modules/uniconv/u16-strconv-to-enc: New file.
58504         * lib/uniconv/u16-strconv-to-enc.c: New file.
58505         * lib/uniconv/u-strconv-to-enc.h: New file.
58506         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58507         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58508
58509         * modules/uniconv/u8-strconv-to-enc: New file.
58510         * lib/uniconv/u8-strconv-to-enc.c: New file.
58511         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58512         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58513
58514         * modules/uniconv/u32-strconv-from-enc: New file.
58515         * lib/uniconv/u32-strconv-from-enc.c: New file.
58516         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58517         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58518
58519         * modules/uniconv/u16-strconv-from-enc: New file.
58520         * lib/uniconv/u16-strconv-from-enc.c: New file.
58521         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58522         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58523
58524         * modules/uniconv/u8-strconv-from-enc: New file.
58525         * lib/uniconv/u8-strconv-from-enc.c: New file.
58526         * lib/uniconv/u-strconv-from-enc.h: New file.
58527         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58528         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58529
58530         * modules/uniconv/u32-conv-from-enc: New file.
58531         * lib/uniconv/u32-conv-from-enc.c: New file.
58532         * modules/uniconv/u32-conv-from-enc-tests: New file.
58533         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58534
58535         * modules/uniconv/u16-conv-from-enc: New file.
58536         * lib/uniconv/u16-conv-from-enc.c: New file.
58537         * lib/uniconv/u-conv-from-enc.h: New file.
58538         * modules/uniconv/u16-conv-from-enc-tests: New file.
58539         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58540
58541         * modules/uniconv/u8-conv-from-enc: New file.
58542         * lib/uniconv/u8-conv-from-enc.c: New file.
58543         * modules/uniconv/u8-conv-from-enc-tests: New file.
58544         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58545
58546         * modules/uniconv/base: New file.
58547         * lib/uniconv.h: New file.
58548
58549 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58550
58551         * doc/gnulib-tool.texi (Initial import): Update to match current
58552         behavior with strdup module.
58553         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58554         * lib/memmem.h: Remove; all uses removed.  This is now done
58555         by <string.h>.
58556         * lib/mempcpy.h: Likewise.
58557         * lib/memrchr.h: Likewise.
58558         * lib/stpcpy.h: Likewise.
58559         * lib/stpncpy.h: Likewise.
58560         * lib/strcase.h: Likewise.
58561         * lib/strchrnul.h: Likewise.
58562         * lib/strdup.h: Likewise.
58563         * lib/strndup.h: Likewise.
58564         * lib/strnlen.h: Likewise.
58565         * lib/strpbrk.h: Likewise.
58566         * lib/strsep.h: Likewise.
58567         * lib/strstr.h: Likewise.
58568         * lib/strtok_r.h: Likewise.
58569         * lib/string_.h: New file.
58570         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58571         Rely on <string.h> instead.
58572         * lib/canon-host.c: Likewise.
58573         * lib/chdir-long.c: Likewise.
58574         * lib/concatpath.c: Likewise.
58575         * lib/exclude.c: Likewise.
58576         * lib/fchdir.c: Likewise.
58577         * lib/getaddrinfo.c: Likewise.
58578         * lib/getcwd.c: Likewise.
58579         * lib/getsubopt.c: Likewise.
58580         * lib/glob.c: Likewise.
58581         * lib/hard-locale.c: Likewise.
58582         * lib/iconvme.c: Likewise.
58583         * lib/javacomp.c: Likewise.
58584         * lib/mempcpy.c: Likewise.
58585         * lib/memrchr.c: Likewise.
58586         * lib/regex_internal.h: Likewise.
58587         * lib/stpncpy.c: Likewise.
58588         * lib/strcasecmp.c: Likewise.
58589         * lib/strchrnul.c: Likewise.
58590         * lib/strdup.c: Likewise.
58591         * lib/striconv.c: Likewise.
58592         * lib/striconveh.c: Likewise.
58593         * lib/striconveha.c: Likewise.
58594         * lib/strncasecmp.c: Likewise.
58595         * lib/strndup.c: Likewise.
58596         * lib/strnlen.c: Likewise.
58597         * lib/strsep.c: Likewise.
58598         * lib/strstr.c: Likewise.
58599         * lib/strtok_r.c: Likewise.
58600         * lib/userspec.c: Likewise.
58601         * lib/w32spawn.h: Likewise.
58602         * lib/xstrndup.c: Likewise.
58603         * lib/mountlist.c (strstr): Remove decl.
58604         * m4/string_h.m4: New file.
58605         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58606         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58607         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58608         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58609         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58610         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58611         Set REPLACE_STRCASECMP if necessary.
58612         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58613         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58614         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58615         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58616         HAVE_DECL_STRDUP if necessary.
58617         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58618         since gl_FUNC_STRNDUP does that now.
58619         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58620         Check for decl here...
58621         (gl_PREREQ_STRNLEN): ... not here.
58622         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58623         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58624         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58625         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58626         necessary.
58627         * modules/string: New file.
58628         * modules/memmem (Files): Remove special-purpose include file.
58629         (Depends-on): Add string.
58630         (Include): Include <string.h>, not the removed file.
58631         * modules/mempcpy: Likewise.
58632         * modules/memrchr: Likewise.
58633         * modules/stpcpy: Likewise.
58634         * modules/stpncpy: Likewise.
58635         * modules/strcase: Likewise.
58636         * modules/strchrnul: Likewise.
58637         * modules/strdup: Likewise.
58638         * modules/strndup: Likewise.
58639         * modules/strnlen: Likewise.
58640         * modules/strpbrk: Likewise.
58641         * modules/strsep: Likewise.
58642         * modules/strstr: Likewise.
58643         * modules/strtok_r: Likewise.
58644         * tests/test-dirname.c: Don't include "strdup.h", since
58645         <string.h> now suffices.
58646         * tests/test-memmem.c: Don't include "memmem.h", since
58647         <string.h> now suffices.
58648
58649 2007-01-25  Bruno Haible  <bruno@clisp.org>
58650
58651         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58652         *resultp is 0.
58653
58654         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58655         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58656         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58657         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58658
58659         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58660         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58661         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58662         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58663         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58664         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58665
58666 2007-01-24  Bruno Haible  <bruno@clisp.org>
58667
58668         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58669         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58670         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58671         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58672         gl_FUNC_FTS_CORE.
58673         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58674         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58675         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58676         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58677         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58678         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58679         gl_FUNC_FCHOWNAT.
58680         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58681         gl_FUNC_STRFTIME.
58682         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58683         Reported by Ralf Wildenhues.
58684
58685 2007-01-24  Bruno Haible  <bruno@clisp.org>
58686
58687         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58688         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58689         gl_GETADDRINFO.
58690         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58691         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58692         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58693
58694 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58695
58696         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58697         Don't use 'exit'; just return from 'main'.
58698         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58699
58700         * lib/fnmatch_.h: Readjust white space and comments to match
58701         glibc, to avoid spurious diffs.
58702
58703 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58704
58705         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58706         2004-12-01 change by Jakub Jelinek, since this code won't compile
58707         if !LIBC.  Problem reported by Bob Proulx.
58708
58709 2007-01-23  Bruno Haible  <bruno@clisp.org>
58710
58711         * lib/striconveh.c: Include c-strcaseeq.h.
58712         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58713         * modules/striconveh (Depends-on): Add c-strcaseeq.
58714
58715 2007-01-23  Bruno Haible  <bruno@clisp.org>
58716
58717         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58718
58719         * modules/c-strcaseeq: New file.
58720         * lib/c-strcaseeq.h: New file.
58721
58722         * modules/streq: New file.
58723         * lib/streq.h: New file.
58724
58725 2007-01-23  Bruno Haible  <bruno@clisp.org>
58726
58727         * modules/striconveha-tests: New file.
58728         * tests/test-striconveha.c: New file.
58729
58730         * lib/striconveha.h: Include <stdbool.h>.
58731         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58732         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58733         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58734         (mem_iconveha): New function.
58735         (str_iconveha_notranslit): Renamed from str_iconveha.
58736         (str_iconveha): New function.
58737         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58738         c-strcase.
58739
58740 2007-01-23  Bruno Haible  <bruno@clisp.org>
58741
58742         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58743         encodings without forgiving before trying any encoding with handler.
58744         (str_iconveha): Try all encodings without forgiving before trying any
58745         encoding with handler.
58746
58747 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58748
58749         Import the following changes from libc.
58750
58751         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58752
58753         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58754
58755         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58756
58757         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58758         normal_bracket label.
58759
58760         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58761
58762         [BZ #361]
58763         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58764         to normal_bracket after fetching the next character.
58765
58766 2007-01-22  Bruno Haible  <bruno@clisp.org>
58767
58768         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58769         argument.
58770         * lib/striconveh.c (iconv_carefully_1): New function.
58771         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58772         argument.
58773         (str_cd_iconveh): Update.
58774         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58775         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58776         * tests/test-striconveh.c (MAGIC): New macro.
58777         (new_offsets): New function.
58778         (main): Test call with and without offsets.
58779
58780 2007-01-22  Bruno Haible  <bruno@clisp.org>
58781
58782         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
58783         * modules/sys_select (Makefile.am): Likewise.
58784         * modules/sys_socket (Makefile.am): Likewise.
58785         * modules/sys_time (Makefile.am): Likewise.
58786
58787 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58788
58789         * modules/gettimeofday (License): Change from GPL to LGPL, since
58790         gettimeofday is a library function.
58791
58792 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58793
58794         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
58795
58796 2007-01-21  Bruno Haible  <bruno@clisp.org>
58797
58798         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
58799
58800 2007-01-21  Bruno Haible  <bruno@clisp.org>
58801
58802         * modules/striconveha: New file.
58803         * lib/striconveha.h: New file.
58804         * lib/striconveha.c: New file.
58805         * MODULES.html.sh (Internationalization functions): Add striconveha.
58806         * lib/striconv.c (str_iconv): Optimize the case of an empty input
58807         string.
58808         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
58809
58810 2007-01-21  Bruno Haible  <bruno@clisp.org>
58811
58812         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
58813         * lib/striconveh.c (str_iconveh): Likewise.
58814
58815 2007-01-21  Bruno Haible  <bruno@clisp.org>
58816
58817         * lib/striconveh.h (mem_iconveh): New declaration.
58818         * lib/striconveh.c (mem_iconveh): New function.
58819         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
58820
58821 2007-01-21  Bruno Haible  <bruno@clisp.org>
58822
58823         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
58824
58825         * lib/striconveh.h (mem_cd_iconveh): Change specification.
58826         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
58827         original result buffer.
58828         (str_cd_iconveh): Update.
58829         * tests/test-striconveh.c (main): Update.
58830
58831         * lib/striconv.h (mem_cd_iconv): Change specification.
58832         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
58833         result buffer.
58834         (str_cd_iconv): Update.
58835         * tests/test-striconv.c (main): Update.
58836
58837 2007-01-21  Bruno Haible  <bruno@clisp.org>
58838
58839         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
58840
58841 2007-01-20  Jim Meyering  <jim@meyering.net>
58842
58843         * lib/userspec.c (parse_with_separator): If a user or group string
58844         starts with "+", skip the corresponding name-to-ID look-up, since
58845         such a look-up must fail: user and group names may not include "+".
58846
58847 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58848
58849         * lib/poll.c: Include sys/time.h and time.h unconditionally,
58850         since we now assume the sys_time module.
58851         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
58852         check for sys/time.h; no longer needed.
58853         * modules/poll (Depends-on): Depend on sys_time.
58854
58855 2007-01-18  Bruno Haible  <bruno@clisp.org>
58856
58857         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
58858         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58859
58860         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
58861         gettimeofday.
58862
58863         * tests/test-gettimeofday.c: Include <time.h>.
58864         (dummy): Remove variable.
58865
58866         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
58867         gl_HEADER_SYS_TIME_H.
58868         (gl_HEADER_SYS_TIME_H): New macro.
58869
58870         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
58871         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58872         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
58873         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
58874         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58875         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
58876         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
58877         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58878         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
58879         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
58880         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58881
58882         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
58883         last change; it caused a compilation error when cross-compiling to
58884         Cygwin.
58885
58886 2007-01-18  Jim Meyering  <jim@meyering.net>
58887
58888         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
58889         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
58890         than the race-prone "test -d sys || mkdir sys".
58891         (configure.ac): Use AC_PROG_MKDIR_P.
58892         * modules/sys_select: Likewise.
58893         * modules/sys_socket: Likewise.
58894         * modules/sys_time: Likewise.
58895
58896 2007-01-18  Eric Blake  <ebb9@byu.net>
58897
58898         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
58899         replace gettimeofday.
58900         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
58901         name, to avoid infinite recursion.
58902
58903 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
58904
58905         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
58906         module sys_time.
58907         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
58908         assume timespec.h defines struct timeval.
58909         * lib/settime.c: Likewise.
58910         * lib/utimens.c: Likewise.
58911         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
58912         since we now assume the gettimeofday module.
58913         * lib/tempname.c (__gen_tempname): Likewise.
58914         * lib/gettimeofday.h: Remove.
58915         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
58916         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
58917         Include <time.h>, for 'time()'.
58918         (localtime_buffer_addr): Also use this workaround if
58919         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
58920         to simplify the uses.  All uses changed.
58921         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
58922         that #undef is inside {}, and 'const' follows type name consistently.
58923         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
58924         (gettimeofday): Do not use the maximum possible value for
58925         tv->tv_usec, since that might break usages other than ls.c.
58926         Instead, we'll leave ls.c alone.  This undoes today's patch
58927         by Bruno.  Add a compile-time warning for 1s-clock resolution;
58928         we've never observed the problem but might as well keep the
58929         canary.
58930         * lib/nanosleep.c: Include timespec.h first, for interface check.
58931         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
58932         now assume the sys_time module.
58933         * lib/tempname.c: Likewise.
58934         * lib/timespec.h: Likewise.
58935         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
58936         needed.
58937         * lib/strftime.c: Likewise.
58938         * lib/timespec.h: Likewise.
58939         * lib/posixtm.c: Include posixtm.h first, for interface check.
58940         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
58941         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
58942         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
58943         * lib/sys_time_.h: New file.
58944         * lib/timespec.h (struct timespec): Use long int, not long.
58945         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58946         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
58947         Remove obsolescent call to AC_HEADER_TIME.
58948         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58949         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58950         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58951         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
58952         Likewise.
58953         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
58954         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
58955         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
58956         into the sys_time module.  Check for gettimeofday just once.
58957         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
58958         for gettimeofday signature to just check the signature.  Merely
58959         compile it, since linking doesn't test signature.  Improve test for
58960         whether gettimeofday.o is actually needed.
58961         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
58962         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
58963         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
58964         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58965         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
58966         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
58967         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
58968         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
58969         than worrying about sys/time.h.
58970         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58971         Don't bother worrying about TIME_WITH_SYS_TIME.
58972         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
58973         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
58974         * m4/sys_time_h.m4: New file.
58975         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
58976         Don't include sys/time.h.  Return from main rather than exiting.
58977         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
58978         all uses changed.
58979         * modules/gethrxtime (Depends-on): Add sys_time.
58980         * modules/gettime (Depends-on): Likewise.
58981         * modules/gettimeofday (Depends-on): Likewise.
58982         * modules/nanosleep (Depends-on): Likewise.
58983         * modules/settime (Depends-on): Likewise.
58984         * modules/tempname (Depends-on): Likewise.
58985         * modules/utimens (Depends-on): Likewise.
58986         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
58987         (Include): Change back to <sys/time.h>.
58988         (Maintainer): Add self.
58989         * modules/sys_time: New file.
58990         * modules/tempname (Depends-on): Add gettimeofday.
58991         * tests/test-gettimeofday.c: Include <sys/time.h>
58992         rather than gettimeofday.h.
58993
58994 2007-01-17  Bruno Haible  <bruno@clisp.org>
58995
58996         * gnulib-tool (func_get_license): Revert last patch. Instead, let
58997         the license default to GPL.
58998         (func_create_testdir): Don't complain if a module is LGPL and its
58999         tests module depends on GPLed modules.
59000
59001 2007-01-17  Bruno Haible  <bruno@clisp.org>
59002
59003         * lib/gettimeofday.c (gettimeofday): Add code for the case
59004         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
59005         maximum possible value for tv->tv_usec, rather than the minimum one.
59006
59007 2005-10-08  Martin Lambers  <marlam@marlam.de>
59008 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59009 2007-01-16  Bruno Haible  <bruno@clisp.org>
59010
59011         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
59012         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
59013         gl_FUNC_GETTIMEOFDAY.
59014         (Include): Add gettimeofday.h.
59015         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
59016         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
59017         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
59018         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
59019         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
59020         * lib/gettimeofday.h: New file.
59021         * lib/gettimeofday.c: Include <sys/timeb.h>.
59022         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
59023         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59024         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59025         fall back on time().
59026
59027         * tests/test-gettimeofday.c: New file.
59028         * modules/gettimeofday-tests: New file.
59029
59030 2007-01-16  Eric Blake  <ebb9@byu.net>
59031
59032         * modules/fnmatch (Depends-on): Depend on wchar.
59033         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
59034         * m4/fnmatch.m4: Likewise.
59035         * modules/mbchar (Makefile.am): Assume <wchar.h>.
59036         * m4/mbchar.m4: Likewise.
59037         * modules/mbswidth (Depends-on): Depend on wchar.
59038         * lib/mbswidth.c: Assume <wchar.h>.
59039         * m4/mbswidth.m4: Likewise.
59040         * modules/quotearg (Depends-on): Depend on wchar.
59041         * lib/quotearg.c: Assume <wchar.h>.
59042         * m4/quotearg.m4: Likewise.
59043         * modules/regex (Depends-on): Depend on wchar.
59044         * lib/regex_internal.h: Assume <wchar.h>.
59045         * m4/regex.m4: Likewise.
59046         * modules/stdint (Depends-on): Depend on wchar.
59047         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
59048         * m4/stdint.m4: Likewise.
59049         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
59050         * modules/strftime (Depends-on): Depend on wchar.
59051         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
59052         * modules/strtol (Depends-on): Depend on wchar.
59053         * lib/strtol.c: Assume <wchar.h>.
59054         * modules/wcwidth (Depends-on): Depend on wchar.
59055         * lib/wcwidth.h: Assume <wchar.h>.
59056         * m4/wcwidth.m4: Likewise.
59057
59058 2007-01-16  Bruno Haible  <bruno@clisp.org>
59059
59060         * modules/csharpexec-script: New, created from...
59061         * modules/csharpexec: ... this.
59062
59063 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59064
59065         * modules/javaexec-script: New, created from...
59066         * modules/javaexec: ... this.
59067
59068 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59069
59070         * modules/poll (Dependencies): Add sys_select.
59071
59072 2007-01-15  Jim Meyering  <jim@meyering.net>
59073
59074         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
59075         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
59076         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
59077         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
59078
59079 2007-01-15  Bruno Haible  <bruno@clisp.org>
59080
59081         * modules/striconveh: New file.
59082         * lib/striconveh.h: New file.
59083         * lib/striconveh.c: New file.
59084         * MODULES.html.sh (Internationalization functions): Add striconveh.
59085
59086         * modules/striconveh-tests: New file.
59087         * tests/test-striconveh.c: New file.
59088
59089 2007-01-15  Bruno Haible  <bruno@clisp.org>
59090
59091         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
59092         not from GNU libiconv or GNU libc.
59093
59094 2007-01-15  Bruno Haible  <bruno@clisp.org>
59095
59096         * doc/gnulib-intro.texi (Copyright): Explain the different license
59097         terms for module descriptions, autoconf macros, tests, documentation.
59098
59099 2007-01-14  Bruno Haible  <bruno@clisp.org>
59100
59101         * modules/striconv-tests: New file.
59102         * tests/test-striconv.c: New file.
59103
59104 2007-01-14  Bruno Haible  <bruno@clisp.org>
59105
59106         * modules/iconv-tests: New file.
59107         * tests/test-iconv.c: New file.
59108
59109 2007-01-14  Bruno Haible  <bruno@clisp.org>
59110
59111         * gnulib-tool (func_get_license): For test modules, use the license of
59112         the main module.
59113
59114 2007-01-14  Bruno Haible  <bruno@clisp.org>
59115
59116         * modules/iconv (Include): Clarify that <iconv.h> can only be included
59117         if iconv is found to exist.
59118
59119 2007-01-14  Bruno Haible  <bruno@clisp.org>
59120
59121         * modules/c-ctype-tests: New file.
59122         * tests/test-c-ctype.c: New file.
59123
59124 2007-01-14  Bruno Haible  <bruno@clisp.org>
59125
59126         * modules/binary-io-tests: New file.
59127         * tests/test-binary-io.sh: New file.
59128         * tests/test-binary-io.c: New file.
59129
59130 2007-01-14  Bruno Haible  <bruno@clisp.org>
59131
59132         * modules/array-oset-tests: New file.
59133         * tests/test-array_oset.c: New file.
59134
59135 2007-01-14  Bruno Haible  <bruno@clisp.org>
59136
59137         * modules/array-list-tests: New file.
59138         * tests/test-array_list.c: New file.
59139
59140 2007-01-14  Bruno Haible  <bruno@clisp.org>
59141
59142         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
59143         and make.
59144         Reported by Simon Josefsson in
59145         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
59146
59147 2007-01-14  Bruno Haible  <bruno@clisp.org>
59148
59149         * modules/allocsa-tests: New file.
59150         * tests/test-allocsa.c: New file.
59151
59152 2007-01-14  Bruno Haible  <bruno@clisp.org>
59153
59154         * modules/fchdir (Depends-on): Add absolute-header.
59155         * modules/unistd (Depends-on): Likewise.
59156
59157 2006-12-30  Bruno Haible  <bruno@clisp.org>
59158
59159         * modules/fchdir: New file.
59160         * modules/unistd (Files): Add lib/unistd_.h.
59161         (Makefile.am): Generate unistd.h from unistd_.h.
59162         * lib/fchdir.c: New file.
59163         * lib/dirent_.h: New file.
59164         * lib/unistd_.h: New file.
59165         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
59166         * m4/fchdir.m4: New file.
59167         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
59168         (gl_HEADER_UNISTD): Invoke it.
59169         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
59170         function.
59171         * lib/backupfile.c (opendir, closedir): Undefine.
59172         * lib/chown.c (open, close): Undefine.
59173         * lib/clean-temp.c (open, close): Undefine.
59174         * lib/copy-file.c (open, close): Undefine.
59175         * lib/execute.c (open, close): Undefine.
59176         * lib/fsusage.c (open, close): Undefine.
59177         * lib/gc-gnulib.c (open, close): Undefine.
59178         * lib/getcwd.c (opendir, closedir): Undefine.
59179         * lib/glob.c (opendir, closedir): Undefine.
59180         * lib/javacomp.c (open, close): Undefine.
59181         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
59182         * lib/openat-proc.c (open, close): Undefine.
59183         * lib/pagealign_alloc.c (open, close): Undefine.
59184         * lib/pipe.c (open, close): Undefine.
59185         * lib/progreloc.c (open, close): Undefine.
59186         * lib/savedir.c (opendir, closedir): Undefine.
59187         * lib/utime.c (open, close): Undefine.
59188         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
59189
59190 2007-01-10  Bruno Haible  <bruno@clisp.org>
59191
59192         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
59193
59194 2007-01-12  Eric Blake  <ebb9@byu.net>
59195
59196         Provide a robust <wchar.h>.  Further simplifications are now
59197         possible in other modules, but not included here.
59198         * modules/wchar: New module.
59199         * m4/wchar.m4: New file.
59200         * lib/wchar_.h: Likewise.
59201         * modules/mbchar (Depends-on): Depend on wchar, as the first use
59202         of the new module.
59203         * MODULES.html.sh (Extended multibyte and wide character utilities):
59204         New section.
59205
59206 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59207
59208         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59209         to a reasonable default for memory allocation.
59210         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59211         file system that reports garbage st_size values for symlinks.
59212         Problem reported by Liyang Hu.
59213
59214 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59215
59216         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59217         Emacs .#* auto-save files).
59218
59219 2007-01-11  Bruno Haible  <bruno@clisp.org>
59220
59221         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59222         directory.
59223
59224 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59225
59226         Use @...@ consistently in lib/wctype_.h.
59227         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59228         on it being set to 1 or 0.
59229         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59230         go back to AC_SUBSTing it.
59231         * modules/wctype (Makefile.am): Undo previous change.
59232
59233 2007-01-10  Eric Blake  <ebb9@byu.net>
59234
59235         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59236         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59237         * modules/wctype (Makefile.am): Likewise.
59238         Reported by Chris McGuire.
59239
59240 2007-01-10  Jim Meyering  <jim@meyering.net>
59241
59242         fts.c: a small readability/maintainability improvement
59243         * lib/fts.c (fts_read): Make this code slightly more readable and
59244         maintainable by hoisting the "sp->fts_cur = p" assignments to
59245         immediately follow the statements that set P.  Derived from
59246         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59247
59248 2007-01-10  Eric Blake  <ebb9@byu.net>
59249
59250         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59251         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59253         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59254         Reported by Chris McGuire.
59255
59256 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59257
59258         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59259         in sed script.
59260
59261 2007-01-09  Bruno Haible  <bruno@clisp.org>
59262
59263         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59264         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59265         variables.
59266         (func_module): Use them.
59267
59268 2007-01-09  Bruno Haible  <bruno@clisp.org>
59269
59270         * modules/unistr/base: New file.
59271         * lib/unistr.h: New file.
59272
59273         * modules/unistr/u8-to-u16: New file.
59274         * lib/unistr/u8-to-u16.c: New file.
59275
59276         * modules/unistr/u8-to-u32: New file.
59277         * lib/unistr/u8-to-u32.c: New file.
59278
59279         * modules/unistr/u16-to-u8: New file.
59280         * lib/unistr/u16-to-u8.c: New file.
59281
59282         * modules/unistr/u16-to-u32: New file.
59283         * lib/unistr/u16-to-u32.c: New file.
59284
59285         * modules/unistr/u32-to-u8: New file.
59286         * lib/unistr/u32-to-u8.c: New file.
59287
59288         * modules/unistr/u32-to-u16: New file.
59289         * lib/unistr/u32-to-u16.c: New file.
59290
59291         * modules/unistr/u8-check: New file.
59292         * modules/unistr/u16-check: New file.
59293         * modules/unistr/u32-check: New file.
59294         * lib/unistr/u8-check.c: New file.
59295         * lib/unistr/u16-check.c: New file.
59296         * lib/unistr/u32-check.c: New file.
59297
59298         * modules/unistr/u8-chr: New file.
59299         * modules/unistr/u16-chr: New file.
59300         * modules/unistr/u32-chr: New file.
59301         * lib/unistr/u8-chr.c: New file.
59302         * lib/unistr/u16-chr.c: New file.
59303         * lib/unistr/u32-chr.c: New file.
59304
59305         * modules/unistr/u8-cmp: New file.
59306         * modules/unistr/u16-cmp: New file.
59307         * modules/unistr/u32-cmp: New file.
59308         * lib/unistr/u8-cmp.c: New file.
59309         * lib/unistr/u16-cmp.c: New file.
59310         * lib/unistr/u32-cmp.c: New file.
59311
59312         * modules/unistr/u8-cpy: New file.
59313         * modules/unistr/u16-cpy: New file.
59314         * modules/unistr/u32-cpy: New file.
59315         * lib/unistr/u8-cpy.c: New file.
59316         * lib/unistr/u16-cpy.c: New file.
59317         * lib/unistr/u32-cpy.c: New file.
59318         * lib/unistr/u-cpy.h: New file.
59319
59320         * modules/unistr/u8-cpy-alloc: New file.
59321         * modules/unistr/u16-cpy-alloc: New file.
59322         * modules/unistr/u32-cpy-alloc: New file.
59323         * lib/unistr/u8-cpy-alloc.c: New file.
59324         * lib/unistr/u16-cpy-alloc.c: New file.
59325         * lib/unistr/u32-cpy-alloc.c: New file.
59326         * lib/unistr/u-cpy-alloc.h: New file.
59327
59328         * modules/unistr/u8-endswith: New file.
59329         * modules/unistr/u16-endswith: New file.
59330         * modules/unistr/u32-endswith: New file.
59331         * lib/unistr/u8-endswith.c: New file.
59332         * lib/unistr/u16-endswith.c: New file.
59333         * lib/unistr/u32-endswith.c: New file.
59334         * lib/unistr/u-endswith.h: New file.
59335
59336         * modules/unistr/u8-mblen: New file.
59337         * modules/unistr/u16-mblen: New file.
59338         * modules/unistr/u32-mblen: New file.
59339         * lib/unistr/u8-mblen.c: New file.
59340         * lib/unistr/u16-mblen.c: New file.
59341         * lib/unistr/u32-mblen.c: New file.
59342
59343         * modules/unistr/u8-mbtouc: New file.
59344         * modules/unistr/u16-mbtouc: New file.
59345         * modules/unistr/u32-mbtouc: New file.
59346         * lib/unistr/u8-mbtouc.c: New file.
59347         * lib/unistr/u16-mbtouc.c: New file.
59348         * lib/unistr/u32-mbtouc.c: New file.
59349
59350         * modules/unistr/u8-mbtouc-safe: New file.
59351         * modules/unistr/u16-mbtouc-safe: New file.
59352         * modules/unistr/u32-mbtouc-safe: New file.
59353         * lib/unistr/u8-mbtouc-safe.c: New file.
59354         * lib/unistr/u16-mbtouc-safe.c: New file.
59355         * lib/unistr/u32-mbtouc-safe.c: New file.
59356
59357         * modules/unistr/u8-move: New file.
59358         * modules/unistr/u16-move: New file.
59359         * modules/unistr/u32-move: New file.
59360         * lib/unistr/u8-move.c: New file.
59361         * lib/unistr/u16-move.c: New file.
59362         * lib/unistr/u32-move.c: New file.
59363         * lib/unistr/u-move.h: New file.
59364
59365         * modules/unistr/u8-next: New file.
59366         * modules/unistr/u16-next: New file.
59367         * modules/unistr/u32-next: New file.
59368         * lib/unistr/u8-next.c: New file.
59369         * lib/unistr/u16-next.c: New file.
59370         * lib/unistr/u32-next.c: New file.
59371
59372         * modules/unistr/u8-prev: New file.
59373         * modules/unistr/u16-prev: New file.
59374         * modules/unistr/u32-prev: New file.
59375         * lib/unistr/u8-prev.c: New file.
59376         * lib/unistr/u16-prev.c: New file.
59377         * lib/unistr/u32-prev.c: New file.
59378
59379         * modules/unistr/u8-set: New file.
59380         * modules/unistr/u16-set: New file.
59381         * modules/unistr/u32-set: New file.
59382         * lib/unistr/u8-set.c: New file.
59383         * lib/unistr/u16-set.c: New file.
59384         * lib/unistr/u32-set.c: New file.
59385         * lib/unistr/u-set.h: New file.
59386
59387         * modules/unistr/u8-startswith: New file.
59388         * modules/unistr/u16-startswith: New file.
59389         * modules/unistr/u32-startswith: New file.
59390         * lib/unistr/u8-startswith.c: New file.
59391         * lib/unistr/u16-startswith.c: New file.
59392         * lib/unistr/u32-startswith.c: New file.
59393         * lib/unistr/u-startswith.h: New file.
59394
59395         * modules/unistr/u8-stpcpy: New file.
59396         * modules/unistr/u16-stpcpy: New file.
59397         * modules/unistr/u32-stpcpy: New file.
59398         * lib/unistr/u8-stpcpy.c: New file.
59399         * lib/unistr/u16-stpcpy.c: New file.
59400         * lib/unistr/u32-stpcpy.c: New file.
59401         * lib/unistr/u-stpcpy.h: New file.
59402
59403         * modules/unistr/u8-stpncpy: New file.
59404         * modules/unistr/u16-stpncpy: New file.
59405         * modules/unistr/u32-stpncpy: New file.
59406         * lib/unistr/u8-stpncpy.c: New file.
59407         * lib/unistr/u16-stpncpy.c: New file.
59408         * lib/unistr/u32-stpncpy.c: New file.
59409         * lib/unistr/u-stpncpy.h: New file.
59410
59411         * modules/unistr/u8-strcat: New file.
59412         * modules/unistr/u16-strcat: New file.
59413         * modules/unistr/u32-strcat: New file.
59414         * lib/unistr/u8-strcat.c: New file.
59415         * lib/unistr/u16-strcat.c: New file.
59416         * lib/unistr/u32-strcat.c: New file.
59417         * lib/unistr/u-strcat.h: New file.
59418
59419         * modules/unistr/u8-strchr: New file.
59420         * modules/unistr/u16-strchr: New file.
59421         * modules/unistr/u32-strchr: New file.
59422         * lib/unistr/u8-strchr.c: New file.
59423         * lib/unistr/u16-strchr.c: New file.
59424         * lib/unistr/u32-strchr.c: New file.
59425
59426         * modules/unistr/u8-strcmp: New file.
59427         * modules/unistr/u16-strcmp: New file.
59428         * modules/unistr/u32-strcmp: New file.
59429         * lib/unistr/u8-strcmp.c: New file.
59430         * lib/unistr/u16-strcmp.c: New file.
59431         * lib/unistr/u32-strcmp.c: New file.
59432
59433         * modules/unistr/u8-strcpy: New file.
59434         * modules/unistr/u16-strcpy: New file.
59435         * modules/unistr/u32-strcpy: New file.
59436         * lib/unistr/u8-strcpy.c: New file.
59437         * lib/unistr/u16-strcpy.c: New file.
59438         * lib/unistr/u32-strcpy.c: New file.
59439         * lib/unistr/u-strcpy.h: New file.
59440
59441         * modules/unistr/u8-strcspn: New file.
59442         * modules/unistr/u16-strcspn: New file.
59443         * modules/unistr/u32-strcspn: New file.
59444         * lib/unistr/u8-strcspn.c: New file.
59445         * lib/unistr/u16-strcspn.c: New file.
59446         * lib/unistr/u32-strcspn.c: New file.
59447         * lib/unistr/u-strcspn.h: New file.
59448
59449         * modules/unistr/u8-strdup: New file.
59450         * modules/unistr/u16-strdup: New file.
59451         * modules/unistr/u32-strdup: New file.
59452         * lib/unistr/u8-strdup.c: New file.
59453         * lib/unistr/u16-strdup.c: New file.
59454         * lib/unistr/u32-strdup.c: New file.
59455         * lib/unistr/u-strdup.h: New file.
59456
59457         * modules/unistr/u8-strlen: New file.
59458         * modules/unistr/u16-strlen: New file.
59459         * modules/unistr/u32-strlen: New file.
59460         * lib/unistr/u8-strlen.c: New file.
59461         * lib/unistr/u16-strlen.c: New file.
59462         * lib/unistr/u32-strlen.c: New file.
59463         * lib/unistr/u-strlen.h: New file.
59464
59465         * modules/unistr/u8-strmblen: New file.
59466         * modules/unistr/u16-strmblen: New file.
59467         * modules/unistr/u32-strmblen: New file.
59468         * lib/unistr/u8-strmblen.c: New file.
59469         * lib/unistr/u16-strmblen.c: New file.
59470         * lib/unistr/u32-strmblen.c: New file.
59471
59472         * modules/unistr/u8-strmbtouc: New file.
59473         * modules/unistr/u16-strmbtouc: New file.
59474         * modules/unistr/u32-strmbtouc: New file.
59475         * lib/unistr/u8-strmbtouc.c: New file.
59476         * lib/unistr/u16-strmbtouc.c: New file.
59477         * lib/unistr/u32-strmbtouc.c: New file.
59478
59479         * modules/unistr/u8-strncat: New file.
59480         * modules/unistr/u16-strncat: New file.
59481         * modules/unistr/u32-strncat: New file.
59482         * lib/unistr/u8-strncat.c: New file.
59483         * lib/unistr/u16-strncat.c: New file.
59484         * lib/unistr/u32-strncat.c: New file.
59485         * lib/unistr/u-strncat.h: New file.
59486
59487         * modules/unistr/u8-strncmp: New file.
59488         * modules/unistr/u16-strncmp: New file.
59489         * modules/unistr/u32-strncmp: New file.
59490         * lib/unistr/u8-strncmp.c: New file.
59491         * lib/unistr/u16-strncmp.c: New file.
59492         * lib/unistr/u32-strncmp.c: New file.
59493
59494         * modules/unistr/u8-strncpy: New file.
59495         * modules/unistr/u16-strncpy: New file.
59496         * modules/unistr/u32-strncpy: New file.
59497         * lib/unistr/u8-strncpy.c: New file.
59498         * lib/unistr/u16-strncpy.c: New file.
59499         * lib/unistr/u32-strncpy.c: New file.
59500         * lib/unistr/u-strncpy.h: New file.
59501
59502         * modules/unistr/u8-strnlen: New file.
59503         * modules/unistr/u16-strnlen: New file.
59504         * modules/unistr/u32-strnlen: New file.
59505         * lib/unistr/u8-strnlen.c: New file.
59506         * lib/unistr/u16-strnlen.c: New file.
59507         * lib/unistr/u32-strnlen.c: New file.
59508         * lib/unistr/u-strnlen.h: New file.
59509
59510         * modules/unistr/u8-strpbrk: New file.
59511         * modules/unistr/u16-strpbrk: New file.
59512         * modules/unistr/u32-strpbrk: New file.
59513         * lib/unistr/u8-strpbrk.c: New file.
59514         * lib/unistr/u16-strpbrk.c: New file.
59515         * lib/unistr/u32-strpbrk.c: New file.
59516         * lib/unistr/u-strpbrk.h: New file.
59517
59518         * modules/unistr/u8-strrchr: New file.
59519         * modules/unistr/u16-strrchr: New file.
59520         * modules/unistr/u32-strrchr: New file.
59521         * lib/unistr/u8-strrchr.c: New file.
59522         * lib/unistr/u16-strrchr.c: New file.
59523         * lib/unistr/u32-strrchr.c: New file.
59524
59525         * modules/unistr/u8-strspn: New file.
59526         * modules/unistr/u16-strspn: New file.
59527         * modules/unistr/u32-strspn: New file.
59528         * lib/unistr/u8-strspn.c: New file.
59529         * lib/unistr/u16-strspn.c: New file.
59530         * lib/unistr/u32-strspn.c: New file.
59531         * lib/unistr/u-strspn.h: New file.
59532
59533         * modules/unistr/u8-strstr: New file.
59534         * modules/unistr/u16-strstr: New file.
59535         * modules/unistr/u32-strstr: New file.
59536         * lib/unistr/u8-strstr.c: New file.
59537         * lib/unistr/u16-strstr.c: New file.
59538         * lib/unistr/u32-strstr.c: New file.
59539         * lib/unistr/u-strstr.h: New file.
59540
59541         * modules/unistr/u8-strtok: New file.
59542         * modules/unistr/u16-strtok: New file.
59543         * modules/unistr/u32-strtok: New file.
59544         * lib/unistr/u8-strtok.c: New file.
59545         * lib/unistr/u16-strtok.c: New file.
59546         * lib/unistr/u32-strtok.c: New file.
59547         * lib/unistr/u-strtok.h: New file.
59548
59549         * modules/unistr/u8-uctomb: New file.
59550         * modules/unistr/u16-uctomb: New file.
59551         * modules/unistr/u32-uctomb: New file.
59552         * lib/unistr/u8-uctomb.c: New file.
59553         * lib/unistr/u16-uctomb.c: New file.
59554         * lib/unistr/u32-uctomb.c: New file.
59555
59556         * MODULES.html.sh (Unicode string functions): Add the new modules.
59557
59558 2007-01-08  Bruno Haible  <bruno@clisp.org>
59559
59560         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59561         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59562         subdirectories.
59563
59564 2007-01-08  Karl Berry  <karl@gnu.org>
59565
59566         * doc/error.texi: mention that main() fns must set program_name
59567         when progname is used.
59568
59569 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59570
59571         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59572         WCTYPE_H is empty, for the benefit of builds from non-distclean
59573         directories.  Problem reported by Eric Blake in
59574         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59575
59576 2007-01-08  Bruno Haible  <bruno@clisp.org>
59577
59578         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59579         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59580         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59581         PROVIDE_CANONICALIZE_FILENAME_MODE.
59582         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59583
59584 2007-01-08  Bruno Haible  <bruno@clisp.org>
59585
59586         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59587         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59588         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59589         * lib/fts.c: Likewise.
59590         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59591
59592 2006-12-25  Bruno Haible  <bruno@clisp.org>
59593
59594         * modules/utf8-ucs4-safe: New file.
59595         * lib/utf8-ucs4-safe.h: New file.
59596         * lib/unistr/utf8-ucs4-safe.c: New file.
59597
59598         * modules/utf16-ucs4-safe: New file.
59599         * lib/utf16-ucs4-safe.h: New file.
59600         * lib/unistr/utf16-ucs4-safe.c: New file.
59601
59602         * MODULES.html.sh (Unicode string functions): Add the new modules.
59603
59604 2007-01-08  Bruno Haible  <bruno@clisp.org>
59605
59606         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59607         (Depends-on): Add unitypes.
59608         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59609         (u8_mbtouc_aux): Move out to separate file.
59610         (u8_mbtouc): Use ucs4_t, uint8_t types.
59611         * lib/unistr/utf8-ucs4.c: New file.
59612
59613         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59614         (Depends-on): Add unitypes.
59615         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59616         (u16_mbtouc_aux): Move out to separate file.
59617         (u16_mbtouc): Use ucs4_t, uint16_t types.
59618         * lib/unistr/utf16-ucs4.c: New file.
59619
59620         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59621         (Depends-on): Add unitypes.
59622         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59623         (u8_uctomb_aux): Move out to separate file.
59624         (u8_uctomb): Use ucs4_t, uint8_t types.
59625         * lib/unistr/ucs4-utf8.c: New file.
59626
59627         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59628         (Depends-on): Add unitypes.
59629         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59630         (u16_uctomb_aux): Move out to separate file.
59631         (u16_uctomb): Use ucs4_t, uint16_t types.
59632         * lib/unistr/ucs4-utf16.c: New file.
59633
59634 2006-12-25  Bruno Haible  <bruno@clisp.org>
59635
59636         * modules/unitypes: New file.
59637         * lib/unitypes.h: New file.
59638         * MODULES.html.sh (func_all_modules): New section "Unicode string
59639         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59640         this section. Add unitypes.
59641
59642 2007-01-08  Bruno Haible  <bruno@clisp.org>
59643
59644         Avoid variable names that conflict with those from libtool.
59645         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59646         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59647         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59648         library_names_spec to acl_library_names_spec, hardcode_* to
59649         acl_hardcode_*.
59650         Reported by Ralf Wildenhues.
59651
59652 2007-01-08  Bruno Haible  <bruno@clisp.org>
59653
59654         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59655         definition.
59656         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59657         definition.
59658         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59659         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59660         definition.
59661         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59662         definition.
59663         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59664         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59665         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59666         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59667         definition.
59668         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59669         definition.
59670         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59671         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59672         GC_USE_<algorithm>.
59673         * lib/gc-libgcrypt.c: Likewise.
59674         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59675         * modules/gc-arctwo (configure.ac): Likewise.
59676         * modules/gc-des (configure.ac): Likewise.
59677         * modules/gc-hmac-md5 (configure.ac): Likewise.
59678         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59679         * modules/gc-md2 (configure.ac): Likewise.
59680         * modules/gc-md4 (configure.ac): Likewise.
59681         * modules/gc-md5 (configure.ac): Likewise.
59682         * modules/gc-random (configure.ac): Likewise.
59683         * modules/gc-rijndael (configure.ac): Likewise.
59684         * modules/gc-sha1 (configure.ac): Likewise.
59685
59686 2007-01-08  Bruno Haible  <bruno@clisp.org>
59687
59688         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59689         macro definition.
59690         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59691         definition.
59692         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59693         definition.
59694         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59695         * modules/fcntl-safer (configure.ac): Likewise.
59696         * modules/fopen-safer (configure.ac): Likewise.
59697         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59698         GNULIB_FWRITEERROR macro definition.
59699
59700 2007-01-08  Bruno Haible  <bruno@clisp.org>
59701
59702         * m4/gnulib-common.m4: New file.
59703         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59704         (func_get_filelist): Add m4/gnulib-common.m4.
59705
59706 2007-01-08  Bruno Haible  <bruno@clisp.org>
59707
59708         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59709         command.
59710
59711 2007-01-08  Jim Meyering  <jim@meyering.net>
59712
59713         Use a more robust test for a "can't happen" condition.
59714         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59715         narrowed the st_size value.  Presuming the "can't happen" condition
59716         is true, that narrowing could conceivably convert an invalid st_size
59717         value into a valid one.  Instead, use a change based on Matthew
59718         Woehlke's original patch.
59719
59720         Slight readability improvement: use an assert-like macro
59721         in place of literal "abort ()" uses.
59722         * lib/fts.c (fts_assert): Define.
59723         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59724         Use this macro instead of a bare 'abort'.
59725
59726 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59727
59728         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59729         simply work around them.
59730         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59731         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59732         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59733         declaring.
59734         Don't bother to define as macros, since the standard doesn't require it.
59735         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59736         longer worry about IRIX 5.3.
59737         (HAVE_WCTYPE_CTMP_BUG): Remove.
59738
59739 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59740
59741         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59742         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59743         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59744         Problems reported by Georg Schwarz for IRIX 5.3.
59745
59746         * gnulib-tool (autoconf_minversion): Take the maximum version number
59747         found, not the minimum.  Problem reported by James Youngman.
59748
59749 2007-01-03  Karl Berry  <karl@gnu.org>
59750
59751         * doc/error.texi: new file, explaining interaction with progname.
59752         * doc/gnulib.texi: include it.  Update copyright.
59753
59754 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59755
59756         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59757         AC_CANONICAL_HOST, to improve autobuild outputs.
59758
59759 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59760             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59761
59762         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59763         sockets, server sockets, and other file descriptors.  Count errors
59764         to compute the return value.  Reorder the code a bit to be easier
59765         to follow.  Don't set event bits that were not requested (except
59766         POLLERR and POLLHUP).
59767
59768 2007-01-01  Bruno Haible  <bruno@clisp.org>
59769
59770         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59771
59772 2007-01-03  Jim Meyering  <jim@meyering.net>
59773
59774         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59775
59776 2007-01-02  Bruno Haible  <bruno@clisp.org>
59777
59778         * modules/settime (Include): Require timespec.h.
59779         * modules/nanosleep (Include): Likewise.
59780
59781 2007-01-01  Bruno Haible  <bruno@clisp.org>
59782
59783         * gnulib-tool (func_emit_copyright_notice): Bump year.
59784         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
59785
59786 2007-01-01  Bruno Haible  <bruno@clisp.org>
59787
59788         Improve support for OpenBSD.
59789         * build-aux/config.rpath (libname_spec): Export.
59790         (library_names_spec): New variable. Export.
59791         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
59792         library_names_spec from the config.rpath output. Locate shared library
59793         through the name pattern in library_names_spec.
59794
59795 2007-01-01  Eric Blake  <ebb9@byu.net>
59796
59797         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
59798
59799 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
59800
59801         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
59802         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
59803         assume the C locale, and avoid an "eval" that could cause trouble.
59804         Problem with SORT reported by Bob Proulx.
59805
59806         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
59807         Define.  Trivial patch from Henning Nielsen Lund, originally
59808         sent to bug-grep@gnu.org today.
59809
59810 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59811
59812         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
59813         struct stat.  Problem reported by Henning Nielsen Lund.
59814         * lib/acl.c: Include acl.h first, to check interface.  Don't
59815         bother to include sys/types.h and sys/stat.h again.
59816
59817 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59818
59819         Import the following change from libc; problem reported by
59820         Sven Verdoolaege.
59821
59822         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
59823
59824         [BZ #1373]
59825         * lib/argp.h: Remove __NTH for __argp_usage inline function.
59826
59827 2006-12-28  Jim Meyering  <jim@meyering.net>
59828
59829         * build-aux/announce-gen: Do not assume that the package
59830         builds any of tar.gz, tar.bz2, and .xdelta files.
59831         Suggestion from Simon Josefsson.
59832
59833 2006-12-28  Simon Josefsson  <simon@josefsson.org>
59834
59835         * modules/announce-gen: New file.
59836
59837 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59838
59839         * lib/mbchar.h: Just include <wctype.h>; the wctype module
59840         handles its gotchas now.
59841         * lib/mbswidth.c: Likewise.
59842         * lib/wcwidth.h: Likewise.
59843         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
59844         and iswcntrl; the wctype module does this stuff now.
59845         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59846         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59847         * modules/mbchar (Depends-on): Add wctype.
59848         * modules/mbswidth (Depends-on): Likewise.
59849         * modules/wcwidth (Depends-on): Likewise.
59850
59851 2006-12-27  Eric Blake  <ebb9@byu.net>
59852
59853         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
59854         module uses more than what <wctype.h> is required to provide.
59855
59856 2006-12-26  Eric Blake  <ebb9@byu.net>
59857
59858         * gnulib-tool (sed_extract_prog): Avoid space-tab.
59859
59860 2006-12-26  Eric Blake  <ebb9@byu.net>
59861
59862         * modules/absolute-header: New module.
59863         * modules/fcntl (Depends-on): Depend on it.
59864         * modules/inttypes (Depends-on): Likewise.
59865         * modules/stdint (Depends-on): Likewise.
59866         * modules/sys_stat (Depends-on): Likewise.
59867         * modules/wctype (Depends-on): Likewise.
59868         * MODULES.html.sh (Support for building libraries and
59869         executables): Document it.
59870
59871 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59872
59873         * gnulib-tool (SED): Remove, undoing previous change.
59874         The problem was that it broke coreutils on Solaris, because
59875         "sed --posix" leaked into a makefile.
59876         (sed): New alias, if 'alias' and GNU sed.
59877
59878 2006-12-24  Jim Meyering  <jim@meyering.net>
59879
59880         Work around an fchownat bug in glibc-2.4:
59881         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
59882         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
59883         in spite of the -P option.
59884         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
59885         New macros.
59886         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
59887         * modules/openat (Files): Add lib/fchownat.c.
59888         * lib/openat.c (fchownat): Don't define here.  Move to...
59889         * lib/fchownat.c: ...this new file.
59890
59891 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59892
59893         Fix bug reported by Bruno Haible in
59894         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
59895         where quotearg.c didn't compile on Mac OS X 10.2 because it
59896         lacks <wchar.h> and wint_t.
59897         * lib/wctype_.h (__wctype_wint_t): New type.
59898         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
59899         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
59900         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
59901         Arg is now of type __wctype_wint_t, not wint_t.
59902         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
59903         substitute HAVE_WINT_T.
59904         * modules/wctype (Files): Add m4/wint_t.m4.
59905         (wctype.h): Substitute HAVE_WINT_T.
59906
59907 2006-12-23  Bruno Haible  <bruno@clisp.org>
59908
59909         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
59910
59911 2006-12-23  Bruno Haible  <bruno@clisp.org>
59912
59913         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
59914         S_ISLNK.
59915         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
59916         mingw.
59917
59918 2006-12-22  Bruno Haible  <bruno@clisp.org>
59919
59920         * lib/copy-file.c: Include acl.h.
59921         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
59922         Close the file descriptors only after being done with copy_acl.
59923         * modules/copy-file (Depends-on): Add acl.
59924
59925 2006-12-22  Bruno Haible  <bruno@clisp.org>
59926
59927         * gnulib-tool (SED): New variable.
59928         Use $SED instead of sed everywhere.
59929
59930 2006-12-22  Bruno Haible  <bruno@clisp.org>
59931
59932         * modules/no-c++: New file.
59933         * m4/no-c++.m4: New file.
59934         * MODULES.html.sh (Support for building libraries and executables):
59935         Add no-c++.
59936
59937 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59938
59939         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59940         Include <limits.h>, and use its INT_MAX to rewrite the
59941         j loop so that it does not overflow 'int'.  Problem reported by
59942         Ralf Wildenhues in
59943         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
59944         Play it safe by shifting left by 1 rather than multiplying by 2,
59945         as GCC is less likely to optimize this away when the value
59946         is signed (when it assumes overflow leads to undefined behavior).
59947         Also, don't assume time_t uses two's complement.
59948
59949 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59950
59951         * MODULES.html.sh: New module wctype.
59952         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
59953         * lib/fnmatch.c: Don't bother to include <wchar.h> before
59954         <wctype.h>, since the new wctype module should fix this.
59955         * lib/quotearg.c: Include <wctype.h> unconditionally, since
59956         the wctype module should arrange for it.
59957         * lib/regex_internal.h: Likewise.
59958         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
59959         since the wctype module should handle this now.
59960         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
59961         * modules/fnmatch (Depends-on): Add wctype.
59962         * modules/quotearg (Depends-on): Likewise.
59963         * modules/regex (Depends-on): Likewise.
59964
59965 2006-12-19  Bruno Haible  <bruno@clisp.org>
59966
59967         * lib/strdup.h [C++]: Wrap definitions in extern "C".
59968         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
59969
59970 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59971
59972         * modules/savewd (Depends-on): Fix dependency on fcntl.
59973
59974 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59975
59976         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
59977         conforms to C99, rather than relying on the user's environment
59978         setting of STDINT_H.
59979
59980 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59981         and Eric Blake  <ebb9@byu.net>
59982
59983         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
59984         This is more consistent with the other defines here.
59985         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
59986         Port to z/OS.  Problem reported by Paul Gilmartin.
59987         Change local vars to use gl_ prefix rather than ac_.
59988         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
59989         with other defines.
59990         * modules/double-slash-root: New module.
59991         * modules/dirname (Files): Remove m4/double-slash-root.m4.
59992         (Depends-on): Add double-slash-root.
59993         * MODULES.html.sh (File system functions): Mention new module.
59994
59995 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
59996
59997         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
59998         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
59999         This is for the benefit of gzip, which doesn't do i18n.
60000
60001 2006-12-12  Jim Meyering  <jim@meyering.net>
60002
60003         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
60004         Reported by Andreas Schwab <schwab@suse.de>.
60005
60006 2006-12-12  Bruno Haible  <bruno@clisp.org>
60007
60008         Merge these changes.
60009         2006-09-05  Bruno Haible  <bruno@clisp.org>
60010         * lib/iconvme.c (iconv_string): No need to save and restore errno when
60011         iconv_alloc succeeded.
60012         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
60013         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
60014         test for " && dest " at the end - dest is always != NULL there. Call
60015         iconv with 4xNULL arguments initially, to reset the state. Call iconv
60016         with 2xNULL arguments, also to flush the state storage. Handle the
60017         IRIX iconv behaviour. Realloc the final result, to throw away unused
60018         memory.
60019
60020 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
60021
60022         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
60023         and fchmodat unconditionally, since glibc 2.4 has them.
60024         Problem reported by Arkadiusz Miskiewicz.
60025
60026 2006-12-10  Bruno Haible  <bruno@clisp.org>
60027
60028         * gnulib-tool (func_import): Show the include files only for those
60029         modules that are copied and specified.
60030         Reported by Karl Berry.
60031
60032 2006-12-08  Jim Meyering  <jim@meyering.net>
60033
60034         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
60035         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
60036
60037         * build-aux/announce-gen: Add two new options, both optional:
60038         --bootstrap-tools=TOOL_LIST
60039               a comma-separated list of tools, e.g.,
60040               autoconf,automake,bison,gnulib
60041         --gnulib-snapshot-date=DATE
60042               if gnulib is in the bootstrap tool list,
60043               then report this as the snapshot date.
60044               If not specified, use the current date/time.
60045               If you specify a date here, be sure it's UTC.
60046
60047 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60048
60049         * tests/test-argp-2.sh: Fix test to match actual output.
60050         (func_compare): Fix sed script to be portable.
60051
60052 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
60053
60054         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
60055         workaround for this case.  It is not autoconfigured now; offhand
60056         it's hard to see how to autoconfigure it.
60057
60058 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60059
60060         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
60061         a directory that is about to be chowned.  Such a directory's
60062         initial file permissions should permit the owner only and this
60063         should not be changed until after the chown, since the group and
60064         other bits would be incorrect if they granted permission before
60065         the chown.
60066
60067         Fix porting problem for iswctype reported by Georg Schwarz in:
60068         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
60069         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
60070         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
60071         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
60072         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60073
60074 2006-12-03  Jim Meyering  <jim@meyering.net>
60075
60076         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
60077         p->fts_statp may not yet be defined.
60078         (fts_read): Instead, set it in the caller, once p->fts_statp is
60079         sure to be defined, and corresponds to a top-level directory.
60080         This bug made du -x fail.  Here's the coreutils test case:
60081         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
60082         Reported by Mike Frysinger.
60083
60084 2006-12-01  Jim Meyering  <jim@meyering.net>
60085
60086         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
60087         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
60088         Reported by Simon Josefsson.
60089
60090 2006-11-30  Jim Meyering  <jim@meyering.net>
60091
60092         * m4/warning.m4: Use the all-permissive copyright notice
60093         recommended by RMS (rather than LGPL).
60094         * m4/vararrays.m4: Likewise.
60095         * m4/flexmember.m4: Likewise.
60096
60097 2006-11-29  Bruno Haible  <bruno@clisp.org>
60098
60099         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60100         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
60101         using +=.
60102         Reported by Simon Josefsson <simon@josefsson.org>.
60103
60104 2006-11-28  James Youngman <jay@gnu.org>
60105
60106         * README: Advise users that they might find the bug-gnulib@gnu.org
60107         and autotools-announce@gnu.org mailing lists useful.
60108
60109 2006-11-28  Bruno Haible  <bruno@clisp.org>
60110
60111         * m4/ptrdiff_max.m4: Remove file.
60112
60113 2006-11-21  Bruno Haible  <bruno@clisp.org>
60114
60115         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
60116         _AC_COMPUTE_INT.
60117         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60118         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
60119         _AC_COMPUTE_INT.
60120         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60121         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
60122         _AC_COMPUTE_INT.
60123         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60124
60125 2006-11-28  Jim Meyering  <jim@meyering.net>
60126
60127         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
60128         warning from "gcc -Wshadow" about shadowing the builtin.
60129
60130 2006-11-27  Bruno Haible  <bruno@clisp.org>
60131
60132         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
60133         _AC_COMPUTE_INT.
60134         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60135
60136 2006-11-27  Bruno Haible  <bruno@clisp.org>
60137             Paul Eggert  <eggert@cs.ucla.edu>
60138
60139         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
60140
60141 2006-11-26  Bruno Haible  <bruno@clisp.org>
60142
60143         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60144         noinst_LTLIBRARIES.
60145
60146 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60147             Bruno Haible  <bruno@clisp.org>
60148
60149         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
60150         if compiling with "gcc -ansi".
60151
60152 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60153
60154         Fix some incompatibilities with gcc -ansi -pedantic.
60155         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
60156         if compiling pedantically with GCC, unless it's C99 or later.
60157         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
60158         it mishandles gcc -ansi -pedantic as well.
60159         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
60160         if gcc -pedantic.
60161         * lib/regexec.c (check_node_accept_bytes): Don't use auto
60162         initializers for struct if -pedantic, unless it's C99 or later.
60163
60164 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
60165
60166         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
60167         Don't close an fd more than once. Identical atimes indicate
60168         success, not failure.
60169
60170 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
60171
60172         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
60173
60174 2006-11-23  Jim Meyering  <jim@meyering.net>
60175
60176         * build-aux/announce-gen: New file.  From coreutils.
60177
60178 2006-11-22  Jim Meyering  <jim@meyering.net>
60179
60180         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
60181         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
60182         (fts_read): Use a temporary to narrow the overused st_size member
60183         before using it in a switch statement.  Reported by Matthew Woehlke.
60184
60185         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
60186         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60187
60188 2006-11-20  Bruno Haible  <bruno@clisp.org>
60189
60190         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
60191         changequote instead of pairs of brackets.
60192         Reported by Andreas Schwab <schwab@suse.de>.
60193
60194 2006-11-21  Jim Meyering  <jim@meyering.net>
60195
60196         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
60197         so as to remain compatible with older compilers.
60198         Patch from Michael Deutschmann.
60199
60200 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60201
60202         * MODULES.html.sh (File system functions): Add openat.
60203
60204         * lib/openat.h (rpl_fstatat): New macro, if
60205         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
60206         (fstatat): Define to rpl_fstatat under the same conditions,
60207         unless COMPILING_FSTATAT.
60208         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60209         seems to have the bug.
60210         * lib/fstatat.c: New file.
60211         * modules/openat (Files): Add it.
60212
60213 2006-11-20  Bruno Haible  <bruno@clisp.org>
60214
60215         * Makefile: New file.
60216
60217 2006-11-20  Jim Meyering  <jim@meyering.net>
60218
60219         The beginnings of syntax-related checks for gnulib.
60220         * lib/Makefile: New file.
60221         * lib/t-idcache: New script.  Ensure that the two halves of
60222         idcache.c stay in sync.
60223
60224         * lib/idcache.c: Adjust comments in user- and group- portions to
60225         be more accurate, and to be consistent with one another.
60226
60227 2006-11-20  Jim Meyering  <jim@meyering.net>
60228
60229         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60230         continue using the flexible array member (thus, this module performs
60231         half as many malloc calls), with the addition that...
60232         (getgroup, getuser): Consistently record a non-match via an empty
60233         "name" string, and map an empty string match to a NULL return value.
60234         * modules/idcache (Depends-on): Re-add flexmember.
60235
60236         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60237         (getuidbyname, getgroup, getgidbyname): Likewise.
60238
60239         Use cleaner syntax: NULL rather than 0.
60240         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60241
60242 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60243
60244         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60245         It mishandled the case where the group was missing.
60246         Problem reported by Greg Schafer.
60247         * modules/idcache: Likewise.
60248
60249 2006-11-18  Jim Meyering  <jim@meyering.net>
60250
60251         * check-module (%exempt_header): Add exception for some
60252         conditionally-included headers.
60253
60254         * modules/i-ring (Depends-on): Add verify.
60255         (License): Change to LGPL.
60256
60257 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60258
60259         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60260         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60261         and inttostr.h.  Use snprintf rather than uinttostr, so that
60262         LGPLed code doesn't depend on GPLed.
60263
60264 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60265
60266         * modules/inline (License): Change from GPL to LGPL.
60267
60268 2006-11-17  Jim Meyering  <jim@meyering.net>
60269
60270         * modules/d-type (License): Switch to LGPL.
60271
60272 2006-11-15  Bruno Haible  <bruno@clisp.org>
60273
60274         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60275
60276 2006-11-15  Eric Blake  <ebb9@byu.net>
60277
60278         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60279         the module dependency.
60280
60281 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60282             Bruno Haible  <bruno@clisp.org>
60283
60284         * gnulib-tool (func_create_testdir): Add license consistency check.
60285
60286 2006-11-15  Eric Blake  <ebb9@byu.net>
60287
60288         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60289         random "(cached)" in configure output.
60290
60291 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60292
60293         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60294         test for conforming inttypes.h is both announced and cached.
60295
60296         * MODULES.html.sh (seen_modules, seen_files): New variables.
60297         (func_module): Rewrite to use a few less gnulib-tool and sed
60298         invocations.  Avoid a couple of quadratic algorithms for ...
60299         (missed_modules, missed_files): ... these, with ...
60300         (func_append, func_tmpdir): ... these new functions, from
60301         gnulib-tool.  Analogously, install traps for cleanup.
60302
60303         * tests/test-gc.c (main): Remove unused variables.
60304         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60305
60306 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60307
60308         * modules/inttostr (License): Change to LGPL.
60309
60310 2006-11-14  Eric Blake  <ebb9@byu.net>
60311
60312         * modules/tempname (License): Change to LGPL.
60313
60314 2006-11-14  Eric Blake  <ebb9@byu.net>
60315
60316         * doc/functions.texi (Function Portability): *printf functions on
60317         Cygwin now understand all POSIX size specifiers.
60318
60319 2006-11-14  Bruno Haible  <bruno@clisp.org>
60320
60321         * modules/c-ctype (License): Change to LGPL.
60322
60323 2006-11-12  Bruno Haible  <bruno@clisp.org>
60324
60325         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60326         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60327         for GNOME libraries, for which the include files are installed in
60328         subdirectories of $prefix/include.
60329
60330 2006-11-12  Bruno Haible  <bruno@clisp.org>
60331
60332         * m4/lib-link.m4: Require at least autoconf-2.54.
60333         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60334         name to underscores for the --with option.
60335
60336 2006-11-13  Bruno Haible  <bruno@clisp.org>
60337
60338         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60339         the tests directory.
60340         Reported by Ralf Wildenhues.
60341
60342 2006-11-13  Bruno Haible  <bruno@clisp.org>
60343
60344         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60345         (func_emit_initmacro_end): Undo the override here.
60346         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60347         Works around the famous automake error in coreutils.
60348
60349 2006-11-13  Eric Blake  <ebb9@byu.net>
60350
60351         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60352         element, not its node.
60353
60354 2006-11-12  Bruno Haible  <bruno@clisp.org>
60355
60356         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60357         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60358
60359 2006-11-12  Bruno Haible  <bruno@clisp.org>
60360
60361         * gnulib-tool: New option --local-symlink.
60362         (func_usage): Document it.
60363         (lsymbolic): New variable.
60364         (func_import, func_create_testdir): If --symlink was not specified,
60365         test whether --local-symlink was specified and the file comes from
60366         the local_gnulib_dir.
60367
60368 2006-11-12  Bruno Haible  <bruno@clisp.org>
60369
60370         * gnulib-tool (func_ln): New function.
60371         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60372
60373 2006-11-12  Bruno Haible  <bruno@clisp.org>
60374
60375         Finish support for source files in subdirectories.
60376         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60377         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60378         AUTOMAKE_OPTIONS.
60379         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60380
60381 2006-11-12  Bruno Haible  <bruno@clisp.org>
60382
60383         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60384         EXTRA_lib_SOURCES augmentation.
60385         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60386
60387 2006-11-12  Jim Meyering  <jim@meyering.net>
60388
60389         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60390         file descriptors.  This also averts a failure on systems with
60391         native openat support when a traversed directory lacks "x" access.
60392         * lib/fts_.h: Include "i-ring.h"
60393         (struct FTS) [fts_fd_ring]: New member.
60394         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60395         (FCHDIR): Add parentheses.
60396         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60397         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60398         When descending, rather than simply closing the previous
60399         fts_cwd_fd value, push that file descriptor onto the ring.
60400         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60401         (fts_open): Initialize the new fd_ring member.
60402         (fts_close): Clear the ring.
60403         (fts_safe_changedir): When possible, use our new fd_ring to skip
60404         the diropen and fstat and dev/ino comparison that would normally
60405         accompany a virtual `chdir ("..")'.
60406
60407         * modules/fts (Depends-on): Add i-ring.
60408         * modules/i-ring: New module.
60409         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60410         * m4/i-ring.m4: New file.
60411
60412 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60413
60414         * gnulib-tool (func_create_testdir): Fix replacement of
60415         `build-aux' in configure.ac.  Run autotools in gltests
60416         subdirectory.
60417         (func_create_testdir, func_create_megatestdir, test): There is
60418         no need for '--force' in most autotool invocations in a new
60419         tree.  Actually fail the whole test if any of the tools, or the
60420         configure or make stages fail.
60421
60422         Sync from Automake.
60423         * build-aux/gnupload: Revert last change.  Add pointer to upload
60424         instructions of the GNU Maintenance Instructions.
60425         Suggestion by Karl Berry.
60426
60427 2006-11-10  Jim Meyering  <jim@meyering.net>
60428
60429         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60430
60431 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60432
60433         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60434         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60435         (bind_textdomain_codeset) [! ENABLE_NLS]:
60436         Evaluate all the arguments.  That way, callers get compatible behavior
60437         if the arguments have side effects.  Also, it avoids some GCC
60438         diagnostics in some cases; Joel E. Denny reported problems when Bison
60439         was configured with --enable-gcc-warnigs.
60440
60441 2006-11-10  Jim Meyering  <jim@meyering.net>
60442
60443         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60444         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60445         account.
60446
60447 2006-11-10  Jim Meyering  <jim@meyering.net>
60448
60449         * modules/inline: New file/module.
60450         * modules/xalloc (Files): Remove m4/inline.m4.
60451         (Depends-on): Add inline, instead.
60452         * modules/oset: Likewise.
60453         * modules/list: Likewise.
60454
60455 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60456
60457         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60458         Problem reported by Matthew Woehlke.
60459
60460 2006-11-09  Bruno Haible  <bruno@clisp.org>
60461
60462         * lib/tempname.c (gen_tempname): Remove variant that invokes
60463         __gen_tempname.
60464         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60465         __gen_tempname.
60466
60467 2006-11-08  Bruno Haible  <bruno@clisp.org>
60468
60469         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60470         to 'yes' instead of 'cross-compiling'.
60471
60472 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60473
60474         * lib/quotearg.h (quotearg_free): New decl.
60475         * lib/quotearg.c (quotearg_free): New function.
60476         (slot0, nslots, slotvec0, slotvec):
60477         Now file-scope so that quotearg_free can get at them.
60478
60479 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60480
60481         Sync from Automake.
60482         * build-aux/gnupload: Add missing 'gnu' to example URL.
60483         Report by Karl Berry.
60484
60485 2006-11-08  Bruno Haible  <bruno@clisp.org>
60486
60487         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60488         Suggested by Paul Eggert.
60489
60490 2006-11-08  Jim Meyering  <jim@meyering.net>
60491
60492         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60493         It's already included if !_LIBC.
60494         (fts_safe_changedir): Add a comment.
60495
60496 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60497
60498         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60499         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60500         Matthew Woehlke.
60501
60502         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60503         definitions up, to avoid colliding with change below.
60504         (static_inline) [HAVE_INLINE]: New macro.
60505         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60506         Provide extern decls when !HAVE_INLINE.  Do not define unless
60507         static_inline is defined, either by us or by xmalloc.c.  Use
60508         static_inline rather than static inline.
60509         (XCALLOC): Optimize sizeof(T) = 1 case.
60510         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60511
60512 2006-11-07  Bruno Haible  <bruno@clisp.org>
60513
60514         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60515         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60516         AC_C_INLINE.
60517         * modules/xalloc (Files): Add m4/inline.m4.
60518
60519 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60520
60521         * README: Fix typo.
60522         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60523         (Miscellanous Notes): ...from this.
60524
60525 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60526
60527         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60528         Mention that offsetof should be used instead of sizeof.
60529         From Bruno Haible.
60530
60531 2006-11-07  Bruno Haible  <bruno@clisp.org>
60532
60533         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60534
60535 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60536
60537         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60538         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60539         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60540         (gl_tree_add_before, gl_tree_add_after):
60541         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60542         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60543         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60544         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60545         (gl_linked_add_after, gl_linked_add_at): Likewise.
60546         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60547         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60548         (gl_tree_add_before, gl_tree_add_after): Likewise.
60549         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60550         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60551         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60552
60553 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60554
60555         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60556
60557 2006-11-06  Bruno Haible  <bruno@clisp.org>
60558
60559         * m4/inline.m4: New file.
60560         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60561         * modules/list (Files): Add m4/inline.m4.
60562         * modules/oset (Files): Likewise.
60563
60564 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60565
60566         * lib/idcache.c: Include <stddef.h>, for offsetof.
60567         (struct userid.name): Change from char * to a flexible array member.
60568         All uses changed.
60569         * modules/idcache (Depends-on): Add flexmember.
60570
60571         * MODULES.html.sh (Core language properties): New module flexmember.
60572         * modules/flexmember, m4/flexmember.m4: New files.
60573
60574         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60575         inline functions that are identical with the old xnmalloc_inline,
60576         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60577         that we can avoid some unnecessary integer multiplications and
60578         divisions in the common case where the element size is known at
60579         compile time.
60580         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60581         needed.
60582         (xnboundedmalloc): Remove.
60583         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60584         arguments, for consistency with rest of this header.
60585         (xcharalloc): Rewrite using XNMALLOC.
60586         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60587         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60588         versions have been moved to lib/xalloc.h and renamed to be the
60589         non-*_inline versions.
60590         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60591         and xnrealloc functions, since those functions are now inline and
60592         now call us.
60593         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60594         renaming described above.
60595         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60596         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60597         captures the dependency in AC_C_INLINE.
60598
60599         New module canonicalize-lgpl, proposed by Charles Wilson in
60600         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60601         with a few small changes afterwards.
60602         * MODULES.html.sh (File system functions): New module
60603         canonicalize-lgpl.
60604         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60605         and canonicalize_file_name.
60606         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60607         * modules/canonicalize-lgpl: New files.
60608
60609 2006-11-05  Bruno Haible  <bruno@clisp.org>
60610
60611         * gnulib-tool (func_import, func_create_testdir): Create directories
60612         also for files in subdirectories of lib/.
60613
60614 2006-11-05  Bruno Haible  <bruno@clisp.org>
60615
60616         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60617         ANSI C compliant.
60618
60619 2006-11-03  Bruno Haible  <bruno@clisp.org>
60620
60621         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60622         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60623         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60624         (xnboundedmalloc): New inline function.
60625         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60626         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60627         xmalloc.
60628         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60629         xmalloc.
60630         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60631         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60632         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60633         xmalloc.
60634         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60635         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60636         xmalloc.
60637         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60638         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60639         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60640         xmalloc.
60641         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60642         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60643         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60644         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60645         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60646         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60647         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60648
60649 2006-11-03  Bruno Haible  <bruno@clisp.org>
60650
60651         * lib/c-ctype.h [C++]: Define functions without name mangling.
60652         * lib/fwriteerror.h [C++]: Likewise.
60653         * lib/gcd.h [C++]: Likewise.
60654         * lib/linebreak.h [C++]: Likewise.
60655
60656 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60657
60658         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60659         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60660         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60661         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60662         Check for functions and headers just once.
60663         Check for declaration of canonicalize_file_name.
60664         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60665
60666 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60667
60668         * gnulib-tool (func_import): Fix typo in actioncmd.
60669
60670 2006-11-02  Bruno Haible  <bruno@clisp.org>
60671
60672         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60673         newline sequence in the Makefile.am snippet as a space, like "make"
60674         does.
60675         Reported by Roger Persson <perrog@gmail.com>.
60676
60677 2006-11-01  Bruno Haible  <bruno@clisp.org>
60678
60679         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60680         already declared in <string.h>.
60681         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60682
60683 2006-11-01  Bruno Haible  <bruno@clisp.org>
60684
60685         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60686         * lib/strcase.h: Include <string.h>.
60687         (strcasecmp): Define to rpl_strcasecmp here.
60688
60689 2006-11-01  Bruno Haible  <bruno@clisp.org>
60690
60691         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60692
60693 2006-11-01  Eric Blake  <ebb9@byu.net>
60694
60695         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60696
60697         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60698
60699 2006-10-29  Bruno Haible  <bruno@clisp.org>
60700
60701         Make it compile in C++ mode.
60702         * lib/full-write.c (full_rw): Add a cast.
60703
60704 2006-11-01  Bruno Haible  <bruno@clisp.org>
60705
60706         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60707         be POSIX compliant.
60708         Reported by Roger Persson <perrog@gmail.com>.
60709
60710 2006-11-01  Eric Blake  <ebb9@byu.net>
60711
60712         * lib/getopt_.h: Fix comments.
60713
60714 2006-10-31  Eric Blake  <ebb9@byu.net>
60715
60716         * modules/tmpdir (Depends-on): Add sys_stat.
60717         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60718         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60719         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60720         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60721         tempname.
60722
60723 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60724
60725         Avoid some C++ diagnostics reported by Bruno Haible.
60726         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60727         xmalloc.
60728         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60729         (struct slotvec): Move to top level.
60730         (quotearg_n_options): Rewrite to avoid xmalloc.
60731         * lib/xalloc.h (xcharalloc): New function.
60732         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60733         [defined __cplusplus]: Add function template that provides result
60734         type propagation.  This part of the change is from Bruno Haible.
60735
60736 2006-10-29  Bruno Haible  <bruno@clisp.org>
60737
60738         Make it compile in C++ mode.
60739         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60740         * lib/strnlen1.c (strnlen1): Cast memchr result.
60741         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60742         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60743         (create_temp_dir): Rename local variable 'template'.
60744         (compile_csharp_using_sscli): Add cast.
60745         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60746         * lib/findprog.c (find_in_path): Likewise.
60747         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60748         * lib/wait-process.c (register_slave_subprocess): Likewise.
60749
60750 2006-10-22  Bruno Haible  <bruno@clisp.org>
60751
60752         * modules/tsearch: New file.
60753         * lib/tsearch.h: New file.
60754         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60755         * m4/tsearch.m4: New file.
60756         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60757
60758 2006-10-29  Eric Blake  <ebb9@byu.net>
60759
60760         * lib/arcfour.c: Assume config.h.
60761         * lib/arctwo.c: Likewise.
60762         * lib/base64.c: Likewise.
60763         * lib/check-version.c: Likewise.
60764         * lib/crc.c: Likewise.
60765         * lib/des.c: Likewise.
60766         * lib/gc-gnulib.c: Likewise.
60767         * lib/gc-libgcrypt.c: Likewise.
60768         * lib/gc-pbkdf2-sha1.c: Likewise.
60769         * lib/getaddrinfo.c: Likewise.
60770         * lib/getdelim.c: Likewise.
60771         * lib/getline.c: Likewise.
60772         * lib/hmac-md5.c: Likewise.
60773         * lib/hmac-sha1.c: Likewise.
60774         * lib/iconvme.c: Likewise.
60775         * lib/md2.c: Likewise.
60776         * lib/md4.c: Likewise.
60777         * lib/memxor.c: Likewise.
60778         * lib/read-file.c: Likewise.
60779         * lib/readline.c: Likewise.
60780         * lib/rijndael-alg-fst.c: Likewise.
60781         * lib/rijndael-api-fst.c: Likewise.
60782         * lib/xgetdomainname.c: Likewise.
60783
60784 2006-10-28  Eric Blake  <ebb9@byu.net>
60785
60786         * lib/xstrndup.c: Assume config.h.
60787
60788 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60789
60790         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
60791         stat-macros.h is now for our own macros, whereas stat_h is for
60792         macros in the <sys/stat.h> name space.
60793         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
60794         (STAT_MACROS_H): Remove.
60795         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
60796         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
60797         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
60798         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
60799         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
60800         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
60801         Move these macros to ...
60802         * lib/stat_.h: here.  Don't include stat-macros.h.
60803         * lib/canonicalize.c: Don't include stat-macros.h.
60804         * lib/chown.c: Likewise.
60805         * lib/euidaccess.c: Likewise.
60806         * lib/file-type.c: Likewise.
60807         * lib/filemode.c: Likewise.
60808         * lib/glob.c: Likewise.
60809         * lib/isapipe.c: Likewise.
60810         * lib/lchown.c: Likewise.
60811         * lib/lstat.c: Likewise.
60812         * lib/mkdir-p.c: Likewise.
60813         * lib/rmdir.c: Likewise.
60814         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
60815         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
60816         unless mkdir isn't declared, to speed up 'configure'.
60817         Always create sys/stat.h, since it's unlikely any real sys/stat.h
60818         would define all the S_* symbols.
60819         * modules/canonicalize (Depends-on):
60820         Depend on sys_stat, not stat-macros.
60821         * modules/chown: Likewise.
60822         * modules/euidaccess: Likewise.
60823         * modules/filemode: Likewise.
60824         * modules/file-type: Likewise.
60825         * modules/glob: Likewise.
60826         * modules/isapipe: Likewise.
60827         * modules/lchown: Likewise.
60828         * modules/lstat: Likewise.
60829         * modules/mkancesdirs: Likewise.
60830         * modules/rmdir: Likewise.
60831         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
60832         * modules/modechange: Likewise.
60833         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
60834         (configure.ac): Remove gl_STAT_MACROS.
60835         * modules/sys_stat (Depends-on): Remove stat-macros.
60836
60837 2006-10-27  Bruno Haible  <bruno@clisp.org>
60838
60839         * m4/signed.m4: Remove file.
60840         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
60841         invocation.
60842         * modules/vasnprintf (Files): Remove m4/signed.m4.
60843
60844 2006-10-27  Bruno Haible  <bruno@clisp.org>
60845
60846         Update to GNU gettext 0.16.
60847         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
60848         m4/inttypes-h.m4, m4/signed.m4.
60849         * m4/gettext.m4: Update to GNU gettext 0.16.
60850         * m4/intl.m4: New file, from GNU gettext.
60851         * m4/intldir.m4: New file, from GNU gettext.
60852         * config/srclist.txt: Update
60853
60854 2006-10-27  Eric Blake  <ebb9@byu.net>
60855
60856         * MODULES.html.sh: Document tempname.
60857         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
60858         dependencies.
60859         (Files): Move lib/tempname.c...
60860         * modules/tempname: ...to this new module.
60861         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
60862         (gl_PREREQ_TEMPNAME): Move...
60863         * m4/tempname.m4: ...to this new file.
60864         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
60865         * modules/sys_stat (Depends-on): Add stat-macros.
60866         * lib/stat_.h (includes): Pick up stat macros.
60867         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
60868         if stat macros are broken.
60869         * lib/tempname.c (includes): No need to include "stat-macros.h".
60870         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
60871         (direxists, __path_search) [!_LIBC]: Don't compile these in
60872         gnulib; the tmpdir module covers that.
60873         * lib/tempname.h: New file.
60874
60875 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60876
60877         * COPYING: Explain how gnulib-tool converts licence headers.
60878         Almost all wording by Eric Blake.
60879
60880 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
60881
60882         * lib/mbchar.h (is_basic_table): Make read-only.
60883         * lib/mbchar.c (is_basic_table): Likewise.
60884         Reported by John Darrington.
60885
60886 2006-10-25  Bruno Haible  <bruno@clisp.org>
60887
60888         * lib/progname.h (set_program_name): Undefine before defining.
60889
60890 2006-10-25  Bruno Haible  <bruno@clisp.org>
60891
60892         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
60893         false for non-gcc C++ compilers.
60894         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60895
60896 2006-10-24  Bruno Haible  <bruno@clisp.org>
60897
60898         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
60899         iconv implementations like Irix iconv.
60900
60901 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60902
60903         * modules/vararrays: New file.
60904         * m4/vararrays.m4: New file, taken from diffutils.
60905         * MODULES.html.sh: New module vararrays.
60906
60907 2006-10-24  Karl Berry  <karl@gnu.org>
60908
60909         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
60910         Don't call GNU Unix.
60911
60912 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60913
60914         * users.txt: Add Libtool.
60915
60916         Sync from Libtool:
60917
60918         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60919
60920         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
60921         to gnulib's policy of including config.h unconditionally.
60922
60923 2006-10-24  Bruno Haible  <bruno@clisp.org>
60924
60925         * modules/wcwidth (Files): Add m4/wint_t.m4.
60926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
60927         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
60928
60929 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60930
60931         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
60932         to pacify GCC with some -W flags enabled.  Problem reported by
60933         Bruno Haible.
60934
60935 2006-10-24  Jim Meyering  <jim@meyering.net>
60936
60937         * MODULES.html.sh: Remove uinttostr.  It's not a module.
60938         Reported by Karl Berry.
60939
60940 2006-10-23  Bruno Haible  <bruno@clisp.org>
60941
60942         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
60943
60944 2006-10-24  Bruno Haible  <bruno@clisp.org>
60945
60946         * lib/gl_list.h: Use C comment style, not C++ comment style.
60947
60948 2006-10-23  Eric Blake  <ebb9@byu.net>
60949
60950         * lib/getaddrinfo.c (includes): Add missing include.
60951
60952 2006-10-23  Bruno Haible  <bruno@clisp.org>
60953             Paul Eggert  <eggert@cs.ucla.edu>
60954
60955         Ability to rename obstack_free.
60956         * lib/obstack.h (__obstack_free): New macro. Declare instead of
60957         obstack_free.
60958         (obstack_free): Invoke the __obstack_free macro.
60959         * lib/obstack.c (obstack_free): Use __obstack_free macro.
60960
60961 2006-10-23  Bruno Haible  <bruno@clisp.org>
60962             Paul Eggert  <eggert@cs.ucla.edu>
60963
60964         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
60965         __argc, __argv from the declaration. (They are defined as macros on
60966         mingw.)
60967
60968 2006-10-22  Bruno Haible  <bruno@clisp.org>
60969
60970         * doc/gnulib-intro.texi: New file.
60971         * doc/gnulib.texi: Include it.
60972
60973 2006-10-21  Bruno Haible  <bruno@clisp.org>
60974
60975         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
60976         "Introduction", "Miscellanous Notes", "Particular Modules".
60977
60978 2006-10-21  Bruno Haible  <bruno@clisp.org>
60979
60980         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60981         Change mostlyclean-local rule to avoid sh syntax error from bash
60982         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
60983
60984 2006-10-23  Jim Meyering  <jim@meyering.net>
60985
60986         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
60987         in place of snprintf.
60988
60989         * modules/inttostr (Files): Add lib/uinttostr.c.
60990         * lib/uinttostr.c (inttostr): New file/function.
60991         * lib/inttostr.h (uinttostr): Declare.
60992         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
60993         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60994         Add uinttostr.
60995         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
60996
60997 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60998
60999         * lib/canonicalize.c (ELOOP): Define if not already defined.
61000         Problem reported by Bruno Haible in
61001         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
61002
61003 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61004
61005         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
61006         Problem reported by Perry Smith and Ville Laurikari.
61007
61008         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
61009         uses.
61010
61011 2006-10-19  Bruno Haible  <bruno@clisp.org>
61012
61013         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
61014         for mingw.
61015
61016 2006-10-19  Bruno Haible  <bruno@clisp.org>
61017
61018         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
61019         Needed for mingw.
61020
61021 2006-10-19  Bruno Haible  <bruno@clisp.org>
61022
61023         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61024
61025 2006-10-19  Bruno Haible  <bruno@clisp.org>
61026
61027         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61028         it.
61029
61030 2006-10-19  Bruno Haible  <bruno@clisp.org>
61031
61032         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
61033         invocation.
61034
61035 2006-10-19  Bruno Haible  <bruno@clisp.org>
61036
61037         * gnulib-tool (func_create_testdir): Don't include ftruncate and
61038         mountlist by default.
61039
61040 2006-10-16  Bruno Haible  <bruno@clisp.org>
61041
61042         * lib/c-strstr.c: Include c-strstr.h.
61043
61044 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61045
61046         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
61047         in a slash.
61048
61049 2006-10-18  Bruno Haible  <bruno@clisp.org>
61050
61051         * lib/lock.h [C++]: Wrap definitions in extern "C".
61052
61053 2006-10-18  Bruno Haible  <bruno@clisp.org>
61054
61055         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
61056         gl_LIBOBJS list.
61057
61058 2006-10-18  Bruno Haible  <bruno@clisp.org>
61059
61060         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
61061
61062 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
61063
61064         * lib/xstrtol.h: Include gettext.h.
61065         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
61066         Problem reported by Eric Blake.
61067         * modules/xstrtol (Depends-on): Add gettext-h.
61068
61069 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
61070
61071         * lib/strftime.c (advance): New macro.
61072         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
61073         incomplete type, so you can't add 0 to it.  Problem and patch
61074         reported by Eelco Dolstra for dietlibc.
61075
61076 2006-10-18  Jim Meyering  <jim@meyering.net>
61077
61078         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
61079         type for a local, and rename it: s/up/user_proc/.
61080
61081 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61082
61083         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
61084         READ_UTMP_USER_PROCESS.
61085         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
61086
61087 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61088
61089         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
61090         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
61091
61092 2006-10-17  Eric Blake  <ebb9@byu.net>
61093
61094         * lib/sigprocmask.c (sigprocmask): Fix typo.
61095
61096         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
61097
61098         * modules/clean-temp (Makefile.am): Don't add to make output...
61099         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
61100         config.h.
61101
61102 2006-10-17  Bruno Haible  <bruno@clisp.org>
61103
61104         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
61105         differently if DEFAULT_TEXT_DOMAIN is set.
61106
61107 2006-10-16  Bruno Haible  <bruno@clisp.org>
61108
61109         * lib/clean-temp.c: Include fwriteerror.h.
61110
61111 2006-10-16  Bruno Haible  <bruno@clisp.org>
61112
61113         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
61114
61115 2006-10-16  Bruno Haible  <bruno@clisp.org>
61116
61117         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
61118         * lib/sigprocmask.h: Include <sys/types.h>.
61119         (sigset_t): Use the system's definition if present.
61120
61121 2006-10-17  Eric Blake  <ebb9@byu.net>
61122
61123         * lib/xvasprintf.c (includes): Assume config.h.
61124         * lib/xasprintf.c (includes): Likewise.
61125
61126 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61127
61128         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
61129         at least as wide as intmax_t.
61130
61131 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
61132
61133         (Imported from Automake.)
61134         * build-aux/gnupload: Update to version 1.1 of directive file.
61135
61136 2006-10-16  Eric Blake  <ebb9@byu.net>
61137
61138         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61139         match Automake 1.10a.
61140
61141 2006-10-14  Bruno Haible  <bruno@clisp.org>
61142
61143         * modules/sigprocmask: New file.
61144         * lib/sigprocmask.h: New file.
61145         * lib/sigprocmask.c: New file.
61146         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
61147         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
61148         request sigprocmask.o.
61149         (gl_PREREQ_SIGPROCMASK): New macro.
61150         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
61151         (Depends-on): Add sigprocmask.
61152         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
61153         gt_SIGNALBLOCKING. Test for 'raise' only once.
61154         * lib/fatal-signal.c: Include sigprocmask.h.
61155         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
61156         unblock_fatal_signals): Define always.
61157         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61158         sigprocmask.
61159
61160 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61161
61162         Sync from Automake.
61163         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
61164         which incorrectly sets the mode of an existing destination
61165         directory.  In some cases the unpatched install-sh could do the
61166         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
61167         system.  We hope this is rare in practice, but it's clearly worth
61168         fixing.  Problem reported by Alex Unleashed in
61169         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
61170         Also, don't bother to check for -m bugs unless we're using -m;
61171         suggested by Stepan Kasal.
61172
61173 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61174
61175         Sync from Automake.
61176         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
61177         `-c' flag, so they appear at the same position as in %FASTDEP%
61178         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
61179         which ignores unknown options only after the first non-option.
61180         Bug report against M4 by Nelson H. F. Beebe.
61181
61182 2006-10-13  Jim Meyering  <jim@meyering.net>
61183
61184         Fix a bug in yesterday's change.
61185         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
61186         p->fts_statp->st_dev would be used uninitialized.
61187         Ensures that we always call fts_stat on the very first entry.
61188         Miklos Szeredi reported that find -xdev stopped working.
61189
61190 2006-10-12  Bruno Haible  <bruno@clisp.org>
61191
61192         * gnulib-tool (func_get_automake_snippet): Append an automatically
61193         computed EXTRA_DIST augmentation.
61194         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
61195         * modules/alloca-opt (Makefile.am): Likewise.
61196         * modules/allocsa (Makefile.am): Likewise.
61197         * modules/arcfour (Makefile.am): Likewise.
61198         * modules/arctwo (Makefile.am): Likewise.
61199         * modules/argmatch (Makefile.am): Likewise.
61200         * modules/argz (Makefile.am): Likewise.
61201         * modules/atexit (Makefile.am): Likewise.
61202         * modules/backupfile (Makefile.am): Likewise.
61203         * modules/byteswap (Makefile.am): Likewise.
61204         * modules/c-strtod (Makefile.am): Likewise.
61205         * modules/c-strtold (Makefile.am): Likewise.
61206         * modules/calloc (Makefile.am): Likewise.
61207         * modules/canon-host (Makefile.am): Likewise.
61208         * modules/canonicalize (Makefile.am): Likewise.
61209         * modules/chdir-long (Makefile.am): Likewise.
61210         * modules/chdir-safer (Makefile.am): Likewise.
61211         * modules/check-version (Makefile.am): Likewise.
61212         * modules/chown (Makefile.am): Likewise.
61213         * modules/cloexec (Makefile.am): Likewise.
61214         * modules/close-stream (Makefile.am): Likewise.
61215         * modules/closeout (Makefile.am): Likewise.
61216         * modules/crc (Makefile.am): Likewise.
61217         * modules/csharpexec (Makefile.am): Likewise.
61218         * modules/cycle-check (Makefile.am): Likewise.
61219         * modules/des (Makefile.am): Likewise.
61220         * modules/dev-ino (Makefile.am): Likewise.
61221         * modules/dirfd (Makefile.am): Likewise.
61222         * modules/dirname (Makefile.am): Likewise.
61223         * modules/dup2 (Makefile.am): Likewise.
61224         * modules/eealloc (Makefile.am): Likewise.
61225         * modules/error (Makefile.am): Likewise.
61226         * modules/euidaccess (Makefile.am): Likewise.
61227         * modules/exclude (Makefile.am): Likewise.
61228         * modules/exitfail (Makefile.am): Likewise.
61229         * modules/fcntl-safer (Makefile.am): Likewise.
61230         * modules/fcntl (Makefile.am): Likewise.
61231         * modules/file-type (Makefile.am): Likewise.
61232         * modules/fileblocks (Makefile.am): Likewise.
61233         * modules/filemode (Makefile.am): Likewise.
61234         * modules/filenamecat (Makefile.am): Likewise.
61235         * modules/fnmatch (Makefile.am): Likewise.
61236         * modules/fopen-safer (Makefile.am): Likewise.
61237         * modules/fpending (Makefile.am): Likewise.
61238         * modules/fprintftime (Makefile.am): Likewise.
61239         * modules/free (Makefile.am): Likewise.
61240         * modules/fsusage (Makefile.am): Likewise.
61241         * modules/ftruncate (Makefile.am): Likewise.
61242         * modules/fts (Makefile.am): Likewise.
61243         * modules/gc-arcfour (Makefile.am): Likewise.
61244         * modules/gc-des (Makefile.am): Likewise.
61245         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61246         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61247         * modules/gc-md4 (Makefile.am): Likewise.
61248         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61249         * modules/gc-sha1 (Makefile.am): Likewise.
61250         * modules/gc (Makefile.am): Likewise.
61251         * modules/getaddrinfo (Makefile.am): Likewise.
61252         * modules/getcwd (Makefile.am): Likewise.
61253         * modules/getdelim (Makefile.am): Likewise.
61254         * modules/getdomainname (Makefile.am): Likewise.
61255         * modules/getgroups (Makefile.am): Likewise.
61256         * modules/gethostname (Makefile.am): Likewise.
61257         * modules/gethrxtime (Makefile.am): Likewise.
61258         * modules/getline (Makefile.am): Likewise.
61259         * modules/getloadavg (Makefile.am): Likewise.
61260         * modules/getlogin_r (Makefile.am): Likewise.
61261         * modules/getndelim2 (Makefile.am): Likewise.
61262         * modules/getopt (Makefile.am): Likewise.
61263         * modules/getpagesize (Makefile.am): Likewise.
61264         * modules/getpass-gnu (Makefile.am): Likewise.
61265         * modules/getpass (Makefile.am): Likewise.
61266         * modules/getsubopt (Makefile.am): Likewise.
61267         * modules/gettime (Makefile.am): Likewise.
61268         * modules/gettimeofday (Makefile.am): Likewise.
61269         * modules/getugroups (Makefile.am): Likewise.
61270         * modules/getusershell (Makefile.am): Likewise.
61271         * modules/glob (Makefile.am): Likewise.
61272         * modules/group-member (Makefile.am): Likewise.
61273         * modules/hard-locale (Makefile.am): Likewise.
61274         * modules/hash (Makefile.am): Likewise.
61275         * modules/hmac-md5 (Makefile.am): Likewise.
61276         * modules/hmac-sha1 (Makefile.am): Likewise.
61277         * modules/human (Makefile.am): Likewise.
61278         * modules/idcache (Makefile.am): Likewise.
61279         * modules/imaxabs (Makefile.am): Likewise.
61280         * modules/imaxdiv (Makefile.am): Likewise.
61281         * modules/inet_ntop (Makefile.am): Likewise.
61282         * modules/inet_pton (Makefile.am): Likewise.
61283         * modules/intprops (Makefile.am): Likewise.
61284         * modules/inttostr (Makefile.am): Likewise.
61285         * modules/inttypes (Makefile.am): Likewise.
61286         * modules/isapipe (Makefile.am): Likewise.
61287         * modules/javaversion (Makefile.am): Likewise.
61288         * modules/lchmod (Makefile.am): Likewise.
61289         * modules/lchown (Makefile.am): Likewise.
61290         * modules/localcharset (Makefile.am): Likewise.
61291         * modules/long-options (Makefile.am): Likewise.
61292         * modules/lstat (Makefile.am): Likewise.
61293         * modules/malloc (Makefile.am): Likewise.
61294         * modules/mathl (Makefile.am): Likewise.
61295         * modules/mbchar (Makefile.am): Likewise.
61296         * modules/md2 (Makefile.am): Likewise.
61297         * modules/md4 (Makefile.am): Likewise.
61298         * modules/md5 (Makefile.am): Likewise.
61299         * modules/memcasecmp (Makefile.am): Likewise.
61300         * modules/memchr (Makefile.am): Likewise.
61301         * modules/memcmp (Makefile.am): Likewise.
61302         * modules/memcoll (Makefile.am): Likewise.
61303         * modules/memcpy (Makefile.am): Likewise.
61304         * modules/memmem (Makefile.am): Likewise.
61305         * modules/memmove (Makefile.am): Likewise.
61306         * modules/mempcpy (Makefile.am): Likewise.
61307         * modules/memrchr (Makefile.am): Likewise.
61308         * modules/memset (Makefile.am): Likewise.
61309         * modules/memxor (Makefile.am): Likewise.
61310         * modules/mkancesdirs (Makefile.am): Likewise.
61311         * modules/mkdir-p (Makefile.am): Likewise.
61312         * modules/mkdir (Makefile.am): Likewise.
61313         * modules/mkdtemp (Makefile.am): Likewise.
61314         * modules/mkstemp (Makefile.am): Likewise.
61315         * modules/mktime (Makefile.am): Likewise.
61316         * modules/modechange (Makefile.am): Likewise.
61317         * modules/mountlist (Makefile.am): Likewise.
61318         * modules/nanosleep (Makefile.am): Likewise.
61319         * modules/obstack (Makefile.am): Likewise.
61320         * modules/openat (Makefile.am): Likewise.
61321         * modules/pagealign_alloc (Makefile.am): Likewise.
61322         * modules/pathmax (Makefile.am): Likewise.
61323         * modules/physmem (Makefile.am): Likewise.
61324         * modules/poll (Makefile.am): Likewise.
61325         * modules/posixtm (Makefile.am): Likewise.
61326         * modules/posixver (Makefile.am): Likewise.
61327         * modules/putenv (Makefile.am): Likewise.
61328         * modules/quote (Makefile.am): Likewise.
61329         * modules/quotearg (Makefile.am): Likewise.
61330         * modules/raise (Makefile.am): Likewise.
61331         * modules/read-file (Makefile.am): Likewise.
61332         * modules/readline (Makefile.am): Likewise.
61333         * modules/readlink (Makefile.am): Likewise.
61334         * modules/readtokens (Makefile.am): Likewise.
61335         * modules/readutmp (Makefile.am): Likewise.
61336         * modules/realloc (Makefile.am): Likewise.
61337         * modules/regex (Makefile.am): Likewise.
61338         * modules/rename-dest-slash (Makefile.am): Likewise.
61339         * modules/rename (Makefile.am): Likewise.
61340         * modules/rijndael (Makefile.am): Likewise.
61341         * modules/rmdir (Makefile.am): Likewise.
61342         * modules/rpmatch (Makefile.am): Likewise.
61343         * modules/safe-read (Makefile.am): Likewise.
61344         * modules/safe-write (Makefile.am): Likewise.
61345         * modules/same-inode (Makefile.am): Likewise.
61346         * modules/same (Makefile.am): Likewise.
61347         * modules/save-cwd (Makefile.am): Likewise.
61348         * modules/savedir (Makefile.am): Likewise.
61349         * modules/setenv (Makefile.am): Likewise.
61350         * modules/settime (Makefile.am): Likewise.
61351         * modules/sha1 (Makefile.am): Likewise.
61352         * modules/sig2str (Makefile.am): Likewise.
61353         * modules/snprintf (Makefile.am): Likewise.
61354         * modules/stat-macros (Makefile.am): Likewise.
61355         * modules/stat-time (Makefile.am): Likewise.
61356         * modules/stdbool (Makefile.am): Likewise.
61357         * modules/stdint (Makefile.am): Likewise.
61358         * modules/stdlib-safer (Makefile.am): Likewise.
61359         * modules/stpcpy (Makefile.am): Likewise.
61360         * modules/stpncpy (Makefile.am): Likewise.
61361         * modules/strcase (Makefile.am): Likewise.
61362         * modules/strcasestr (Makefile.am): Likewise.
61363         * modules/strchrnul (Makefile.am): Likewise.
61364         * modules/strcspn (Makefile.am): Likewise.
61365         * modules/strdup (Makefile.am): Likewise.
61366         * modules/strerror (Makefile.am): Likewise.
61367         * modules/strftime (Makefile.am): Likewise.
61368         * modules/strndup (Makefile.am): Likewise.
61369         * modules/strnlen (Makefile.am): Likewise.
61370         * modules/strpbrk (Makefile.am): Likewise.
61371         * modules/strsep (Makefile.am): Likewise.
61372         * modules/strstr (Makefile.am): Likewise.
61373         * modules/strtod (Makefile.am): Likewise.
61374         * modules/strtoimax (Makefile.am): Likewise.
61375         * modules/strtok_r (Makefile.am): Likewise.
61376         * modules/strtol (Makefile.am): Likewise.
61377         * modules/strtoll (Makefile.am): Likewise.
61378         * modules/strtoul (Makefile.am): Likewise.
61379         * modules/strtoull (Makefile.am): Likewise.
61380         * modules/strtoumax (Makefile.am): Likewise.
61381         * modules/strverscmp (Makefile.am): Likewise.
61382         * modules/sys_socket (Makefile.am): Likewise.
61383         * modules/sys_stat (Makefile.am): Likewise.
61384         * modules/sysexits (Makefile.am): Likewise.
61385         * modules/time_r (Makefile.am): Likewise.
61386         * modules/timegm (Makefile.am): Likewise.
61387         * modules/timespec (Makefile.am): Likewise.
61388         * modules/tmpfile-safer (Makefile.am): Likewise.
61389         * modules/trim (Makefile.am): Likewise.
61390         * modules/unistd-safer (Makefile.am): Likewise.
61391         * modules/unlinkdir (Makefile.am): Likewise.
61392         * modules/unlocked-io (Makefile.am): Likewise.
61393         * modules/userspec (Makefile.am): Likewise.
61394         * modules/utime (Makefile.am): Likewise.
61395         * modules/utimecmp (Makefile.am): Likewise.
61396         * modules/utimens (Makefile.am): Likewise.
61397         * modules/vasnprintf (Makefile.am): Likewise.
61398         * modules/vasprintf (Makefile.am): Likewise.
61399         * modules/vsnprintf (Makefile.am): Likewise.
61400         * modules/xalloc (Makefile.am): Likewise.
61401         * modules/xgetcwd (Makefile.am): Likewise.
61402         * modules/xnanosleep (Makefile.am): Likewise.
61403         * modules/xreadlink (Makefile.am): Likewise.
61404         * modules/xstrtod (Makefile.am): Likewise.
61405         * modules/xstrtol (Makefile.am): Likewise.
61406         * modules/xstrtold (Makefile.am): Likewise.
61407         * modules/yesno (Makefile.am): Likewise.
61408         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61409
61410 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61411
61412         * modules/error (Makefile.am): Distribute files through
61413         EXTRA_DIST, not lib_SOURCES.
61414
61415 2006-10-12  Eric Blake  <ebb9@byu.net>
61416
61417         * modules/error (Makefile.am): Distribute files in /lib.
61418         * modules/obstack (Makefile.am): Likewise.
61419
61420 2006-10-12  Bruno Haible  <bruno@clisp.org>
61421
61422         * modules/acl (Makefile.am): Distribute all files in lib/ through
61423         EXTRA_DIST.
61424         * modules/arcfour (Makefile.am): Likewise.
61425         * modules/arctwo (Makefile.am): Likewise.
61426         * modules/argmatch (Makefile.am): Likewise.
61427         * modules/argz (Makefile.am): Likewise.
61428         * modules/atexit (Makefile.am): Likewise.
61429         * modules/backupfile (Makefile.am): Likewise.
61430         * modules/c-strtod (Makefile.am): Likewise.
61431         * modules/c-strtold (Makefile.am): Likewise.
61432         * modules/calloc (Makefile.am): Likewise.
61433         * modules/canon-host (Makefile.am): Likewise.
61434         * modules/canonicalize (Makefile.am): Likewise.
61435         * modules/chdir-long (Makefile.am): Likewise.
61436         * modules/chdir-safer (Makefile.am): Likewise.
61437         * modules/check-version (Makefile.am): Likewise.
61438         * modules/chown (Makefile.am): Likewise.
61439         * modules/cloexec (Makefile.am): Likewise.
61440         * modules/close-stream (Makefile.am): Likewise.
61441         * modules/closeout (Makefile.am): Likewise.
61442         * modules/crc (Makefile.am): Likewise.
61443         * modules/cycle-check (Makefile.am): Likewise.
61444         * modules/des (Makefile.am): Likewise.
61445         * modules/dirfd (Makefile.am): Likewise.
61446         * modules/dirname (Makefile.am): Likewise.
61447         * modules/dup2 (Makefile.am): Likewise.
61448         * modules/euidaccess (Makefile.am): Likewise.
61449         * modules/exclude (Makefile.am): Likewise.
61450         * modules/exitfail (Makefile.am): Likewise.
61451         * modules/fcntl-safer (Makefile.am): Likewise.
61452         * modules/file-type (Makefile.am): Likewise.
61453         * modules/fileblocks (Makefile.am): Likewise.
61454         * modules/filemode (Makefile.am): Likewise.
61455         * modules/filenamecat (Makefile.am): Likewise.
61456         * modules/fnmatch (Makefile.am): Likewise.
61457         * modules/fopen-safer (Makefile.am): Likewise.
61458         * modules/fpending (Makefile.am): Likewise.
61459         * modules/fprintftime (Makefile.am): Likewise.
61460         * modules/free (Makefile.am): Likewise.
61461         * modules/fsusage (Makefile.am): Likewise.
61462         * modules/ftruncate (Makefile.am): Likewise.
61463         * modules/fts (Makefile.am): Likewise.
61464         * modules/gc (Makefile.am): Likewise.
61465         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61466         * modules/getaddrinfo (Makefile.am): Likewise.
61467         * modules/getcwd (Makefile.am): Likewise.
61468         * modules/getdelim (Makefile.am): Likewise.
61469         * modules/getdomainname (Makefile.am): Likewise.
61470         * modules/getgroups (Makefile.am): Likewise.
61471         * modules/gethostname (Makefile.am): Likewise.
61472         * modules/gethrxtime (Makefile.am): Likewise.
61473         * modules/getline (Makefile.am): Likewise.
61474         * modules/getloadavg (Makefile.am): Likewise.
61475         * modules/getlogin_r (Makefile.am): Likewise.
61476         * modules/getopt (Makefile.am): Likewise.
61477         * modules/getpass (Makefile.am): Likewise.
61478         * modules/getpass-gnu (Makefile.am): Likewise.
61479         * modules/getsubopt (Makefile.am): Likewise.
61480         * modules/gettime (Makefile.am): Likewise.
61481         * modules/gettimeofday (Makefile.am): Likewise.
61482         * modules/getugroups (Makefile.am): Likewise.
61483         * modules/getusershell (Makefile.am): Likewise.
61484         * modules/glob (Makefile.am): Likewise.
61485         * modules/group-member (Makefile.am): Likewise.
61486         * modules/hard-locale (Makefile.am): Likewise.
61487         * modules/hash (Makefile.am): Likewise.
61488         * modules/hmac-md5 (Makefile.am): Likewise.
61489         * modules/hmac-sha1 (Makefile.am): Likewise.
61490         * modules/human (Makefile.am): Likewise.
61491         * modules/idcache (Makefile.am): Likewise.
61492         * modules/imaxabs (Makefile.am): Likewise.
61493         * modules/imaxdiv (Makefile.am): Likewise.
61494         * modules/inet_ntop (Makefile.am): Likewise.
61495         * modules/inet_pton (Makefile.am): Likewise.
61496         * modules/inttostr (Makefile.am): Likewise.
61497         * modules/isapipe (Makefile.am): Likewise.
61498         * modules/lchown (Makefile.am): Likewise.
61499         * modules/long-options (Makefile.am): Likewise.
61500         * modules/lstat (Makefile.am): Likewise.
61501         * modules/malloc (Makefile.am): Likewise.
61502         * modules/mathl (Makefile.am): Likewise.
61503         * modules/mbchar (Makefile.am): Likewise.
61504         * modules/md2 (Makefile.am): Likewise.
61505         * modules/md4 (Makefile.am): Likewise.
61506         * modules/md5 (Makefile.am): Likewise.
61507         * modules/memcasecmp (Makefile.am): Likewise.
61508         * modules/memchr (Makefile.am): Likewise.
61509         * modules/memcmp (Makefile.am): Likewise.
61510         * modules/memcoll (Makefile.am): Likewise.
61511         * modules/memcpy (Makefile.am): Likewise.
61512         * modules/memmem (Makefile.am): Likewise.
61513         * modules/memmove (Makefile.am): Likewise.
61514         * modules/mempcpy (Makefile.am): Likewise.
61515         * modules/memrchr (Makefile.am): Likewise.
61516         * modules/memset (Makefile.am): Likewise.
61517         * modules/memxor (Makefile.am): Likewise.
61518         * modules/mkancesdirs (Makefile.am): Likewise.
61519         * modules/mkdir (Makefile.am): Likewise.
61520         * modules/mkdir-p (Makefile.am): Likewise.
61521         * modules/mkdtemp (Makefile.am): Likewise.
61522         * modules/mkstemp (Makefile.am): Likewise.
61523         * modules/mktime (Makefile.am): Likewise.
61524         * modules/modechange (Makefile.am): Likewise.
61525         * modules/mountlist (Makefile.am): Likewise.
61526         * modules/nanosleep (Makefile.am): Likewise.
61527         * modules/openat (Makefile.am): Likewise.
61528         * modules/pagealign_alloc (Makefile.am): Likewise.
61529         * modules/physmem (Makefile.am): Likewise.
61530         * modules/poll (Makefile.am): Likewise.
61531         * modules/posixtm (Makefile.am): Likewise.
61532         * modules/posixver (Makefile.am): Likewise.
61533         * modules/putenv (Makefile.am): Likewise.
61534         * modules/quote (Makefile.am): Likewise.
61535         * modules/quotearg (Makefile.am): Likewise.
61536         * modules/raise (Makefile.am): Likewise.
61537         * modules/read-file (Makefile.am): Likewise.
61538         * modules/readline (Makefile.am): Likewise.
61539         * modules/readlink (Makefile.am): Likewise.
61540         * modules/readtokens (Makefile.am): Likewise.
61541         * modules/readutmp (Makefile.am): Likewise.
61542         * modules/realloc (Makefile.am): Likewise.
61543         * modules/regex (Makefile.am): Likewise.
61544         * modules/rename (Makefile.am): Likewise.
61545         * modules/rename-dest-slash (Makefile.am): Likewise.
61546         * modules/rijndael (Makefile.am): Likewise.
61547         * modules/rmdir (Makefile.am): Likewise.
61548         * modules/rpmatch (Makefile.am): Likewise.
61549         * modules/safe-read (Makefile.am): Likewise.
61550         * modules/safe-write (Makefile.am): Likewise.
61551         * modules/same (Makefile.am): Likewise.
61552         * modules/save-cwd (Makefile.am): Likewise.
61553         * modules/savedir (Makefile.am): Likewise.
61554         * modules/setenv (Makefile.am): Likewise.
61555         * modules/settime (Makefile.am): Likewise.
61556         * modules/sha1 (Makefile.am): Likewise.
61557         * modules/sig2str (Makefile.am): Likewise.
61558         * modules/snprintf (Makefile.am): Likewise.
61559         * modules/stdlib-safer (Makefile.am): Likewise.
61560         * modules/stpcpy (Makefile.am): Likewise.
61561         * modules/stpncpy (Makefile.am): Likewise.
61562         * modules/strcase (Makefile.am): Likewise.
61563         * modules/strcasestr (Makefile.am): Likewise.
61564         * modules/strchrnul (Makefile.am): Likewise.
61565         * modules/strcspn (Makefile.am): Likewise.
61566         * modules/strdup (Makefile.am): Likewise.
61567         * modules/strerror (Makefile.am): Likewise.
61568         * modules/strftime (Makefile.am): Likewise.
61569         * modules/strndup (Makefile.am): Likewise.
61570         * modules/strnlen (Makefile.am): Likewise.
61571         * modules/strpbrk (Makefile.am): Likewise.
61572         * modules/strsep (Makefile.am): Likewise.
61573         * modules/strstr (Makefile.am): Likewise.
61574         * modules/strtod (Makefile.am): Likewise.
61575         * modules/strtoimax (Makefile.am): Likewise.
61576         * modules/strtok_r (Makefile.am): Likewise.
61577         * modules/strtol (Makefile.am): Likewise.
61578         * modules/strtoll (Makefile.am): Likewise.
61579         * modules/strtoul (Makefile.am): Likewise.
61580         * modules/strtoull (Makefile.am): Likewise.
61581         * modules/strtoumax (Makefile.am): Likewise.
61582         * modules/strverscmp (Makefile.am): Likewise.
61583         * modules/time_r (Makefile.am): Likewise.
61584         * modules/timegm (Makefile.am): Likewise.
61585         * modules/tmpfile-safer (Makefile.am): Likewise.
61586         * modules/unistd-safer (Makefile.am): Likewise.
61587         * modules/unlinkdir (Makefile.am): Likewise.
61588         * modules/userspec (Makefile.am): Likewise.
61589         * modules/utime (Makefile.am): Likewise.
61590         * modules/utimecmp (Makefile.am): Likewise.
61591         * modules/utimens (Makefile.am): Likewise.
61592         * modules/vasnprintf (Makefile.am): Likewise.
61593         * modules/vasprintf (Makefile.am): Likewise.
61594         * modules/vsnprintf (Makefile.am): Likewise.
61595         * modules/xalloc (Makefile.am): Likewise.
61596         * modules/xgetcwd (Makefile.am): Likewise.
61597         * modules/xnanosleep (Makefile.am): Likewise.
61598         * modules/xreadlink (Makefile.am): Likewise.
61599         * modules/xstrtod (Makefile.am): Likewise.
61600         * modules/xstrtol (Makefile.am): Likewise.
61601         * modules/xstrtold (Makefile.am): Likewise.
61602         * modules/yesno (Makefile.am): Likewise.
61603
61604 2006-10-12  Jim Meyering  <jim@meyering.net>
61605
61606         * m4/getloadavg.m4: Revert the change below.
61607
61608         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61609         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61610         fail with a symlink, which is what coreutils' ./bootstrap now
61611         creates by default.
61612
61613 2006-10-12  Bruno Haible  <bruno@clisp.org>
61614
61615         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61616         mingw.
61617         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61618         MSVC and mingw explicitly.
61619
61620 2006-10-11  Simon Josefsson  <jas@extundo.com>
61621             Bruno Haible  <bruno@clisp.org>
61622
61623         Add support for multiple gnulib-tool invocations in the scope of a
61624         single configure.ac file.
61625         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61626         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61627         with the same contents as the _LIBADD variable.
61628         (func_emit_initmacro_start, func_emit_initmacro_end,
61629         func_emit_initmacro_done): New functions.
61630         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61631         gl_LIBOBJS and gl_LTLIBOBJS.
61632
61633 2006-10-11  Bruno Haible  <bruno@clisp.org>
61634
61635         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61636         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61637         autoreconf. Instead, invoke autopoint explicitly but move back the
61638         *.m4 files from gnulib.
61639
61640 2006-10-11  Bruno Haible  <bruno@clisp.org>
61641
61642         * gnulib-tool (func_usage): Make module names after --create-testdir
61643         optional.
61644         (func_create_testdir): If no module was specified, use nearly all
61645         modules.
61646
61647 2006-10-12  Jim Meyering  <jim@meyering.net>
61648
61649         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61650         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61651         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61652         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61653         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61654         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61655         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61656         (fts_set_stat_required): New function.
61657         (fts_open): Defer the calls to fts_stat, if possible or requested.
61658         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61659         into fts_stat itself.
61660         (fts_read): Perform any required (deferred) fts_stat call.
61661         (fts_build): Likewise, for the directory we're about to open and read.
61662         In the readdir loop, carefully decide whether each entry will require
61663         an eventual call to fts_stat, using dirent.d_type info if available.
61664         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61665         a command line argument into this function.  Update all callers.
61666         Map a return value of FTS_DOT to FTS_D for a command line argument.
61667         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61668         Thanks to Miklos Szeredi for his tenacity and for the initial
61669         bug report about "find" failing on a FUSE-based file system.
61670
61671         * lib/fts.c (fts_open): Use consistent indentation.
61672
61673 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61674
61675         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61676         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61677         reported by Jim Meyering.  All uses of cache variables renamed
61678         to match Autoconf's.
61679         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61680         the other one.
61681
61682         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61683         Fix misspelling in diagnostic.
61684
61685 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61686
61687         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61688         defined.  Problem reported by Matthew Woehlke.
61689
61690         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61691         Add support for Tandem NonStop R series.
61692         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61693         Use new macro.
61694
61695         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61696         (has_trailing_slash): Omit size arg; all callers changed.
61697         Omit 'inline', since it doesn't help performance and we'd
61698         need to configure it.
61699         Don't count //, ///, etc. as having a trailing slash.
61700         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61701         (rpl_rename_dest_slash): On failure, use rename's errno rather
61702         than (in some cases) an incorrect or junk errno.
61703         Simplify code by removing need to compute length; this does
61704         cause it to make two passes instead of one over the file name,
61705         but it's worth it.
61706
61707         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61708         change, since Autoconf's version may no longer be appropriate now
61709         that we are using CVS Autoconf's version.  Add support for Tandem.
61710
61711 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61712             Bruno Haible  <bruno@clisp.org>
61713
61714         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61715         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61716         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61717         gl_AC_TYPE_LONG_LONG.
61718
61719         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61720         instead of HAVE_LONG_LONG.
61721         * lib/printf-args.c (printf_fetchargs): Likewise.
61722         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61723         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61724         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61725         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61726         gl_AC_TYPE_LONG_LONG.
61727
61728 2006-10-11  Bruno Haible  <bruno@clisp.org>
61729
61730         * m4/longlong.m4: Add comments.
61731         * m4/ulonglong.m4: Likewise.
61732
61733 2006-10-10  Bruno Haible  <bruno@clisp.org>
61734
61735         Make it possible to #define stpcpy, strdup to aliases.
61736         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61737         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61738
61739 2006-10-10  Bruno Haible  <bruno@clisp.org>
61740
61741         Make it possible to #define gcd to an alias.
61742         * lib/gcd.c: Include config.h.
61743
61744 2006-10-10  Bruno Haible  <bruno@clisp.org>
61745
61746         Make it possible to #define c_isascii to an alias.
61747         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61748         defined. Undefine the macros before defining them, to avoid gcc
61749         warnings.
61750         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61751         define NO_C_CTYPE_MACROS early.
61752
61753 2006-10-10  Bruno Haible  <bruno@clisp.org>
61754
61755         Make it possible to #define set_program_name to an alias.
61756         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61757         ENABLE_RELOCATABLE early.
61758
61759 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61760
61761         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61762         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61763         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61764         More generally, don't assume that 64-bit signed int is available
61765         if unsigned int is, and vice versa.
61766         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61767         unsigned symbols, not on their signed counterparts.
61768         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61769         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61770         (UINT64_C, UINTMAX_C):
61771         Likewise.
61772         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61773         unsigned counterparts.
61774         (Have_long_long, Unsigned): New macros.
61775         (Int): Renamed from INT.
61776         (strtoimax): Use the new macros.
61777         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61778         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61779         * modules/inttypes (inttypes.h): Substitute
61780         HAVE_UNSIGNED_LONG_LONG_INT.
61781         * modules/stdint (stdint.h): Likewise.
61782         (Files): Add m4/ulonglong.m4.
61783
61784 2006-10-10  Bruno Haible  <bruno@clisp.org>
61785
61786         Fix a gcc -Wshadow warning.
61787         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
61788         to 'bucket'.
61789         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
61790         gl_linked_indexof_from_to): Likewise.
61791         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
61792         Likewise.
61793         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
61794         Likewise.
61795         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
61796         Reported by Eric Blake.
61797
61798 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
61799
61800         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
61801         for NetBSD.  Problem reported by Bruno Haible.
61802
61803 2006-10-09  Jim Meyering  <jim@meyering.net>
61804
61805         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
61806         Patch from Bruno Haible.
61807
61808 2006-10-09  Jim Meyering  <jim@meyering.net>
61809
61810         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
61811         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
61812         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
61813
61814 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61815
61816         Don't include <config.h> twice; this doesn't work in some cases,
61817         e.g., when config.h has "#define intmax_t long long int" and
61818         we include <config.h>, <inttypes.h>, <config.h> in that order.
61819         Problem reported by Matthew Woehlke in:
61820         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
61821         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
61822         * lib/fts-cycle.c: Don't include config.h.
61823         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
61824         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
61825         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
61826         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
61827         inttypes.h.
61828         * lib/xstrtoumax.c: Likewise.
61829         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
61830         __strtol and the like, so that this module is more like its siblings.
61831         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
61832         Remove; no longer needed now that we assume gnulib inttypes.h.
61833
61834 2006-10-08  Bruno Haible  <bruno@clisp.org>
61835
61836         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
61837         option.
61838
61839 2006-10-07  Jim Meyering  <jim@meyering.net>
61840
61841         * modules/inttypes (inttypes.h): Revert what seems to have been
61842         an inadvertent part of today's change: use "|", not "/" in the
61843         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
61844
61845 2006-10-07  Bruno Haible  <bruno@clisp.org>
61846
61847         * modules/sublist: New file.
61848
61849 2006-10-07  Bruno Haible  <bruno@clisp.org>
61850
61851         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
61852         * modules/argz (argz.h): Likewise.
61853         * modules/arpa_inet (arpa/inet.h): Likewise.
61854         * modules/byteswap (byteswap.h): Likewise.
61855         * modules/configmake (configmake.h): Likewise.
61856         * modules/fcntl (fcntl.h): Likewise.
61857         * modules/fnmatch (fnmatch.h): Likewise.
61858         * modules/getopt (getopt.h): Likewise.
61859         * modules/glob (glob.h): Likewise.
61860         * modules/inttypes (inttypes.h): Likewise.
61861         * modules/netinet_in (netinet/in.h): Likewise.
61862         * modules/poll (poll.h): Likewise.
61863         * modules/stdbool (stdbool.h): Likewise.
61864         * modules/stdint (stdint.h): Likewise.
61865         * modules/sys_select (sys/select.h): Likewise.
61866         * modules/sys_socket (sys/socket.h): Likewise.
61867         * modules/sys_stat (sys/stat.h): Likewise.
61868         * modules/sysexits (sysexits.h): Likewise.
61869         * modules/unistd (unistd.h): Likewise.
61870         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61871         Add a "DO NOT EDIT" comment to the generated file.
61872         (func_import): Likewise for gnulib-comp.m4.
61873
61874 2006-10-07  Bruno Haible  <bruno@clisp.org>
61875
61876         * lib/gl_sublist.h: New file.
61877         * lib/gl_sublist.c: New file.
61878
61879 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61880
61881         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
61882         name (relative to the original working directory) and the file
61883         name component (relative to the temporary working directory).  All
61884         callers changed.
61885         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
61886         * lib/mkdir-p.c (make_dir_parents): Likewise.
61887         * lib/mkdir-p.h (make_dir_parents): Likewise.
61888
61889 2006-10-06  Eric Blake  <ebb9@byu.net>
61890
61891         Define several macros for use by the clean-temp module.
61892         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
61893         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
61894         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
61895
61896         * lib/clean-temp.h (close_stream_temp): New declaration.
61897         * lib/clean-temp.c (includes): Pull in headers according to what
61898         other modules are in use.
61899         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
61900
61901 2006-10-06  Bruno Haible  <bruno@clisp.org>
61902
61903         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
61904         instead of fopen, fwriteerror.
61905
61906 2006-10-06  Bruno Haible  <bruno@clisp.org>
61907
61908         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
61909         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
61910         int.
61911         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
61912         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
61913         Return an error indicator.
61914         Suggested by Eric Blake.
61915
61916 2006-10-06  Bruno Haible  <bruno@clisp.org>
61917
61918         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
61919         Reported by Eric Blake.
61920
61921 2006-10-06  Bruno Haible  <bruno@clisp.org>
61922
61923         * modules/closeout (Description): Mention stderr too.
61924
61925 2006-10-06  Bruno Haible  <bruno@clisp.org>
61926         and Paul Eggert  <eggert@cs.ucla.edu>
61927
61928         * lib/closeout.c (close_stdout): Also close stderr.
61929         * lib/closeout.h: Update comment.
61930
61931 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61932
61933         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
61934         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
61935         * lib/dirchownmod.c: Include lchown.h.
61936         * lib/lchown.c: Don't include files that lchown.h now includes.
61937         Don't declare chown, since lchown.h now does that.
61938         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
61939         (lchown): Define to rpl_chown if lchown is declared but
61940         does not exist.  Declare using a prototype if lchown is not
61941         declared.  Add a copyright notice.
61942         * lib/mkstemp.h: Include <unistd.h>.
61943         * lib/openat.c: Include lchown.h.
61944
61945         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
61946         we now test for that separately.
61947         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
61948         rather than O_NOFOLLOW, when testing whether it's possible to
61949         avoid a race condition reliably.
61950         * lib/savewd.c (savewd_chdir): Likewise.
61951
61952         Remove macros that are no longer needed now that stdint.h is
61953         reliable.
61954         * lib/fsusage.c (UINTMAX_MAX): Remove.
61955         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
61956         * lib/utimecmp.c (SIZE_MAX): Remove.
61957
61958         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
61959
61960         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
61961         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
61962         O_NOATIME works.
61963
61964 2006-10-05  Bruno Haible  <bruno@clisp.org>
61965
61966         * lib/gl_list.h (gl_sortedlist_search_from_to,
61967         gl_sortedlist_indexof_from_to): New declarations.
61968         (gl_list_implementation): New fields sortedlist_search_from_to,
61969         sortedlist_indexof_from_to.
61970         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
61971         inline functions.
61972         * lib/gl_list.c (gl_sortedlist_search_from_to,
61973         gl_sortedlist_indexof_from_to): New functions.
61974         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
61975         function.
61976         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
61977         (gl_array_sortedlist_search_from_to): New function.
61978         (gl_array_list_implementation): Update.
61979         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
61980         function.
61981         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
61982         (gl_carray_sortedlist_search_from_to): New function.
61983         (gl_carray_list_implementation): Update.
61984         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
61985         gl_linked_sortedlist_indexof_from_to): New functions.
61986         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61987         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61988         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
61989         gl_tree_sortedlist_indexof_from_to): New functions.
61990         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61991         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61992         Update.
61993         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61994         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
61995         Update.
61996
61997 2006-10-05  Bruno Haible  <bruno@clisp.org>
61998
61999         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
62000         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
62001         (struct gl_list_implementation): Add fields search_from_to,
62002         indexof_from_to. Remove fields search, indexof.
62003         (gl_list_search): Use the search_from_to method.
62004         (gl_list_search_from, gl_list_search_from_to): New functions.
62005         (gl_list_indexof): Use the indexof_from_to method.
62006         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62007         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
62008         (gl_list_search_from, gl_list_search_from_to): New functions.
62009         (gl_list_indexof): Use the indexof_from_to method.
62010         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62011         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
62012         gl_array_indexof. Add start_index, end_index arguments.
62013         (gl_array_search_from_to): Renamed from gl_array_search. Add
62014         start_index, end_index arguments.
62015         (gl_array_remove, gl_array_list_implementation): Update.
62016         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
62017         gl_carray_indexof. Add start_index, end_index arguments.
62018         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
62019         start_index, end_index arguments.
62020         (gl_carray_remove, gl_carray_list_implementation): Update.
62021         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
62022         gl_linked_search. Add start_index, end_index arguments.
62023         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62024         start_index, end_index arguments.
62025         (gl_linked_remove): Update.
62026         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62027         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62028         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62029         field to 'size_t'.
62030         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
62031         gl_tree_search. Add start_index, end_index arguments.
62032         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62033         start_index, end_index arguments.
62034         (gl_tree_remove): Update.
62035         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62036         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62037         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
62038         function.
62039         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
62040         gl_tree_search. Add start_index, end_index arguments.
62041         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62042         start_index, end_index arguments.
62043         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62044         Update.
62045         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62046
62047 2006-10-05  Bruno Haible  <bruno@clisp.org>
62048
62049         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
62050
62051         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
62052         fwriteerror_temp): New declarations.
62053         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
62054         (descriptors): New variable.
62055         (cleanup): First, close the descriptors.
62056         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
62057         fclose_temp, fwriteerror_temp): New functions.
62058
62059 2006-10-04  Jim Meyering  <jim@meyering.net>
62060
62061         * lib/fts.c (fts_open): Tiny comment change.
62062
62063 2006-10-04  Bruno Haible  <bruno@clisp.org>
62064
62065         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
62066         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
62067         gl_LOCK_BODY.
62068         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
62069         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
62070         gl_LOCK_EARLY_BODY.
62071         (gl_LOCK): Require gl_LOCK_BODY.
62072
62073 2006-10-04  Bruno Haible  <bruno@clisp.org>
62074
62075         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
62076         (gl_oset_search_atleast): New declaration.
62077         (struct gl_oset_implementation): Add field 'search_atleast'.
62078         (gl_oset_search_atleast): New inline function.
62079         * lib/gl_oset.c (gl_oset_search_atleast): New function.
62080         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
62081         (gl_array_oset_implementation): Update.
62082         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
62083         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
62084         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
62085
62086 2006-10-04  Bruno Haible  <bruno@clisp.org>
62087
62088         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
62089
62090 2006-10-03  Bruno Haible  <bruno@clisp.org>
62091
62092         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
62093         from gl_avltreehash_list_implementation.
62094
62095 2006-10-03  Bruno Haible  <bruno@clisp.org>
62096
62097         * lib/gl_oset.c (gl_oset_add): Fix return type.
62098
62099 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
62100
62101         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
62102
62103 2006-10-02  Eric Blake  <ebb9@byu.net>
62104
62105         * modules/strnlen (Depends-on): Add extensions.
62106
62107 2006-10-02  Eric Blake  <ebb9@byu.net>
62108
62109         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
62110         definition in 2.60+.
62111
62112 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
62113
62114         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
62115         checks.
62116
62117 2006-10-02  Bruno Haible  <bruno@clisp.org>
62118
62119         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
62120         to the AUTOMAKE_OPTIONS.
62121         Reported by Jim Meyering.
62122
62123 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62124
62125         Work around bug in Solaris 10 /proc file system:
62126         /proc/self/fd/NNN/.. isn't the parent directory of
62127         the directory whose file descriptor is NNN.  This needs to
62128         be worked around at run time, not compile time, since a
62129         program might be built on Solaris 8, where things work, and
62130         run on Solaris 10.
62131         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
62132         to use the following interface instead:
62133         (OPENAT_BUFFER_SIZE): New macro.
62134         (openat_proc_name): New function.
62135         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
62136         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
62137         Likewise.
62138         * lib/openat-proc.c: New file.
62139         * modules/openat (Files): Add lib/openat-proc.c.
62140         (Depends-on): Add same-inode, stdbool.
62141         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
62142
62143 2006-09-29  Bruno Haible  <bruno@clisp.org>
62144
62145         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
62146         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
62147         argument. Set stdout_closed before testing for ferror, not after.
62148         (fwriteerror, fwriteerror_no_ebadf): New functions.
62149
62150 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62151
62152         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
62153
62154 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
62155
62156         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
62157         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
62158
62159 2006-09-28  Jim Meyering  <jim@meyering.net>
62160
62161         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
62162         Include <unistd.h>.
62163
62164 2006-09-28  Bruno Haible  <bruno@clisp.org>
62165
62166         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
62167         * modules/linkedhash-list (Depends-on): Likewise.
62168         * modules/rbtreehash-list (Depends-on): Likewise.
62169
62170 2006-09-28  Bruno Haible  <bruno@clisp.org>
62171
62172         * lib/strndup.h: Simplify the redefinition of strndup.
62173         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
62174         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
62175
62176 2006-09-28  Bruno Haible  <bruno@clisp.org>
62177
62178         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
62179         * lib/gl_linkedhash_list.c: Likewise.
62180         * lib/gl_rbtreehash_list.c: Likewise.
62181
62182 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62183
62184         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
62185         getaddrinfo.
62186
62187         * lib/__fpending.h: Don't include <stdio_ext.h> unless
62188         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
62189         it causes <stdio_ext.h> to cause a compile-time error.
62190         Problem reported by Nelson H. F. Beebe.
62191         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
62192         of HAVE_DECL___PENDING.
62193
62194         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
62195         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
62196         declaration.
62197
62198 2006-09-27  Jim Meyering  <jim@meyering.net>
62199
62200         This file could end up with a definition for a function
62201         named __strndup, rather than rpl_strndup on a system with
62202         incomplete weak_alias support.
62203         * lib/strndup.c (strndup): Rename from __strndup.
62204         Remove #defines that used to map __strndup to strndup.
62205         Don't use K&R prototypes.
62206         Remove LIBC-related code, since this file is not sync'd with glibc.
62207         * lib/strndup.h: Revamp, accordingly.
62208         * m4/strndup.m4: Modernize.
62209
62210 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62211
62212         * modules/savewd (Depends-on): Add 'raise'.
62213         * lib/savewd.c: Include <signal.h>, for 'raise'.
62214
62215 2006-09-26  Jim Meyering  <jim@meyering.net>
62216
62217         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62218         when we detect Darwin 8.7.0's acl_get_file bug.
62219         Rearrange to perform the new (below) run-test while $LIBS
62220         contains any acl-related library.  Set USE_ACL at the end.
62221         (gl_ACL_GET_FILE): New function.
62222
62223 2006-09-26  Eric Blake  <ebb9@byu.net>
62224
62225         * lib/verror.c: Include <config.h> unconditionally.
62226
62227 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62228
62229         * modules/clock-time (Maintainer): Add self.
62230         * modules/getlogin_r (Depends-on): Add extensions.
62231
62232 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62233
62234         * modules/clock-time: New module.
62235         * modules/nanosleep (Depends-on): Add clock-time.
62236         * modules/gethrxtime (Depends-on): Likewise.
62237         * modules/gettime (Depends-on): Likewise.
62238         * modules/settime (Depends-on): Likewise.
62239
62240         * modules/fts-lgpl: Depend on openat.
62241         * modules/mkancesdirs: Depend on savewd.
62242         * modules/mkdir-p: Likewise.
62243
62244 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62245
62246         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62247
62248         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62249         `gl_have_arbitrary_file_name_length_limit' to
62250         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62251         actually works between configure runs.
62252
62253 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62254             Bruno Haible  <bruno@clisp.org>
62255
62256         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62257
62258 2006-09-25  Jim Meyering  <jim@meyering.net>
62259
62260         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62261         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62262
62263 2006-09-25  Eric Blake  <ebb9@byu.net>
62264
62265         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62266         exec's in 2006-09-18 patch when shuffling fds.
62267
62268 2006-09-25  Bruno Haible  <bruno@clisp.org>
62269
62270         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62271         Reported by Jim Meyering.
62272
62273 2006-09-24  Jim Meyering  <jim@meyering.net>
62274
62275         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62276         compare a pointer against a literal "0".  That caused failures with
62277         at least HP-UX's hpcc.
62278
62279 2006-09-22  Simon Josefsson  <jas@extundo.com>
62280
62281         * modules/gc-sha1:
62282         * modules/gc-md4:
62283         * modules/gc-hmac-sha1:
62284         * modules/gc-hmac-md5:
62285         * modules/gc-des:
62286         * modules/gc-arcfour: Distribute more files.
62287
62288 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62289
62290         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62291         (gl_linked_iterator_from_to): Initialize struct completely.
62292         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62293         (gl_tree_iterator_from_to): Likewise
62294         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62295         * lib/gl_array_list.c [lint] (gl_array_iterator)
62296         (gl_array_iterator_from_to): Likewise.
62297         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62298         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62299         (gl_carray_iterator_from_to): Likewise.
62300
62301         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62302         * lib/md4.c (md4_process_block): Remove unused variable.
62303         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62304         parentheses for clarity.
62305
62306 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62307
62308         * modules/bison-i18n (Depends-on): Add gettext.
62309
62310 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62311
62312         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62313         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62314         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62315         also add missing comma that caused broken test.
62316         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62317         stdlib.h, for `abort'.
62318         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62319         variables.
62320         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62321         include unistd.h if present, for `rmdir'.
62322         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62323         variables.
62324         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62325         in the process include standard headers for prototypes.
62326         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62327         gets declared on GNU/Linux.
62328         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62329         unistd.h, for `rmdir'.
62330         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62331
62332         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62333         always true.
62334         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62335
62336         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62337
62338 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62339
62340         * gnulib-tool (func_version): Create output all at once.  This
62341         may help avoid triggering unnecessary SIGPIPEs, and at any
62342         rate it doesn't hurt.
62343
62344 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62345             Bruno Haible  <bruno@clisp.org>
62346
62347         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62348         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62349         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62350
62351         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62352         (gl_FUNC_VASPRINTF): Invoke it.
62353
62354 2006-09-22  Bruno Haible  <bruno@clisp.org>
62355
62356         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62357         getloadavg.c as first argument.
62358
62359 2006-09-22  Bruno Haible  <bruno@clisp.org>
62360
62361         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62362         at the beginning of the gl_INIT macro.
62363         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62364         gl_GETLOADAVG.
62365
62366 2006-09-22  Bruno Haible  <bruno@clisp.org>
62367
62368         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62369         module.
62370         Suggested by Ralf Wildenhues.
62371
62372 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62373
62374         Import this patch from libc:
62375
62376         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62377
62378         * lib/regex_internal.c (re_string_reconstruct): Handle
62379         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62380         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62381         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62382         re_string_context_at.
62383
62384         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62385         now requires it.
62386         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62387         gl_REGEX now does it for us.
62388         (gl_REGEX): Add test taken from
62389         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62390
62391         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62392         Check that large offsets work.  Modernize Autoconf usages.
62393         Prefer "yes" to mean a good thing rather than a bad.
62394         Don't put "#define mkstemp" in config.h, as this might interfere
62395         with standard system headers that "#define mkstemp mkstemp64".
62396
62397         * modules/mkstemp (Depends-on): Add extensions, so that
62398         mkstemp is visible on some platforms.
62399         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62400         (Include): Change to "mkstemp.h" from <stdlib.h>.
62401         (Files): Add mkstemp.h.
62402
62403         * lib/mkstemp.h: New file, since some standard headers
62404         #define mkstemp.
62405         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62406         Include "mkstemp.h".
62407         Make the _LIBC code resemble glibc original more,
62408         e.g., use K&R style.
62409         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62410         (mkstemp): Remove, since mkstemp.h does this for us.
62411         * lib/stdlib--.h: Include mkstemp.h.
62412
62413         Import this patch from libc:
62414
62415         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62416
62417         * lib/tempname.c (__gen_tempname): Change attempts_min
62418         into a macro.  Use preprocessor to decide how to initialize
62419         attempts [Coverity CID 67].
62420
62421 2006-09-20  Bruno Haible  <bruno@clisp.org>
62422
62423         * lib/mkdtemp.c: Import from libc.
62424         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62425                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62426                 attempts_min into a macro.  Use preprocessor to decide how to
62427                 initialize attempts [Coverity CID 67].
62428         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62429                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62430                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62431
62432 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62433
62434         * gnulib-tool (func_exit): New function, to allow to pass the
62435         exit status portably through the trap.  Use everywhere.
62436         (--help, --version): Signal a write error.
62437         (trap): catch SIGPIPE, for write errors.
62438         Exit at the end of the trap, with the correct exit status.
62439
62440 2006-09-19  Karl Berry  <karl@gnu.org>
62441
62442         * doc/gnulib.texi: note about the license texinfo files.
62443
62444 2006-09-19  Eric Blake  <ebb9@byu.net>
62445
62446         * gnulib-tool: Avoid space-tab.
62447
62448 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62449
62450         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62451         that prevented coreutils 6.1 from building.  Problem reported
62452         by Petter Reinholdtsen.
62453
62454 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62455
62456         * gnulib-tool (avoidlist): Fix typo that broke options like
62457         --avoid=lock that are used by coreutils bootstrap.
62458
62459 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62460
62461         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62462         more systematically.
62463
62464 2006-09-18  Jim Meyering  <jim@meyering.net>
62465
62466         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62467
62468 2006-09-18  Bruno Haible  <bruno@clisp.org>
62469
62470         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62471
62472 2006-09-18  Bruno Haible  <bruno@clisp.org>
62473
62474         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62475         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62476         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62477         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62478         * m4/gettext.m4: Require autoconf >= 2.52.
62479         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62480         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62481         of gl_cv_header_inttypes_h.
62482
62483 2006-09-18  Bruno Haible  <bruno@clisp.org>
62484
62485         * lib/javaversion.c: Include configmake.h.
62486
62487 2006-09-18  Bruno Haible  <bruno@clisp.org>
62488
62489         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62490         avoid that the while loops be executed in a subshell.
62491
62492 2006-09-18  Bruno Haible  <bruno@clisp.org>
62493
62494         * MODULES.html.sh (func_module): Break long lines.
62495         Suggested by Bruce Korb <bkorb@gnu.org>.
62496
62497 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62498
62499         Speed up by a factor of 1.12.
62500         * gnulib-tool (nl): New variable.
62501         (func_import): Rewrite include directive extraction to only read each
62502         directive once.
62503
62504 2006-09-17  Bruno Haible  <bruno@clisp.org>
62505
62506         * modules/javaversion (Makefile.am): Remove DEFS setting.
62507         (Depends-on): Add configmake, for PKGDATADIR definition.
62508
62509 2006-09-17  Bruno Haible  <bruno@clisp.org>
62510
62511         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62512
62513 2006-09-17  Bruno Haible  <bruno@clisp.org>
62514
62515         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62516         (func_modules_transitive_closure, func_modules_add_dummy,
62517         func_modules_to_filelist, func_import, func_create_testdir,
62518         func_create_megatestdir, ...): Use it wherever possible.
62519         Suggested by Ralf Wildenhues.
62520
62521 2006-09-16  Karl Berry  <karl@gnu.org>
62522
62523         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62524         to avoid sectioning errors.
62525         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62526         [ifinfo]: blank line after @center-ed titles.
62527         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62528         Spell FSF address consistently with others.
62529         (These changes approved by rms.)
62530
62531 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62532
62533         Speed up by a factor of 1.61.
62534         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62535         already checked module names again.
62536
62537 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62538
62539         Speed up by a factor of 1.13.
62540         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62541         for new_files, and the input to func_add_or_update.
62542
62543 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62544
62545         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62546         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62547
62548 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62549
62550         * modules/mkancesdirs (Depends-on): Add fcntl.
62551         * modules/savewd: New file.
62552         * MODULES.html.sh (File system functions): Add savewd.
62553
62554         * modules/configmake (Makefile.am): Add support for the
62555         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62556
62557 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62558
62559         * m4/savewd.m4: New file.
62560
62561 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62562
62563         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62564         (dirchownmod): New arg FD.  All callers changed.
62565         Use FD rather than opening the directory ourself, as opening is
62566         now the caller's responsibility.
62567         * lib/dirchownmod.h: Likewise.
62568         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62569         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62570         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62571         (test_dir): Remove.
62572         (mkancesdirs): Return length of prefix of FILE that has already
62573         been made, or -2 if there is a child doing the work.  Redo
62574         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62575         ".", and treat ".." specially since it might stray back into
62576         already-created areas.  Use a subprocess if necessary.  New arg
62577         WD; all users changed.  MAKE_DIR function should now return 1
62578         if it creates a directory that is not readable.  Return -2 if
62579         a child process is spun off.
62580         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62581         Adjust signature to match code.
62582         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62583         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62584         all users changed.
62585         * lib/savewd.c, lib/savewd.h: New files.
62586
62587 2006-09-15  Jim Meyering  <jim@meyering.net>
62588
62589         * modules/rename-dest-slash: New module.
62590         * MODULES.html.sh (posix_compat): Add it here.
62591
62592         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62593
62594 2006-09-15  Jim Meyering  <jim@meyering.net>
62595
62596         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62597         file.
62598
62599         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62600
62601 2006-09-15  Jim Meyering  <jim@meyering.net>
62602
62603         * lib/rename-dest-slash.c (has_trailing_slash): Use
62604         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62605         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62606         test before testing whether SRC is a directory.
62607         Suggestions from Bruno Haible.
62608
62609         Avoid a warning about an unused variable.
62610         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62611         into the #ifdef block where it's used.
62612
62613         * lib/rename-dest-slash.c: New file.
62614
62615 2006-09-14  Bruno Haible  <bruno@clisp.org>
62616
62617         * lib/allocsa.c: Include <config.h> unconditionally.
62618         * lib/asnprintf.c: Likewise.
62619         * lib/asprintf.c: Likewise.
62620         * lib/c-strcasecmp.c: Likewise.
62621         * lib/c-strcasestr.c: Likewise.
62622         * lib/c-strncasecmp.c: Likewise.
62623         * lib/c-strstr.c: Likewise.
62624         * lib/classpath.c: Likewise.
62625         * lib/clean-temp.c: Likewise.
62626         * lib/concatpath.c: Likewise.
62627         * lib/copy-file.c: Likewise.
62628         * lib/csharpcomp.c: Likewise.
62629         * lib/csharpexec.c: Likewise.
62630         * lib/execute.c: Likewise.
62631         * lib/fatal-signal.c: Likewise.
62632         * lib/findprog.c: Likewise.
62633         * lib/fwriteerror.c: Likewise.
62634         * lib/gl_array_list.c: Likewise.
62635         * lib/gl_array_oset.c: Likewise.
62636         * lib/gl_avltree_list.c: Likewise.
62637         * lib/gl_avltree_oset.c: Likewise.
62638         * lib/gl_avltreehash_list.c: Likewise.
62639         * lib/gl_carray_list.c: Likewise.
62640         * lib/gl_linked_list.c: Likewise.
62641         * lib/gl_linkedhash_list.c: Likewise.
62642         * lib/gl_list.c: Likewise.
62643         * lib/gl_oset.c: Likewise.
62644         * lib/gl_rbtree_list.c: Likewise.
62645         * lib/gl_rbtree_oset.c: Likewise.
62646         * lib/gl_rbtreehash_list.c: Likewise.
62647         * lib/imaxabs.c: Likewise.
62648         * lib/imaxdiv.c: Likewise.
62649         * lib/javacomp.c: Likewise.
62650         * lib/javaexec.c: Likewise.
62651         * lib/javaversion.c: Likewise.
62652         * lib/linebreak.c: Likewise.
62653         * lib/localcharset.c: Likewise.
62654         * lib/lock.c: Likewise.
62655         * lib/mbchar.c: Likewise.
62656         * lib/mbswidth.c: Likewise.
62657         * lib/mkdtemp.c: Likewise.
62658         * lib/pipe.c: Likewise.
62659         * lib/printf-args.c: Likewise.
62660         * lib/printf-parse.c: Likewise.
62661         * lib/progname.c: Likewise.
62662         * lib/progreloc.c: Likewise.
62663         * lib/readlink.c: Likewise.
62664         * lib/sh-quote.c: Likewise.
62665         * lib/stpcpy.c: Likewise.
62666         * lib/stpncpy.c: Likewise.
62667         * lib/strcasecmp.c: Likewise.
62668         * lib/strcasestr.c: Likewise.
62669         * lib/strcspn.c: Likewise.
62670         * lib/striconv.c: Likewise.
62671         * lib/strncasecmp.c: Likewise.
62672         * lib/strnlen1.c: Likewise.
62673         * lib/strstr.c: Likewise.
62674         * lib/strtok_r.c: Likewise.
62675         * lib/tls.c: Likewise.
62676         * lib/tmpdir.c: Likewise.
62677         * lib/unicodeio.c: Likewise.
62678         * lib/unsetenv.c: Likewise.
62679         * lib/vasnprintf.c: Likewise.
62680         * lib/vasprintf.c: Likewise.
62681         * lib/wait-process.c: Likewise.
62682         * lib/xallocsa.c: Likewise.
62683         * lib/xsetenv.c: Likewise.
62684         * lib/xstriconv.c: Likewise.
62685
62686 2006-09-13  Simon Josefsson  <jas@extundo.com>
62687
62688         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62689         that internally, suggested by Ralf Wildenhues
62690         <Ralf.Wildenhues@gmx.de>.
62691
62692 2006-09-13  Simon Josefsson  <jas@extundo.com>
62693
62694         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62695         @LIBOBJS@.
62696         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62697
62698 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62699
62700         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62701         longer worry about uses that don't define HAVE_CONFIG_H.
62702         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62703         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62704         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62705         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62706         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62707         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62708         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62709         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62710         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62711         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62712         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62713         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62714         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62715         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62716         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62717         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62718         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62719         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62720         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62721         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62722         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62723         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62724         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62725         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62726         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62727         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62728         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62729         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62730         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62731         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62732         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62733         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62734         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62735         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62736         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62737         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62738         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62739         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62740         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62741         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62742         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62743         Likewise.
62744
62745 2006-09-13  Eric Blake  <ebb9@byu.net>
62746
62747         * lib/getopt.c: Fix typo in last commit.
62748
62749 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62750
62751         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62752         dgettext.
62753
62754 2006-09-12  Jim Meyering  <jim@meyering.net>
62755
62756         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62757         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62758         Reported by Nelson H. F. Beebe.
62759
62760 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62761
62762         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62763         program_invocation_name and program_invocation_short_name are
62764         initialized.
62765         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62766         and program_invocation_short_name to argp.h, so they are visible
62767         to user programs.
62768         * lib/argp.h: Likewise
62769
62770 2006-09-10  Bruno Haible  <bruno@clisp.org>
62771
62772         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62773         m4/inttypes_h.m4, m4/uintmax_t.m4.
62774
62775 2006-09-10  Bruno Haible  <bruno@clisp.org>
62776
62777         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62778         gl_AC_TYPE_UINTMAX_T.
62779
62780 2006-09-10  Bruno Haible  <bruno@clisp.org>
62781
62782         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
62783
62784 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62785
62786         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
62787         convention.  Text proposed by Bruno Haible.
62788         (struct argp_option): Document the use of N_() wrappers.
62789
62790         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
62791         '\v', and translate the two parts separately, instead of feeding
62792         the whole string to gettext.  This allows to exclude
62793         '\v' from the strings visible to the translator by writing doc
62794         strings as N_("..") "\v" N_("..").
62795
62796 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
62797
62798         * config/srclist.txt: Undo latest change; the bug was fixed.
62799
62800 2006-09-09  Bruno Haible  <bruno@clisp.org>
62801
62802         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
62803         assignments if building a library without libtool.
62804         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
62805         in func_emit_lib_Makefile_am.
62806         (func_import): When building a static library libfoo.a, arrange to
62807         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
62808         (func_create_testdir): Likewise.
62809         * modules/gc (configure.ac, Makefile.am): If building statically,
62810         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
62811         * modules/iconvme (configure.ac, Makefile.am): Likewise.
62812         * modules/striconv (configure.ac, Makefile.am): Likewise.
62813         Based on a suggestion by Ralf Wildenhues.
62814
62815 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62816
62817         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62818         Check for unistd.h too, since Autoconf doesn't assume POSIX.
62819         Also:
62820
62821         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62822         Add year_2050_test to catch glibc bug 2821
62823         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62824
62825         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62826         Prefer #ifdef to #if.
62827
62828         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
62829         Return from 'main' instead of calling 'exit'.
62830
62831 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62832
62833         * lib/mktime.c (guess_time_tm): Fix bug where mktime
62834         returned the maximum time_t value rather than (time_t) -1.
62835         Problem originally reported by William Bardwell
62836         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62837
62838         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62839         Moved to here ...
62840         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62841         ... from here.
62842
62843 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
62846         2821 is fixed.
62847
62848 2006-09-08  Jim Meyering  <jim@meyering.net>
62849
62850         Don't make generated files read-only.  That would bother too many
62851         people.  However, do retain the ability to work when targets are
62852         read-only: remove the destination and temporary files before writing
62853         them (when generated via sed or echo), or by using the -f option for
62854         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
62855         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62856         * modules/byteswap, modules/configmake, modules/fcntl:
62857         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62858         * modules/localcharset, modules/netinet_in, modules/poll:
62859         * modules/stdbool, modules/stdint, modules/sys_select:
62860         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62861
62862 2006-09-08  Jim Meyering  <jim@meyering.net>
62863
62864         Avoid new build failure on FreeBSD 6.0.
62865         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
62866         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
62867         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
62868
62869 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62870
62871         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
62872
62873 2006-09-07  Jim Meyering  <jim@meyering.net>
62874
62875         Fix global typo in last change: use chmod u-w, not chmod u-x.
62876         Spotted by Paul Eggert and Bruce Korb.
62877         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62878         * modules/byteswap, modules/configmake, modules/fcntl:
62879         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62880         * modules/localcharset, modules/netinet_in, modules/poll:
62881         * modules/stdbool, modules/stdint, modules/sys_select:
62882         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62883
62884 2006-09-06  Jim Meyering  <jim@meyering.net>
62885
62886         Make generated files be read-only.
62887         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
62888         Ensure that each generated file is now read-only.
62889         * modules/argz: Likewise.
62890         * modules/arpa_inet: Likewise.
62891         * modules/byteswap: Likewise.
62892         * modules/configmake: Likewise.
62893         * modules/fcntl: Likewise.
62894         * modules/fnmatch: Likewise.
62895         * modules/getopt: Likewise.
62896         * modules/glob: Likewise.
62897         * modules/inttypes: Likewise.
62898         * modules/netinet_in: Likewise.
62899         * modules/poll: Likewise.
62900         * modules/stdbool: Likewise.
62901         * modules/stdint: Likewise.
62902         * modules/sys_select: Likewise.
62903         * modules/sys_socket: Likewise.
62904         * modules/sys_stat: Likewise.
62905         * modules/sysexits: Likewise.
62906         * modules/localcharset: Same as above, but continue using temporary
62907         file named "t-$@" (why different?) rather than the "$@-t" used
62908         everywhere else.
62909
62910         * modules/sysexits (Makefile.am): Replace literal occurrences
62911         of "sysexit.h" more readable, and more consistent, "$@".
62912
62913 2006-09-06  Bruno Haible  <bruno@clisp.org>
62914
62915         * modules/striconv: New file.
62916         * modules/xstriconv: New file.
62917         * MODULES.html.sh (Internationalization functions): Add striconv,
62918         xstriconv.
62919
62920 2006-09-06  Bruno Haible  <bruno@clisp.org>
62921
62922         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
62923         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
62924         not using libtool correctly.
62925
62926 2006-09-06  Bruno Haible  <bruno@clisp.org>
62927
62928         * lib/striconv.h: New file.
62929         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
62930         iconvstring.c.
62931         * lib/xstriconv.h: New file.
62932         * lib/xstriconv.c: New file.
62933
62934 2006-09-06  Bruno Haible  <bruno@clisp.org>
62935
62936         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62937         lib_..._LDFLAGS.
62938
62939 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62940
62941         * lib/argz_.h: Sync from Libtool.
62942
62943         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
62944                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62945
62946         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
62947
62948 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62949
62950         * modules/trim: New file.
62951
62952 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62953
62954         * lib/trim.h: New file.
62955         * lib/trim.c: New file.
62956
62957 2006-09-05  Bruno Haible  <bruno@clisp.org>
62958
62959         * MODULES.html.sh (String handling): Add trim.
62960
62961 2006-09-04  Karl Berry  <karl@gnu.org>
62962
62963         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
62964         until next release.
62965
62966 2006-09-03  Bruno Haible  <bruno@clisp.org>
62967
62968         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
62969         correctly.
62970
62971 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62972
62973         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
62974         not gl_GETLOADAVG.  Omit unneeded semicolons.
62975         Problems reported by Ralf Wildenhues in
62976         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62977         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
62978         at the end, which is the usual gnulib style.
62979
62980         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
62981         of doing all the work ourselves.
62982         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
62983         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
62984
62985 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62986
62987         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
62988         Problem reported by Ralf Wildenhues in
62989         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62990
62991         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
62992         HAVE_STRUCT_STATFS_F_FSTYPENAME.
62993
62994 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62995
62996         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
62997         yesterday's patch by changing test -n to test -z.
62998
62999 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63000
63001         * modules/getloadavg (Files): Add m4/getloadavg.m4.
63002         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
63003         the former is now obsolescent.
63004
63005         * modules/chdir-long (Depends-on): Add fcntl.
63006
63007 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63008
63009         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
63010         obsolescent, and programs should use gnulib instead.
63011         * m4/getloadavg.m4: New file, with contents taken from Autoconf
63012         but with prefixes changed.
63013
63014 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63015
63016         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
63017         or stdbool.h, because they might not exist while configuring.
63018
63019         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
63020         Don't include unistd.h or limits.h; not needed, since chdir-long.h
63021         does that for us.
63022         (O_DIRECTORY): Remove.
63023
63024 2006-08-31  Eric Blake  <ebb9@byu.net>
63025
63026         * gnulib-tool: Don't let emacs change spaces to TAB.
63027
63028 2006-08-31  Bruno Haible  <bruno@clisp.org>
63029
63030         * gnulib-tool: When calling func_import more than once, do it in a
63031         subshell.
63032         Reported by Eric Blake <ebb9@byu.net>.
63033
63034 2006-08-31  Bruno Haible  <bruno@clisp.org>
63035
63036         * gnulib-tool (nl): Remove variable.
63037         (sed_transform_lib_file): Use more robust test for config-h module.
63038         (func_import): Fix typo in 2006-08-25 patch.
63039
63040 2006-08-31  Bruno Haible  <bruno@clisp.org>
63041
63042         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
63043         specified, augment Makefile.am variables instead of assigning them.
63044
63045 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63046
63047         Work around a bug in both the Linux and SunOS 64-bit kernels:
63048         nanosleep mishandles sleeps for longer than 2**31 seconds.
63049         Problem reported by Frank v Waveren in
63050         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63051         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
63052         Check for nanosleep bug.
63053         (LIB_NANOSLEEP): Append clock_gettime library if needed.
63054
63055 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63056
63057         Work around a bug in both the Linux and SunOS 64-bit kernels:
63058         nanosleep mishandles sleeps for longer than 2**31 seconds.
63059         Problem reported by Frank v Waveren in
63060         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63061         * lib/nanosleep.c (BILLION): New constant.
63062         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
63063         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
63064         implementation.
63065
63066 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63067
63068         * modules/nanosleep (Depends-on): Add gettime.
63069
63070 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63071         and Simon Josefsson  <jas@extundo.com>
63072         and Oskar Liljeblad  <oskar@osk.mine.nu>
63073
63074         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
63075         * gnulib-tool (func_import): New license type 'unmodifiable license
63076         text'.
63077         * modules/fdl: Use it.  Longer description.
63078         * module/gpl, module/lgpl: New files.
63079
63080 2006-08-30  Jim Meyering  <jim@meyering.net>
63081
63082         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
63083         shadowing the parameter.
63084
63085 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63086
63087         Sync from Libtool:
63088
63089         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63090
63091         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
63092         sharing with gnulib.  Report by Eric Blake.
63093
63094 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63095
63096         * modules/isapipe: New file.
63097         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
63098
63099 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63100
63101         * modules/configmake (Makefile.am): Add a comment, and omit
63102         the CONFIGMAKE_ prefix from generated macro names.  Suggested
63103         by Bruno Haible.
63104
63105 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63106
63107         * m4/isapipe.m4: New file.
63108
63109 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63110
63111         * lib/isapipe.c, lib/isapipe.h: New files.
63112
63113 2006-08-29  Jim Meyering  <jim@meyering.net>
63114
63115         * modules/configmake (Makefile.am): Make configmake.h depend on
63116         Makefile.  Otherwise, a stale configmake.h could hang around.
63117
63118 2006-08-29  Eric Blake  <ebb9@byu.net>
63119
63120         * lib/error.c (error_at_line, print_errno_message): Match libc, after
63121         resolution of upstream bug 3044.
63122
63123 2006-08-29  Bruno Haible  <bruno@clisp.org>
63124
63125         * modules/localcharset (Depends-on): Add configmake.
63126         (Makefile.am): Remove setting of LIBDIR through DEFS.
63127
63128 2006-08-29  Bruno Haible  <bruno@clisp.org>
63129
63130         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
63131         defined.
63132
63133 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63134
63135         * modules/fcntl: New file.
63136         * modules/chdir-safer (Depends-on): Add fcntl.
63137         * modules/fts: Likewise.
63138         * modules/mkdir-p: Likewise.
63139
63140         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
63141         This undoes the most recent change, since we're now addressing the
63142         problem in a different way.
63143
63144         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
63145         into output, since the output might be called Makefile.am even
63146         if $makefile_name is something different.
63147         (func_import): Use $makefile_am rather than
63148         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
63149         empty.
63150
63151         * modules/inttypes (Files): Add m4/inttypes-h.m4.
63152
63153 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63154
63155         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
63156         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
63157         recent change to stdint.m4, since we're now addressing the problem in a
63158         different way.
63159
63160 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63161
63162         * m4/fcntl_h.m4: New file.
63163
63164 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63165
63166         * lib/fcntl_.h: New file.
63167         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
63168         the fcntl module.
63169         * lib/dirchownmod.c: Likewise.
63170         * lib/fts.c: Likewise.
63171
63172         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
63173         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
63174         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
63175         just before including <inttypes.h>, to avoid circular inclusion.
63176
63177 2006-08-28  Jim Meyering  <jim@meyering.net>
63178
63179         * doc/visibility.texi: Actually read and correct the grammar of the
63180         sentence affected by yesterday's change.
63181
63182 2006-08-28  Eric Blake  <ebb9@byu.net>
63183
63184         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
63185         needs wrapper.
63186
63187 2006-08-28  Eric Blake  <ebb9@byu.net>
63188
63189         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
63190
63191 2006-08-28  Eric Blake  <ebb9@byu.net>
63192
63193         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
63194
63195 2006-08-28  Bruno Haible  <bruno@clisp.org>
63196
63197         * modules/c-strstr: New file, from GNU gettext.
63198         * MODULES.html.sh (String handling): Add c-strstr.
63199
63200 2006-08-28  Bruno Haible  <bruno@clisp.org>
63201
63202         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
63203         macros.
63204         Reported by Eric Blake.
63205
63206 2006-08-28  Bruno Haible  <bruno@clisp.org>
63207
63208         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63209         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63210         * lib/vasprintf.c: Include errno.h, limits.h.
63211         (EOVERFLOW): New fallback definition.
63212         (vasprintf): Test here whether the string length is > INT_MAX.
63213         * lib/vsnprintf.c: Include errno.h, limits.h.
63214         (EOVERFLOW): New fallback definition.
63215         (vsnprintf): Fix bug when generated string was too long for the buffer.
63216         Test here whether the string length is > INT_MAX.
63217
63218 2006-08-28  Bruno Haible  <bruno@clisp.org>
63219
63220         * lib/inttypes_.h (SCNX*): Remove definitions.
63221         Reported by Eric Blake.
63222
63223 2006-08-28  Bruno Haible  <bruno@clisp.org>
63224
63225         * lib/c-strstr.h: New file, from GNU gettext.
63226         * lib/c-strstr.c: New file, from GNU gettext.
63227
63228 2006-08-28  Bruno Haible  <bruno@clisp.org>
63229
63230         * gnulib-tool: Reorder some statements.
63231
63232 2006-08-28  Bruno Haible  <bruno@clisp.org>
63233
63234         * gnulib-tool: New option --makefile-name.
63235         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63236         $makefile_name.
63237         (func_import): Write $makefile_name to the cache file, and read it from
63238         there unless explicitly specified. Use $makefile_name as file name
63239         instead of Makefile.am. Adjust the recommendations accordingly.
63240
63241 2006-08-28  Bruno Haible  <bruno@clisp.org>
63242
63243         * gnulib-tool (func_verify_module): Check against misapplying patch.
63244
63245 2006-08-28  Bruno Haible  <bruno@clisp.org>
63246
63247         * gnulib-tool (func_relativize, func_relconcat): New functions.
63248         Give an error if --local-dir is given with --update.
63249         Remove trailing slashes from $local_gnulib_dir.
63250         (func_import): Store the relativized $local_gnulib_dir in
63251         gnulib-cache.m4, and read it from there if not specified explicitly.
63252
63253 2006-08-28  Bruno Haible  <bruno@clisp.org>
63254
63255         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63256         is the current directory. Respect also $local_gnulib_dir.
63257
63258 2006-08-28  Bruno Haible  <bruno@clisp.org>
63259             Simon Josefsson  <jas@extundo.com>
63260
63261         BeOS portability.
63262         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63263
63264 2006-08-27  Jim Meyering  <jim@meyering.net>
63265
63266         * doc/visibility.texi: Remove duplicate word: "pointer".
63267
63268 2006-08-26  Bruno Haible  <bruno@clisp.org>
63269
63270         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63271         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63272         (Makefile.am): Create inttypes.h from inttypes_.h.
63273         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63274
63275         * modules/imaxabs: New file.
63276
63277         * modules/imaxdiv: New file.
63278
63279 2006-08-26  Bruno Haible  <bruno@clisp.org>
63280
63281         * m4/inttypes.m4: New file.
63282         * m4/_inttypes_h.m4: Remove file.
63283         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63284         PRI_MACROS_BROKEN.
63285         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63286
63287         * m4/imaxabs.m4: New file.
63288
63289         * m4/imaxdiv.m4: New file.
63290
63291 2006-08-26  Bruno Haible  <bruno@clisp.org>
63292
63293         * lib/inttypes_.h: New file.
63294         * lib/inttypes.h: Remove file.
63295         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63296
63297         * lib/imaxabs.c: New file.
63298
63299         * lib/imaxdiv.c: New file.
63300
63301 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63302
63303         New config-h module, so that "make" output needn't be cluttered
63304         by -DHAVE_CONFIG_H.
63305         * MODULES.html.sh (Support for building libraries and executables):
63306         Add config-h.
63307         * modules/config-h: New file.
63308         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63309         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63310         the config-h module is used.
63311
63312         New configmake module, so that "make" output needn't be cluttered
63313         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63314         * MODULES.html.sh (Support for building libraries and executables):
63315         Add configmake.
63316         * modules/configmake: New file.
63317
63318 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63319
63320         * m4/config-h.m4: New file.
63321
63322 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63323
63324         * config/srclist.txt: Add elisp-comp.
63325
63326 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63327
63328         * MODULES.html.sh (Support for building libraries and executables):
63329         Add elisp-comp.
63330         * build-aux/elisp-comp: New file.
63331         * modules/elisp-comp: New file.
63332
63333 2006-08-24  Bruno Haible  <bruno@clisp.org>
63334
63335         * gnulib-tool (func_create_testdir): Use non-default values of
63336         sourcebase and m4base.
63337
63338 2006-08-24  Bruno Haible  <bruno@clisp.org>
63339
63340         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63341         HTML structure.
63342
63343 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63344
63345         * modules/openat (Depends-on): Add lchown.
63346
63347 2006-08-23  Bruno Haible  <bruno@clisp.org>
63348
63349         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63350         of gl_LOCK_EARLY instead of gl_LOCK.
63351
63352 2006-08-23  Bruno Haible  <bruno@clisp.org>
63353
63354         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63355         on OSF/1 to no.
63356         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63357
63358 2006-08-23  Bruno Haible  <bruno@clisp.org>
63359
63360         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63361         as unusable.
63362
63363         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63364         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63365         (gl_LOCK): New macro.
63366
63367 2006-08-22  Simon Josefsson  <jas@extundo.com>
63368
63369         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63370         to md5 module.
63371
63372 2006-08-22  Simon Josefsson  <jas@extundo.com>
63373
63374         * MODULES.html.sh: Add "Support for maintaining and release
63375         projects".
63376
63377         * build-aux/gnupload: New file, from coreutils.
63378
63379 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63380
63381         Avoid the need for AC_LIBSOURCES in m4 macros.
63382         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63383         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63384         * modules/check-version (EXTRA_DIST): Add check-version.h.
63385         * modules/crc (EXTRA_DIST): Add crc.h.
63386         * modules/des (EXTRA_DIST): Add des.h.
63387         * modules/gc (EXTRA_DIST): Add gc.h.
63388         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63389         * modules/getline (EXTRA_DIST): Add getline.h.
63390         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63391         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63392         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63393         * modules/md2 (EXTRA_DIST): Add md2.h.
63394         * modules/md4 (EXTRA_DIST): Add md4.h.
63395         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63396         * modules/read-file (EXTRA_DIST): Add read-file.h.
63397         * modules/readline (EXTRA_DIST): Add readline.h.
63398         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63399         rijndael-api-fst.h.
63400
63401 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63402
63403         * m4/rijndael.m4 (gl_ARCFOUR):
63404         * m4/arctwo.m4 (gl_ARCTWO):
63405         * m4/check-version.m4 (gl_CHECK_VERSION):
63406         * m4/crc.m4 (gl_CRC):
63407         * m4/des.m4 (gl_DES):
63408         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63409         * m4/gc.m4 (gl_GC):
63410         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63411         * m4/getline.m4 (gl_FUNC_GETLINE):
63412         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63413         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63414         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63415         * m4/md2.m4 (gl_MD2):
63416         * m4/md4.m4 (gl_MD4):
63417         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63418         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63419         * m4/readline.m4 (gl_FUNC_READLINE):
63420         * m4/rijndael.m4 (gl_RIJNDAEL):
63421         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63422         to get the necessary .h files and whatnot.
63423
63424 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63425
63426         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63427         gnulib rather than the other way around.
63428         * config/srclistvars.sh (COREUTILS): Remove.
63429
63430 2006-08-22  Jim Meyering  <jim@meyering.net>
63431
63432         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63433
63434         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63435
63436 2006-08-22  Eric Blake  <ebb9@byu.net>
63437
63438         * modules/regexprops-generic: New file.
63439         * MODULES.html.sh (Support for building documentation): List it.
63440
63441 2006-08-22  Eric Blake  <ebb9@byu.net>
63442
63443         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63444         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63445         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63446         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63447
63448 2006-08-22  Bruno Haible  <bruno@clisp.org>
63449
63450         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63451         and lib_LTLIBRARIES like the other lib_* variables.
63452
63453 2006-08-22  Bruno Haible  <bruno@clisp.org>
63454
63455         * build-aux/x-to-1.in: New file, from GNU gettext.
63456
63457 2006-08-22  Bruno Haible  <bruno@clisp.org>
63458
63459         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63460         <utmpx.h> exists.
63461
63462 2006-08-22  Bruno Haible  <bruno@clisp.org>
63463
63464         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63465         <utmpx.h> exists.
63466
63467 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63468
63469         BeOS portability.
63470         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63471         exist.
63472         Problem reported by Bruno Haible.
63473
63474 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63475
63476         Avoid the need for AC_LIBSOURCES in m4 macros.
63477         * modules/acl (EXTRA_DIST): Add acl.h.
63478         * modules/argmatch (Files): Add m4/argmatch.m4.
63479         (configure.ac): Add gl_ARGMATCH.
63480         (EXTRA_DIST): Renamed from lib_SOURCES, for
63481         consistency with the other modules.  Remove argmatch.c.
63482         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63483         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63484         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63485         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63486         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63487         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63488         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63489         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63490         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63491         * modules/closeout (EXTRA_DIST): Add closeout.h.
63492         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63493         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63494         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63495         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63496         dirname.h; remove basename.c and stripslash.c.
63497         * modules/exclude (EXTRA_DIST): Add exclude.h.
63498         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63499         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63500         * modules/file-type (EXTRA_DIST): Add file-type.h.
63501         * modules/filemode (EXTRA_DIST): Add filemode.h.
63502         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63503         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63504         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63505         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63506         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63507         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63508         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63509         * modules/getdate (EXTRA_DIST): Add getdate.c.
63510         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63511         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63512         * modules/getpass (EXTRA_DIST): Add getpass.h.
63513         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63514         * modules/group-member (EXTRA_DIST): Add group-member.h.
63515         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63516         * modules/hash (EXTRA_DIST): Add hash.h.
63517         * modules/human (EXTRA_DIST): Add human.h.
63518         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63519         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63520         * modules/lchown (EXTRA_DIST): Add lchown.h.
63521         * modules/long-options (EXTRA_DIST): Add long-options.h.
63522         * modules/lstat (EXTRA_DIST): Add lstat.h.
63523         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63524         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63525         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63526         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63527         * modules/memxor (EXTRA_DIST): Add memxor.h.
63528         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63529         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63530         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63531         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63532         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63533         * modules/physmem (EXTRA_DIST): Add physmem.h.
63534         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63535         * modules/posixver (EXTRA_DIST): Add posixver.h.
63536         * modules/quote (EXTRA_DIST): Add quote.h.
63537         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63538         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63539         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63540         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63541         regex_internal.h regexec.c.
63542         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63543         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63544         * modules/same (EXTRA_DIST): Add same.h.
63545         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63546         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63547         * modules/savedir (EXTRA_DIST): Add savedir.h.
63548         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63549         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63550         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63551         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63552         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63553         * modules/strdup (EXTRA_DIST): Add strdup.h.
63554         * modules/strftime (EXTRA_DIST): Add strftime.h.
63555         * modules/strndup (EXTRA_DIST): Add strndup.h.
63556         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63557         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63558         * modules/time_r (EXTRA_DIST): Add time_r.h.
63559         * modules/timespec (EXTRA_DIST): Add timespec.h.
63560         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63561         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63562         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63563         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63564         * modules/userspec (EXTRA_DIST): Add userspec.h.
63565         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63566         * modules/utimens (EXTRA_DIST): Add utimens.h.
63567         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63568         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63569         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63570         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63571         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63572         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63573         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63574         * modules/yesno (EXTRA_DIST): Add yesno.h.
63575
63576 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63577
63578         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63579
63580         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63581         * m4/dev-ino.m4, same-inode.m4: Remove.
63582
63583         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63584         * m4/acl.m4 (AC_FUNC_ACL):
63585         * m4/backupfile.m4 (gl_BACKUPFILE):
63586         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63587         * m4/canon-host.m4 (gl_CANON_HOST):
63588         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63589         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63590         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63591         * m4/cloexec.m4 (gl_CLOEXEC):
63592         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63593         * m4/closeout.m4 (gl_CLOSEOUT):
63594         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63595         * m4/dirname.m4 (gl_DIRNAME):
63596         * m4/exclude.m4 (gl_EXCLUDE):
63597         * m4/exitfail.m4 (gl_EXITFAIL):
63598         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63599         * m4/file-type.m4 (gl_FILE_TYPE):
63600         * m4/filemode.m4 (gl_FILEMODE):
63601         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63602         * m4/fpending.m4 (gl_FUNC_FPENDING):
63603         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63604         * m4/fts.m4 (gl_FUNC_FTS):
63605         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63606         * m4/getdate.m4 (gl_GETDATE):
63607         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63608         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63609         * m4/getpass.m4 (gl_FUNC_GETPASS):
63610         * m4/gettime.m4 (gl_GETTIME):
63611         * m4/getugroups.m4 (gl_GETUGROUPS):
63612         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63613         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63614         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63615         * m4/hash.m4 (gl_HASH):
63616         * m4/idcache.m4 (gl_IDCACHE):
63617         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63618         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63619         * m4/long-options.m4 (gl_LONG_OPTIONS):
63620         * m4/lstat.m4 (gl_FUNC_LSTAT):
63621         * m4/md5.m4 (gl_MD5):
63622         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63623         * m4/memcoll.m4 (gl_MEMCOLL):
63624         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63625         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63626         * m4/memxor.m4 (gl_MEMXOR):
63627         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63628         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63629         * m4/modechange.m4 (gl_MODECHANGE):
63630         * m4/mountlist.m4 (gl_MOUNTLIST):
63631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63632         * m4/openat.m4 (gl_FUNC_OPENAT):
63633         * m4/pathmax.m4 (gl_PATHMAX):
63634         * m4/physmem.m4 (gl_PHYSMEM):
63635         * m4/posixtm.m4 (gl_POSIXTM):
63636         * m4/posixver.m4 (gl_POSIXVER):
63637         * m4/quote.m4 (gl_QUOTE):
63638         * m4/quotearg.m4 (gl_QUOTEARG):
63639         * m4/readtokens.m4 (gl_READTOKENS):
63640         * m4/readutmp.m4 (gl_READUTMP):
63641         * m4/regex.m4 (gl_REGEX):
63642         * m4/safe-read.m4 (gl_SAFE_READ):
63643         * m4/safe-write.m4 (gl_SAFE_WRITE):
63644         * m4/same.m4 (gl_SAME):
63645         * m4/save-cwd.m4 (gl_SAVE_CWD):
63646         * m4/savedir.m4 (gl_SAVEDIR):
63647         * m4/settime.m4 (gl_SETTIME):
63648         * m4/sha1.m4 (gl_SHA1):
63649         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63650         * m4/stat-macros.m4 (gl_STAT_MACROS):
63651         * m4/stat-time.m4 (gl_STAT_TIME):
63652         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63653         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63654         * m4/strdup.m4 (gl_FUNC_STRDUP):
63655         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63656         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63657         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63658         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63659         * m4/time_r.m4 (gl_TIME_R):
63660         * m4/timespec.m4 (gl_TIMESPEC):
63661         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63662         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63663         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63664         * m4/userspec.m4 (gl_USERSPEC):
63665         * m4/utimecmp.m4 (gl_UTIMECMP):
63666         * m4/utimens.m4 (gl_UTIMENS):
63667         * m4/xalloc.m4 (gl_XALLOC):
63668         * m4/xgetcwd.m4 (gl_XGETCWD):
63669         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63670         * m4/xreadlink.m4 (gl_XREADLINK):
63671         * m4/xstrtod.m4 (gl_XSTRTOD):
63672         * m4/yesno.m4 (gl_YESNO):
63673         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63674         to get the necessary .h files and whatnot.
63675
63676 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63677             Bruno Haible  <bruno@clisp.org>
63678
63679         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63680         /bin/sh understanding of '!' conditional negation.
63681
63682 2006-08-21  Jim Meyering  <jim@meyering.net>
63683
63684         * modules/openat (Depends-on): Really alphabetize.
63685
63686         * modules/acl (Depends-on): Add error and quote.
63687
63688         * check-module (find_included_lib_files): Add at-func.c to the
63689         ok-to-include-more-than-once white list.
63690
63691         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63692
63693 2006-08-21  Bruno Haible  <bruno@clisp.org>
63694
63695         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63696         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63697         Reported by Martin Lambers <marlam@marlam.de>.
63698
63699 2006-08-21  Bruno Haible  <bruno@clisp.org>
63700
63701         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63702         specify an installation location, don't emit a noinst_LIBRARIES or
63703         noinst_LTLIBRARIES assignment.
63704
63705 2006-08-21  Bruno Haible  <bruno@clisp.org>
63706
63707         BeOS portability.
63708         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63709         BeOS has mbrtowc() but no <wctype.h>.
63710
63711 2006-08-21  Bruno Haible  <bruno@clisp.org>
63712
63713         BeOS portability.
63714         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63715         exist.
63716
63717 2006-08-21  Bruno Haible  <bruno@clisp.org>
63718
63719         BeOS portability.
63720         * lib/mbchar.h: Include <wctype.h> only if it exists.
63721
63722 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63723
63724         Remove files that are no longer needed by their respective modules.
63725         * m4/obstack.m4: Remove.
63726         * m4/strerror_r.m4: Remove.
63727         * m4/uint32_t.m4: Remove.
63728         * m4/uintptr_t.m4: Remove.
63729         * m4/ullong_max.m4: Remove.
63730         * m4/xstrtoimax.m4: Remove.
63731         * m4/xstrtoumax.m4: Remove.
63732
63733         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63734         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63735         dependencies now capture this.
63736
63737         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63738         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63739         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63740         * m4/human.m4 (gl_HUMAN): Likewise.
63741         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63742         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63743
63744         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63745
63746         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63747         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63748         stdint.
63749         * m4/human.m4 (gl_HUMAN): Likewise.
63750         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63751         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63752         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63753         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63754         * m4/xstrtol (gl_XSTRTOL): Likewise.
63755
63756         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63757         AC_TYPE_LONG_LONG_INT.
63758         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63759         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63760         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63761         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63762
63763         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63764         on stdbool.
63765
63766         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63767         (gl_PREREQ_XSTRTOUL): Remove.
63768
63769         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63770
63771         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63772         mode.
63773
63774 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63775
63776         Add and change modules to make it easier for coreutils to use
63777         gnulib-tool.
63778         * modules/backupfile (Files): Remove m4/d-ino.m4.
63779         (Depends-on): Add d-ino.
63780         * modules/cycle-check (Depends-on): Add stdint.
63781         (lib_SOURCES): Add cycle-check.h.
63782         * modules/d-ino: New module.
63783         * modules/d-type: New module.
63784         * modules/error (Files): Remove m4/strerror_r.m4.
63785         * modules/filemode (Files): Add m4/st_dm_mode.m4.
63786         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63787         m4/inttypes_h.m4, m4/uintmax_t.m4.
63788         (Depends-on): Add stdint.
63789         (lib_SOURCES): Add fsusage.h.
63790         * modules/getcwd (Files): Remove d-ino.m4.
63791         (Depends-on): Add d-ino.
63792         * modules/getndelim2 (Depends-on): Add stdint.
63793         * modules/glob (Files): Remove m4/d-type.m4.
63794         (Depends-on): Add d-type.
63795         * modules/host-os: New module.
63796         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
63797         m4/inttypes_h.m4, m4/uintmax_t.m4.
63798         * Depends-on: Add stdint.
63799         (lib_SOURCES): Add human.h.
63800         * modules/inttostr (Files): Remove m4/intmax_t.m4,
63801         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
63802         m4/uintmax_t.m4, m4/ulonglong.m4.
63803         (Depends-on): Add stdint.
63804         (EXTRA_DIST): Add inttostr.h.
63805         * modules/lchmod: New module.
63806         * modules/link-follow: New module.
63807         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
63808         (Depends-on): Add lchmod.
63809         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
63810         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
63811         (Depends-on): Add stdint.
63812         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
63813         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
63814         (Depends-on): Add stdint.
63815         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
63816         * modules/perl: New module.
63817         * modules/regex (Depends-on): Add stdint.
63818         * modules/rmdir-errno: New module.
63819         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63820         m4/intmax_t.m4.
63821         (Depends-on): Add stdint.
63822         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63823         m4/uintmax_t.m4.
63824         (Depends-on): Add stdint.
63825         * modules/unlink-busy: New module.
63826         * modules/utimecmp (Depends-on): Add stdint.
63827         * modules/uptime: New module.
63828         * modules/winsz-ioctl: New module.
63829         * modules/winsz-termios: New module.
63830         * modules/xnanosleep (Depends-on): Add nanosleep.
63831         * modules/ullong_max: Remove.
63832         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
63833         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
63834         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
63835         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
63836         (Depends-on): Add inttypes.
63837         (lib_SOURCES): Add xstrtol.h.
63838         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
63839         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
63840         * MODULES.html.sh: Move 'assert' into the assert section.
63841         Move 'dummy' into the linking section.
63842         Remove ullong_max.
63843         Add section for compatibility checks for POSIX:2001 functions,
63844         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
63845         winsz-ioctl, and winsz-termios into it.
63846         Add lchmod.
63847         Add top-level Misc section and put host-os, perl, and uptime
63848         into it.
63849
63850 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63851
63852         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
63853         now assume the stdint module.  Do not include inttypes.h.
63854         * lib/fsusage.h: Likewise.
63855         * lib/getndelim2.c: Likewise.
63856         * lib/human.h: Likewise.
63857         * lib/inttostr.h: Likewise.
63858         * lib/obstack.c: Likewise.
63859         * lib/regex_internal.h: Likewise.
63860         * lib/tempname.c: Likewise.
63861         * lib/utimecmp.c: Likewise.
63862         * lib/xstrtol.h: Likewise.
63863
63864         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
63865
63866         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
63867         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
63868         * lib/xtime.h: Likewise.
63869
63870 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63871
63872         * modules/openat (Files): Add lib/fchmodat.c.
63873         Fixes problem reported by Jay Youngman.
63874
63875 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63876
63877         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
63878         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
63879
63880 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
63881             Bruno Haible  <bruno@clisp.org>
63882
63883         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
63884         and is a script that invokes bison. Tighten the code. Add comments.
63885
63886 2006-08-18  Jim Meyering  <jim@meyering.net>
63887
63888         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
63889         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
63890         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
63891         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
63892
63893 2006-08-18  Bruno Haible  <bruno@clisp.org>
63894
63895         * modules/bison-i18n: New file.
63896         * MODULES.html.sh (Internationalization functions): Add it.
63897
63898 2006-08-18  Bruno Haible  <bruno@clisp.org>
63899
63900         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
63901         sys/statvfs.h. When getmntinfo was found, check its declaration and
63902         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
63903
63904 2006-08-18  Bruno Haible  <bruno@clisp.org>
63905
63906         * m4/bison-i18n.m4: New file, from bison.
63907
63908 2006-08-18  Bruno Haible  <bruno@clisp.org>
63909
63910         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
63911         (ME_DUMMY): Treat "kernfs" as a dummy.
63912         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
63913
63914 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63915
63916         Update from coreutils.
63917
63918         2006-08-15  Jim Meyering  <jim@meyering.net>
63919
63920         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
63921
63922         2006-01-17  Jim Meyering  <jim@meyering.net>
63923
63924         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
63925
63926         2006-01-11  Jim Meyering  <jim@meyering.net>
63927
63928         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
63929         Check for the lchmod function.
63930
63931 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63932
63933         Update from coreutils.
63934
63935         * lib/__fpending.h: Add copyright notice.
63936         * lib/fprintftime.h: Likewise.
63937         * lib/savedir.c: Use (C) in copyright notice.
63938         * lib/savedir.h: Likewise.
63939
63940         2006-08-15  Jim Meyering  <jim@meyering.net>
63941
63942         * lib/at-func.c: New file, with the logic of all emulated at-functions.
63943         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
63944         in support of the EXPECTED_ERRNO macro.
63945         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
63946         definitions.  Instead, define the appropriate symbols and include
63947         "at-func.c".
63948         * lib/mkdirat.c (mkdirat): Likewise.
63949         * lib/fchmodat.c (fchmodat): Likewise.
63950         (ENOSYS): Remove definition.
63951         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
63952         it.  Don't include "unistd--.h" -- it wasn't ever used.
63953
63954         2006-01-17  Jim Meyering  <jim@meyering.net>
63955
63956         Rewrite fts.c not to change the current working directory,
63957         by using openat, fstatat, fdopendir, etc..
63958
63959         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
63960         (HAVE_OPENAT_SUPPORT): Define.
63961         [_LIBC] (fchdir): Don't undef or define; no longer used.
63962         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
63963         Now, this `function' always succeeds, and consumes its file descriptor
63964         parameter -- so callers must not close such FDs.  Update callers.
63965         (diropen_fd, opendirat, cwd_advance_fd): New functions.
63966         (diropen): Add parameter, SP.  Adjust all callers.
63967         Implement using diropen_fd, rather than open.
63968         (fts_open): Initialize new member, fts_cwd_fd.
63969         Remove fts_rft-setting code.
63970         (fts_close): Close fts_cwd_fd, if necessary.
63971         (__opendir2): Define in terms of opendir or opendirat,
63972         depending on whether the FST_NOCHDIR flag is set.
63973         (fts_build): Since fts_safe_changedir consumes its FD, and since
63974         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
63975         and close the dup'd file descriptor upon failure.
63976         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
63977         (fts_safe_changedir): Tweak semantics to reflect that this function
63978         now calls cwd_advance_fd and hence consumes its FD argument.
63979         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
63980         [struct FTS] (fts_rft): Remove now-unused member.
63981         [struct FTS] (fts_cycle.state): Improve comment.
63982
63983         * lib/openat.c (openat_needs_fchdir): New function.
63984         * lib/openat.h (openat_needs_fchdir): Declare it.
63985
63986 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63987
63988         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
63989         Problem and fix reported by Pádraig Brady in
63990         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
63991
63992 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63993
63994         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
63995
63996 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63997
63998         * lib/memcoll.c (memcoll): Optimize for the common case where the
63999         arguments are bytewise equal.
64000
64001 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64002
64003         * doc/regexprops-generic.texi: Add a copyright notice.
64004
64005 2006-08-15  Bruno Haible  <bruno@clisp.org>
64006
64007         * modules/tmpdir (License): Change to LGPL.
64008
64009 2006-08-15  Bruno Haible  <bruno@clisp.org>
64010
64011         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
64012         module.
64013
64014 2006-08-14  Simon Josefsson  <jas@extundo.com>
64015
64016         * config/srclist.txt: Add gnupload.
64017
64018 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64019
64020         Change copyright notice from LGPL 2 to GPL 2, since that's the
64021         standard form used in the gnulib repository.
64022         * tests/test-lock.c: Likewise.
64023         * tests/test-stdint.c: Likewise.
64024         * tests/test-tls.c: Likewise.
64025
64026         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64027         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64028         Add copyright notice.
64029
64030         * check-module: Add copyright notice.  Output a copyright
64031         notice if "--version" is specified.
64032         * modules/COPYING: New file.
64033         * tests/test-getaddrinfo.c: Add copyright notice.
64034         * tests/test-verify.c: Likewise.
64035
64036 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64037
64038         Change copyright notice from LGPL 2 to GPL 2, since that's the
64039         standard form used in the gnulib repository.
64040         * lib/lock.c: LGPL -> GPL.
64041         * lib/lock.h: Likewise.
64042         * lib/strnlen1.c: Likewise.
64043         * lib/strnlen1.h: Likewise.
64044         * lib/tls.c: Likewise.
64045         * lib/tls.h: Likewise.
64046         * lib/tmpdir.c: Likewise.
64047
64048         * lib/TODO: Remove; this belongs only in coreutils.
64049
64050 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         Add copyright notices to long-enough files that lack them, since
64053         otherwise the files aren't clearly free.  Use the same notice that
64054         getdate.texi already uses.
64055         * doc/alloca-opt.texi: Add copyright notice.
64056         * doc/alloca.texi: Likewise.
64057         * doc/ctime.texi: Likewise.
64058         * doc/functions.texi: Likewise.
64059         * doc/gcd.texi: Likewise.
64060         * doc/gnulib-tool.texi: Likewise.
64061         * doc/inet_ntoa.texi: Likewise.
64062         * doc/visibility.texi: Likewise.
64063
64064         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
64065         * doc/quote.texi: Add copyright notice.
64066
64067         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
64068         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
64069         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
64070         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
64071         is now obsolete, and give a pointer to the Sun list.
64072         Add copyright notice.
64073
64074 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64075
64076         * config/srclistvars.sh: Add copyright notice.
64077
64078 2006-08-14  Eric Blake  <ebb9@byu.net>
64079
64080         Import the following change from libc:
64081
64082         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
64083
64084         Upstream bug 2997.
64085         * lib/misc/error.c: Add space between program name and message if file
64086         name is missing.
64087
64088 2006-08-12  Karl Berry  <karl@gnu.org>
64089
64090         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
64091         remove, these originate in gnulib now.
64092
64093 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64094
64095         * doc/Makefile (standards.info standards.html standards.dvi):
64096         Also depend on make-stds.texi.
64097
64098 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64099
64100         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
64101         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
64102
64103         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
64104         in wchar_t.  Problem reported by Eric Blake.
64105
64106         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
64107         LEN is smaller than SIZE.  Suggested by Bruno Haible.
64108         Also, help the compiler to keep LEN in a register.
64109
64110 2006-08-11  Eric Blake  <ebb9@byu.net>
64111
64112         * users.txt: Sort.  Add tar.
64113
64114 2006-08-11  Bruno Haible  <bruno@clisp.org>
64115
64116         * users.txt: New file.
64117
64118 2006-08-11  Bruno Haible  <bruno@clisp.org>
64119
64120         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
64121         before <wchar.h>. Needed for OSF/1 and BSD/OS.
64122
64123 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64124
64125         * modules/snprintf (Depends-on): Remove minmax.
64126         (Maintainer): Add self and Bruno.
64127
64128 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64129
64130         * lib/.cppi-disable: Add snprintf.h, socket_.h.
64131         * lib/snprintf.c: Include <errno.h> and <limits.h>.
64132         (EOVERFLOW): Define if the system does not.
64133         Do not include "minmax.h"; it wasn't used.
64134         (snprintf): Don't assume size_t promotes to an unsigned type.
64135         Fix bug when generated string was too long for the buffer: the
64136         buffer's contents are supposed to be the initial prefix of the
64137         output.  Don't assume vasnprintf returns EOVERFLOW if the size
64138         exceeds INT_MAX; do the check ourselves.
64139
64140         Import the following changes from libc:
64141
64142         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
64143
64144         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
64145         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
64146         set wc to the byte which couldn't be converted.
64147         (re_string_reconstruct): Don't clear valid_raw_len before calling
64148         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
64149         tip_context using re_string_context_at.
64150
64151         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
64152
64153         * lib/posix/regex.h: g++ still cannot handled [restrict].
64154
64155         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
64156
64157         * lib/posix/regex.h: Remove special handling for VMS.
64158
64159 2006-08-10  Jim Meyering  <jim@meyering.net>
64160
64161         * modules/same-inode: New module.
64162         * modules/dev-ino: New module.
64163         * modules/cycle-check: Depend on these modules, rather than simply
64164         including their .h files.
64165         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
64166         required via m4/cycle-check.m4.
64167         * modules/same: Depend on new same-inode module, rather than
64168         including same-inode.h.
64169         * modules/chdir-safer: New file.
64170
64171         * modules/chown (Depends-on): Add stat-macros.
64172
64173 2006-08-10  Jim Meyering  <jim@meyering.net>
64174
64175         * m4/cycle-check.m4: New file.
64176         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
64177         * m4/dev-ino.m4, m4/same-inode.m4: New files.
64178
64179 2006-08-10  Eric Blake  <ebb9@byu.net>
64180
64181         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
64182         in from original proposal.
64183
64184 2006-08-10  Eric Blake  <ebb9@byu.net>
64185         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64186
64187         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
64188         namespace.
64189
64190 2006-08-10  Bruno Haible  <bruno@clisp.org>
64191
64192         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
64193         as well.
64194
64195 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64196
64197         Sync from coreutils.
64198
64199         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
64200
64201         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
64202         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
64203
64204 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64205
64206         * modules/restrict: Remove; no longer needed now that we assume
64207         Autoconf 2.59 or later.
64208         * MODULES.html.sh: Remove 'restrict'.
64209         * modules/argp (Depends-on): Remove 'restrict'.
64210         * modules/base64 (Depends-on): Likewise.
64211         * modules/gc (Depends-on): Likewise.
64212         * modules/getaddrinfo (Depends-on): Likewise.
64213         * modules/glob (Depends-on): Likewise.
64214         * modules/inet_ntop (Depends-on): Likewise.
64215         * modules/inet_pton (Depends-on): Likewise.
64216         * modules/memxor (Depends-on): Likewise.
64217         * modules/regex (Depends-on): Likewise.
64218         * modules/strtok_r (Depends-on): Likewise.
64219         * modules/time_r (Depends-on): Likewise.
64220
64221 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64222
64223         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64224         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64225         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64226         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64227         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64228         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64229         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64230         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64231
64232         Merge from coreutils.
64233         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64234         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64235         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64236         * m4/time_r.m4 (gl_TIME_R): Likewise.
64237
64238 2006-08-09  Karl Berry  <karl@gnu.org>
64239
64240         * config/srclist.txt: no more gettext-tools, per Bruno.
64241
64242 2006-08-08  Eric Blake  <ebb9@byu.net>
64243
64244         * modules/verror: New module.
64245         * MODULES.html.sh: Document it.
64246
64247 2006-08-08  Eric Blake  <ebb9@byu.net>
64248
64249         * lib/verror.h, lib/verror.c: New files.
64250
64251 2006-08-08  Eric Blake  <ebb9@byu.net>
64252
64253         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64254         verror_at_line output complies with GNU Coding Standards even when
64255         file is NULL.
64256
64257 2006-08-07  Bruno Haible  <bruno@clisp.org>
64258
64259         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64260         versions of AIX.
64261         Reported by Ralf Wildenhues.
64262
64263 2006-08-07  Bruno Haible  <bruno@clisp.org>
64264
64265         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64266         in an AC_DEFUN. Needed so that the autoconf snippets can use
64267         AC_REQUIRE.
64268
64269 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64270
64271         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64272         Initialize pkgdata_DATA.
64273         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64274         overriding it.
64275
64276 2006-08-06  Eric Blake  <ebb9@byu.net>
64277
64278         * lib/error.h: Fold in some upstream changes from glibc.
64279         * lib/error.c: Likewise.
64280
64281 2006-08-04  Bruno Haible  <bruno@clisp.org>
64282
64283         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64284         Make the mostlyclean-local rule depend on mostlyclean-generic.
64285         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64286
64287 2006-07-31  Bruno Haible  <bruno@clisp.org>
64288
64289         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64290         <stdlib.h>, <string.h>.
64291
64292 2006-07-30  Bruno Haible  <bruno@clisp.org>
64293
64294         * modules/readlink (License): Change to LGPL.
64295
64296 2006-07-30  Bruno Haible  <bruno@clisp.org>
64297
64298         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64299         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64300         set PKGDATADIR to point to it.
64301
64302 2006-07-30  Bruno Haible  <bruno@clisp.org>
64303
64304         * modules/csharpexec (configure.ac): Comment out macro invocation.
64305         * modules/javaexec (configure.ac): Likewise.
64306         * modules/javacomp-script (configure.ac): Likewise.
64307
64308         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64309
64310 2006-07-30  Bruno Haible  <bruno@clisp.org>
64311
64312         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64313         linked-list.
64314
64315 2006-07-30  Bruno Haible  <bruno@clisp.org>
64316
64317         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64318
64319 2006-07-30  Bruno Haible  <bruno@clisp.org>
64320
64321         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64322         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64323         get removed.
64324
64325 2006-07-29  Bruno Haible  <bruno@clisp.org>
64326
64327         Make it possible for gnulib-tool to work with locally modified or
64328         augmented gnulib repositories.
64329         * gnulib-tool (func_usage): Document --local-dir option.
64330         (local_gnulib_dir): New variable.
64331         Handle --local-dir option.
64332         (func_lookup_file): New function.
64333         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64334         (func_get_description, func_get_filelist, func_get_description,
64335         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64336         func_get_automake_snippet, func_get_include_directive,
64337         func_get_license, func_get_maintainer): Use func_lookup_file.
64338         (func_import, func_create_testdir): Use func_lookup_file.
64339
64340 2006-07-29  Bruno Haible  <bruno@clisp.org>
64341
64342         * modules/setenv (Depends-on): Add unistd.
64343
64344 2006-07-29  Bruno Haible  <bruno@clisp.org>
64345
64346         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64347
64348 2006-07-29  Bruno Haible  <bruno@clisp.org>
64349
64350         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64351
64352 2006-07-29  Bruno Haible  <bruno@clisp.org>
64353
64354         * gnulib-tool (import, update): If there is no Makefile.am, look at
64355         aclocal.m4, instead of bailing out.
64356
64357 2006-07-29  Bruno Haible  <bruno@clisp.org>
64358
64359         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64360         Categorize the options by when they are useful.
64361
64362 2006-07-29  Bruno Haible  <bruno@clisp.org>
64363
64364         * gnulib-tool (func_usage): Document option --no-libtool.
64365         Handle option --no-libtool.
64366         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64367         for changed semantics of $libtool variable.
64368         (func_import): Likewise. If libtool is not used, show this through
64369         an option --no-libtool.
64370         (func_create_testdir): Update.
64371
64372 2006-07-29  Bruno Haible  <bruno@clisp.org>
64373
64374         * gnulib-tool (func_import): Extend error message about missing
64375         --doc-base.
64376
64377 2006-07-29  Bruno Haible  <bruno@clisp.org>
64378
64379         * gnulib-tool (func_import): Don't create the $docbase directory if
64380         there is no file to store there.
64381
64382 2006-07-29  Bruno Haible  <bruno@clisp.org>
64383
64384         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64385         relevant, look for configure.ac there, not in the current directory.
64386         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64387
64388 2006-07-29  Bruno Haible  <bruno@clisp.org>
64389
64390         * gnulib-tool (SORT): New variable.
64391         (func_usage): Undocument --assume-autoconf option.
64392         Remove --assume-autoconf option handling.
64393         (autoconf_minversion): Determine from the contents of configure.ac.
64394         (func_import): Remove autoconf_minversion handling.
64395         Suggested by Eric Blake.
64396
64397 2006-07-29  Bruno Haible  <bruno@clisp.org>
64398
64399         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64400
64401 2006-07-29  Bruno Haible  <bruno@clisp.org>
64402
64403         * config/srclist.txt (*setenv.[ch]): Remove rules.
64404
64405 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64406
64407         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64408
64409 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64410
64411         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64412         arpa/inet.h.
64413
64414 2006-07-28  Simon Josefsson  <jas@extundo.com>
64415
64416         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64417         * modules/inet_pton (Depends-on): Likewise.
64418
64419 2006-07-28  Simon Josefsson  <jas@extundo.com>
64420
64421         * m4/netinet_in_h.m4: New file.
64422
64423 2006-07-28  Simon Josefsson  <jas@extundo.com>
64424
64425         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64426         #include's.
64427
64428 2006-07-28  Simon Josefsson  <jas@extundo.com>
64429
64430         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64431         #include's.
64432
64433 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64434
64435         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64436         setgid on directories only if they set these bits.
64437         * lib/modechange.h: Remove obsolete comment about masks.
64438
64439 2006-07-28  Eric Blake  <ebb9@byu.net>
64440
64441         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64442         macro expansion.
64443
64444 2006-07-28  Bruno Haible  <bruno@clisp.org>
64445
64446         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64447
64448 2006-07-28  Bruno Haible  <bruno@clisp.org>
64449
64450         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64451
64452 2006-07-28  Bruno Haible  <bruno@clisp.org>
64453
64454         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64455         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64456         Define fallbacks.
64457         Avoids link error on FreeBSD 4.x.
64458         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64459
64460         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64461         encoding.
64462         * lib/mbswidth.c (iswcntrl): Likewise.
64463
64464 2006-07-27  Bruno Haible  <bruno@clisp.org>
64465
64466         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64467         test.
64468
64469 2006-07-27  Bruno Haible  <bruno@clisp.org>
64470
64471         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64472         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64473         defined.
64474
64475 2006-07-26  Eric Blake  <ebb9@byu.net>
64476
64477         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64478
64479 2006-07-26  Eric Blake  <ebb9@byu.net>
64480
64481         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64482         like mingw that lack mkstemp.
64483         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64484         avoid compilation warning on mingw.
64485
64486 2006-07-26  Bruno Haible  <bruno@clisp.org>
64487
64488         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64489         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64490         INT_FAST*_MIN, INTPTR_MIN.
64491
64492 2006-07-25  Bruno Haible  <bruno@clisp.org>
64493
64494         * modules/version-etc (Depends-on): Add stdarg.
64495
64496 2006-07-25  Bruno Haible  <bruno@clisp.org>
64497
64498         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64499         complex commands.
64500
64501 2006-07-25  Bruno Haible  <bruno@clisp.org>
64502
64503         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64504         defined in <stdarg.h> or config.h.
64505
64506 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64507
64508         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64509         (gl_STDIO_SAFER): Remove.
64510
64511 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64512
64513         * MODULES.html.sh (File stream based Input/Output):
64514         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64515         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64516         * modules/fopen-safer, modules/tmpfile-safer: New files.
64517         * modules/stdio-safer: Remove.
64518
64519 2006-07-24  Bruno Haible  <bruno@clisp.org>
64520
64521         * modules/tmpdir: New file.
64522         * MODULES.html.sh (File system functions): Add it.
64523
64524 2006-07-24  Bruno Haible  <bruno@clisp.org>
64525
64526         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64527         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64528
64529 2006-07-24  Bruno Haible  <bruno@clisp.org>
64530
64531         * modules/clean-temp: New file.
64532
64533 2006-07-24  Bruno Haible  <bruno@clisp.org>
64534
64535         * m4/tmpdir.m4: New file, from GNU gettext.
64536
64537 2006-07-24  Bruno Haible  <bruno@clisp.org>
64538
64539         * lib/tmpdir.h: New file, from GNU gettext.
64540         * lib/tmpdir.c: New file, from GNU gettext.
64541
64542 2006-07-24  Bruno Haible  <bruno@clisp.org>
64543
64544         * lib/clean-temp.h: New file, from GNU gettext.
64545         * lib/clean-temp.c: New file, from GNU gettext.
64546
64547 2006-07-23  Eric Blake  <ebb9@byu.net>
64548
64549         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64550         (Depends-on): Add binary-io.
64551
64552 2006-07-23  Eric Blake  <ebb9@byu.net>
64553
64554         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64555
64556 2006-07-23  Eric Blake  <ebb9@byu.net>
64557
64558         * lib/tmpfile-safer.c: New file.
64559         * lib/stdio-safer.h (fopen_safer): Add prototype.
64560         * lib/stdio--.h (tmpfile): Make safer.
64561
64562 2006-07-23  Bruno Haible  <bruno@clisp.org>
64563
64564         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64565         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64566         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64567         gl_linked_remove_at): Use it.
64568
64569 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64570         and Simon Josefsson <jas@extundo.com>
64571
64572         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64573
64574         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64575
64576 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64577
64578         * modules/close-stream: New file.
64579         * modules/closeout (Description): Make it clear that it exits
64580         with a diagnostic on error.
64581         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64582         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64583
64584 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64585
64586         * m4/close-stream.m4: New file.
64587
64588 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64589
64590         * lib/close-stream.c, lib/close-stream.h: New files.
64591
64592 2006-07-22  Bruno Haible  <bruno@clisp.org>
64593
64594         Merge from GNU gettext 0.15.
64595
64596         2006-05-01  Bruno Haible  <bruno@clisp.org>
64597
64598                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64599
64600         2006-07-22  Bruno Haible  <bruno@clisp.org>
64601
64602                 * modules/javaversion: New file.
64603                 * MODULES.html.sh (Java): Add javaversion.
64604
64605         2006-03-12  Bruno Haible  <bruno@clisp.org>
64606
64607                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64608
64609         2005-12-04  Bruno Haible  <bruno@clisp.org>
64610
64611                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64612                 (untested).
64613
64614         2006-06-21  Bruno Haible  <bruno@clisp.org>
64615
64616                 Avoid warnings from recent versions of mcs.
64617                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64618                 -o, -L, -r any more. Use options documented since mcs-1.0
64619                 instead. Similarly for -g.
64620
64621         2005-12-04  Bruno Haible  <bruno@clisp.org>
64622
64623                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64624                 .resources, not .resource.
64625
64626         2005-07-09  Bruno Haible  <bruno@clisp.org>
64627
64628                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64629                 add a .dll suffix.
64630                 Reported by Mark Junker <mjscod@gmx.de>.
64631
64632         2006-07-22  Bruno Haible  <bruno@clisp.org>
64633
64634                 * modules/gettext: Upgrade to gettext-0.15.
64635                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64636                 m4/visibility.m4.
64637                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64638
64639 2006-07-22  Bruno Haible  <bruno@clisp.org>
64640
64641         Merge from GNU gettext 0.15.
64642
64643         2006-03-25  Bruno Haible  <bruno@clisp.org>
64644
64645                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64646
64647         2006-07-21  Bruno Haible  <bruno@clisp.org>
64648
64649                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64650                 "1.1".
64651
64652         2006-05-09  Bruno Haible  <bruno@clisp.org>
64653
64654                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64655                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64656                 for the conftestver execution.
64657
64658         2006-05-01  Bruno Haible  <bruno@clisp.org>
64659
64660                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64661                 optional target-version argument. Verify that the compiler
64662                 groks source of the specified source-version, or add -source
64663                 option as necessary. Verify that the compiler produces
64664                 bytecode in the specified target-version, or add -target and
64665                 -source options as necessary. Make the result of the test
64666                 available as variable CONF_JAVAC. Also log error output in
64667                 config.log.
64668
64669         2006-03-11  Bruno Haible  <bruno@clisp.org>
64670
64671                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64672
64673         2006-05-09  Bruno Haible  <bruno@clisp.org>
64674
64675                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64676                 CLASSPATH_SEPARATOR to a semicolon.
64677
64678         2006-03-12  Bruno Haible  <bruno@clisp.org>
64679
64680                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64681                 available as variable CONF_JAVA, for subsequent autoconf
64682                 tests. Also log error output in config.log.
64683
64684         2006-07-19  Bruno Haible  <bruno@clisp.org>
64685
64686                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64687                 that getline works on glibc2 systems. Needed to avoid trouble
64688                 in relocatable.c.
64689                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64690
64691         2005-12-04  Bruno Haible  <bruno@clisp.org>
64692
64693                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64694                 launcher (untested).
64695
64696         2005-12-04  Bruno Haible  <bruno@clisp.org>
64697
64698                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64699
64700         2006-07-22  Bruno Haible  <bruno@clisp.org>
64701
64702                 * gettext.m4: Update from GNU gettext-0.15.
64703                 * nls.m4: Likewise.
64704                 * po.m4: Likewise.
64705                 * inttypes-pri.m4: Likewise.
64706                 * inttypes-h.m4: Renamed from inttypes.m4.
64707                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64708
64709 2006-07-22  Bruno Haible  <bruno@clisp.org>
64710
64711         Merge from GNU gettext 0.15.
64712
64713         2005-07-05  Bruno Haible  <bruno@clisp.org>
64714
64715                 * printf-args.c (printf_fetchargs): Work around broken
64716                 definition of wint_t on mingw.
64717
64718         2005-02-12  Bruno Haible  <bruno@clisp.org>
64719
64720                 * xallocsa.h: Add extern "C" for C++.
64721
64722         2006-05-17  Bruno Haible  <bruno@clisp.org>
64723
64724                 Cygwin portability.
64725                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64726
64727         2006-04-30  Bruno Haible  <bruno@clisp.org>
64728
64729                 * progreloc.c: Include <mach-o/dyld.h> if available.
64730                 (find_executable): Use _NSGetExecutablePath when possible.
64731
64732         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64733
64734                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64735                 function.
64736
64737         2005-12-29  Bruno Haible  <bruno@clisp.org>
64738
64739                 * progreloc.c (set_program_name_and_installdir): Fix
64740                 compilation error.
64741
64742         2005-12-04  Bruno Haible  <bruno@clisp.org>
64743
64744                 Cygwin portability.
64745                 * progreloc.c: Include <windows.h> also on Cygwin.
64746                 (find_executable): Add support for Cygwin.
64747                 (set_program_name_and_installdir): Handle also platforms with
64748                 nonempty EXEEXT.
64749
64750         2006-07-11  Bruno Haible  <bruno@clisp.org>
64751
64752                 * javacomp.c: Fix a comment.
64753                 Reported by Jim Meyering.
64754
64755         2006-04-30  Bruno Haible  <bruno@clisp.org>
64756
64757                 * javacomp.h (compile_java_class): Add source_version,
64758                 target_version arguments.
64759                 * javacomp.c: Rewritten to choose only a compiler that
64760                 respects the specified source_version and target_version.
64761
64762         2006-06-27  Bruno Haible  <bruno@clisp.org>
64763
64764                 Assume correct S_ISDIR macro.
64765                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64766
64767         2006-07-22  Bruno Haible  <bruno@clisp.org>
64768
64769                 * javaversion.h: New file, from GNU gettext.
64770                 * javaversion.c: New file, from GNU gettext.
64771                 * javaversion.java: New file, from GNU gettext.
64772                 * javaversion.class: New file, from GNU gettext.
64773
64774         2006-05-17  Bruno Haible  <bruno@clisp.org>
64775
64776                 Cygwin portability.
64777                 * javaexec.c (execute_java_class): Test for jview program
64778                 also on Cygwin.
64779
64780         2006-04-09  Bruno Haible  <bruno@clisp.org>
64781
64782                 * fatal-signal.c: Don't include string.h.
64783                 (at_fatal_signal): Use a copying loop instead of memcpy.
64784
64785         2005-12-04  Bruno Haible  <bruno@clisp.org>
64786
64787                 * csharpexec.c: Add support for 'clix' launcher (untested).
64788                 (execute_csharp_using_sscli): New function.
64789                 (execute_csharp_program): Call it.
64790
64791         2006-06-21  Bruno Haible  <bruno@clisp.org>
64792
64793                 Avoid warnings from recent versions of mcs.
64794                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
64795                 -o, -L, -r any more. Use options documented since mcs-1.0
64796                 instead. Similarly for -g.
64797
64798         2005-07-09  Bruno Haible  <bruno@clisp.org>
64799
64800                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
64801                 add a .dll suffix.
64802                 Reported by Mark Junker <mjscod@gmx.de>.
64803
64804         2006-06-17  Bruno Haible  <bruno@clisp.org>
64805
64806                 * config.charset: Update for NetBSD 3.0.
64807
64808         2006-05-17  Bruno Haible  <bruno@clisp.org>
64809
64810                 Cygwin portability.
64811                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
64812
64813         2006-05-16  Bruno Haible  <bruno@clisp.org>
64814
64815                 * localcharset.c [CYGWIN]: Include <windows.h>.
64816                 (get_charset_aliases): For Cygwin, return the same CPxxx
64817                 aliases list as under WIN32.
64818                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
64819                 the environment variables. Fall back to GetACP().
64820
64821         2006-04-05  Bruno Haible  <bruno@clisp.org>
64822
64823                 * config.charset: Update Juan Manuel Guerrero's address.
64824
64825         2005-02-12  Bruno Haible  <bruno@clisp.org>
64826
64827                 * allocsa.h: Add extern "C" for C++.
64828
64829         2005-02-10  Bruno Haible  <bruno@clisp.org>
64830
64831                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
64832                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
64833
64834         2006-07-22  Bruno Haible  <bruno@clisp.org>
64835
64836                 * gettext.h: Update to GNU gettext-0.15.
64837
64838 2006-07-22  Bruno Haible  <bruno@clisp.org>
64839
64840         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
64841         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
64842         lib-prefix.m4, longdouble.m4, ssize_t.m4.
64843
64844 2006-07-21  Eric Blake  <ebb9@byu.net>
64845
64846         * modules/stdlib-safer: New file.
64847         * MODULES.html.sh (File stream based Input/Output): Add
64848         stdlib-safer.
64849
64850 2006-07-21  Eric Blake  <ebb9@byu.net>
64851
64852         * lib/stdlib-safer.h: New file from coreutils, required by
64853         stdlib--.h.
64854
64855 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
64856
64857         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
64858
64859 2006-07-20  Bruno Haible  <bruno@clisp.org>
64860
64861         * gnulib-tool: Recognize new option --assume-autoconf.
64862         (autoconf_minversion): New variable.
64863         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
64864
64865 2006-07-20  Bruno Haible  <bruno@clisp.org>
64866
64867         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
64868
64869 2006-07-19  Derek R. Price  <derek@ximbiot.com>
64870
64871         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
64872         Reindent and repaginate.
64873
64874 2006-07-19  Derek Price  <derek@ximbiot.com>
64875
64876         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
64877         Correct grammar.
64878
64879 2006-07-17  Bruno Haible  <bruno@clisp.org>
64880
64881         * modules/list: New file.
64882         * modules/array-list: New file.
64883         * modules/carray-list, modules/carray-list-tests: New files.
64884         * modules/linked-list, modules/linked-list-tests: New files.
64885         * modules/avltree-list, modules/avltree-list-tests: New files.
64886         * modules/rbtree-list, modules/rbtree-list-tests: New files.
64887         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
64888         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
64889         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
64890         * modules/oset: New file.
64891         * modules/array-oset: New file.
64892         * modules/avltree-oset, modules/avltree-oset-tests: New files.
64893         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
64894         * tests/test-carray_list.c: New file.
64895         * tests/test-linked_list.c: New file.
64896         * tests/test-avltree_list.c: New file.
64897         * tests/test-rbtree_list.c: New file.
64898         * tests/test-linkedhash_list.c: New file.
64899         * tests/test-avltreehash_list.c: New file.
64900         * tests/test-rbtreehash_list.c: New file.
64901         * tests/test-avltree_oset.c: New file.
64902         * tests/test-rbtree_oset.c: New file.
64903         * MODULES.html.sh (Container data structures): New section.
64904
64905 2006-07-17  Bruno Haible  <bruno@clisp.org>
64906
64907         * m4/gl_list.m4: New file.
64908
64909 2006-07-17  Bruno Haible  <bruno@clisp.org>
64910
64911         * lib/gl_list.h: New file.
64912         * lib/gl_list.c: New file.
64913         * lib/gl_array_list.h: New file.
64914         * lib/gl_array_list.c: New file.
64915         * lib/gl_carray_list.h: New file.
64916         * lib/gl_carray_list.c: New file.
64917         * lib/gl_linked_list.h: New file.
64918         * lib/gl_linked_list.c: New file.
64919         * lib/gl_anylinked_list1.h: New file.
64920         * lib/gl_anylinked_list2.h: New file.
64921         * lib/gl_avltree_list.h: New file.
64922         * lib/gl_avltree_list.c: New file.
64923         * lib/gl_anyavltree_list1.h: New file.
64924         * lib/gl_anyavltree_list2.h: New file.
64925         * lib/gl_rbtree_list.h: New file.
64926         * lib/gl_rbtree_list.c: New file.
64927         * lib/gl_anyrbtree_list1.h: New file.
64928         * lib/gl_anyrbtree_list2.h: New file.
64929         * lib/gl_anytree_list1.h: New file.
64930         * lib/gl_anytree_list2.h: New file.
64931         * lib/gl_linkedhash_list.h: New file.
64932         * lib/gl_linkedhash_list.c: New file.
64933         * lib/gl_anyhash_list1.h: New file.
64934         * lib/gl_anyhash_list2.h: New file.
64935         * lib/gl_avltreehash_list.h: New file.
64936         * lib/gl_avltreehash_list.c: New file.
64937         * lib/gl_rbtreehash_list.h: New file.
64938         * lib/gl_rbtreehash_list.c: New file.
64939         * lib/gl_anytreehash_list1.h: New file.
64940         * lib/gl_anytreehash_list2.h: New file.
64941
64942         * lib/gl_oset.h: New file.
64943         * lib/gl_oset.c: New file.
64944         * lib/gl_array_oset.h: New file.
64945         * lib/gl_array_oset.c: New file.
64946         * lib/gl_avltree_oset.h: New file.
64947         * lib/gl_avltree_oset.c: New file.
64948         * lib/gl_rbtree_oset.h: New file.
64949         * lib/gl_rbtree_oset.c: New file.
64950         * lib/gl_anytree_oset.h: New file.
64951
64952 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64953
64954         * m4/mkancesdirs.m4: New file.
64955         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
64956         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
64957         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
64958         it.
64959
64960 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64961
64962         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
64963         * lib/mkancesdirs.h: New files.
64964         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
64965         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
64966         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
64967         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
64968         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
64969         callers changed.  Revamp internals significantly, by not
64970         attempting to create directories that are temporarily more
64971         permissive than the final results.  Do not attempt to use
64972         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
64973         This removes some race conditions, fixes some bugs, and simplifies
64974         things.  Use new dirchownmod function to do owner and mode changes.
64975         * lib/mkdir-p.h: Likewise.
64976         * lib/modechange.c (octal_to_mode): New function.
64977         (struct mode_change): New member mentioned.
64978         (make_node_op_equals): New arg mentioned.  All callers changed.
64979         (mode_compile): Keep track of which mode bits the user has explicitly
64980         mentioned.
64981         (mode_adjust): New arg DIR, so that we implement the X op correctly.
64982         New arg PMODE_BITS, to keep track of which mode bits the user
64983         mentioned; it treats S_ISUID and S_ISGID speciall.
64984         All callers changed.
64985         * lib/modechange.h: Likewise.
64986
64987 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64988
64989         * MODULES.html.sh: Add mkancestors.
64990         * modules/mkancesdirs: New module.
64991         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
64992         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
64993         The chdir-safer and afs files are now orphans; I'll remove them
64994         unless someone speaks up.
64995         Add lib/dirchownmod.c, lib/dirchownmod.h.
64996         (Depends-on): Remove alloca, chown, save-cwd, dirname.
64997         Add lchown, mkancesdirs.
64998         (Maintainer): Add self.
64999
65000 2006-07-15  Karl Berry  <karl@gnu.org>
65001
65002         * gnulib-tool: help message wording/arrangement.
65003
65004 2006-07-14  Simon Josefsson  <jas@extundo.com>
65005
65006         * doc/gnulib.texi (Libtool and Windows): New section.
65007
65008 2006-07-12  Simon Josefsson  <jas@extundo.com>
65009
65010         * modules/gendocs (License): Fix license, approved by Karl.
65011
65012 2006-07-12  Eric Blake  <ebb9@byu.net>
65013
65014         * MODULES.html.sh: Add gendocs.
65015
65016 2006-07-11  Eric Blake  <ebb9@byu.net>
65017
65018         * modules/fdl: New module, to install doc/fdl.texi.
65019         * MODULES.html.sh: Add new section for documentation modules.
65020         * gnulib-tool: Avoid space-tab.
65021         (--doc-base): New option, to manage files from doc.
65022
65023 2006-07-11  Eric Blake  <ebb9@byu.net>
65024
65025         * m4/absolute-header.m4: Fix comments to match recent change.
65026
65027 2006-07-11  Eric Blake  <ebb9@byu.net>
65028
65029         * gnulib-tool: List --doc-base before --tests-base.
65030
65031 2006-07-11  Derek R. Price  <derek@ximbiot.com>
65032
65033         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
65034
65035 2006-07-11  Bruno Haible  <bruno@clisp.org>
65036
65037         * README: Mention where to put documentation.
65038
65039 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65040
65041         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
65042
65043 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65044
65045         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
65046         to stdint.m4.
65047
65048 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65049
65050         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
65051         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
65052         "no/such/file/stdint.h" when there is no such file, so that
65053         the resulting C code can be parsed by dodgy compilers.
65054         Problems reported by Bob Proulx.
65055
65056 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65057
65058         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
65059         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65060         macros into the GNU _D_EXACT_NAMLEN.
65061         * lib/savedir.c:  Likewise.
65062         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
65063
65064 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65065         and Paul Eggert  <eggert@cs.ucla.edu>
65066
65067         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
65068         * m4/savedir.m4:
65069         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65070         macros into the GNU _D_EXACT_NAMLEN.
65071
65072 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65073
65074         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
65075         around the absolute name, to work around a problem with the HP-UX
65076         11.23 native C compiler, reported by Bob Proulx.
65077
65078 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65079
65080         * doc/maintain.texi, make-stds.texi: Sync from
65081         <http://savannah.gnu.org/projects/gnustandards>.
65082
65083 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65084
65085         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
65086
65087 2006-07-09  Jim Meyering  <jim@meyering.net>
65088
65089         * m4/glob.m4: Remove a doubled word in a comment.
65090
65091 2006-07-09  Jim Meyering  <jim@meyering.net>
65092
65093         * lib/argp-pv.c: Remove a doubled word in a comment.
65094         * lib/check-version.c (check_version): Likewise.
65095         * lib/javacomp.c (compile_java_class): Likewise.
65096
65097 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65098
65099         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
65100         for the benefit of people using Autoconf 2.60.  If you want to
65101         support older Autoconf versions you can copy m4/onceonly_2_57.m4
65102         (or m4/onceonly.m4, if pre-2.57) manually.
65103
65104 2006-07-08  Jim Meyering  <jim@meyering.net>
65105
65106         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
65107         comment.
65108         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
65109         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
65110         comment.
65111
65112 2006-07-08  Jim Meyering  <jim@meyering.net>
65113
65114         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
65115
65116 2006-07-07  Simon Josefsson  <jas@extundo.com>
65117
65118         * tests/test-crc.c: Change expected crc value, the test vector
65119         were probably computed using the old broken crc.c?
65120
65121 2006-07-06  Simon Josefsson  <jas@extundo.com>
65122
65123         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
65124         now the canonical place for the M4 file).
65125
65126         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
65127         from the sys_socket dependency now.
65128
65129         * modules/inet_pton (Files): Ditto.
65130
65131         * modules/inet_ntop (Files): Ditto.
65132
65133 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65134
65135         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
65136         not gl_PREREQ_GETUSERSHELL.
65137
65138 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65139
65140         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
65141         with only one argument, for Autoconf 2.60.
65142         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
65143         expand to nothing, so add a shell command to avoid syntax error.
65144         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65145
65146 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65147
65148         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
65149
65150 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65151
65152         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
65153         no longer needed.  Check for isblank decl.
65154         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
65155         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
65156         of existence.
65157
65158 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65159
65160         * lib/getloadavg.c: Use __VMS, not VMS.
65161         * lib/getopt.c: Likewise.
65162         * lib/getpagesize.h: Likewise.
65163         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
65164         and probably does not work.
65165
65166 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65167
65168         * lib/.cppi-disable: Add wcwidth.
65169         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
65170         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
65171         (ISGRAPH): Remove.  All uses changed to isgraph.
65172         (FOLD) [!defined _LIBC]: Remove special case.
65173         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
65174         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
65175         HAVE_ISBLANK.
65176         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
65177         case.
65178
65179 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65180
65181         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
65182         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
65183         brackets.  Other minor changes to suppress some compiler
65184         warnings.
65185
65186 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65187         and Paul Eggert  <eggert@cs.ucla.edu>
65188
65189         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
65190         of invoking obsolescent AC_HEADER_DIRENT macro.
65191         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
65192         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
65193         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65194         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65195         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
65196         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65197         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
65198         * m4/readdir.m4: Remove; no longer needed.
65199
65200 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65201         and Paul Eggert  <eggert@cs.ucla.edu>
65202
65203         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
65204         Don't worry about this obsolete case any more.
65205         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
65206         directories.
65207         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65208         worry about this obsolete case any more.
65209         * lib/fts.c: Likewise.
65210         * lib/getcwd.c: Likewise.
65211         * lib/glob.h: Likewise.
65212         * lib/savedir.c: Likewise.
65213
65214 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65215
65216         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65217         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65218         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65219         needed.
65220         All uses removed.
65221         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65222         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65223         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65224         needed.
65225         * m4/getdate.m4 (gl_GETDATE): Likewise.
65226         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65227         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65228         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65229         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65230         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65231         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65232         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65233         needed.
65234
65235 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65236
65237         * lib/memcasecmp.c: Include <limits.h>.
65238         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65239         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65240         Don't assume isdigit succeeds only on '0' through '9'.
65241
65242 2006-07-05  Eric Blake  <ebb9@byu.net>
65243
65244         * modules/getaddrinfo (Depends-on): Add snprintf.
65245
65246 2006-07-05  Eric Blake  <ebb9@byu.net>
65247
65248         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65249         to avoid 'header present but could not be compiled' on cygwin.
65250
65251 2006-07-05  Eric Blake  <ebb9@byu.net>
65252
65253         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65254         missing from netdb.h.
65255         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65256
65257 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65258
65259         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65260         no longer needed.
65261         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65262         * m4/getdate.m4 (gl_GETDATE): Likewise.
65263         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65264         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65265         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65266         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65267         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65268
65269 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65270
65271         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65272         All uses of is_space replaced by isspace.
65273         * lib/exit.h: Don't talk about STDC_HEADERS.
65274         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65275         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65276         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65277         replaced by isprint etc.
65278         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65279         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65280         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65281         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65282         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65283         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65284
65285 2006-07-05  Bruno Haible  <bruno@clisp.org>
65286
65287         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65288         the function exists, before testing against AIX.
65289         Reported by Martin Lambers <marlam@marlam.de>.
65290
65291 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65292
65293         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65294         From Mark D. Baushke.
65295
65296 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65297
65298         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65299         to the absolute name, not just one, to bypass Sun C 5.8's
65300         "warning: #include of /usr/include/... may be non-portable".
65301
65302 2006-07-04  Eric Blake  <ebb9@byu.net>
65303
65304         * modules/dirname-tests: New test module.
65305         * tests/test-dirname.c: New file, replacing dirname.c
65306         TEST_DIRNAME section that was recently deleted.
65307
65308 2006-07-04  Bruno Haible  <bruno@clisp.org>
65309
65310         Assume ANSI C header files and <ctype.h> functions.
65311         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65312         (mbsnwidth): Use isprint, iscntrl instead.
65313
65314 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65315
65316         Merge from coreutils.
65317         * MODULES.html.sh: Add xstrtold.
65318         * modules/xstrtold: New file.
65319         * modules/cycle-check (Files): Add lib/same-inode.h.
65320         * modules/dirname (Files): Add m4/double-slash-root.m4.
65321         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65322         * modules/mkdir-p (Files): Add lib/same-inode.h.
65323         * modules/same (Files): Add lib/same-inode.h.
65324
65325 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65326
65327         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65328         This is to keep the terminology clean; POSIX talks about
65329         "absolute pathnames", not "full pathnames", but the GNU
65330         Coding Standards say to use "path" for something else;
65331         so use "absolute" to keep both sides happy.
65332         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65333         Set gl_absolute_header, not gl_full_header_path.
65334         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65335         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65336         All uses changed.
65337
65338         Merge from coreutils.
65339
65340         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65341
65342         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65343         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65344         want to require the building of c-strtod.o.
65345         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65346         needs -lm directly.
65347         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65348
65349         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65350
65351         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65352         --as-needed option if available.  Problem reported by Albert Chin in
65353         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65354         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65355         cc merely issues a bunch of annoying warnings for --as-needed
65356         (this problem was reported by Bob Proulx).  Also, try linking with
65357         -lm to detect a bug in binutils 2.16 (this problem was reported
65358         by Ralf Wildenhues).
65359
65360         2006-06-18  Jim Meyering  <jim@meyering.net>
65361
65362         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65363         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65364         macro.
65365         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65366         also check for glibc-2.4's abort-inducing bug.
65367
65368         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65369         Low-probability clean-up should be to use rmdir to get rid of
65370         the just-created directory, not unlink.
65371
65372         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65373         configure fail, and request a bug report to inform us about it.
65374         Add a comment that, barring reports to the contrary, in 2007 we'll
65375         assume ftruncate is universally available.
65376
65377         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65378
65379         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65380
65381         2006-03-12  Jim Meyering  <jim@meyering.net>
65382
65383         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65384         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65385         * m4/same.m4 (gl_SAME): Likewise.
65386         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65387
65388         2006-03-11  Eric Blake  <ebb9@byu.net>
65389
65390         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65391         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65392         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65393         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65394
65395 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65396
65397         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65398         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65399         reported by Mark D. Baushke, one in
65400         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65401
65402         Merge from coreutils.
65403
65404         * lib/.cppi-disable: Add stdint_.h.
65405         * lib/.cvsignore: Add stdint.h.
65406
65407         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65408
65409         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65410         both double and long double versions.
65411         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65412         * lib/xstrtold.c: New file.
65413         * lib/xstrtod.h (xstrtold): New decl.
65414
65415         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65416
65417         * lib/filemode.c (setst): Remove.
65418         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65419         (arguably) clearer, and the generated code is a bit smaller on my
65420         Debian GNU/Linux stable x86 host.
65421
65422         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65423
65424         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65425         Assume that filemode.h includes sys/types.h and sys/stat.h.
65426         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65427         (ftypelet): Reorder to put common cases first, for efficiency.
65428         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65429         to do 'M'.
65430         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65431         of 10, for compatibility with FreeBSD.  All callers changed.
65432         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65433         types that can't be deduced solely from st_mode.  First arg is now a
65434         const pointer.
65435         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65436         (strmode): Renamed from mode_string.
65437         (filemodestring): New decl.
65438         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65439         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65440         needed.
65441         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65442
65443         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65444
65445         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65446         fsusage.h now does that.  Include fsusage.h first, to test interface.
65447         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65448         at most one method (the old code could have generated decls that
65449         didn't conform to C89, not that this was ever exercised).
65450         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65451
65452         2006-03-19  Jim Meyering  <jim@meyering.net>
65453
65454         Work even in a chroot where d_ino values for entries in "/"
65455         don't match the stat.st_ino values for the same names.
65456         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65457         number, iterate through all entries again, using lstat instead.
65458         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65459         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65460
65461         * lib/getcwd.c (__getcwd): Clarify a comment.
65462         Use memcpy in place of a call to strcpy.
65463
65464         2006-03-12  Jim Meyering  <jim@meyering.net>
65465
65466         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65467         matches that of the current directory (which we're about to chdir ".."
65468         out of), then save the dev-ino of the parent, instead.
65469
65470         * lib/same-inode.h (SAME_INODE): New file/macro.
65471         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65472         Include "same-inode.h", instead.
65473         * lib/same.c: Likewise.
65474         * lib/cycle-check.h: Include "same-inode.h".
65475         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65476         * lib/cycle-check.c (SAME_INODE): Remove definition.
65477         * lib/root-dev-ino.h: Include "same-inode.h".
65478
65479         2006-03-11  Eric Blake  <ebb9@byu.net>
65480
65481         * lib/same.c (same_name): s/base_name/last_component/
65482         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65483         * lib/filenamecat.c (file_name_concat): Likewise.
65484
65485         2006-03-11  Eric Blake  <ebb9@byu.net>,
65486                     Paul Eggert  <eggert@cs.ucla.edu>
65487
65488         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65489         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65490         drive prefix.
65491         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65492         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65493         (last_component): New method.
65494         * lib/dirname.c (dir_len): Determine when drive letters need a
65495         subsequent slash.  Preserve // when it is special.
65496         (dir_name): Don't append dot when drive letter is absolute.
65497         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65498         * lib/basename.c (base_name): New semantics - malloc the result.
65499         Preserve // when it is special.  Preserve relative files that look
65500         like drive letters.
65501         (base_len): Preserve // when it is special.
65502         (last_component): New method, similar to old base_name semantics.
65503         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65504         base_name.  Strip redundant slashes from ///.
65505
65506 2006-07-03  Jim Meyering  <jim@meyering.net>
65507
65508         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65509         macro is used before the first cycle_check call.
65510
65511 2006-07-03  Eric Blake  <ebb9@byu.net>
65512
65513         * modules/dirname (Depends-on): Add xstrndup.
65514
65515 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65516
65517         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65518         test cases, so that config.log is a bit easier to follow.
65519
65520 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65521
65522         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65523         both are 64 bits, since this seems to be the tradition, and this
65524         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65525         we ever run into a host that prefers long long to long in this
65526         case, we'll need another configure-time test.  Problem reported by
65527         Jim Meyering.
65528
65529 2006-07-02  Eric Blake  <ebb9@byu.net>
65530
65531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65532
65533 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65534
65535         * modules/inttypes (Depends-on): No longer depends on stdint.
65536         * modules/stdint (Description): Say more about assumptions.
65537         Say that the fast types might differ.  Say macros are used.
65538         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65539         (Makefile.am): Revise list of substituted symbols to match
65540         new stdint.m4.
65541         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65542         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65543         * tests/test-stdint.c (verify_same_types)
65544         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65545         the code conforms to C99/C89.
65546         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65547         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65548
65549 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65550
65551         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65552         but fix a bug, by requiring at least 64 bits.
65553         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65554         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65555         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65556         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65557
65558         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65559         changes.  Make 2.59 a prerequisite.  Check and substitute for
65560         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65561         inttypes.h.  Do not use special include files; just use the
65562         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65563         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65564         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65565         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65566         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65567         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65568         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65569         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65570         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65571         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65572         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65573         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65574         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65575         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65576         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65577         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65578         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65579         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65580         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65581         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65582         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65583         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65584         not check for things that C99 does not require, e.g., int8_t.  If
65585         a test isn't needed unless <stdint.h> isn't working, and is
65586         unlikely to be needed for any other reason, then don't do it
65587         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65588         size_t, since we assume C89 freestanding at least.  Do not check
65589         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65590         the right thing even if the types are not defined.  Instead use:
65591         (gl_STDINT_TYPE_PROPERTIES): New macro.
65592         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65593         testing whether <sys/types.h> clashes, as Autoconf does this for
65594         us now.  All uses removed.
65595         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65596         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65597         (gl_CHECK_TYPE_SAME):
65598         Remove; no longer needed.
65599         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65600         exists, since we'll return 0 anyway in that case.
65601         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65602
65603 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65604
65605         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65606         possible collision with system files.
65607         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65608         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65609         WCHAR_MIN and WCHAR_MAX in this case.
65610         (<stddef.h>): Do not include; no longer needed.
65611         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65612         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65613         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65614         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65615         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65616         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65617         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65618         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65619         !defined(__c99))]: Include in this case too, since it's harmless
65620         now.
65621         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65622         dangerous to do so.
65623         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65624         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65625         (_STDINT_MIN, _STDINT_MAX): New macros.
65626         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65627         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65628         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65629         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65630         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65631         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65632         macros, not typedefs; this simplifies things quite a bit.
65633         Use long int for all types narrower than int64_t.
65634         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65635         Define in terms of long long int or int64_t or long int,
65636         not int64_t or int32_t.  This saves some compile-time testing.
65637         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65638         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65639         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65640         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65641         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65642         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65643         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65644         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65645         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65646         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65647         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65648         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65649         undef any previous version and define our own version, for
65650         simplicity and consistency with the new macros for types.
65651         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65652         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65653         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65654         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65655         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65656         @WINT_T_SUFFIX@ to keep things simple here.
65657         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65658         Simplify by assuming typical 8/16/32/64 host, since we're
65659         already doing that elsewhere anyway.
65660         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65661         and assume long long int is 64 bits if available.  This
65662         speeds up 'configure'.
65663
65664 2006-07-01  Eric Blake  <ebb9@byu.net>
65665
65666         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65667         Reported by Andreas Buening.
65668
65669 2006-07-01  Eric Blake  <ebb9@byu.net>
65670
65671         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65672
65673 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65674
65675         * lib/getaddrinfo.c: fixed typo
65676
65677 2006-06-29  Jim Meyering  <jim@meyering.net>
65678
65679         * modules/strftime (Maintainer): Add my name, since with the
65680         FPRINTFTIME changes strftime.c has forked from glibc.
65681
65682 2006-06-29  Eric Blake  <ebb9@byu.net>
65683
65684         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65685
65686 2006-06-29  Eric Blake  <ebb9@byu.net>
65687
65688         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65689
65690 2006-06-29  Eric Blake  <ebb9@byu.net>
65691
65692         * lib/stat_.h: New file.
65693
65694 2006-06-29  Eric Blake  <ebb9@byu.net>
65695
65696         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65697         unused static function.
65698
65699 2006-06-29  Eric Blake  <ebb9@byu.net>
65700
65701         * doc/functions.texi (Function Portability): Document missing lstat
65702         on mingw.
65703
65704 2006-06-29  Eric Blake  <ebb9@byu.net>
65705
65706         * MODULES.html.sh: Add sys_stat.
65707         * modules/sys_stat: New module.
65708         * modules/mkstemp (Depends-on): Add sys_stat.
65709
65710 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65711
65712         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65713
65714 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65715
65716         * m4/c-bs-a.m4: Removed.
65717
65718 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65719
65720         * lib/strftime.c: Assume strftime() exists.
65721
65722 2006-06-29  Derek Price  <derek@ximbiot.com>
65723
65724         * modules/c-bs-a: Removed - \a is C89.
65725         * MODULES.html.sh: Remove c-bs-a.
65726
65727 2006-06-29  Bruno Haible  <bruno@clisp.org>
65728
65729         * modules/wcwidth (License): Change to LGPL.
65730
65731 2006-06-28  Simon Josefsson  <jas@extundo.com>
65732
65733         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65734         on _WIN32.
65735
65736         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65737         getnameinfo.
65738
65739 2006-06-28  Simon Josefsson  <jas@extundo.com>
65740
65741         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65742
65743 2006-06-28  Simon Josefsson  <jas@extundo.com>
65744
65745         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65746         functions there.  It will succeed on Windows XP, but on Windows
65747         2000 and (presumably) earlier, it will fail, and use the internal
65748         re-implementation.
65749         (use_win32_p): New function.
65750         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65751         Support AI_NUMERICSERV to disable getservbyname.
65752         (getnameinfo): New function, only supports
65753         NI_NUMERICHOST|NI_NUMERICSERV for now.
65754
65755         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65756         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65757         getnameinfo.
65758
65759 2006-06-28  Eric Blake  <ebb9@byu.net>
65760
65761         * modules/wcwidth: New file.
65762         * modules/mbchar (Depends-on): Add wcwidth.
65763         * modules/mbswidth (Depends-on): Add wcwidth.
65764         * MODULES.html.sh: Add wcwidth.
65765
65766 2006-06-28  Eric Blake  <ebb9@byu.net>
65767
65768         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65770
65771 2006-06-28  Eric Blake  <ebb9@byu.net>
65772
65773         * lib/xvasprintf.h: Fix comments.
65774
65775 2006-06-28  Eric Blake  <ebb9@byu.net>
65776
65777         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65778         * lib/mbswidth.c (wcwidth): Move from here...
65779         * lib/wcwidth.h: ...to this new file.
65780
65781 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65782
65783         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
65784
65785         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
65786         it's obsolete.
65787         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
65788
65789 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65790
65791         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
65792         Autoconf 2.60 says this stuff was obsolete.
65793
65794 2006-06-28  Bruno Haible  <bruno@clisp.org>
65795
65796         * modules/wcwidth (Files): Add m4/wchar_t.m4.
65797
65798 2006-06-28  Bruno Haible  <bruno@clisp.org>
65799
65800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
65801         gt_TYPE_WCHAR_T.
65802
65803 2006-06-28  Bruno Haible  <bruno@clisp.org>
65804
65805         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
65806         declaration for wcwidth.
65807         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
65808
65809 2006-06-28  Bruno Haible  <bruno@clisp.org>
65810
65811         * lib/mkdtemp.c [MINGW]: Include <io.h>.
65812         (mkdir): Define using _mkdir.
65813
65814 2006-06-28  Bruno Haible  <bruno@clisp.org>
65815
65816         * lib/getaddrinfo.h: Fix POSIX URL.
65817         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
65818         _WIN32.
65819         (use_win32_p): Make static.
65820         (getaddrinfo): Reject service name if it is empty or does not consist
65821         solely of decimal digits, or if its value is > 65535.
65822         (getnameinfo): Remove useless casts.
65823
65824 2006-06-27  Simon Josefsson  <jas@extundo.com>
65825
65826         * modules/sys_select: New file, suggested by Bruno Haible, Paul
65827         Eggert and Martin Lambers.
65828
65829 2006-06-27  Simon Josefsson  <jas@extundo.com>
65830
65831         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
65832         Eggert and Martin Lambers.
65833
65834 2006-06-27  Bruno Haible  <bruno@clisp.org>
65835
65836         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
65837         result to 0, not to empty.
65838         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
65839
65840 2006-06-27  Bruno Haible  <bruno@clisp.org>
65841
65842         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
65843
65844 2006-06-26  Simon Josefsson  <jas@extundo.com>
65845
65846         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
65847         present.
65848
65849 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
65850
65851         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
65852         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
65853         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
65854
65855 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
65856
65857         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
65858
65859 2006-06-26  Bruno Haible  <bruno@clisp.org>
65860
65861         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
65862
65863 2006-06-26  Bruno Haible  <bruno@clisp.org>
65864
65865         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
65866
65867 2006-06-26  Bruno Haible  <bruno@clisp.org>
65868
65869         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
65870         SGI C compiler in pre-C99 mode.
65871         Suggested by Mark D. Baushke and Larry Jones.
65872
65873 2006-06-26  Bruno Haible  <bruno@clisp.org>
65874
65875         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
65876         WCHAR_MAX.
65877         Reported by Mark D. Baushke and Larry Jones.
65878
65879 2006-06-26  Bruno Haible  <bruno@clisp.org>
65880
65881         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
65882         in pre-C99 mode.
65883         Suggested by Mark D. Baushke and Larry Jones.
65884
65885 2006-06-23  Simon Josefsson  <jas@extundo.com>
65886             Bruno Haible  <bruno@clisp.org>
65887
65888         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
65889         Emit mostlyclean-local rule.
65890         (func_emit_tests_Makefile_am): Likewise.
65891         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
65892
65893 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
65894
65895         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
65896
65897 2006-06-23  Bruno Haible  <bruno@clisp.org>
65898
65899         * tests/test-stdint.c: Update to match ISO C 99 Technical
65900         Corrigendum 1.
65901
65902 2006-06-23  Bruno Haible  <bruno@clisp.org>
65903
65904         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
65905
65906 2006-06-23  Bruno Haible  <bruno@clisp.org>
65907
65908         * lib/stdint_.h: Treat IRIX like OpenBSD.
65909
65910 2006-06-23  Bruno Haible  <bruno@clisp.org>
65911
65912         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
65913         ISO C 99 Technical Corrigendum 1.
65914
65915 2006-06-22  Simon Josefsson  <jas@extundo.com>
65916
65917         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
65918         MinGW.
65919
65920 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65921
65922         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
65923         needed.  Some compiler complained about some of them.  Problem reported
65924         by Larry Jones in
65925         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
65926
65927 2006-06-21  Simon Josefsson  <jas@extundo.com>
65928
65929         * tests/test-getaddrinfo.c: New file.
65930
65931         * modules/getaddrinfo-tests: New file.
65932
65933         * MODULES.html.sh: Add inet_pton.
65934
65935         * modules/inet_pton: New file.
65936
65937 2006-06-21  Simon Josefsson  <jas@extundo.com>
65938
65939         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
65940         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
65941         of using the (limited) gnulib implementation on Windows XP.
65942
65943         * m4/inet_pton.m4: New file.
65944
65945 2006-06-21  Simon Josefsson  <jas@extundo.com>
65946
65947         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
65948         variable.
65949
65950         * lib/socket_.h: Don't define WINVER.
65951
65952         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
65953         slightly modified to work in gnulib.
65954
65955 2006-06-21  Simon Josefsson  <jas@extundo.com>
65956
65957         * doc/gnulib.texi (Windows sockets): Add.
65958
65959 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65960
65961         * lib/read-file.c (fread_file): Start with buffer allocation of
65962         0 bytes rather than 1 byte; this simplifies the code.
65963         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
65964         code to free buffer and save/restore errno.
65965         (internal_read_file): Remove unused local.
65966
65967 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65968
65969         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
65970         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
65971         Problem reported by Denis Excoffier in
65972         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
65973
65974 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65975
65976         * modules/sys_socket, modules/socklen: Include sys/types since
65977         FreeBSD 4.x's sys/socket.h needs it.
65978
65979 2006-06-19  Simon Josefsson  <jas@extundo.com>
65980
65981         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
65982
65983 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65984
65985         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
65986
65987 2006-06-19  Bruno Haible  <bruno@clisp.org>
65988
65989         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
65990         and FULL_PATH_INTTYPES_H in angle brackets.
65991         Reported by Mark D. Baushke <mdb@gnu.org>.
65992
65993 2006-06-17  Eric Blake  <ebb9@byu.net>
65994
65995         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
65996         errno.
65997
65998 2006-06-17  Bruno Haible  <bruno@clisp.org>
65999
66000         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
66001         <sys/inttypes.h>.
66002
66003 2006-06-17  Bruno Haible  <bruno@clisp.org>
66004
66005         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
66006         whether errno is declared. Assume <errno.h> declares errno.
66007
66008 2006-06-17  Bruno Haible  <bruno@clisp.org>
66009
66010         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
66011
66012 2006-06-17  Bruno Haible  <bruno@clisp.org>
66013
66014         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
66015         problem on Solaris 2.5.1.
66016
66017 2006-06-16  Eric Blake  <ebb9@byu.net>
66018
66019         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
66020         * lib/unicodeio.c [!defined errno]: Likewise.
66021         * lib/strtol.c [!defined errno]: Likewise.
66022         * lib/strtod.c [!defined errno]: Likewise.
66023
66024 2006-06-15  Eric Blake  <ebb9@byu.net>
66025
66026         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66027
66028 2006-06-15  Eric Blake  <ebb9@byu.net>
66029
66030         * config/srclist.txt (ssize_t.m4): Lose sync.
66031
66032 2006-06-15  Bruno Haible  <bruno@clisp.org>
66033
66034         * modules/stdint (Files): Include m4/full-header-path.m4,
66035         m4/size_max.m4, m4/wchar_t.m4.
66036         (Makefile.am): Many more substitutions.
66037         * modules/stdint-tests: New file.
66038         * tests/test-stdint.c: New file.
66039
66040 2006-06-15  Bruno Haible  <bruno@clisp.org>
66041
66042         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
66043         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
66044         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
66045         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
66046         gl_CHECK_TYPE_SAME): New macros.
66047
66048 2006-06-15  Bruno Haible  <bruno@clisp.org>
66049
66050         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
66051
66052 2006-06-15  Bruno Haible  <bruno@clisp.org>
66053
66054         * lib/stdint_.h: Rewritten to be fully auto-configured.
66055         Fixes bug on HP-UX/IA64.
66056
66057 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
66058
66059         * lib/getdate.y (__attribute__): Don't define if already defined.
66060         Problem reported by Larry Jones.
66061         * lib/utimens.c (__attribute__): Likewise.
66062
66063 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
66064
66065         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
66066         reported by Andreas Schwab.
66067
66068 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66069             Bruno Haible  <bruno@clisp.org>
66070
66071         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
66072         check for the declaration of strnlen and a run test that exposes the
66073         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
66074         rpl_strndup.
66075
66076 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66077             Bruno Haible  <bruno@clisp.org>
66078
66079         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
66080
66081 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66082
66083         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
66084         compile test, for Tru64 4.0D.
66085
66086 2006-05-28  Karl Berry  <karl@gnu.org>
66087
66088         * config/srclist.txt (printf-args.c): lose sync.
66089
66090 2006-05-26  Martin Lambers  <marlam@marlam.de>
66091
66092         * lib/getpass.c: Updates the test for the native W32 API, and adds
66093         missing includes, thus fixing compilation warnings.
66094
66095 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66096
66097         * lib/exclude.c (exclude_fnmatch): New function.
66098         (excluded_file_name): Call exclude_fnmatch.
66099         * lib/exclude.h (excluded_file_name): New prototype
66100
66101 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
66102
66103         * lib/tempname.c (small_open, large_open): New macros.
66104         (__open, __open64) [!_LIBC]: Remove.
66105         (__gen_tempname): Use small_open and large_open instead of __open
66106         and __open64.  This fixes a portability bug on HP-UX 11.11i
66107         reported by Simon Wing-Tang in
66108         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
66109
66110 2006-05-24  Bruno Haible  <bruno@clisp.org>
66111
66112         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
66113         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
66114         Reported by Thorsten Maerz <torte@netztorte.de> via
66115         Aaron Stone <aaron@serendipity.cx>.
66116
66117 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66118
66119         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
66120         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
66121         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
66122         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
66123         not really conditional on the cache.
66124         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
66125
66126 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66127
66128         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
66129         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
66130         (my_usleep): Don't mishandle maximum value.
66131
66132 2006-05-19  Jim Meyering  <jim@meyering.net>
66133
66134         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
66135
66136 2006-05-17  Bruno Haible  <bruno@clisp.org>
66137
66138         Cygwin portability.
66139         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
66140
66141 2006-05-17  Bruno Haible  <bruno@clisp.org>
66142
66143         * lib/stdint_.h: Fix recognition of Cygwin.
66144
66145 2006-05-15  Bruno Haible  <bruno@clisp.org>
66146
66147         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
66148         on libtool patch by Ralf Wildenhues.
66149
66150 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66151
66152         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
66153         test for C99 conformance; (bool) 0.5 is an integer constant
66154         expression, but (bool) -0.5 is not.  Problem reported by Fedor
66155         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
66156
66157 2006-05-11  Simon Josefsson  <jas@extundo.com>
66158
66159         * m4/xvasprintf.m4: Fix obvious typo.
66160
66161 2006-05-11  Jim Meyering  <jim@meyering.net>
66162
66163         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
66164         James Lemley.
66165
66166 2006-05-10  Simon Josefsson  <jas@extundo.com>
66167
66168         * lib/md4.c: Typo fix, update copyright years.
66169         (K1, K2): Don't use L because it turn computations into 64-bit on
66170         64-bit platforms.
66171
66172 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66173
66174         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
66175         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
66176         unwanted sign propagation, e.g., on hosts with 64-bit int.
66177         There still are some problems with reeelly weird theoretical hosts
66178         (e.g., 33-bit int) but it's not worth worrying about now.
66179         * lib/sha1.c (rol): Likewise.
66180         (K1, K2, K3, K4): Remove unnecessary L suffix.
66181
66182 2006-05-10  Bruno Haible  <bruno@clisp.org>
66183
66184         * lib/des.c: Cast to avoid warnings.
66185
66186 2006-05-09  Bruno Haible  <bruno@clisp.org>
66187
66188         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
66189         (Depends-on): Depend also on xsize, stdarg.
66190         (configure.ac): Add gl_XVASPRINTF.
66191
66192 2006-05-09  Bruno Haible  <bruno@clisp.org>
66193
66194         * m4/xvasprintf.m4: New file.
66195
66196 2006-05-09  Bruno Haible  <bruno@clisp.org>
66197
66198         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
66199         (EOVERFLOW): Define fallback value.
66200         (xstrcat): New function.
66201         (xvasprintf): Recognize the special case of a string concatenation.
66202
66203 2006-05-08  Eric Blake  <ebb9@byu.net>
66204
66205         * gnulib-tool (func_version): Base copyright year on CVS date.
66206         (func_emit_copyright_notice): New function.
66207         (func_emit_lib_Makefile_am): Use it.
66208         (func_emit_tests_Makefile_am): Likewise.
66209         (func_import): Likewise.
66210
66211 2006-05-08  Bruno Haible  <bruno@clisp.org>
66212
66213         * modules/stdarg: New file.
66214         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66215
66216 2006-05-08  Bruno Haible  <bruno@clisp.org>
66217
66218         * m4/stdarg.m4: New file, from GNU gettext.
66219
66220 2006-05-08  Bruno Haible  <bruno@clisp.org>
66221
66222         * config/srclist.txt (build-aux/config.rpath): different from latest
66223         release.
66224
66225 2006-05-08  Bruno Haible  <bruno@clisp.org>
66226
66227         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66228
66229 2006-05-05  Jim Meyering  <jim@meyering.net>
66230
66231         * m4/warning.m4: New file, derived from bison's file by the same name.
66232
66233 2006-05-03  Bruno Haible  <bruno@clisp.org>
66234
66235         * lib/stdint_.h: Shorter URL.
66236         * lib/inttypes.h: Likewise.
66237
66238 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66239
66240         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66241
66242 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66243
66244         * lib/verify.h: Document the internals better.  Most of this change
66245         was written by Bruno Haible.
66246
66247 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66248
66249         * doc/verify.texi: New file, partly based on a proposal by
66250         Bruno Haible.
66251
66252 2006-05-02  Bruno Haible  <bruno@clisp.org>
66253
66254         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66255         test from here...
66256         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66257
66258 2006-04-29  Bruno Haible  <bruno@clisp.org>
66259
66260         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66261         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66262
66263 2006-04-29  Bruno Haible  <bruno@clisp.org>
66264
66265         * gnulib-tool: Make --update option actually work.
66266
66267 2006-04-29  Bruno Haible  <bruno@clisp.org>
66268
66269         * doc/gcd.texi: New file.
66270         * doc/gnulib.texi: Include it.
66271
66272 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66273
66274         * lib/getdate.y (get_date): When adding relative date, start with the
66275         initial time, not with the result of the first mktime call.
66276
66277 2006-04-25  Bruno Haible  <bruno@clisp.org>
66278
66279         * gnulib-tool (func_import): Output the include directives in three
66280         blocks, sorted separately.
66281         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66282
66283 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66284
66285         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66286         to define main with arguments, for C++.  Reported by Eric Blake.
66287         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66288         Prefer 'int main ()' to 'int main (void)', for C++.
66289         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66290         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66291         for 'main', for C99 and C++.
66292
66293 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66294
66295         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66296         Don't assume that exit status -1 is valid.
66297         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66298         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66299         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66300         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66301         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66302         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66303         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66304         functions can be used without declaring them, or that you can
66305         exit with status -1.
66306         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66307
66308 2006-04-24  Karl Berry  <karl@gnu.org>
66309
66310         * config/srclist.txt (longdouble.m4): sync lost.
66311
66312 2006-04-24  Eric Blake  <ebb9@byu.net>
66313
66314         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66315
66316 2006-04-24  Bruno Haible  <bruno@clisp.org>
66317
66318         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66319         poll() implementation in AIX.
66320         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66321
66322 2006-04-24  Bruno Haible  <bruno@clisp.org>
66323
66324         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66325         assigned exactly once.
66326
66327 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66328             Bruno Haible  <bruno@clisp.org>
66329
66330         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66331         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66332         for AM_CPPFLAGS.
66333
66334 2006-04-23  Bruno Haible  <bruno@clisp.org>
66335
66336         * modules/copy-file: Depend on unistd.
66337         * modules/execute: Likewise.
66338         * modules/fatal-signal: Likewise.
66339         * modules/findprog: Likewise.
66340         * modules/mkdtemp : Likewise.
66341         * modules/pipe: Likewise.
66342         * modules/wait-process: Likewise.
66343
66344 2006-04-23  Bruno Haible  <bruno@clisp.org>
66345
66346         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66347         condition was already detected.
66348         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66349
66350 2006-04-23  Bruno Haible  <bruno@clisp.org>
66351
66352         * lib/copy-file.c: Include <unistd.h> unconditionally.
66353         * lib/execute.c: Likewise.
66354         * lib/fatal-signal.c: Likewise.
66355         * lib/findprog.c: Likewise.
66356         * lib/mkdtemp.c: Likewise.
66357         * lib/pipe.h: Likewise.
66358         * lib/pipe.c: Likewise.
66359         * lib/wait-process.h: Likewise.
66360
66361 2006-04-23  Bruno Haible  <bruno@clisp.org>
66362
66363         * gnulib-tool (func_usage): Fix --import description. Document
66364         --update.
66365         (func_import): Create temporary file in a temporary directory, if
66366         --dry-run is specified. Silence errors from 'grep' when there are no
66367         m4 files in $m4dir.
66368         (func_create_testdir): Silence errors from 'grep' when there are no
66369         m4 files in $m4dir.
66370         Reported by Karl Berry <karl@freefriends.org>.
66371
66372 2006-04-20  Bruno Haible  <bruno@clisp.org>
66373
66374         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66375         one argument, so that the code will be portable to Autoconf 2.60.
66376         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66377         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66378         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66379
66380 2006-04-19  Derek Price  <derek@ximbiot.com>
66381             Eric Blake  <ebb9@byu.net>
66382
66383         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66384         rather than "/full/path.h".  Update comment to match.  Shorten &
66385         generalize m4_translit call via AS_TR_CPP.
66386
66387 2006-04-19  Derek Price  <derek@ximbiot.com>
66388             Eric Blake  <ebb9@byu.net>
66389
66390         * lib/inttypes.h: Correct grammar in comment.
66391
66392 2006-04-18  Derek Price  <derek@ximbiot.com>
66393             Paul Eggert  <eggert@cs.ucla.edu>
66394
66395         * modules/inttypes: New file.
66396         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66397
66398 2006-04-18  Derek Price  <derek@ximbiot.com>
66399             Paul Eggert  <eggert@cs.ucla.edu>
66400
66401         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66402         New files.
66403
66404 2006-04-18  Derek Price  <derek@ximbiot.com>
66405             Paul Eggert  <eggert@cs.ucla.edu>
66406
66407         * lib/inttypes.h: New file.
66408         * lib/strtoimax.c: Assume <inttypes.h>.
66409
66410 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66411
66412         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66413         isn't mounted.  Problem reported by Kir Kolyshkin.
66414
66415 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66416
66417         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66418         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66419         Derek R. Price.
66420         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66421         implementation.
66422
66423 2006-04-12  Eric Blake  <ebb9@byu.net>
66424
66425         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66426         is now done automatically by the corresponding Autoconf macro.
66427
66428 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66429
66430         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66431         time_r.h.
66432
66433 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66434
66435         Merge regex changes from libc, removing some of our
66436         POSIX-conformance changes that were rejected and redoing them in a
66437         less-intrusive way.
66438
66439         * lib/regcomp.c (re_compile_internal, init_dfa):
66440         Length arg is now size_t, not Idx.  All uses changed.
66441         (peek_token): Forward decl now says internal_function.
66442         (__re_error_msgid, __re_error_msgid_idx):
66443         Now static rather than extern with attribute_hidden.
66444         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66445         For some reason libc prefers K&R style defns for external functions.
66446         (regerror) [!defined _LIBC]: Likewise.
66447         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66448         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66449         (build_range_exp, build_collating_symbol):
66450         Use K&R-style defn.
66451         (re_compile_fastmap): Use '\0' to memset, not 0.
66452         (utf8_sb_map): Make the calculations more obvious.
66453         (init_dfa, parse_bracket_exp, build_charclass_op):
66454         Call calloc and cast result, as glibc does.
66455         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66456         (build_range_exp, build_collating_symbol):
66457         Now internal functions.
66458
66459         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66460
66461         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66462         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66463         Don't depend on VMS; depend on __VMS instead, for POSIX
66464         namespace cleanness.
66465         (regoff_t): Define to ssize_t, not long int.
66466
66467         Remove the REG_ macros named below.  Instead, make the old names
66468         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66469         __USE_GNU_REGEX.
66470         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66471         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66472         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66473         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66474         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66475         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66476         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66477         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66478         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66479         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66480         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66481         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66482         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66483         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66484         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66485         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66486         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66487         (REG_NREGS):
66488         Remove.  All uses replaced by the old RE_* names.
66489         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66490         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66491         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66492         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66493         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66494         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66495         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66496         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66497         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66498         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66499         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66500         Don't bother having these macros be independent of each others'
66501         values, since they no longer exist in the POSIX name space.
66502
66503         Rename the following member names back to their old names,
66504         unless !__USE_GNU_REGEX.  All uses changed back.
66505         (buffer): Renamed from re_buffer.
66506         (allocated): Renamed from re_allocated.
66507         (used): Renamed from re_used.
66508         (syntax): Renamed from re_syntax.
66509         (fastmap): Renamed from re_fastmap.
66510         (translate): Renamed from re_translate.
66511         (can_be_null): Renamed from re_can_be_null.
66512         (regs_allocated): Renamed from re_regs_allocated.
66513         (fastmap_accurate): Renamed from re_fastmap_accurate.
66514         (no_sub): Renamed from re_no_sub.
66515         (not_bol): Renamed from re_not_bol.
66516         (not_eol): Renamed from re_not_eol.
66517         (newline_anchor): Renamed from re_newline_anchor.
66518         (num_regs): Renamed from rm_num_regs.
66519         (start): Renamed from rm_start.
66520         (end): Renamed from rm_end.
66521
66522         (free_state): Move up a bit.
66523
66524         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66525         #define to be empty.
66526         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66527         when that is what is intended.
66528         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66529         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66530         (MAX): New macro.
66531         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66532         All uses changed back to re_malloc, etc.  It's now the caller's
66533         responsibility to check for overflow; all callers changed.
66534         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66535         (re_x2nrealloc): Remove.
66536         (free_state): Remove decl.
66537
66538         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66539         (re_set_registers, re_exec):
66540         Use K&R-style defn.
66541
66542         2006-01-31  Roland McGrath  <roland@redhat.com>
66543
66544         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66545         Reported by Mike Frysinger <vapier@gentoo.org>.
66546
66547         2006-01-15  Andreas Jaeger  <aj@suse.de>
66548
66549         [BZ #1950]
66550         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66551         build_wcs_upper_buffer change.
66552         (build_wcs_upper_buffer): Change return type.
66553
66554         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66555
66556         * lib/regex_internal.h: Include <stdint.h> if available.
66557
66558         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66559
66560         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66561
66562         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66563
66564         * lib/regcomp.c: Adjust for changed secondary hash function.
66565
66566         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66567
66568         * lib/regex.h: Pretty printing.
66569         Clean up namespace a bit.
66570
66571         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66572
66573         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66574         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66575
66576         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66577                     Ulrich Drepper  <drepper@redhat.com>
66578
66579         [BZ #1302]
66580         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66581         changed.
66582         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66583
66584         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66585
66586         [BZ #281]
66587         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66588         * lib/regcomp.c: Remove unnecessary uses of
66589         unsigned RE_TRANSLATE_TYPE.
66590         * lib/regex_internal.h: Likewise.
66591         * lib/regex_internal.c: Likewise.
66592         * lib/regexec.c: Likewise.
66593         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66594
66595         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66596
66597         * lib/regexec.c (find_recover_state): Remove unnecessary
66598         initialization.
66599         (transit_state_bkref): Make DFA a const pointer.
66600         (get_subexp): Likewise.
66601         (check_arrival): Likewise.
66602         (update_cur_sifted_state): Likewise.
66603         (re_search_internal): Likewise.
66604         (prune_impossible_nodes): Likewise.
66605         (acquire_init_state_context): Likewise.
66606         (proceed_next_node): Likewise.
66607         (set_regs): Likewise.
66608         (free_fail_stack_return): Likewise.
66609         (check_arrival_expand_ecl): Mark DFA parameter as const.
66610         (check_arrival_expand_ecl_sub): Likewise.
66611         (check_subexp_limits): Likewise.
66612         (sub_epsilon_src_nodes):  Likewise.
66613         (add_epsilon_src_nodes):  Likewise.
66614         (merge_state_array): Likewise.
66615         (update_regs): Likewise.
66616         (build_trtable): Likewise.
66617         (sift_states_backward): Mark MCTX parameter as const.
66618         (build_sifted_states): Likewise.
66619         (update_cur_sifted_state): Likewise.
66620         (sift_states_mkref): Likewise.
66621         (check_arrival_expand_ecl): Mark eclosure as const.
66622         (check_dst_limits_calc_pos_1): Likewise.
66623         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66624         pointer.
66625
66626         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66627
66628         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66629         (transit_state_sb): Likewise.
66630         (transit_state_mb): Likewise.
66631         (sift_states_iter_mb): Likewise.
66632         (check_arrival_add_next_nodes): Likewise.
66633         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66634         [_LIBC] (re_search_2_stub): Use mempcpy.
66635
66636         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66637         mbrtowc for very simple UTF-8 case.
66638
66639         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66640         a pointer-to-const.
66641         (re_acquire_state_context): Likewise.
66642         * lib/regex_internal.h: Adjust prototypes.
66643
66644         * lib/regex.c: Prevent using C++ compilers.
66645
66646         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66647         (re_acquire_state_context): Likewise.
66648
66649 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66650
66651         * modules/regex (Depends-on): Add ssize_t.
66652
66653 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66654
66655         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66656         translation table.
66657
66658 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66659
66660         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66661
66662 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66663             Bruno Haible  <bruno@clisp.org>
66664
66665         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66666         <sys/types.h> and <inttypes.h>.
66667
66668 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66669
66670         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66671         `__error_t_defined', so argp.h will not typedef the former.
66672
66673 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66674
66675         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66676         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66677         glibc names.  Even if glibc is changed to conform to POSIX, the
66678         traditional names will be available anyway, since regex depends on
66679         the extensions module.  Also, fix a longstanding typo in the
66680         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66681         reported by Emanuele Giaquinta.  Also, change sense of cached
66682         variable, so that the message makes sense.
66683
66684 2006-03-24  Simon Josefsson  <jas@extundo.com>
66685
66686         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66687         including some doc fixes.
66688         (base64_encode_alloc): Fix +1 bug on allocation failures.
66689
66690 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66691
66692         * lib/base64.c (base64_encode): Do not read past end of array with
66693         unsanitized input on systems with CHAR_BIT > 8.
66694
66695 2006-03-24  Eric Blake  <ebb9@byu.net>
66696
66697         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66698
66699 2006-03-22  Karl Berry  <karl@gnu.org>
66700
66701         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66702         * config/srclistvars.sh (COREUTILS): new var.
66703
66704 2006-03-17  Jim Meyering  <jim@meyering.net>
66705
66706         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66707         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66708
66709 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66710
66711         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66712         no longer needs it.  Instead, check that regoff_t is as least
66713         as wide as ptrdiff_t.
66714
66715         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66716         so that our regex.h stays compatible with the installed regex.
66717         This is helpful for installers who configure --without-included-regex.
66718         Problem reported by Emanuele Giaquinta.
66719
66720 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66721
66722         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66723         Typedef to long int, not to off_, as POSIX will likely change
66724         in that direction.
66725
66726 2006-03-15  Eric Blake  <ebb9@byu.net>
66727
66728         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66729
66730 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66731
66732         * lib/argp-help.c (validate_uparams): Fix typo
66733         * lib/argp-parse.c (argp_default_options): Consistently begin help
66734         messages with a lowercase letter.
66735
66736 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66737
66738         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66739         overrun buffers and shouldn't be used (much as gets shouldn't be
66740         used).
66741         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66742
66743 2006-03-08  Simon Josefsson  <jas@extundo.com>
66744
66745         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66746         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66747
66748 2006-03-08  Simon Josefsson  <jas@extundo.com>
66749
66750         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66751         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66752
66753 2006-03-08  Simon Josefsson  <jas@extundo.com>
66754
66755         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66756         signal that configure disabled the device.
66757
66758 2006-03-08  Simon Josefsson  <jas@extundo.com>
66759
66760         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66761         languages.
66762
66763 2006-03-07  Simon Josefsson  <jas@extundo.com>
66764
66765         * modules/getopt (Depends-on): Add unistd.
66766
66767         * modules/unistd: New file.
66768
66769 2006-03-07  Simon Josefsson  <jas@extundo.com>
66770
66771         * modules/gc-random: New file.
66772
66773 2006-03-07  Simon Josefsson  <jas@extundo.com>
66774
66775         * m4/unistd_h.m4: New file.
66776
66777 2006-03-07  Simon Josefsson  <jas@extundo.com>
66778
66779         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
66780         test to be side-effect free by storing the result in the cache
66781         variable gl_cv_lib_readline, and moving the assignment of
66782         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
66783         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66784
66785 2006-03-07  Simon Josefsson  <jas@extundo.com>
66786
66787         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
66788         error on missing devices (the functions will return an error).
66789
66790         * m4/gc.m4: Move random stuff to gc-random.m4
66791
66792 2006-03-07  Simon Josefsson  <jas@extundo.com>
66793
66794         * lib/unistd_.h: New file.
66795
66796 2006-03-07  Simon Josefsson  <jas@extundo.com>
66797
66798         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
66799
66800 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66801
66802         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
66803         Problem reported by Juan Manuel Guerrero.
66804
66805 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
66808         the unistd module.
66809         * lib/getlogin_r.c: Likewise.
66810         * lib/getlogin_r.h: Likewise.
66811         * lib/glob.c: Likewise.
66812         * lib/pagealign_alloc.c: Likewise.
66813         * lib/unistd_.h: Remove; no longer needed.
66814
66815 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66816
66817         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66818         Add unistd.
66819         * modules/c-stack (Depends-on): Add unistd.
66820         * modules/getlogin_r: Likewise.
66821         * modules/glob: Likewise.
66822         * modules/pagealign_alloc: Likewise.
66823         * modules/unistd (Files): Remove lib/unistd_.h.
66824         (EXTRA_DIST): Remove.
66825         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
66826         need unistd_.h.
66827         (MOSTLYCLEANFILES): Remove unistd.h-t.
66828
66829 2006-03-03  Simon Josefsson  <jas@extundo.com>
66830
66831         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
66832
66833 2006-03-03  Simon Josefsson  <jas@extundo.com>
66834
66835         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
66836         libidn and bison.
66837
66838 2006-03-03  Simon Josefsson  <jas@extundo.com>
66839
66840         * build-aux/maint.mk: Add indent target.
66841
66842 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
66843
66844         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
66845         our replacement poll.h in any case, to avoid a differing
66846         declaration from a system header.  Seen on AIX.
66847
66848 2006-03-01  Simon Josefsson  <jas@extundo.com>
66849
66850         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
66851         <kasal@ucw.cz>.
66852
66853 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66854
66855         * modules/gettime (Depends-on): Add extensions module.
66856         * modules/nanosleep (Depends-on): Likewise.
66857         * modules/settime (Depends-on): Likewise.
66858
66859 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66860
66861         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
66862         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
66863         pedantically.
66864         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66865         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
66866
66867         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
66868         not "==".  Reported by Ralf Wildenhues.
66869
66870 2006-03-01  Karl Berry  <karl@gnu.org>
66871
66872         * doc/Copyright/request-*: new files, synced from gnuorg.
66873
66874 2006-03-01  Karl Berry  <karl@gnu.org>
66875
66876         * config/srclist.txt (Copyright/*): new entries.
66877
66878 2006-02-28  Simon Josefsson  <jas@extundo.com>
66879
66880         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
66881
66882 2006-02-27  Simon Josefsson  <jas@extundo.com>
66883
66884         * lib/base64.h: Indent #define's.  From Jim Meyering
66885         <jim@meyering.net>.
66886
66887 2006-02-27  Jim Meyering  <jim@meyering.net>
66888
66889         Revert the change of 2006-02-24, so these files can continue
66890         to be sync'd from gettext.
66891         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
66892         of `config.h'.
66893
66894 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66895
66896         * modules/intprops: New file.
66897         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66898         Add intprops.
66899         * modules/getloadavg (Files): Remove lib/intprops.h.
66900         (Depends-on): Add intprops.
66901         * modules/human: Likewise.
66902         * modules/inttostr: Likewise.
66903         * modules/openat: Likewise.
66904         * modules/sig2str: Likewise.
66905         * modules/userspec: Likewise.
66906         * modules/utimecmp: Likewise.
66907         * modules/xnanosleep: Likewise.
66908         * modules/xstrtol: Likewise.
66909
66910 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
66911
66912         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
66913         * modules/lock-tests (TESTS): Use $(EXEEXT).
66914         * modules/tls-tests: Likewise.
66915         * modules/argp-tests: Likewise.
66916         (check_PROGRAMS): New var, replacing...
66917         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
66918
66919 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66920
66921         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
66922         `config.h'.
66923
66924 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66925
66926         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
66927
66928 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66929
66930         Sync from coreutils.
66931         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
66932         gl_CHDIR_SAFER.
66933
66934 2006-02-22  Jim Meyering  <jim@meyering.net>
66935
66936         Sync from coreutils.
66937         * m4/chdir-safer.m4: New file.
66938
66939 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66940
66941         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
66942         AT_FDCWD exceeds INT_MAX.
66943         * lib/openat.h (AT_FDCWD): Likewise.
66944
66945 2006-02-17  Eric Blake  <address@hidden>
66946
66947         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
66948
66949 2006-02-16  Simon Josefsson  <jas@extundo.com>
66950
66951         * modules/getaddrinfo (Depends-on): Add sys_socket.
66952
66953 2006-02-15  Simon Josefsson  <jas@extundo.com>
66954
66955         * build-aux/maint.mk: Add dsyntax-check rule.
66956
66957 2006-02-15  Eric Blake  <ebb9@byu.net>
66958
66959         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
66960         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
66961         'present but cannot compile' warnings on cygwin.
66962         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
66963         use ws2tcpip.h if sys/socket.h works.
66964         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
66965         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
66966
66967 2006-02-14  Simon Josefsson  <jas@extundo.com>
66968
66969         * modules/maintainer-makefile (Files): Rename.
66970
66971         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
66972         and (the local) Makefile.cfg to maint-cfg.mk.
66973
66974         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
66975         to the latter.
66976
66977         * modules/maintainer-makefile: New module.
66978
66979         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
66980         severaly stripped to make it possible to build it up from scratch
66981         with reliable tests.
66982
66983         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
66984         fixes to permit overriding the default actions when configure and
66985         makefile are not available.
66986
66987 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66988
66989         Sync from coreutils.
66990         * modules/lstat (Depends-on): Don't depend on xalloc.
66991         (License): Change from GPL to LGPL, since this is now simply a
66992         replacement for a libc function.
66993
66994 2006-02-14  Jim Meyering  <jim@meyering.net>
66995
66996         Sync from coreutils.
66997
66998         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
66999         failure on deficient systems, and simplify gnulib lgpl dependencies.
67000         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
67001         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
67002
67003         * lib/xalloc-die.c: Remove unused definition of N_.
67004
67005 2006-02-14  Jim Meyering  <jim@meyering.net>
67006
67007         Sync from coreutils.
67008         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
67009         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
67010         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
67011         double-quote uses of that variable, to accommodate the rare case in
67012         which getmntent is available in none of the libraries checked.  This
67013         happens at least on FreeBSD 5.0.
67014
67015 2006-02-13  Simon Josefsson  <jas@extundo.com>
67016
67017         * gnulib-tool (Usage): Fix --import, from
67018         karl@freefriends.org (Karl Berry).
67019
67020 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67021
67022         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
67023
67024 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67025
67026         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67027         "autoupdate" on 2005-12-12.
67028
67029 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67030
67031         * modules/closeout (Depends-on): Remove atexit.
67032
67033 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67034
67035         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
67036         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
67037
67038 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67039
67040         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
67041         __EXTENSIONS__ if this causes compilation to fail.  Problem
67042         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
67043         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
67044
67045 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
67046
67047         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
67048         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
67049         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
67050         All uses changed.
67051
67052 2006-01-26  Simon Josefsson  <jas@extundo.com>
67053
67054         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
67055         prototype is visible on mingw32.
67056
67057         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
67058         for mingw32.
67059
67060         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
67061         mingw32).
67062
67063 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67064
67065         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
67066         attempt to open for write; this always fails, at least on POSIX
67067         hosts.  This reinstates the 2006-01-09 change, which was
67068         inadvertently removed.
67069
67070 2006-01-26  Bruno Haible  <bruno@clisp.org>
67071
67072         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
67073         Reported by Paul Eggert.
67074
67075 2006-01-26  Bruno Haible  <bruno@clisp.org>
67076             Paul Eggert  <eggert@cs.ucla.edu>
67077
67078         * lib/stdbool_.h (_Bool)
67079         [(! (defined __cplusplus || defined __BEOS__)
67080           && !defined __GNUC__
67081           && !(defined __HP_cc || defined __xlc__
67082                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
67083                || defined __sgi))]:
67084         #define to signed char in these cases too; this simplifies
67085         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
67086         etc., separately) and makes it more conservative.
67087
67088 2006-01-25  Simon Josefsson  <jas@extundo.com>
67089
67090         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
67091         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
67092         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
67093
67094 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67095
67096         * lib/argp-namefrob.h: Bugfix. Remove stray #
67097
67098 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
67099
67100         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
67101         so that we test the test.
67102         Check for yet another HP-UX cc bug involving *bool |= bool.
67103
67104 2006-01-25  Karl Berry  <karl@gnu.org>
67105
67106         * config/srclist.txt (vasnprintf.c): sync lost.
67107
67108 2006-01-25  Jim Meyering  <jim@meyering.net>
67109
67110         Sync from the stable (b5) branch of coreutils:
67111
67112         * lib/fts.c (fts_children): Don't let close() clobber errno from
67113         failed fchdir().
67114
67115         * lib/fts.c (fts_stat): When following a symlink-to-directory,
67116         don't necessarily interpret stat-fails+lstat-succeeds as indicating
67117         a dangling symlink.  That can also happen at least for ELOOP.
67118         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
67119         FYI, this bug predates the inclusion of fts.c in coreutils.
67120
67121         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
67122         in their own block, so pre-c99 compilers don't object.
67123
67124         Avoid the double-free (first in fts_read, second in fts_close) that
67125         would occur when an `active' directory is made inaccessible (e.g.,
67126         via chmod a-x) during a traversal.
67127         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67128         before returning.  Reproduce this failure by
67129         mkdir -p a/b; cd a; chmod a-x . b
67130         Reported by Stavros Passas.
67131
67132 2006-01-25  Jim Meyering  <jim@meyering.net>
67133
67134         * lib/fileblocks.c: Remove more useless parentheses.
67135         * lib/readutmp.h: Likewise.
67136
67137 2006-01-25  Bruno Haible  <bruno@clisp.org>
67138
67139         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
67140         warnings.
67141         Reported by Paul Eggert.
67142
67143 2006-01-25  Bruno Haible  <bruno@clisp.org>
67144
67145         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
67146         rid of a trap command. For Solaris sh.
67147         Reported by Mark D. Baushke <mdb@gnu.org>.
67148
67149 2006-01-24  Simon Josefsson  <jas@extundo.com>
67150
67151         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
67152         Bruno.
67153
67154 2006-01-24  Karl Berry  <karl@gnu.org>
67155
67156         * config/srclist.txt (argp-namefrob.h): sync lost.
67157
67158 2006-01-24  Jim Meyering  <jim@meyering.net>
67159
67160         * modules/openat (Files): Add lib/intprops.h.
67161         From Mark D. Baushke.
67162
67163 2006-01-24  Jim Meyering  <jim@meyering.net>
67164
67165         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
67166         Reported by Mark D. Baushke.
67167
67168 2006-01-24  Jim Meyering  <jim@meyering.net>
67169
67170         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
67171
67172 2006-01-24  Bruno Haible  <bruno@clisp.org>
67173
67174         * modules/strnlen (Maintainer): Change from glibc to all.
67175
67176 2006-01-24  Bruno Haible  <bruno@clisp.org>
67177
67178         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
67179         Patch by Paul Eggert.
67180
67181 2006-01-24  Bruno Haible  <bruno@clisp.org>
67182
67183         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
67184         already has it.
67185         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
67186         2005-11-26.
67187
67188         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
67189         'signed char' to avoid problems with the built-in _Bool type.
67190         Reported by Paul Eggert on 2005-11-26.
67191
67192 2006-01-24  Bruno Haible  <bruno@clisp.org>
67193
67194         * gnulib-tool (func_import): Avoid constructing complicated sed
67195         expressions inside backquote.
67196         Report and solution by Mark D. Baushke <mdb@gnu.org>.
67197
67198 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
67199
67200         These changes imported from libc.
67201         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
67202         test and two separate function calls.
67203         * lib/strndup.c (__strndup): Add libc_hidden_def.
67204
67205 2006-01-23  Simon Josefsson  <jas@extundo.com>
67206
67207         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67208         Remove the test_*_SOURCES variable: automake infers it by default.
67209         * modules/tls-tests: Likewise.
67210
67211 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67212
67213         Work around porting bugs reported by Dieter in
67214         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67215         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67216         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67217         Include "getopt.h" first, to check interface.
67218         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67219         !HAVE_DECL_GETENV.
67220         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67221         (__strndup): Revert to K&R-style function dfns, the glibc style.
67222         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67223         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67224         Include strnlen.h first, to get prototype properly.
67225         (strnlen): Renamed from __strnlen.
67226         Remove weak alias.
67227
67228 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67229
67230         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67231
67232 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67233
67234         * config/srclist.txt: Adjust to reflect glibc reorganization.
67235         This affects only comments.
67236
67237 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67238
67239          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67240          Reported by Bruce Korb <bkorb@gnu.org>.
67241
67242 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67243
67244         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67245         to pacify gcc -Wswitch-default.
67246
67247 2006-01-22  Bruno Haible  <bruno@clisp.org>
67248
67249         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67250         temporary buffer for sprintf, take into account the precision also
67251         for 'd', 'i', 'u', 'o', 'x', 'X'.
67252
67253 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67254
67255         * modules/argp-tests: New module
67256         * tests/test-argp.c: New file
67257         * tests/test-argp-2.sh: New file
67258
67259 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67260
67261         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67262         (__argp_base_name): Removed
67263         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67264         typo.
67265         (__argp_base_name): Provide macro definition or extern declaration
67266         depending on the configuration
67267
67268 2006-01-20  Simon Josefsson  <jas@extundo.com>
67269
67270         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67271
67272 2006-01-20  Simon Josefsson  <jas@extundo.com>
67273
67274         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67275
67276 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67277
67278         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67279         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67280         Suggested by Bruno Haible.
67281
67282 2006-01-20  Karl Berry  <karl@gnu.org>
67283
67284         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67285         until changes propagate, I guess.
67286
67287 2006-01-19  Simon Josefsson  <jas@extundo.com>
67288
67289         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67290
67291 2006-01-19  Simon Josefsson  <jas@extundo.com>
67292
67293         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67294
67295 2006-01-19  Simon Josefsson  <jas@extundo.com>
67296
67297         * gnulib-tool: Set check_PROGRAMS.
67298
67299         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67300         modules/des-tests, modules/gc-arcfour-tests,
67301         modules/gc-arctwo-tests, modules/gc-des-tests,
67302         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67303         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67304         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67305         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67306         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67307         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67308         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67309         test_*_SOURCES.
67310
67311 2006-01-18  Simon Josefsson  <jas@extundo.com>
67312
67313         * modules/socklen (Depends-on): Depend on sys_socket.
67314
67315 2006-01-18  Simon Josefsson  <jas@extundo.com>
67316
67317         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67318         modules/des-tests, modules/gc-arcfour-tests,
67319         modules/gc-arctwo-tests, modules/gc-des-tests,
67320         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67321         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67322         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67323         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67324         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67325         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67326         $(EXEEXT) to automake TESTS variable, for mingw32.
67327
67328 2006-01-17  Simon Josefsson  <jas@extundo.com>
67329
67330         * modules/socklen (Include): Need sys/socket.h.
67331
67332 2006-01-17  Bruno Haible  <bruno@clisp.org>
67333
67334         * modules/ssize_t (Include): Add <sys/types.h>.
67335
67336 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67337
67338         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67339         it's not portable and it doesn't work with cross-compiles.
67340         Problem reported by Bruno Haible.  Fix missing-$ typo in
67341         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67342         -zignore from being used with Sun's C compiler.
67343
67344 2006-01-12  Simon Josefsson  <jas@extundo.com>
67345
67346         * lib/base64.c: Fix warning, reported by Bruno Haible
67347         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67348
67349 2006-01-12  Bruno Haible  <bruno@clisp.org>
67350
67351         * modules/ldd: New file.
67352         * build-aux/ldd.sh.in: New file.
67353         * MODULES.html.sh (Support for building libraries and executables): Add
67354         ldd.
67355
67356 2006-01-12  Bruno Haible  <bruno@clisp.org>
67357
67358         * m4/ldd.m4: New file.
67359
67360 2006-01-12  Bruno Haible  <bruno@clisp.org>
67361
67362         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67363         endless loop while replacing $auxdir with build-aux.
67364
67365 2006-01-11  Simon Josefsson  <jas@extundo.com>
67366
67367         * lib/stdint_.h (SIZE_MAX): Add missing (.
67368
67369 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67370
67371         Sync from coreutils.
67372         * lib/md5.c: Fix commentary typos.
67373         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67374         * lib/md5.h (__attribute__): Remove; unused.
67375         * lib/sha1.c: Fix commentary to match md5 better.
67376         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67377         so that we don't need to worry about alignment.  All uses changed.
67378         This merges the 2005-10-28 md5 change into sha1.
67379
67380 2006-01-11  Jim Meyering  <jim@meyering.net>
67381
67382         Sync from coreutils.
67383         * lib/md5.c (OP): Fix spacing.
67384
67385 2006-01-11  Bruno Haible  <bruno@clisp.org>
67386
67387         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67388         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67389         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67390
67391 2006-01-11  Bruno Haible  <bruno@clisp.org>
67392
67393         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67394         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67395         the "early" section as well.
67396
67397 2006-01-11  Bruno Haible  <bruno@clisp.org>
67398
67399         Avoid "ar: no archive members specified" error on MacOS X.
67400         * gnulib-tool (func_modules_add_dummy): New function.
67401         (func_import, func_create_testdir): Invoke it.
67402
67403 2006-01-11  Bruno Haible  <bruno@clisp.org>
67404
67405         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67406         with $auxdir in AC_CONFIG_FILES statements.
67407
67408 2006-01-11  Bruno Haible  <bruno@clisp.org>
67409
67410         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67411         Initialize also noinst_HEADERS to empty.
67412
67413 2006-01-11  Bruno Haible  <bruno@clisp.org>
67414
67415         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67416         variables.
67417         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67418         autoreconf.
67419
67420 2006-01-11  Bruno Haible  <bruno@clisp.org>
67421
67422         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67423         overridable by the user.
67424         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67425
67426 2006-01-10  Simon Josefsson  <jas@extundo.com>
67427
67428         * modules/sys_socket: New file.
67429
67430 2006-01-10  Simon Josefsson  <jas@extundo.com>
67431
67432         * m4/sys_socket_h.m4: New file.
67433
67434 2006-01-10  Simon Josefsson  <jas@extundo.com>
67435
67436         * lib/socket_.h: New file.
67437
67438 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67439
67440         * modules/readutmp (Maintainer): Add myself.
67441
67442 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67443
67444         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67445         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67446         People who are still concerned with buggy memcmp implementations
67447         can invoke gl_FUNC_MEMCMP themselves.
67448
67449 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67450
67451         * lib/regex_internal.h (BITSET_WORD_BITS):
67452         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67453         preprocessor mishandles large unsigned values as if they were signed.
67454         Problem reported by Claudio Fontana in
67455         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67456
67457 2006-01-10  Jim Meyering  <jim@meyering.net>
67458
67459         Avoid the double-free (first in fts_read, second in fts_close) that
67460         would occur when an `active' directory is made inaccessible (e.g.,
67461         via chmod a-x) during a traversal.
67462         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67463         before returning.  Reproduce this failure by
67464         mkdir -p a/b; cd a; chmod a-x . b
67465         Reported by Stavros Passas.
67466
67467         Sync from coreutils.
67468         * lib/sha1.c: Tweak grammar in a comment.
67469
67470 2006-01-10  Jim Meyering  <jim@meyering.net>
67471
67472         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67473         Patch by Joerg Sonnenberger.
67474
67475 2006-01-10  Bruno Haible  <bruno@clisp.org>
67476
67477         * modules/readutmp: Depend on module free.
67478         * modules/strtok_r: Depend on module restrict.
67479
67480 2006-01-10  Bruno Haible  <bruno@clisp.org>
67481
67482         * modules/gettext (configure.ac): Add an invocation of
67483         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67484
67485 2006-01-10  Bruno Haible  <bruno@clisp.org>
67486
67487         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67488         Reported by Werner Lemberg <wl@gnu.org>.
67489
67490 2006-01-10  Bruno Haible  <bruno@clisp.org>
67491
67492         * lib/localcharset.c: Update from GNU gettext.
67493
67494 2006-01-10  Bruno Haible  <bruno@clisp.org>
67495
67496         * lib/argp.h (__const): Remove macro. Use const instead.
67497         * lib/argp-fmtstream.h (__const): Likewise.
67498         * lib/glob_.h (__const): Remove macro.
67499         * lib/glob-libc.h: Use const instead of __const.
67500
67501 2006-01-10  Bruno Haible  <bruno@clisp.org>
67502
67503         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67504         variable.
67505         Needed to avoid an automake error regarding the 'gettext' module.
67506
67507 2006-01-09  Simon Josefsson  <jas@extundo.com>
67508
67509         * modules/inet_ntop (Depends-on): Add restrict.
67510
67511 2006-01-09  Simon Josefsson  <jas@extundo.com>
67512
67513         * modules/gc-rijndael-tests (License): Put under LGPL.
67514
67515         * modules/gc-des-tests (License): Likewise.
67516
67517         * modules/gc-arcfour-tests (License): Likewise.
67518
67519         * modules/gc-arctwo-tests (License): Likewise.
67520
67521         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67522
67523         * modules/gc-hmac-sha1-tests (Files): Likewise.
67524
67525         * modules/gc-hmac-md5-tests (License): Likewise.
67526
67527         * modules/gc-sha1-tests (License): Likewise.
67528
67529         * modules/gc-md5-tests (License): Likewise.
67530
67531         * modules/gc-md4-tests (License): Likewise.
67532
67533         * modules/gc-md2-tests (License): Likewise.
67534
67535         * modules/gc-tests (License): Likewise.
67536
67537         * modules/des-tests (License): Likewise.
67538
67539         * modules/md4-tests (License): Likewise.
67540
67541         * modules/md2-tests (License): Likewise.
67542
67543 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67544
67545         Sync from coreutils:
67546
67547         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67548         * modules/lib-ignore: New file.
67549         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67550         chdir-safer.m4, lchmod.m4.
67551         * modules/openat: Add mkdirat.c, openat-priv.h.
67552
67553 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67554
67555         Sync from coreutils.
67556         * m4/lib-ignore.m4: New file.
67557         * m4/lchmod.m4: New file.
67558
67559 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67560
67561         Sync from coreutils.
67562         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67563         for write access: POSIX says that must fail.
67564         * lib/fts.c (diropen): Likewise.
67565         * lib/save-cwd.c (save_cwd): Likewise.
67566         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67567         well, for minor improvements on hosts that lack O_DIRECTORY.
67568         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67569         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67570         Fall back on chown if open failed with EACCES.
67571
67572         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67573         Report an error at compile-time if only a 1-second nominal clock
67574         resolution is found.
67575
67576         * lib/lchmod.h: New file.
67577         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67578         (make_dir_parents): Use lchown rather than chown, and
67579         lchmod rather than chmod.
67580
67581         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67582         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67583         "proc" reported by n0dalus.
67584
67585         * lib/mountlist.c: Include <limits.h>.
67586         (dev_from_mount_options)
67587         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67588         New function.  It no longer assumes "dev=" has the System V meaning
67589         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67590         (read_file_system_list)
67591         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67592         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67593         dev= in that case.
67594
67595         * lib/posixtm.h (PDS_PRE_2000): New macro.
67596         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67597         allow_century.  All usages changed.  Reject dates outside the range
67598         1969-1999 if PDS_PRE_2000 is used.
67599
67600 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67601
67602         Sync from coreutils.
67603         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67604         (Time of day items): Mention the possibility of leap seconds.
67605         Problem reported by Dr. David Alan Gilbert.
67606
67607 2006-01-09  Jim Meyering  <jim@meyering.net>
67608
67609         Sync from coreutils.
67610
67611         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67612
67613         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67614
67615         * lib/modechange.c (mode_compile): Reject an invalid mode string
67616         that starts with an octal digit.  From Andreas Gruenbacher.
67617
67618         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67619         and dup to open_safer and dup_safer, respectively.
67620         (openat_permissive): Fix typo in comment.
67621
67622         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67623         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67624         (_): Remove; no longer needed.
67625         (openat): Renamed from rpl_openat; no need for rpl_openat
67626         since openat.h renames openat for us.
67627         Replace most of the body with a call to openat_permissive,
67628         to avoid duplicate code.
67629         Port to (probably hypothetical) environments were mode_t is
67630         wider than int.
67631         (openat_permissive): Require mode arg, so that we can check
67632         types better.  Put it just after flags.  Change cwd failure
67633         indicator from pointer-to-bool to pointer-to-errno-value.
67634         All callers changed.
67635         Invoke openat_save_fail and/or openat_restore_fail if
67636         cwd_errno is null, so that openat can call us.
67637         (openat_permissive, fdopendir, fstatat, unlinkat):
67638         Simplify errno handling to avoid some duplicate code,
67639         as it's OK to set errno on success.
67640         * lib/openat.h: Revamp code so that function macros depend on
67641         __OPENAT_PREFIX only, not also on AT_FDCWD.
67642         (openat_ro): Remove.  Caller changed to use openat_permissive.
67643         (openat_permissive): Now a macro, if not a function.
67644         (openat_restore_fail, openat_save_fail): Now always functions,
67645         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67646
67647         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67648         and openat.c.
67649         * lib/mkdirat.c: Include openat-priv.h.
67650         Remove definitions of macros defined therein.
67651         * lib/openat.c: Likewise.
67652
67653         * lib/mkdirat.c (mkdirat): New file and function.
67654         * lib/openat.h (mkdirat): Declare.
67655
67656         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67657
67658         * lib/openat.h (openat_permissive): Declare.
67659         (openat_ro): Define.
67660
67661         * lib/openat.c (EXPECTED_ERRNO): New macro.
67662         (openat_permissive): New function -- used in remove.c rewrite.
67663         (all functions): Set errno just before returning, only if there
67664         was an actual failure.
67665         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67666
67667         Emulate openat-family functions using Linux's procfs, if possible.
67668         Idea and some code based on Ulrich Drepper's glibc changes.
67669
67670         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67671         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67672         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67673         before falling back on save_cwd and restore_cwd.
67674         (fdopendir, fstatat, unlinkat): Likewise.
67675
67676         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67677         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67678
67679         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67680         as second argument to va_arg.  Otherwise, some versions of gcc
67681         warn that `if this code is reached, the program will abort'.
67682
67683 2006-01-09  Jim Meyering  <jim@meyering.net>
67684
67685         Sync from coreutils.
67686         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67687         Require openat-priv.h.
67688
67689 2006-01-09  Bruno Haible  <bruno@clisp.org>
67690
67691         * modules/strnlen (Include): Use strnlen.h.
67692
67693 2006-01-09  Bruno Haible  <bruno@clisp.org>
67694
67695         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67696
67697 2006-01-09  Bruno Haible  <bruno@clisp.org>
67698
67699         * lib/sysexit_.h (EX_OK): New macro.
67700         Suggested by Martin Lambers <marlam@marlam.de>.
67701
67702 2006-01-09  Bruno Haible  <bruno@clisp.org>
67703
67704         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67705         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67706
67707 2006-01-09  Bruno Haible  <bruno@clisp.org>
67708
67709         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67710         numbers.
67711
67712 2006-01-09  Bruno Haible  <bruno@clisp.org>
67713
67714         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67715         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67716         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67717         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67718
67719 2006-01-09  Bruno Haible  <bruno@clisp.org>
67720
67721         * build-aux/javacomp.sh.in: New file, moved from lib/.
67722         * modules/javacomp-script (Files): Update.
67723         (configure.ac): Add AC_CONFIG_FILES invocation.
67724         (EXTRA_DIST): Remove variable.
67725
67726         * build-aux/javaexec.sh.in: New file, moved from lib/.
67727         * modules/javaexec (Files): Update.
67728         (configure.ac): Add AC_CONFIG_FILES invocation.
67729         (EXTRA_DIST): Remove javaexec.sh.in.
67730
67731         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67732         * modules/csharpcomp-script (Files): Update.
67733         (configure.ac): Add AC_CONFIG_FILES invocation.
67734         (EXTRA_DIST): Remove variable.
67735
67736         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67737         * modules/csharpexec (Files): Update.
67738         (configure.ac): Add AC_CONFIG_FILES invocation.
67739         (EXTRA_DIST): Remove csharpexec.sh.in.
67740
67741 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67742
67743         Sync from coreutils.
67744
67745         Add POSIX ACL support
67746         * lib/acl.h (copy_acl, set_acl): Add declarations.
67747         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67748         systems other than Linux.
67749         (chmod_or_fchmod): New function: use fchmod when possible,
67750         and chmod otherwise.
67751         (file_has_acl): Add a POSIX ACL implementation, with a
67752         Linux-specific subcase.
67753         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67754         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67755         acls are unsupported.
67756         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67757         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67758         are unsupported.
67759
67760 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67761
67762         Sync from coreutils.
67763         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67764
67765 2006-01-07  Bruno Haible  <bruno@clisp.org>
67766
67767         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67768         gl_EARLY.
67769
67770 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67771
67772         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67773         Problem reported for Mingw by Mark Junker.
67774
67775 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67776
67777         * README: Gnulib normally doesn't generate a tarball.
67778
67779 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67780
67781         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
67782         long int, not int, for nanosecond counts, so that people who are
67783         used to POSIX struct timespec won't be surprised.  Reported by Jim
67784         Meyering.
67785
67786 2005-12-28  Bruno Haible  <bruno@clisp.org>
67787
67788         * build-aux/config.rpath: Update from GNU gettext.
67789
67790 2005-12-16  Jim Meyering  <jim@meyering.net>
67791
67792         * modules/fprintftime: New module.
67793         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
67794
67795 2005-12-16  Jim Meyering  <jim@meyering.net>
67796
67797         * m4/fprintftime.m4: New file.
67798
67799 2005-12-16  Jim Meyering  <jim@meyering.net>
67800
67801         * lib/fprintftime.c, lib/fprintftime.h: New files.
67802
67803 2005-12-15  Simon Josefsson  <jas@extundo.com>
67804
67805         * modules/socklen (configure.ac): Fix M4 macro name, to align with
67806         new m4/socklen.m4.
67807
67808 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67809
67810         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
67811         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
67812
67813 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67814
67815         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
67816         * lib/argp-help.c (fill_in_uparams): Check if the constructed
67817         struct uparams is valid. Fall back to the default values if it is
67818         not.
67819
67820 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67821
67822         * modules/argp (Files): Add argp-pin.c
67823         (Depends-on): dirname
67824         (lib_SOURCES): Add argp-pin.c
67825
67826 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67827
67828         * m4/argp.m4:  Check if program_invocation_name and
67829         program_invocation_short_name are declared and define appropriate
67830         macros if they are not.
67831
67832 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67833
67834         * lib/argp-help.c (__argp_base_name): New function
67835         (__argp_short_program_name): Rewrite using __argp_base_name
67836         * lib/argp-namefrob.h: Define program_invocation_name and
67837         program_invocation_short_name if requested
67838         (__argp_base_name): Add prototype
67839         * lib/argp-parse.c (argp_def): Use gettext wrappers
67840         (argp_default_parser): Use __argp_base_name
67841         * lib/argp-pin.c: New file. Defines program_invocation_name and
67842         program_invocation_short_name on systems that lack them.
67843
67844 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67845
67846         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
67847         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67848         porting problem reported by Georg Schwarz in
67849         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67850
67851 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67852
67853         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
67854         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67855         porting problem reported by Georg Schwarz in
67856         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67857
67858 2005-12-05  Bruno Haible  <bruno@clisp.org>
67859
67860         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
67861         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
67862         Reported by Mark Junker <mjscod@gmx.de>.
67863
67864 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67865
67866         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
67867         Use implementation from Albert Chin, with some
67868         comments/corrections by Stepan Kasal and myself.
67869
67870 2005-12-02  Bruno Haible  <bruno@clisp.org>
67871
67872         * gnulib-tool (func_import): Accept GPLed build tool modules when
67873         --lgpl is given.
67874         * modules/csharpcomp-script: New file.
67875         * modules/csharpcomp: Depend on it.
67876         * modules/javacomp-script: New file.
67877         * modules/javacomp: Depend on it.
67878         Suggested by Simon Josefsson.
67879
67880 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
67883         statement, to work around an HP-UX 10.20 compiler bug reported by
67884         Peter O'Gorman.
67885
67886 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67887
67888         * modules/savedir (Depends-on): Add openat.
67889
67890 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67891
67892         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
67893         (uintmax_t) [defined uintmax_t]: Do not declare.
67894         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
67895         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
67896         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
67897         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
67898         sake of portability to weird hosts that C allows (though we don't
67899         know of any practical examples).
67900
67901         * lib/savedir.h (fdsavedir): New decl.
67902         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
67903         contains most of the former guts of savedir.
67904         (savedir): Use savedirstream.
67905         Include "openat.h".
67906
67907 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67908
67909         * modules/obstack (Files): Add m4/ulonglong.m4.
67910         Problem reported by Davide Angelocola.
67911
67912 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
67913
67914         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
67915         coreutils no longer futzes with rounding modes.
67916
67917 2005-11-14  Jim Meyering  <jim@meyering.net>
67918
67919         * lib/mkstemp-safer.c: Include <config.h>, required for possible
67920         replacement of mkstemp.
67921
67922 2005-11-10  Simon Josefsson  <jas@extundo.com>
67923
67924         * lib/readline.c: Remove EOL.
67925
67926 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67927
67928         * modules/gethrxtime (Depends-on): Add gettime.
67929
67930 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67931
67932         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
67933         or gettimeofday; no longer needed.
67934
67935 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67936
67937         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
67938         time business.
67939         (gethrxtime) [! (HAVE_NANOUPTIME
67940         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
67941         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
67942         our own approximation.
67943
67944 2005-11-08  Eric Blake  <ebb9@byu.net>
67945
67946         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67947
67948 2005-11-08  Eric Blake  <ebb9@byu.net>
67949
67950         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67951
67952 2005-11-04  Bruno Haible  <bruno@clisp.org>
67953
67954         * gnulib-tool: Implement --update mode.
67955
67956 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67957
67958         Fix porting problem reported by Theodoros V. Kalamatianos.
67959         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
67960         Don't assume that futimes failing means we must fail.
67961
67962 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67963
67964         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
67965         variables to suggest the intended function of the PATH_MAX check.
67966
67967 2005-10-30  Kean Johnston  <jkj@sco.com>
67968
67969         Trivial changes to support SCO systems.
67970         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
67971         as PATH_MAX.
67972         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
67973         where __ptr is null when no I/O is pending.
67974
67975 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67976
67977         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
67978         leave errno alone.  Problem reported by Dmitry V. Levin.
67979
67980 2005-10-28  Simon Josefsson  <jas@extundo.com>
67981
67982         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
67983         Test more.
67984
67985         * tests/test-gc-md2.c, tests/test-md2.c: New files.
67986
67987         * modules/md2, modules/md2-tests: New files.
67988
67989 2005-10-28  Simon Josefsson  <jas@extundo.com>
67990
67991         * m4/inet_ntop.m4: More tests.
67992
67993         * m4/gc-md2.m4, md2.m4: New file.
67994
67995 2005-10-28  Simon Josefsson  <jas@extundo.com>
67996
67997         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
67998         "restrict" keywords, as per POSIX.  Protect the function
67999         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
68000         Don't use K&R prototypes.  Check the sprintf return values.
68001         Re-define EAFNOSUPPORT if not present.  Indent.
68002
68003         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
68004         suggested by Bruno Haible <bruno@clisp.org>.
68005
68006         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
68007
68008         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
68009
68010         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
68011         libgcrypt).
68012
68013         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
68014
68015         * lib/md2.h, lib/md2.c: New files.
68016
68017 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
68018
68019         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
68020         errno alone.  Problem reported by Frederic Jolliton.
68021
68022 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68023
68024         * modules/verify (License): Change from GPL to LGPL.  This is a
68025         tiny module and there are apparently near-equivalents that are
68026         under the BSD license.
68027
68028 2005-10-24  Simon Josefsson  <jas@extundo.com>
68029
68030         * modules/sha1: Relicense to LGPL.
68031
68032 2005-10-24  Simon Josefsson  <jas@extundo.com>
68033
68034         * lib/md4.h: Shrink buffer size, now that we changed the type.
68035
68036 2005-10-23  Simon Josefsson  <jas@extundo.com>
68037
68038         * gnulib-tool (func_import): Fix --tests-base.
68039
68040 2005-10-22  Simon Josefsson  <jas@extundo.com>
68041
68042         * modules/arcfour (Depends-on): Need stdint.
68043
68044 2005-10-22  Simon Josefsson  <jas@extundo.com>
68045
68046         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
68047         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
68048
68049 2005-10-22  Simon Josefsson  <jas@extundo.com>
68050
68051         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
68052         suggested by Bruno Haible <bruno@clisp.org>.
68053
68054 2005-10-22  Simon Josefsson  <jas@extundo.com>
68055
68056         * lib/crc.h: Include stddef.h, for size_t.
68057
68058 2005-10-22  Simon Josefsson  <jas@extundo.com>
68059
68060         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
68061         arcfour_context struct (simplify test vector testing in GNU
68062         Shishi).
68063
68064 2005-10-21  Simon Josefsson  <jas@extundo.com>
68065
68066         * modules/des, modules/des-tests: New files.
68067
68068         * modules/gc-des, modules/gc-des-tests: New files.
68069
68070         * tests/test-des.c, tests/test-gc-des.c: New file.
68071
68072 2005-10-21  Simon Josefsson  <jas@extundo.com>
68073
68074         * modules/arctwo, modules/arctwo-tests: New files.
68075
68076         * tests/test-arctwo.c: New file.
68077
68078         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
68079
68080         * tests/test-gc-arctwo.c: New file.
68081
68082 2005-10-21  Simon Josefsson  <jas@extundo.com>
68083
68084         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
68085         Bruno Haible <bruno@clisp.org>.
68086
68087         * m4/gc-des.m4: New file.
68088
68089 2005-10-21  Simon Josefsson  <jas@extundo.com>
68090
68091         * m4/arctwo.m4: New file.
68092
68093         * m4/gc-arctwo.m4: New file.
68094
68095 2005-10-21  Simon Josefsson  <jas@extundo.com>
68096
68097         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
68098         block.
68099
68100 2005-10-21  Simon Josefsson  <jas@extundo.com>
68101
68102         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
68103         <bruno@clisp.org>.
68104
68105         * lib/hmac-sha1.c (hmac_sha1): Likewise.
68106
68107         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
68108         Bruno Haible <bruno@clisp.org>.
68109
68110         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
68111         <bruno@clisp.org>.
68112
68113 2005-10-21  Simon Josefsson  <jas@extundo.com>
68114
68115         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
68116
68117 2005-10-21  Simon Josefsson  <jas@extundo.com>
68118
68119         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
68120
68121 2005-10-21  Simon Josefsson  <jas@extundo.com>
68122
68123         * lib/des.h, lib/des.c: New files.
68124
68125         * lib/gc-gnulib.c: Support DES.c
68126
68127 2005-10-21  Simon Josefsson  <jas@extundo.com>
68128
68129         * lib/arctwo.h, lib/arctwo.c: New files.
68130
68131         * lib/gc-gnulib.c: Support ARCTWO.
68132
68133 2005-10-21  Simon Josefsson  <jas@extundo.com>
68134
68135         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
68136         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68137
68138 2005-10-21  Simon Josefsson  <jas@extundo.com>
68139
68140         * gnulib-tool (func_import, func_create_testdir): Define automake
68141         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
68142         Makefile.am snippet),
68143         suggested by Bruno Haible <bruno@clisp.org>.
68144
68145         * modules/gc (Makefile.am): Use it.
68146
68147 2005-10-21  Bruno Haible  <bruno@clisp.org>
68148
68149         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
68150         patch.
68151
68152 2005-10-19  Simon Josefsson  <jas@extundo.com>
68153
68154         * tests/test-gc-rijndael.c: New file.
68155
68156         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
68157
68158 2005-10-19  Simon Josefsson  <jas@extundo.com>
68159
68160         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
68161         interface too.
68162
68163 2005-10-19  Simon Josefsson  <jas@extundo.com>
68164
68165         * tests/test-gc-arcfour.c: New file.
68166
68167         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
68168
68169 2005-10-19  Simon Josefsson  <jas@extundo.com>
68170
68171         * modules/gc-md4, modules/gc-md4-tests: New file.
68172
68173         * tests/test-gc-md4.c: New file.
68174
68175 2005-10-19  Simon Josefsson  <jas@extundo.com>
68176
68177         * m4/gc-md4.m4: New file.
68178
68179 2005-10-19  Simon Josefsson  <jas@extundo.com>
68180
68181         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
68182         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
68183         <kasal@ucw.cz>.
68184
68185 2005-10-19  Simon Josefsson  <jas@extundo.com>
68186
68187         * m4/gc-arcfour.m4: New file.
68188
68189         * m4/gc-rijndael.m4: New file.
68190
68191 2005-10-19  Simon Josefsson  <jas@extundo.com>
68192
68193         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
68194
68195 2005-10-19  Simon Josefsson  <jas@extundo.com>
68196
68197         * lib/gc-gnulib.c: Support ARCFOUR.
68198
68199 2005-10-19  Simon Josefsson  <jas@extundo.com>
68200
68201         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
68202         support.
68203
68204         * lib/gc.h: Add ECB enum type.
68205
68206         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68207
68208 2005-10-18  Simon Josefsson  <jas@extundo.com>
68209
68210         * tests/test-md5.c: New file.
68211
68212         * modules/md5-tests: New file.
68213
68214 2005-10-18  Simon Josefsson  <jas@extundo.com>
68215
68216         * tests/test-md4.c: New file.
68217
68218         * modules/md4, modules/md4-tests: New files.
68219
68220 2005-10-18  Simon Josefsson  <jas@extundo.com>
68221
68222         * m4/md4.m4: New file.
68223
68224 2005-10-18  Simon Josefsson  <jas@extundo.com>
68225
68226         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68227
68228 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68229
68230         * gnulib-tool (func_create_testdir): Omit the second check whether
68231         BUILT_SOURCES in nonempty.
68232
68233 2005-10-17  Simon Josefsson  <jas@extundo.com>
68234
68235         * tests/test-rijndael.c: New file.
68236
68237 2005-10-17  Simon Josefsson  <jas@extundo.com>
68238
68239         * modules/sha1: Depend on stdint instead of md5.
68240
68241         * modules/md5: Depend on stdint, remove uint32_t.
68242
68243 2005-10-17  Simon Josefsson  <jas@extundo.com>
68244
68245         * modules/gc-sha1-tests: New file.
68246
68247         * tests/test-gc-sha1.c: New file.
68248
68249 2005-10-17  Simon Josefsson  <jas@extundo.com>
68250
68251         * m4/md5.m4: Remove call to uint32_t.m4.
68252
68253 2005-10-17  Simon Josefsson  <jas@extundo.com>
68254
68255         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68256
68257         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68258         md5.h.
68259
68260         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68261
68262         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68263
68264 2005-10-17  Simon Josefsson  <jas@extundo.com>
68265
68266         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68267
68268 2005-10-17  Simon Josefsson  <jas@extundo.com>
68269
68270         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68271
68272 2005-10-17  Simon Josefsson  <jas@extundo.com>
68273
68274         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68275
68276         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68277
68278 2005-10-17  Bruno Haible  <bruno@clisp.org>
68279
68280         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68281         that it can also be used in a test.
68282
68283 2005-10-16  Bruno Haible  <bruno@clisp.org>
68284
68285         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68286         TESTS_ENVIRONMENT, so that individual tests can augment it.
68287
68288         * gnulib-tool (func_create_testdir): Use an intermediate target for
68289         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68290         macros, like $(ALLOCA_H), which cannot be passed through the command
68291         line.
68292
68293 2005-10-15  Simon Josefsson  <jas@extundo.com>
68294
68295         * modules/rijndael-tests: New file.
68296
68297         * modules/rijndael: New file.
68298
68299 2005-10-15  Simon Josefsson  <jas@extundo.com>
68300
68301         * m4/rijndael.m4: New file.
68302
68303 2005-10-15  Simon Josefsson  <jas@extundo.com>
68304
68305         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68306
68307         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68308
68309 2005-10-14  Simon Josefsson  <jas@extundo.com>
68310
68311         * tests/test-arcfour.c: New file.
68312
68313         * modules/arcfour, modules/arcfour-tests: New files.
68314
68315 2005-10-14  Simon Josefsson  <jas@extundo.com>
68316
68317         * m4/arcfour.m4: New file.
68318
68319 2005-10-14  Simon Josefsson  <jas@extundo.com>
68320
68321         * lib/arcfour.h, lib/arcfour.c: New files.
68322
68323 2005-10-14  Roland McGrath  <roland@redhat.com>
68324
68325         Import from libc.  [BZ #1331]
68326         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68327         macro argument.
68328         Reported by Matej Vela <vela@debian.org>.
68329
68330 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68331
68332         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68333         include <wchar.h>; no longer needed.
68334
68335 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68336
68337         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68338
68339 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68340         and  Ulrich Drepper  <drepper@redhat.com>
68341
68342         Import from libc.
68343         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68344         instead of inline stream orientation test and two separate
68345         function calls.  Pay no attention to USE_IN_LIBIO.
68346
68347 2005-10-13  Simon Josefsson  <jas@extundo.com>
68348
68349         * modules/gc-hmac-md5-tests: New file.
68350
68351         * tests/test-gc-hmac-sha1.c: New file.
68352
68353         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68354
68355         * modules/gc-hmac-md5-tests: New file.
68356
68357         * tests/test-gc-md5.c: New file.
68358
68359         * modules/gc-md5-tests: New file.
68360
68361 2005-10-13  Simon Josefsson  <jas@extundo.com>
68362
68363         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68364         Move memory allocation outside of loop.
68365
68366 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68367
68368         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68369         intermediate directory is in a read-only file system.  Problem
68370         reported by Eric Blake.
68371
68372 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68373
68374         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68375
68376 2005-10-12  Simon Josefsson  <jas@extundo.com>
68377
68378         * tests/test-hmac-sha1.c: New file.
68379
68380         * modules/hmac-sha1-tests: New file.
68381
68382         * modules/hmac-sha1: New file.
68383
68384 2005-10-12  Simon Josefsson  <jas@extundo.com>
68385
68386         * modules/gc-sha1: New file.
68387
68388 2005-10-12  Simon Josefsson  <jas@extundo.com>
68389
68390         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68391
68392         * tests/test-gc-pbkdf2-sha1.c: New file.
68393
68394 2005-10-12  Simon Josefsson  <jas@extundo.com>
68395
68396         * modules/gc-md5, modules/gc-hmac-md5: New files.
68397
68398         * modules/gc (Files): Remove md5, memxor and hmac files.
68399
68400 2005-10-12  Simon Josefsson  <jas@extundo.com>
68401
68402         * m4/gc-pbkdf2-sha1.m4: New file.
68403
68404         * m4/gc-hmac-sha1.m4: New file.
68405
68406         * m4/gc-sha1: New file.
68407
68408         * m4/hmac-sha1.m4: New file.
68409
68410 2005-10-12  Simon Josefsson  <jas@extundo.com>
68411
68412         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68413
68414         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68415
68416 2005-10-12  Simon Josefsson  <jas@extundo.com>
68417
68418         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68419         suggested by Bruno Haible <bruno@clisp.org>.
68420
68421 2005-10-12  Simon Josefsson  <jas@extundo.com>
68422
68423         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68424
68425 2005-10-12  Simon Josefsson  <jas@extundo.com>
68426
68427         * lib/gc-pbkdf2-sha1.c: New file.
68428
68429         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68430
68431 2005-10-12  Simon Josefsson  <jas@extundo.com>
68432
68433         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68434
68435         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68436
68437 2005-10-12  Simon Josefsson  <jas@extundo.com>
68438
68439         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68440         GC_USE_HMAC_MD5, respectively.
68441
68442         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68443         (gc_md5): Fix typo.
68444
68445         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68446
68447         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68448
68449         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68450
68451 2005-10-12  Bruno Haible  <bruno@clisp.org>
68452
68453         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68454         Reported by Stepan Kasal <kasal@ucw.cz>.
68455
68456 2005-10-11  Simon Josefsson  <jas@extundo.com>
68457
68458         * tests/test-crc.c: New file.
68459
68460         * modules/crc, modules/crc-tests: New files.
68461
68462 2005-10-11  Simon Josefsson  <jas@extundo.com>
68463
68464         * m4/crc.m4: New file.
68465
68466 2005-10-11  Simon Josefsson  <jas@extundo.com>
68467
68468         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68469
68470         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68471
68472         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68473
68474 2005-10-11  Simon Josefsson  <jas@extundo.com>
68475
68476         * lib/crc.h, lib/crc.c: New files.
68477
68478         * lib/gc.h (gc_hash_buffer): Add doc.
68479
68480 2005-10-11  Bruno Haible  <bruno@clisp.org>
68481
68482         * modules/c-strcasestr: New file.
68483         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68484
68485 2005-10-11  Bruno Haible  <bruno@clisp.org>
68486
68487         * modules/c-strcase: New file.
68488         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68489
68490 2005-10-11  Bruno Haible  <bruno@clisp.org>
68491
68492         * lib/strcasecmp.c: Include limits.h.
68493         (strcasecmp): Avoid integer overflow on exotic platforms.
68494         * lib/strncasecmp.c: Include limits.h.
68495         (strncasecmp): Avoid integer overflow on exotic platforms.
68496         Reported by Paul Eggert.
68497
68498 2005-10-11  Bruno Haible  <bruno@clisp.org>
68499
68500         * lib/c-strcasestr.h: New file, from GNU gettext.
68501         * lib/c-strcasestr.c: New file, from GNU gettext.
68502
68503 2005-10-11  Bruno Haible  <bruno@clisp.org>
68504
68505         * lib/c-strcase.h: New file, from GNU gettext.
68506         * lib/c-strcasecmp.c: New file, from GNU gettext.
68507         * lib/c-strncasecmp.c: New file, from GNU gettext.
68508
68509 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68510
68511         * modules/mempcpy (License): GPL -> LGPL.
68512         * modules/strchrnul (License): Likewise.
68513         * modules/sysexits (License): Likewise.
68514
68515 2005-10-08  Simon Josefsson  <jas@extundo.com>
68516
68517         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68518
68519 2005-10-07  Simon Josefsson  <jas@extundo.com>
68520
68521         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68522
68523 2005-10-06  Simon Josefsson  <jas@extundo.com>
68524
68525         * tests/test-hmac-md5.c: New file.
68526
68527         * modules/hmac-md5-tests: New file.
68528
68529         * modules/hmac-md5: New file.
68530
68531 2005-10-06  Simon Josefsson  <jas@extundo.com>
68532
68533         * m4/hmac-md5.m4: New file.
68534
68535         * m4/memxor.m4: Require gl_C_RESTRICT.
68536
68537 2005-10-06  Simon Josefsson  <jas@extundo.com>
68538
68539         * lib/memxor.c (memxor): Avoid casts and warnings.
68540
68541 2005-10-06  Simon Josefsson  <jas@extundo.com>
68542
68543         * lib/hmac-md5.c: New file.
68544
68545         * lib/hmac.h: New file.
68546
68547 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68548
68549         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68550         promotes to int, not unsigned int, to catch the AIX 5.3
68551         compiler bug.
68552
68553 2005-10-05  Simon Josefsson  <jas@extundo.com>
68554
68555         * modules/memxor: New file.
68556
68557         * modules/iconv (Files): Move config.rpath to havelib, it is used
68558         there.
68559
68560         * modules/havelib (Files): Add config.rpath.
68561
68562 2005-10-05  Simon Josefsson  <jas@extundo.com>
68563
68564         * m4/memxor.m4: New file.
68565
68566 2005-10-05  Simon Josefsson  <jas@extundo.com>
68567
68568         * lib/memxor.c (memxor): Fix compiler error.
68569
68570         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68571         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68572
68573         * lib/memxor.h, lib/memxor.c: New files.
68574
68575         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68576         we assume all systems have it, suggested by Jim Meyering
68577         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68578         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68579         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68580         same reasons.
68581
68582 2005-10-05  Simon Josefsson  <jas@extundo.com>
68583
68584         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68585
68586 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68587
68588         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68589         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68590         needed, since the source code now assumes these .h files.
68591
68592 2005-10-05  Derek Price  <derek@ximbiot.com>
68593
68594         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68595
68596 2005-10-05  Bruno Haible  <bruno@clisp.org>
68597
68598         * modules/stdint (License): Change to LGPL.
68599
68600 2005-10-04  Simon Josefsson  <jas@extundo.com>
68601
68602         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68603         D. Baushke" <mdb@gnu.org>.
68604
68605 2005-10-04  Bruno Haible  <bruno@clisp.org>
68606
68607         * lib/verify.h (verify_true): Provide alternative definition for C++.
68608
68609 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68610
68611         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68612         (SSIZE_MAX): New macro, if not already defined.
68613         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68614         than 2 GiB.
68615
68616 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68617
68618         Sync from coreutils.
68619         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68620         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68621         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68622         ULLONG_MAX doesn't work with 2.7.2.1.
68623
68624 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68625
68626         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68627         From Ben Pfaff.
68628
68629         * modules/exclude (Depends-on): Depend on verify.
68630         * modules/strtoimax (Depends-on): Likewise.
68631         * modules/utimecmp (Depends-on): Likewise.
68632
68633 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68634
68635         * lib/exclude.c: Include verify.h.
68636         (verify): Remove.  All callers changed to use verify.h's version.
68637         * lib/strtoimax.c: Likewise.
68638         * lib/utimecmp.c: Likewis.e
68639
68640         Sync from coreutils.
68641         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68642         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68643         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68644         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68645         bother returning ENOSYS if settimeofday or stime fails; just let
68646         them return whatever errno they want to return.
68647         * lib/utimens.c: Include unistd.h, for dup2.
68648         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68649         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68650
68651 2005-10-02  Jim Meyering  <jim@meyering.net>
68652
68653         Sync from coreutils.
68654         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68655         from glibc-2.2.5 that fails for read-only files.
68656
68657 2005-10-02  Jim Meyering  <jim@meyering.net>
68658
68659         Sync from coreutils.
68660         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68661         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68662         `#if HAVE_CONFIG_H'.
68663         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68664         Remove AT_FDCWD test.
68665         Do not consume the fd unless successful.
68666         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68667         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68668         block, so that we don't even try to compile it if settimeofday is
68669         available.  This works around a compilation failure on OSF1 V5.1,
68670         due to stime requiring a `long int*' while tv_sec is `int'.
68671
68672 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68673
68674         Sync from coreutils.
68675         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68676         against `yes', rather than just testing for nonempty.
68677
68678 2005-10-01  Simon Josefsson  <jas@extundo.com>
68679
68680         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68681         and Darwin.
68682
68683         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68684         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68685         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68686         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68687         Check if struct addrinfo is declared.
68688
68689 2005-10-01  Simon Josefsson  <jas@extundo.com>
68690
68691         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68692         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68693         AI_* and EAI_* definitions.  Protect function declarations.
68694
68695 2005-10-01  Jim Meyering  <jim@meyering.net>
68696
68697         Sync from coreutils.
68698
68699         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68700         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68701         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68702         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68703         in the inet and nsl libraries.  Required on Solaris 5.7.
68704
68705 2005-10-01  Jim Meyering  <jim@meyering.net>
68706
68707         Sync from coreutils.
68708         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68709         in the inet and nsl libraries.  Required on Solaris 5.7.
68710
68711 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68712
68713         * lib/getdelim.c (getdelim): Remove unused variables.
68714
68715 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68716
68717         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68718         so that the code works even with ancient cpp.  Portability problem
68719         with GCC 2.7.2.1 reported by Thomas M.Ott.
68720
68721 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68722
68723         * modules/regex (Depends-on): Add strcase.
68724
68725         * modules/gethostname (Licence): Change from GPL to LGPL, since
68726         gethostname.c is a trivial implementation of a standard library
68727         function.
68728         * modules/poll (License): Change from GPL to LGPL, since it's
68729         derived from LGPL code.
68730
68731 2005-09-27  Jim Meyering  <jim@meyering.net>
68732
68733         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68734         HAVE_CONFIG_H.
68735
68736         * lib/intprops.h (signed_type_or_expr__): Define.
68737         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68738         for unsigned types.
68739
68740 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68741
68742         * lib/verify.h (verify_expr): Remove, replacing with:
68743         (verify_true): New macro that returns true instead of void.
68744         (verify_type__): Remove.
68745         (verify): Use verify_true rather than verify_type__.
68746
68747 2005-09-26  Bruno Haible  <bruno@clisp.org>
68748
68749         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68750         is necessary.
68751         (lib_SOURCES): Remove mbchar.c.
68752         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68753         (Files): Add m4/mbrtowc.m4.
68754         * modules/mbiter: Likewise.
68755         * modules/mbuiter: Likewise.
68756
68757 2005-09-26  Bruno Haible  <bruno@clisp.org>
68758
68759         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68760         compile mbchar.c if they are not both present.
68761         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68762         * m4/mbiter.m4 (gl_MBITER): Likewise.
68763         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68764         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68765         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68766
68767 2005-09-25  Jim Meyering  <jim@meyering.net>
68768
68769         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68770         also uses socklen_t.
68771
68772 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68773
68774         * lib/utimens.c (ENOSYS): Define if not already defined.
68775         (futimens): Support having a null PATH if the file descriptor
68776         is nonnegative.
68777
68778         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68779         Remove.
68780         (__attribute): Define to empty unless GCC 3.1 or later.
68781         This works around a core dump on OpenBSD 3.4, which has GCC
68782         2.95.3, which dumps core when given __attribute__(()).  It also
68783         simplifies other tests, since we really don't want to bother with
68784         worrying about which ancient version of GCC supported what.
68785         Original problem reported by Yoann Vandoorselaere, with part of
68786         the fix suggested by Derek Price.
68787
68788 2005-09-24  Jim Meyering  <jim@meyering.net>
68789
68790         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
68791         so we can once again use a positive bitfield width of 1 -- now we
68792         don't have to explain why we were using a bitfield width of 2.
68793
68794 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68795
68796         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
68797         and similarly for the other external symbols.  Problem reported
68798         by James Gallager.
68799
68800         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
68801         bug reported by Jim Meyering.
68802
68803         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
68804         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
68805         not needed, since socklen is a prerequisite module.
68806
68807 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68808
68809         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
68810         Problem reported by Eric Blake.
68811         (getaddrinfo): Initialize se so that it's not garbage.
68812         Redo internal storage allocation so that it doesn't make unportable
68813         assumptions about alignment.
68814         Fix a memory leak.
68815
68816         * lib/utimens.c (futimens): Use futimesat if available.
68817         Prefer it to futimes since it doesn't have the futimes bug.
68818
68819         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
68820         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
68821         Instead, declare a function that returns a pointer to an array,
68822         and use verify_type__ to declare the size of the array.
68823         Problem and germ of a solution reported by Bruno Haible.
68824         (verify_type__): Use 2, not 1, for bitfield size, to avoid
68825         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
68826
68827 2005-09-23  Jim Meyering  <jim@meyering.net>
68828
68829         Sync from coreutils.
68830         Correct build failure (socklen_t not defined) on at least
68831         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
68832         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
68833
68834 2005-09-23  Jim Meyering  <jim@meyering.net>
68835
68836         * modules/getaddrinfo (Depends-on): Add socklen.
68837
68838 2005-09-23  Bruno Haible  <bruno@clisp.org>
68839
68840         * tests/test-verify.c: New file.
68841
68842 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68843
68844         Sync from coreutils.
68845
68846         * modules/argmatch (Depends-on): Add verify.
68847         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
68848         unistd-safer.
68849         * modules/save-cwd (Depends-on): Likewise.
68850
68851         * modules/openat (Files): Add lib/openat-die.c.
68852         (Depends-on): Remove error, exitfail.
68853         Add dirname.
68854
68855         * modules/verify: New file.
68856         * MODULES.html.sh (Diagnostics <assert.h>): New section,
68857         with "verify" module.
68858
68859 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68860
68861         Sync from coreutils.
68862
68863         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
68864         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
68865         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
68866         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
68867         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
68868         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
68869         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
68870         Don't bother checking for string.h, stdlib.h, unistd.h.
68871         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
68872         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
68873         module's job.
68874         * m4/jm-macros.m4 (gl_MACROS): Likewise.
68875         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
68876
68877         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
68878         (gl_GETDATE): Use it.
68879
68880         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
68881
68882 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68883
68884         Sync from coreutils.
68885
68886         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
68887         stat-time.h.
68888         * lib/argmatch.h: Include verify.h
68889         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
68890         (ARGMATCH_ASSERT): Remove; unused.
68891         * lib/canonicalize.c: Assume STDC_HEADERS.
68892         * lib/exclude.c: Include "strcase.h".
68893         * lib/regex_internal.h [!defined _LIBC]: Likewise.
68894         * lib/getusershell.c: Include stdio--.h rather than stdio.h
68895         and stdio-safer.h.
68896         (getusershell): Call fopen, not fopen_safer.
68897         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
68898         Do not include unistd-safer.h.
68899         (save_cwd): Don't call fd_safer; no longer needed
68900         now that we include fcntl--.h.
68901
68902         * lib/getdate.y (relative_time): New type.
68903         (RELATIVE_TIME_0): New constant.
68904         (parser_control): Use relative_time instead of doing it ourselves.
68905         (%union): Add new relative_time rel member.
68906         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
68907         Now typeless.
68908         (relunit, relunit_snumber): Now of type rel.
68909         (zone, rel, relunit, get_date): Adjust to above changes.
68910
68911         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
68912         Do not include unistd-safer.h.
68913         (getloadavg): Don't call fd_safer; no longer needed
68914         now that we include fcntl--.h.
68915
68916         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
68917         (make_dir_parents): Treat ENOSYS like EEXIST.
68918
68919         Improve quality of diagnostics on restore_cwd failure.
68920         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
68921         (make_dir_parents): Last arg is now int * (for errno), not bool *.
68922         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
68923         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
68924         each time through the loop.  Do not diagnose restore_cwd failure;
68925         that is the caller's job (and perhaps the caller does not care).
68926
68927         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
68928         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
68929         If the file already exists but is not a directory, don't bother
68930         to try to make its parents.
68931         Close potential file descriptor leak if we can't chdir("/") (!).
68932         Don't always return true if chdir($PWD) fails; return true only
68933         if the requested action was done successfully (except for the
68934         chdir($PWD)).
68935         Don't log final directory unless we actually made it.
68936         Refactor to avoid duplicate code to fix up permissions.
68937         Don't attempt to fix up parent permissions if chdir($PWD) fails.
68938
68939         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
68940         to make it a bit faster and (I hope) clearer.
68941         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
68942         Fix bug in formats like %2N.
68943
68944         * lib/verify.h: New file.
68945
68946 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68947
68948         Sync from coreutils.
68949         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
68950
68951 2005-09-22  Jim Meyering  <jim@meyering.net>
68952
68953         Sync from coreutils.
68954
68955         * m4/lstat.m4 (gl_FUNC_LSTAT):
68956         Use AC_LIBSOURCES to require lstat.c and lstat.h.
68957         Remove obsolete comment.
68958         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
68959         * m4/xstrtod.m4: Likewise.
68960
68961         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
68962
68963 2005-09-22  Jim Meyering  <jim@meyering.net>
68964
68965         Sync from coreutils.
68966
68967         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
68968
68969         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
68970         the .tm_year member, since otherwise gcc-4.0 would now warn about
68971         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
68972
68973         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
68974         order to avoid an unsuppressible warning from gcc on 64-bit systems.
68975
68976         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
68977         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
68978         when run in a time zone for which daylight savings time is in effect
68979         for the starting date.
68980
68981         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
68982         stop us from restricting permissions of just-created absolute-named
68983         directories.
68984         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
68985         to restore initial working directory.
68986         * lib/mkdir-p.c (make_dir_parents): New parameter:
68987         different_working_dir, to tell caller if/when we change the working
68988         directory and are unable to return to the initial one.
68989         * lib/mkdir-p.h (make_dir_parents): Update prototype.
68990         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
68991         `return false'.  This fixes a bug introduced on 2004-07-30.
68992
68993         * lib/openat.c (fdopendir): Be sure to close the supplied
68994         file descriptor before returning.  This makes our replacement
68995         implementation a little closer to Solaris's, where fdopendir
68996         ties the file descriptor to the returned DIR* pointer.
68997         * lib/openat.c (unlinkat): New function.
68998         * lib/openat.h (unlinkat): Add prototype.
68999         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
69000         (openat_restore_fail): Rename from openat_restore_die.
69001         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
69002
69003         Provide an alternative to exiting immediately upon save_cwd or
69004         restore_cwd failure.  Now, an application can arrange e.g.,
69005         to perform a longjump in that case.
69006         * lib/openat.c: Include dirname.h.
69007         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
69008         (rpl_openat, fdopendir, fstatat): Call openat_save_die
69009         and openat_restore_die rather than calling error directly.
69010         Don't include "error.h" or "exitfail.h"; they're no longer needed.
69011
69012         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
69013         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
69014         define.
69015
69016         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
69017         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
69018                             int utc, int nanoseconds);
69019         Background:
69020         date should not have to allocate a megabyte of virtual memory to
69021         handle a format argument like +%1048575T.  When implemented with
69022         strftime, it must allocate such a buffer, use strftime to fill it
69023         in, print it, then free it.
69024         With fprintftime, it simply prints everything and exits.
69025         With no need for memory allocation, that's one fewer way to fail.
69026         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69027         optional field width, not before, so we accept %9:z, not %:9z.
69028         (my_strftime): Be sure to use L_('x') for literals.
69029
69030         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
69031         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
69032         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
69033         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
69034         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
69035         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
69036         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
69037         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
69038         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
69039         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
69040         * lib/xgethostname.c, lib/xreadlink.c:
69041         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
69042
69043         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
69044         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
69045         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
69046         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69047         and don't include <sys/file.h>).
69048
69049 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
69050
69051         Sync from coreutils.
69052
69053         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
69054         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
69055         [!LDAV_DONE]: Avoid unused variable warning.
69056
69057 2005-09-21  Bruno Haible  <bruno@clisp.org>
69058
69059         * lib/unicodeio.h (unicode_to_mb): New declaration.
69060
69061 2005-09-20  Derek Price  <derek@ximbiot.com>
69062
69063         * lib/getaddrinfo.c: Don't include <netdb.h> included from
69064         getaddrinfo.h.
69065
69066 2005-09-20  Bruno Haible  <bruno@clisp.org>
69067
69068         * gnulib-tool: Remove trailing slashes from the values specified for
69069         --source-base, --m4-base, --tests-base, --aux-dir.
69070         Suggested by Simon Josefsson <jas@extundo.com>.
69071
69072 2005-09-20  Bruno Haible  <bruno@clisp.org>
69073
69074         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
69075         func_modules_to_filelist, func_import, func_create_testdir): Make all
69076         sorting results locale-independent, so that gnulib-cache.m4 doesn't
69077         change when gnulib-tool is invoked in a different locale.
69078
69079 2005-09-19  Simon Josefsson  <jas@extundo.com>
69080
69081         * m4/socklen.m4: Fix typo.
69082
69083 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69084
69085         Use a consistent style for including <config.h>.
69086         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
69087         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
69088         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
69089         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
69090         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
69091         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
69092         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
69093         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
69094         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
69095         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
69096         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
69097         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
69098         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
69099         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
69100         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
69101         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
69102         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
69103         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
69104         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
69105         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
69106         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
69107         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
69108         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
69109         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
69110         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
69111         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
69112         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
69113         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
69114         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
69115         lib/xstrtoumax.c, lib/yesno.c:
69116         Standardize inclusion of config.h.
69117         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
69118         lib/inttostr.h:  Removed inclusion of config.h from header files.
69119         * lib/inttostr.c:  Adjusted in-tree users.
69120         * lib/timespec.h: Remove superfluous warning to include config.h.
69121         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
69122         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
69123         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
69124         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
69125         config.h with HAVE_CONFIG_H.
69126
69127 2005-09-19  Jim Meyering  <jim@meyering.net>
69128
69129         * modules/pathmax (License): Change to LGPL.
69130
69131 2005-09-19  Derek Price  <derek@ximbiot.com>
69132
69133         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
69134
69135 2005-09-19  Bruno Haible  <bruno@clisp.org>
69136
69137         * gnulib-tool (import): Provide default for --tests-base.
69138
69139 2005-09-19  Bruno Haible  <bruno@clisp.org>
69140
69141         * doc/quote.texi: New file, extracted from gnulib.texi.
69142         * doc/ctime.texi: New file, extracted from gnulib.texi.
69143         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
69144         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
69145         * doc/gnulib.texi: Include them.
69146
69147 2005-09-18  Bruno Haible  <bruno@clisp.org>
69148
69149         Portability fix.
69150         * gnulib-tool (func_readlink): New function.
69151         (func_ln_if_changed): Use it.
69152
69153 2005-09-18  Bruno Haible  <bruno@clisp.org>
69154
69155         * gnulib-tool: Support --with-tests also with --import.
69156         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
69157         (func_import): Use variables $testsbase and $inctests. Emit a
69158         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
69159         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
69160         SUBDIRS += $testsdir.
69161         (func_create_testdir): Update.
69162
69163 2005-09-18  Bruno Haible  <bruno@clisp.org>
69164
69165         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
69166         instead of $dry_run.
69167         (func_cp_if_changed, func_mv_if_changed): Remove functions.
69168         (func_ln_if_changed): Don't handle dry-run here.
69169         (func_import): In dry-run mode, detect more precisely which actions
69170         would be performed, and don't use "...ing" verbs.
69171
69172 2005-09-18  Bruno Haible  <bruno@clisp.org>
69173
69174         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
69175         (func_import): Use join on two temporary files instead of three nested
69176         loops, in order to determine which files are new or old.
69177
69178 2005-09-18  Bruno Haible  <bruno@clisp.org>
69179
69180         * gnulib-tool (func_import): Comment out code that spits out the
69181         new files with --dry-run.
69182
69183 2005-09-18  Bruno Haible  <bruno@clisp.org>
69184
69185         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
69186
69187 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69188
69189         * lib/stat-time.h: New file.
69190         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
69191         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
69192         in a different way.
69193         (timespec_cmp): New function.
69194         * lib/utimecmp.c: Include stat-time.h.
69195         (SYSCALL_RESOLUTION): Depend on whether various struct stat
69196         members exist, not on the obsolescent ST_MTIM_NSEC.
69197         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
69198
69199 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69200
69201         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
69202
69203 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69204
69205         * MODULES.html.sh (File system functions): Add stat-time.
69206         * modules/stat-time: New file.
69207         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69208         is now done in a different way, by the stat-time module.
69209         * modules/utimecmp (Depends-on): Add stat-time.
69210
69211 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69212
69213         * m4/st_mtim.m4: Remove.  Superseded by...
69214         * m4/stat-time.m4: New file.
69215         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69216         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69217
69218 2005-09-15  Derek Price  <derek@ximbiot.com>
69219
69220         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69221
69222 2005-09-15  Derek Price  <derek@ximbiot.com>
69223
69224         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69225         * lib/regex_internal.c: Ditto, using this...
69226         (__GNUC_PREREQ): ...new macro.
69227         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69228         using...
69229         (__GNUC_PREREQ): ...this new macro.
69230
69231         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69232
69233 2005-09-15  Derek Price  <derek@ximbiot.com>
69234             Paul Eggert  <eggert@cs.ucla.edu>
69235
69236         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69237         changes, consolidating in...
69238         * lib/regex_internal.h: ...this file.
69239
69240 2005-09-13  Jim Meyering  <jim@meyering.net>
69241
69242         * lib/canon-host.c: Filter through gnu indent and reword comments
69243         slightly.
69244         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69245
69246 2005-09-13  Derek Price  <derek@ximbiot.com>
69247
69248         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69249         failure.
69250         Reported by Jim Meyering  <jim@meyering.net>.
69251
69252 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69253
69254         * lib/base64.c: Typo.
69255         (base64_encode): Put b64str in initialized data section.
69256
69257 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69258
69259         Merge glibc and coreutils changes into gnulib, plus a few
69260         extra fixes.
69261         * lib/md5.c: Use #error rather than a string.
69262         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69263         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69264         (__attribute__): Define to empty for non recent-GCC.
69265         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69266         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69267         Renamed from their non-__ counterparts, with new macros replacing
69268         them if not _LIBC.  Add __THROW attribute.
69269         (rol): Remove.
69270         (struct md5_ctx): Align buffer if using GCC.
69271         * lib/sha1.h (struct sha1_ctx): Likewise.
69272         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69273         The old name was backwards.
69274         (NOTSWAP): Remove; not used.
69275         (rol): New macro, moved here from md5.h.
69276         (sha1_process_block): Remove a FIXME that doesn't make sense.
69277
69278 2005-09-12  Derek Price  <derek@ximbiot.com>
69279
69280         Return usable errors from canon-host.
69281         * lib/canon-host.h: New file.
69282         * lib/canon-host.c (canon_host): Wrap...
69283         (canon_host_r): ...this new function, which now relies exclusively on
69284         getaddrinfo.
69285         (ch_strerror): New function.
69286         (last_cherror): New global.
69287         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69288         interface.
69289         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69290         void *.
69291         (freeaddrinfo): Free ai->ai_canonname when set.
69292
69293 2005-09-12  Derek Price  <derek@ximbiot.com>
69294
69295         Make canon-host require getaddrinfo.
69296         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69297         AC_LIBSOURCE canon-host.h.  Call...
69298         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69299         gl_GETADDRINFO.
69300         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69301
69302 2005-09-12  Derek Price  <derek@ximbiot.com>
69303
69304         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69305         LGPL.
69306         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69307
69308 2005-09-12  Derek Price  <derek@ximbiot.com>
69309
69310         * lib/gai_strerror.c: Include config.h when available.  Include
69311         getaddrinfo.h before other headers to test interface.
69312         Reported by Larry Jones <lawrence.jones@ugs.com>.
69313
69314 2005-09-12  Derek Price  <derek@ximbiot.com>
69315             Paul Eggert  <eggert@cs.ucla.edu>
69316
69317         * modules/glob (Files): Add glob-libc.h.
69318
69319 2005-09-12  Derek Price  <derek@ximbiot.com>
69320             Paul Eggert  <eggert@cs.ucla.edu>
69321
69322         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69323         glob_.h, glob-libc.h.
69324         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69325
69326 2005-09-12  Derek Price  <derek@ximbiot.com>
69327             Paul Eggert  <eggert@cs.ucla.edu>
69328
69329         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69330         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69331         protecting things that should be done only in gnulib contexts.
69332         * lib/glob_.h: New file, containing only the glob things needed for
69333         gnulib.
69334         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69335         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69336         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69337         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69338         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69339         and to respect the namespace rules better.
69340
69341 2005-09-08  Simon Josefsson  <jas@extundo.com>
69342
69343         * modules/socklen: New file.
69344
69345 2005-09-08  Simon Josefsson  <jas@extundo.com>
69346
69347         * m4/socklen.m4: New file.
69348
69349 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69350
69351         * modules/utimens (Files): Add m4/utimbuf.m4, since
69352         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69353         Reported by Sergey Poznyakoff.
69354
69355 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69356
69357         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69358         definitions, since that's the preferred style in glibc.
69359         Fix a minor spacing issue, and update copyright notice to match
69360         glibc's.
69361
69362 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69363
69364         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69365
69366 2005-09-06  Simon Josefsson  <jas@extundo.com>
69367
69368         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69369         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69370
69371 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69372
69373         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69374         warning.
69375
69376 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69377
69378         * config/srclist.txt: Add glibc bug 1302.
69379
69380 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69381
69382         Change bitset word type from unsigned int to unsigned long int,
69383         as this has better performance on typical 64-bit hosts.
69384         Port bitset code to hosts with unusual word sizes.
69385         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69386         (build_collating_symbol):
69387         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69388         argument is a bitset.  This is merely a style issue, but it makes
69389         it clearer that an entire array is expected.
69390         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69391         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69392         Port to the case where bitset_word is not the same as unsigned int.
69393         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69394         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69395         Likewise.
69396         * lib/regexec.c (check_dst_limits_calc_pos_1,
69397         check_subexp_matching_top):
69398         (build_trtable, group_nodes_into_DFAstates):
69399         Likewise.
69400         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69401         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69402         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69403         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69404         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69405         * lib/regcomp.c (optimize_subexps, lower_subexp):
69406         Work even if bitset_word has holes in its bitwise representation.
69407         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69408         * lib/regexec.c (check_dst_limits_calc_pos_1,
69409         check_subexp_matching_top):
69410         Likewise.
69411         * lib/regex_internal.c (re_string_reconstruct):
69412         Don't assume UCHAR_MAX == 255.
69413         * lib/regex_internal.h (bitset_set_all): Likewise.
69414         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69415         All uses changed.
69416         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69417         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69418         All uses changed.
69419         (BITSET_WORD_MAX): New macro.
69420         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69421         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69422         (bitset_empty, bitset_copy):
69423         Prefer sizeof (bitset) to multiplying it out ourselves.
69424         (bitset_not_merge): Remove; unused.
69425         (bitset_contain): Return bool, not unsigned int with one bit on.
69426         All callers changed.
69427         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69428         alignment than re_node_set; do this by defining a new internal
69429         type struct dests_alloc and using it to allocate memory.
69430
69431 2005-09-05  Bruno Haible  <bruno@clisp.org>
69432
69433         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69434         links.
69435
69436 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69437
69438         * modules/size_max (Makefile.am): Add size_max.h
69439
69440 2005-09-04  Derek Price  <derek@ximbiot.com>
69441
69442         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69443
69444 2005-09-03  Simon Josefsson  <jas@extundo.com>
69445
69446         * gnulib-tool: Fix typo.
69447
69448 2005-09-03  Simon Josefsson  <jas@extundo.com>
69449
69450         * config/srclist.txt: Add glibc bug 1293.
69451
69452 2005-09-03  Derek Price  <derek@ximbiot.com>
69453
69454         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69455         From Larry Jones <lawrence.jones@ugs.com>.
69456
69457 2005-09-02  Simon Josefsson  <jas@extundo.com>
69458
69459         * modules/socklen: New file.
69460
69461 2005-09-02  Simon Josefsson  <jas@extundo.com>
69462
69463         * modules/havelib: New module.
69464
69465         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69466         Use havelib.
69467
69468 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         Check for arithmetic overflow when calculating sizes, to prevent
69471         some buffer-overflow issues.  These patches are conservative, in the
69472         sense that when I couldn't determine whether an overflow was possible,
69473         I inserted a run-time check.
69474         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69475         macros.
69476         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69477         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69478         (re_xnrealloc, re_x2nrealloc): New inline functions.
69479         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69480         parse_bracket_exp):
69481         (build_equiv_class, build_charclass): Check for arithmetic overflow
69482         in size expression calculations.
69483         * lib/regex_internal.c (re_string_realloc_buffers):
69484         (build_wcs_upper_buffer, re_node_set_add_intersect):
69485         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69486         (re_dfa_add_node, register_state): Likewise.
69487         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69488         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69489         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69490         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69491
69492 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69495         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69496
69497 2005-09-02  Bruno Haible  <bruno@clisp.org>
69498
69499         Support for lib vs. lib64 distinction on biarch platforms.
69500         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69501         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69502         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69503
69504 2005-09-02  Bruno Haible  <bruno@clisp.org>
69505
69506         * gnulib-tool (import): In the other first-use case, provide defaults
69507         as well.
69508
69509 2005-09-02  Bruno Haible  <bruno@clisp.org>
69510
69511         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69512         patches not yet found in the latest gettext release.
69513
69514 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69515
69516         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69517         to avoid a collision with bits/local_lim.h in glibc.
69518         All uses changed.  Problem reported by Dmitry V. Levin in
69519         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69520
69521         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69522         bugs in int versus size_t comparisons.
69523         (re_string_context_at): Fix bug where the code assumed that
69524         Idx is signed.
69525
69526         Use bool where appropriate.
69527         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69528         All callers changed.
69529         (calc_eclosure_iter): Likewise, for ROOT arg.
69530         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69531         (build_charclass_op): Likewise, for NON_MATCH arg.
69532         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69533         (re_string_construct_common): Likewise, for ICASE arg.
69534         * lib/regexec.c (re_search_2_stub, re_search_stub):
69535         Likewise, for RET_LEN arg.
69536         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69537         (set_regs): Likewise, for FL_BACKTRACK arg.
69538         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69539         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69540         (calc_eclosure_iter, parse_bracket_exp):
69541         Use bool for internal variables that are booleans.
69542         * lib/regexec.c (re_search_internal, check_matching,
69543         proceed_next_node):
69544         (set_regs, build_sifted_states, sift_states_bkref):
69545         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69546         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69547         (find_collation_sequence_value):
69548         Likewise.
69549         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69550         (re_node_set_compare):
69551         Return bool, not int. All callers changed.
69552         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69553         (build_trtable, check_node_accept): Likewise.
69554         * lib/regex_internal.h: Include stdbool.h.
69555
69556         Fix bugs uncovered when converting to bool.
69557         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69558         failure instead of charging ahead blindly.
69559         * lib/regex_internal.c (register_state): Likewise.
69560         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69561         for freeing internal storage.
69562         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69563         bitset pieces used as boolean, to avoid undefined behavior
69564         on hosts that do int overflow checking.
69565
69566 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69567
69568         * config/srclist.txt: Add glibc bugs 1285-1287.
69569
69570 2005-09-01  Jim Meyering  <jim@meyering.net>
69571
69572         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69573         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69574         Require gl_STAT_MACROS, too.
69575
69576 2005-09-01  Bruno Haible  <bruno@clisp.org>
69577
69578         * gnulib-tool (import): In the first-use case, provide defaults.
69579
69580 2005-09-01  Bruno Haible  <bruno@clisp.org>
69581
69582         * gnulib-tool (func_import): Remove the .tmp files.
69583
69584 2005-09-01  Bruno Haible  <bruno@clisp.org>
69585
69586         * gnulib-tool (func_import): Fix handling of symbolic links.
69587
69588 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69589
69590         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69591         old glibc regex code mishandles strings longer than 2**31 bytes.
69592         This patch fixes this when the regex code is used in gnulib
69593         (i.e., outside glibc).
69594
69595         This patch should not affect the use of the regex code inside
69596         glibc.  No doubt this problem also needs to be handled for glibc
69597         as well, but the result will be an incompatible change to the
69598         glibc ABI, and the old ABI will have to be supported too.  That
69599         can be the the subject for another patch.
69600
69601         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69602         governing whether the rest of this patch is active.  By default,
69603         the macro is disabled and the patch has no effect.
69604         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69605         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69606         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69607         (re_match_2, re_set_registers): Use the new types.
69608         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69609         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69610         New macros.
69611         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69612         (re_string_context_at, bin_tree_t, re_dfastate_t):
69613         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69614         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69615         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69616         (re_string_char_size_at, re_string_wchar_at):
69617         (re_string_elem_size_at):
69618         Use the new types and macros to port to 64-bit hosts.
69619         Use unsigned types for internal values, so that the code
69620         mostly works even for arrays larger than SSIZE_MAX.
69621         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69622         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69623         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69624         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69625         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69626         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69627         (calc_inveclosure, parse_dup_op, build_range_exp):
69628         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69629         (fetch_number, create_token_tree, mark_opt_subexp):
69630         Likewise.
69631         * lib/regex_internal.c (re_string_construct_common,
69632         create_ci_newstate):
69633         (create_cd_newstate, re_string_allocate, re_string_construct):
69634         (re_string_realloc_buffers, build_wcs_upper_buffer):
69635         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69636         (re_string_reconstruct, re_string_peek_byte_case):
69637         (re_string_fetch_byte_case, re_string_context_at):
69638         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69639         (re_node_set_init_copy, re_node_set_add_intersect):
69640         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69641         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69642         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69643         (re_acquire_state, re_acquire_state_context, register_state):
69644         Likewise.
69645         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69646         search_cur_bkref_entry):
69647         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69648         (re_search_internal, re_search_2_stub, re_search_stub)
69649         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69650         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69651         (update_cur_sifted_state, check_dst_limits):
69652         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69653         (check_subexp_limits, sift_states_bkref, merge_state_array):
69654         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69655         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69656         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69657         (expand_bkref_cache, check_node_accept_bytes):
69658         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69659         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69660         (acquire_init_state_context, check_halt_node_context):
69661         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69662         (sift_states_backward, clean_state_log_if_needed):
69663         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69664         (find_recover_state, transit_state_sb, transit_state_mb):
69665         (transit_state_bkref, build_trtable, match_ctx_clean):
69666         Likewise.
69667         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69668         to work around an assumption that REG_MISSING is negative.
69669
69670         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69671         (seek_collating_symbol_entry) [defined _LIBC]:
69672         (lookup_collation_sequence_value) [defined _LIBC]:
69673         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69674         Use prototypes rather than old-style function definitions.
69675         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69676         (transit_state_sb) [0]:
69677         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69678
69679         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69680         rm_eo.
69681
69682         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69683         (optimize_subexps, lower_subexp):
69684         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69685         since the signed shift might overflow.  Use 1u<<31 instead.
69686         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69687         Likewise.
69688         * lib/regexec.c (check_dst_limits_calc_pos_1,
69689         check_subexp_matching_top): Likewise.
69690
69691         * lib/regcomp.c (optimize_subexps, lower_subexp):
69692         Use CHAR_BIT rather than 8, for clarity.
69693         * lib/regexec.c (check_dst_limits_calc_pos_1):
69694         (check_subexp_matching_top): Likewise.
69695         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69696         have to worry about portability issues when shifting it left.
69697         Remove no-longer-needed test for table_size > 0.
69698         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69699         in a word, as the resulting behavior is undefined.
69700         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69701         in one case, a <= should have been an <, and in another case the
69702         whole test was missing.
69703         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69704         the standard name CHAR_BIT.
69705         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69706         this is not true on one's complement and signed-magnitude hosts.
69707
69708         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69709         next_last_offset.
69710         (struct re_dfa_t): Remove unused member states_alloc.
69711         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69712
69713 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69714
69715         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69716         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69717         and large-file glibc and in 32-bit large-file Solaris.
69718
69719 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69720
69721         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69722         lengths fit in regoff_t; this isn't true if regoff_t is the same
69723         width as size_t.
69724         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69725         (= START + RANGE) instead of RANGE.  This avoids overflow
69726         problems when regoff_t is the same width as size_t.
69727         All callers changed.
69728         (re_search_2_stub): Check for overflow when adding the
69729         sizes of the two strings.
69730         (re_search_stub): Check for overflow when adding START
69731         to RANGE; if it occurs, substitute the extreme value.
69732
69733 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69734
69735         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69736
69737 2005-08-31  Jim Meyering  <jim@meyering.net>
69738
69739         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69740         a pointer-to-const.
69741         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69742         (register_state): Likewise.
69743         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69744         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69745         (group_nodes_into_DFAstates): Likewise.
69746
69747 2005-08-31  Jim Meyering  <jim@meyering.net>
69748
69749         * check-module: Add a FIXME comment.
69750
69751 2005-08-31  Eric Blake  <ebb9@byu.net>
69752
69753         * modules/unistd-safer (Files): Add unistd--.h.
69754         * modules/stdio-safer (Files): Add stdio--.h.
69755
69756 2005-08-31  Derek Price  <derek@ximbiot.com>
69757
69758         * lib/getdelim.c (getdelim): Return EOF on EOF.
69759         Reported by Larry Jones <lawrence.jones@ugs.com>.
69760
69761 2005-08-31  Bruno Haible  <bruno@clisp.org>
69762
69763         Avoid unnecessary diffs in the generated lib/Makefile.am.
69764         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69765         the generated files.
69766         (func_import): Don't set cmd.
69767
69768 2005-08-31  Bruno Haible  <bruno@clisp.org>
69769
69770         * lib/strstr.c: Include <stddef.h>, for NULL.
69771         * lib/strcasestr.c: Likewise.
69772         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69773
69774 2005-08-31  Bruno Haible  <bruno@clisp.org>
69775
69776         * gnulib-tool: New option --macro-prefix.
69777         (func_import): Use macro_prefix.
69778         (import): Handle option --macro-prefix.
69779
69780 2005-08-31  Bruno Haible  <bruno@clisp.org>
69781
69782         * gnulib-tool (import): Rename most ac_* variables to cached_*.
69783         Also use new variables cached_lgpl, cached_libtool.
69784
69785 2005-08-31  Bruno Haible  <bruno@clisp.org>
69786
69787         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
69788         always instantiating them.
69789
69790 2005-08-31  Bruno Haible  <bruno@clisp.org>
69791
69792         * gnulib-tool (func_import): Read the previous cached settings
69793         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
69794         earlier added by gnulib but are now dropped. Warn when a gnulib file
69795         overwrites a non-gnulib file.
69796
69797 2005-08-31  Bruno Haible  <bruno@clisp.org>
69798
69799         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
69800         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
69801         projects that don't keep autogenerated files in CVS. Put into
69802         actioncmd only the specified modules, not the transitive closure.
69803
69804 2005-08-31  Bruno Haible  <bruno@clisp.org>
69805
69806         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
69807         Create directories that shall be filled.
69808         (import): Don't look for gl_* macros in configure.ac. Recurse across
69809         all directories containing a gnulib-cache.m4 files, if meaningful.
69810
69811 2005-08-31  Bruno Haible  <bruno@clisp.org>
69812
69813         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
69814         (import): Set seen_libtool when we see gl_LIBTOOL.
69815
69816 2005-08-31  Bruno Haible  <bruno@clisp.org>
69817
69818         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
69819         declaration macro definitions from generated gnulib.m4.
69820
69821 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
69822
69823         * lib/iconvme.h: Add prototype for iconv_alloc.
69824
69825 2005-08-29  Simon Josefsson  <jas@extundo.com>
69826
69827         * lib/iconvme.c: Fix errno.
69828
69829 2005-08-29  Bruno Haible  <bruno@clisp.org>
69830
69831         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
69832         that it works when the directory contains spaces.
69833
69834 2005-08-29  Bruno Haible  <bruno@clisp.org>
69835
69836         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
69837
69838 2005-08-29  Bruno Haible  <bruno@clisp.org>
69839
69840         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
69841         Emit more advice.
69842
69843 2005-08-29  Bruno Haible  <bruno@clisp.org>
69844         and Stepan Kasal  <kasal@ucw.cz>
69845
69846         * check-module: If more parameters are given, check each of them
69847         separately; add more exceptions, as noted by Jim Meyering.
69848         (check_module): New procedure.
69849         (%exempt_header): Now contains all exceptions.
69850
69851 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
69852
69853         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
69854
69855 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69856
69857         * lib/iconvme.c: Split iconv_string into iconv_alloc.
69858
69859 2005-08-28  Bruno Haible  <bruno@clisp.org>
69860
69861         * m4/gnulib-tool.m4: New file.
69862
69863 2005-08-27  Jim Meyering  <jim@meyering.net>
69864
69865         * modules/unistd-safer (Files): Add pipe-safer.c.
69866         * modules/fcntl-safer (Files): Add creat-safer.c.
69867
69868 2005-08-27  Jim Meyering  <jim@meyering.net>
69869
69870         * m4/stdlib-safer.m4: New file.  From coreutils.
69871         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
69872         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
69873         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
69874         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
69875         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
69876
69877 2005-08-27  Jim Meyering  <jim@meyering.net>
69878
69879         * lib/fopen-safer.c: Merge minor changes from coreutils.
69880         * lib/dup-safer.c: Likewise.
69881         * lib/fd-safer.c: Likewise.
69882
69883         Merge from coreutils.
69884         * lib/stdio--.h: New file.
69885         * lib/stdlib--.h: New file.
69886         * lib/mkstemp-safer.c: New file.
69887
69888         GNU tar needs these.
69889         * lib/pipe-safer.c: New file.
69890         * lib/creat-safer.c: New file.
69891         * lib/fcntl--.h (creat): Define to creat_safer.
69892         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
69893         * lib/unistd--.h (pipe): Define to pipe_safer.
69894         * lib/unistd-safer.h: Declare pipe_safer.
69895
69896 2005-08-26  Simon Josefsson  <jas@extundo.com>
69897
69898         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
69899         Haible <bruno@clisp.org>.
69900
69901 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         * lib/regex_internal.h: Remove all references to
69904         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
69905         or better.
69906         (bitset_not, bitset_merge, bitset_not_merge):
69907         (bitset_mask, re_string_allocate, re_string_construct):
69908         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
69909         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
69910         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
69911         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
69912         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69913         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69914         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
69915         (re_acquire_state_context):
69916         Remove unnecessary forward decls.
69917         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
69918         Put __attribute at function definition,
69919         now that the function decl has been removed.
69920         * lib/regex_internal.c (re_string_peek_byte_case):
69921         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
69922         Likewise.
69923
69924 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
69925
69926         * m4/regex.m4: Add AC_PREREQ(2.50).
69927         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
69928
69929 2005-08-25  Simon Josefsson  <jas@extundo.com>
69930
69931         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
69932         __fsetlocking.
69933
69934 2005-08-25  Simon Josefsson  <jas@extundo.com>
69935
69936         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
69937         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
69938         GLIBC specific code.
69939
69940 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69941
69942         Make regex safe for g++.  This fixes one real bug (an "err"
69943         that should have been "*err").  g++ problem reported by
69944         Sam Steingold.
69945         * lib/regex_internal.h (re_calloc): New macro, consistent with
69946         re_malloc etc.  All callers of calloc changed to use re_calloc.
69947         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
69948         not int.  All callers changed.
69949         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
69950         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
69951         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
69952         (find_recover_state): Change "err" to "*err"; this fixes what
69953         appears to be a real bug.
69954         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
69955         versus int.
69956
69957 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69958
69959         * modules/regex (Depends-on): Add malloc, since the code
69960         assumes that !malloc(0) means failure.
69961
69962 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
69965
69966         alloca modernization/simplification for regex.
69967         * lib/regex.c: Remove portability cruft for alloca.  This no longer
69968         needs to be at the start of the file, and can be moved into
69969         regex_internal.h and simplified.
69970         * lib/regex_internal.h: Include <alloca.h>.
69971         (__libc_use_alloca) [!defined _LIBC]: New macro.
69972         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
69973         now works outside glibc.
69974
69975 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69976
69977         * config/srclist.txt: Add glibc bugs 1241, 1245.
69978
69979 2005-08-25  Jim Meyering  <jim@meyering.net>
69980
69981         * lib/open-safer.c: Include <config.h>.
69982         Otherwise, we'd lose LARGEFILE support in any file using
69983         e.g. "fcntl--.h"
69984
69985 2005-08-25  Bruno Haible  <bruno@clisp.org>
69986
69987         * m4/minmax.m4: Require autoconf 2.52.
69988         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
69989         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
69990         alternatives of translit over the alphabet.
69991         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
69992
69993 2005-08-24  Simon Josefsson  <jas@extundo.com>
69994
69995         * tests/test-getpass.c: New file.
69996
69997 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69998
69999         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
70000         for GNU regex features.
70001
70002 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70003
70004         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
70005         * lib/regex.h (regerror): Likewise.
70006
70007         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
70008         requires this.  (The code never needed it.)
70009
70010         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
70011         All uses of recently-renamed identifiers changed to use the new,
70012         POSIX-compliant names.  The code will build and run just fine
70013         without these changes, but it's better to eat our own dog food
70014         and use the standard-conforming names.
70015
70016         * lib/regex.h: Fix a multitude of POSIX name space violations.
70017         These changes have an effect only for programs that define
70018         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
70019         do not change anything for programs compiled in the normal way.
70020         Also, there is no effect on the ABI.
70021
70022         (_REGEX_SOURCE): New macro.
70023         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70024         defined and _GNU_SOURCE is not; this fixes a name space violation.
70025
70026         Rename the following macros to obey POSIX requirements.
70027         The old names are still visible as macros if _REGEX_SOURCE is defined.
70028         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70029         RE_BACKSLASH_ESCAPE_IN_LISTS.
70030         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
70031         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
70032         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
70033         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
70034         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
70035         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
70036         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
70037         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
70038         (REG_INTERVALS): renamed from RE_INTERVALS.
70039         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
70040         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
70041         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
70042         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
70043         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
70044         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
70045         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
70046         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
70047         RE_UNMATCHED_RIGHT_PAREN_ORD.
70048         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
70049         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
70050         (REG_DEBUG): renamed from RE_DEBUG.
70051         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
70052         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
70053         unusual, since we can't clash with the POSIX REG_ICASE.
70054         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
70055         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
70056         (REG_NO_SUB): renamed from RE_NO_SUB.
70057         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
70058         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
70059         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
70060         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
70061         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
70062         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
70063         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
70064         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
70065         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
70066         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
70067         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
70068         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
70069         RE_SYNTAX_POSIX_MINIMAL_BASIC.
70070         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
70071         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
70072         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
70073         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
70074         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
70075         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
70076         (REG_FIXED): Renamed from REGS_FIXED.
70077         (REG_NREGS): Renamed from RE_NREGS.
70078
70079         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
70080         of other REG_* macros, since POSIX says the user is allowed to
70081         #undef these macros selectively.
70082
70083         (reg_errcode_t): Update comment stating what other tables need
70084         to be consistent.
70085
70086         Rename the following enum values to obey POSIX requirements.
70087         The old names are still visible as macros.
70088         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
70089         is not defined, since GNU is supposed to be a superset of POSIX as
70090         much as possible, and since we want reg_errcode_t to be a signed
70091         type for implementation consistency.
70092         (_REG_NOERROR): Renamed from REG_NOERROR.
70093         (_REG_NOMATCH): Renamed from REG_NOMATCH.
70094         (_REG_BADPAT): Renamed from REG_BADPAT.
70095         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
70096         (_REG_ECTYPE): Renamed from REG_ECTYPE.
70097         (_REG_EESCAPE): Renamed from REG_EESCAPE.
70098         (_REG_ESUBREG): Renamed from REG_ESUBREG.
70099         (_REG_EBRACK): Renamed from REG_EBRACK.
70100         (_REG_EPAREN): Renamed from REG_EPAREN.
70101         (_REG_EBRACE): Renamed from REG_EBRACE.
70102         (_REG_BADBR): Renamed from REG_BADBR.
70103         (_REG_ERANGE): Renamed from REG_ERANGE.
70104         (_REG_ESPACE): Renamed from REG_ESPACE.
70105         (_REG_BADRPT): Renamed from REG_BADRPT.
70106         (_REG_EEND): Renamed from REG_EEND.
70107         (_REG_ESIZE): Renamed from REG_ESIZE.
70108         (_REG_ERPAREN): Renamed from REG_ERPAREN.
70109         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
70110         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
70111         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
70112         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
70113
70114         (_REG_RE_NAME, _REG_RM_NAME): New macros.
70115         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
70116         changed.  But support the old name if the new one is not defined
70117         and if _REGEX_SOURCE.
70118
70119         Change the following member names in struct re_pattern_buffer.
70120         The old names are still supported if !_REGEX_SOURCE.
70121         The new names are always supported, regardless of _REGEX_SOURCE.
70122         (re_buffer): Renamed from buffer.
70123         (re_allocated): Renamed from allocated.
70124         (re_used): Renamed from used.
70125         (re_syntax): Renamed from syntax.
70126         (re_fastmap): Renamed from fastmap.
70127         (re_translate): Renamed from translate.
70128         (re_can_be_null): Renamed from can_be_null.
70129         (re_regs_allocated): Renamed from regs_allocated.
70130         (re_fastmap_accurate): Renamed from fastmap_accurate.
70131         (re_no_sub): Renamed from no_sub.
70132         (re_not_bol): Renamed from not_bol.
70133         (re_not_eol): Renamed from not_eol.
70134         (re_newline_anchor): Renamed from newline_anchor.
70135
70136         Change the following member names in struct re_registers.
70137         The old names are still supported if !_REGEX_SOURCE.
70138         The new names are always supported, regardless of _REGEX_SOURCE.
70139         (rm_num_regs): Renamed from num_regs.
70140         (rm_start): Renamed from start.
70141         (rm_end): Renamed from end.
70142
70143         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
70144         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
70145         Prepend __ to parameter names.
70146
70147         Undo yesterday's changes.
70148
70149 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70150
70151         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
70152         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
70153         lib/regex.c.
70154
70155 2005-08-24  Jim Meyering  <jim@meyering.net>
70156
70157         Sync from coreutils.
70158         * m4/fcntl-safer.m4: New file.
70159
70160         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
70161         and object files for this module.
70162
70163 2005-08-24  Jim Meyering  <jim@meyering.net>
70164
70165         Sync from coreutils.
70166         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
70167
70168 2005-08-24  Jim Meyering  <jim@meyering.net>
70169
70170         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
70171         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
70172
70173 2005-08-24  Jim Meyering  <jim@meyering.net>
70174
70175         * modules/fcntl-safer: New module.
70176         * modules/fts (Depends-on): Add fcntl-safer.
70177         * MODULES.html.sh (File descriptor based Input/Output):
70178         Add fcntl-safer.
70179
70180 2005-08-24  Bruno Haible  <bruno@clisp.org>
70181
70182         Support for unit test modules.
70183         * modules/README: Mention tests modules.
70184         * modules/TEMPLATE-TESTS: New file.
70185         * gnulib-tool: New options --extract-tests-module, --with-tests and
70186         --tests-base (unused for the moment).
70187         (testsbase, inctests): New variables.
70188         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
70189         (func_verify_module): Exclude TEMPLATE-TESTS.
70190         (func_verify_nontests_module, func_verify_tests_module): New functions.
70191         (func_get_dependencies): Add implicit dependency for tests modules.
70192         (func_get_tests_module): New function.
70193         (func_modules_transitive_closure): When --with-tests was specified,
70194         include the unit tests as well, unless explicitly avoided.
70195         (func_emit_lib_Makefile_am): Ignore the tests modules here.
70196         (func_emit_tests_Makefile_am): New function.
70197         (func_create_testdir): When --with-tests was specified, emit a
70198         tests/ directory.
70199         * MODULES.html.sh (Future developments): Update.
70200
70201 2005-08-24  Bruno Haible  <bruno@clisp.org>
70202
70203         * modules/tls-tests: New file.
70204         * tests/test-tls.c: New file, from GNU gettext.
70205
70206 2005-08-24  Bruno Haible  <bruno@clisp.org>
70207
70208         * modules/lock-tests: New file.
70209         * tests/test-lock.c: New file, from GNU gettext.
70210
70211 2005-08-24  Bruno Haible  <bruno@clisp.org>
70212
70213         * lib/lock.h: Add multiple inclusion guard.
70214         * lib/tls.h: Add multiple inclusion guard.
70215
70216 2005-08-24  Bruno Haible  <bruno@clisp.org>
70217
70218         * gnulib-tool: Add support for the --aux-dir option to
70219         --create-testdir, --create-megatestdir, --test, --megatest.
70220         (func_create_testdir, func_create_megatestdir): Optionally emit a
70221         AC_CONFIG_AUX_DIR directive.
70222         (create-testdir, create-megatestdir, test, megatest): Provide a
70223         default value for $auxdir.
70224
70225 2005-08-24  Bruno Haible  <bruno@clisp.org>
70226
70227         * gnulib-tool (import): Use compound statement instead of subshell
70228         where possible.
70229
70230 2005-08-24  Bruno Haible  <bruno@clisp.org>
70231
70232         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70233
70234 2005-08-24  Bruno Haible  <bruno@clisp.org>
70235
70236         * gnulib-tool (func_version): Update.
70237
70238 2005-08-24  Bruno Haible  <bruno@clisp.org>
70239
70240         * gnulib-tool (func_import, func_create_testdir,
70241         func_create_megatestdir): Quote all autoconf macro arguments.
70242
70243 2005-08-24  Bruno Haible  <bruno@clisp.org>
70244
70245         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70246         option --force, because --force causes the aclocal.m4 of each
70247         subdirectory to be newer than the corresponding config.h.in.
70248
70249 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70250
70251         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70252         All contents moved to gl_REGEX.
70253         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70254         assume that it does.
70255
70256 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70257
70258         * lib/regex.h (REG_NOSYS)
70259         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70260         Define, since POSIX requires it as of 2001.
70261         (_REG_ENOSYS)
70262         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70263         New private symbol, used to keep the enum signed in all cases.
70264         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70265         Youngman in
70266         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70267
70268         * lib/regex_internal.c (re_string_skip_chars, register_state):
70269         (calc_state_hash):
70270         Remove forward decls; no longer needed now that we use prototypes.
70271         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70272         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70273         (clean_state_log_if_needed): Likewise.
70274
70275 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70276
70277         * config/srclist.txt: Add glibc bugs 1231-1233.
70278
70279 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70280
70281         Fix problems reported by Sam Steingold in
70282         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70283         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70284         assumed that reg_errcode_t is a signed type, which is not
70285         necessarily true if _XOPEN_SOURCE is not defined.
70286         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70287         since some compilers warn about it otherwise.
70288
70289 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70290
70291         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70292         (init_word_char, create_initial_state, duplicate_node_closure):
70293         (fetch_token, peek_token_bracket, build_range_exp):
70294         (build_collating_symbol): Remove forward decls; no longer needed
70295         now that we use prototypes.
70296
70297         * lib/regcomp.c:
70298         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70299         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70300         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70301         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70302         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70303         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70304         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70305         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70306         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70307         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70308         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70309         (build_charclass, build_charclass_op, fetch_number, create_tree):
70310         (create_token_tree, mark_opt_subexp, duplicate_tree):
70311         Use prototypes rather than old-style definitions.
70312
70313         * lib/regex_internal.c:
70314         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70315         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70316         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70317         (re_string_reconstruct, re_string_peek_byte_case):
70318         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70319         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70320         (re_node_set_init_copy, re_node_set_add_intersect):
70321         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70322         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70323         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70324         (re_acquire_state, re_acquire_state_context, register_state):
70325         (create_ci_newstate, create_cd_newstate, free_state):
70326         Likewise.
70327         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70328         re_search_2):
70329         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70330         (re_search_internal, prune_impossible_nodes):
70331         (acquire_init_state_context, check_matching, static):
70332         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70333         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70334         (update_regs, sift_states_backward, build_sifted_states):
70335         (clean_state_log_if_needed, merge_state_array):
70336         (update_cur_sifted_state, add_epsilon_src_nodes):
70337         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70338         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70339         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70340         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70341         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70342         (check_arrival, check_arrival_add_next_nodes):
70343         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70344         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70345         (check_node_accept_bytes, check_node_accept, extend_buffers):
70346         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70347         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70348         (sift_ctx_init):
70349         Likewise.
70350
70351         * lib/regex_internal.h:
70352         (re_string_allocate, re_string_construct, re_string_reconstruct):
70353         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70354         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70355         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70356         (re_string_context_at, re_string_peek_byte_case):
70357         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70358         is defined, since we now use prototypes always.
70359
70360         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70361         C89 or better.  All uses removed.
70362
70363 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70364
70365         * config/srclist.txt: Add glibc bugs 1220-1227.
70366
70367 2005-08-20  Jim Meyering  <jim@meyering.net>
70368
70369         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70370         of unused local, dfa.
70371
70372 2005-08-20  Bruno Haible  <bruno@clisp.org>
70373
70374         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70375
70376 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70377
70378         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70379         (re_node_set_insert_last, re_dfa_add_node):
70380         Rename local variables to avoid GCC shadowing warnings.
70381
70382 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70383
70384         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70385         [defined lint]: Suppress bogus uninitialized-variable warnings.
70386
70387         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70388         and let the caller return REG_ESPACE if out of space.  This
70389         removes an uninitialied-variable warning with GCC 4.0.1, and also
70390         avoids taking the address of a local variable.  All callers
70391         changed.
70392
70393 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70394
70395         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70396         $LIBCSRC/posix/regexec.c.
70397         Add glibc bug 1217 for regcomp.c.
70398
70399 2005-08-19  Jim Meyering  <jim@meyering.net>
70400
70401         * lib/regexec.c (proceed_next_node): Redo local variables to
70402         avoid GCC shadowing warnings.
70403
70404 2005-08-18  Bruno Haible  <bruno@clisp.org>
70405
70406         * lib/strstr.c (strstr): Fix return value in multibyte case.
70407         * lib/strcasestr.c (strcasestr): Likewise.
70408
70409 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70410
70411         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70412
70413 2005-08-17  Jim Meyering  <jim@meyering.net>
70414
70415         Make the %s format (seconds since the epoch) work for a negative
70416         number and when used with a zero-padded field width, e.g. %015s.
70417
70418         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70419         label so that it precedes the code to set `digits'.  Otherwise,
70420         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70421         print `00-22'.  Now, it prints `-0022', as it should.
70422
70423 2005-08-17  Bruno Haible  <bruno@clisp.org>
70424
70425         * modules/strstr (Files): Add m4/mbrtowc.m4.
70426         (Depends-on): Add mbuiter.
70427
70428 2005-08-17  Bruno Haible  <bruno@clisp.org>
70429
70430         * modules/strcasestr: New file.
70431         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70432         strcasestr.
70433
70434 2005-08-17  Bruno Haible  <bruno@clisp.org>
70435
70436         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70437
70438 2005-08-17  Bruno Haible  <bruno@clisp.org>
70439
70440         * modules/mbuiter: New file.
70441         * MODULES.html.sh (Extended multibyte and wide character utilities):
70442         Add mbuiter.
70443
70444 2005-08-17  Bruno Haible  <bruno@clisp.org>
70445
70446         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70447         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70448
70449 2005-08-17  Bruno Haible  <bruno@clisp.org>
70450
70451         * m4/strcasestr.m4: New file.
70452
70453 2005-08-17  Bruno Haible  <bruno@clisp.org>
70454
70455         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70456         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70457
70458 2005-08-17  Bruno Haible  <bruno@clisp.org>
70459
70460         * lib/strcasestr.h: New file.
70461         * lib/strcasestr.c: New file.
70462
70463 2005-08-17  Bruno Haible  <bruno@clisp.org>
70464
70465         * lib/strcasecmp.c: Use mbuiter.h.
70466
70467 2005-08-17  Bruno Haible  <bruno@clisp.org>
70468
70469         * lib/mbuiter.h: New file.
70470
70471 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70472
70473         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70474         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70475         and gl_GETOPT are both invoked via different paths (as happens
70476         with GNU tar CVS because it uses both argp and getopt), the former
70477         wins.
70478
70479 2005-08-16  Bruno Haible  <bruno@clisp.org>
70480
70481         * modules/tls: New file.
70482         * MODULES.html.sh (Multithreading): Add tls.
70483
70484 2005-08-16  Bruno Haible  <bruno@clisp.org>
70485
70486         * modules/strnlen1: New file.
70487         * MODULES.html.sh (String handling): Add strnlen1.
70488
70489 2005-08-16  Bruno Haible  <bruno@clisp.org>
70490
70491         * modules/strcase (Files): Add m4/mbrtowc.m4.
70492         (Depends-on): Add strnlen1, mbchar.
70493
70494 2005-08-16  Bruno Haible  <bruno@clisp.org>
70495
70496         * modules/mbiter: New file.
70497         * MODULES.html.sh (Extended multibyte and wide character utilities):
70498         Add mbiter.
70499
70500 2005-08-16  Bruno Haible  <bruno@clisp.org>
70501
70502         * modules/mbfile: New file.
70503         * MODULES.html.sh (Extended multibyte and wide character utilities):
70504         Add mbfile.
70505
70506 2005-08-16  Bruno Haible  <bruno@clisp.org>
70507
70508         * modules/mbchar: New file.
70509         * MODULES.html.sh (Extended multibyte and wide character utilities):
70510         New section.
70511
70512 2005-08-16  Bruno Haible  <bruno@clisp.org>
70513
70514         * m4/tls.m4: New file, from GNU gettext.
70515
70516 2005-08-16  Bruno Haible  <bruno@clisp.org>
70517
70518         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70519         always.
70520         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70521
70522 2005-08-16  Bruno Haible  <bruno@clisp.org>
70523
70524         * m4/mbiter.m4: New file.
70525
70526 2005-08-16  Bruno Haible  <bruno@clisp.org>
70527
70528         * m4/mbfile.m4: New file.
70529
70530 2005-08-16  Bruno Haible  <bruno@clisp.org>
70531
70532         * m4/mbchar.m4: New file.
70533
70534 2005-08-16  Bruno Haible  <bruno@clisp.org>
70535
70536         * lib/tls.h: New file, from GNU gettext.
70537         * lib/tls.c: New file, from GNU gettext.
70538
70539 2005-08-16  Bruno Haible  <bruno@clisp.org>
70540
70541         * lib/strnlen1.h: New file.
70542         * lib/strnlen1.c: New file.
70543
70544 2005-08-16  Bruno Haible  <bruno@clisp.org>
70545
70546         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70547         (mbi_init): Update.
70548         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70549         NUL byte, not after it.
70550
70551 2005-08-16  Bruno Haible  <bruno@clisp.org>
70552
70553         * lib/strcase.h (strcasecmp): Add note in comments.
70554         * lib/strncasecmp.c: Use code from strcasecmp.c.
70555         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70556         (strcasecmp): Work correctly in multibyte locales.
70557
70558 2005-08-16  Bruno Haible  <bruno@clisp.org>
70559
70560         * lib/mbiter.h: New file.
70561
70562 2005-08-16  Bruno Haible  <bruno@clisp.org>
70563
70564         * lib/mbfile.h: New file.
70565
70566 2005-08-16  Bruno Haible  <bruno@clisp.org>
70567
70568         * lib/mbchar.h: New file.
70569         * lib/mbchar.c: New file.
70570
70571 2005-08-16  Bruno Haible  <bruno@clisp.org>
70572
70573         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70574         the valid ones. Makes the comparison operations transitive:
70575         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70576         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70577
70578 2005-08-15  Simon Josefsson  <jas@extundo.com>
70579
70580         * modules/ssize_t (License): Change to 'unlimited'.
70581
70582         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70583
70584 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70585
70586         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70587         Add comments for each pending glibc patch.
70588
70589 2005-08-15  Bruno Haible  <bruno@clisp.org>
70590
70591         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70592         __cplusplus is defined.
70593
70594 2005-08-14  Jim Meyering  <jim@meyering.net>
70595
70596         Sync from coreutils.
70597
70598         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70599         Use the hash-table-based cycle-detection code not just when
70600         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70601         Reported by James Youngman in
70602         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70603         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70604         FTS_TIGHT_CYCLE_CHECK.
70605         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70606         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70607         once again.
70608         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70609         * lib/fts.c (fd_safer): Remove decl.
70610         Include fcntl--.h rather than unistd-safer.h
70611         (fts_safe_changedir): Don't call fd_safer; no longer needed
70612         now that we include fcntl--.h.
70613
70614 2005-08-12  Simon Josefsson  <jas@extundo.com>
70615
70616         * modules/getndelim2: Use ssize_t module.
70617         * modules/getnline: Likewise.
70618         * modules/safe-read: Likewise.
70619         * modules/xreadlink: Likewise.
70620
70621         * modules/ssize_t: New file.
70622
70623 2005-08-12  Simon Josefsson  <jas@extundo.com>
70624
70625         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70626
70627 2005-08-12  Simon Josefsson  <jas@extundo.com>
70628
70629         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70630         ssize_t.
70631
70632 2005-08-12  Simon Josefsson  <jas@extundo.com>
70633
70634         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70635         readline, getdelim and check_version.
70636         (Support for systems lacking ISO C 99: Sizes of integer types):
70637         Add size_max.
70638
70639 2005-08-12  Bruno Haible  <bruno@clisp.org>
70640
70641         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70642
70643 2005-08-11  Simon Josefsson  <jas@extundo.com>
70644
70645         * modules/readline: New file.
70646
70647         * modules/strnlen (Files): Add strnlen.h.
70648
70649 2005-08-11  Simon Josefsson  <jas@extundo.com>
70650
70651         * m4/readline.m4: New file.
70652
70653 2005-08-11  Simon Josefsson  <jas@extundo.com>
70654
70655         * lib/readline.h, readline.c: New file.
70656
70657 2005-08-11  Simon Josefsson  <jas@extundo.com>
70658
70659         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70660         gl_AVOID.
70661
70662 2005-08-11  Bruno Haible  <bruno@clisp.org>
70663
70664         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70665
70666 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70667
70668         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70669
70670 2005-08-10  Simon Josefsson  <jas@extundo.com>
70671
70672         * tests/test-iconvme.c: New file.
70673
70674 2005-08-10  Simon Josefsson  <jas@extundo.com>
70675
70676         * m4/strnlen.m4: New file.
70677
70678         * m4/strndup.m4: Don't check for strnlen declaration, done in
70679         strnlen.m4.
70680
70681 2005-08-10  Simon Josefsson  <jas@extundo.com>
70682
70683         * lib/strndup.c: Use strnlen.h.
70684
70685         * lib/strnlen.h: New file.
70686
70687 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70688
70689         * README: Typos.
70690
70691 2005-08-02  Simon Josefsson  <jas@extundo.com>
70692
70693         * modules/readline: New file.
70694
70695 2005-08-02  Simon Josefsson  <jas@extundo.com>
70696
70697         * modules/getdelim: New file.
70698
70699         * modules/getline: Rewrite, don't use getndelim2.
70700
70701 2005-08-02  Simon Josefsson  <jas@extundo.com>
70702
70703         * m4/getline.m4: Separate out getdelim stuff into separate module.
70704
70705         * m4/getdelim.m4: New file.
70706
70707 2005-08-02  Simon Josefsson  <jas@extundo.com>
70708
70709         * lib/getline.h, getline.c: Rewrite.
70710
70711         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70712
70713 2005-07-31  Bruno Haible  <bruno@clisp.org>
70714
70715         * lib/lock.h (gl_lock_initializer): New macro.
70716         (gl_lock_define_initialized): Use it.
70717         (gl_rwlock_initializer): New macro.
70718         (gl_rwlock_define_initialized): Use it.
70719         (gl_recursive_lock_initializer): New macro.
70720         (gl_recursive_lock_define_initialized): Use it.
70721
70722 2005-07-30  Karl Berry  <karl@gnu.org>
70723
70724         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70725         Report from Ben Pfaff, regarding getopt.
70726
70727 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70728
70729         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70730         normal way.
70731         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70732         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70733         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70734         (gl_GETOPT): Use the new macros.  Most of the implementation
70735         is moved to the new macros.  This is for programs like Emacs
70736         that don't want all the functionality of gl_GETOPT.
70737
70738 2005-07-26  Bruno Haible  <bruno@clisp.org>
70739
70740         * m4/lock.m4: Update from GNU gettext.
70741
70742 2005-07-26  Bruno Haible  <bruno@clisp.org>
70743
70744         * lib/lock.h: Update from GNU gettext.
70745         * lib/lock.c: Update from GNU gettext.
70746
70747 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70748
70749         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70750         obsolescent AC_TRY_RUN.  Include the default includes files, for
70751         'exit'.
70752
70753 2005-07-24  Bruno Haible  <bruno@clisp.org>
70754
70755         * modules/visibility: New file.
70756         * MODULES.html.sh (Misc): Add visibility.
70757
70758 2005-07-24  Bruno Haible  <bruno@clisp.org>
70759
70760         * m4/visibility.m4: New file.
70761
70762 2005-07-24  Bruno Haible  <bruno@clisp.org>
70763
70764         * doc/visibility.texi: New file.
70765
70766 2005-07-22  Bruno Haible  <bruno@clisp.org>
70767
70768         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70769         $(ALLOCA_H), redundant through BUILT_SOURCES.
70770         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70771         redundant through BUILT_SOURCES.
70772         * modules/byteswap (Makefile.am): Remove explicit dependency on
70773         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70774         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70775         $(FNMATCH_H), redundant through BUILT_SOURCES.
70776         * modules/getopt (Makefile.am): Remove explicit dependency on
70777         $(GETOPT_H), redundant through BUILT_SOURCES.
70778         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70779         redundant through BUILT_SOURCES.
70780         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
70781         redundant through BUILT_SOURCES.
70782         * modules/stdbool (Makefile.am): Remove explicit dependency on
70783         $(STDBOOL_H), redundant through BUILT_SOURCES.
70784         * modules/stdint (Makefile.am): Remove explicit dependency on
70785         $(STDINT_H), redundant through BUILT_SOURCES.
70786         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
70787         Remove explicit dependency on $(SYSEXITS_H).
70788         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
70789
70790 2005-07-18  Simon Josefsson  <jas@extundo.com>
70791
70792         * lib/check-version.c (check_version): Accept identical versions too.
70793
70794 2005-07-18  Bruno Haible  <bruno@clisp.org>
70795
70796         * modules/lock: New file.
70797         * MODULES.html.sh (Multithreading): New section.
70798
70799 2005-07-18  Bruno Haible  <bruno@clisp.org>
70800
70801         * m4/lock.m4: New file, from GNU gettext.
70802
70803 2005-07-18  Bruno Haible  <bruno@clisp.org>
70804
70805         * lib/lock.h: New file, from GNU gettext.
70806         * lib/lock.c: New file, from GNU gettext.
70807
70808 2005-07-18  Bruno Haible  <bruno@clisp.org>
70809
70810         * lib/lock.h (gl_once_t): New type.
70811         (gl_once_define, gl_once): New macros.
70812         * lib/lock.c (fresh_once): New variable.
70813         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
70814         functions.
70815
70816 2005-07-16  Simon Josefsson  <jas@extundo.com>
70817
70818         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
70819         workaround, suggested by Bruno.
70820
70821 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70822
70823         * modules/xalloc (Depends-on): Add xalloc-die.
70824         * modules/xvasprintf (Depends-on): Add xalloc-die.
70825
70826 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70827
70828         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
70829         with a minor change.
70830
70831 2005-07-15  Bruno Haible  <bruno@clisp.org>
70832
70833         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
70834         When using lib/poll.c, define poll as rpl_poll.
70835
70836 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
70837
70838         * modules/argp (Depends-on): Remove unlocked-io.
70839
70840 2005-07-14  Derek Price  <derek@ximbiot.com>
70841
70842         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
70843         for glob symlink bug.
70844
70845 2005-07-14  Bruno Haible  <bruno@clisp.org>
70846
70847         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
70848         Instead, test for *_unlocked function declarations directly.
70849
70850 2005-07-11  Simon Josefsson  <jas@extundo.com>
70851
70852         * modules/size_max: New file.
70853
70854         * modules/xsize: Depend on size_max module for size_max.m4.
70855
70856 2005-07-11  Simon Josefsson  <jas@extundo.com>
70857
70858         * lib/size_max.h: New file.
70859
70860 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
70861
70862         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
70863         copyright symbol and the year.
70864         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
70865         (version_etc_va): Use parameterized copyright notice.
70866         Reword to conform to the current GNU coding standards.
70867
70868 2005-07-11  Karl Berry  <karl@gnu.org>
70869
70870         * doc/gnulib.texi (Quoting): new node.
70871         (Initial import): more info, from Patrice.
70872
70873 2005-07-11  Bruno Haible  <bruno@clisp.org>
70874
70875         * gnulib-tool (func_usage): Document option --avoid.
70876         (Command line options): Handle --avoid.
70877         (func_acceptable): New function.
70878         (func_modules_transitive_closure): Use it.
70879
70880 2005-07-11  Bruno Haible  <bruno@clisp.org>
70881
70882         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
70883         Reported by Jim Meyering.
70884
70885 2005-07-10  Bruno Haible  <bruno@clisp.org>
70886
70887         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
70888         Needed when size_t is smaller than 'unsigned int'.
70889         Reported by Paul Eggert.
70890
70891 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70892
70893         * modules/argp (Depends-on): Add unlocked-io
70894
70895 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70896
70897         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
70898         block of defines.
70899
70900 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70901
70902         * config/srclist.txt: Comment out regcomp.c, since we have a porting
70903         fix now.
70904
70905 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
70906         and Paul Eggert  <eggert@cs.ucla.edu>
70907
70908         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
70909         in wint_t, not wchar_t.  Remove now-unnecessary cast.
70910
70911 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70912
70913         * modules/regex (Files): Add lib/regex_internal.c,
70914         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
70915         (Depends-on): Add extensions.
70916         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
70917
70918 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70919
70920         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
70921         pathconf.
70922         * m4/same.m4 (gl_SAME): Likewise.
70923         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
70924
70925         * m4/regex.m4: Adjust to new libc regex implementation.
70926         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
70927         all the .c and .h parts of (the new) regex.
70928         Quote the m4 stuff better.
70929         Check for RE_ICASE bug of old gnulib.
70930         Check for REG_STARTEND of recent libc.
70931         Rename local variables from jm_* to gl_*.
70932         Quote operand of "test -f".
70933         Say "recent enough" version of libc, not "version 2".
70934         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
70935         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
70936         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
70937         Remove check for btowc, isascii.
70938         Require AM_LANGINFO_CODESET.
70939
70940 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70941
70942         * lib/regex.c, regex.h: Sync from libc.
70943         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
70944         * lib/regexec.c:
70945         New files, synced from libc, except that regex_internal.h
70946         currently has a small porting fix.
70947
70948 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70949
70950         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
70951         regex_internal.c, regexec.c.
70952         Add regex_internal.h too, but as a comment, since the libc version
70953         is currently broken in gnulib mode.
70954
70955 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         Support programs like Emacs that use gnulib but not gettext.
70958         * MODULES.html.sh (Internationalization functions): Add gettext-h.
70959         * modules/gettext-h: New file.
70960         * modules/gettext (Files): Remove lib/gettext.h.
70961         (Depends-on): Add gettext-h.
70962         (Makefile.am): Remove lib_SOURCES.
70963         * modules/argmatch, modules/c-stack, modules/closeout:
70964         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
70965         * modules/execute, modules/file-type, modules/getaddrinfo:
70966         * modules/getopt, modules/human, modules/javacomp:
70967         * modules/javaexec, modules/mkdir-p, modules/obstack:
70968         * modules/openat, modules/pagealign_alloc, modules/pipe:
70969         * modules/quotearg, modules/regex, modules/rpmatch:
70970         * modules/unicodeio, modules/userspec, modules/version-etc:
70971         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
70972         * modules/xsetenv:
70973         Depend on gettext-h, not gettext.
70974
70975 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70976
70977         * gnulib-tool (func_import): Add support for 'public domain' license.
70978         * modules/alloca, modules/atexit, modules/memmove:
70979         Now public domain, not GPL.
70980         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
70981         * modules/realloc, modules/strerror, modules/strtod:
70982         Now LGPL, not GPL.
70983
70984 2005-07-05  Bruno Haible  <bruno@clisp.org>
70985
70986         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
70987         autoconf CVS. Needed for mingw.
70988
70989 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70990
70991         Remove the dependency of the strftime module on the tzset module.
70992         * modules/strftime (Depends-on): Remove dependency on tzset.
70993
70994 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70995
70996         Remove the dependency of the strftime module on the tzset module.
70997         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
70998         gl_FUNC_TZSET_CLOBBER.
70999
71000 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71001
71002         Remove the dependency of the strftime module on the tzset module.
71003         * lib/strftime.c (my_strftime)
71004         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
71005         Copy the input structure, to work around some of the bug with
71006         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
71007         Solaris releases, you should also use the tzset module, but we won't
71008         require it as a dependency any more since we don't want LGPLed code
71009         to depend on GPLed code.
71010
71011 2005-07-02  Jim Meyering  <jim@meyering.net>
71012
71013         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
71014         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
71015         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
71016         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
71017
71018 2005-07-02  Jim Meyering  <jim@meyering.net>
71019
71020         * lib/backupfile.c (backup_args): Change a `0' to NULL.
71021
71022 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71023
71024         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71025         declares only 'struct timespec;' (!).
71026
71027 2005-07-01  Jim Meyering  <jim@meyering.net>
71028
71029         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
71030         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
71031         * lib/save-cwd.c, tempname.c:
71032         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71033         and don't include <sys/file.h>).
71034
71035 2005-06-29  Jim Meyering  <jim@meyering.net>
71036
71037         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
71038         type name.  Use the variable name instead.
71039         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
71040         Likewise.
71041
71042 2005-06-28  Simon Josefsson  <jas@extundo.com>
71043
71044         * modules/check-version (Files): Add check-version.m4.
71045
71046 2005-06-28  Simon Josefsson  <jas@extundo.com>
71047
71048         * m4/check-version.m4: New file, suggested by Jim Meyering
71049         <jim@meyering.net>.
71050
71051 2005-06-28  Simon Josefsson  <jas@extundo.com>
71052
71053         * lib/check-version.h, lib/check-version.c: New files.
71054
71055 2005-06-28  Simon Josefsson  <jas@extundo.com>
71056
71057         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
71058         collision with global variable.  Better indentation.  Don't
71059         increment buffer pointer beyond buffer end.  Based on comments
71060         from Paul Eggert <eggert@cs.ucla.edu>.
71061
71062         * lib/base64.h: Indent.
71063
71064 2005-06-28  Simon Josefsson  <jas@extundo.com>
71065
71066         * doc/gnulib.texi (Library version handling): New section.
71067
71068 2005-06-28  Jim Meyering  <jim@meyering.net>
71069
71070         * check-module (find_included_lib_files): Hard-code another
71071         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
71072         but modules/fts-lgpl (correctly) does not list those files.
71073
71074         * modules/canonicalize (Files): Add lib/pathmax.h.
71075
71076 2005-06-25  Simon Josefsson  <jas@extundo.com>
71077
71078         * modules/check-version: New file.
71079
71080 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
71083         initializer of struct addrinfo, as an indication that we don't
71084         care how many members the structure has.
71085
71086 2005-06-24  Derek Price  <derek@ximbiot.com>
71087         and Bruno Haible  <bruno@clisp.org>
71088
71089         Remove stat module & update lstat.
71090         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
71091         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71092         * m4/stat.m4: Remove this file.
71093
71094 2005-06-24  Derek Price  <derek@ximbiot.com>
71095         and Bruno Haible  <bruno@clisp.org>
71096
71097         Remove stat module & update lstat.
71098         * lib/stat.c: Remove this file...
71099         (slash_aware_lstat): ...moving this content and its support...
71100         * lib/lstat.c (rpl_lstat): ...into here.
71101         * lib/lstat.h: New file.
71102
71103 2005-06-24  Derek Price  <derek@ximbiot.com>
71104         and Bruno Haible  <bruno@clisp.org>
71105
71106         Remove stat module & update lstat.
71107         * config/srclist.txt (libc sources): Remove stat.
71108
71109 2005-06-24  Derek Price  <derek@ximbiot.com>
71110         and Bruno Haible  <bruno@clisp.org>
71111
71112         Remove stat module & update lstat.
71113         * MODULES.html.sh (stat): Remove.
71114         * MODULES.html: Regenerated.
71115         * modules/lstat (Description): Correct function name.
71116         (Files): Add "lstat.h".
71117         (Depends-on): Remove stat, add xalloc, stat-macros.
71118         * modules/stat: Remove this file.
71119         (Include): Add "lstat.h", remove <sys/stat.h>.
71120
71121 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
71122
71123         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
71124         (ranged_convert): Don't save conversion in a temporary struct.
71125         This causes a warning with GCC 4.0.0, and anyway in the typical
71126         case it's not worth the extra 100 bytes or so of code.
71127         (ranged_convert, __mktime_internal): When calling a function via a
71128         pointer P, use P () rather than (*P) (), as we now assume C89 or
71129         better.
71130
71131 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71132
71133         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
71134         "who -r" failed to give output.  Problem reported by Tim Waugh.
71135
71136         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
71137         (xcalloc): Use it to avoid needless tests.
71138         Problem reported by Jim Meyering.
71139
71140 2005-06-20  Derek Price  <derek@ximbiot.com>
71141
71142         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
71143         unnecessary for Autoconfs > 2.59c.
71144
71145 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71146
71147         * lib/argp.h (__option_is_short): Check upper limit of
71148         __key. Isprint() requires its argument to have the value
71149         of an unsigned char or EOF.
71150
71151 2005-06-16  Jim Meyering  <jim@meyering.net>
71152
71153         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
71154         when either N or S is zero.
71155
71156 2005-06-16  Derek Price  <derek@ximbiot.com>
71157
71158         * m4/bison.m4: Declare YACC & YFLAGS precious.
71159
71160 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
71161
71162         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
71163         multibyte string or pattern, fall back on unibyte matching.
71164         Problem reported by James Youngman.
71165
71166 2005-06-08  Bruno Haible  <bruno@clisp.org>
71167
71168         * modules/csharpcomp: New file.
71169         * MODULES.html.sh (C#): Add csharpcomp.
71170
71171 2005-06-08  Bruno Haible  <bruno@clisp.org>
71172
71173         * m4/csharpcomp.m4: New file, from GNU gettext.
71174
71175 2005-06-08  Bruno Haible  <bruno@clisp.org>
71176
71177         * lib/csharpcomp.h: New file, from GNU gettext.
71178         * lib/csharpcomp.c: New file, from GNU gettext.
71179         * lib/csharpcomp.sh.in: New file, from GNU gettext.
71180
71181 2005-06-08  Bruno Haible  <bruno@clisp.org>
71182
71183         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
71184         warning on mingw.
71185
71186 2005-06-07  Derek Price  <derek@ximbiot.com>
71187
71188         Sync from CVS.
71189         * lib/glob_.h: Indent nested #ifdef.
71190
71191 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71192
71193         Sync from coreutils.
71194         Use "file name" when talking about file names, instead of "filename"
71195         or "path", as per the GNU coding standards.
71196         * lib/mkdir-p.c: Renamed from makepath.c.
71197         (make_dir_parents): Renamed from make_path.  All callers changed.
71198         * lib/mkdir-p.h: Likewise.  All includers changed.
71199         * lib/filenamecat.c: Renamed from path-concat.c.
71200         (file_name_concat): Renamed from path_concat.  All callers changed.
71201         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
71202         * lib/filenamecat.h: Likewise.  All includers changed.
71203         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
71204         in comments or local variable names.
71205         * lib/basename.c: Likewise.
71206         * lib/canonicalize.c, canonicalize.h: Likewise.
71207         * lib/dirname.c, dirname.h: Likewise.
71208         * lib/euidaccess.c: Likewise.
71209         * lib/exclude.c: Likewise
71210         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71211         * lib/fsusage.c, fsuage.h: Likewise.
71212         * lib/fts.c, fts_.h: Likewise.
71213         * lib/getcwd.c: Likewise.
71214         * lib/getloadavg.c: Likewise.
71215         * lib/mkstemp.c: Likewise.
71216         * lib/mountlist.c, mountlist.h: Likewise.
71217         * lib/openat.c, openat.h: Likewise.
71218         * lib/readlink-stub.c: Likewise.
71219         * lib/readutmp.c, readutmp.h: Likewise.
71220         * lib/rename.c: Likewise.
71221         * lib/rmdir.c: Likewise.
71222         * lib/same.c: Likewise.
71223         * lib/savedir.c: Likewise.
71224         * lib/stripslash.c: Likewise.
71225         * lib/tempname.c: Likewise.
71226         * lib/xreadlink.c: Likewise.
71227         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71228         All uses changed.
71229         * lib/exclude.h: Likewise.
71230
71231         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71232         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71233         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71234         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71235         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71236         files have been getting away with it for years (MORE/BSD 4.3
71237         is extinct now).
71238         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71239         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71240
71241         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71242         Define to 256, not 255, as per modern POSIX.
71243
71244 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71245
71246         Sync from coreutils.
71247         Use "file name" when talking about file names, instead of "filename"
71248         or "path", as per the GNU coding standards.
71249         * MODULES.html.sh: mkdir-p renamed from makepath.
71250         filenamecat renamed from path-concat.
71251         * modules/filenamecat: Renamed from modules/path-concat.
71252         (Files): filenamecat.h and filenamecat.c renamed from
71253         path-concat.h and path-concat.c.
71254         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71255         (Include): filenamecat.h, not path-concat.h.
71256         * modules/mkdir-p: Renamed from modules/makepath.
71257         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71258         makepath.c.
71259         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71260         (Include): mkdir-p.h, not makepath.h.
71261
71262 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71263
71264         Sync from coreutils.
71265         * m4/mkdir-p.m4: Renamed from makepath.m4.
71266         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71267         Rename files from makepath.c to mkdir-p.c, and from
71268         makepath.h to mkdir-p.h.
71269         * m4/filenamecat.m4: Renamed from path-concat.m4.
71270         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71271         Rename files from path-concat.c to filenamecat.c,
71272         and from path-concat.h to filenamecat.h.
71273         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71274         "file name" in local variables or comments.
71275         * m4/rename.m4: Likewise.
71276
71277 2005-06-01  Bruno Haible  <bruno@clisp.org>
71278
71279         * modules/csharpexec: New file.
71280         * MODULES.html.sh (C#): New section.
71281
71282 2005-06-01  Bruno Haible  <bruno@clisp.org>
71283
71284         * m4/csharp.m4: New file, from GNU gettext.
71285         * m4/csharpexec.m4: New file, from GNU gettext.
71286
71287 2005-06-01  Bruno Haible  <bruno@clisp.org>
71288
71289         * lib/csharpexec.h: New file, from GNU gettext.
71290         * lib/csharpexec.c: New file, from GNU gettext.
71291         * lib/csharpexec.sh.in: New file, from GNU gettext.
71292
71293 2005-05-31  Derek Price  <derek@ximbiot.com>
71294             Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         Sync from cvs.
71297         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71298
71299 2005-05-31  Derek Price  <derek@ximbiot.com>
71300             Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         Sync from cvs.
71303         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71304
71305 2005-05-29  Derek Price  <derek@ximbiot.com>
71306
71307         * config/srclist.txt (glob_.h, glob.c): Add these files.
71308
71309 2005-05-29  Derek Price  <derek@ximbiot.com>
71310
71311         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71312         * modules/glob: New file.
71313         * modules/getlogin_r: Add link to POSIX spec in description.
71314
71315 2005-05-29  Derek Price  <derek@ximbiot.com>
71316             Paul Eggert  <eggert@cs.ucla.edu>
71317
71318         * m4/glob.m4: New file.
71319
71320 2005-05-29  Derek Price  <derek@ximbiot.com>
71321             Paul Eggert  <eggert@cs.ucla.edu>
71322
71323         * lib/glob_.h, lib/glob.c: New files.
71324
71325 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71326
71327         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71328         * modules/fts-lgpl (Depends-on): Remove gettext.
71329
71330 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71331
71332         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71333         and don't require gt_INTTYPES_PRI.
71334
71335 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71336
71337         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71338
71339         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71340         the configuration hassle isn't worth it.
71341         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71342         (LONGEST_MODIFIER, PRIuMAX): Remove.
71343
71344 2005-05-27  Bruno Haible  <bruno@clisp.org>
71345
71346         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71347
71348 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71349
71350         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71351         _POSIX_PTHREAD_SEMANTICS for Solaris.
71352
71353 2005-05-25  Derek Price  <derek@ximbiot.com>
71354
71355         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71356
71357 2005-05-25  Derek Price  <derek@ximbiot.com>
71358             Paul Eggert  <eggert@cs.ucla.edu>
71359
71360         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71361         * lib/getlogin_r.c, getlogin_r.h: New files.
71362
71363 2005-05-25  Bruno Haible  <bruno@clisp.org>
71364             Derek Price  <derek@ximbiot.com>
71365
71366         * lib/getlogin_r.h: Simplify API documentation.
71367
71368 2005-05-23  Derek Price  <derek@ximbiot.com>
71369
71370         * modules/minmax (Files): Add m4/minmax.m4.
71371         (configure.ac): Add gl_MINMAX.
71372
71373 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71374
71375         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71376         so that unistd-safer.h (GPL'ed code) need not be included.
71377
71378 2005-05-22  Bruno Haible  <bruno@clisp.org>
71379
71380         * m4/minmax.m4: New file.
71381         Based on a patch by Derek Price <derek@ximbiot.com>.
71382
71383 2005-05-22  Bruno Haible  <bruno@clisp.org>
71384
71385         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71386         (INT64_MIN): Fix definition.
71387         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71388
71389         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71390         NEED_SIGNED_INT_TYPES.
71391
71392         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71393         HAVE_SYSTEM_INTTYPES.
71394
71395 2005-05-22  Bruno Haible  <bruno@clisp.org>
71396
71397         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71398         Also include <sys/param.h> if it defines MIN, MAX.
71399         Based on a patch by Derek Price <derek@ximbiot.com>.
71400
71401 2005-05-21  Jim Meyering  <jim@meyering.net>
71402
71403         * modules/fts (Files): Add m4/inttypes-pri.m4.
71404         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71405
71406 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71407
71408         New fts module.
71409         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71410         (setup_dir, free_dir): New functions.
71411         (enter_dir, leave_dir): Define trivial
71412         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71413         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71414         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71415         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71416         Move to fts-cycle.c.
71417         (fts_open): Use setup_dir.
71418         (fts_close): Use free_dir.
71419         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71420         This adds a label and some gotos, but the alternatives were messier.
71421         Check for memory allocation failure when entering a dir.
71422         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71423         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71424         (FTS): New member fts_cycle, that is a union that contains the
71425         old active_dir_ht and cycle_state.  All uses changed to mention
71426         fts_cycle.ht and fts_cycle.state.
71427         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71428         fts.c, with the following changes:
71429         (setup_dir, free_dir): New functions.
71430         (enter_dir): Now returns bool.  Return true if successful, false
71431         if memory exhausted.  All callers changed.
71432         Do not bother partly cleaning up on
71433         memory allocation failure; that is free_dir's job.
71434         However, free ad if hash_insert fails, to avoid memory leak.
71435         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71436         fts->fts_options to see which union member to use.
71437
71438 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71439
71440         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71441         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71442
71443 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71444
71445         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71446
71447 2005-05-20  Jim Meyering  <jim@meyering.net>
71448
71449         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71450         Now a macro, to pacify GCC.
71451
71452 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71453
71454         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71455         of -1.
71456
71457 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71458
71459         * lib/chown.c (rpl_chown): Return -1 on failure.
71460
71461 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71462
71463         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71464         Don't check for stddef.h.
71465         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71466         don't use its results.
71467         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71468         since we include them unconditionally.  Don't require
71469         AM_STDBOOL_H, since stdbool is a prerequisite.
71470         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71471         since we assume C89 or better.
71472         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71473         as we don't use their results.
71474         Don't check for fchdir, memmove, memset, strrchr, as we use
71475         them unconditionally.
71476         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71477         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71478
71479 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71480
71481         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71482         Include <stddef.h> unconditionally, since we assume C89 now.
71483         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71484         * lib/fts.c: Include fts_.h first, to check interface.
71485         Do not include intprops.h; no longer needed.
71486         Include cycle-check.h and hash.h, since fts_.h no longer does.
71487         Remove unnecessary casts of closedir to void.
71488         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71489         decide whether to decrement nlinks.
71490         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71491         (FTS): Use struct hash_table * instead of Hash_table, so that
71492         we no longer need to include hash.h here.
71493
71494 2005-05-18  Jim Meyering  <jim@meyering.net>
71495
71496         * modules/dirfd (License): Change to LGPL.  Most of the code
71497         is already in the public domain.
71498
71499 2005-05-18  Jim Meyering  <jim@meyering.net>
71500
71501         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71502         Reported by Yoann Vandoorselaere.
71503
71504 2005-05-17  Jim Meyering  <jim@meyering.net>
71505
71506         * m4/fts.m4: New file, from coreutils.
71507
71508 2005-05-17  Jim Meyering  <jim@meyering.net>
71509
71510         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71511
71512 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71513
71514         Sync from coreutils.
71515         * m4/unlinkdir.m4: New file.
71516
71517 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71518
71519         Sync from coreutils.
71520         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71521         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71522         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71523         White space changes only.
71524         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71525         special.
71526         * lib/yesno.c: Include getline.h, not ctype.h.
71527         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71528         Use getline to remove arbitrary restriction on response length.
71529
71530 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         * config/srclist-update: Spell out "Street" in FSF postal
71533         mail address; this is the style the FSF seems to prefer.
71534
71535         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71536         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71537         this updates FSF postal mail address.
71538
71539         Sync from coreutils.
71540         * modules/unlinkdir: New file.
71541         * modules/yesno (Depends-on): Add getline.
71542         * MODULES.html.sh (File system functions): Add unlinkdir.
71543
71544 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71545
71546         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71547         lib/strsep.h:
71548         Change the initial comment to refer to GPL, not LGPL.
71549         gnulib-tool will change it to LGPL as needed.
71550
71551         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71552         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71553         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71554         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71555         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71556         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71557         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71558         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71559         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71560         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71561         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71562         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71563         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71564         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71565         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71566         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71567         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71568         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71569         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71570         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71571         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71572         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71573         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71574         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71575         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71576         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71577         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71578         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71579         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71580         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71581         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71582         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71583         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71584         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71585         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71586         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71587         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71588         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71589         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71590         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71591         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71592         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71593         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71594         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71595         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71596         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71597         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71598         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71599         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71600         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71601         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71602         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71603         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71604         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71605         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71606         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71607         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71608         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71609         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71610         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71611         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71612         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71613         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71614         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71615         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71616         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71617         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71618         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71619         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71620         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71621         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71622         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71623         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71624         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71625         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71626         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71627         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71628         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71629         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71630         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71631         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71632         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71633         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71634         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71635         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71636         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71637         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71638         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71639         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71640         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71641         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71642         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71643         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71644         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71645         lib/yesno.c, lib/yesno.h:
71646         Update FSF postal mail address.
71647
71648 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71649
71650         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71651         tests/test-memmem.c, tests/test-stpncpy.c:
71652         Update FSF postal mail address.
71653
71654 2005-05-13  Bruno Haible  <bruno@clisp.org>
71655
71656         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71657         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71658         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71659         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71660         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71661         Add support for 64-bit integers in the MSVC compiler.
71662
71663 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71664
71665         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71666
71667 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71668
71669         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71670
71671 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71672
71673         * doc/getdate.texi (General date syntax): Don't say that date
71674         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71675         Problem reported by Nic Ferrier.
71676
71677 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71678
71679         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71680         specified in ai_socktype. Fix invalid ai_protocol
71681         check. ai_protocol is usually set to 0 or depending on
71682         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71683         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71684         ai_socktype / ai_protocol in the returned addrinfo structure.
71685
71686 2005-05-10  Simon Josefsson  <jas@extundo.com>
71687
71688         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71689         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71690
71691 2005-05-10  Karl Berry  <karl@gnu.org>
71692
71693         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71694         (from http://www.gnu.org/licenses).
71695         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71696         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71697         fdl.texi suffices.
71698
71699 2005-05-10  Karl Berry  <karl@gnu.org>
71700
71701         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71702         (COPYING.DOC): remove.
71703
71704         * config/srclist-update: new FSF address.
71705
71706 2005-05-10  Derek Price  <derek@ximbiot.com>
71707
71708         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71709         possible.
71710
71711 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71712             Bruno Haible  <bruno@clisp.org>
71713
71714         * modules/inet_ntop: New file.
71715         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71716         inet_ntop.
71717
71718 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71719             Bruno Haible  <bruno@clisp.org>
71720
71721         * m4/inet_ntop.m4: New file.
71722
71723 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71724             Bruno Haible  <bruno@clisp.org>
71725
71726         * lib/inet_ntop.h: New file.
71727         * lib/inet_ntop.c: New file, from glibc with modifications.
71728
71729 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71730
71731         * modules/time_r (License): Change to LGPL.
71732         * modules/extensions (License): Change to LGPL.  Actually,
71733         the license is more permissive than that, but currently gnulib-tool
71734         doesn't know how to handle more-permissive licenses.
71735
71736         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71737         Problem reported by Dave Love.
71738
71739 2005-05-08  Jim Meyering  <jim@meyering.net>
71740
71741         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71742         blank.
71743
71744 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71745
71746         * modules/argmatch (Depends-on): Add stdbool.
71747         * modules/backupfile (Depends-on): Likewise.
71748         * modules/chdir-long (Depends-on): Likewise.
71749         * modules/closeout (Depends-on): Likewise.
71750         * modules/cycle-check (Depends-on): Likewise.
71751         * modules/dirname (Depends-on): Likewise.
71752         * modules/fnmatch (Depends-on): Likewise.
71753         * modules/fsusage (Depends-on): Likewise.
71754         * modules/fwriteerror (Depends-on): Likewise.
71755         * modules/getcwd (Depends-on): Likewise.
71756         * modules/getloadavg (Depends-on): Likewise.
71757         * modules/hard-locale (Depends-on): Likewise.
71758         * modules/makepath (Depends-on): Likewise.
71759         * modules/mountlist (Depends-on): Likewise.
71760         * modules/nanosleep (Depends-on): Likewise.
71761         * modules/posixtm (Depends-on): Likewise.
71762         * modules/quotearg (Depends-on): Likewise.
71763         * modules/readtokens (Depends-on): Likewise.
71764         * modules/readtokens0 (Depends-on): Likewise.
71765         * modules/readutmp (Depends-on): Likewise.
71766         * modules/save-cwd (Depends-on): Likewise.
71767         * modules/strftime (Depends-on): Likewise.
71768         * modules/userspec (Depends-on): Likewise.
71769         * modules/utimecmp (Depends-on): Likewise.
71770         * modules/xgetcwd (Depends-on): Likewise.
71771         * modules/xnanosleep (Depends-on): Likewise.
71772         * modules/xstrtod (Depends-on): Likewise.
71773         * modules/yesno (Depends-on): Likewise.
71774
71775 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71776
71777         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71778         needless checks.
71779
71780 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71781
71782         Merge from coreutils.  Among other things,
71783         add bulletproofing for cases where stdin, stdout, or stderr are closed.
71784         * lib/fd-safer.c: New file.
71785         * lib/fcntl-safer.h, open-safer.c: Remove.
71786         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
71787         * lib/dup-safer.c: Include unistd-safer.h first.
71788         Don't include errno.h.
71789         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
71790         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
71791         * lib/file-type.c: Rely on file-type.h change.
71792         * lib/getloadavg.c: Include unistd-safer.h.
71793         (getloadavg): Use safer open.
71794         * lib/getusershell.c: Include "stdio-safer.h".
71795         (getusershell): Use safer fopen.
71796         * lib/long-options.c (long_options): Use NULL rather than 0.
71797         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
71798         'free'.
71799         * lib/modechange.c: Likewise.
71800         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
71801         (MODE_DONE): New constant.
71802         (struct mode_change): Remove 'next' member.
71803         (make_node_op_equals): New function; like the old one of the
71804         same name, except it allocates an array.
71805         (mode_compile, mode_create_from_ref): Use it.
71806         (mode_compile): Allocate result as an array, not a linked list.
71807         Parse octal string ourself, so that we catch mistakes like "+0".
71808         (mode_adjust): Arg is an array, not a linked list.
71809         * lib/modechange.c: Include stat-macros.h, xalloc.h.
71810         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
71811         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
71812         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
71813         Remove.  This is now stat-macros.h's job.
71814         (talloc): Remove.  All callers replaced by xalloc, so that
71815         our invokers don't have to worry about reporting memory failures.
71816         (make_node_op_equals): Remove.
71817         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71818         New constants.
71819         (struct mode_change): Moved here from modechange.h.
71820         (mode_append_entry): Remove.
71821         (mode_compile): Remove MASKED_OPS arg, since it encouraged
71822         apps to have incorrect behavior.  Use simpler algorithm for head
71823         and tail.  Don't futz with umask; that's now the job of mode_adjust.
71824         Detect more invalid usages rather than having somewhat-random behavior.
71825         Don't insert an "a=" action, as that leads to incorrect behavior.
71826         (mode_compile, mode_create_from_ref): Return NULL on error instead
71827         of an enum, since now there's only one way to have an error.  All
71828         callers changed.
71829         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
71830         at the correct time.  Simplify calculation of "+u" and its ilk.
71831         Don't mishandle "+X".
71832         (mode_free): Remove "register" and localize decls.
71833         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71834         (struct mode_change): Move to modechange.c; callers don't
71835         need to see this stuff.
71836         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
71837         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
71838         (mode_change, mode_adjust): Reflect the new signatures noted above.
71839         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
71840         that might redefine system include files.
71841         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
71842         (my_usleep): Use NULL rather than (void *) 0.
71843         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
71844         Use siginterrupt to specify that system calls should be interrupted.
71845         (rpl_nanosleep): Move initialization of suspended closer to call of
71846         my_usleep.
71847         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
71848         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
71849         (desirable_utmp_entry): New function.
71850         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
71851         using x2nrealloc, to simplify logic.
71852         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
71853         size calculation.  Do not assume utmp file is a regular file.
71854         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
71855         (READ_UTMP_CHECK_PIDS): New constant.
71856         * lib/save-cwd.c: Include unistd-safer.h.
71857         (save_cwd): Use fd_safer.
71858         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
71859         [!_LIBC] Include "stat-macros.h" instead.
71860         * lib/unistd-safer.h (fd_safer): New decl.
71861
71862 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71863
71864         * modules/getloadavg (Depends-on): Add unistd-safer.
71865         * modules/getusershell (Depends-on): Add stdio-safer.
71866         * modules/lstat (Depends-on): Remove xalloc.
71867         * modules/mkstemp (Depends-on): Add stat-macros.
71868         * modules/modechange (Depends-on): Remove xstrtol.
71869         Add stat-macros, xalloc.
71870         * modules/save-cwd (Depends-on): Add unistd-safer.
71871         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
71872         * modules/unistd-safer (Files): Add lib/fd-safer.c
71873         (Makefile.am): Remove lib_SOURCES.
71874
71875         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
71876         Remove fcntl-safer; unistd-safer supersedes it.
71877
71878 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71879
71880         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
71881         AC_HEADER_STAT.
71882         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
71883         (gl_PREREQ_CHOWN): Remove.
71884         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
71885         it.  Don't require AC_HEADER_STAT.
71886         (gl_PREREQ_LSTAT): Remove.
71887         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
71888         Don't require AC_HEADER_STAT.
71889         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
71890         (gl_PREREQ_RMDIR): Remove.
71891         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
71892         mention stat-macros.h or AC_HEADER_STAT, since we'll make
71893         the stat-macros module a prerequisite.
71894         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
71895         * m4/filemode.m4 (gl_FILEMODE): Likewise.
71896         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
71897         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
71898         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
71899         variable names.
71900         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
71901         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
71902         variable prefixes.
71903         * m4/fcntl-safer.m4: Remove.
71904         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
71905         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
71906         Invoke gl_PREREQ_FD_SAFER.
71907         (gl_PREREQ_FD_SAFER): New macro.
71908         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
71909         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
71910         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
71911         Remove duplicate call to AC_LIBOBJ(readutmp).
71912         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
71913
71914         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
71915         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
71916
71917 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71918
71919         * MODULES.html.sh (Misc): Add byteswap.
71920
71921 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71922
71923         * modules/getcwd (Depends-on): Add extensions.
71924         * modules/openat (Depends-on): Likewise.
71925
71926 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71927
71928         * modules/byteswap: New file.
71929
71930 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71931
71932         * m4/byteswap.m4: New file.
71933
71934 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71935
71936         * lib/byteswap_.h: New file.
71937
71938 2005-04-25  Karl Berry  <karl@gnu.org>
71939
71940         * m4/gettext.m4: Update from GNU gettext 0.14.4.
71941
71942 2005-04-25  Albert Chin  <china@thewrittenword.com>
71943
71944         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
71945         Toolkit C bug.
71946
71947 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
71948
71949         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
71950         (func_ln_if_changed): Remove forcibly for no error message
71951         in case file does not exist.
71952
71953 2005-04-19  Simon Josefsson  <jas@extundo.com>
71954
71955         * gnulib-tool (Options): Make --symlink mean --symbolic.
71956
71957 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
71958
71959         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
71960
71961 2005-04-16  Simon Josefsson  <jas@extundo.com>
71962
71963         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
71964
71965 2005-04-15  Simon Josefsson  <jas@extundo.com>
71966
71967         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
71968
71969 2005-04-15  Simon Josefsson  <jas@extundo.com>
71970
71971         * gnulib-tool: Rename --symlink to --symbolic.
71972
71973 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
71974
71975         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
71976         symbolic links to files instead of copying/moving.  Add --aux-dir,
71977         specifying directory relative --dir where auxiliary build tools
71978         are placed.
71979
71980 2005-04-14  Bruno Haible  <bruno@clisp.org>
71981
71982         * modules/allocsa (License): Change to LGPL.
71983         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71984
71985 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71986
71987         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
71988         that "UTC +1 second" continues to work.  Problem reported
71989         by Dmitry V. Levin.
71990         (relunit_snumber): New rule.
71991         (relunit): Use it.
71992
71993 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71994
71995         * lib/getdate.y (universal_time_zone_table): New constant.
71996         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
71997         universal_time_zone_table.
71998         (lookup_zone): Prefer universal_time_zone_table to
71999         local_time_zone_table, so that "GMT" time stamps are allowed in
72000         London during the summer.  Problem reported by Ian Abbott.
72001
72002 2005-04-12  Jim Meyering  <jim@meyering.net>
72003
72004         * lib/human.c (humblock): Set *options even when returning due to
72005         xstrtoumax conversion failure.  Thanks to a used-uninitialized
72006         warning from gcc-4.
72007
72008 2005-04-09  Jim Meyering  <jim@meyering.net>
72009
72010         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
72011         -Wuninitialized: initialize tm0.tm_year.
72012
72013 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
72014
72015         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
72016         count, since there's no maximum.  All uses changed.
72017         Add member dsts_seen.
72018         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
72019         not being INT_MAX.
72020         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
72021         Use pc_rels_seen to decide whther a date is absolute.
72022
72023         * lib/getdate.y (number): Don't overwrite year.
72024         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72025         check.
72026
72027 2005-04-02  Simon Josefsson  <jas@extundo.com>
72028
72029         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
72030         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
72031
72032 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
72033
72034         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
72035         where no absolute path name can be longer than PATH_MAX.
72036
72037 2005-03-27  Jim Meyering  <jim@meyering.net>
72038
72039         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
72040
72041 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
72042
72043         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
72044         "one's complement" -> "ones' complement" in comment, as per Knuth.
72045         "value of type" -> "type or expression" in comment.
72046         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
72047
72048 2005-03-26  Jim Meyering  <jim@meyering.net>
72049
72050         Comment nits.
72051         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
72052         Correct typos: s/or/of/.
72053
72054 2005-03-26  Jim Meyering  <jim@meyering.net>
72055
72056         * modules/check-include-files: Move to ../ and rename to...
72057         * check-module: ...this.
72058
72059 2005-03-25  Jim Meyering  <jim@meyering.net>
72060
72061         * modules/xvasprintf (Files): Add xalloc.h.
72062
72063 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72064
72065         * modules/gettext (Files): config/config.rpath ->
72066         build-aux/config.rpath
72067         * modules/iconv (Files): Likewise.
72068         Problem reported by Oskar Liljeblad.
72069
72070 2005-03-23  Jim Meyering  <jim@meyering.net>
72071
72072         * modules/check-include-files: New script to check for
72073         missing dependencies, multiple includes, etc.
72074
72075         * modules/c-strtold (Depends-on): Add xalloc.
72076         * modules/c-strtod (Depends-on): Add xalloc.
72077         * modules/hash (Depends-on): Add xalloc.
72078         (Files): Remove lib/xalloc.h.
72079
72080         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
72081         * modules/userspec (Files): Add lib/inttostr.h.
72082
72083 2005-03-23  Jim Meyering  <jim@meyering.net>
72084
72085         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
72086
72087 2005-03-22  Jim Meyering  <jim@meyering.net>
72088
72089         * modules/stat-macros: New module.
72090         * modules/canonicalize, modules/euidaccess, modules/file-type,
72091         * modules/filemode, modules/lchown, modules/makepath,
72092         * modules/rmdir, modules/stat: Depend on new stat-macros module
72093         rather than listing lib/stat-macros.h manually.
72094         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
72095
72096 2005-03-22  Jim Meyering  <jim@meyering.net>
72097
72098         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
72099
72100 2005-03-22  Bruno Haible  <bruno@clisp.org>
72101
72102         * config/srclist.txt: Replace target directory 'config' with
72103         'build-aux'.
72104         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
72105         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
72106         ../build-aux/.
72107
72108 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
72109
72110         * modules/chdir-long (Depends-on): Add mempcpy.
72111
72112         * modules/acl, modules/backupfile, modules/c-strtod,
72113         modules/c-strtold, modules/canon-host, modules/canonicalize,
72114         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
72115         modules/exclude, modules/exitfail, modules/file-type,
72116         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
72117         modules/getdate, modules/getline, modules/getpagesize,
72118         modules/getpass, modules/getugroups, modules/group-member,
72119         modules/hard-locale, modules/hash, modules/human, modules/idcache,
72120         modules/inttostr, modules/long-options, modules/makepath,
72121         modules/md5, modules/memcasecmp, modules/memcoll,
72122         modules/modechange, modules/mountlist, modules/path-concat,
72123         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
72124         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
72125         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
72126         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
72127         modules/strftime, modules/strndup, modules/strverscmp,
72128         modules/timespec, modules/unlocked-io, modules/userspec,
72129         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
72130         modules/yesno:
72131         Remove lib_SOURCES line from Makefile.am section, as this is now
72132         done automatically by the corresponding Autoconf macro.
72133
72134 2005-03-21  Jim Meyering  <jim@meyering.net>
72135
72136         Changes imported from coreutils.
72137
72138         * lib/cycle-check.c: Don't include xalloc.h.
72139
72140         * lib/path-concat.c: Don't include assert.h.
72141         (path_concat): Remove assertion that would have triggered
72142         for ABASE starting with more than one slash.
72143         Reported by Andreas Schwab.
72144
72145         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
72146         properly when ABASE is an absolute file name.
72147         Correct the description of this function.
72148         Include <assert.h>.
72149         Add an assertion and a test driver.
72150         This fixes a bug introduced on 2004-07-02.
72151         Andreas Schwab reported the resulting failure of cp --parents:
72152         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
72153
72154 2005-03-21  Jim Meyering  <jim@meyering.net>
72155
72156         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
72157         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
72158
72159 2005-03-21  Jim Meyering  <jim@meyering.net>
72160         and  Paul Eggert  <eggert@cs.ucla.edu>
72161
72162         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
72163         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
72164         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
72165         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
72166         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
72167         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
72168         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
72169         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
72170         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
72171         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
72172         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
72173         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
72174         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
72175         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
72176         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
72177         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
72178         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
72179         for these modules.
72180
72181 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
72182
72183         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
72184         (which shouldn't happen), generate nothing instead of returning 0
72185         immediately, so that nstrftime (NULL, ...) doesn't return 0.
72186
72187 2005-03-16  Bruno Haible  <bruno@clisp.org>
72188
72189         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
72190         HAVE_LONGLONG_64BIT.
72191
72192 2005-03-16  Bruno Haible  <bruno@clisp.org>
72193
72194         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
72195         HAVE_LONGLONG_64BIT.
72196
72197 2005-03-16  Bruno Haible  <bruno@clisp.org>
72198
72199         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
72200         HAVE_LONGLONG_64BIT.
72201
72202 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72203
72204         * lib/strftime.c (my_strftime): Prepend space to format so that we can
72205         reliably distinguish strftime failure from empty output on POSIX
72206         hosts.
72207
72208 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72209
72210         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72211         (iconv_string): Don't guess a size-zero buffer, as that might cause
72212         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72213         result would be 'too large', where 'too large' is (heuristically)
72214         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72215         overflow concerns.  This will prevent some unwanted malloc failures
72216         when the inputs are very large.
72217
72218 2005-03-15  Karl Berry  <karl@gnu.org>
72219
72220         * config/srclist.txt (config.rpath): from gettext.
72221         * config/config.rpath: update.
72222
72223 2005-03-15  Bruno Haible  <bruno@clisp.org>
72224
72225         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72226         to 'negate'.
72227
72228         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72229         variable.
72230
72231         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72232         results.
72233
72234 2005-03-14  Simon Josefsson  <jas@extundo.com>
72235
72236         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72237         <fx@gnu.org>.
72238
72239 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72240
72241         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72242         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72243         intprops.h.
72244         * lib/strtol.c: Likewise.
72245
72246 2005-03-14  Jim Meyering  <jim@meyering.net>
72247
72248         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72249         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72250         to be nonzero so that we (and caller) can detect the difference
72251         between a valid zero-length expansion and an error return, even
72252         when the underlying strftime fails before writing anything into
72253         that location.
72254
72255 2005-03-14  Bruno Haible  <bruno@clisp.org>
72256
72257         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72258         Update from GNU gettext 0.14.3.
72259
72260 2005-03-10  Jim Meyering  <jim@meyering.net>
72261
72262         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72263
72264 2005-03-10  Jim Meyering  <jim@meyering.net>
72265
72266         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72267         so that this module works on systems without fchdir.
72268
72269 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72270
72271         Factor int-properties macros into a single file, except for
72272         glibc-related files.
72273         * lib/intprops.h: New file.
72274         * lib/getloadavg.c: Include it instead of limits.h.
72275         (INT_STRLEN_BOUND): Remove.
72276         * lib/human.c: Include intprops.h.
72277         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72278         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72279         302/1000.
72280         * lib/inttostr.h: Include intprops.h instead of limits.h.
72281         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72282         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72283         for consistency with intprops.h.
72284         (time_t_is_integer, twos_complement_arithmetic): Use them.
72285         * lib/sig2str.h: Include <signal.h>, intprops.h.
72286         (INT_STRLEN_BOUND): Remove.
72287         * lib/strftime.c (TYPE_SIGNED): Remove.
72288         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72289         * lib/strtol.c: Adjust comments to match intprops.h.
72290         * lib/userspec.c: Include intprops.h.
72291         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72292         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72293         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72294         instead of rolling our own expressions.
72295         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72296
72297         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72298         instead of int.
72299         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72300         the right thing even if adding 1900 would overflow.  Similarly
72301         for tm_mon + 1 and tm_yday + 1.
72302         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72303         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72304         (DO_SIGNED_NUMBER): New macro.
72305         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72306
72307 2005-03-07  Bruno Haible  <bruno@clisp.org>
72308
72309         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72310
72311 2005-03-07  Bruno Haible  <bruno@clisp.org>
72312
72313         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72314
72315 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72316
72317         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72318         (func_import): Only replace files via --import when they have actually
72319         changed.
72320
72321 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72322
72323         * m4/mmap-anon.m4: New file.
72324         * m4/pagealign_alloc.m4: New file.
72325
72326 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72327             Bruno Haible  <bruno@clisp.org>
72328
72329         * modules/pagealign_alloc: New file.
72330         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72331
72332 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72333             Bruno Haible  <bruno@clisp.org>
72334
72335         * lib/pagealign_alloc.h: New file.
72336         * lib/pagealign_alloc.c: New file.
72337
72338 2005-03-03  Bruno Haible  <bruno@clisp.org>
72339
72340         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72341         Use an all-permissive copyright notice, recommended by RMS.
72342
72343 2005-03-02  Bruno Haible  <bruno@clisp.org>
72344
72345         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72346         of AIX, the replacement has to be done only after <string.h> is
72347         included, therefore not in config.h. stpncpy.h does the replacement,
72348         and stpncpy.c uses it.
72349
72350 2005-03-02  Bruno Haible  <bruno@clisp.org>
72351
72352         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72353         stpncpy.c uses it.
72354
72355 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72356
72357         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72358         The workaround isn't strictly needed for POSIX conformance, and
72359         it's too much of a pain to configure and maintain.  We'll ask
72360         people to fix their kernels instead.
72361         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72362         (NANOSLEEP_BUG_WORKAROUND): Remove.
72363         (xnanosleep): Remove the workaround.
72364
72365 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72366
72367         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72368         Reported by Derek Price.
72369         (Include): Add "timespec.h".
72370
72371         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72372
72373 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72374
72375         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72376         to detect nanosleep bug.
72377
72378 2005-03-01  Bruno Haible  <bruno@clisp.org>
72379
72380         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72381
72382 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72383
72384         * modules/gethrxtime: New file.
72385         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72386         (Depends-on): Add gethrxtime.
72387         (configure.ac): Add gl_XNANOSLEEP.
72388         (Makefile.am): Remove lib_SOURCES line.
72389
72390 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72391
72392         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72393         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72394
72395 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72396
72397         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72398         * lib/timespec.h (gettime): Return void, since it always
72399         succeeds now.  All uses changed.
72400         * lib/gettime.c (gettime): Likewise.
72401         [HAVE_NANOTIME]: Prefer nanotime.
72402         Assume gettimeofday succeeds, as POSIX requires.
72403         Assime time () succeeds, since other code already does.
72404         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72405         (timespec_subtract): Remove.
72406         (NANOSLEEP_BUG_WORKAROUND): New constant.
72407         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72408         things considerably.  Use it only on GNU/Linux hosts, since the
72409         workaround shouldn't be needed elsewhere.
72410
72411 2005-02-24  Bruno Haible  <bruno@clisp.org>
72412
72413         * modules/gettext (Files): Add m4/glibc2.m4.
72414
72415 2005-02-24  Bruno Haible  <bruno@clisp.org>
72416
72417         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72418         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72419         * m4/progtest.m4:
72420         Update from GNU gettext 0.14.2.
72421         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72422
72423 2005-02-24  Bruno Haible  <bruno@clisp.org>
72424
72425         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72426         * lib/config.charset: Update from GNU gettext 0.14.2.
72427
72428 2005-02-24  Bruno Haible  <bruno@clisp.org>
72429
72430         * lib/gettext.h: Update from GNU gettext 0.14.2.
72431
72432 2005-02-23  Simon Josefsson  <jas@extundo.com>
72433
72434         * m4/iconvme.m4: New file.
72435
72436 2005-02-23  Jim Meyering  <jim@meyering.net>
72437
72438         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72439         change.
72440         Thanks to Bruno Haible for catching it.
72441
72442 2005-02-22  Simon Josefsson  <jas@extundo.com>
72443
72444         * modules/iconvme: New file.
72445
72446         * MODULES.html.sh: Add iconvme.
72447
72448 2005-02-22  Simon Josefsson  <jas@extundo.com>
72449
72450         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72451
72452 2005-02-22  Simon Josefsson  <jas@extundo.com>
72453
72454         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72455
72456 2005-02-22  Jim Meyering  <jim@meyering.net>
72457
72458         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72459         s/ifndef/ifdef/.
72460
72461 2005-02-20  Neil Conway  <neilc@samurai.com>
72462
72463         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72464         returned by OSX/Darwin if the specified buffer is not large
72465         enough for the hostname.
72466
72467 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72468
72469         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72470         pass it to _help, otherwise the latter coredumps trying to
72471         dereference state.root_argp.
72472
72473 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72474
72475         * modules/chdir-long (Depends-on): Add memrchr.
72476         * modules/memrchr (Files): Add lib/memrchr.h.
72477         (Include): "memrchr.h".
72478
72479 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72480
72481         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72482
72483 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72484
72485         * lib/memrchr.h: New file.
72486         * lib/chdir-long.c: Include it.
72487         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72488         Don't bother including stddef.h.
72489
72490 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72491
72492         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72493         inclusion.
72494         Include <sys/types.h>, for dev_t.
72495         (ME_DUMMY, ME_REMOTE): Move from here....
72496         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72497         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72498         Dmitry V. Levin.
72499         Include mountlist.h first, to test the interface.
72500
72501 2005-01-29  Bruno Haible  <bruno@clisp.org>
72502
72503         * lib/progname.c (program_name): Initialize.
72504         Needed when linking statically on MacOS X.
72505
72506 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72507
72508         Sync from coreutils.
72509         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72510         (Depends-on): Add c-strtod.
72511         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72512
72513 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72514
72515         Sync from coreutils.
72516         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72517
72518         Remove files that are specific to coreutils.
72519         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72520
72521 2005-01-28  Bruno Haible  <bruno@clisp.org>
72522
72523         * modules/javacomp: New file.
72524         * MODULES.html.sh (Java): Add javacomp.
72525
72526 2005-01-28  Bruno Haible  <bruno@clisp.org>
72527
72528         * m4/javacomp.m4: New file, from GNU gettext.
72529
72530 2005-01-28  Bruno Haible  <bruno@clisp.org>
72531
72532         * lib/javacomp.sh.in: New file, from GNU gettext.
72533         * lib/javacomp.h: New file, from GNU gettext.
72534         * lib/javacomp.c: New file, from GNU gettext.
72535
72536 2005-01-26  Simon Josefsson  <jas@extundo.com>
72537
72538         * lib/gai_strerror.c: Use GPL in header.
72539
72540 2005-01-26  Bruno Haible  <bruno@clisp.org>
72541
72542         * modules/javaexec: New file.
72543         * MODULES.html.sh (Java): Add javaexec.
72544
72545 2005-01-26  Bruno Haible  <bruno@clisp.org>
72546
72547         * m4/javaexec.m4: New file, from GNU gettext.
72548
72549 2005-01-26  Bruno Haible  <bruno@clisp.org>
72550
72551         * lib/javaexec.sh.in: New file, from GNU gettext.
72552         * lib/javaexec.h: New file, from GNU gettext.
72553         * lib/javaexec.c: New file, from GNU gettext.
72554
72555 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72556
72557         * modules/lchown (Depends-on): Remove lchown.h
72558
72559 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72560
72561         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72562         must be defined if the header file was not found, in order
72563         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72564
72565 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72566
72567         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72568         initializers for struct pentry_state.
72569         (__argp_error): Check return value of __asprintf
72570         (__argp_failure): Translate error message
72571
72572         * lib/argp-parse.c: Removed braces around the expansion of N_()
72573
72574 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72575
72576         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72577         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72578         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72579         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72580         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72581         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72582         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72583         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72584         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72585         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72586         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72587         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72588         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72589         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72590         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72591         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72592         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72593         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72594         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72595         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72596         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72597         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72598         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72599         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72600         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72601         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72602         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72603         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72604         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72605         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72606         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72607         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72608         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72609         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72610         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72611         Use an all-permissive copyright notice, recommended by RMS.
72612
72613 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72614
72615         * modules/chdir-long (Depends-on): Remove mempcpy.
72616
72617 2005-01-21  Jim Meyering  <jim@meyering.net>
72618
72619         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72620         same value as for Solaris 9.
72621
72622         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72623         component length.  This included changing the parameter to be
72624         of type `char *' rather than `char const *'.
72625         * lib/chdir-long.h (chdir_long): Update prototype.
72626
72627         * lib/openat.c (fdopendir, fstatat): New functions.
72628         * lib/openat.h: Include headers required for use of DIR and struct
72629         stat.
72630         [AT_SYMLINK_NOFOLLOW]: Define.
72631         (fdopendir, fstatat): Add prototypes.
72632
72633 2005-01-21  Bruno Haible  <bruno@clisp.org>
72634
72635         * modules/classpath: New file.
72636         * MODULES.html.sh (Java): Add classpath.
72637
72638 2005-01-21  Bruno Haible  <bruno@clisp.org>
72639
72640         * lib/classpath.h: New file, from GNU gettext.
72641         * lib/classpath.c: New file, from GNU gettext.
72642
72643 2005-01-20  Simon Josefsson  <jas@extundo.com>
72644
72645         * modules/version-etc-fsf: New file.
72646
72647 2005-01-20  Simon Josefsson  <jas@extundo.com>
72648
72649         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72650         * lib/version-etc.c: Remove version_etc_copyright.
72651         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72652         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72653
72654 2005-01-20  Simon Josefsson  <jas@extundo.com>
72655
72656         * lib/base64.h (isbase64): Add.
72657
72658         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72659         using a unsigned prototype, don't inline.
72660         (base64_decode): Use it.
72661
72662 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72663
72664         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72665         it.
72666
72667 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72668
72669         * lib/save-cwd.c (save_cwd): Remove code to support the case
72670         where fchdir is missing or flaky.
72671
72672 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72673
72674         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72675
72676 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72677
72678         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72679         AC_LIBSOURCES now does this.
72680         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72681         with new ullong_max module.
72682
72683 2005-01-19  Bruno Haible  <bruno@clisp.org>
72684
72685         * modules/sh-quote: New file.
72686         * MODULES.html.sh (Executing programs): Add sh-quote.
72687
72688 2005-01-19  Bruno Haible  <bruno@clisp.org>
72689
72690         * lib/sh-quote.h: New file, from GNU gettext.
72691         * lib/sh-quote.c: New file, from GNU gettext.
72692
72693 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72694
72695         Merge from coreutils.
72696         * m4/ullong_max.m4: New file.
72697         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72698         (gl_MACROS): Assume localeconv exists.
72699
72700 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72701
72702         Merge changes from coreutils, as described below in several
72703         changelogs dated today.
72704
72705         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72706         (O_DIRECTORY): Remove; not needed here, since "." must be
72707         a directory.  All uses removed.
72708         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72709         universal on Suns, and we also need to test for IRIX.
72710         Revamp code to use 'if' rather than '#if'.
72711         Avoid unnecessary comparison of cwd->desc to 0.
72712
72713         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72714         for known valid error numbers rather than observed invalid ones.
72715
72716 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72717
72718         * modules/ullong_max: New file.
72719
72720         * modules/chdir-long, modules/openat: New files.
72721         * modules/save-cwd (Depends-on): Depend on chdir-long.
72722         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72723
72724 2005-01-18  Jim Meyering  <jim@meyering.net>
72725
72726         Merge from coreutils.
72727         * m4/chdir-long.m4, m4/openat.m4: New files.
72728         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72729         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72730         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72731         is sane and DOES follow symlinks.  Besides, testing 20 different
72732         systems found no broken chown implementations.
72733         Prompted by a change in rsync's copy of this macro.
72734         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72735
72736         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72737
72738         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72739         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72740         NULL-means-set-to-current-time semantics.
72741         Remove temporary file immediately, rather than waiting
72742         for configure's at-exit trap code to do it.
72743
72744 2005-01-18  Jim Meyering  <jim@meyering.net>
72745
72746         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72747
72748         * lib/utimens.c (futimens): Account for the fact that futimes
72749         can also fail with errno == ENOSYS or errno == ENOENT.
72750         Patch from Dmitry V. Levin.
72751
72752         Change the name of the robust chdir function from chdir to chdir_long.
72753         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72754         (restore_cwd): Use chdir_long, not chdir.
72755         * lib/chdir-long.c: Renamed from chdir.c.
72756         * lib/chdir-long.h: Renamed from chdir.h.
72757         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72758         Hurd.
72759
72760 2005-01-18  Bruno Haible  <bruno@clisp.org>
72761
72762         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72763         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72764         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72765         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72766         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72767         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72768         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72769         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72770         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72771         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72772         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72773         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72774         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72775         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72776         Use an all-permissive copyright notice, recommended by RMS.
72777
72778 2005-01-18  Bob Proulx  <bob@proulx.com>
72779
72780         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
72781         simplify offsetof() macro construct to avoid compile failure with
72782         native HP-UX 11.0 ANSI C compiler.
72783
72784 2005-01-17  Bruno Haible  <bruno@clisp.org>
72785
72786         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
72787         redundant because stpncpy.m4 takes care of it.
72788
72789 2005-01-17  Bruno Haible  <bruno@clisp.org>
72790
72791         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
72792
72793 2005-01-17  Bruno Haible  <bruno@clisp.org>
72794
72795         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
72796         used.
72797
72798 2005-01-17  Bruno Haible  <bruno@clisp.org>
72799
72800         * lib/fwriteerror.h (fwriteerror): Change specification to include
72801         fclose.
72802         * lib/fwriteerror.c: Include <stdbool.h>.
72803         (fwriteerror): At the end, close the file stream. Record whether
72804         stdout was already closed.
72805
72806 2005-01-17  Bruno Haible  <bruno@clisp.org>
72807
72808         * lib/execute.c (environ): Declare if needed.
72809         * lib/pipe.c (environ): Likewise.
72810         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
72811
72812 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72813
72814         * modules/argp: Depend on vsnprintf
72815
72816 2005-01-10  Jim Meyering  <jim@meyering.net>
72817
72818         * modules/closeout (Depends-on): Add atexit.
72819
72820 2005-01-06  Bruno Haible  <bruno@clisp.org>
72821
72822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
72823
72824 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72825
72826         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
72827         definitions to be after all include files, to avoid collisions.
72828         Problem reported by Bob Proulx.
72829
72830 2005-01-04  Jim Meyering  <jim@meyering.net>
72831
72832         Changes imported from coreutils.
72833         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
72834         as the mkstemp template, use a temporary directory and an
72835         8.3-friendly template to avoid trouble on systems like DJGPP.
72836         Reported by Juan M. Guerrero via Stepan Kasal.
72837         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
72838         close. Remove the temporary directory right away, rather than waiting
72839         for configure's at-exit trap code to do it.
72840         Suggestion from Stepan Kasal.
72841
72842 2005-01-01  Simon Josefsson  <jas@extundo.com>
72843
72844         * gnulib-tool: Print #include directives when --import'ing.
72845
72846 2004-12-28  Simon Josefsson  <jas@extundo.com>
72847
72848         * tests/test-base64.c: Include required header files.  Remove
72849         unused variables.
72850
72851 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72852
72853         * modules/error (Depends-on): Remove gettext.
72854
72855 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72856
72857         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
72858         not needed.  This removes a dependency on the gettext module.
72859         [defined _LIBC]: Do not include <libintl.h>; not needed.
72860
72861 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72862
72863         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
72864         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
72865
72866 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72867
72868         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
72869         HAVE_DECL_STRTOLD.
72870
72871 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72872
72873         * modules/getdate (Depends-on): Remove alloca-opt.
72874
72875 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72876
72877         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
72878
72879 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72880
72881         * lib/argp-parse.c: Include <stddef.h>.
72882         (alignof, alignto): New macros.
72883         (parser_init): Don't assume that void * is aligned sufficiently
72884         for struct option.
72885
72886         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
72887         need to extend the stack.
72888         (YYINITDEPTH): New macro, so that the initial stack isn't overly
72889         large.
72890
72891 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72892
72893         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
72894
72895 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72896
72897         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
72898         (2004-10-24) change.  Apparently this was a false alarm.
72899
72900         * modules/getdate: Depend on alloca-opt, not alloca.
72901
72902 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72903
72904         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
72905         Remove now-obsolete comment about AIX.
72906         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
72907         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
72908         (YYMAXDEPTH): New macro.
72909
72910 2004-12-18  Simon Josefsson  <jas@extundo.com>
72911
72912         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
72913
72914 2004-12-18  Bruno Haible  <bruno@clisp.org>
72915
72916         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
72917
72918 2004-12-18  Bruno Haible  <bruno@clisp.org>
72919
72920         * lib/fatal-signal.c (fatal_signals): Make non-const.
72921         (init_fatal_signals): New function.
72922         (uninstall_handlers, install_handlers): Ignore signals that were set to
72923         SIG_IGN.
72924         (at_fatal_signal): Call init_fatal_signals.
72925         (init_fatal_signal_set): Likewise. Ignore signals that were set to
72926         SIG_IGN.
72927         Reported by Paul Eggert.
72928
72929 2004-12-18  Bruno Haible  <bruno@clisp.org>
72930
72931         * doc/alloca.texi: New file.
72932         * doc/alloca-opt.texi: New file.
72933
72934 2004-12-17  Jim Meyering  <jim@meyering.net>
72935
72936         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
72937         Otherwise, install-sh could exit with improper exit status when
72938         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
72939
72940 2004-12-16  Simon Josefsson  <jas@extundo.com>
72941
72942         * tests/test-base64.c: Add license.
72943
72944 2004-12-15  Stepan Kasal  <address@hidden>
72945
72946         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
72947
72948 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
72949
72950         * modules/getcwd (Files): Add m4/d-ino.m4.
72951         Suggested by Mark D. Baushke.
72952
72953 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72954
72955         * lib/getdate.y (textint): New member "negative".
72956         (time_zone_hhmm): New function.
72957         Expect 14 shift-reduce conflicts, not 13.
72958         (o_colon_minutes): New rule.
72959         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
72960         (yylex): Set the "negative" member of signed numbers.
72961
72962 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72963
72964         * doc/getdate.texi (Time of day items, Time zone items):
72965         Describe new formats +00:00, UTC+00:00.
72966
72967 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72968
72969         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
72970         spurious "-l"s.  Problem reported by Stepan Kasal.
72971
72972 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
72973
72974         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
72975         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
72976
72977 2004-12-04  Simon Josefsson  <jas@extundo.com>
72978
72979         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
72980         Vandoorselaere <yoann@prelude-ids.org>.
72981
72982 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72983
72984         Changes imported from coreutils.
72985         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
72986         exist.
72987         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
72988
72989 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72990
72991         Changes imported from coreutils.
72992         * lib/hard-locale.c: Assume <locale.h> exists.
72993         Include "strdup.h".
72994         (GLIBC_VERSION): New macro.
72995         (hard_locale): Assume setlocale exists.
72996         Rewrite to avoid #ifdef.
72997         Use strdup rather than malloc + strcpy.
72998         * lib/human.c: Assume <locale.h> exists.
72999         (human_readable): Assume localeconv exists.
73000
73001 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73002
73003         * modules/hard-locale (Depends-on): Add strdup.
73004
73005 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73006
73007         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
73008         convert T2, not T.  (Imported from libc.)
73009
73010 2004-11-30  Simon Josefsson  <jas@extundo.com>
73011
73012         * modules/restrict (License): Change to LGPL.
73013
73014 2004-11-30  Simon Josefsson  <jas@extundo.com>
73015
73016         * m4/restrict.m4: Add copyright and copying conditions.
73017
73018 2004-11-30  Simon Josefsson  <jas@extundo.com>
73019
73020         * m4/base64.m4: New file.
73021
73022 2004-11-30  Simon Josefsson  <jas@extundo.com>
73023
73024         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73025         base64.
73026
73027         * tests/test-base64.c: New file.
73028
73029         * modules/base64: New file.
73030
73031 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73032
73033         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
73034         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
73035
73036         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
73037
73038 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73039
73040         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
73041         (__getcwd.c): Don't restore errno; glibc doesn't.
73042         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
73043         first, falling back to our code only if its results look suspicious.
73044         Ensure that the resulting buffer is only as large as necessary.
73045
73046         * lib/readutmp.c: Include readutmp.h first.
73047         Include <errno.h>, since readutmp.h no longer does that.
73048         * lib/readutmp.h: Don't include <errno.h>,
73049         <sys/param.h>, <time.h>; not needed to establish interface.
73050         (errno): Remove decl.
73051         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
73052         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
73053         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
73054
73055 2004-11-28  Simon Josefsson  <jas@extundo.com>
73056
73057         * lib/base64.h, base64.c: New file.
73058
73059 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73060
73061         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
73062
73063 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73064
73065         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
73066         (Depends-on): Remove pathmax, same.  Add mempcpy.
73067         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
73068         (Makefile.am): Append getcwd.h to lib_SOURCES.
73069         (Include): Add getcwd.h.
73070         (Maintainer): Change from Jim Meyering to "all, glibc",
73071         since getdate now uses intended-for-glibc code.
73072         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
73073         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
73074
73075 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73076
73077         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
73078         HP's ANSI C compiler.
73079         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
73080         Declaring int functions causes warnings on some modern systems and
73081         shouldn't be needed to compile on ancient ones.
73082         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
73083         defined.
73084
73085         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
73086         with the following changes.
73087         (__set_errno): Parenthesize properly.
73088         Include <stdbool.h>.
73089         (MIN, MAX, MATCHING_INO): New macros.
73090         (__getcwd): Define with prototype, not K&R form.
73091         Use heuristics to allocate default buffer on stack if possible.
73092         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
73093         behavior, and to avoid the PATH_MAX limit when computing
73094         ../../../../...
73095         Use MATCHING_INO to compare inode number to file.
73096         Check for arithmetic overflow in size calculations.
73097         Fix bug in reallocation of dot array that caused getcwd to fail
73098         on directories nested deeper than 75.
73099         Be more careful about saving errno on error.
73100         Do not use realloc; use only free+malloc, as this is a bit
73101         more flexible and avoids a needless copy operation.
73102         Do not inspect st_dev and st_ino for symbolic links; POSIX
73103         doesn't specify the latter.
73104         Check for closedir errors.
73105         Avoid needless casts.
73106         Use "#ifdef weak_alias" around weak_alias, to be like other
73107         glibc code.
73108         The following changes to getcwd.c have effect only when used in
73109         gnulib; they have no effect inside glibc proper.
73110         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
73111         as alloca isn't used.
73112         (alloca, __alloca): Likewise.
73113         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
73114         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73115         unconditionally, as gnulib assumes C89 or better.
73116         Do not include <sys/param.h>.
73117         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
73118         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
73119         better.
73120         (NULL) [!defined NULL]: Remove; we assume C89 or better.
73121         Include <dirent.h> in a way that is compatible with modern Autoconf.
73122         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
73123         New macros, if not already defined.
73124         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
73125         Use "_LIBC", not "defined _LIBC", for consistency.
73126         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
73127         a mempcpy module.
73128         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
73129         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
73130         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
73131         credit only to Jim Meyering and adjust the copyright dates.
73132         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
73133         <stdlib.h>, <unistd.h>, "pathmax.h".
73134         Instead, include "xgetcwd.h" (first) and "getcwd.h".
73135         (INITIAL_BUFFER_SIZE): Remove.
73136         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
73137
73138 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73139
73140         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
73141         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
73142         Use the _ONCE methods, for efficiency.
73143         Check for fcntl.h.  In test program, include <errno.h>
73144         and <fcntl.h> if available.  Remove old K&R cruft from
73145         test program.  Check for common errors in GNU/Linux,
73146         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
73147         don't do AC_LIBOBJ, as that's getcwd.m4's job.
73148         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
73149         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
73150         name accordingly.
73151         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
73152         accommodate new getcwd.c.
73153         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
73154         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
73155         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
73156         that's all we need now.
73157
73158 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73159
73160         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
73161         argp-parse.c depends on getopt internals, that means we should
73162         always use our getopt, to be on the safe side.
73163         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
73164         order not to spoil the result of an eventual previous invocation
73165         of gl_GETOPT_SUBSTITUTE.
73166
73167 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73168
73169         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
73170         redefinition warnings. To avoid them, include the defines
73171         in `#if !defined __need_getopt ... #endif'. The only place
73172         where __getopt_argv_const is used is in definitions
73173         of getopt_long and getopt_long_only below, which are as well
73174         protected by `#ifndef __need_getopt'.
73175         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
73176         __need_getopt after including <stdio.h> and <unistd.h> These
73177         headers might have defined it.
73178
73179 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73180
73181         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
73182
73183 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73184
73185         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
73186         (futimens): New function, which uses futimes if available.
73187         (futimens, utimens): Support timespec==NULL, with same semantics
73188         as utime and utimens.
73189         * lib/utimens.h (futimens): New decl.
73190
73191 2004-11-23  Jim Meyering  <jim@meyering.net>
73192
73193         * lib/getopt_.h: Remove trailing blanks.
73194
73195 2004-11-23  Jim Meyering  <jim@meyering.net>
73196
73197         * lib/__fpending.c: Add comment.
73198
73199 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
73200
73201         * modules/canonicalize (Depends-on): Add xreadlink.
73202         Problem reported by James Youngman.
73203
73204 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73205
73206         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73207         New macros.
73208         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73209         optopt): Use them instead of invoking ## directly; otherwise, the
73210         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73211
73212 2004-11-19  Bruno Haible  <bruno@clisp.org>
73213
73214         * lib/strtok_r.c: Move comments from here...
73215         * lib/strtok_r.h: ... to here.
73216
73217 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73218
73219         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73220         implementations that mishandle size_t overflow.
73221
73222 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73223
73224         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73225         might fail.  Problem reported by Yoann Vandoorselaere.
73226         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73227         implementations that mishandle size_t overflow.
73228
73229 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73230
73231         * modules/canon-host (Depends-on): Add strdup.
73232
73233 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73234
73235         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73236
73237 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73238
73239         * lib/canon-host.c: Include "strdup.h".
73240         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73241         Use strdup instead of malloc/strcpy to duplicate strings.
73242
73243         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73244         (human_space_before_unit): New constant.
73245         * lib/human.c (human_readable): Support it.
73246
73247         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73248         (xgetcwd): Set errno correctly when failing.
73249         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73250         the failure is actually due to a PATH_MAX problem.
73251
73252         Further getopt changes to make it more likely that glibc will
73253         buy the changes back.
73254         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73255         (getopt): Use it, so to preserve glibc semantic
73256         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73257         when compiling for libc.
73258         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73259         (getopt_long, getopt_long_only): Use it.
73260
73261         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73262         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73263         (getopt): Argv is now char * const *, as per standard.
73264         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73265         not char *__getopt_argv_const *.
73266         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73267         _getopt_long_only_r): Likewise.
73268         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73269         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73270         _getopt_long_r, _getopt_long_only_r): Likewise.
73271         * lib/getopt_.h (__getopt_argv_const): Remove.
73272         (getopt): Argv is now char * const *, as per standard.
73273
73274         * lib/getdate.y (tORDINAL): New token.
73275         (day, relunit): Allow it for relative times.
73276         (relative_time_table): Use tORDINAL for ordinals.
73277
73278 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73279
73280         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73281         Document that "second" isn't allowed as an ordinal number.
73282
73283 2004-11-16  Jim Meyering  <jim@meyering.net>
73284
73285         * modules/closeout (Depends-on): Add fpending.
73286
73287 2004-11-15  Jim Meyering  <jim@meyering.net>
73288
73289         * lib/closeout.c: Include "__fpending.h" once again.
73290         Include <stdbool.h>.
73291         (close_stdout): Don't fail just because stdout was closed initially,
73292         since some programs don't write to stdout in the normal course of
73293         operation (other than --version and --help), and we don't want this
73294         function to make e.g. `touch file >&-' fail.
73295         But do fail if it was closed and someone has tried to write to it.
73296         E.g., `printf foo >&-' must fail.
73297
73298 2004-11-13  Jim Meyering  <jim@meyering.net>
73299
73300         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73301
73302 2004-11-12  Simon Josefsson  <jas@extundo.com>
73303
73304         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73305         small doc fix is still pending.
73306
73307 2004-11-11  Simon Josefsson  <jas@extundo.com>
73308
73309         * modules/strtok_r: New file.
73310
73311         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73312         strtok_r.
73313
73314 2004-11-11  Simon Josefsson  <jas@extundo.com>
73315
73316         * m4/strtok_r.m4: New file.
73317
73318         * m4/getopt.m4: Replace opterr.
73319
73320 2004-11-11  Simon Josefsson  <jas@extundo.com>
73321
73322         * lib/strtok_r.h, strtok_r.c: New file.
73323
73324 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73325
73326         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73327         of replacing opterr, getopt, etc.  This should handle the
73328         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73329
73330 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73331
73332         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73333         we can stop lying to compilers about the constness of argv when we
73334         are compiled outside glibc.
73335         (getopt, getopt_long, getopt_long_only): Use it.
73336         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73337         _getopt_internal, getopt): Likewise.
73338         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73339         _getopt_long_only_r): Likewise.
73340         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73341         _getopt_long_r, _getopt_long_only_r): Likewise.
73342
73343         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73344         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73345         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73346         the other external symbols.
73347         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73348         declaration, since the above renaming now works around collisions.
73349
73350 2004-11-11  Jim Meyering  <jim@meyering.net>
73351
73352         * lib/linebreak.c: Remove trailing blanks.
73353         * lib/alloca_.h: Likewise.
73354         * lib/acosl.c: Likewise.
73355         * lib/euidaccess.c: Likewise.
73356         * lib/allocsa.h: Likewise.
73357
73358 2004-11-10  Simon Josefsson  <jas@extundo.com>
73359
73360         * m4/getaddrinfo.m4: New file.
73361
73362 2004-11-10  Simon Josefsson  <jas@extundo.com>
73363
73364         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73365
73366 2004-11-10  Simon Josefsson  <jas@extundo.com>
73367
73368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73369         getaddrinfo.
73370
73371         * modules/getaddrinfo: New file.
73372
73373 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73374
73375         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73376
73377 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73378
73379         * lib/mktime.c (SHR): New macro, which is a portable
73380         substitute for >> that should work even on Crays.
73381         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73382         Problem reported by Mark D. Baushke in
73383         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73384         * lib/getdate.y (SHR): Likewise.
73385         (tm_diff): Use it.
73386         * lib/strftime.c (SHR): Likewise.
73387         (tm_diff): Use it.
73388         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73389         quote_these_too, so that right shifts are well defined.  All uses
73390         changed.
73391
73392 2004-11-10  Jim Meyering  <jim@meyering.net>
73393
73394         Ensure that no close failure goes unreported.
73395         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73396         return early when it seems there's nothing to flush.
73397         Don't include __fpending.h.
73398
73399 2004-11-10  Jim Meyering  <jim@meyering.net>
73400
73401         * modules/closeout (Depends-on): Remove fpending.
73402
73403 2004-11-10  Jim Meyering  <jim@meyering.net>
73404
73405         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73406
73407 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73408
73409         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73410         gl_FUNC_STRFTIME.
73411         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73412         and AC_REQUIRE when possible, to avoid duplicate checks.
73413         Check for <wchar.h>.
73414
73415 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73416
73417         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73418
73419 2004-11-09  Bruno Haible  <bruno@clisp.org>
73420
73421         * m4/sockpfaf.m4: New file.
73422
73423 2004-11-05  Bruno Haible  <bruno@clisp.org>
73424
73425         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73426         Reported by Mark D. Baushke <mdb@cvshome.org>.
73427
73428 2004-11-04  Bruno Haible  <bruno@clisp.org>
73429
73430         2004-09-11  Bruno Haible  <bruno@clisp.org>
73431                 * allocsa.valgrind: New file.
73432         2004-02-06  Bruno Haible  <bruno@clisp.org>
73433                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73434                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73435                 Reported by Christopher Seip <chris.seip@hp.com>.
73436
73437 2004-11-04  Bruno Haible  <bruno@clisp.org>
73438
73439         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73440         (Makefile.am): Distribute it.
73441
73442 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73443
73444         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73445         with errno == ERANGE if the buffer is too small.
73446         Problem reported by Mark D. Baushke.
73447
73448 2004-11-03  Albert Chin  <china@thewrittenword.com>
73449             Paul Eggert  <eggert@cs.ucla.edu>
73450
73451         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73452         equivalent, substitute $ac_type for equivalent type rather than
73453         blindly using uint32_t *always* which won't work if uint32_t is not
73454         available.  Define _UINT32_T to work around typedef of uint32_t if
73455         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73456         2.5.1.
73457
73458 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         * m4/jm-macros.m4: Sync from coreutils.
73461         (gl_MACROS): Check for mbrlen, for pathchk.
73462         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73463
73464 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73465
73466         * lib/xreadlink.c (MAXSIZE): New macro.
73467         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73468         size does not exceed MAXSIZE.  Avoid cast.
73469         As suggested by Mark D. Baushke in
73470         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73471         if readlink fails with buffer size just under MAXSIZE, try again
73472         with MAXSIZE.
73473
73474 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73475
73476         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73477
73478 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73479         and  Paul Eggert  <eggert@cs.ucla.edu>
73480
73481         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73482         (get_date): Overparenthesize to avoid GCC warning.
73483
73484 2004-11-02  Bruno Haible  <bruno@clisp.org>
73485
73486         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73487         returns void.
73488
73489 2004-11-02  Bruno Haible  <bruno@clisp.org>
73490
73491         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73492         function returns void.
73493
73494 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73495
73496         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73497         fflush_unlocked, flockfile, funlockfile, funlockfile,
73498         fputs_unlocked, putc_unlocked.
73499
73500 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73501
73502         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73503         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73504         already declared.
73505
73506 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73507
73508         * modules/getdate (Files): Add doc/getdate.texi.
73509         (Depends-on): Add setenv, xalloc.
73510
73511 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73512
73513         * lib/getdate.y: Add support for TZ="foo" within a date string.
73514         Fix some bugs near time_t boundaries.  Reject dates with
73515         out-of-range components, e.g., "Sept 31".
73516         Include <stdlib.h>, "setenv.h", "xalloc.h".
73517         (ISDIGIT_LOCALE): Remove; unused.
73518         Note that the TZ and time functions used here are not reentrant.
73519         (mktime_ok, get_tz): New functions.
73520         (TZBUFSIZE): New constant.
73521         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73522         This requires that we sometimes generate our own TZ="XXX..." setting.
73523
73524 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73525
73526         * doc/getdate.texi: New file, from coreutils with modifications for
73527         the new TZ parsing.
73528
73529 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73530
73531         * lib/mktime.c (not_equal_tm): Remove redundant check.
73532
73533 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73534
73535         * modules/regex (lib_SOURCES): Add regex.c.
73536         Reported by James Youngman in
73537         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73538
73539 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73540
73541         * lib/getdate.y: Use Bison 1.875 features, and some minor
73542         code cleanups.  This change does not affect semantics.
73543         Don't include <stdlib.h>; no longer needed.
73544         Don't include unlocked-io.h; only the "#if TEST" code uses
73545         stdio, and performance isn't crucial there.
73546         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73547         Bison 1.875 features as described below.
73548         All uses of "PC." replaced by "pc->".
73549         (YYSTYPE): Add a forward declaration.
73550         (yylex, yyerror): Use full prototypes in forward decls.
73551         Use "%pure-parser" rather than obsolescent "%pure_parser".
73552         Use %parse-param and %lex-param instead of obsolescent
73553         YYPARSE_PARAM and YYLEX_PARAM.
73554         (meridian_table, month_and_day_table, time_units_table,
73555         relative_time_table, time_zone_table, military_table,
73556         lookup_zone, lookup_word, get_date):
73557         Use NULL instead of 0 where appropriate.
73558         (to_hour): Avoid abort (), to avoid a dependency on
73559         stdlib.h.
73560         (yyerror, yylex): Now accepts parser_control * arg.
73561         (main) [TEST]: Use '\0' rather than 0 for char.
73562
73563 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73564
73565         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73566
73567 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73568
73569         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73570         It's now the caller's responsibility to handle the case where
73571         !HAVE_GETPAGESIZE && !defined getpagesize.
73572
73573         * lib/mktime.c (leapyear): Arg is long int, not int.
73574
73575 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73576
73577         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73578
73579 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73580
73581         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73582         missing.  Problem reported by James Youngman.
73583
73584 2004-10-16  Simon Josefsson  <jas@extundo.com>
73585
73586         * gnulib-tool: Fix comments.  Fix parse problem.
73587         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73588
73589 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73590
73591         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73592         implementation of getopt_long.  Problem reported by Alexander Taler in:
73593         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73594
73595 2004-10-15  Bruno Haible  <bruno@clisp.org>
73596
73597         * gnulib-tool: Untabify. Initialize supplied_libname.
73598         (func_usage): More homogenous output.
73599         (func_modules_transitive_closure, func_modules_to_filelist,
73600         func_emit_lib_Makefile_am): New functions.
73601         (func_import): New function, extracted from big case statement. Use
73602         func_get_license, func_modules_transitive_closure,
73603         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73604         opt_lgpl. Don't use test -a, as it's not portable.
73605         (func_create_testdir): Use func_modules_transitive_closure,
73606         func_modules_to_filelist, func_emit_lib_Makefile_am.
73607
73608 2004-10-15  Bruno Haible  <bruno@clisp.org>
73609
73610         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73611
73612 2004-10-15  Bruno Haible  <bruno@clisp.org>
73613
73614         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73615         the portions belonging to each module.
73616         Suggested by Derek Robert Price <derek@ximbiot.com>.
73617
73618 2004-10-12  Simon Josefsson  <jas@extundo.com>
73619
73620         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73621         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73622         to real functions.
73623
73624 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73625
73626         * modules/vsnprintf: New file.
73627
73628 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73629
73630         * m4/vsnprintf.m4: New file.
73631
73632 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73633
73634         * lib/vsnprintf.h: New file.
73635         * lib/vsnprintf.c: New file.
73636
73637 2004-10-11  Bruno Haible  <bruno@clisp.org>
73638
73639         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73640         vsnprintf.
73641
73642 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73643
73644         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73645
73646 2004-10-07  Bruno Haible  <bruno@clisp.org>
73647
73648         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73649         fits into the provided buffer.
73650
73651 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73652
73653         * lib/diacrit.c, diacrit.h: Add GPL notice.
73654
73655         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73656         notice.
73657         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73658         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73659         This avoids a potential constant-folding bug.
73660
73661 2004-10-05  Bruno Haible  <bruno@clisp.org>
73662
73663         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73664         for the declaration of strsep.
73665
73666 2004-10-05  Bruno Haible  <bruno@clisp.org>
73667
73668         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73669
73670 2004-10-04  Simon Josefsson  <jas@extundo.com>
73671
73672         * modules/memmem: New file.
73673         * tests/test-memmem.c: New file.
73674         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73675
73676 2004-10-04  Simon Josefsson  <jas@extundo.com>
73677
73678         * m4/memmem.m4: New file.
73679
73680 2004-10-04  Simon Josefsson  <jas@extundo.com>
73681
73682         * lib/memmem.h: New file.
73683         * lib/memmem.c: New file, taken from glibc.
73684
73685 2004-10-04  Simon Josefsson  <jas@extundo.com>
73686
73687         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73688         '#ifdef USE_UNLOCKED_IO'.
73689
73690 2004-10-04  Simon Josefsson  <jas@extundo.com>
73691
73692         * config/srclist.txt: Add memmem from glibc.
73693
73694 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73695
73696         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73697
73698         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73699         modules/exclude, modules/getdate, modules/getline,
73700         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73701         modules/getusershell, modules/linebuffer, modules/md5,
73702         modules/mountlist, modules/posixtm, modules/readtokens,
73703         modules/readutmp, modules/regex, modules/sha1,
73704         modules/version-etc, modules/yesno:
73705         Remove dependency on unlocked-io.
73706
73707 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73708
73709         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73710
73711         * m4/unlocked-io.m4: Add copyright notice.
73712         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73713
73714 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73715
73716         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73717         * lib/xmalloc.c (xmemdup): Likewise.
73718         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73719         XFREE): Remove these long-obsolescent macros.
73720         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73721         * lib/xstrdup.c: Remove.
73722
73723         * lib/regex.c (re_comp): Cast gettext return value to char *,
73724         Problem reported by Martin Neitzel via Mark D. Baushke.
73725
73726 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73727
73728         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73729         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73730         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73731         regex.c, sha1.c, version-etc.c, yesno.c:
73732         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73733         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73734         the includer's responsibility.
73735
73736         Sync from coreutils.
73737
73738         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73739         points to the start of a string, as the C Standard says the
73740         resulting behavior is undefined.
73741
73742         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73743         simple -> simple_backups, numbered_existing ->
73744         numbered_existing_backups, numbered -> numbered_backups
73745         to avoid shadowing problems.  All uses changed.
73746         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73747         * lib/backupfile.c (check_extension, numbered_backup):
73748         Rename locals to avoid shadowing 'basename'.
73749         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73750         once.
73751
73752         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73753         * lib/.cvsignore: Add getopt.h.
73754
73755 2004-10-04  Bruno Haible  <bruno@clisp.org>
73756
73757         * modules/README: New file.
73758         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73759         not a module.
73760
73761 2004-10-02  Jim Meyering  <jim@meyering.net>
73762
73763         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73764
73765 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73766
73767         * modules/strsep: New file.
73768
73769 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73770
73771         * m4/strsep.m4: New file.
73772
73773 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73774
73775         * lib/strsep.h: New file.
73776         * lib/strsep.c: New file.
73777
73778 2004-10-01  Simon Josefsson  <jas@extundo.com>
73779
73780         * lib/snprintf.c (snprintf): Handle size==0.
73781
73782 2004-10-01  Simon Josefsson  <jas@extundo.com>
73783             Bruno Haible  <bruno@clisp.org>
73784
73785         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
73786         (snprintf): Declare 'args'.
73787
73788 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
73789
73790         * lib/snprintf.c: Remove comments as to why each header is needed.
73791
73792 2004-10-01  Bruno Haible  <bruno@clisp.org>
73793
73794         * MODULES.html.sh: Add strsep.
73795
73796 2004-09-30  Simon Josefsson  <jas@extundo.com>
73797
73798         * modules/snprintf: New file.
73799
73800 2004-09-30  Simon Josefsson  <jas@extundo.com>
73801
73802         * m4/snprintf.m4: New file.
73803
73804 2004-09-30  Simon Josefsson  <jas@extundo.com>
73805
73806         * lib/snprintf.h, lib/snprintf.c: New files.
73807
73808 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73809
73810         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
73811         (hol_entry_help): Never translate an empty string.
73812         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
73813         * lib/argp.h (OPTION_NO_TRANS): New option.
73814
73815 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73816
73817         * modules/argp (Maintainer): Replace Simon Josefsson
73818         by Sergey Poznyakoff.
73819
73820 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73821
73822         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
73823         changes merged back into glibc.
73824
73825 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
73828
73829 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73830
73831         * lib/xvasprintf.c: Include xalloc.h.
73832         (xvasprintf): Use xalloc_die, not xmalloc_die.
73833
73834 2004-09-29  Bruno Haible  <bruno@clisp.org>
73835
73836         * modules/alloca-opt: New file, derived from modules/alloca.
73837         * modules/allocsa: Depend on alloca-opt instead of alloca.
73838         * modules/setenv: Likewise.
73839         * modules/vasnprintf: Likewise.
73840         * MODULES.html.sh: Add alloca-opt.
73841
73842 2004-09-28  Simon Josefsson  <jas@extundo.com>
73843
73844         * gnulib-tool: New parameter --lgpl, to asseert that modules are
73845         LGPL, and to replace license template from GPL to LGPL.
73846
73847 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73848
73849         * modules/dummy: Change license to LGPL.
73850
73851 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73852
73853         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
73854
73855 2004-09-24  Simon Josefsson  <jas@extundo.com>
73856
73857         * modules/minmax (License): Change from GPL to LGPL.
73858
73859 2004-09-23  Simon Josefsson  <jas@extundo.com>
73860
73861         * gnulib-tool (--import): Typo.
73862
73863 2004-09-23  Simon Josefsson  <jas@extundo.com>
73864
73865         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
73866
73867 2004-09-22  Bruno Haible  <bruno@clisp.org>
73868
73869         * modules/*: Add 'License' field.
73870         * gnulib-tool: Accept --extract-license option.
73871         (func_get_license): New function.
73872
73873 2004-09-21  Bruno Haible  <bruno@clisp.org>
73874
73875         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
73876         Reported by Simon Josefsson.
73877
73878 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73879
73880         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
73881         gl_AC_TYPE_LONG_LONG.
73882
73883 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
73886
73887 2004-09-18  Simon Josefsson  <jas@extundo.com>
73888         and  Paul Eggert  <eggert@cs.ucla.edu>
73889
73890         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
73891         calls with autoreconf.  Define GL_LIB.
73892
73893 2004-09-14  Karl Berry  <karl@gnu.org>
73894
73895         * config/srclist.txt: unsync setenv.c, sigh.
73896
73897 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73898
73899         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
73900         Problem reported by Bruno Haible in:
73901         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
73902
73903 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73904
73905         * config/srclist.txt: Comment out argp-pvh.c.
73906
73907 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
73908
73909         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
73910         in case some system header has #define'd it.  Problem reported by
73911         Soeren D. Schulze in
73912         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
73913
73914 2004-09-09  Karl Berry  <karl@gnu.org>
73915
73916         * regex.[ch]: delete from the root.  These were supposed to be
73917                 synced with emacs cvs, but this has not happened for about
73918                 a year, and anyway nothing else uses emacs regex.[ch].
73919                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
73920                 lib/regex[.ch] is untouched.
73921
73922 2004-09-09  Bruno Haible  <bruno@clisp.org>
73923
73924         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
73925
73926 2004-09-09  Bruno Haible  <bruno@clisp.org>
73927
73928         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
73929         modifications.
73930         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
73931
73932 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73933
73934         * modules/xvasprintf: New file.
73935         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
73936
73937 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73938
73939         * lib/xvasprintf.h: New file.
73940         * lib/xvasprintf.c: New file.
73941         * lib/xasprintf.c: New file.
73942
73943 2004-09-08  Bruno Haible  <bruno@clisp.org>
73944
73945         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
73946
73947 2004-09-08  Bruno Haible  <bruno@clisp.org>
73948
73949         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
73950         length is > INT_MAX.
73951         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
73952         more.
73953
73954 2004-09-08  Bruno Haible  <bruno@clisp.org>
73955
73956         * lib/stdint_.h: New file, taken from GNU clisp.
73957
73958 2004-09-08  Bruno Haible  <bruno@clisp.org>
73959             Oskar Liljeblad  <oskar@osk.mine.nu>
73960
73961         * modules/stdint: New file.
73962         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
73963
73964 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73965
73966         Import from coreutils.
73967         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
73968         strings on unbounded length.  alloca's performance benefits aren't
73969         that important here.
73970         (V_STRDUP): Remove.
73971         (parse_with_separator): New function, with most of the internals
73972         of the old parse_user_spec.  Allow user to omit both user and group,
73973         for compatibility with FreeBSD.
73974         Clone only the user name, not the entire spec.
73975         Do not set *uid, *gid unless entirely successful.
73976         Avoid memory leak in some failing cases.
73977         Fix regression for USER.GROUP reported by Dmitry V. Levin in
73978         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
73979         (parse_user_spec): Rewrite to use parse_with_separator.
73980
73981 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73982
73983         * modules/userspec: Don't depend on alloca.
73984
73985 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73986
73987         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
73988
73989 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73990
73991         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
73992         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
73993         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
73994
73995 2004-08-16  Simon Josefsson  <jas@extundo.com>
73996
73997         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
73998         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
73999         Add --dry-run for --import.
74000         Let user provided command line parameters override configure.ac
74001         settings.
74002
74003 2004-08-12  Simon Josefsson  <jas@extundo.com>
74004
74005         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
74006         as discussed with Paul Eggert in threads rooted at
74007         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
74008         and
74009         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
74010         Before, the test was empty, and relied on ELIDE_CODE in source
74011         code.)
74012         (gl_PREREQ_GETOPT): New macro.
74013         (gl_GETOPT): Use them.
74014
74015 2004-08-12  Simon Josefsson  <jas@extundo.com>
74016
74017         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
74018         * lib/getopt_.h: Renamed from getopt.h.
74019
74020 2004-08-12  Simon Josefsson  <jas@extundo.com>
74021
74022         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
74023         Change default library name from libfoo to libgnu.
74024         Now, if you have a configure.ac that says:
74025                 gl_SOURCE_BASE(gl)
74026                 gl_M4_BASE(gl/m4)
74027                 gl_MODULES(error getopt etcetera)
74028                 gl_INIT
74029         you can import all you need by running:
74030                 ../gnulib/gnulib-tool --import
74031
74032         * modules/getopt (Files): Rename getopt.h to getopt_.h.
74033         (Makefile.am): Rewrite, use logic from argz.
74034         (Include): Use <getopt.h> instead of "getopt.h".
74035
74036 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74037
74038         * modules/argp (Files): Add m4/unlocked-io.m4.
74039         (Depends-on): Add extensions.
74040
74041 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74042
74043         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
74044         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
74045         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
74046         Check for program_invocation_name, program_invocation_short_name,
74047         flockfile, funlockfile, features.h, _getopt_long_only_r.
74048
74049 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74050
74051         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
74052         its complicated substitute.
74053         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
74054         and program_invocation_name.
74055         (__argp_basename) [!_LIBC]: Remove; the only use was
74056         replaced by its body.
74057         (__argp_short_program_name): Change condition from
74058         !defined __argp_short_program_name to
74059         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
74060         to match argp-namefrob.h.
74061         (__argp_failure): Don't assume strerror_r returns char *.
74062         * lib/argp-parse.c (N_): Define unconditionally.
74063         (argp_default_options): Fill out initializers with 0 to avoid
74064         gcc warnings.
74065
74066 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74067
74068         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
74069         getopt1.c.
74070
74071 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74072
74073         Merge from coreutils.
74074
74075         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
74076
74077         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
74078         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
74079
74080 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74081
74082         Merge from coreutils.
74083
74084         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
74085         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
74086         for Reliant Unix 5.43.
74087
74088         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
74089         (union fooround): Use uintmax_t, not long int.
74090         The rest is a merge from libc:
74091         [defined _LIBC]: Include <shlib-compat.h>.
74092         (_obstack) [defined _LIBC]: Remove after 2.3.4.
74093
74094         * lib/settime.c (settime): Recode to avoid warning with
74095         Sun Forte C 6U2.
74096
74097         * lib/strverscmp.c: Convert to UTF-8.
74098
74099 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74100
74101         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74102         m4/uintmax_t.m4.
74103
74104 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74105
74106         * modules/xalloc-die: New file.
74107         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
74108
74109         * modules/md5 (Files): Add m4/uint32_t.m4.
74110         * modules/sha1: Renamed from modules/sha.
74111         (Files):
74112         Rename lib/sha.h to lib/sha1.h.
74113         Rename lib/sha.c to lib/sha1.c.
74114         Rename m4/sha.m4 to m4/sha1.m4.
74115         (lib_SOURCES): Likewise.
74116         (configure.ac): Rename gl_SHA to gl_SHA1.
74117         (Include): sha.h -> sha1.h.
74118
74119 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74120
74121         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
74122         * m4/sha1.m4: Renamed from sha.m4.
74123         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
74124
74125 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74126
74127         * lib/obstack.h (obstack_empty_p):
74128         Don't assume that chunk->contents is suitably aligned.
74129         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
74130         Likewise. Problem reported by Benno in
74131         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
74132
74133         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
74134         readable.  This could be improved further but it'd take some work.
74135
74136 2004-08-08  Simon Josefsson  <jas@extundo.com>
74137
74138         * modules/xgethostname (Depends-on): Remove exit and error (not
74139         used).
74140
74141         * modules/getpass-gnu: Add getpass.h.
74142         (Depends-on): Add stdbool.
74143         * modules/getpass: Add getpass.h.
74144
74145 2004-08-08  Simon Josefsson  <jas@extundo.com>
74146
74147         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
74148         Check getpass declaration.
74149
74150 2004-08-08  Simon Josefsson  <jas@extundo.com>
74151
74152         * lib/xgethostname.c: Don't include error.h (not used).
74153
74154         * lib/getpass.h: Add.
74155         * lib/getpass.c: Include getpass.h first.
74156
74157 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
74158
74159         * lib/xalloc-die.c: New file.
74160         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
74161         All uses removed.
74162         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
74163         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
74164         xalloc-die.c.
74165         (_, N_, xalloc_die): Move to xalloc-die.c.
74166         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
74167         so that we needn't mess with xalloc_msg_memory_exhausted.
74168
74169         * lib/sha1.h: Renamed from sha.h.
74170         (SHA1_H): Renamed from _SHA_H.
74171         (sha1_ctx): Renamed from sha_ctx.
74172         (sha1_init_ctx): Renamed from sha_init_ctx.
74173         (sha1_process_block): Renamed from sha_process_block.
74174         (sha1_process_bytes): Renamed from sha_process_bytes.
74175         (sha1_finish_ctx): Renamed from sha_finish_ctx.
74176         (sha1_read_ctx): Renamed from sha_read_ctx.
74177         (sha1_stream): Renamed from sha_stream.
74178         (sha1_buffer): Renamed from sha_buffer.
74179         * lib/sha1.c: Likewise; renamed from sha.c.
74180         Do not include <sys/types.h>.
74181         Include <stddef.h> rather than <stdlib.h>.
74182
74183 2004-08-08  Bruno Haible  <bruno@clisp.org>
74184
74185         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
74186         FILESYSTEM_PREFIX_LEN.
74187         * lib/progreloc.c: Likewise.
74188         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
74189
74190 2004-08-06  Simon Josefsson  <jas@extundo.com>
74191
74192         * modules/progname (Depends-on): Don't depend on stdbool.
74193
74194 2004-08-06  Simon Josefsson  <jas@extundo.com>
74195
74196         * modules/getsubopt: New file.
74197         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74198         getsubopt.
74199
74200 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74201
74202         More merge from coreutils.
74203
74204         * m4/utimens.m4, m4/utimecmp.m4: New files.
74205         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
74206         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74207         prereq.m4, sha.m4: Import changes from coreutils.
74208
74209 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74210
74211         More merge from coreutils.
74212         * modules/raise, modules/readtokens0, modules/utimens:
74213         * modules/utimecmp, module/xnanosleep: New files.
74214         * modules/strftime: Add lib/strftime.h.
74215         Change include from <time.h> to "strftime.h".
74216         * modules/yesno: Add lib/yesno.h.
74217         * modules/backupfile: Remove lib/addext.c.
74218         * modules/euidaccess: Add stat-macros.h.
74219         * modules/canonicalize, modules/euidaccess,
74220         modules/filemode, modules/lchown, modules/makepath,
74221         modules/rmdir, modules/stat: Likewise.
74222
74223 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74224
74225         Merge from tar.
74226         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74227         SIZE_MAX is a valid preprocessor constant.
74228         (__argp_basename): Change from "#ifndef _LIBC"
74229         to "#ifndef __argp_short_program_name", so that
74230         we don't compile these functions for tar.
74231
74232         More merges from coreutils.
74233         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74234         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74235         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74236         * lib/addext.c: Remove; no longer needed.
74237         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74238         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74239         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74240         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74241         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74242         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74243         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74244         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74245         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74246         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74247         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74248         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74249         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74250         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74251         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74252         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74253         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74254         Import changes from coreutils.
74255
74256 2004-08-05  Simon Josefsson  <jas@extundo.com>
74257
74258         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74259
74260 2004-08-05  Simon Josefsson  <jas@extundo.com>
74261
74262         * m4/getsubopt.m4: New file.
74263
74264 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74265
74266         Merge from coreutils.
74267
74268         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74269         * m4/getcwd-path-max.m4: New files.
74270
74271         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74272         FILESYSTEM_PREFIX_LEN ->
74273         FILE_SYSTEM_PREFIX_LEN.
74274         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74275         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74276         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74277         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74278
74279         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74280         prerequisite modules now handle the DOS stuff.
74281         Don't check for unistd.h.
74282
74283 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74284
74285         Merge from coreutils.
74286
74287         * lib/.gdb-history: Remove; this doesn't belong here.
74288
74289         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74290         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74291         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74292         * lib/getcwd.c: New files.
74293
74294         * lib/dirname.h: Include <stdbool.h>.
74295         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74296         for consistency with POSIX terminology.  All uses changed.
74297         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74298         (strip_trailing_slashes): Use bool for booleans.
74299         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74300
74301         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74302         sometimes returns a positive errno value even when it succeeds.
74303         (print_errno_message) [!LIBC]: Fall back on strerror if
74304         __strerror_r fails.
74305
74306         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74307         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74308         (longest_relative_suffix): New function.
74309         (path_concat): Use it.  Assume first argument is not NULL.
74310         Port to DOS.  Omit redundant separators.
74311         Report an error instead of returning NULL.
74312         Use mempcpy instead of memcpy.
74313         (xpath_concat): Remove: not declared or used.
74314
74315         * lib/same.h: Include <stdbool.h>
74316         (same_name): Return bool, not int.
74317         * lib/same.c (same_name): Likewise.
74318         (errno): Don't declare; we assume C89 or better now.
74319
74320         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74321         if not already defined.
74322
74323         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74324         * lib/dup-safer.c (errno): Likewise.
74325
74326 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74327
74328         Merge from coreutils.
74329         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74330         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74331         * modules/path-concat: Don't depend on strdup.
74332
74333 2004-08-03  Simon Josefsson  <jas@extundo.com>
74334
74335         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74336         * lib/progname.h: Don't include stdbool.h.
74337
74338 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74339
74340         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74341         * MODULES.html.sh (func_all_modules): Remove fatal.
74342
74343 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74346
74347 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74348
74349         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74350         working.
74351
74352 2004-08-02  Simon Josefsson  <jas@extundo.com>
74353
74354         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74355         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74356         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74357
74358 2004-08-01  Simon Josefsson  <jas@extundo.com>
74359
74360         * lib/xgetdomainname.c: Include stdlib.h, for free().
74361
74362 2004-07-19  Bruno Haible  <bruno@clisp.org>
74363
74364         * MODULES.html.sh (func_all_modules): Add dummy.
74365
74366 2004-07-16  Simon Josefsson  <jas@extundo.com>
74367
74368         * modules/dummy: New file.
74369
74370 2004-07-16  Simon Josefsson  <jas@extundo.com>
74371
74372         * lib/dummy.c: New file.
74373
74374 2004-07-16  Bruno Haible  <bruno@clisp.org>
74375
74376         * lib/backupfile.h: Add extern "C" for C++.
74377         * lib/closeout.h: Likewise.
74378         * lib/copy-file.h: Likewise.
74379         * lib/findprog.h: Likewise.
74380         * lib/full-write.h: Likewise.
74381         * lib/pathname.h: Likewise.
74382         * lib/progname.h: Likewise.
74383         * lib/stpcpy.h: Likewise.
74384         * lib/stpncpy.h: Likewise.
74385         * lib/strcase.h: Likewise.
74386         * lib/strstr.h: Likewise.
74387         * lib/xalloc.h: Likewise.
74388
74389         * lib/mbswidth.h: Add extern "C" for C++.
74390         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74391
74392 2004-07-13  Robert Millan  <robertmh@gnu.org>
74393
74394         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74395
74396 2004-07-09  Simon Josefsson  <jas@extundo.com>
74397
74398         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74399         failed without this.)
74400
74401 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74402
74403         * modules/chown (Files): Add lib/fchown-stub.c, since
74404         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74405
74406 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74407
74408         * lib/fchown-stub.c: New file.
74409
74410 2004-06-24  Jim Meyering  <jim@meyering.net>
74411
74412         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74413
74414 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74415
74416         * modules/argz: Omit "#include".
74417
74418         * MODULES.html.sh (func_all_modules): Add calloc, to match
74419         2004-06-01 addition of calloc module.
74420
74421 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74422
74423         * m4/argz.m4: New file, which is autoupdated from libtool.
74424
74425 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74426
74427         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74428         libtool.
74429
74430 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74431
74432         * config/srclist-update: Don't insist on "USA." before the
74433         close-comment, as libtool omits the period and puts the */ on a
74434         separate line.
74435         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74436         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74437
74438 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74439
74440         * modules/argz: New file.
74441         * MODULES.html.sh (func_all_modules): Add argz.
74442
74443 2004-06-12  Jim Meyering  <jim@meyering.net>
74444         and  Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         * modules/hash (Files): Add lib/xalloc.h.
74447         * modules/pipe (Depends-on): Add wait-process.
74448         * modules/stat (Depends-on): Add xalloc.
74449         * modules/userspec (Files): Add lib/userspec.h.
74450         * modules/xstrto
74451
74452         Upgrade from gettext-0.13.
74453         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74454         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74455         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74456
74457 2004-06-10  Jim Meyering  <jim@meyering.net>
74458
74459         * lib/calloc.c: New file.
74460
74461 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74462
74463         * lib/getdate.y (yylex): Allow space between sign and number.
74464         Problem reported by Dan Jacobson.
74465
74466 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74467
74468         Merge from coreutils CVS.
74469
74470         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74471         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74472         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74473         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74474         xstrtol.m4: Fix copyright date and/or serial number.
74475
74476         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74477         See if we need an fchown replacement.
74478         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74479         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74480         and use the replacement function if we detect either defect.
74481
74482         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74483         gl_UTIMECMP.
74484
74485 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74486         and  Jim Meyering  <jim@meyering.net>
74487
74488         Merge from coreutils CVS.
74489
74490         * lib/stat-macros.h: New file, with contents from file-type.h
74491         and coreutils' system.h.
74492         * lib/file-type.c: Include "stat-macros.h".
74493         * lib/file-type.h (file_type): Move all macro definitions to new file,
74494         stat-macros.h.
74495
74496         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74497         Wrap old code with this conditional.
74498         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74499         function that does not dereference symlinks.
74500         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74501
74502         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74503         dependency problems.
74504         (xreadlink): Accept new arg SIZE, for efficiency.
74505         All decls and uses changed.
74506         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74507
74508         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74509         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74510
74511         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74512         sysexits.h.
74513
74514 2004-06-01  Jim Meyering  <jim@meyering.net>
74515
74516         * m4/calloc.m4: New file.
74517
74518 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74519
74520         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74521         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74522         Also, fix a typo in a diagnostic.
74523
74524 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74525
74526         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74527         or AC_FUNC_REALLOC.
74528
74529 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74530
74531         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74532         macros to be defined.
74533         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74534         the allocator returns NULL because the requested size is zero.
74535
74536 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74537
74538         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74539         var.  Add comment explaining why libc still defines it.  This
74540         merges the following patch from glibc:
74541         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74542
74543 2004-05-20  Andreas Schwab  <schwab@suse.de>
74544
74545         * m4/free.m4: Replace free if it not known to work, not the other
74546         way round.
74547
74548 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74549
74550         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74551         present in glibc since revision 1.1 of this file.
74552         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74553         obstack_alignment_mask, obstack_alloc, obstack_base,
74554         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74555         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74556         obstack_grow0, obstack_init, obstack_int_grow,
74557         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74558         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74559         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74560         nonexistent functions.
74561
74562 2004-05-18  Karl Berry  <karl@gnu.org>
74563
74564         * config/srclist.txt: break link for vasnprintf.c.
74565
74566 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         Port obstack to the AS/400, where pointers are 16 bytes wide and
74569         you cannot cast an integer to a valid pointer.  This patch is
74570         currently waiting to be integrated into glibc; see
74571         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74572
74573         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74574         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74575         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74576         (struct obstack): temp member is now a union of a pointer and
74577         an integer, instead of an integer.  All integer uses changed.
74578         This does not affect the physical layout of struct obstack,
74579         except on hosts (like the AS/400) where the size or alignment of
74580         void * is greater than that of ptrdiff_t.
74581         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74582         __STDC__)]: Store temporary in pointer member of union, not
74583         integer member.
74584         * lib/obstack.c: Include <stddef.h>, for offsetof.
74585         (struct fooalign): Remove; it doesn't need a name.
74586         (union fooround): Change double to long double, and add void *.
74587         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74588         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74589         not a macro.  Hence the values are always int; so remove all
74590         casts-to-int in uses.
74591
74592 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74593
74594         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74595         we can get this patch merged into glibc.
74596
74597 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74598             Paul Eggert  <eggert@cs.ucla.edu>
74599
74600         * m4/argp: Depend on alloca.
74601
74602 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74603             Paul Eggert  <eggert@cs.ucla.edu>
74604
74605         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74606         freecoding.
74607
74608 2004-05-17  Bruno Haible  <bruno@clisp.org>
74609
74610         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74611         precision that consists of a '.' followed by an empty digit string.
74612         Patch by Tor Lillqvist <tml@iki.fi>.
74613
74614 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74615
74616         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74617         for backward compatibility with older code.  We need our own
74618         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74619         it under some other name, and our alloca.h will define it.
74620
74621 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74622             Derek Price  <derek@ximbiot.com>
74623
74624         * lib/alloca.c: Include <alloca.h>, to get our interface.
74625         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74626         include <alloca.h> first.  Use C89 prototype for alloca; this
74627         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74628         Use #elif for simplicity, since we can assume C89 now.
74629         Don't try to source the system alloca.h since it will not be found
74630         and to prevent recursively including its replacement.
74631         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74632         * lib/regex.c: Likewise.
74633
74634 2004-05-16  Derek Price  <derek@ximbiot.com>
74635             Paul Eggert  <eggert@cs.ucla.edu>
74636
74637         getline cleanup.  This changes the getndelim2 API: both order of
74638         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74639         no delimiter).
74640
74641         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74642         interface does that.
74643         (getline): Always use getdelim, so that we don't have two
74644         copies of this code.
74645         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74646         if available.
74647         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74648         (GETNDELIM2_MAXIMUM): New macro.
74649         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74650         instead of the old practice of delim2==0.  All callers changed.
74651         Return -1 on overflow, instead of returning junk.
74652         Do not set *linesize unless allocation succeeds.
74653         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74654         that we include sys/types.h.
74655         * lib/getnline.h: Likewise.
74656         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74657         (getndelim2): Reorder arguments.
74658         * lib/getnline.c (getnline, getndelim):
74659         Don't discard the NMAX argument.
74660         (getnline): Invoke getndelim, to avoid code duplication.
74661         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74662         of (size_t) -1 by callers of the getnline family.
74663
74664 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74665
74666         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74667         Check for gettimeofday.
74668         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74669         Check for settimeofday, stime.
74670
74671 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74672
74673         * lib/nanosleep.c (suspended): Change its type from int to
74674         sig_atomic_t volatile.
74675         (first_call): Make it private to rpl_nanosleep, and have it
74676         be zero initially as that's a bit faster.
74677         (my_usleep): Round up fractional times instead of truncating them,
74678         as this is the usual meaning for 'sleep'.
74679
74680         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74681         doesn't work.
74682         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74683         (ENOSYS): Define if not defined.
74684         (settime): Fall back on stime if it exists and settimeofday fails.
74685         But don't bother with fallbacks if a method fails with errno == EPERM.
74686
74687 2004-05-11  Jim Meyering  <jim@meyering.net>
74688
74689         Prior to this change, the save_cwd caller required read access to the
74690         current directory on most systems (ones with the fchdir function).
74691
74692         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74693         fails, try write-only, and finally, resort to using xgetcwd.
74694
74695 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74696
74697         * lib/obstack.c, obstack.h: Import changes from libc.
74698
74699 2004-04-28  Bruno Haible  <bruno@clisp.org>
74700
74701         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74702         also implicitly appends .exe to executables.
74703         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74704         accepts Windows pathnames.
74705         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74706         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74707         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74708         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74709         Reported by Derek Robert Price <derek@ximbiot.com>.
74710
74711 2004-04-21  Karl Berry  <karl@gnu.org>
74712
74713         * config/srclist.txt (localcharset.c): break sync.
74714
74715 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74716
74717         * m4/host-os.m4: Add a copyright notice.
74718
74719 2004-04-20  Jim Meyering  <jim@meyering.net>
74720
74721         Change UTILS_ to gl_ in AC_DEFINE'd names.
74722         Change utils_- and jm_-prefixed variables, too.
74723         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74724         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74725         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74726
74727         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74728         Don't emit trailing blanks.
74729         Also rename jm_-prefixed variables to have gl_ prefix.
74730
74731         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74732         Also rename jm_-prefixed variables to have gl_ prefix.
74733
74734         * m4/jm-macros.m4: Reflect the renamings.
74735         * m4/prereq.m4: Likewise.
74736
74737 2004-04-20  Jim Meyering  <jim@meyering.net>
74738
74739         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74740         memory.
74741
74742 2004-04-20  Jim Meyering  <jim@meyering.net>
74743             Bruno Haible  <bruno@clisp.org>
74744
74745         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74746         memory when realloc fails.
74747
74748 2004-04-19  Jim Meyering  <jim@meyering.net>
74749
74750         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74751         now that readutmp.c may call `free (0)'.
74752
74753 2004-04-19  Bruno Haible  <bruno@clisp.org>
74754
74755         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74756         * m4/inttypes_h.m4: Likewise.
74757         * m4/stdint_h.m4: Likewise.
74758         * m4/intmax_t.m4: Likewise.
74759         * m4/uintmax_t.m4: Likewise.
74760
74761 2004-04-18  Jim Meyering  <jim@meyering.net>
74762
74763         * m4/prereq.m4: Don't forbid jm_ prefix.
74764
74765         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74766         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74767         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74768         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74769         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74770         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74771         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74772         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74773         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74774         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74775         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74776         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74777         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74778         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74779         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
74780         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
74781         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
74782         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
74783         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
74784
74785 2004-04-18  Jim Meyering  <jim@meyering.net>
74786
74787         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
74788         failure, don't leak memory and do call END_UTMP_ENT.
74789
74790 2004-04-16  Jim Meyering  <jim@meyering.net>
74791
74792         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
74793         coreutils' stat program.
74794         (gl_PREREQ): Don't require jm_PREREQ_STAT.
74795
74796 2004-04-11  Paul Eggert  <eggert@twinsun.com>
74797
74798         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
74799         C89.
74800         (CHAR_BIT): Remove, since we assume C89.
74801         Include <stdint.h> if available, as per current Autoconf CVS advice.
74802
74803 2004-03-31  Jim Meyering  <jim@meyering.net>
74804
74805         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
74806         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
74807         * m4/xalloc.m4: Likewise.
74808
74809 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74810
74811         Merge from coreutils.
74812
74813         * m4/inttostr.m4: New file.
74814         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
74815         Require AM_STDBOOL_H and gl_TIMESPEC instead.
74816         Require gl_CLOCK_TIME.
74817         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
74818
74819 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74820
74821         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
74822         not bool, to be more consistent with Unix conventions.
74823         Suggested by Bruno Haible.
74824
74825         Merge from coreutils.
74826
74827         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
74828         * lib/umaxtostr.c: New files.
74829
74830         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
74831         the usual <time.h> dance.
74832         (get_date): Change signature to support fractional time stamps.
74833         All callers changed.
74834         * lib/getdate.y: Include "getdate.h" first, as we can now
74835         assume C89 and don't need to worry about 'const'.
74836         Similarly, include "unlocked-io.h" near start, not in middle.
74837         Include <limits.h>.
74838         (textint.value): Use long int rather than int.
74839         (textint.digits): Use size_t rather than int.
74840         (BILLION, LOG10_BILLION): New constants.
74841         (parser_control): New member rel_ns.  Members day_ordinal,
74842         time_zone, month, day, hour, minutes, rel_year, rel_month,
74843         rel_day, rel_hour, rel_minutes, rel_seconds
74844         are now long int, not int.  Member seconds is now struct timespec,
74845         not int.  New member timespec_seen.  Members dates_seen, days_seen,
74846         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
74847         not int.
74848         (%union.intval): Now long int, not int.
74849         New member timespec.
74850         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
74851         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
74852         (spec): Now is a timespec or an item list.
74853         (timespec, items): New nonterminals.
74854         (time, rel, relunit, number, get_date):
74855         Add support for fractional seconds.
74856         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
74857         (gmtime, localtime, mktime): Remove decls; not needed with C89.
74858         (to_hour): First arg is now long int, not int.
74859         (to_year): Returns long int, not int.
74860         Don't treat year -70 like 70.
74861         (tm_diff): Returns long int, not int.
74862         (lookup_word): Use bool instead of int when appropriate.
74863         (yylex): Use size_t for count, not int.
74864         Detect overflow when parsing large integer constants.
74865         Add support for fractions.
74866         (get_date): Make pointers 'const' if possible.
74867         Use more-portable code to detect integer overflow.
74868         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
74869         Don't use ctime; it's not reliable if the year has >4 digits.
74870
74871         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
74872         This is for compatibility with BSD.
74873
74874         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
74875         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
74876         From coreutils' system.h.
74877
74878         * lib/userspec.c: Don't include "posixver.h".
74879         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
74880         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
74881         compatible extension.  Simplify code by removing a boolean int
74882         that was always nonzero if a string was nonnull.
74883
74884 2004-03-30  Jim Meyering  <jim@meyering.net>
74885
74886         Merge from coreutils.
74887
74888         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
74889         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
74890         on some systems one must include <grp.h> before it.
74891         Reported by Christian Krackowizer.
74892
74893 2004-03-30  Jim Meyering  <jim@meyering.net>
74894
74895         Merge from coreutils.
74896
74897         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
74898
74899         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
74900         an empty input stream.
74901
74902         * lib/readtokens.c: Include <stdbool.h>.
74903         (readtoken): Use `size_t' rather than int/long.
74904         All callers adjusted.
74905         Use `bool' rather than `int' where appropriate.
74906         Use memset rather than an explicit loop.
74907         Use x2nrealloc rather than xrealloc.
74908         Allow the use of `\0' as a delimiter.
74909         (readtokens): Likewise.
74910         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
74911
74912 2004-03-30  Jim Meyering  <jim@meyering.net>
74913
74914         * m4/realloc.m4: Remove file, since now it does no more than
74915         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
74916         the `configure.ac' section of module/realloc.
74917         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
74918
74919 2004-03-30  Bruno Haible  <bruno@clisp.org>
74920
74921         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
74922         nonnull.
74923
74924 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74925
74926         Merge changes to getloadavg.c from coreutils and Emacs.
74927
74928         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
74929         Define to an expression, not to the empty string.
74930         Include cloexec.h and xalloc.h.
74931         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
74932         Use set_cloexec_flag rather than rolling our own.
74933         * lib/cloexec.c, lib/cloexec.h: New files.
74934
74935 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74936
74937         * m4/cloexec.m4: New file.
74938
74939 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74940
74941         * lib/getopt.h: Sync with libc CVS.
74942
74943 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74944             Bruno Haible  <bruno@clisp.org>
74945
74946         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
74947         mbswidth.
74948
74949 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74950             Bruno Haible  <bruno@clisp.org>
74951
74952         * lib/mbswidth.h: Include <wchar.h> only if
74953         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
74954         <wchar.h>.
74955         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
74956
74957 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74958
74959         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
74960         Sync with libc CVS.
74961         * lib/getopt_int.h: New file, also synced from libc.
74962
74963 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74964
74965         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
74966         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
74967         Bring back getopt.c, getopt.h, getopt1.c.
74968
74969 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74970
74971         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
74972         All uses changed.  Check for sa_sigaction member; this fixes
74973         a bug first reported by Jason Andrade in
74974         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74975
74976 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74977
74978         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
74979         '#if' expressions.  Unlike the code it replaces, it does not
74980         depend on (defined _SC_PAGESIZE).  However, it does depend on
74981         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
74982         first reported by Jason Andrade in
74983         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74984
74985 2004-02-25  Simon Josefsson  <jas@extundo.com>
74986
74987         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
74988
74989 2004-02-25  Simon Josefsson  <jas@extundo.com>
74990
74991         * lib/strdup.h: New file.
74992         * lib/strdup.c: Include it.
74993         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
74994         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
74995
74996 2004-02-23  Karl Berry  <karl@gnu.org>
74997
74998         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
74999         (from fencepost.gnu.org:/gd/gnuorg).
75000
75001 2004-02-23  Karl Berry  <karl@gnu.org>
75002
75003         * config/srclistvars.sh (GNUORG) [karl]: redefine.
75004         * config/srclist.txt: add maintain/standards documents.
75005
75006 2004-02-18  Bruno Haible  <bruno@clisp.org>
75007
75008         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
75009         Reported by Derek Robert Price <derek@ximbiot.com>.
75010
75011 2004-02-16  Karl Berry  <karl@gnu.org>
75012
75013         * config/mkinstalldirs, install-sh: update from automake.
75014
75015 2004-02-06  Karl Berry  <karl@gnu.org>
75016
75017         * m4/po.m4: update from gettext 0.14.1.
75018
75019 2004-02-06  Karl Berry  <karl@gnu.org>
75020
75021         * lib/config.charset: update from gettext 0.14.1.
75022
75023 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75024
75025         Add comments and code, prompted by suggestions from Bruno Haible
75026         for sh-quote.
75027         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75028         describing the enum quoting_style values.
75029         * lib/quotearg.c (quotearg_alloc): New function.
75030         (quotearg_buffer_restyled): Treat lone { and } as special.
75031         Treat = as special.  Work around bug with older shells
75032         that "see" a '\' that is really the 2nd byte of a multibyte char.
75033         Quote empty string with shell_quoting_style.
75034
75035 2004-02-03  Bruno Haible  <bruno@clisp.org>
75036
75037         * m4/pipe.m4: New file, from GNU gettext.
75038
75039 2004-02-03  Bruno Haible  <bruno@clisp.org>
75040
75041         * lib/pipe.h: New file, from GNU gettext.
75042         * lib/pipe.c: New file, from GNU gettext.
75043
75044 2004-01-27  Bruno Haible  <bruno@clisp.org>
75045
75046         * m4/execute.m4: New file, from GNU gettext.
75047
75048 2004-01-27  Bruno Haible  <bruno@clisp.org>
75049
75050         * lib/execute.h: New file, from GNU gettext.
75051         * lib/execute.c: New file, from GNU gettext.
75052         * lib/w32spawn.h: New file, from GNU gettext.
75053
75054 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75055
75056         Merge from diffutils.
75057
75058         * lib/file-type.c (file_type): Add typed memory objects.
75059         * lib/file-type.h (S_TYPEISTMO): New macro.
75060
75061         * lib/c-stack.h (c_stack_action): Remove argv argument.
75062         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
75063         (die): Don't calculate message unless segv_action returns.
75064         (get_stack_location, min_address_from_argv, max_address_from_argv,
75065         volatile stack_base, volatile_stack_size): Remove.
75066         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
75067         that every segmentation violation is a stack overflow.  (Ouch!)
75068         See Debian bug 136249 (still outstanding) for more info about why
75069         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
75070
75071 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75072
75073         Exit-status fix from coreutils.
75074
75075         Use exit_failure consistently in place of EXIT_FAILURE,
75076         so that program exit statuses are consistent on failure.
75077
75078         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
75079         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
75080         * lib/argmatch.h: Comment fix to match the above.
75081         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
75082         Now a macro referring to exit_failure, instead of a separate
75083         variable.  Include "exitfail.h" to get it.
75084         * lib/xstrtol.h: Include "exitfail.h".
75085         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
75086
75087         * lib/long-options.c (parse_long_options): Use prototype
75088         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
75089         for clarity.
75090
75091 2004-01-21  Jim Meyering  <jim@meyering.net>
75092
75093         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
75094         so as not to conflict with a different-sized __mktime_internal
75095         function in GNU libc.
75096         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
75097         Problem building statically-linked `ls' reported by Michael Brunnbauer.
75098
75099 2004-01-20  Karl Berry  <karl@gnu.org>
75100
75101         * config/config.guess: update from config.
75102
75103         * config/srclistvars.sh: GNUWWWLICENSES for karl.
75104
75105 2004-01-20  Bruno Haible  <bruno@clisp.org>
75106
75107         Safer stack allocation.
75108         * lib/setenv.c: Include allocsa.h.
75109         (alloca): Remove fallback definition.
75110         (freea): Remove macro.
75111         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
75112         instead of freea.
75113
75114 2004-01-20  Bruno Haible  <bruno@clisp.org>
75115
75116         * m4/eealloc.m4: New file, from GNU gettext.
75117
75118 2004-01-20  Bruno Haible  <bruno@clisp.org>
75119
75120         * m4/allocsa.m4: New file, from GNU gettext.
75121
75122 2004-01-20  Bruno Haible  <bruno@clisp.org>
75123
75124         * lib/xallocsa.h: New file, from GNU gettext.
75125         * lib/xallocsa.c: New file, from GNU gettext.
75126
75127 2004-01-20  Bruno Haible  <bruno@clisp.org>
75128
75129         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
75130
75131 2004-01-20  Bruno Haible  <bruno@clisp.org>
75132
75133         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
75134         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
75135         specially.
75136
75137 2004-01-20  Bruno Haible  <bruno@clisp.org>
75138
75139         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
75140         patch.
75141
75142 2004-01-20  Bruno Haible  <bruno@clisp.org>
75143
75144         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
75145
75146 2004-01-20  Bruno Haible  <bruno@clisp.org>
75147
75148         * lib/eealloc.h: New file.
75149
75150 2004-01-20  Bruno Haible  <bruno@clisp.org>
75151
75152         * lib/binary-io.h: Avoid warnings on Cygwin.
75153
75154 2004-01-20  Bruno Haible  <bruno@clisp.org>
75155
75156         * lib/allocsa.h: New file, from GNU gettext.
75157         * lib/allocsa.c: New file, from GNU gettext.
75158
75159 2004-01-18  Karl Berry  <karl@gnu.org>
75160
75161         * doc/gpl.texi, doc/lgpl.texi: new files.
75162
75163 2004-01-18  Karl Berry  <karl@gnu.org>
75164
75165         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
75166         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
75167
75168 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75169
75170         Merge from coreutils.
75171
75172         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
75173         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
75174         (gl_DEFAULT_POSIX2_VERSION): Move
75175         the documentation from 'configure' into 'config.hin',
75176         so that 'configure --help' isn't burdened by it and
75177         we don't have to worry about its formatting there.
75178         Reword the documentation so that it's more succinct
75179         and can be run together into a single paragraph.
75180         * m4/same.m4 (gl_SAME): Check for pathconf.
75181
75182 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75183
75184         Merge from coreutils.
75185
75186         * lib/posixver.c: Include posixver.h.
75187
75188         * lib/same.c: Include <stdbool.h>, <limits.h>.
75189         (_POSIX_NAME_MAX): Define if not defined.
75190         (MIN): New macro.
75191         (same_name): If file names are silently truncated, report
75192         that the file names are the same if they are the same after
75193         the silent truncation.
75194
75195         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
75196         conversion function.
75197         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
75198         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
75199         longer needed.
75200
75201 2004-01-15  Jim Meyering  <jim@meyering.net>
75202
75203         Merge from coreutils.
75204
75205         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
75206         if no library is required.
75207         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75208         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75209         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75210         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75211         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75212         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75213         value, $ac_cv_search_crypt, if it's "none required".
75214         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75215         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75216         not gl_FUNC_GETLOADAVG.
75217         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75218         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75219
75220 2004-01-15  Jim Meyering  <jim@meyering.net>
75221
75222         Merge from coreutils.
75223
75224         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75225         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75226         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75227
75228         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75229         optional configure-time default.
75230
75231         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75232
75233         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75234
75235 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75236
75237         Merge from coreutils.
75238
75239         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75240         value, $ac_cv_search_nanosleep, if it's "none required".
75241
75242 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75243
75244         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75245         with like-named macro in fnmatch.c.
75246         (EXT): Use an internal constant instead.
75247
75248         Merge fnmatch patches from glibc.
75249         * lib/fnmatch.c (mbsinit): Remove define.
75250         Add libc_hidden_ver (__fnmatch, fnmatch).
75251         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75252         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75253
75254 2004-01-14  Karl Berry  <karl@gnu.org>
75255
75256         * config/install-sh: update from automake.
75257
75258 2004-01-13  Karl Berry  <karl@gnu.org>
75259
75260         * config/install-sh: update from automake.
75261
75262 2004-01-09  Karl Berry  <karl@gnu.org>
75263
75264         * config/install-sh: update from automake.
75265
75266 2004-01-05  Karl Berry  <karl@gnu.org>
75267
75268         * config/config.{sub,guess}: update from config.
75269
75270 2003-12-31  Karl Berry  <karl@gnu.org>
75271
75272         * config/depcomp: update from automake.
75273
75274 2003-12-14  Karl Berry  <karl@gnu.org>
75275
75276         * lib/config.charset: update from gettext-runtime.
75277
75278 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75279
75280         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75281         Bug reported by Alfred M. Szmidt.
75282
75283 2003-12-03  Bruno Haible  <bruno@clisp.org>
75284
75285         * m4/gettext.m4: Upgrade from gettext-0.13.
75286         * m4/po.m4: Upgrade from gettext-0.13.
75287         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75288         * m4/intmax.m4: New file, from gettext-0.13.
75289         * m4/printf-posix.m4: New file, from gettext-0.13.
75290
75291 2003-11-29  Karl Berry  <karl@gnu.org>
75292
75293         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75294
75295 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75296             Bruno Haible  <bruno@clisp.org>
75297
75298         * lib/printf-parse.h: Don't include sys/types.h.
75299         (ARG_NONE): New macro.
75300         (char_directive): Change type of *arg_index fields to size_t.
75301         * lib/printf-parse.c: Don't include sys/types.h.
75302         (SSIZE_MAX): Remove macro.
75303         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75304         Remove unnecessary overflow check.
75305         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75306         fields.
75307
75308 2003-11-25  Bruno Haible  <bruno@clisp.org>
75309
75310         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75311
75312 2003-11-25  Bruno Haible  <bruno@clisp.org>
75313
75314         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75315         gt_TYPE_SSIZE_T.
75316
75317 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75318
75319         * modules/alloca: Remove dependency on xalloc.
75320
75321 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75322
75323         * lib/alloca.c: Remove dependency on xalloc module.
75324         (xalloc_die): Remove.
75325         (memory_full) [!defined emacs]: New macro.
75326         [!defined emacs]: Don't include xalloc.h.
75327         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75328         address arithmetic overflows.  Change datatypes a bit to avoid
75329         unnecessary casts.
75330
75331 2003-11-22  Jim Meyering  <jim@meyering.net>
75332
75333         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75334         s/size/size_t/.
75335
75336 2003-11-21  Karl Berry  <karl@gnu.org>
75337
75338         * config/config.{sub,guess}: update from config.
75339
75340 2003-11-18  Karl Berry  <karl@gnu.org>
75341
75342         * config/config.{sub,guess}: update from config.
75343
75344         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75345
75346 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75347
75348         * README: Mention that S+T cannot overflow if S is the size of
75349         an existing object and T is sufficiently small.
75350
75351 2003-11-17  Jim Meyering  <jim@meyering.net>
75352
75353         On systems without utime and without a utimes function capable of
75354         dealing with a NULL struct utimbuf* argument, this utime replacement
75355         could -- in unusual circumstances -- leak a file descriptor.
75356         * lib/utime.c: Include <unistd.h> and <errno.h>.
75357         (utime_null): Be sure to close `fd' and to preserve errno.
75358         Reported by Geoff Collyer via Arnold Robbins.
75359
75360 2003-11-17  Bruno Haible  <bruno@clisp.org>
75361
75362         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75363         (Depends-on): Add xsize.
75364
75365 2003-11-17  Bruno Haible  <bruno@clisp.org>
75366
75367         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75368
75369 2003-11-17  Bruno Haible  <bruno@clisp.org>
75370
75371         * lib/vasnprintf.c (alloca): Remove fallback definition.
75372         (freea): Remove definition.
75373         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75374         Reported by Paul Eggert.
75375
75376 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75377             Bruno Haible  <bruno@clisp.org>
75378
75379         Protect against address arithmetic overflow.
75380         * lib/printf-args.h: Include stddef.h.
75381         (arguments): Change type of field 'count' to size_t.
75382         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75383         'unsigned int' where appropriate.
75384         * lib/printf-parse.h: Include sys/types.h.
75385         (char_directive): Change type of *arg_index fields to ssize_t.
75386         (char_directives): Change type of fields 'count', max_*_length to
75387         size_t.
75388         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75389         (SSIZE_MAX): Define fallback value.
75390         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75391         instead of 'int' where appropriate. Check a_allocated, d_allocated
75392         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75393         * lib/vasnprintf.c: Include xsize.h.
75394         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75395         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75396         overflow. Avoid wraparound when converting a width or precision from
75397         decimal to binary.
75398
75399 2003-11-16  Bruno Haible  <bruno@clisp.org>
75400
75401         Update from GNU gettext.
75402         * lib/printf-parse.c: Generalize to it can be compiled for wide
75403         strings.
75404         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75405         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75406         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75407         SNPRINTF): New macros.
75408         Don't include <alloca.h> if the file is used inside libintl.
75409         (local_wcslen): New function, for Solaris 2.5.1.
75410         (VASNPRINTF): Use it instead of wcslen.
75411
75412 2003-11-16  Bruno Haible  <bruno@clisp.org>
75413
75414         * lib/xsize.h (xmax): New function.
75415         (xsum, xsum3, xsum4): Declare as "pure" functions.
75416
75417 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75418
75419         * modules/xalloc (Files): Undo latest change, since xalloc.h
75420         no longer needs SIZE_MAX or PTRDIFF_MAX.
75421
75422 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75423
75424         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75425         gl_PTRDIFF_MAX.
75426
75427 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75428
75429         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75430         "return", to pacify some unknown compiler.  Problem reported
75431         by Joerg Schilling.
75432
75433 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75434
75435         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75436         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75437         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75438         heuristic is just as accurate as far as we know, and it removes a
75439         dependency on size_max.m4 and ptrdiff_max.m4.
75440
75441 2003-11-11  Bruno Haible  <bruno@clisp.org>
75442
75443         * modules/xsize (Files): Add m4/size_max.m4.
75444         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75445
75446 2003-11-11  Bruno Haible  <bruno@clisp.org>
75447
75448         * m4/size_max.m4: New file.
75449         * m4/ptrdiff_max.m4: New file.
75450         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75451         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75452         (gl_XALLOC): Invoke it.
75453
75454 2003-11-11  Bruno Haible  <bruno@clisp.org>
75455
75456         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75457         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75458         defined.
75459
75460 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75461
75462         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75463         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75464         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75465         From Bruno Haible.
75466         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75467         not (size_t) -1, since it's defined here.
75468
75469 2003-11-09  Karl Berry  <karl@gnu.org>
75470
75471         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75472
75473 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75474
75475         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75476         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75477         Reject sizes of exactly SIZE_MAX bytes.
75478         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75479         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75480
75481 2003-11-05  Bruno Haible  <bruno@clisp.org>
75482
75483         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75484         SIZE_MAX defined in <limits.h> on Solaris.
75485
75486 2003-11-04  Jim Meyering  <jim@meyering.net>
75487
75488         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75489         variable names, rather than @VAR@.
75490         * modules/poll: Likewise.
75491
75492 2003-11-04  Bruno Haible  <bruno@clisp.org>
75493
75494         * modules/xsize: New file.
75495         * modules/linebreak: Depend on xsize.
75496         * MODULES.html.sh (func_all_modules): Add xsize.
75497
75498 2003-11-04  Bruno Haible  <bruno@clisp.org>
75499
75500         * m4/xsize.m4: New file.
75501
75502 2003-11-04  Bruno Haible  <bruno@clisp.org>
75503
75504         * lib/xsize.h: New file.
75505         * lib/linebreak.c: Include xsize.h.
75506         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75507         argument for overflow.
75508         Suggested by Paul Eggert.
75509
75510 2003-11-03  Karl Berry  <karl@gnu.org>
75511
75512         * config/config.{guess,sub}: update from config.
75513
75514 2003-11-03  Jim Meyering  <jim@meyering.net>
75515
75516         * modules/userspec (lib_SOURCES): Add userspec.h.
75517         (Include): Add "userspec.h".
75518         Improve description.
75519
75520 2003-11-03  Jim Meyering  <jim@meyering.net>
75521
75522         * lib/userspec.c: Include "userspec.h".
75523         * lib/userspec.h: New file.
75524
75525 2003-11-03  Bruno Haible  <bruno@clisp.org>
75526
75527         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75528
75529 2003-11-03  Bruno Haible  <bruno@clisp.org>
75530
75531         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75532         available, to avoid (extremely rare) race condition.
75533         Suggested by Paul Eggert.
75534
75535 2003-11-02  Karl Berry  <karl@gnu.org>
75536
75537         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75538
75539 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75540
75541         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75542         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75543         (read_filesystem_list): Set and use me_type_malloced.
75544         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75545         whatever the type happens to be), for brevity and consistency.
75546         Check for size calculation overflow on Alphas running OSF/1.
75547
75548 2003-10-31  Jim Meyering  <jim@meyering.net>
75549
75550         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75551
75552         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75553
75554 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75555             Bruno Haible  <bruno@clisp.org>
75556
75557         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75558         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75559
75560 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75561
75562         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75563         netbsd*-gnu*.  Suggested by Robert Millan.
75564
75565 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75566
75567         * modules/group-member: Depend on stdbool.
75568
75569 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75570
75571         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75572
75573 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75574
75575         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75576         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75577         after the 'gnu' in these cases.  This fixes some bugs in the
75578         previous change, and is based on suggestions by Robert Millan.
75579
75580 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75581
75582         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75583         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75584         no longer needed.
75585         * lib/quotearg.c (quotearg_n_options): Use it.
75586         * lib/group-member.c: Include <stdbool.h>.
75587         (free_group_info): Arg is now const *; don't free arg.
75588         (get_group_info): Now returns bool and accepts struct group_info *,
75589         rather than returning a malloc'ed struct group_info *.
75590         All uses changed.  Check for overflow in internal size calculation.
75591
75592         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75593         rather than xmalloc/xrealloc.
75594         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75595         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75596         conformance bug: the old code used a pointer after freeing the
75597         storage that it addressed.
75598         * lib/hash.c (hash_initialize): Simplify the code by using
75599         xalloc_oversized rather than doing it by hand.
75600         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75601         the buffer preserved.  Use free and xmalloc instead.
75602         * lib/quotearg.c (quotearg_n_options): Likewise.
75603         Use a simpler test for size overflow.  Don't use xalloc_oversized
75604         because unsigned int might be wider than size_t (!); this suggests
75605         that we should switch from unsigned int to size_t for slot numbers.
75606
75607 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75608
75609         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75610         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75611         NetBSD kernels.  Requested by Richard Stallman.
75612
75613 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75614
75615         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75616         to allocate the returned structure.  Do not allocate a subarray,
75617         as x2nrealloc will do that.
75618         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75619         instead of xnrealloc.
75620         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75621
75622 2003-10-27  Bruno Haible  <bruno@clisp.org>
75623
75624         * lib/stdbool_.h: Better support for BeOS.
75625
75626 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75627
75628         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75629         now uses inline.
75630
75631 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75632
75633         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75634         callers that want to do their own size-overflow checking.  Include
75635         <stdbool.h>, since xalloc_oversized returns bool.
75636         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75637         to use xalloc_oversized.
75638
75639         Add two functions x2realloc, x2nrealloc, for programs that grow
75640         arrays dynamically by doubling their sizes.
75641         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75642         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75643         New functions.
75644
75645         Port to C99 semantics for 'inline' of external functions.
75646         Bug reported by Bruno Haible.
75647         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75648         with the old contents of xnmalloc.
75649         (xnmalloc, xmalloc): Use it.
75650         (xnrealloc_inline): New static inline function,
75651         with the old contents of xnrealloc.
75652         (xnrealloc, xrealloc): Use it.
75653
75654         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75655         that.
75656
75657 2003-10-26  Karl Berry  <karl@gnu.org>
75658
75659         * config/srclist.txt (COPYING.DOC): no longer available from
75660         /gd/gnuorg; don't know where the ultimate source is.
75661
75662 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75663
75664         Fix several address-calculation bugs in the hash modules,
75665         plus some minor code cleanup.
75666
75667         * lib/hash.h: Include <stdbool.h>, for bool.
75668         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75669         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75670         hash_get_n_entries, hash_get_max_bucket_length,
75671         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75672         hash_rehash): Use size_t rather than unsigned.
75673         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75674         hash_get_n_buckets_used, hash_get_n_entries,
75675         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75676         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75677         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75678         Likewise.
75679         (SIZE_MAX): Define if not defined.
75680         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75681         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75682         hash_print):
75683         Use const * when possible.
75684         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75685         (check_tuning): Fix bug: if tuning parameters were very close to
75686         0 or 1, rounding errors could have caused subscript violations.
75687         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75688         (hash_initialize): Add 'fail:' label
75689         to free table and return NULL, and use it to simplify code.
75690         Use calloc rather than clearing the storage ourself.
75691         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75692         buffer size calculations.
75693         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75694         Include <stddef.h>, for size_t.
75695         * lib/hash-pjw.c (hash_pjw): Likewise.
75696         Switch to method described by Bruno Haible.
75697         Include <limits.h>, for CHAR_BIT.
75698         (SIZE_BITS): New macro.
75699
75700 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75701
75702         * m4/getline.m4 (AM_FUNC_GETLINE):
75703         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75704         hosts.  Problem reported by Derek Robert Price in
75705         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75706         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75707         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75708
75709 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75710
75711         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75712         ceiling the allocation at NMAX bytes rather than silently
75713         discarding input bytes before NMAX is reached.  This makes
75714         a difference only if NMAX exceeds SIZE_MAX / 2.
75715
75716         * lib/obstack.c: Merge from glibc.
75717         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75718         Add libc_hidden_def (_obstack_newchunk).
75719         (_obstack_free) [! defined _LIBC]: Remove.
75720         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75721         a clone of the function body.
75722         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75723         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75724
75725         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75726         glibc.
75727         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75728         arg to memcpy.
75729
75730         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75731         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75732         Don't use lvalue casts, as GCC plans to remove support for them
75733         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75734         was also present in the non-GCC version, indicating that this
75735         code had always been buggy and had never been widely used.
75736         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75737         Use the fast variant of each macro, rather than copying the
75738         definiens of the fast variant; that way, we'll be more likely to
75739         catch future bugs in the fast variants.
75740
75741 2003-10-20  Bruno Haible  <bruno@clisp.org>
75742
75743         * modules/wait-process: New file.
75744         * MODULES.html.sh (func_all_modules): Add wait-process.
75745
75746 2003-10-20  Bruno Haible  <bruno@clisp.org>
75747
75748         * m4/wait-process.m4: New file.
75749
75750 2003-10-20  Bruno Haible  <bruno@clisp.org>
75751
75752         * lib/wait-process.h: New file, from GNU gettext.
75753         * lib/wait-process.c: New file, from GNU gettext.
75754
75755 2003-10-19  Jim Meyering  <jim@meyering.net>
75756
75757         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75758         HPUX 10.20.
75759
75760 2003-10-18  Karl Berry  <karl@gnu.org>
75761
75762         * config/config.guess: update from config.
75763
75764 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75765
75766         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75767         (getgroups): First arg is int, not size_t.
75768         Don't let 'free' mangle errno.
75769
75770 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75771
75772         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75773
75774 2003-10-16  Karl Berry  <karl@gnu.org>
75775
75776         * config/config.{guess,sub}: update from config.
75777
75778 2003-10-16  Jim Meyering  <jim@meyering.net>
75779
75780         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
75781         memcpy.
75782
75783 2003-10-15  Paul Eggert  <eggert@twinsun.com>
75784
75785         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
75786         (SIZE_MAX): Remove.
75787         (new_exclude, add_exclude_file): Initial size no longer needs to
75788         be a power of 2.
75789         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
75790         our own address arithmetic overflow checking.
75791
75792         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
75793         (fnmatch): Do not alloca more than 2000 wide characters;
75794         instead, use malloc for large buffers.
75795         Check for address arithmetic overflow, and return -1
75796         with errno set to ENOMEM in that case.
75797         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
75798         (NEW_PATTERN): Do not alloca more than 8000 bytes;
75799         instead, return -1.  Check for address arithmetic overflow.
75800
75801 2003-10-14  Paul Eggert  <eggert@twinsun.com>
75802
75803         Handle invalid suffixes and overflow independently, so that
75804         callers can treat them independently as needed.  Fix some bugs in
75805         suffix handling, e.g., "100k@" was not diagnosed as an invalid
75806         suffix for a human-readable blocksize.  The major caller-visible
75807         change is the addition of a new
75808         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
75809         that both overflow and suffix chars were found.
75810
75811         * lib/human.c (humblock): Don't check separately for invalid suffix
75812         char; that is xstrtoumax's job (now that its bug is fixed).
75813         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
75814         INTMAX_MAX]: New macros.
75815         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
75816         TYPE_MAXIMUM): New macros.
75817         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
75818         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
75819         if overflow occurs, as it's what __strtol does and it's more useful
75820         in practice.
75821         (__xstrtol): If __strtol reports some error other than ERANGE,
75822         reflect it to the caller as LONGINT_INVALID.  If it reports
75823         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
75824         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
75825         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
75826         value.
75827         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
75828         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
75829         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
75830         [defined UINTMAX_MAX]: New macros.
75831
75832 2003-10-14  Bruno Haible  <bruno@clisp.org>
75833
75834         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
75835
75836 2003-10-14  Bruno Haible  <bruno@clisp.org>
75837
75838         * m4/sig_atomic_t: New file, from GNU gettext.
75839         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
75840
75841 2003-10-14  Bruno Haible  <bruno@clisp.org>
75842
75843         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
75844         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
75845         Also use volatile where needed.
75846
75847 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75848
75849         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
75850         Change maintainer from Bruno Haible to 'all'.
75851
75852 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75853
75854         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
75855
75856 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75857
75858         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
75859         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
75860         and define in terms of the other primitives.
75861         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
75862         (SIZE_MAX): Define if not already defined.
75863         (array_size_overflow): New function.
75864         (xalloc_die): Abort instead of exiting if 'error' returns.
75865         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
75866         (xmalloc, xrealloc): Use them.
75867         (xcalloc): Check for address arithmetic overflow.
75868         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
75869         a bit faster than strcpy.
75870
75871 2003-10-10  Simon Josefsson  <jas@extundo.com>
75872
75873         * modules/argp (Depends-on): Add restrict and strcase.
75874
75875 2003-10-10  Simon Josefsson  <jas@extundo.com>
75876
75877         * m4/argp.m4: Add AC_C_INLINE.
75878
75879 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75880
75881         Merge getpass from libc, plus a few fixes.
75882
75883         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
75884         Include <stdbool.h>.
75885         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
75886         __fsetlocking to empty.
75887         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
75888         do include <bits/libc-lock.h>.
75889         Do not include <fcntl.h>; not needed.
75890         [_LIBC]: Include <wchar.h>.
75891         (NOTCANCEL_MODE): New macro.
75892         (flockfile, funlockfile) [_LIBC]: New macros.
75893         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
75894         [!_LIBC]: New macros.
75895         (call_fclose): New function.
75896         (getpass): Use it.  Save tty stream separately; this simplifies the
75897         code and makes it more reliable if stdin happens to equal stdout.
75898         Invoke __fsetlocking on tty.
75899         Handle thread cancellation if needed.
75900         Namespace cleanup (use __tcgetattr, __getline).
75901         Use bool for Booleans.
75902         [USE_IN_LIBIO]: Handle wide streams.
75903         [!_LIBC]: Unconditionally do the fseek, since we don't know what
75904         stream might go where.
75905
75906         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
75907         doesn't have to include <stdio.h> before us.
75908         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
75909         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
75910         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
75911         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
75912         if not declared, so that we can use getpass.c code from libc without
75913         rewriting it.
75914         (flockfile, ftrylockfile, funlockfile): New macros.
75915
75916 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75917
75918         * modules/getpass: Depend on stdbool.
75919
75920 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75921
75922         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
75923
75924 2003-10-07  Karl Berry  <karl@gnu.org>
75925
75926         * config/config.{guess,sub}: update from config.
75927
75928 2003-10-06  Jim Meyering  <jim@meyering.net>
75929             Bruno Haible  <bruno@clisp.org>
75930
75931         This lets translators provide better translations for the
75932         "Written by ..." part of --version output.
75933         * lib/version-etc.h: Include stdarg.h.
75934         (version_etc_copyright): Declare as readonly.
75935         (version_etc): Make this function variadic with a NULL-terminated list
75936         of author name strings.
75937         (version_etc_va): New declaration.
75938         * lib/version-etc.c: Include stdarg.h, stdlib.h.
75939         (version_etc_copyright): Declare as readonly.
75940         (version_etc_va): New function. Provide a different translatable string
75941         for each possible number of authors < 10. Abbreviate when there are 10
75942         authors or more.
75943         (version_etc): Make this function variadic. Call version_etc_va.
75944         Suggestion from Gary V. Vaughan.
75945
75946         * lib/long-options.h (parse_long_options): Change prototype: the
75947         authors string is moved to the end and becomes variadic.
75948         * lib/long-options.c: Include stdarg.h.
75949         (parse_long_options): Make this function variadic, too.
75950         Call version_etc_va, not version_etc.
75951
75952 2003-10-06  Bruno Haible  <bruno@clisp.org>
75953
75954         * modules/version-etc-2: Remove file.
75955         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
75956
75957 2003-10-06  Bruno Haible  <bruno@clisp.org>
75958
75959         * modules/fatal-signal: New file.
75960         * MODULES.html.sh (func_all_modules): Add fatal-signal.
75961
75962 2003-10-06  Bruno Haible  <bruno@clisp.org>
75963
75964         * m4/fatal-signal.m4: New file.
75965         * m4/signalblocking.m4: New file, from GNU gettext.
75966
75967 2003-10-06  Bruno Haible  <bruno@clisp.org>
75968
75969         * lib/version-etc-2.h: Remove file.
75970         * lib/version-etc-2.c: Remove file.
75971
75972 2003-10-06  Bruno Haible  <bruno@clisp.org>
75973
75974         * lib/fatal-signal.h: New file, from GNU gettext.
75975         * lib/fatal-signal.c: New file, from GNU gettext.
75976
75977 2003-10-05  Paul Eggert  <eggert@twinsun.com>
75978
75979         * README: Rework advice for preventing empty .o files.
75980         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
75981         not <sys/types.h>.
75982
75983 2003-10-04  Karl Berry  <karl@gnu.org>
75984
75985         * lib/argp*: update from libc.
75986
75987 2003-10-04  Karl Berry  <karl@gnu.org>
75988
75989         * config/config.{guess,sub}: update from config.
75990
75991 2003-10-02  Bruno Haible  <bruno@clisp.org>
75992
75993         * modules/lchown (Include): Add lchown.h.
75994         * modules/time_r (Include): Use "..." syntax.
75995         * modules/xgetdomainname (Include): Add xgetdomainname.h.
75996
75997 2003-10-01  Simon Josefsson  <jas@extundo.com>
75998
75999         * MODULES.html.sh (func_all_modules): Move gethostname from section
76000         'based on' to section 'lacking' POSIX:2001.
76001
76002 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
76003
76004         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
76005         to output mode on the same stream.
76006
76007 2003-09-29  Paul Eggert  <eggert@twinsun.com>
76008
76009         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
76010         Fix arg typo in previous patch.
76011
76012 2003-09-28  Jim Meyering  <jim@meyering.net>
76013
76014         * lib/error.c: Correct cpp indentation.
76015
76016 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76017
76018         * modules/free: New file.
76019
76020 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76021
76022         * m4/free.m4: New file.
76023
76024 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76025
76026         * lib/minmax.h (MIN, MAX)
76027         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76028         Omit the special code that used __typeof__, since we worry that
76029         it could be more trouble than it's worth.  See:
76030         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
76031         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
76032
76033         * lib/free.c: New file.
76034
76035 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
76036
76037         Trivial fixes to Makefile.am parts of module listings.
76038         * modules/strstr: Append strstr.h to lib_SOURCES.
76039         * modules/strcase: Likewise, for strcase.h.
76040
76041 2003-09-27  Karl Berry  <karl@gnu.org>
76042
76043         * config/mkinstalldirs: update from automake.
76044
76045 2003-09-26  Paul Eggert  <eggert@twinsun.com>
76046
76047         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
76048         (error_tail): Do not loop, reallocating temporary buffer, since
76049         the output cannot contain more wide characters than the input
76050         contains bytes, the size must be big enough already.  This avoids
76051         one potential size overflow calculation.  Check for size overflow
76052         when calculating temporary buffer size.  Free temporary buffer
76053         when done, if it was allocated with malloc; this plugs a memory
76054         leak.  Remove casts from void * to pointers, that are no longer
76055         needed now that we're assuming C89 or better.
76056
76057         Merge error changes from glibc.
76058
76059         * lib/error.c, error.h: Update copyright notice header to match glibc.
76060         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
76061         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
76062         Disable cancellation while printing error.
76063         * lib/error.h: Prepend __ to parameter names.
76064
76065 2003-09-26  Jim Meyering  <jim@meyering.net>
76066
76067         * lib/error.c (error_tail): Move some declarations
76068         into inner scope where the local variables are used.
76069
76070 2003-09-26  Bruno Haible  <bruno@clisp.org>
76071
76072         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
76073         stpncpy().
76074         Don't define stpncpy through config.h; it's now done through stpncpy.h.
76075
76076 2003-09-26  Bruno Haible  <bruno@clisp.org>
76077
76078         * lib/stpncpy.h (gnu_stpncpy): New declaration.
76079         (stpncpy): Define as alias for gnu_stpncpy.
76080         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
76081
76082 2003-09-25  Simon Josefsson  <jas@extundo.com>
76083
76084         * lib/xgetdomainname.h: New file.
76085         * lib/xgetdomainname.c: New file.
76086
76087 2003-09-25  Simon Josefsson  <jas@extundo.com>
76088             Bruno Haible  <bruno@clisp.org>
76089
76090         * modules/getdomainname: New file.
76091         * modules/xgetdomainname: New file.
76092         * MODULES.html.sh (func_all_modules): Add getdomainname,
76093         xgetdomainname.
76094
76095 2003-09-25  Simon Josefsson  <jas@extundo.com>
76096             Bruno Haible  <bruno@clisp.org>
76097
76098         * m4/getdomainname.m4: New file.
76099
76100 2003-09-25  Simon Josefsson  <jas@extundo.com>
76101             Bruno Haible  <bruno@clisp.org>
76102
76103         * lib/getdomainname.h: New file.
76104         * lib/getdomainname.c: New file.
76105
76106 2003-09-25  Karl Berry  <karl@gnu.org>
76107
76108         * lib/argp-fmtstream.c, argp-help.c: update from libc.
76109
76110 2003-09-25  Karl Berry  <karl@gnu.org>
76111
76112         * config/install-sh: update from automake.
76113
76114 2003-09-25  Bruno Haible  <bruno@clisp.org>
76115
76116         * modules/version-etc-2: New file, from modules/version-etc with
76117         modifications.
76118         * MODULES.html.sh (func_all_modules): Add version-etc-2.
76119
76120 2003-09-25  Bruno Haible  <bruno@clisp.org>
76121
76122         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
76123         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
76124
76125 2003-09-24  Simon Josefsson  <jas@extundo.com>
76126
76127         * modules/xgethostname: Add xgethostname.h.
76128
76129 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76130
76131         * lib/linebuffer.c (freebuffer): Don't free the argument, just
76132         the buffer associated with the argument.  Bug reported by
76133         Simon Josefsson.
76134
76135 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76136
76137         * README: Document assumptions that 'int' is at least 32 bits
76138         wide, that integer arithmetic is 2's complement without overflow,
76139         that there are no holes in integer values, that adding sizes of
76140         two nonoverlapping objects can't overflow, and that all-bits-zero
76141         yields scalar zero.  Fix spelling and capitalization typos.
76142
76143 2003-09-19  Karl Berry  <karl@gnu.org>
76144
76145         * lib/argp.h: update from libc.
76146
76147 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76148
76149         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
76150         to avoid spurious warnings like "AC_RUN_IFELSE was called before
76151         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
76152
76153 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76154
76155         * gnulib-tool: Use "test -h", not "test -L", for portability
76156         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
76157         (tags_regexp): Remove, since \| doesn't conform to POSIX.
76158         (sed_extract_prog): Issue s commands one-by-one, rather than
76159         using \| in one s command.
76160
76161 2003-09-16  Paul Eggert  <eggert@twinsun.com>
76162
76163         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
76164         input error, instead of returning NULL the next time we are called
76165         (and therefore losing track of errno).
76166
76167 2003-09-16  Bruno Haible  <bruno@clisp.org>
76168
76169         * gnulib-tool (func_create_testdir): Warn about duplicated
76170         dependencies.
76171
76172 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76173
76174         * modules/argmatch, modules/fatal, modules/obstack,
76175         modules/xalloc, modules/xgethostname: Sort dependencies by
76176         importance, not alphabetically.
76177
76178 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76179
76180         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
76181         fails, so that the caller gets the proper errno.
76182
76183         * lib/readutmp.c (read_utmp): Likewise.
76184         Check for fstat error.  Close stream and free storage
76185         when failing.
76186
76187 2003-09-14  Karl Berry  <karl@gnu.org>
76188
76189         * config/srclist.txt (strdup.c): disable for c89 changes.
76190
76191 2003-09-14  Jim Meyering  <jim@meyering.net>
76192
76193         * lib/getloadavg.c: Correct cpp indentation.
76194         * lib/strdup.c: Likewise.
76195         * lib/vasnprintf.c: Likewise.
76196
76197 2003-09-14  Bruno Haible  <bruno@clisp.org>
76198
76199         * modules/fwriteerror: New file.
76200         * MODULES.html.sh (func_all_modules): Add fwriteerror.
76201
76202 2003-09-14  Bruno Haible  <bruno@clisp.org>
76203
76204         * lib/fwriteerror.h: New file.
76205         * lib/fwriteerror.c: New file.
76206
76207 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76208
76209         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76210         modules/xgethostname, modules/xalloc: Depend on exit.
76211
76212 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76213
76214         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76215
76216         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76217         and AC_MINIX, too, so that their extensions are available.
76218
76219         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76220         This macro has been superseded by gl_BACKUPFILE.
76221
76222         More patches to assume C89 or better.
76223
76224         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76225
76226         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76227         unconditionally.
76228         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76229         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76230         Include <string.h>, <stdlib.h> unconditionally.
76231         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76232         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76233         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76234         headers or for string.h.
76235         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76236         or strtoul.
76237
76238         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76239         headers.
76240         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76241         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76242         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76243         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76244         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76245         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76246         memcpy, memset.
76247         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76248         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76249         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76250         strtol.
76251         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76252         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76253         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76254         strtoul.
76255
76256 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76257
76258         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76259         * lib/obstack.c [!defined _LIBC]: Likewise.
76260         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76261         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76262         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76263
76264         More changes to assume C89 or better.
76265
76266         * lib/error.c (error_tail): Assume vprintf.
76267
76268         * lib/argmatch.c (getenv): Remove decl.
76269         * lib/progreloc.c (get_full_program_name): Define via prototype.
76270         * lib/setenv.c (clearenv): Likewise.
76271         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76272         needed.
76273         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76274         (malloc, memcpy): Remove decls.
76275         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76276         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76277         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76278         (memcpy): Remove macro.
76279         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76280         (__P): Remove.  All uses removed.
76281         (PTR): Remove.  All uses changed to void *.
76282         (CHAR_BIT, NULL): Remove.
76283         (spaces, zeros, memset_space, memset_zero)
76284         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76285         Remove.
76286         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76287         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76288         Define with prototype.
76289         Remove now-unnecessary prototype decl.
76290         (extra_args_spec): Assume ANSI C.  All uses changed.
76291         (extra_args_spec_iso): Remove.
76292         (my_strftime, emacs_strftimeu): Define via prototype.
76293         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76294         unconditionally.
76295         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76296         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76297         (strtoul, strtol): Remove decls.
76298         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76299         LONG_MAX): Remove.
76300         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76301         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76302         (LOCALE_PARAM_PROTO): New macro.
76303         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76304         (INTERNAL (strtol), strtol): Define with a prototype.
76305         (PARAMS): Remove.  All uses removed.
76306         * lib/tempname.c: Include <string.h> unconditionally.
76307         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76308         * lib/xgethostname.c (main): Define with a prototype.
76309         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76310         Include <stdlib.h> unconditionally.
76311         (calloc, malloc, realloc, free): Remove decls.
76312         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76313         Include <stdlib.h> unconditionally.  Sort include file names.
76314         (strtod): Remove.
76315         (xstrtod): Define with a prototype.
76316         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76317         (strtol, strtoul): Remove decls.
76318
76319 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76320
76321         More patches to assume C89 or better.
76322         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76323         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76324         string.h, memchr, STDC_HEADERS.
76325
76326 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76327
76328         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76329         Include <stdlib.h>, <string.h> unconditionally.
76330         Remove now-unnecessary cast to char *.
76331         * lib/strnlen.c: Include <string.h> unconditionally.
76332         * lib/yesno.c (yesno): Define with a prototype.
76333
76334 2003-09-11  Bruno Haible  <bruno@clisp.org>
76335
76336         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76337
76338 2003-09-10  Jim Meyering  <jim@meyering.net>
76339
76340         * lib/error.c: Correct indentation of cpp directives.
76341
76342 2003-09-10  Bruno Haible  <bruno@clisp.org>
76343
76344         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76345         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76346         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76347         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76348         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76349         <stdlib.h> and <string.h> checks.
76350         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76351         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76352
76353 2003-09-10  Bruno Haible  <bruno@clisp.org>
76354
76355         * lib/strcspn.c: Include <string.h> unconditionally.
76356         * lib/strpbrk.c: Include <string.h> unconditionally.
76357         * lib/strstr.c: Include <string.h> unconditionally.
76358         * lib/unicodeio.c: Include <string.h> unconditionally.
76359         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76360         * lib/unsetenv.c: Likewise.
76361         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76362         * lib/yesno.c: Include <stdlib.h> unconditionally.
76363         (rpmatch): Add prototype.
76364
76365 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76366
76367         More patches to assume C89 or better.
76368         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76369         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76370         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76371         or for string.h.
76372         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76373         stdlib.h.
76374         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76375         C headers.
76376         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76377         string.h.
76378         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76379         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76380         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76381         or for string.h.
76382         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76383         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76384         C headers.
76385         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76386         memcpy.
76387         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76388         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76389         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76390         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76391         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76392         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76393         string.h, free.
76394         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76395         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76396         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76397         C headers, or for string.h.
76398         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76399         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76400         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76401         headers, memory.h, stdlib.h, string.h, strings.h.
76402         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76403         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76404         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76405         strchr.
76406         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76407         headers, memory.h, string.h.
76408         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76409         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76410         free.
76411         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76412         headers.
76413         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76414         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76415         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76416         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76417         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76418
76419 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76420
76421         More K&R removal.
76422
76423         * lib/acosl.c (main): Use a prototype.
76424         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76425         tanl.c: Likewise.
76426
76427         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76428
76429         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76430         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76431         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76432         with a prototype.
76433         * lib/getopt.c (const): Remove macro.
76434         Include <string.h> unconditionally.
76435         (my_index): Remove; all uses changed to strchr.
76436         (strlen): Remove decl.
76437         (exchange): Remove forward decl; no longer needed.
76438         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76439         Define with prototype.
76440         * lib/getopt1.c (const): Remove macro.
76441         (getopt_long, getopt_long_only, main): Define with prototype.
76442
76443         * lib/getugroups.c: Include <string.h> unconditionally.
76444
76445         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76446         (getusershell, setusershell, endusershell, readname, main):
76447         Define with prototypes.
76448
76449         * lib/group-member.c: Include group-member.h first.
76450         Include <stdlib.h> unconditionally.
76451
76452         * lib/hard-locale.c: Include hard-locale.h first.
76453         Include <stdlib.h>, <string.h> unconditionally.
76454
76455         * lib/hash.c (free, malloc): Remove decls.
76456         Include <stdlib.h> unconditionally.
76457
76458         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76459         (getenv): Do not declare.
76460
76461         * lib/idcache.c: Include <string.h> unconditionally.
76462
76463         * lib/long-options.c: Include long-options.h first, to test interface.
76464         Include <stdlib.h> unconditionally.
76465
76466         * lib/makepath.c: Include makepath.h first, to test interface.
76467         Include <stdlib.h> and <string.h> unconditionally.
76468
76469         * lib/linebuffer.c: Include <stdlib.h>.
76470         (free): Remove decl.
76471
76472         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76473         stddef.h. rpl_malloc returns void *, not char *.
76474         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76475         prototype.
76476
76477         * lib/md5.h: Include <limits.h> unconditionally.
76478         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76479         (__P): Remove; all uses removed.
76480         * lib/md5.c: Include "md5.h" first.
76481         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76482         md5_buffer, md5_process_bytes, md5_process_block):
76483         Define with prototypes.
76484         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76485         * lib/sha.c: Include "sha.h" first.
76486         Include <stdlib.h>, <string.h> unconditionally.
76487
76488         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76489         * lib/memcmp.c (__ptr_t): Likewise.
76490         * lib/memrchr.c (__ptr_t): Likewise.
76491         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76492         Include <string.h> unconditionally.
76493         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76494         * lib/memchr.c: Include <stdlib.h> unconditionally.
76495         * lib/memchr.c (LONG_MAX): Remove.
76496         * lib/memrchr.c (LONG_MAX): Likewise.
76497         * lib/memchr.c (__memchr): Define via a prototype.
76498         * lib/memrchr.c (__memrchr): Likewise.
76499         * lib/memcmp.c (__P): Remove, and remove all uses.
76500         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76501         Remove forward decls; no longer needed.
76502         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76503         Use types required by C89 in prototype.
76504
76505         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76506         * lib/savedir.c: Likewise.
76507         * lib/mkdir.c (free): Remove decl.
76508         * lib/rmdir.c (rmdir): Define with a prototype.
76509         * lib/savedir.c: Include savedir.h first, to test interface.
76510
76511         * lib/mktime.c (STDC_HEADERS): Remove.
76512         Include <stdlib.h>, <string.h> unconditionally.
76513
76514         * lib/modechange.c: Include <stdlib.h> unconditionally.
76515         (malloc): Remove decl.
76516
76517         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76518         (free): Remove decl.
76519
76520         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76521         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76522         (This type really should be intptr_t, but that's a C99ism.)
76523         (_obstack_memcpy): Remove: all uses changed to memcpy.
76524         Include <string.h> unconditionally.
76525         (struct obstack): Assume __STDC__ for types of members
76526         chunkfun, freefun, extra_arg.
76527         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76528         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76529         obstack_begin, obstack_specify_allocation,
76530         obstack_specify_allocation_with_arg, obstack_chunkfun,
76531         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76532         Remove unprototyped decls and the macros that use them.
76533         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76534         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76535         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76536         (defined __STDC__ && __STDC__)]:
76537         Remove nonprototyped code.
76538         Include <stdlib.h> unconditionally.
76539         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76540         _obstack_allocated_p, _obstack_free, obstack_free,
76541         _obstack_memory_used, print_and_abort):
76542         Define using prototypes.
76543         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76544         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76545         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76546         obstack_next_free, obstack_object_size, obstack_room) [0]:
76547         Remove unused, unprototyped code.
76548
76549         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76550
76551         * lib/physmem.c (physmem_total, physmem_available, main): Define
76552         with prototypes.
76553
76554         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76555         (main): Define with a prototype.
76556
76557         * lib/posixver.c (getenv): Remove decl.
76558
76559         * lib/putenv.c (malloc): Returns void *, not char *.
76560         Include <string.h> unconditionally.
76561         (strchr, memcpy, NULL): Do not define.
76562
76563         * lib/readtokens.c: Include readtokens.h first, to test interface.
76564         Include <stdlib.h>, <string.h> unconditionally.
76565         (init_tokenbuffer): Define with a prototype.
76566
76567         * lib/regex.c (PARAMS): Remove.  All uses removed.
76568         All uses of _RE_ARGS removed, too.
76569         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76570         unconditionally.
76571         (bzero): Assume memset exists.
76572         (memcmp, memcpy, NULL): Remove.
76573         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76574         char, or assignments to local vars of type signed char.
76575         (init_syntax_once, PREFIX(extract_number_and_incr),
76576         PREFIX(print_partial_compiled_pattern),
76577         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76578         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76579         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76580         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76581         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76582         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76583         wcs_compile_range, byte_compile_range, truncate_wchar,
76584         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76585         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76586         count_mbs_length, wcs_re_match_2_internal,
76587         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76588         PREFIX(alt_match_null_string_p),
76589         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76590         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76591         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76592         now-unnecessary declaration, if any.
76593         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76594         regcomp, regexec):
76595         Remove now-unnecessary casts among pointer types.
76596         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76597
76598         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76599         (free): Remove decl.
76600
76601         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76602
76603         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76604         (free): Remove decl.
76605
76606         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76607         * lib/xgetcwd.c: Likewise.
76608
76609         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76610         (free): Remove decl.
76611
76612         * lib/strchrnul.c (strchrnul): Define with a prototype.
76613         Fix bug: c_in was not converted to char before searching.
76614
76615         The following changes are not K&R related:
76616
76617         * lib/group-member.h: Include <sys/types.h>, so that this file is
76618         self-contained.
76619         * lib/makepath.h: Likewise.
76620
76621         * lib/getusershell.c (readname, default_index, line_size, readname):
76622         Use size_t, not int, for sizes.
76623         (readname): If the size overflows, report an error instead of
76624         looping forever.
76625
76626 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76627
76628         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76629         libc.
76630
76631 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76632
76633         * README: New section: portability guidelines.
76634
76635 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76636
76637         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76638         C89 spec.
76639
76640 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76641
76642         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76643
76644 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76645
76646         Assume C89 or better; remove K&R cruft.
76647         A few of these changes were first proposed by Derek Robert Price
76648         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76649
76650         * lib/addext.c: Include <string.h> unconditionally.
76651         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76652         Don't declare getenv or malloc.
76653
76654         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76655         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76656         (NULL): Remove.
76657         (find_stack_direction, alloca): Use prototypes.
76658
76659         * lib/atexit.c (atexit): Define using a prototype.
76660
76661         * lib/basename.c, dirname.c, stripslash.c:
76662         Include <string.h> unconditionally.
76663
76664         * lib/bcopy.c: Include <stddef.h>.
76665         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76666
76667         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76668
76669         * lib/error.h (error, error_at_line, error_print_progname)
76670         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76671         * lib/error.c: Include error.h first, to check interface.
76672         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76673         (VA_START): Remove; all uses changeed to va_start.
76674         (exit, strerror): Remove decls.
76675         (error_print_progname): Prototype uncondionally.
76676         Don't include <errno.h>; no longer needed.
76677         (private_strerror): Remove.
76678         (error_tail): Always define.
76679         (error, error_at_line): Assume C89 or better; always use prototypes.
76680         * lib/fatal.c: Include "fatal.h" first, to test interface.
76681         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76682         (VA_START): Remove; all uses changed to va_start.
76683         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76684         this case.
76685         (exit): Remove decl.
76686         (fatal): Prototype unconditionally.  Assume va_start works.
76687         Abort at end, to pacify gcc.
76688
76689         * lib/euidaccess.c (main): Define with a prototype.
76690
76691         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76692
76693         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76694
76695         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76696         prototypes.
76697         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76698         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76699         (getenv): Remove decl.
76700         (fnmatch): Define using a prototype.
76701         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76702         (FCT): Define using a prototype.
76703
76704         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76705
76706         * lib/gethostname.c: Include <stddef.h>.
76707         (gethostname): Define with prototype.  Length is size_t, not int.
76708
76709 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76710
76711         Assume C89 or better; remove K&R cruft.
76712         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76713         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76714         string.h, getenv, malloc.
76715         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76716         headers.
76717         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76718         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76719         do not check for strerror.
76720         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76721         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76722         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76723         do not check for doprnt or vprintf.
76724         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76725         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76726
76727 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76728
76729         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76730         getversion.c should have been removed then, but was accidentally
76731         preserved.
76732
76733         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76734         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76735
76736 2003-09-08  Karl Berry  <karl@gnu.org>
76737
76738         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76739                 config, forget about prep.
76740
76741         * config/depcomp, missing: update from automake.
76742
76743 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76744
76745         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76746         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76747
76748 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76749
76750         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76751         copy_tm_result.  Bug reported by Simon Josefsson in
76752         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76753
76754 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76755
76756         * m4/time_r.m4: New file.
76757         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76758         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76759         is. Check for timegm declaration.
76760         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76761         Do not check for gmtime_r.
76762         Replace mktime if __mktime_internal does not exist and if mktime
76763         hasn't been replaced already.
76764
76765 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76766
76767         * lib/time_r.c, lib/time_r.h: New files.
76768
76769         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76770         __localtime_r.
76771         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76772         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76773
76774         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76775         __gmtime_r.
76776         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76777         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76778         Include <time_r.h>.
76779
76780         * lib/timegm.c: Switch to glibc implementation, with the following
76781         changes:
76782         [defined HAVE_CONFIG_H]: Include <config.h>.
76783         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
76784         (__mktime_internal) [!defined _LIBC]: New decl.
76785         (__gmtime_r) [!defined _LIBC]: New macro and function.
76786         (timegm): Use a prototype, since gnulib assumes C89.
76787         Do not bother declaring tmp to be const, as it's not really usefu.
76788         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
76789         (timegm): Declare only if HAVE_DECL_TIMEGM.
76790
76791 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76792
76793         * MODULES.html.sh (func_all_modules): Add time_r.
76794         * modules/time_r: New file.
76795         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
76796         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
76797
76798 2003-09-03  Paul Eggert  <eggert@twinsun.com>
76799
76800         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
76801         Bug reported by Lute Kamstra in
76802         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
76803
76804         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
76805         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
76806         course with correspondingly smaller numbers for tomorrow and
76807         yesterday.  From Tadayoshi Funaba.  Originally installed into
76808         sh-utils on 1999-08-07, but the patch got lost (I guess during the
76809         coreutils merge?).
76810
76811 2003-08-31  Simon Josefsson  <jas@extundo.com>
76812
76813         * modules/timegm: New file.
76814         * MODULES.html.sh (func_all_modules): Add timegm.
76815
76816 2003-08-31  Simon Josefsson  <jas@extundo.com>
76817
76818         * m4/timegm.m4: New file.
76819
76820 2003-08-31  Simon Josefsson  <jas@extundo.com>
76821
76822         * lib/timegm.h: New file.
76823         * lib/timegm.c: New file.  Based on
76824         wget-1.8.2/src/http.c:mktime_from_utc.
76825
76826 2003-08-31  Karl Berry  <karl@gnu.org>
76827
76828         * lib/argp.h: update from libc.
76829
76830 2003-08-28  Bruno Haible  <bruno@clisp.org>
76831
76832         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
76833         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
76834         followed by '#define fnmatch fnmatch_posix' gives an error.
76835
76836 2003-08-28  Bruno Haible  <bruno@clisp.org>
76837
76838         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
76839         warning on QNX, which defines O_BINARY to 000000.
76840
76841 2003-08-27  Jim Meyering  <jim@meyering.net>
76842
76843         * m4/mkstemp.m4: Require that the system mkstemp be able to create
76844         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
76845         would fail after 32.  Reported by Danny Levinson.  Details here:
76846         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
76847
76848 2003-08-24  Bruno Haible  <bruno@clisp.org>
76849
76850         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
76851         MSVC7 <stdio.h> is included later.
76852
76853 2003-08-22  Simon Josefsson  <jas@extundo.com>
76854
76855         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
76856
76857 2003-08-20  Karl Berry  <karl@gnu.org>
76858
76859         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
76860
76861 2003-08-20  Bruno Haible  <bruno@clisp.org>
76862
76863         * modules/progname: New file.
76864         * MODULES.html.sh (func_all_modules): Add progname.
76865
76866 2003-08-20  Bruno Haible  <bruno@clisp.org>
76867
76868         * lib/progname.h: New file, from GNU gettext.
76869         * lib/progname.c: New file, from GNU gettext.
76870         * lib/progreloc.c: New file, from GNU gettext.
76871
76872 2003-08-19  Jim Meyering  <jim@meyering.net>
76873
76874         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
76875         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
76876
76877 2003-08-19  Bruno Haible  <bruno@clisp.org>
76878
76879         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
76880         more.
76881
76882 2003-08-19  Bruno Haible  <bruno@clisp.org>
76883
76884         * lib/xstrdup.c: Assume <string.h> exists.
76885
76886 2003-08-18  Paul Eggert  <eggert@twinsun.com>
76887
76888         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
76889         in makefile rules.
76890
76891 2003-08-18  Jim Meyering  <jim@meyering.net>
76892
76893         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
76894         * m4/lib-ld.m4: Likewise.
76895
76896 2003-08-18  Jim Meyering  <jim@meyering.net>
76897
76898         * lib/setenv.h: Indent nested cpp directive.
76899         * lib/vasnprintf.c: Remove trailing blanks.
76900
76901 2003-08-17  Simon Josefsson  <jas@extundo.com>
76902
76903         * modules/xstrndup: New file.
76904         * MODULES.html.sh (func_all_modules): Add xstrndup.
76905
76906 2003-08-17  Simon Josefsson  <jas@extundo.com>
76907
76908         * modules/argp: Fix autoconf macro name. Add more dependencies.
76909
76910 2003-08-17  Simon Josefsson  <jas@extundo.com>
76911
76912         * m4/xstrndup.m4: New file.
76913
76914 2003-08-17  Simon Josefsson  <jas@extundo.com>
76915
76916         * m4/argp.m4: New file.
76917
76918 2003-08-17  Simon Josefsson  <jas@extundo.com>
76919             Bruno Haible  <bruno@clisp.org>
76920
76921         * lib/xstrndup.h: New file.
76922         * lib/xstrndup.c: New file.
76923
76924 2003-08-17  Bruno Haible  <bruno@clisp.org>
76925
76926         * modules/strndup (Files, Include): Add lib/strndup.h.
76927
76928 2003-08-17  Bruno Haible  <bruno@clisp.org>
76929
76930         * modules/euidaccess (Files): Add lib/euidaccess.h.
76931
76932 2003-08-17  Bruno Haible  <bruno@clisp.org>
76933
76934         * lib/strndup.h: New file.
76935
76936 2003-08-17  Bruno Haible  <bruno@clisp.org>
76937
76938         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
76939         like AC_GNU_SOURCE.
76940         * modules/extensions (configure.ac): Comment out the invocation of
76941         gl_USE_SYSTEM_EXTENSIONS.
76942
76943 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76944
76945         Merges from coreutils, etc.
76946         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
76947         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
76948         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
76949         fixing a typo.
76950         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
76951         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
76952
76953 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76954
76955         Document merge from coreutils.
76956         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
76957         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
76958         * modules/utime: Add m4/utimes-null.m4.
76959
76960 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76961
76962         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
76963         space, undoing this 2003-08-12 change:
76964         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76965
76966 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76967
76968         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
76969         strtoul.c from libc, undoing this 2003-08-12 change:
76970         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76971
76972 2003-08-16  Jim Meyering  <jim@meyering.net>
76973
76974         Merges from coreutils.
76975         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
76976         prefix.  Adjust cache variables similarly.  Create 500 rather than
76977         just 300 files, to exercise bug on Darwin6.5, too.
76978         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
76979         $missing_dir.
76980         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
76981         AM_SYS_POSIX_TERMIOS.
76982         Reported by mkc@mathdogs.com.
76983         Also change use of $am_cv_sys_posix_termios
76984         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
76985         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
76986         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
76987         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
76988         in /proc/mounts until it finds one with matching device number.  This
76989         is unnecessary when the FILE argument *is* a mount point.  No stat call
76990         is necessary in that case.  So, disable the statvfs-testing code on
76991         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
76992         as RedHat bug# 84846.
76993         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76994         to 1MB, so as not to render systems with no stack size limit (e.g.,
76995         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76996         Include <unistd.h>.  On some systems,
76997         it is required for the definition of _SC_PAGESIZE.
76998
76999 2003-08-16  Jim Meyering  <jim@meyering.net>
77000
77001         Merge from coreutils.
77002         * lib/xstrtoimax.c: #else #if -> #elif.
77003         * lib/xstrtoumax.c: Likewise.
77004
77005 2003-08-16  Jim Meyering  <jim@meyering.net>
77006
77007         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
77008         * m4/utimes.m4: Removed.
77009         * m4/utimes-null.m4: Renamed from utimes.m4.
77010
77011         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77012         to 1MB, so as not to render systems with no stack size limit (e.g.,
77013         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77014         Include <unistd.h>.  On some systems,
77015         it is required for the definition of _SC_PAGESIZE.
77016
77017 2003-08-16  Jim Meyering  <jim@meyering.net>
77018         and Paul Eggert  <eggert@cs.ucla.edu>
77019
77020         Merges from coreutils, etc.
77021
77022         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
77023         using the latest version from cvs.  This avoids problems with #line
77024         directives using a vendor (Sun) compiler.
77025         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77026         Don't set GETGROUPS_LIB here; now it's
77027         done via getgroups.m4's wrapper function.
77028         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77029         rather than just in sh-util/configure.in, so that the
77030         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
77031         same.
77032         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
77033         AC_FUNC_GETLOADAVG where to find getloadavg.c.
77034         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
77035         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
77036         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
77037         Remove code that is now done by the newly-required macros.
77038         Append $(EXEEXT) to DF_PROG.
77039         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
77040         Do not invoke or require the following here,
77041         since prereq.m4 or some gnulib .m4 now does this for us:
77042         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
77043         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
77044         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
77045         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
77046         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
77047         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
77048         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
77049         AC_FUNC_OBSTACK.
77050         Do not replace the following functions, as this is now the job
77051         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
77052         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
77053         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
77054         atexit getpass, strdup, getpagesize.
77055         Replace 'raise'.
77056         Do not check for the following functions, as this is now the job
77057         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
77058         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
77059         setregid.
77060         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
77061         Check for sys/sysctl.h.
77062         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
77063         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
77064         of checking for ssize_t ourselves.
77065
77066         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
77067         Require every macro that gnulib/modules/* suggests for us.
77068         (jm_PREREQ_ADDEXT): New macro.
77069         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
77070         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
77071
77072         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
77073         (gl_PHYSMEM): Use it.
77074         Also check for `table' function.
77075         Check for new headers and functions.
77076         Add check for sys/sysmp.h.
77077         With suggestions from Kaveh Ghazi.
77078         Ignore headers that are present but cannot be compiled.  This
77079         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
77080         C 5.4.
77081
77082 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77083
77084         Document merge from coreutils.
77085         * modules/userspec: Depend on posixver.
77086         * modules/strftime: Depend on tzset.
77087
77088 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77089
77090         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
77091         rather than tab, after '#' in shell-script copyright notices.
77092         Suggested by Bruno Haible.
77093
77094 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77095
77096         * config/srclist-update: Use three spaces, rather than tab, after '#'
77097         in shell-script copyright notices.  Suggested by Bruno Haible.
77098         Remove unnecessary parenthesization in regular expression.
77099
77100 2003-08-15  Jim Meyering  <jim@meyering.net>
77101
77102         Merge from coreutils.
77103         * lib/xgethostname.c: Include <stdlib.h>.
77104         (xghostname): Don't exit for anything other than memory-related
77105         failure; just return NULL.
77106         * lib/userspec.c: Include "posixver.h".
77107         (parse_user_spec): Accept `.' as a separator only
77108         in pre-POSIX-200112 mode.
77109         * lib/strtoimax.c: Use #elif rather than #else #if.
77110         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
77111         Remove function, now that we can rely on a working tzset function.
77112         [!_LIBC]: Ensure that the required autoconf test has been run.
77113         [!defined _NL_CURRENT && HAVE_STRFTIME]:
77114         Use underlying_strftime for %r.
77115         * lib/sha.c: Merge in some clean-up and optimization changes from
77116         glibc.
77117         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
77118         Ensure that it is a multiple of 64.
77119         Rearrange loop exit tests so as to avoid performing an
77120         additional fread after encountering an error or EOF.
77121         * lib/realloc.c: Update copyright date.
77122
77123 2003-08-15  Jim Meyering  <jim@meyering.net>
77124         and Paul Eggert  <eggert@twinsun.com>
77125
77126         Merge from coreutils.
77127         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
77128         member but strut utmpx does not.  Needed for AIX 4.3.3.
77129         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
77130
77131 2003-08-15  Jim Meyering  <jim@meyering.net>
77132         and Paul Eggert  <eggert@cs.ucla.edu>
77133
77134         Merges from coreutils, etc.
77135         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
77136         Require gl_FUNC_TZSET_CLOBBER.
77137         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
77138         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
77139         members.
77140
77141 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77142
77143         Help the merge from coreutils.
77144         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
77145         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
77146         * m4/tzset.m4: Use it too.
77147
77148 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77149
77150         * modules/tzset: New file.
77151
77152 2003-08-14  Jim Meyering  <jim@meyering.net>
77153
77154         Merges from coreutils.
77155         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
77156         variable names, rather than @FNMATCH_H@.
77157         * modules/alloca: Likewise for $(ALLOCA_H).
77158
77159         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
77160         the three copies of the literal target, `fnmatch.h'.
77161         * modules/alloca (alloca.h): Likewise.
77162
77163 2003-08-14  Jim Meyering  <jim@meyering.net>
77164
77165         Merge from coreutils.
77166         * m4/tzset.m4: New file.
77167         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
77168         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
77169         otherwise, AIX 5.1 systems would end up using the latter.
77170         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
77171         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
77172         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
77173         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
77174
77175 2003-08-14  Jim Meyering  <jim@meyering.net>
77176
77177         Merge from coreutils.
77178         * lib/obstack.h: Whitespace changes.
77179         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
77180         and xcalloc return values.
77181         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
77182         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
77183         hang on OSF/1 5.1 for DIR on both local and remote file systems.
77184         Reported by (and fix confirmed by) Nelson H. F. Beebe.
77185         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77186         error from mntctl.
77187         Use mntctl's return value to drive the entry-processing loop, since
77188         we can't rely on the value of the vmt_length member in the last
77189         entry.  On some systems doing so could result in exhausting
77190         virtual memory.  Based in part on a patch from Mike Jetzer.
77191
77192 2003-08-14  Jim Meyering  <jim@meyering.net>
77193         and Paul Eggert  <eggert@twinsun.com>
77194
77195         Merges from coreutils, plus other fixes.
77196         * lib/physmem.c: Merge in portability changes from gcc/libiberty
77197         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
77198         for credits and details.  Thanks to Kaveh Ghazi for helping
77199         to keep these files in sync.
77200         (ARRAY_SIZE): Define it.
77201         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
77202         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
77203         (memcasecmp): Don't assume size_t fits in unsigned int.
77204         Remove casts and duplicate code.
77205         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
77206         (memcpy): Remove definition.
77207         Merge in some clean-up and optimization changes from glibc.
77208         [BLOCKSIZE]: Move definition to top of file.
77209         Ensure that it is a multiple of 64.
77210         Rearrange loop exit tests so as to avoid performing an
77211         additional fread after encountering an error or EOF.
77212         * lib/md5.h (md5_uintptr): Define.
77213         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77214         return to the initial working directory.  Preserve errno
77215         for caller.
77216         * lib/idcache.c: Include "xalloc.h".
77217         (xmalloc, xrealloc): Remove decls.
77218         (getuser): Remove casts no longer required in C89.
77219         * lib/human.c: Include stdio.h, for sprintf.
77220         * lib/group-member.c: Include "xalloc.h".
77221         (xmalloc, xrealloc): Remove decls.
77222         (get_group_info): Remove casts no longer required in C89.
77223         * lib/getusershell.c (readname): Remove casts no longer required in
77224         C89.
77225         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77226         * lib/getline.c: Whitespace fix, from coreutils.
77227
77228 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77229
77230         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77231         Check for isascii.
77232
77233         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77234         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77235         Undo previous (whitespace-only) change.
77236
77237 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77238
77239         * lib/exclude.c: Include <ctype.h>
77240         (IN_CTYPE_DOMAIN): New macro.
77241         (is_space): New fn.
77242         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77243         and empty lines.
77244
77245         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77246         Undo previous (whitespace-only) change.
77247
77248 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77249
77250         * config/srclist-update: Change update back to the old behavior,
77251         leaving whitespace alone.  Use one 'sed' command rather than a
77252         pipeline.
77253         (fixlicense): Now a variable, not a function.
77254         (remove_trailing_blanks): Remove.
77255         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77256         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77257         Undo previous (whitespace-only) change.
77258
77259 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77260
77261         Merge from coreutils.
77262         * modules/euidaccess: Add lib_SOURCES, include for new
77263         file euidaccess.h
77264
77265 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77266
77267         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77268         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77269         Normalize leading white space and remove trailing white space.
77270
77271         Merge from coreutils
77272         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77273
77274         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77275         0.12.1.  These files are now being upgraded automatically by
77276         ../config/srclist-update.
77277
77278 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77279
77280         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77281         Normalize leading white space and remove trailing white space.
77282         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77283         notice, as per ../config/srclist-update.
77284
77285         Merge from coreutils.
77286         * lib/euidaccess.h: New file.
77287         * lib/euidaccess.c: Include it.
77288         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77289         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77290         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77291
77292 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77293
77294         * config/srclist-update: Add copyright notice.
77295         (remove_id_lines, remove_trailing_blanks): New constants.
77296         (fixfile): Use them to normalize spacing a bit in copied files.
77297         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77298         Normalize leading white space and remove trailing white space.
77299
77300         * config/texinfo.tex: Sync with texinfo.
77301
77302         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77303         strtoul.c from libc, to merge coreutils whitespace changes.
77304
77305         * config/srclist.txt: Get the following m4 files from gettext:
77306         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77307         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77308         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77309         wint_t.m4.
77310
77311 2003-08-12  Karl Berry  <karl@gnu.org>
77312
77313         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77314         been made.
77315
77316 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77317
77318         * modules/gnu-source, m4/gnu-source.m4:
77319         Remove; we're assuming Autoconf 2.54 or later now.
77320         Suggested by Bruno Haible.
77321         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77322
77323 2003-08-11  Bruno Haible  <bruno@clisp.org>
77324
77325         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77326
77327 2003-08-11  Bruno Haible  <bruno@clisp.org>
77328
77329         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77330         (vasnprintf): Use it instead of wcslen.
77331
77332 2003-08-11  Bruno Haible  <bruno@clisp.org>
77333
77334         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77335         value to ensure that _Bool promotes to int. Use #define for _Bool when
77336         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77337
77338 2003-08-10  Karl Berry  <karl@gnu.org>
77339
77340         * lib/regex.h: update from libc (whitespace fix).
77341
77342 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77343
77344         Merge some files from coreutils.  These changes were
77345         originally made by Jim Meyering.
77346         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77347         many older Unixes require this.
77348         * lib/alloca.c (alloca): Remove cast to argument of free;
77349         no longer needed in C89.
77350         * lib/alloca_.h, regex.h: Fix white space to match
77351         what GNU indent does.
77352
77353 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77354
77355         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77356         apparently Emacs's Unicode mode got confused before my 2003-08-05
77357         checkin.
77358
77359 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77360
77361         * m4/extensions.m4: New file.
77362         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77363         Require gl_USE_SYSTEM_EXTENSIONS.
77364         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77365         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77366
77367 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77368
77369         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77370         * modules/extensions, modules/gnu-source: New files.
77371         * modules/timespec, modules/unlocked-io: Depend on extensions.
77372
77373 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77374
77375         * modules/restrict: New file.
77376         * MODULES.html.sh (func_all_modules): Add restrict.
77377         * modules/regex: Depend on restrict.
77378
77379 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77380
77381         * m4/restrict.m4: New file.
77382         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77383
77384 2003-08-07  Bruno Haible  <bruno@clisp.org>
77385
77386         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77387         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77388
77389 2003-08-07  Bruno Haible  <bruno@clisp.org>
77390
77391         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77392         makes the module 'getndelim2' compatible with the module 'getline'.
77393
77394 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77395
77396         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77397         byte with "\201" to avoid glitches when editing that source file
77398         with multi-gnome-terminal.
77399
77400 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77401
77402         * lib/bumpalloc.h: Remove.
77403
77404 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77405
77406         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77407         * modules/bumpalloc: Remove.
77408
77409 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77410
77411         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77412         GNU coding style.
77413
77414         Merge from coreutils.
77415         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77416         1. From glibc.
77417         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77418         from Karl Berry, implemented by Jim Meyering.
77419         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77420         from Dmitry V. Levin.
77421         Remove anachronistic cast of xrealloc.
77422         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77423         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77424         type. Otherwise, it wouldn't compile with at least /bin/cc on
77425         ymp-cray-unicos9.0.2.X.
77426         Combine two mostly-identical uses of alloca into one.
77427         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77428
77429 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77430
77431         [From Emacs.]
77432
77433         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77434         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77435         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77436         obsolete NLIST_NAME_UNION.
77437         [__GNU__]: Undef BSD and FSCALE.
77438         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77439
77440 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77441
77442         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77443         an enum type, so that it's guaranteed to promote to int.  See:
77444         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77445
77446 2003-08-03  Karl Berry  <karl@gnu.org>
77447
77448         * config/depcomp: update from automake.
77449
77450 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77451
77452         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77453         (strerror): Don't assume that a printable int fits in 14 bytes.
77454
77455 2003-07-31  Bruno Haible  <bruno@clisp.org>
77456
77457         * modules/getpass-gnu: New file.
77458         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77459
77460 2003-07-31  Bruno Haible  <bruno@clisp.org>
77461
77462         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77463
77464 2003-07-24  Karl Berry  <karl@gnu.org>
77465
77466         * config/missing: update from automake.
77467
77468 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77469             Bruno Haible  <bruno@clisp.org>
77470
77471         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77472         * lib/getline.c (getline, getdelim): Likewise.
77473         Remove _GNU_SOURCE define; now it's defined in config.h through
77474         m4/getline.m4.
77475
77476 2003-07-23  Karl Berry  <karl@gnu.org>
77477
77478         * config/config.sub: update from prep.
77479
77480 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77481
77482         * modules/xalloc (Depends-on): Add exitfail.
77483         * modules/xmemcoll: Likewise.
77484
77485 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77486
77487         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77488         over-parenthesization in macros.
77489
77490         Sync with coreutils.
77491
77492         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77493         required by C99.
77494
77495         Use `exit_failure' for xalloc and xmemcoll instead of their own
77496         private exit-failure variables.
77497         * lib/xalloc.h (xalloc_exit_failure): Remove.
77498         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77499         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77500         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77501         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77502         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77503
77504 2003-07-20  Jim Meyering  <jim@meyering.net>
77505
77506         * modules/closeout (Depends-on): Add exitfail.
77507         Suggestion from Bruno Haible.
77508
77509 2003-07-19  Karl Berry  <karl@gnu.org>
77510
77511         * config/config.sub: update from prep.
77512
77513 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77514
77515         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77516         Remove.
77517         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77518         to test that it can stand by itself.  Include "exitfail.h".
77519         Clients should set exit_failure instead.
77520         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77521
77522 2003-07-18  Bruno Haible  <bruno@clisp.org>
77523
77524         * modules/getndelim2: New file.
77525         * modules/getline: Share files with module getndelim2.
77526         * modules/getnline: Depend on getndelim2 instead of sharing files with
77527         it. Add getnline.c to lib_SOURCES.
77528         * MODULES.html.sh (func_all_modules): Add getndelim2.
77529
77530 2003-07-18  Bruno Haible  <bruno@clisp.org>
77531
77532         * m4/getndelim2.m4: New file.
77533         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77534         invoke gl_PREREQ_GETNDELIM2.
77535         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77536         gl_PREREQ_GETNDELIM2.
77537         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77538         gl_GETNDELIM2.
77539
77540 2003-07-18  Bruno Haible  <bruno@clisp.org>
77541
77542         * lib/getndelim2.h: New file.
77543         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77544         getndelim2.h.
77545         (getndelim2): Make non-static. Change return type to ssize_t.
77546         * lib/getline.h: Change argument names.
77547         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77548         * lib/getnline.c: Include getndelim2.h.
77549
77550 2003-07-18  Andreas Schwab  <schwab@suse.de>
77551
77552         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77553
77554 2003-07-17  Karl Berry  <karl@gnu.org>
77555
77556         * config/config.sub: update from prep.
77557
77558 2003-07-17  Bruno Haible  <bruno@clisp.org>
77559
77560         * modules/getnline: New file.
77561         * modules/getline: Add lib/getndelim2.c to source file list.
77562         * MODULES.html.sh (func_all_modules): Add getnline.
77563
77564 2003-07-17  Bruno Haible  <bruno@clisp.org>
77565
77566         * m4/getnline.m4: New file.
77567
77568 2003-07-17  Bruno Haible  <bruno@clisp.org>
77569
77570         * m4/Makefile.am.in: Remove file.
77571         * m4/Makefile.am: Remove file.
77572         * m4/Makefile.in: Remove file.
77573
77574 2003-07-17  Bruno Haible  <bruno@clisp.org>
77575
77576         * lib/getnline.h: New file.
77577         * lib/getnline.c: New file.
77578         * lib/getndelim2.c: New file, extracted from getline.c.
77579         (getndelim2): Renamed from getdelim2, with added nmax argument.
77580         * lib/getline.c: Include getndelim2.c.
77581         (getdelim2): Moved out to getndelim2.c.
77582         (getline, getdelim): Update.
77583
77584 2003-07-17  Bruno Haible  <bruno@clisp.org>
77585
77586         * lib/Makefile.am: Remove file.
77587         * lib/Makefile.in: Remove file.
77588
77589 2003-07-17  Bruno Haible  <bruno@clisp.org>
77590
77591         * configure.in: Remove file.
77592         * Makefile.in: Remove file.
77593
77594 2003-07-17  Bruno Haible  <bruno@clisp.org>
77595
77596         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77597
77598 2003-07-16  Karl Berry  <karl@gnu.org>
77599
77600         * config/srclist-update: was running fixlicense twice, which caused
77601                 texinfo.tex to be nullified for some reason.  Simplify,
77602                 $gplsrc is no longer needed as far as I can see?
77603
77604 2003-07-16  Jim Meyering  <jim@meyering.net>
77605
77606         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77607
77608 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77609
77610         * config/srclist.txt: Get the following files from gettext-runtime/intl
77611         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77612         ref-del.sin.  From Bruno Haible.
77613         * config/srclist-update (fixfile): Change grep pattern again, since the
77614         previous fix didn't work (there was another trailing $).  Use
77615         '[$]' to escape the $s.
77616
77617 2003-07-15  Karl Berry  <karl@gnu.org>
77618
77619         * lib/vasnprintf.c: update from gettext.
77620
77621 2003-07-15  Karl Berry  <karl@gnu.org>
77622
77623         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77624         gets expanded when surrounded by '$'.
77625
77626 2003-07-15  Jim Meyering  <jim@meyering.net>
77627
77628         * modules/save-cwd: Don't depend on error.  From Derek Price.
77629
77630 2003-07-15  Jim Meyering  <jim@meyering.net>
77631
77632         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77633
77634 2003-07-14  Simon Josefsson  <jas@extundo.com>
77635
77636         * modules/mempcpy: New file.
77637         * MODULES.html.sh (func_all_modules): Add mempcpy.
77638
77639 2003-07-14  Simon Josefsson  <jas@extundo.com>
77640
77641         * m4/mempcpy.m4: New file.
77642
77643 2003-07-14  Simon Josefsson  <jas@extundo.com>
77644
77645         * lib/mempcpy.h: New file.
77646         * lib/mempcpy.c: New file.
77647
77648 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77649
77650         * modules/getdate, modules/posixtm: Depend on mktime.
77651
77652 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77653
77654         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77655         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77656         unicodeio.c, unicodeio.h, unlocked-io.h:
77657         Switch from LGPL to GPL.
77658
77659 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77660
77661         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77662         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77663         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77664         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77665         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77666         updated automatically by ../config/srclist-update.  This changes
77667         their license from LPGL to GPL.
77668
77669 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77670
77671         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77672         assumed to refer to the root of the most recent stable gettext version.
77673         * config/srclistvars.sh: Add defaults for eggert.
77674         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77675         Match "This program" as well as "The program".  This is needed
77676         for gettext.
77677
77678 2003-07-14  Jim Meyering  <jim@meyering.net>
77679
77680         Don't emit diagnostics.  Let callers do that.
77681         * lib/save-cwd.c: Don't include "error.h".
77682         (save_cwd): Don't call error.  Ensure that errno is valid
77683         when returning nonzero.
77684
77685         * lib/save-cwd.h (restore_cwd): Update prototype.
77686         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77687         Simplify.  Don't call error upon failure.  Let callers do that.
77688         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77689         when auditing is enabled.  But don't bother updating the #if.
77690
77691 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77692
77693         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77694         it breaks C++ compilation.
77695         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77696
77697 2003-07-10  Simon Josefsson  <jas@extundo.com>
77698
77699         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77700
77701 2003-07-10  Jim Meyering  <jim@meyering.net>
77702
77703         * m4/clock_time.m4: Remove trailing blank.
77704         * m4/intmax_t.m4: Likewise.
77705
77706 2003-07-10  Jim Meyering  <jim@meyering.net>
77707
77708         * lib/vasnprintf.c: Remove trailing blanks.
77709         Make cpp indentation consistent.
77710
77711 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77712
77713         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77714         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77715         Switch from LGPL to GPL.
77716
77717 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77718
77719         * config/srclist.txt: Sort sublists.  Add
77720         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77721         that differ from gnulib for one reason or another; we'd like this list
77722         to be smaller but for now let's document what we have.
77723
77724 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77725
77726         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77727         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77728         and sweeter "eval x=$x".
77729         * config/srclist.txt: Get lib/argp* from glibc.
77730
77731 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77732
77733         * lib/mktime.c: Fix some boundary cases and remove need for floating
77734         point.
77735
77736         Issue a compile-time diagnostic if time_t is floating point, or if
77737         two's complement arithmetic is not in effect, or if arithmetic
77738         right shift does not propagate the sign.  These assumptions were
77739         all in the original code but they weren't checked.
77740
77741         (TIME_T_MIDPOINT, verify): New macros.
77742         (__isleap): Remove; it has integer overflow problems.
77743         (leapyear): New function, without those problems.
77744         (ydhms_tm_diff): Remove; splitting into two parts.
77745         (ydhms_diff): New function, containing the arithmetic part of
77746         the old ydhms_tm_diff function.  Issue a compile-time
77747         diagnostic if we are not using C99 integer division.
77748         Avoid casts when possible.
77749         (guess_time_tm): New function, containing the checking part of
77750         the old ydhms_tm_diff function.  Return the new value, rather than
77751         the difference between it and the old.  Accept a new argument T
77752         so that *T specifies the old value.  Check for overflow in the result.
77753
77754         (__mktime_internal): Use a time_t offset, not a long int offset.
77755         This undoes the 2003-06-04 change, which is no longer needed now
77756         that we have better overflow checking.
77757         (localtime_offset): Likewise.
77758
77759         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77760         and long are 64-bit but int is only 32-bit.
77761         (ydhms_diff): Use long int to store year1 and yday1.
77762         Issue a compile-time diagnostic if long int is not wide enough.
77763
77764         (__mktime_internal): Use long int to store adjusted year and yday.
77765         Use plain C rather than preprocessor commands, if that doesn't
77766         affect efficiency.
77767         Check for overflow (and try to repair) after each probe
77768         rather than checking only at the very end.  This avoids some bugs
77769         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77770         does not equal GMT offset at maximum time).
77771         Use integer to check for overflow rather than floating point; this
77772         is more portable to non-IEEE hosts, and is a tad faster.
77773         When we detect that we are oscillating between two values,
77774         don't check whether tm_isdst has the requested value, since
77775         we already know the answer.  When tm_isdst has the wrong value,
77776         use a different heuristic to find the right one, based on the
77777         extreme values actually observed in practice in tz2003a,
77778         rather than the (overly optimistic) "previous 3 calendar quarters".
77779
77780         (not_equal_tm, print_tm, check_result): Use "const T" rather than
77781         "T const" to accommodate glibc style.
77782         (check_result): Use less-confusing report format.  "long" -> "long int.
77783         (main): Likewise.
77784         Don't loop if the iteration overflows time_t.
77785         Allow a negative step in the iteration.
77786
77787 2003-07-06  Karl Berry  <karl@gnu.org>
77788
77789         * config/depcomp: update from automake.
77790         * config/config.sub: update from prep.
77791
77792 2003-07-03  Karl Berry  <karl@gnu.org>
77793
77794         * config/config.guess: update from prep.
77795
77796 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77797
77798         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
77799         xreadlink.c now includes it unconditionally.
77800
77801 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77802
77803         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
77804         having it depend on HAVE_SYS_TYPES_H.
77805
77806 2003-07-01  Bruno Haible  <bruno@clisp.org>
77807
77808         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
77809         <sys/types.h> should be sufficient.
77810         Reported by Paul Eggert.
77811
77812 2003-06-26  Karl Berry  <karl@gnu.org>
77813
77814         * config/depcomp: update from automake.
77815
77816 2003-06-26  Bruno Haible  <bruno@clisp.org>
77817
77818         * modules/human: Depend on module stdbool.
77819
77820 2003-06-25  Bruno Haible  <bruno@clisp.org>
77821
77822         * modules/readlink: New file.
77823         * modules/xreadlink: Depend on it.
77824         * MODULES.html.sh (func_all_modules): Add readlink.
77825
77826 2003-06-25  Bruno Haible  <bruno@clisp.org>
77827
77828         * m4/readlink.m4: New file.
77829
77830 2003-06-25  Bruno Haible  <bruno@clisp.org>
77831
77832         * lib/readlink.c: New file.
77833
77834 2003-06-22  Karl Berry  <karl@gnu.org>
77835
77836         * config/srclist.txt: update mkinstalldirs from automake.
77837         * config/mkinstalldirs: update.
77838
77839 2003-06-22  Bruno Haible  <bruno@clisp.org>
77840
77841         Portability to mingw32.
77842         * m4/ssize_t.m4: New file, from GNU gettext.
77843         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
77844         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
77845
77846 2003-06-22  Bruno Haible  <bruno@clisp.org>
77847
77848         * modules/safe-read: Add m4/ssize_t.m4.
77849         * modules/xreadlink: Add m4/ssize_t.m4.
77850
77851 2003-06-20  Bruno Haible  <bruno@clisp.org>
77852
77853         Assume C89, so PARAMS isn't needed.
77854         * lib/unicodeio.h (PARAMS): Remove.
77855         * lib/unicodeio.c: Don't use PARAMS.
77856
77857 2003-06-18  Karl Berry  <karl@gnu.org>
77858
77859         * config/config.{guess,sub}: update from prep.
77860
77861 2003-06-18  Jim Meyering  <jim@meyering.net>
77862
77863         Merge changes from coreutils.
77864         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
77865         Remove explicit declarations of xmalloc and realloc.
77866         Include xalloc.h.
77867         (read_utmp): Remove anachronistic cast of xmalloc.
77868
77869 2003-06-17  Paul Eggert  <eggert@twinsun.com>
77870
77871         Assume C89, so PARAMS isn't needed.
77872         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
77873         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
77874         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
77875         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
77876         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
77877         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
77878         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
77879         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
77880         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
77881         lib/xstrtod.h, lib/xstrtol.h: Likewise.
77882         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
77883         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
77884         no longer needed. Anyway, config.h should always be included before any
77885         other file.
77886
77887 2003-06-11  Simon Josefsson  <jas@extundo.com>
77888
77889         * modules/sysexits: New file.
77890         * MODULES.html.sh (func_all_modules): Add sysexits.
77891
77892 2003-06-11  Simon Josefsson  <jas@extundo.com>
77893
77894         * lib/sysexit_.h: New file.
77895
77896 2003-06-11  Derek Price  <derek@ximbiot.com>
77897
77898         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
77899         necessary.
77900
77901 2003-06-11  Bruno Haible  <bruno@clisp.org>
77902
77903         * m4/sysexits.m4: New file.
77904
77905 2003-06-10  Simon Josefsson  <jas@extundo.com>
77906
77907         * lib/argp.h: New file, from glibc.
77908         * lib/argp-ba.c: New file, from glibc.
77909         * lib/argp-eexst.c: New file, from glibc.
77910         * lib/argp-fmtstream.c: New file, from glibc.
77911         * lib/argp-fmtstream.h: New file, from glibc.
77912         * lib/argp-fs-xinl.c: New file, from glibc.
77913         * lib/argp-help.c: New file, from glibc.
77914         * lib/argp-namefrob.h: New file, from glibc.
77915         * lib/argp-parse.c: New file, from glibc.
77916         * lib/argp-pv.c: New file, from glibc.
77917         * lib/argp-pvh.c: New file, from glibc.
77918         * lib/argp-xinl.c: New file, from glibc.
77919
77920 2003-06-10  Simon Josefsson  <jas@extundo.com>
77921
77922         * modules/strchrnul: New file.
77923
77924 2003-06-10  Simon Josefsson  <jas@extundo.com>
77925
77926         * modules/argp: New file.
77927
77928 2003-06-10  Simon Josefsson  <jas@extundo.com>
77929
77930         * m4/strchrnul.m4: New file.
77931
77932 2003-06-10  Simon Josefsson  <jas@extundo.com>
77933
77934         * lib/strchrnul.h: New file.
77935         * lib/strchrnul.c: New file.
77936
77937 2003-06-10  Bruno Haible  <bruno@clisp.org>
77938
77939         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
77940
77941 2003-06-07  Karl Berry  <karl@gnu.org>
77942
77943         * config/config.{guess,sub}: update from prep.
77944
77945 2003-06-07  Jim Meyering  <jim@meyering.net>
77946
77947         * modules/strtod: Use $(...) notation, not @...@ for
77948         AC_REPLACE'd variables.
77949         * modules/localcharset: Likewise.
77950
77951 2003-06-07  Jim Meyering  <jim@meyering.net>
77952
77953         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
77954         in place of my name in the copyright comment.
77955         Remove definition and uses of __P.
77956
77957         From coreutils.
77958         * lib/stat.c: Don't declare xmalloc explicitly.
77959         Instead, include "xalloc.h".
77960         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
77961         xrealloc, and xcalloc return values.
77962         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
77963         Improve comment.
77964         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
77965
77966 2003-06-07  Bruno Haible  <bruno@clisp.org>
77967
77968         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
77969         avoid AC_CONFIG_LINKS.
77970         * modules/fnmatch (Makefile.am): Use explicit creation rule for
77971         fnmatch.h, to avoid AC_CONFIG_LINKS.
77972         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
77973
77974 2003-06-07  Bruno Haible  <bruno@clisp.org>
77975
77976         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
77977         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
77978         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77979         directory.
77980         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
77981         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77982         directory.
77983
77984 2003-06-06  Jim Meyering  <jim@meyering.net>
77985
77986         Merge from coreutils.
77987         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
77988         Consolidate declarations and initializations of *_base* locals.
77989
77990         Merge from coreutils.
77991         This avoids a core dump on systems without GNU putenv,
77992         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
77993         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
77994         (unsetenv): New static function, from GNU libc.
77995         (rpl_putenv): Use it.
77996
77997         * lib/modechange.c: Remove trailing blanks.
77998
77999         Merge from coreutils.
78000         * lib/fsusage.c: Remove declaration of statfs.
78001         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
78002
78003         * lib/posixtm.c: Include <stdbool.h> unconditionally.
78004
78005 2003-06-06  Jim Meyering  <jim@meyering.net>
78006
78007         * lib/stdbool_.h: Renamed from stdbool.h.in.
78008
78009 2003-06-06  Jim Meyering  <jim@meyering.net>
78010             Bruno Haible  <bruno@clisp.org>
78011
78012         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
78013         Adjust Makefile.am snippet not to redirect directly to target.
78014         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
78015
78016 2003-06-05  Paul Eggert  <eggert@twinsun.com>
78017
78018         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
78019         mismatch, look in future quarters as well as past.  This fixes a
78020         bug when processing fall-backwards gaps immediately after a long
78021         period of daylight-saving time.
78022
78023         * lib/mktime.c: Assume freestanding C89 or better.
78024         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78025         (__P): Remove; not used.
78026         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78027         (mktime, not_equal_tm, print_tm, check_result,
78028         main): Use prototypes.  Use const * where appropriate.
78029         (main): Fix typo in testing code that uncovered by above changes.
78030         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
78031
78032 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78033
78034         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
78035         locale.h, localeconv.  This merges changes from coreutils.
78036
78037         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
78038         It can be removed after the next Autoconf is released.
78039         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
78040         needed.
78041
78042 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78043
78044         * lib/mktime.c: Fix Debian bug 177940
78045         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
78046         (localtime_offset): Now long int, not time_t, because we want it
78047         to be guaranteed to be signed.  All uses changed.
78048         (__mktime_internal): If overflow would occur when adding offset,
78049         don't add it.
78050
78051         Merge 'human' changes from coreutils.  Rewrite to support
78052         locale-specific notations like thousands separators.
78053         * lib/human.c: Simplify authorship notice.
78054         Include human.h immediately after config.h.
78055         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
78056         <limits.h>: Do not include, since human.h does.
78057         (SIZE_MAX, UINTMAX_MAX): New macros.
78058         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
78059         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
78060         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
78061         (power_letter): Renamed from suffixes.
78062         (generate_suffix_backwards): Remove.
78063         (adjust_value): Now takes int style (because of human.h changes)
78064         and long double value (for greater precision on some platforms).
78065         (group_number): New function.
78066         (human_readable): Use it.  Use integer options, not enum.
78067         Put the options before the sizes in the arg list.
78068         Support all the new options.
78069         The old human_readable function has been removed;
78070         use inttostr.h instead.
78071         (human_readable, default_block_size, humblock):
78072         Use uintmax_t, not int, for block sizes.
78073         (human_readable_inexact, block_size_types): Remove.
78074         (block_size_opts): New constant.
78075         (human_options): Renamed from human_block_size, with new signature
78076         that allows block sizes up to UINTMAX_MAX.  All callers changed.
78077         * lib/human.h: Add copyright and authorship notice.
78078         Include <limits.h> and <stdbool.h> unconditionally.
78079         (PARAMS): Remove.  All uses removed.
78080         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
78081         (enum human_inexact_style): Remove tag; now a nameless enum.
78082         (human_floor, human_ceiling, human_round_to_even): Now have
78083         values 2, 0, 1 rather than -1, 1, 0.
78084         (human_group_digits, human_suppress_point_zero, human_autoscale,
78085         human_base_1024, human_SI, human_B): New constants.
78086         (human_readable_inexact, human_block_size): Remove.
78087         (human_readable): Size args are now uintmax_t, not int.
78088         (human_options): New decl.
78089
78090         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
78091         unnecessary now that we assume C89 or better.  This change
78092         imported from coreutils.
78093
78094         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78095         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
78096         in the 2003-05-30 sync from glibc.
78097
78098         .h files should stand alone, but we shouldn't include <sys/types.h>
78099         if we can get away with just <stddef.h>.
78100
78101         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
78102         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
78103         rather than <sys/types.h>, as we merely need size_t.
78104         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
78105         to get size_t.
78106         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
78107         Include <stdio.h>, to get FILE.
78108         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
78109         memcasecmp.h has included <stddef.h> and all we need is size_t.
78110         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
78111         our interface, instead of including <sys/types.h>
78112
78113 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78114
78115         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
78116         now, as glibc mktime is buggy on non-glibc systems.
78117
78118 2003-06-03  Karl Berry  <karl@gnu.org>
78119
78120         * config/config.sub: update from prep.
78121
78122 2003-06-02  Paul Eggert  <eggert@twinsun.com>
78123
78124         [from coreutils]
78125         Fix some minor time-related bugs with POSIX time arguments.
78126         Some valid time stamps were being rejected (notably -1, and
78127         time stamps before 1900 on 64-bit hosts).  And some invalid
78128         time stamps were being accepted, e.g. September 31.
78129
78130         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
78131         that we can return (time_t) -1 successfully.
78132         * lib/posixtm.c: Likewise.
78133         [HAVE_STDBOOL_H]: Include <stdbool.h>.
78134         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
78135         (t): Remove static var.
78136         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
78137         of static var.  All uses changed.
78138         (year): Do not reject years before 1900; they can occur with
78139         64-bit time_t.
78140         (posix_time_parse): Do not check for out-of-range components;
78141         that is now the caller's responsibility, since our checks were
78142         only approximations.
78143         (posixtime): Use mktime to check for out-of-range components,
78144         since it knows them exactly.
78145         If mktime returns (time_t) -1, check whether an error actually occurred
78146         by invoking localtime on -1.
78147         (main) [TEST_POSIXTIME]: Check for input data errors, and report
78148         posixtime failures better.
78149         Improve the test data (in comments only).
78150
78151 2003-06-02  Karl Berry  <karl@gnu.org>
78152
78153         * config/mkinstalldirs (version): new variable.
78154         (--version): new option.
78155         (usage): improve message.
78156
78157 2003-05-30  Karl Berry  <karl@gnu.org>
78158
78159         * lib/mktime.c: update from libc.
78160
78161 2003-05-30  Bruno Haible  <bruno@clisp.org>
78162
78163         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
78164         * config/config.rpath: Upgrade to gettext-0.12.1.
78165
78166 2003-05-30  Bruno Haible  <bruno@clisp.org>
78167
78168         * m4/gettext.m4: Upgrade to gettext-0.12.1.
78169         * m4/nls.m4: New file, from gettext-0.12.1.
78170         * m4/po.m4: New file, from gettext-0.12.1.
78171         * m4/progtest.m4: Upgrade to gettext-0.12.1.
78172
78173 2003-05-30  Bruno Haible  <bruno@clisp.org>
78174
78175         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
78176         * lib/localcharset.h: Likewise.
78177         * lib/localcharset.c: Likewise.
78178
78179 2003-05-29  Karl Berry  <karl@gnu.org>
78180
78181         * config/config.rpath: update from gettext.
78182
78183 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78184
78185         Assume the headers required for C89 freestanding compilers.
78186         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
78187         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
78188         * m4/human.m4 (gl_HUMAN): Likewise.
78189         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
78190         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
78191         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78192         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
78193         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78194         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
78195
78196 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78197
78198         Assume the headers required for C89 freestanding compilers.
78199         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
78200         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
78201         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
78202         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
78203         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
78204         define, since <limits.h> is guaranteed to do that.
78205         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
78206         * lib/exclude.c: Include <stdbool.h> unconditionally.
78207         * lib/tempname.c: Include <stddef.h> unconditionally.
78208         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78209         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78210         <stddef.h> does that.
78211         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78212         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78213         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78214         needed.
78215         * lib/xstrtol.c: Likewise.
78216         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78217         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78218
78219         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78220         warnings on some platforms.
78221
78222         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78223         arbitrarily.
78224
78225 2003-05-26  Jim Meyering  <jim@meyering.net>
78226
78227         Merge in a change from coreutils:
78228         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78229         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78230         that condition, rather than `-1' which is slightly misleading.
78231         Change the name of the cache variable to have the gl_ prefix.
78232         Prompted by a patch from Richard Dawe for DJGPP.
78233
78234 2003-05-24  Karl Berry  <karl@gnu.org>
78235
78236         * config/config.guess: update from prep.
78237
78238 2003-05-22  Karl Berry  <karl@gnu.org>
78239
78240         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78241
78242 2003-05-20  Karl Berry  <karl@gnu.org>
78243
78244         * config/config.guess: update from prep.
78245
78246 2003-05-18  Karl Berry  <karl@gnu.org>
78247
78248         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78249         might actually be set by the user.
78250
78251         * config/depcomp, install-sh, mdate-sh: update from automake.
78252
78253 2003-05-17  Bruno Haible  <bruno@clisp.org>
78254
78255         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78256         invalid expansion for AC_EGREP_CPP.
78257         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78258         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78259         Suggested by Akim Demaille <akim@epita.fr> in
78260         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78261
78262 2003-05-12  Jim Meyering  <jim@meyering.net>
78263
78264         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78265         the space-padded-by-default conversion specifiers, %e, %k, %l.
78266
78267 2003-05-12  Bruno Haible  <bruno@clisp.org>
78268
78269         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78270         the string is longer than 4 KB.
78271
78272 2003-05-11  Karl Berry  <karl@gnu.org>
78273
78274         * config/config.{guess,sub}: update from prep.
78275
78276 2003-05-09  Bruno Haible  <bruno@clisp.org>
78277
78278         * modules/error: Add m4/strerror_r.m4 to file list.
78279
78280 2003-05-03  Bruno Haible  <bruno@clisp.org>
78281
78282         Upgrade to Unicode-4.0.
78283         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78284         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78285         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78286         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78287         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78288         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78289         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78290         Change width of U+E0100..U+E01EF from 1 to 0.
78291
78292 2003-04-25  Jim Meyering  <jim@meyering.net>
78293
78294         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78295         of type size_t, not int.
78296
78297 2003-04-25  Bruno Haible  <bruno@clisp.org>
78298
78299         * lib/copy-file.c: Include <stddef.h>, for size_t.
78300
78301 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78302
78303         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78304         code which expansion is under static control.  Patch imported from
78305         Akim Demaille's patch to Bison; see
78306         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78307
78308 2003-04-14  Bruno Haible  <bruno@clisp.org>
78309
78310         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78311
78312 2003-04-11  Jim Meyering  <jim@meyering.net>
78313
78314         Merge changes from Coreutils.
78315
78316         2003-03-22  Jim Meyering  <jim@meyering.net>
78317
78318         * lib/strftime.c (widen): Cast alloca return value to proper type.
78319
78320         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78321
78322         From GNU libc.
78323         * lib/strftime.c (my_strftime): Handle very large width
78324         specifications for numeric values correctly.  Improve checks for
78325         overflow.
78326
78327         2003-01-19  Jim Meyering  <jim@meyering.net>
78328
78329         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78330         definitions.
78331         (nl_get_alt_digit) [! defined my_strftime]: Define.
78332         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78333         _nl_get_alt_digit and _nl_get_walt_digit.
78334
78335         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78336         libc. These changes have no effect outside of _LIBC.
78337
78338 2003-04-10  Bruno Haible  <bruno@clisp.org>
78339
78340         * modules/findprog: New file.
78341         * MODULES.html.sh (func_all_modules): Add it.
78342
78343 2003-04-10  Bruno Haible  <bruno@clisp.org>
78344
78345         * m4/findprog.m4: New file.
78346         * m4/eaccess.m4: New file.
78347
78348 2003-04-10  Bruno Haible  <bruno@clisp.org>
78349
78350         * lib/findprog.h: New file, from GNU gettext.
78351         * lib/findprog.c: New file, from GNU gettext.
78352
78353 2003-04-05  Jim Meyering  <jim@meyering.net>
78354
78355         Merge changes from Coreutils.
78356
78357         * lib/exclude.h (PARAMS): Remove definition and uses.
78358         * lib/exclude.c: Remove uses of `PARAMS'.
78359
78360         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78361         Add test-cases for DOS filenames. Declare program_name.
78362         (main): Set up program_name.  Patch by Rich Dawe.
78363
78364         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78365         error from mntctl.
78366         Use mntctl's return value to drive the entry-processing loop, since
78367         we can't rely on the value of the vmt_length member in the last
78368         entry.  On some systems doing so could result in exhausting
78369         virtual memory.  Based in part on a patch from Mike Jetzer.
78370
78371 2003-04-04  Bruno Haible  <bruno@clisp.org>
78372
78373         * modules/linebreak: New file.
78374         * MODULES.html.sh (func_all_modules): Add it.
78375
78376 2003-04-04  Bruno Haible  <bruno@clisp.org>
78377
78378         * m4/linebreak.m4: New file.
78379
78380 2003-04-04  Bruno Haible  <bruno@clisp.org>
78381
78382         * lib/linebreak.h: New file, from GNU gettext.
78383         * lib/linebreak.c: New file, from GNU gettext with slight
78384         modifications.
78385         * lib/lbrkprop.h: New file, from GNU gettext.
78386
78387 2003-04-03  Bruno Haible  <bruno@clisp.org>
78388
78389         * modules/utf8-ucs4: New file.
78390         * modules/utf16-ucs4: New file.
78391         * modules/ucs4-utf8: New file.
78392         * modules/ucs4-utf16: New file.
78393         * MODULES.html.sh (func_all_modules): Add them.
78394
78395 2003-04-03  Bruno Haible  <bruno@clisp.org>
78396
78397         * m4/utf-ucs4.m4: New file.
78398         * m4/ucs4-utf.m4: New file.
78399
78400 2003-04-03  Bruno Haible  <bruno@clisp.org>
78401
78402         * lib/utf8-ucs4.h: New file, from GNU gettext.
78403         * lib/utf16-ucs4.h: New file, from GNU gettext.
78404         * lib/ucs4-utf8.h: New file, from GNU gettext.
78405         * lib/ucs4-utf16.h: New file, from GNU gettext.
78406
78407 2003-04-02  Bruno Haible  <bruno@clisp.org>
78408
78409         * modules/binary-io: New file.
78410         * MODULES.html.sh (func_all_modules): Add it.
78411
78412 2003-04-02  Bruno Haible  <bruno@clisp.org>
78413
78414         * lib/binary-io.h: New file, from GNU gettext.
78415
78416 2003-04-01  Bruno Haible  <bruno@clisp.org>
78417
78418         * modules/pathname: New file.
78419         * MODULES.html.sh (func_all_modules): Add it.
78420
78421 2003-04-01  Bruno Haible  <bruno@clisp.org>
78422
78423         * lib/pathname.h: New file, from GNU gettext.
78424         * lib/concatpath.c: New file, from GNU gettext.
78425
78426 2003-03-30  Bruno Haible  <bruno@clisp.org>
78427
78428         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78429
78430 2003-03-30  Bruno Haible  <bruno@clisp.org>
78431
78432         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78433         function chown() doesn't exist.
78434
78435 2003-03-28  Bruno Haible  <bruno@clisp.org>
78436
78437         * modules/copy-file: New file.
78438         * MODULES.html.sh (func_all_modules): Add it.
78439
78440 2003-03-28  Bruno Haible  <bruno@clisp.org>
78441
78442         * m4/copy-file.m4: New file.
78443
78444 2003-03-28  Bruno Haible  <bruno@clisp.org>
78445
78446         * lib/copy-file.h: New file, from GNU gettext.
78447         * lib/copy-file.c: New file, from GNU gettext.
78448
78449 2003-03-18  Jim Meyering  <jim@meyering.net>
78450
78451         * lib/quote.c (quote_n): Fix typo in comment.
78452
78453 2003-03-18  Bruno Haible  <bruno@clisp.org>
78454
78455         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78456         checking.
78457         * m4/onceonly_2_57.m4: Likewise.
78458
78459 2003-03-17  Bruno Haible  <bruno@clisp.org>
78460
78461         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78462         (m4_quote): Remove macro.
78463         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78464
78465 2003-03-14  Jim Meyering  <jim@meyering.net>
78466
78467         Merge changes from Coreutils.
78468         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78469         to be const, in order to avoid warnings.
78470         (obstack_room): Likewise.
78471         (obstack_empty_p): Likewise.
78472
78473 2003-03-14  Bruno Haible  <bruno@clisp.org>
78474
78475         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78476         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78477
78478 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78479
78480         Merge changes from Bison.
78481         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78482         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78483         when compiling Bison 1.875's `bitset bset = obstack_alloc
78484         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78485         * lib/hash.c: Include <stdbool.h> unconditionally.
78486
78487 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78488
78489         * m4/onceonly.m4 (m4_quote): New macro.
78490         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78491         Quote AC_FOREACH variable-expansions properly.
78492
78493 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78494
78495         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78496
78497 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78498
78499         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78500         Reported by Bruce Becker; see:
78501         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78502
78503 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78504             Bruno Haible  <bruno@clisp.org>
78505
78506         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78507         Reported by John Hughes, see
78508         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78509
78510 2003-02-20  Bruno Haible  <bruno@clisp.org>
78511
78512         * MODULES.html.sh (func_all_modules): Add poll.
78513
78514 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78515
78516         * modules/poll: New file.
78517
78518 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78519
78520         * lib/poll_.h: New file.
78521         * lib/poll.c: New file.
78522
78523 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78524
78525         * m4/poll.m4: New file.
78526
78527 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78528
78529         * modules/mathl: New file.
78530
78531 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78532
78533         * lib/mathl.h: New file.
78534         * lib/acosl.c: New file.
78535         * lib/asinl.c: New file.
78536         * lib/atanl.c: New file.
78537         * lib/ceill.c: New file.
78538         * lib/cosl.c: New file.
78539         * lib/expl.c: New file.
78540         * lib/floorl.c: New file.
78541         * lib/frexpl.c: New file.
78542         * lib/ldexpl.c: New file.
78543         * lib/logl.c: New file.
78544         * lib/sincosl.c: New file.
78545         * lib/sinl.c: New file.
78546         * lib/sqrtl.c: New file.
78547         * lib/tanl.c: New file.
78548         * lib/trigl.c: New file.
78549         * lib/trigl.h: New file.
78550
78551 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78552
78553         * m4/mathl.m4: New file.
78554
78555 2003-02-18  Bruno Haible  <bruno@clisp.org>
78556
78557         * MODULES.html.sh (func_all_modules): Add mathl.
78558
78559 2003-02-17  Bruno Haible  <bruno@clisp.org>
78560
78561         * modules/mkdtemp: New module.
78562         * MODULES.html.sh (func_all_modules): Add it.
78563
78564 2003-02-17  Bruno Haible  <bruno@clisp.org>
78565
78566         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78567
78568 2003-02-17  Bruno Haible  <bruno@clisp.org>
78569
78570         * lib/mkdtemp.h: New file, from GNU gettext.
78571         * lib/mkdtemp.c: New file, from GNU gettext.
78572
78573 2003-02-02  Jim Meyering  <jim@meyering.net>
78574
78575         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78576         e.g. glibc-2.2.93.
78577
78578 2003-01-31  Bruno Haible  <bruno@clisp.org>
78579
78580         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78581         'rpl_rename'.
78582         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78583         'rpl_strnlen'.
78584         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78585         'rpl_strtod'.
78586         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78587         'rpl_utime'.
78588
78589 2003-01-31  Bruno Haible  <bruno@clisp.org>
78590
78591         * lib/rename.c: #undef rename before defining rpl_rename.
78592         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78593
78594 2003-01-30  Bruno Haible  <bruno@clisp.org>
78595
78596         * modules/vasnprintf, modules/vasprintf: New modules.
78597         * MODULES.html.sh (func_all_modules): Add them.
78598
78599 2003-01-30  Bruno Haible  <bruno@clisp.org>
78600
78601         * m4/signed.m4: New file, from GNU gettext.
78602         * m4/longdouble.m4: New file, from GNU gettext.
78603         * m4/wchar_t.m4: New file, from GNU gettext.
78604         * m4/wint_t.m4: New file, from GNU gettext.
78605         * m4/vasnprintf.m4: New file.
78606         * m4/vasprintf.m4: New file.
78607
78608 2003-01-30  Bruno Haible  <bruno@clisp.org>
78609
78610         * lib/printf-args.h: New file, from GNU gettext.
78611         * lib/printf-args.c: New file, from GNU gettext.
78612         * lib/printf-parse.h: New file, from GNU gettext.
78613         * lib/printf-parse.c: New file, from GNU gettext.
78614         * lib/vasnprintf.h: New file, from GNU gettext.
78615         * lib/vasnprintf.c: New file, from GNU gettext.
78616         * lib/asnprintf.c: New file, from GNU gettext.
78617         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78618         * lib/vasprintf.c: New file, from GNU gettext.
78619         * lib/asprintf.c: New file, from GNU gettext.
78620
78621 2003-01-29  Bruno Haible  <bruno@clisp.org>
78622
78623         * modules/stpncpy: New module.
78624         * MODULES.html.sh (func_all_modules): Add it.
78625
78626 2003-01-29  Bruno Haible  <bruno@clisp.org>
78627
78628         * m4/stpncpy.m4: New file.
78629
78630 2003-01-29  Bruno Haible  <bruno@clisp.org>
78631
78632         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78633         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78634
78635 2003-01-28  Bruno Haible  <bruno@clisp.org>
78636
78637         * modules/c-ctype: New module.
78638         * MODULES.html.sh (func_all_modules): Add it.
78639
78640 2003-01-28  Bruno Haible  <bruno@clisp.org>
78641
78642         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78643         Paul Eggert.
78644         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78645         Paul Eggert.
78646
78647 2003-01-27  Bruno Haible  <bruno@clisp.org>
78648
78649         * modules/xsetenv: New module.
78650         * MODULES.html.sh (func_all_modules): Add it.
78651
78652 2003-01-27  Bruno Haible  <bruno@clisp.org>
78653
78654         * lib/xsetenv.h: New file, from GNU gettext.
78655         * lib/xsetenv.c: New file, from GNU gettext.
78656
78657 2003-01-23  Jim Meyering  <jim@meyering.net>
78658
78659         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78660         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78661
78662 2003-01-23  Bruno Haible  <bruno@clisp.org>
78663
78664         * modules/minmax: New module.
78665         * MODULES.html.sh (func_all_modules): Add it.
78666
78667 2003-01-23  Bruno Haible  <bruno@clisp.org>
78668
78669         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78670         Eggert.
78671
78672 2003-01-22  Bruno Haible  <bruno@clisp.org>
78673
78674         * modules/exit: New module.
78675         * MODULES.html.sh (func_all_modules): Add it.
78676
78677 2003-01-22  Bruno Haible  <bruno@clisp.org>
78678
78679         * lib/exit.h: New file, from GNU gettext.
78680
78681 2003-01-19  Bruno Haible  <bruno@clisp.org>
78682
78683         * gnulib-tool: Recognize option --extract-maintainer.
78684         (func_get_maintainer): New function.
78685         * modules/*: Add Maintainer entry.
78686
78687 2003-01-16  Jim Meyering  <jim@meyering.net>
78688
78689         * m4/regex.m4: The `regex' struct is both input and output.
78690         Initialize it before each use.  Patch by Tim Waugh.
78691
78692 2003-01-16  Bruno Haible  <bruno@clisp.org>
78693
78694         * MODULES.html.sh: Add a table of contents. Add the module name as
78695         leftmost column. Add hyperlinks.
78696
78697 2003-01-15  Bruno Haible  <bruno@clisp.org>
78698
78699         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78700
78701 2003-01-15  Bruno Haible  <bruno@clisp.org>
78702
78703         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78704         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78705         suffix.
78706
78707 2003-01-15  Bruno Haible  <bruno@clisp.org>
78708
78709         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78710
78711 2003-01-15  Bruno Haible  <bruno@clisp.org>
78712
78713         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78714         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78715
78716 2003-01-14  Jim Meyering  <jim@meyering.net>
78717
78718         * lib/same.c (same_name): Tweak a comment.
78719
78720 2003-01-14  Bruno Haible  <bruno@clisp.org>
78721
78722         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78723         when a string comparison is sufficient.
78724
78725 2003-01-14  Bruno Haible  <bruno@clisp.org>
78726
78727         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78728         'unsigned int'.
78729
78730 2003-01-14  Bruno Haible  <bruno@clisp.org>
78731
78732         * lib/hash-pjw.c: Add comment about low quality of this function.
78733
78734 2003-01-13  Bruno Haible  <bruno@clisp.org>
78735
78736         * modules/stpcpy: Distribute lib/stpcpy.h.
78737         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78738
78739 2003-01-13  Bruno Haible  <bruno@clisp.org>
78740
78741         * modules/*: Add a description.
78742         * modules/strpbrk: Fix Makefile.am snippet.
78743         * modules/strtoimax: Fix dependencies.
78744         * modules/strtoumax: Likewise.
78745
78746 2003-01-13  Bruno Haible  <bruno@clisp.org>
78747
78748         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78749         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78750         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78751
78752 2003-01-13  Bruno Haible  <bruno@clisp.org>
78753
78754         * gnulib-tool (func_create_testdir): Store config/* files in the main
78755         directory.
78756         * config.rpath: Move to ...
78757         * config/config.rpath: ... here.
78758         * modules/gettext: Contains config/config.rpath, not config.rpath.
78759         * modules/iconv: Likewise.
78760
78761 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78762
78763         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78764         to avoid collisions with libcurses and libreadline.
78765
78766         * m4/getstr.m4: Remove.
78767         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78768
78769 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78770
78771         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78772         to avoid collisions with libcurses and libreadline.
78773
78774         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78775         * lib/getstr.h, getstr.c: Remove.
78776         * lib/getline.c: Include "getline.h", to check interface.
78777         Move body of old getstr.c here: this defines MIN_CHUNK and
78778         declares getdelim2, which is renamed from getstr.
78779         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
78780
78781         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
78782         All uses changed.
78783         * lib/linebuffer.h: Likewise.
78784         (readline): Remove backward-compatibility macro.
78785
78786 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78787
78788         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78789         to avoid collisions with libcurses and libreadline.
78790         * getstr: Remove.
78791         * MODULES.html.sh: Remove getstr.
78792         * modules/getline: Depend on unlocked-io, not getstr.
78793
78794 2003-01-12  Jim Meyering  <jim@meyering.net>
78795
78796         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
78797
78798 2003-01-10  Bruno Haible  <bruno@clisp.org>
78799
78800         * modules/alloca: Change Makefile.am requirements. Simplify Include
78801         requirements. Add lib/alloca_.h to file list.
78802
78803 2003-01-10  Bruno Haible  <bruno@clisp.org>
78804
78805         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
78806
78807 2003-01-10  Bruno Haible  <bruno@clisp.org>
78808
78809         * lib/alloca_.h: New file.
78810         * lib/getdate.y: Unconditionally include alloca.h.
78811         * lib/makepath.c: Likewise.
78812         * lib/setenv.c: Likewise.
78813         * lib/userspec.c: Likewise.
78814
78815 2003-01-09  Karl Berry  <karl@gnu.org>
78816
78817         * MODULES.html.sh: include `dirname $0` in PATH, to find
78818         gnulib-tool.
78819
78820 2003-01-09  Bruno Haible  <bruno@clisp.org>
78821
78822         * modules/stdbool: Change configure.ac, Makefile.am requirements.
78823         Simplify Include requirements. Add lib/stdbool.h.in to file list.
78824
78825 2003-01-09  Bruno Haible  <bruno@clisp.org>
78826
78827         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
78828
78829 2003-01-09  Bruno Haible  <bruno@clisp.org>
78830
78831         * lib/stdbool.h.in: New file.
78832
78833 2003-01-09  Bruno Haible  <bruno@clisp.org>
78834
78835         * gnulib-tool (func_all_modules): Ignore files ending in ~.
78836         * MODULES.html.sh: Likewise.
78837
78838 2003-01-08  Jim Meyering  <jim@meyering.net>
78839
78840         * lib/full-write.c: Undefine and define-away `const' after inclusion
78841         of errno.h, not before.  Suggestion from Bruno Haible.
78842
78843 2003-01-08  Bruno Haible  <bruno@clisp.org>
78844
78845         * modules/full-read: Depend on full-write.
78846
78847 2003-01-08  Bruno Haible  <bruno@clisp.org>
78848
78849         * lib/safe-read.c: Include specification header first, to ensure its
78850         selfcontainedness.
78851         * lib/full-write.c: Likewise.
78852
78853 2003-01-07  Jim Meyering  <jim@meyering.net>
78854
78855         * lib/full-write.c: Rework so that it may serve to define full_read,
78856         too.
78857         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
78858
78859 2003-01-07  Bruno Haible  <bruno@clisp.org>
78860
78861         * lib/strtoimax.c: Include <stdint.h> as an alternative to
78862         <inttypes.h>.
78863         * lib/xstrtol.h: Likewise.
78864         * lib/xstrtoimax.c: Likewise.
78865         * lib/xstrtoumax.c: Likewise.
78866         * lib/human.h: Likewise.
78867
78868         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
78869         on systems that have <inttypes.h> but not <stdint.h>.
78870
78871 2003-01-07  Bruno Haible  <bruno@clisp.org>
78872
78873         * MODULES.html.sh: Add copyright notice.
78874         (missed_files): Omit CVS directory entries.
78875         (func_module): Make it work with sed-3.02.
78876         * MODULES.txt: Remove file.
78877
78878 2003-01-06  Jim Meyering  <jim@meyering.net>
78879
78880         * lib/version-etc.c: Update year in translatable copyright string.
78881
78882 2003-01-03  Karl Berry  <karl@gnu.org>
78883
78884         * config/config.{guess,sub}: update from prep.
78885
78886 2003-01-02  Karl Berry  <karl@gnu.org>
78887
78888         * doc/COPYING.DOC: belatedly updated to 1.2.
78889
78890 2003-01-01  Karl Berry  <karl@gnu.org>
78891
78892         * gnulib-tool (func_verify_module): report module name $module in
78893         error message, not $1.
78894         * gnulib-tool (create-testdir): don't complain if destdir couldn't
78895         be created, only if it doesn't exist.
78896         * gnulib-tool (last_checkin_date): don't expand the $Date here.
78897
78898 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78899
78900         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
78901
78902 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78903
78904         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
78905         memcmp if strcoll doesn't work.
78906
78907 2002-12-31  Bruno Haible  <bruno@clisp.org>
78908
78909         * lib/utime.c (utime_null): No need to call ftruncate if the file was
78910         nonempty.
78911
78912 2002-12-31  Bruno Haible  <bruno@clisp.org>
78913
78914         * lib/memcoll.c (STRCOLL): New macro.
78915         (memcoll): Use it.
78916
78917 2002-12-31  Bruno Haible  <bruno@clisp.org>
78918
78919         * lib/localcharset.h: New file.
78920         * lib/localcharset.c: Include it.
78921         * lib/unicodeio.c: Likewise.
78922
78923 2002-12-31  Bruno Haible  <bruno@clisp.org>
78924
78925         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
78926         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
78927
78928 2002-12-31  Bruno Haible  <bruno@clisp.org>
78929
78930         * lib/getline.h: Include <stddef.h>, for size_t.
78931
78932         * lib/unicodeio.h: Include <stddef.h>, for size_t.
78933         * lib/unicodeio.c: Don't include <stddef.h>.
78934
78935 2002-12-31  Bruno Haible  <bruno@clisp.org>
78936
78937         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
78938         HAVE_TM_ZONE.
78939
78940 2002-12-24  Karl Berry  <karl@gnu.org>
78941
78942         * config/config.guess: update from prep.
78943
78944 2002-12-24  Bruno Haible  <bruno@clisp.org>
78945
78946         General infrasructure.
78947         * m4/README: Rewritten.
78948         * m4/onceonly.m4: New file.
78949         * m4/onceonly_2_57.m4: New file.
78950
78951         Module atexit.
78952         * m4/atexit.m4: New file.
78953
78954         Module strtod.
78955         * m4/strtod.m4: New file.
78956
78957         Module strtol.
78958         * m4/strtol.m4: New file.
78959
78960         Module strtoul.
78961         * m4/strtoul.m4: New file.
78962
78963         Module memchr.
78964         * m4/memchr.m4: New file.
78965
78966         Module memcmp.
78967         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
78968         (jm_FUNC_MEMCMP): Invoke it.
78969
78970         Module memcpy.
78971         * m4/memcpy.m4: New file.
78972
78973         Module memmove.
78974         * m4/memmove.m4: New file.
78975
78976         Module memset.
78977         * m4/memset.m4: New file.
78978
78979         Module strcspn.
78980         * m4/strcspn.m4: New file.
78981
78982         Module strpbrk.
78983         * m4/strpbrk.m4: New file.
78984
78985         Module strstr.
78986         * m4/strstr.m4: New file.
78987
78988         Module strerror.
78989         * m4/strerror.m4: New file.
78990
78991         Module mktime.
78992         * m4/mktime.m4: Renamed from jm-mktime.m4.
78993         (gl_PREREQ_MKTIME): New macro.
78994         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
78995
78996         Module malloc.
78997         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
78998         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
78999         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
79000
79001         Module realloc.
79002         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
79003         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
79004         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
79005
79006         Module strftime.
79007         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
79008         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
79009         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
79010         gl_TM_GMTOFF.
79011         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
79012
79013         Module xalloc.
79014         * m4/xalloc.m4: New file.
79015
79016         Module alloca.
79017         * m4/alloca.m4: New file.
79018
79019         Module putenv.
79020         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
79021         (jm_FUNC_PUTENV): Invoke it.
79022
79023         Module setenv.
79024         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79025         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79026         when invoked twice.
79027         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79028         gt_FUNC_SETENV.
79029
79030         Module memrchr.
79031         * m4/memrchr.m4: New file.
79032
79033         Module stpcpy.
79034         * m4/stpcpy.m4: New file.
79035
79036         Module strcase.
79037         * m4/strcase.m4: New file.
79038
79039         Module strdup.
79040         * m4/strdup.m4: New file.
79041
79042         Module strnlen.
79043         * m4/strnlen.m4: New file.
79044
79045         Module strndup.
79046         * m4/strndup.m4: New file.
79047
79048         Module xstrtod.
79049         * m4/xstrtod.m4: New file.
79050
79051         Module xstrtol.
79052         * m4/xstrtol.m4: New file.
79053
79054         Module getdate.
79055         * m4/getdate.m4: New file.
79056
79057         Module unlocked-io.
79058         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
79059         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
79060         * m4/jm-glibc-io.m4n: Remove file.
79061
79062         Module long-options.
79063         * m4/long-options.m4: New file.
79064
79065         Module md5.
79066         * m4/md5.m4: New file.
79067
79068         Module sha.
79069         * m4/sha.m4: New file.
79070
79071         Module getstr.
79072         * m4/getstr.m4: New file.
79073
79074         Module getline.
79075         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
79076         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
79077         <sys/types.h>, for size_t. Use the function name gnu_getline, not
79078         simply getline. Infoke gl_PREREQ_GETLINE.
79079
79080         Module obstack.
79081         * m4/obstack.m4: New file.
79082
79083         Module hash.
79084         * m4/hash.m4: New file.
79085
79086         Module readtokens.
79087         * m4/readtokens.m4: New file.
79088
79089         Module strverscmp.
79090         * m4/strverscmp.m4: New file.
79091
79092         Module stdbool.
79093         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
79094         OSF/1.
79095
79096         Module strtoll.
79097         * m4/strtoll.m4: New file.
79098
79099         Module strtoull.
79100         * m4/strtoull.m4: New file.
79101
79102         Module strtoimax.
79103         * m4/strtoimax.m4: New file.
79104
79105         Module strtoumax.
79106         * m4/strtoumax.m4: New file.
79107
79108         Module xstrtoimax.
79109         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
79110         jm_AC_PREREQ_XSTRTOIMAX.
79111         Moved the strtol prerequisites to strtol.m4.
79112         Moved the strtoll prerequisites to strtoll.m4.
79113         Moved the strtoimax prerequisites to strtoimax.m4.
79114
79115         Module xstrtoumax.
79116         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
79117         jm_AC_PREREQ_XSTRTOUMAX.
79118         Moved the strtoul prerequisites to strtoul.m4.
79119         Moved the strtoull prerequisites to strtoull.m4.
79120         Moved the strtoumax prerequisites to strtoumax.m4.
79121
79122         Module chown.
79123         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
79124         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
79125
79126         Module dup2.
79127         * m4/dup2.m4: New file.
79128
79129         Module ftruncate.
79130         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
79131         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
79132
79133         Module getgroups.
79134         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
79135         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
79136
79137         Module gettimeofday.
79138         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
79139         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
79140         gl_PREREQ_GETTIMEOFDAY.
79141
79142         Module mkdir.
79143         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
79144         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
79145
79146         Module mkstemp.
79147         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
79148         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
79149         jm_AC_TYPE_UINTMAX_T.
79150         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
79151
79152         Module stat.
79153         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
79154         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
79155
79156         Module lstat.
79157         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
79158         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
79159
79160         Module timespec.
79161         * m4/timespec.m4 (gl_TIMESPEC): New macro.
79162         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
79163         * m4/st_mtim.m4: Indentation.
79164
79165         Module nanosleep.
79166         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
79167         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
79168         gl_PREREQ_NANOSLEEP.
79169
79170         Module regex.
79171         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
79172         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
79173         (gl_REGEX): New macro.
79174
79175         Module rename.
79176         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
79177         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
79178
79179         Module rmdir.
79180         * m4/rmdir.m4: New file.
79181
79182         Module utime.
79183         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
79184         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
79185         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
79186
79187         Module dirname.
79188         * m4/dirname.m4: New file.
79189
79190         Module getopt.
79191         * m4/getopt.m4: New file.
79192
79193         Module unistd-safer.
79194         * m4/unistd-safer.m4: New file.
79195
79196         Module fnmatch.
79197         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
79198         declaration.
79199         (gl_PREREQ_FNMATCH_EXTRA): New macro.
79200         (gl_FUNC_FNMATCH_POSIX): New macro.
79201         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
79202         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
79203         simply fnmatch.
79204
79205         Module exclude.
79206         * m4/exclude.m4: New file.
79207
79208         Module human.
79209         * m4/human.m4: New file.
79210
79211         Module acl.
79212         * m4/acl.m4: Nop.
79213
79214         Module backupfile.
79215         * m4/backupfile.m4: New file.
79216         * m4/d-ino.m4: Indentation.
79217
79218         Module fsusage.
79219         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79220         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79221         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79222
79223         Module dirfd.
79224         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79225         requirements.
79226
79227         Module euidaccess.
79228         * m4/euidaccess.m4: New file.
79229
79230         Module file-type.
79231         * m4/file-type.m4: New file.
79232
79233         Module fileblocks.
79234         * m4/fileblocks.m4: New file.
79235
79236         Module filemode.
79237         * m4/filemode.m4: New file.
79238
79239         Module isdir.
79240         * m4/isdir.m4: New file.
79241
79242         Module lchown.
79243         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79244         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79245
79246         Module makepath.
79247         * m4/makepath.m4: New file.
79248
79249         Module modechange.
79250         * m4/modechange.m4: New file.
79251
79252         Module mountlist.
79253         * m4/mountlist.m4: New file.
79254         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79255         Indentation.
79256
79257         Module path-concat.
79258         * m4/path-concat.m4: New file.
79259
79260         Module pathmax.
79261         * m4/pathmax.m4: New file.
79262
79263         Module same.
79264         * m4/same.m4: New file.
79265
79266         Module save-cwd.
79267         * m4/save-cwd.m4: New file.
79268
79269         Module savedir.
79270         * m4/savedir.m4: New file.
79271
79272         Module xgetcwd.
79273         * m4/xgetcwd.m4: New file.
79274         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79275
79276         Module xreadlink.
79277         * m4/xreadlink.m4: New file.
79278
79279         Module safe-read.
79280         * m4/safe-read.m4: New file.
79281
79282         Module safe-write.
79283         * m4/safe-write.m4: New file.
79284
79285         Module closeout.
79286         * m4/closeout.m4: New file.
79287
79288         Module stdio-safer.
79289         * m4/stdio-safer.m4: New file.
79290
79291         Module getpass.
79292         * m4/getpass.m4: New file.
79293
79294         Module getugroups.
79295         * m4/getugroups.m4: New file.
79296
79297         Module group-member.
79298         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79299         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79300
79301         Module idcache.
79302         * m4/idcache.m4: New file.
79303
79304         Module userspec.
79305         * m4/userspec.m4: New file.
79306
79307         Module gettime.
79308         * m4/clock_time.m4: New file.
79309         * m4/gettime.m4: New file.
79310
79311         Module settime.
79312         * m4/settime.m4: New file.
79313
79314         Module posixtm.
79315         * m4/posixtm.m4: New file.
79316
79317         Module gethostname.
79318         * m4/gethostname.m4: New file.
79319
79320         Module canon-host.
79321         * m4/canon-host.m4: New file.
79322
79323         Module gettext.
79324         * m4/codeset.m4: New file, from gettext-0.11.5.
79325         * m4/gettext.m4: New file, from gettext-0.11.5.
79326         * m4/glibc21.m4: New file, from gettext-0.11.5.
79327         * m4/iconv.m4: New file, from gettext-0.11.5.
79328         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79329         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79330         * m4/inttypes.m4: New file, from gettext-0.11.5.
79331         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79332         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79333         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79334         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79335         * m4/lib-link.m4: New file, from gettext-0.11.5.
79336         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79337         * m4/progtest.m4: New file, from gettext-0.11.5.
79338         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79339         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79340         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79341
79342         Module localcharset.
79343         * m4/localcharset.m4: New file.
79344
79345         Module hard-locale.
79346         * m4/hard-locale.m4: New file.
79347
79348         Module mbswidth.
79349         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79350         onceonly macros.
79351         * m4/mbrtowc.m4: Add comment.
79352
79353         Module memcasecmp.
79354         * m4/memcasecmp.m4: New file.
79355
79356         Module memcoll.
79357         * m4/memcoll.m4: New file.
79358
79359         Module unicodeio.
79360         * m4/unicodeio.m4: New file.
79361
79362         Module rpmatch.
79363         * m4/rpmatch.m4: New file.
79364
79365         Module yesno.
79366         * m4/yesno.m4: New file.
79367
79368         Module exitfail.
79369         * m4/exitfail.m4: New file.
79370
79371         Module c-stack.
79372         * m4/c-stack.m4 (gl_C_STACK): New macro.
79373         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79374
79375         Module error.
79376         * m4/error.m4 (gl_ERROR): New macro.
79377         (jm_PREREQ_ERROR): Use onceonly macros.
79378
79379         Module fatal.
79380         * m4/fatal.m4: New file.
79381
79382         Module getloadavg.
79383         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79384         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79385
79386         Module getpagesize.
79387         * m4/getpagesize.m4: New file.
79388
79389         Module getusershell.
79390         * m4/getusershell.m4: New file.
79391
79392         Module physmem.
79393         * m4/physmem.m4: New file.
79394
79395         Module posixver.
79396         * m4/posixver.m4: New file.
79397
79398         Module quotearg.
79399         * m4/quotearg.m4: New file.
79400
79401         Module quote.
79402         * m4/quote.m4: New file.
79403
79404         Module readutmp.
79405         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79406
79407         Module sig2str.
79408         * m4/sig2str.m4: New file.
79409
79410         Other.
79411         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79412         ulonglong.m4.
79413         * m4/intmax_t.m4: New file.
79414         * m4/d-type.m4: Indentation.
79415         * m4/jm-macros.m4: Update.
79416         * m4/prereq.m4 (jm_PREREQ): Update.
79417         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79418         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79419         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79420         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79421         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79422         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79423         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79424         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79425         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79426         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79427         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79428         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79429         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79430         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79431         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79432         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79433         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79434         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79435         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79436
79437 2002-12-24  Bruno Haible  <bruno@clisp.org>
79438
79439         * MODULES.txt: Update according to m4/ changes.
79440
79441         Module gettext.
79442         * config.rpath: New file, from gettext-0.11.5.
79443
79444         * modules/*: New module descriptions.
79445         * gnulib-tool: New file.
79446         * MODULES.html.sh: New file.
79447
79448 2002-12-21  Karl Berry  <karl@gnu.org>
79449
79450         * doc/fdl.texi: update to version 1.2.
79451
79452 2002-12-19  Karl Berry  <karl@gnu.org>
79453
79454         * config/config.guess: update from prep.
79455
79456 2002-12-18  Bruno Haible  <bruno@clisp.org>
79457
79458         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79459         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79460
79461 2002-12-17  Bruno Haible  <bruno@clisp.org>
79462
79463         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79464         stdlib.h, string.h.
79465
79466 2002-12-17  Bruno Haible  <bruno@clisp.org>
79467
79468         * lib/canon-host.c (strdup): Remove unused declaration.
79469
79470         * lib/fsusage.c: Include full_read.h.
79471         (get_fs_usage): Use full_read instead of safe_read.
79472
79473         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79474
79475 2002-12-12  Karl Berry  <karl@gnu.org>
79476
79477         * config/config.guess: update from prep.
79478
79479 2002-12-11  Bruno Haible  <bruno@clisp.org>
79480
79481         * m4/setenv.m4: New file, from gettext-0.11.5.
79482
79483 2002-12-11  Bruno Haible  <bruno@clisp.org>
79484
79485         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79486         not unsetenv().
79487         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79488         modifications:
79489
79490         2002-12-11  Bruno Haible  <bruno@clisp.org>
79491
79492                 * setenv.c (alloca): Fall back to malloc.
79493                 (freea): New macro.
79494                 (setenv): Use freea() to free memory allocated with alloca().
79495
79496         2002-11-13  Bruno Haible  <bruno@clisp.org>
79497
79498                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79499                 function declarations.
79500                 * unsetenv.c (unsetenv): Likewise.
79501
79502         2002-03-04  Bruno Haible  <bruno@clisp.org>
79503
79504                 Portability to AIX 4.3.3.
79505                 * unsetenv.c: New file, extracted from setenv.c.
79506                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79507
79508         2001-12-20  Bruno Haible  <bruno@clisp.org>
79509
79510                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79511                 use malloc instead. For SunOS 4.
79512
79513         2001-12-11  Bruno Haible  <bruno@clisp.org>
79514
79515                 * setenv.c: Declare alloca.
79516                 (compar_fn_t): New typedef.
79517                 (KNOWN_VALUE, STORE_VALUE): Use it.
79518
79519         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79520         setenv.h.
79521
79522 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79523
79524         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79525         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79526         Choose values that are less likely to collide with system fnmatch
79527         options.
79528         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79529         defined (e.g., a pure POSIX system).
79530         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79531         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79532
79533 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79534
79535         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79536         a pain in practice to deal with generated m4 files.  This change
79537         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79538
79539         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79540         and jm-glibc-io.m4, as they are no longer a special case.
79541         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79542         kludge and the auto-generation stuff.  Check only whether the
79543         functions are declared, not whether they exist, since older hosts
79544         that don't declare the functions can't use the optimization anyway.
79545
79546 2002-12-06  Jim Meyering  <jim@meyering.net>
79547
79548         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79549
79550         Merge in changes from libc's misc/error.c, in preparation
79551         for the merge of gnulib's changes back into libc.
79552
79553         * lib/error.c (_): Define only if not already defined.
79554         Move definition to follow all #include directives.
79555         Include unlocked-io.h only if !_LIBC.
79556         [_LIBC]: Include <libio/libioP.h>.
79557         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79558         (fflush): Tweak definition to use INTUSE.
79559         (putc): Define.
79560
79561 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79562
79563         * lib/alloca.c [defined emacs]: Include "lisp.h".
79564         (xalloc_die) [defined emacs]: New macro.
79565         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79566         [! defined emacs]: Include <xalloc.h>.
79567         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79568         (pointer): Typedef to POINTER_TYPE *.
79569         (malloc): Remove decl; we now always use xmalloc.
79570         (alloca): Use old-style definition, since Emacs needs this.
79571         Check for arithmetic overflow when computing combined size.
79572
79573 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79574
79575         Do not generate unlocked-io.h automatically, since it's easier to
79576         maintain it by hand.
79577
79578         * lib/unlocked-io.h: New file, from GNU diffutils,
79579         but with proper copyright notice and attribution.
79580         * lib/gen-uio: Remove.
79581         * lib/Makefile.am: Add copyright notice.
79582         (libfetish_a_SOURCES): Add unlocked-io.h.
79583         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79584         (DISTCLEANFILES, io_functions): Remove macros.
79585         (EXTRA_DIST): Remove gen_uio.
79586         (unlocked-io.h): Remove rule.
79587
79588 2002-12-04  Jim Meyering  <jim@meyering.net>
79589
79590         Reflect the fact that stat.c and lstat.c are no longer generated.
79591         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79592         (DISTCLEANFILES): Likewise.
79593         (EXTRA_DIST): Likewise.
79594         (all_local): Don't depend on stat.c or lstat.c.
79595         (stat.c, lstat.c): Remove rules.
79596         (EXTRA_DIST): Remove xstat.in.
79597
79598         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79599         * lib/stat.c: New file.  Contents mostly from xstat.in.
79600         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79601         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79602
79603         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79604         too.
79605         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79606
79607 2002-12-03  Jim Meyering  <jim@meyering.net>
79608
79609         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79610         but not semantics, to minimize the differences between these two files.
79611         (safe_read): Change comment to mention SAFE_READ_ERROR.
79612
79613         * lib/safe-read.c (IS_EINTR): Define.
79614         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79615
79616 2002-12-02  Jim Meyering  <jim@meyering.net>
79617
79618         * lib/safe-read.c (EINTR): Define.
79619         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79620         (INT_MAX): Provide fallback.
79621         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79622
79623         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79624
79625 2002-12-02  Bruno Haible  <bruno@clisp.org>
79626
79627         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79628         Define, taken from safe-read.c.
79629         (INT_MAX): Provide fallback.
79630         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79631         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79632
79633         * lib/safe-read.c (EINTR): Remove definition.
79634         (safe_read): Don't use EINTR if it is absent.
79635
79636 2002-12-01  Jim Meyering  <jim@meyering.net>
79637
79638         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79639         zero.
79640         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79641
79642 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79643
79644         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79645         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79646         with `if (! (value < limit)) abort ();', for readability.
79647
79648 2002-11-26  Karl Berry  <karl@gnu.org>
79649
79650         * lib/strdup.c: copy from libc again, with jim's ok.
79651         * lib/.cppi-disable: re-add strdup.c
79652
79653 2002-11-25  Karl Berry  <karl@gnu.org>
79654
79655         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79656         instead of "strtol.c".
79657
79658 2002-11-25  Karl Berry  <karl@gnu.org>
79659
79660         * config/install-sh: update from automake for variable quoting, $0 in
79661         error msgs, etc.
79662
79663         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79664         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79665         entry.
79666
79667 2002-11-25  Jim Meyering  <jim@meyering.net>
79668
79669         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79670
79671 2002-11-24  Karl Berry  <karl@gnu.org>
79672
79673         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79674         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79675
79676 2002-11-24  Jim Meyering  <jim@meyering.net>
79677
79678         Update from coreutils:
79679
79680         * lib/mktime.c: Merge in changes from libc.
79681
79682         Avoid a link-time failure on some Linux systems.
79683         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79684         (otherwise).
79685         (__mon_yday): Declare with the STATIC attribute.
79686         (__mktime_internal): Likewise.
79687         Based on a report from Greg Schafer.
79688
79689 2002-11-23  Jim Meyering  <jim@meyering.net>
79690
79691         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79692         Use `unsigned', not `int', as type of index.
79693
79694         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79695
79696         * lib/fsusage.c: Remove unneeded parentheses around operands of
79697         `defined'.
79698
79699 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79700
79701         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79702         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79703         so that we can be included first.
79704         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79705         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79706         No need to include stddef.h or sys/types.h any more.
79707         Surround local include files with "", not "<>".
79708         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79709         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79710         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79711         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79712         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79713         (ISPRINT): Remove; no longer needed now that we assume C89.
79714
79715         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79716         Preserve errno.
79717
79718         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79719         quotearg_char): Use SIZE_MAX rather than
79720         (size_t) -1 when we are talking about "infinity".
79721
79722         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79723
79724 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79725
79726         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79727         hint that one should use `if (! x) abort ();' rather than `assert
79728         (x);', and anyway it's one less thing to worry about configuring.
79729         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79730         hash_rehash, hash_insert): Use abort rather than assert.
79731
79732 2002-11-22  Bruno Haible  <bruno@clisp.org>
79733
79734         * lib/safe-read.h: Assume C89. Add comments.
79735         (safe_read): Change return type to size_t.
79736         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79737         byte counts > SSIZE_MAX correctly.
79738         * lib/safe-write.h: New file.
79739         * lib/safe-write.c: New file.
79740         * lib/full-read.h: New file.
79741         * lib/full-read.c: New file.
79742         * lib/full-write.h: Assume C89. Add comments.
79743         * lib/full-write.c: Include safe-write.h.
79744         (full_write): Rewritten to use safe_write.
79745         Suggested by Jim Meyering and Paul Eggert.
79746
79747 2002-11-21  Jim Meyering  <jim@meyering.net>
79748
79749         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79750
79751         Merge in changes from the coreutils.
79752
79753         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79754         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79755         <stdint.h>.
79756         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79757         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79758         int.  Work more efficiently if X is the same width as uintmax_t.
79759         Do not compare X to -1, to avoid bogus compiler warning.
79760         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79761         Don't assume that f_frsize and f_bsize are the same type.
79762
79763         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79764         warning on FreeBSD.
79765
79766         * lib/makepath.c (make_path): Restore umask *before* creating the final
79767         component.
79768         (make_path): Minor reformatting.
79769
79770         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79771         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79772         HAVE_MALLOC/HAVE_REALLOC.
79773
79774         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79775         dummy ones.  At least on GNU/Linux systems, `auto' means something
79776         else.
79777         From Michael Stone.
79778
79779 2002-11-21  Bruno Haible  <bruno@clisp.org>
79780
79781         Remove case insensitive option matching.
79782         * lib/argmatch.h (argcasematch): Remove declaration.
79783         (ARGCASEMATCH): Remove macro.
79784         (__xargmatch_internal): Remove case_sensitive argument.
79785         (XARGMATCH): Update.
79786         (XARGCASEMATCH): Remove macro.
79787         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
79788         case_sensitive argument.
79789         (argcasematch): Remove function.
79790         (__xargmatch_internal): Remove case_sensitive argument.
79791         (main): Use XARGMATCH instead of XARGCASEMATCH.
79792
79793         * lib/xmalloc.c: Change compile-time error message. Add comment about
79794         required autoconf version.
79795
79796 2002-11-20  Paul Eggert  <eggert@twinsun.com>
79797
79798         Merge argmatch cleanups from Bison.  Assume C89.
79799
79800         * lib/argmatch.c: Include config.h here, not in argmatch.h.
79801         Include stdlib.h, for EXIT_FAILURE.
79802         Always include <string.h>, since we assume C89.
79803         (EXIT_FAILURE): Remove pre-C89 bug workaround.
79804         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
79805         Include <stddef.h> instead, since it's all we need for size_t.
79806         (PARAMS): Remove.  All uses removed.
79807         (ARRAY_CARDINALITY): Do not bother to #undef.
79808         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
79809         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79810         Remove unnecessary parentheses.
79811         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79812         Insert necessary parentheses.
79813         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
79814         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
79815
79816 2002-11-19  Bruno Haible  <bruno@clisp.org>
79817
79818         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
79819         * lib/mbswidth.h: Include <stddef.h>, for size_t.
79820
79821         * lib/mbswidth.h (PARAMS): Remove macro.
79822         (mbswidth, mbsnwidth): Use ANSI C function declarations.
79823         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
79824
79825         * lib/gcd.h (PARAMS): Remove macro.
79826         (gcd): Use ANSI C function declarations.
79827         * lib/gcd.c (gcd): Likewise.
79828
79829 2002-11-15  Bruno Haible  <bruno@clisp.org>
79830
79831         * lib/strcspn.c: Include <stddef.h>.
79832         (strcspn): Use ANSI C function declaration. Change return type to
79833         size_t. Use NULL.
79834         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
79835         (strpbrk): Use NULL.
79836         * lib/strpbrk.h (PARAMS): Remove macro.
79837         (strpbrk): Use ANSI C function declaration.
79838         * lib/strstr.c: Don't include <sys/types.h>.
79839         * lib/strstr.h (PARAMS): Remove macro.
79840         (strstr): Use ANSI C function declarations.
79841
79842 2002-11-14  Karl Berry  <karl@gnu.org>
79843
79844         * config/mkinstalldirs: `do' on separate line, instead of
79845         `for var; do'.
79846
79847 2002-11-06  Bruno Haible  <bruno@clisp.org>
79848
79849         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
79850         * lib/gcd.c (gcd): Likewise.
79851
79852 2002-11-05  Bruno Haible  <bruno@clisp.org>
79853
79854         * lib/gcd.h: New file, from gettext-0.11.5.
79855         * lib/gcd.c: New file, from gettext-0.11.5.
79856
79857 2002-11-05  Bruno Haible  <bruno@clisp.org>
79858
79859         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79860         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79861         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79862         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79863
79864         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
79865         <libintl.h>.
79866         * lib/makepath.c: Include gettext.h instead of <locale.h> and
79867         <libintl.h>.
79868
79869         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
79870         * lib/human.c: Include gettext.h instead of <libintl.h>.
79871         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
79872         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
79873         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
79874         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
79875         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
79876         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
79877         (textdomain): Remove definition.
79878         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
79879
79880         * lib/long-options.c: Remove include of <libintl.h> and definition of
79881         _.
79882         * lib/same.c: Remove include of <libintl.h> and definition of _.
79883
79884 2002-11-04  Owen Taylor  <otaylor@redhat.com>
79885
79886         * lib/config.charset: A few additions for Solaris.
79887
79888 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79889
79890         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
79891         * lib/localcharset.c (locale_charset): Declare as extern "C".
79892
79893 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79894
79895         * lib/config.charset: msdos in uk_UA uses CP1125.
79896
79897 2002-11-04  Bruno Haible  <bruno@clisp.org>
79898
79899         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
79900         * lib/strcase.h: New file, from GNU gettext-0.11.5.
79901         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
79902         * lib/strstr.h: New file, from GNU gettext-0.11.5.
79903         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
79904
79905 2002-11-04  Bruno Haible  <bruno@clisp.org>
79906
79907         * lib/localcharset.c (locale_charset): Don't return an empty string.
79908
79909 2002-11-04  Bruno Haible  <bruno@clisp.org>
79910
79911         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
79912         aliases.
79913
79914 2002-11-04  Bruno Haible  <bruno@clisp.org>
79915
79916         * lib/config.charset: Update for newest glibc. Add canonical names
79917         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
79918
79919 2002-11-04  Bruno Haible  <bruno@clisp.org>
79920
79921         * lib/config.charset: Add support for NetBSD.
79922
79923 2002-11-04  Bruno Haible  <bruno@clisp.org>
79924
79925         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
79926
79927 2002-11-01  Bruno Haible  <bruno@clisp.org>
79928
79929         * configure.in: Add AC_CONFIG_AUX_DIR call.
79930         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
79931         test/Makefile.
79932         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
79933
79934 2002-09-28  Karl Berry  <karl@gnu.org>
79935
79936         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
79937         installed automake until the next release, since changes have been
79938         made.
79939
79940 2002-09-25  Karl Berry  <karl@gnu.org>
79941
79942         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
79943         * lib/getopt*: copy from libc/posix.
79944         * lib/gettext.h: copy from gettext.
79945         * lib/.cppi-disable: add strdup.c, gettext.h.
79946
79947 2002-09-25  Karl Berry  <karl@gnu.org>
79948
79949         * config/srclist.txt: enable gettext.h check.
79950         * config/config.{guess,sub}: update from prep.
79951         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
79952                 from automake 1.6.3.
79953         See srclist*.
79954
79955 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
79956
79957         * regex.c (PATFETCH): Remove the translating fetch.
79958         (PATFETCH_RAW): Rename to PATFETCH.
79959         (set_image_of_range): New fun.
79960         (SET_RANGE_TABLE_WORK_AREA): Use it.
79961         (regex_compile): Don't translate the pattern chars so eagerly.
79962         Only do it when inserting an `exactn' bytecode or when handling
79963         a char-range.
79964         (mutually_exclusive_p): Avoid empty statement.
79965
79966 2002-07-06  Jim Meyering  <meyering@lucent.com>
79967
79968         * m4/README: Don't mention Makefile.am.in.
79969         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
79970
79971 2002-07-01  Jim Meyering  <meyering@lucent.com>
79972
79973         * lib/c-stack.c: Include sys/time.h.
79974         From Volker Borchert.
79975
79976 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79977
79978         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
79979
79980 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79981
79982         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
79983         New macro.  Use it uniformly instead of
79984         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
79985         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
79986         reported by Vin Shelton.
79987
79988 2002-06-22  Paul Eggert  <eggert@twinsun.com>
79989
79990         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
79991         Do not assume SA_SIGINFO behavior.
79992         Bug reported by Jim Meyering on NetBSD 1.5.2.
79993
79994 2002-06-22  Jim Meyering  <meyering@lucent.com>
79995
79996         * m4/c-stack.m4: New file, from diffutils-2.8.2.
79997         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
79998
79999         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
80000         now that configure.ac uses AC_GNU_SOURCE.
80001         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
80002         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
80003
80004         Update to latest tools.  Suggestions from Paul Eggert.
80005         * m4/stdbool.m4: New file, from diffutils-2.8.2.
80006         * m4/gnu-source.m4: Update from diffutils-2.8.2.
80007         * m4/fnmatch.m4: Likewise.
80008         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
80009         to AC_HEADER_STDBOOL
80010
80011 2002-06-22  Jim Meyering  <meyering@lucent.com>
80012
80013         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
80014         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
80015
80016 2002-06-22  Jim Meyering  <meyering@lucent.com>
80017
80018         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
80019
80020         * lib/exitfail.c, exitfail.h: Likewise.
80021         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
80022
80023         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80024         of fnmatch.h.
80025         (EXTRA_DIST): Add fnmatch_loop.c.
80026         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80027
80028         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80029         * lib/fnmatch.c: Update from diffutils-2.8.2.
80030         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
80031         * lib/fnmatch.h: Remove file.
80032
80033 2002-06-21  Jim Meyering  <meyering@lucent.com>
80034
80035         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
80036         * m4/mbrtowc.m4: Likewise.
80037
80038         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
80039         * m4/mbswidth.m4: Reflect name change:
80040         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
80041         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80042
80043         * m4/lib-link.m4: Update from gettext-0.11.2.
80044         * m4/gettext.m4: Likewise.
80045
80046         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
80047         From Alfred M. Szmidt.
80048
80049 2002-06-18  Paul Eggert  <eggert@twinsun.com>
80050
80051         * lib/file-type.h: Report an error if neither S_ISREG nor
80052         S_IFREG is defined, instead of using a test specific to glibc
80053         2.2.  This should be safe, since POSIX requires S_ISREG and
80054         Unix Version 7 had S_IFREG.  We don't need to check for
80055         <sys/types.h> since we don't use any symbols that it defines.
80056
80057 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
80058
80059         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
80060         $@-t, so that each temporary file name is unique and valid in the first
80061         8 characters, for operation under DOS.
80062
80063 2002-06-15  Paul Eggert  <eggert@twinsun.com>
80064
80065         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
80066
80067 2002-06-15  Jim Meyering  <meyering@lucent.com>
80068
80069         Work even with DJGPP 2.03, which lacks support for symlinks.
80070         From Richard Dawe.
80071         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
80072         is defined.
80073         * lib/lchown.c (S_ISLNK): Likewise.
80074
80075 2002-06-15  Jim Meyering  <meyering@lucent.com>
80076
80077         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
80078         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
80079         have been included before this file.
80080
80081 2002-06-14  Jim Meyering  <meyering@lucent.com>
80082
80083         * lib/file-type.h: Use the version from diffutils-2.8.2.
80084         * lib/file-type.c: Likewise.
80085
80086 2002-06-07  Jim Meyering  <meyering@lucent.com>
80087
80088         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
80089         They're needed at least for NetBSD 1.5.2.
80090         ($statxfs_includes): Include those same headers.
80091         ($statxfs_includes): Include sys/vfs.h if available.
80092         ($statxfs_includes): Likewise for sys/statvfs.h.
80093         Check for the following members in both structs statfs and statvfs:
80094         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
80095
80096 2002-06-01  Jim Meyering  <meyering@lucent.com>
80097
80098         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
80099         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
80100
80101 2002-05-28  Jim Meyering  <meyering@lucent.com>
80102
80103         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
80104         Reported by Volker Borchert.
80105
80106 2002-05-27  Jim Meyering  <meyering@lucent.com>
80107
80108         Fix a problem seen only on nonconforming systems whereby ls.c's
80109         use of localtime, and then of gettimeofday would cause trouble:
80110         the localtime call used to initialize rpl_gettimeofday's save
80111         mechanism would clobber ls's current local time information so
80112         that in any long listing the first file would always be listed
80113         with date 1970-01-01.  Analysis by Volker Borchert.
80114
80115         * lib/gettimeofday.c (localtime): Undefine.
80116         (rpl_localtime): New function.
80117
80118 2002-05-27  Jim Meyering  <meyering@lucent.com>
80119
80120         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
80121         localtime.
80122
80123         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
80124         use the replacement function; it wouldn't resolve at link time.
80125         Reported by Volker Borchert.
80126
80127 2002-05-22  Jim Meyering  <meyering@lucent.com>
80128
80129         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
80130         file-type.h.
80131         * lib/file-type.h: New file.
80132         * lib/file-type.c (file_type): New file/function.  Extracted from
80133         diffutils.
80134
80135 2002-04-30  Jim Meyering  <meyering@lucent.com>
80136
80137         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
80138
80139 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80140
80141         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
80142
80143 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80144
80145         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
80146         Do not check for alloca.h (no longer used) or stdbool.h (was never
80147         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
80148
80149 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80150
80151         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
80152
80153 2002-04-29  Jim Meyering  <meyering@lucent.com>
80154
80155         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
80156         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
80157         Use AC_FUNC_STRNLEN here instead.
80158
80159         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
80160         With autoconf-2.53a, it's part of AC_PROG_CC.
80161
80162 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80163
80164         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
80165         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
80166
80167 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80168
80169         * lib/sig2str.h, lib/sig2str.c: New files.
80170         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
80171
80172 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80173
80174         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
80175         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
80176         of 127, since 64 is the largest conceivable number for ancient
80177         nonstandard hosts.
80178         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
80179
80180 2002-04-28  Jim Meyering  <meyering@lucent.com>
80181
80182         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
80183
80184 2002-04-24  Jim Meyering  <meyering@lucent.com>
80185
80186         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
80187         (jm_PREREQ): Use it.
80188
80189         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
80190         mach/mach.h fcntl.h.
80191         Check for this function: setlocale.
80192
80193 2002-04-24  Jim Meyering  <meyering@lucent.com>
80194
80195         * lib/gettext.h: New file, from Gettext.
80196         * lib/Makefile.am (INCLUDES): Remove -I../intl.
80197         (libfetish_a_SOURCES): Add gettext.h.
80198
80199 2002-04-16  Jim Meyering  <meyering@lucent.com>
80200
80201         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
80202         ut_pid, ut_id, ut_exit.
80203
80204 2002-04-16  Jim Meyering  <meyering@lucent.com>
80205
80206         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80207         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80208         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80209
80210 2002-04-12  Jim Meyering  <meyering@lucent.com>
80211
80212         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80213         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80214         existence of the getmntinfo function.  Needed for Darwin 5.3.
80215
80216         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80217         This is necessary at least on Darwin 5.3.
80218
80219         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80220         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80221         strnlen.o in the library, and that makes some versions of ranlib
80222         object.
80223
80224 2002-04-12  Jim Meyering  <meyering@lucent.com>
80225
80226         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80227
80228 2002-04-09  Jim Meyering  <meyering@lucent.com>
80229
80230         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80231         to be more precise.  Rather than saying we're checking whether the
80232         function `works', say what we're testing.
80233         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80234         Reported by Bruno Haible.
80235
80236 2002-03-10  Jim Meyering  <meyering@lucent.com>
80237
80238         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80239         Suggestion from Santiago Vila.
80240
80241 2002-03-08  Jim Meyering  <meyering@lucent.com>
80242
80243         * lib/rename.c: Mention that this wrapper is needed also on
80244         mips-dec-ultrix4.4 systems.
80245
80246 2002-03-02  Jim Meyering  <meyering@lucent.com>
80247
80248         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80249         not HAVE_CLOCK_SETTIME.
80250
80251 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80252
80253         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80254         Check for clock_settime.
80255
80256 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80257
80258         * lib/nanosleep.h: Rename to....
80259         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80260
80261         * lib/gettime.c: New file.
80262         * lib/settime.c: New file.
80263         * lib/stime.c: Remove.
80264
80265         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80266         timespec.h.  Remove nanosleep.h.
80267
80268 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80269
80270         * m4/acl.m4: New file.
80271         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80272         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80273
80274 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80275
80276         * lib/acl.c, lib/acl.h: New files.
80277         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80278
80279 2002-02-24  Jim Meyering  <meyering@lucent.com>
80280
80281         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80282         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80283         cause trouble.  Reported by Nelson Beebe.
80284
80285 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80286
80287         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80288         compilers that don't know that xalloc_die never returns.
80289
80290 2002-02-20  Jim Meyering  <meyering@lucent.com>
80291
80292         * lib/getdate.c: Regenerate using bison-1.33.
80293
80294 2002-02-17  Jim Meyering  <meyering@lucent.com>
80295
80296         * config/config.guess (main): Don't use `head -1'; it's no longer
80297         portable. Use `sed 1q' instead.
80298
80299 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80300
80301         * m4/codeset.m4: Upgrade to gettext-0.11.
80302         * m4/gettext.m4: Upgrade to gettext-0.11.
80303         * m4/glibc21.m4: Upgrade to gettext-0.11.
80304         * m4/iconv.m4: Upgrade to gettext-0.11.
80305         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80306         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80307         * m4/lib-ld.m4: New file, from gettext-0.11.
80308         * m4/lib-link.m4: New file, from gettext-0.11.
80309         * m4/lib-prefix.m4: New file, from gettext-0.11.
80310         * m4/progtest.m4: Upgrade to gettext-0.11.
80311
80312 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80313
80314         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80315         (jm_PREREQ): Use it.
80316
80317 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80318
80319         * lib/posixver.c, lib/posixver.h: New files.
80320         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80321
80322 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80323             Bruno Haible  <bruno@clisp.org>
80324
80325         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80326         (fwrite_success_callback): New declaration.
80327         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80328         print_unicode_char. Call failure callback instead of error.
80329         (fwrite_success_callback): New function.
80330         (exit_failure_callback): New function.
80331         (fallback_failure_callback): New function.
80332         (print_unicode_char): Call unicode_to_mb.
80333
80334 2002-01-26  Jim Meyering  <meyering@lucent.com>
80335
80336         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80337         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80338
80339 2002-01-26  Jim Meyering  <meyering@lucent.com>
80340
80341         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80342
80343 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80344
80345         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80346
80347 2002-01-22  Jim Meyering  <meyering@lucent.com>
80348
80349         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80350         Otherwise, some versions of automake would omit the rule that makes
80351         Makefile from Makefile.in.
80352
80353 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80354
80355         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80356         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80357         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80358         (memcoll): Set errno to zero if there is no error.
80359
80360         * lib/quotearg.c (quotearg_buffer_restyled):
80361         Fix bug with quoting buffers containing NUL when backslashing escapes.
80362         This bug was exposed by the other changes in this patch.
80363         (quotearg_n_options): New arg ARGSIZE.
80364         All callers changed.
80365         (quoting_options_from_style): New function.
80366         (quotearg_n_style): Use it.
80367         (quotearg_n_style_mem): New function.
80368
80369         * lib/quotearg.h (quotearg_n_style_mem): New function.
80370
80371 2002-01-19  Jim Meyering  <meyering@lucent.com>
80372
80373         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80374         Remove useless quotes: DF_PROG="df".
80375         * m4/strnlen.m4: New file.
80376
80377 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80378
80379         * lib/backupfile.c (ISDIGIT): Comment fix.
80380         * lib/getdate.y (ISDIGIT): Likewise.
80381         * lib/posixtm.c (ISDIGIT, year): Likewise.
80382         * lib/strverscmp.c (ISDIGIT): Likewise.
80383         * lib/userspec.c (ISDIGIT): Likewise.
80384
80385 2002-01-16  Jim Meyering  <meyering@lucent.com>
80386
80387         * lib/getdate.y: Add three semicolons, each just before a closing
80388         brace. Bison (as of version 1.31) no longer papers over that mistake.
80389
80390 2002-01-05  Jim Meyering  <meyering@lucent.com>
80391
80392         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80393
80394 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80395
80396         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80397         not silently exit merely because the output buffer happens to
80398         have nothing pending.
80399
80400 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80401
80402         See the big note in ../ChangeLog.
80403         * lib/human.c (suffixes): Prefer K to k for 1024.
80404         (generate_suffix_backwards): New function.
80405         (human_readable_inexact): Use it.
80406         * lib/xstrtol.c (__xstrtol): If there is no number but there
80407         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80408         Accept 'K' as well as 'k'.
80409
80410 2001-12-15  Jim Meyering  <meyering@lucent.com>
80411
80412         * lib/regex.h (__restrict_arr): Update from libc.
80413
80414         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80415         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80416         (STREQ): Define.
80417
80418 2001-12-14  Jim Meyering  <meyering@lucent.com>
80419
80420         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80421         Suggestion from Bruno Haible.
80422
80423 2001-12-10  Jim Meyering  <meyering@lucent.com>
80424
80425         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80426         xrealloc, Instead, include "xalloc.h".
80427         (initbuffer): Don't cast xmalloc return value to char*.
80428         (readline): Reword comment.
80429         Don't cast xrealloc return value to char*
80430         Return NULL, not 0.
80431
80432 2001-12-09  Jim Meyering  <meyering@lucent.com>
80433
80434         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80435         about `signed and unsigned type in conditional expression'.
80436         * lib/posixtm.c (posix_time_parse): Likewise.
80437
80438         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80439
80440         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80441         to avoid a pedantic warning.
80442
80443         * lib/getstr.c: Don't include assert.h.
80444         (getstr): Remove warning-evoking assertions.
80445         Return -1 if offset parameter is out of bounds.
80446         Change the type of a local from int to size_t.
80447
80448         * lib/strftime.c (my_strftime_localtime_r): Include this function
80449         definition in the `#if ! HAVE_TM_GMTOFF' block.
80450
80451         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80452         Include xalloc.h instead.
80453
80454 2001-12-02  Jim Meyering  <meyering@lucent.com>
80455
80456         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80457         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80458         included.
80459
80460         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80461         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80462
80463 2001-11-30  Akim Demaille  <akim@epita.fr>
80464
80465         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80466         before being defined.
80467
80468 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80469
80470         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80471         First arg is int, not unsigned.
80472         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80473         (SIZE_MAX, UINT_MAX): New macros.
80474         (quotearg_n_options): Abort if N is negative.
80475         Avoid overflow check on hosts where size_t is 64 bits and int
80476         is 32 bits, as overflow is impossible there.
80477         Fix off-by-one typo that caused unnecessary reallocation.
80478
80479 2001-11-27  Jim Meyering  <meyering@lucent.com>
80480
80481         * lib/tempname.c: Merge with version from libc.
80482         * lib/regex.c: Likewise.
80483
80484         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80485         systems for which STDC_HEADERS is 0, it was not included, resulting in
80486         a warning about an integer-to-pointer conversion problem with getenv.
80487         Reported by Volker Borchert.
80488
80489 2001-11-26  Jim Meyering  <meyering@lucent.com>
80490
80491         * lib/gtod.h: Remove file.
80492         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80493         * lib/gettimeofday.c: Don't include gtod.h.
80494         (GTOD_init): Remove function.
80495         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80496         Suggestion from Volker Borchert.
80497
80498 2001-11-23  Jim Meyering  <meyering@lucent.com>
80499
80500         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80501         it.
80502         * lib/hash.c (struct hash_table): Define it here instead.
80503
80504 2001-11-22  Jim Meyering  <meyering@lucent.com>
80505
80506         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80507
80508 2001-11-20  Jim Meyering  <meyering@lucent.com>
80509
80510         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80511         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80512
80513 2001-11-19  Jim Meyering  <meyering@lucent.com>
80514
80515         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80516         directory.  Use "conftestXXXXXX" as the template.
80517         Suggestion from Paul Eggert.
80518
80519         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80520         immediately, so the test doesn't mistakenly hit the max-open-files
80521         limit.
80522
80523 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80524
80525         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80526         (TEMPORARIES): New macro.
80527         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80528         removes an artificial limitation (e.g. HP-UX 10.20, where
80529         TMP_MAX is 17576).
80530
80531 2001-11-18  Jim Meyering  <meyering@lucent.com>
80532
80533         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80534
80535 2001-11-18  Jim Meyering  <meyering@lucent.com>
80536
80537         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80538         on SunOS 4.
80539
80540         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80541         files will be created before anything else.
80542
80543 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80544
80545         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80546         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80547
80548 2001-11-17  Jim Meyering  <meyering@lucent.com>
80549
80550         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80551         Prompted by a report from Bob Proulx.
80552
80553         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80554         Instead, require UTILS_FUNC_MKSTEMP.
80555
80556 2001-11-17  Jim Meyering  <meyering@lucent.com>
80557
80558         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80559         Now, that's done as part of AC_FUNC_STRTOD.
80560
80561 2001-11-17  Jim Meyering  <meyering@lucent.com>
80562
80563         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80564         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80565         rather than group writable.  Patch by Juan F. Codagnone.
80566
80567         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80568         xrealloc, Instead, include "xalloc.h".
80569
80570         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80571         Remove explicit declarations of xmalloc, xrealloc,
80572         and xstrdup.  Instead, include "xalloc.h".
80573
80574         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80575         unlocked-io.h.
80576         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80577         Likewise.
80578         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80579
80580         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80581         Reported by Padraig Brady.
80582
80583         * lib/mkstemp.c: #undef mkstemp.
80584         Include config.h.
80585         (rpl_mkstemp): Rename from mkstemp.
80586         Protoize.
80587
80588 2001-11-16  Jim Meyering  <meyering@lucent.com>
80589
80590         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80591         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80592         determine the amount of total physical memory, use pstat_getstatic.
80593         HPUX-11 doesn't define _SC_PHYS_PAGES.
80594         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80595         If sysconf couldn't be used to determine the amount of available
80596         physical memory, use both pstat_getstatic and pstat_getdynamic.
80597         Based on a patch from Bob Proulx.
80598
80599 2001-11-10  Jim Meyering  <meyering@lucent.com>
80600
80601         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80602         (jm_PREREQ): Use it.
80603
80604 2001-11-09  Jim Meyering  <meyering@lucent.com>
80605
80606         * m4/jm-macros.m4: Require autoconf-2.52f.
80607         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80608         Use these AC_-prefixed names, not the AM_-prefixed ones.
80609
80610         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80611
80612 2001-11-05  Jim Meyering  <meyering@lucent.com>
80613
80614         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80615
80616 2001-11-04  Jim Meyering  <meyering@lucent.com>
80617
80618         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80619         $DEFS.
80620
80621 2001-11-03  Jim Meyering  <meyering@lucent.com>
80622
80623         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80624         of AC_DEFUN.
80625
80626         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80627         know the name of the variable in the macro definition.
80628
80629 2001-11-03  Jim Meyering  <meyering@lucent.com>
80630
80631         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80632         in argmatch_to_argument call.
80633
80634         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80635         argument.
80636
80637         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80638         e.g., a fault due to an attempt to free a NULL pointer.
80639
80640 2001-11-01  Jim Meyering  <meyering@lucent.com>
80641
80642         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80643         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80644
80645 2001-11-01  Jim Meyering  <meyering@lucent.com>
80646
80647         * lib/dirfd.c, lib/dirfd.h: New files.
80648         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80649
80650         * lib/hash.c (hash_print) [TESTING]: Clean up.
80651
80652 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80653
80654         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80655         to avoid a warning if -Wall.
80656
80657 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80658
80659         * README: New file
80660         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80661         (per RMS's instructions, this is now the canonical source)
80662         * lgpl/, gpl/: New directories.
80663
80664 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80665
80666         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80667
80668 2001-10-21  Jim Meyering  <meyering@lucent.com>
80669
80670         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80671         this code would end up calling gettext even in packages built
80672         with --disable-nls.
80673         * lib/getopt.c (_): Likewise.
80674         * lib/regex.c (_): Likewise.
80675
80676 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80677
80678         * m4/error.m4 (jm_PREREQ_ERROR):
80679         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80680         AC_FUNC_STRERROR_R does that.
80681         Check for strerror declaration.
80682
80683         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80684         are supposed to have them these days.
80685         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80686         Merge changes from latest Autoconf CVS.
80687         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80688         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80689         POSIX decided to standardize on the int flavor of strerror_r.
80690
80691 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80692
80693         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80694         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80695         Use strerror_r that is only a macro, even if it is not a function.
80696         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80697         (private_strerror): Use prototypes, not old-style function definition.
80698         (print_errno_message): New function.
80699         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80700         char*-flavored one.
80701         (error_tail, error, error_at_line): Use it.
80702
80703 2001-10-11  Jim Meyering  <meyering@lucent.com>
80704
80705         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80706         and quote_n (1, ... to avoid clobbering a buffer.
80707
80708 2001-10-05  Jim Meyering  <meyering@lucent.com>
80709
80710         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80711         hash-pjw.h.
80712         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80713         * lib/hash-pjw.h: New file.
80714
80715 2001-09-30  Jim Meyering  <meyering@lucent.com>
80716
80717         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80718         `struct fsstat' has the `f_fstypename' member.
80719         Use that to define FS_TYPE, which is now used to make
80720         the getfsstat link test tighter.
80721
80722 2001-09-30  Jim Meyering  <meyering@lucent.com>
80723
80724         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80725         Include <sys/ucred.h>, for Apple Darwin.
80726         Include sys/mount.h and sys/fs_types.h only if available.
80727         (FS_TYPE): Define.
80728         (read_filesystem_list): Use FS_TYPE.
80729
80730 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80731
80732         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80733         a boolean context.
80734
80735 2001-09-29  Jim Meyering  <meyering@lucent.com>
80736
80737         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80738         [one-argument getmntent function]): Include stdio.h before mntent.h.
80739         SunOS 4.1.x needs it for the declaration of `FILE'.
80740         Patch by Volker Borchert.
80741
80742         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80743         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80744         sys/fs_types.h, and make the link-test for getfsstat guard #include
80745         directives with appropriate #if HAVE_*_H tests so that we can
80746         detect getfsstat on Apple Darwin1.3.7 systems.
80747         Reported by Nelson Beebe.
80748         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80749
80750 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80751
80752         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80753         #defines strtoimax.  Also treat the other strto* functions
80754         like strtoimax.
80755
80756         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80757         Check for strtoul and strtoumax,
80758         as those declarations are made even in the signed case.
80759         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80760         Likewise, for strtol and strtoimax.
80761
80762 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80763
80764         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80765         #defines strtoimax.  Also treat the other strto* functions
80766         like strtoimax.
80767
80768         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80769         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80770         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80771
80772 2001-09-26  Jim Meyering  <meyering@lucent.com>
80773
80774         Most macros in unlocked-io.h had the wrong number of arguments.
80775         * lib/gen-uio: New script.
80776         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80777         * lib/unlocked-io.hin: Remove file.
80778         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80779         rather than trying to embed it here.
80780         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
80781         Reported by Padraig Brady.
80782
80783 2001-09-25  Volker Borchert  <bt@teknon.de>
80784
80785         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
80786         `result'.
80787
80788 2001-09-24  Jim Meyering  <meyering@lucent.com>
80789
80790         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
80791
80792 2001-09-23  Jim Meyering  <meyering@lucent.com>
80793
80794         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
80795         instead of the mere test for existence of mntent.h.  The latter
80796         would get a false-positive on AIX 3.4 systems.
80797         In the outer getmntent if-block, don't die if neither of the getmntent
80798         tests succeeds.  Instead, just fall through and continue with the
80799         remaining tests.
80800
80801 2001-09-23  Jim Meyering  <meyering@lucent.com>
80802
80803         * lib/mountlist.c: Remove useless parentheses in #if directives.
80804         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
80805         the deprecated MOUNTED symbol is no longer defined in mntent.h.
80806
80807 2001-09-22  Jim Meyering  <meyering@lucent.com>
80808
80809         * m4/gettext.m4: New file.  From gettext.
80810         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
80811         * m4/progtest.m4: Likewise
80812         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
80813         * m4/glibc21.m4: Likewise.
80814
80815         * m4/libintl.m4: Remove.  No longer used.
80816
80817 2001-09-22  Jim Meyering  <meyering@lucent.com>
80818
80819         * lib/localcharset.c: Update from latest gettext.
80820         * lib/config.charset: Likewise.
80821
80822 2001-09-20  Jim Meyering  <meyering@lucent.com>
80823
80824         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
80825         strtoimax.
80826         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
80827         strtoumax.
80828
80829 2001-09-20  Jim Meyering  <meyering@lucent.com>
80830
80831         * lib/xstrtol.c (strtoimax): Guard declaration with
80832         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
80833         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
80834         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
80835         (strtoumax): Likewise, for completeness (it wasn't necessary).
80836
80837 2001-09-17  Paul Eggert  <eggert@twinsun.com>
80838
80839         * lib/strtoimax.c (HAVE_LONG_LONG):
80840         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
80841         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
80842         to work around bug in IBM C compiler.
80843
80844 2001-09-17  Jim Meyering  <meyering@lucent.com>
80845
80846         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
80847         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
80848         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
80849         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
80850         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
80851         whenever the right hand side need not be expanded by the shell.
80852
80853 2001-09-16  Paul Eggert  <eggert@twinsun.com>
80854
80855         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
80856         library.  It's not correct, as some older glibcs are buggy.
80857         fnmatch wasn't fixed until glibc 2.2.
80858
80859         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
80860         special shell magic here.
80861
80862 2001-09-16  Jim Meyering  <meyering@lucent.com>
80863
80864         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
80865         * m4/jm-macros.m4: Require it.
80866
80867 2001-09-16  Jim Meyering  <meyering@lucent.com>
80868
80869         * lib/mkdir.c: New file.
80870
80871 2001-09-15  Jim Meyering  <meyering@lucent.com>
80872
80873         * m4/jm-macros.m4: Check for help2man.
80874
80875 2001-09-11  Jim Meyering  <meyering@lucent.com>
80876
80877         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
80878         The body, by Paul Eggert, was moved here from configure.in.
80879         * m4/jm-macros.m4: Require UTILS_HOST_OS.
80880
80881 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80882
80883         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
80884         (jm_PREREQ): Use it.
80885
80886 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80887
80888         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
80889         Use ssize_t, not int, to store result of readlink.
80890         Check for ssize_t overflow as well as size_t overflow,
80891         as POSIX says the result of readlink is implementation-defined
80892         when ssize_t overflows.
80893         Remove unnecessary cast to char*.
80894         Use free+malloc instead of realloc, as the storage doesn't need
80895         to be preserved and it's clearer and can be more efficient that way.
80896         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
80897         * lib/xreadlink.h (xreadlink): Update prototype.
80898
80899 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80900
80901         * lib/xgetcwd.c: Revert some of the previous change; intead,
80902         fix the HAVE_GETCWD_NULL code to behave more like the
80903         !HAVE_GETCWD_NULL code used to.
80904
80905         Include "xalloc.h".
80906         (xgetcwd): Do not return NULL when memory is exhausted; instead,
80907         invoke xalloc_die.
80908
80909 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80910
80911         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
80912         sys/param.h, as pathmax.h includes them.
80913
80914 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80915
80916         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
80917         (jm_PREREQ_XGETCWD): New macro.
80918
80919         * m4/getcwd.m4: New file.
80920
80921 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80922
80923         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
80924         like the HAVE_GETCWD_NULL code.
80925         Include pathmax.h if not HAVE_GETCWD.
80926         Do not include xalloc.h.
80927         (INITIAL_BUFFER_SIZE): New symbol.
80928         Do not use xmalloc / xrealloc, since the caller is responsible for
80929         handling errors.  Preserve errno around `free' during failure.
80930         Do not overrun buffer when using getwd.
80931
80932 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80933
80934         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
80935         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
80936         getcwd (NULL, 0).
80937
80938 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80939
80940         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
80941         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
80942         spotted by Jim Meyering.
80943
80944 2001-09-03  Jim Meyering  <meyering@lucent.com>
80945
80946         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
80947         failure.
80948
80949 2001-09-02  Jim Meyering  <meyering@lucent.com>
80950
80951         * lib/error.c: Update from GNU libc.
80952
80953 2001-09-01  Jim Meyering  <meyering@lucent.com>
80954
80955         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
80956         Used by df.
80957
80958 2001-09-01  Jim Meyering  <meyering@lucent.com>
80959
80960         * lib/xreadlink.c: New file.
80961         * lib/xreadlink.h: New file.
80962         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
80963         xreadlink.h.
80964
80965         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
80966         doesn't conflict with sparc Solaris 7's definition in
80967         /usr/include/sys/int_types.h.
80968
80969         * lib/exclude.c: Use `""', not `<>' to #include non-system header
80970         files.
80971         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
80972         and strncasecmp as r-values.  Unixware didn't have declarations.
80973
80974 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80975
80976         * lib/xstrtol.h: Add copyright notice.
80977         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
80978         LONGINT_INVALID_SUFFIX_CHAR.
80979
80980 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80981
80982         * lib/xstrtol.c (strtoimax): New decl.
80983
80984 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80985
80986         * lib/xgetcwd.c: Don't include pathmax.h.
80987         Include stdlib.h and unistd.h if available.
80988         Include xalloc.h.
80989         (xmalloc, xstrdup, free): Remove decls.
80990         (xgetcwd): Don't assume sizes fit in unsigned.
80991         Check for overflow when computing sizes.
80992         Simplify reallocation code.
80993
80994 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80995
80996         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
80997         a directory's st_size can have an arbitrary value, so the old
80998         usage could waste an arbitrary amount of memory.  All uses
80999         changed.
81000         * lib/savedir.h: Update prototype.
81001
81002 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81003
81004         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
81005
81006         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
81007         old strtoimax.c.
81008
81009         Also, make the following further changes to make this file's
81010         configuration more similar to that of strtol.c:
81011         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
81012         (strtoumax, uintmax_t, strtoull, strtol): Remove.
81013         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
81014         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
81015         changed to signed values.
81016
81017         And make the following changes as well:
81018         Fix copyright notice, as 1999 was missing.
81019         (verify): New macro.
81020         (strtoimax): Check sizes at compile-time, not run-time.
81021         Prefer strtol to strtoll if both work.
81022         (main): Remove; it was not that useful and was a pain to maintain.
81023
81024         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81025
81026 2001-08-31  Jim Meyering  <meyering@lucent.com>
81027
81028         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81029         Use an initial, malloc'd, buffer of length 128 rather than
81030         a statically allocated one of length 1024.
81031
81032 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81033
81034         Simplify code, partly by assuming autoconf 2.52 semantics.
81035
81036         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
81037
81038         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
81039         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
81040         All uses removed.
81041         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
81042         Move AC_REQUIRE to next-to-top level, to avoid confusion.
81043         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
81044         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
81045         jm_AC_HEADER_INTTYPES_H.
81046         * m4/jm-macros.m4 (jm_MACROS): Likewise.
81047
81048         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
81049
81050         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81051         Quote first arg of AC_DEFUN.
81052         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
81053         since they are needed to parse the include file even if we need
81054         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
81055         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
81056         but with opposite signedness.
81057
81058 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81059
81060         Merge 'exclude' changes from tar 1.13.22.
81061         This fixes one or two unlikely storage allocation overflow bugs,
81062         but doesn't change user-visible behavior otherwise.
81063
81064 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81065
81066         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
81067         (jm_PREREQ_EXCLUDE): New macro.
81068
81069 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81070
81071         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
81072         tm to be declared.
81073
81074 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81075
81076         * lib/hash.c: Remove '2001' from copyright notice.
81077
81078 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81079
81080         * lib/full-write.h: New file.
81081         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
81082         * lib/full-write.c: Correct credits, as cccp.c no longer
81083         exists and anyway it was so heavily changed from the old cccp
81084         code as to be unrecognizable.  Include full-write.h.
81085         (full_write): Return size_t, with short writes meaning failure.
81086         All callers changed.  This fixes a bug with large buffers
81087         on 64-bit hosts.
81088         * lib/utime.c: Include full-write.h.
81089
81090 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81091
81092         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
81093         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
81094         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
81095         Include if available.
81096         (<xalloc.h>): Include
81097         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
81098         (verify): New macro.  Use it to verify that EXCLUDE macros do not
81099         collide with FNM macros.
81100         (struct patopts): New struct.
81101         (struct exclude): Use it, as exclude patterns now come with options.
81102         (new_exclude): Support above changes.
81103         (new_exclude, add_exclude_file):
81104         Initial size must now be a power of two to simplify overflow checking.
81105         (free_exclude, fnmatch_no_wildcards): New function.
81106         (excluded_filename): No longer requires options arg, as the options
81107         are determined by add_exclude.  Now returns bool, not int.
81108         (excluded_filename, add_exclude):
81109         Add support for the fancy new exclusion options.
81110         (add_exclude, add_exclude_file): Now takes int options arg.
81111         Check for arithmetic overflow when computing sizes.
81112         (add_exclude_file): xrealloc might modify errno, so don't
81113         realloc until after errno might be used.
81114
81115         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
81116         New macros.
81117         (free_exclude): New decl.
81118         (add_exclude, add_exclude_file): Now takes int options arg.
81119         (excluded_filename): No longer requires options arg, as the options
81120         are determined by add_exclude.  Now returns bool, not int.
81121
81122 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81123
81124         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
81125
81126 2001-08-27  Jim Meyering  <meyering@lucent.com>
81127
81128         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
81129
81130         * lib/version-etc.c (N_): Remove definition.
81131         Revert most of last change.
81132         Instead, simply don't mark the `Copyright...' string for translation.
81133         Based on advice from Paul Eggert.
81134
81135         * lib/strtoxmax.c: Tweak comment.
81136
81137 2001-08-26  Jim Meyering  <meyering@lucent.com>
81138
81139         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
81140
81141         * m4/xstrtoimax.m4: New file.
81142         * m4/xstrtoumax.m4: Add comments explaining why we
81143         AC_REPLACE_FUNCS(strtol).
81144
81145 2001-08-26  Jim Meyering  <meyering@lucent.com>
81146
81147         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
81148         of copyright with `%s' so translators don't get an untranslated
81149         message in 2002.
81150         (COPYRIGHT_YEAR): Define.
81151         (version_etc): Use fprintf rather than fputs.
81152         Suggestion from Ulrich Drepper.
81153
81154         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
81155
81156         * lib/strtoll.c: New file, from GNU libc.
81157         * lib/xstrtoimax.c: New file.
81158
81159         * lib/xstrtol.h: Add xstrtoimax.
81160         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
81161         * lib/strtoimax.c: New file.  Likewise, but first define
81162         STRTOUXMAX_SIGNED.
81163
81164         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
81165         ...
81166         * lib/strtoxmax.c: ... then renamed to this.
81167
81168 2001-08-18  Paul Eggert  <eggert@twinsun.com>
81169
81170         * m4/inttypes.m4: Add AC_PREREQ(2.13).
81171         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
81172         (jm_AC_TYPE_INTMAX_T): New macro.
81173         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
81174
81175         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
81176
81177         * m4/longlong.m4: Renamed from ulonglong.m4.
81178         * m4/inttypes.m4: Renamed from inttypes_h.m4.
81179         * m4/uintmax_t.m4: Removed.
81180
81181 2001-08-13  Paul Eggert  <eggert@twinsun.com>
81182
81183         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
81184         Port to Solaris 8, where 'sed' requires a space after the 'r'
81185         command, and where sh dislikes "$/".  Clean up the spacing a bit.
81186         Redirect output to $tmp just once.
81187
81188 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
81189
81190         * lib/addext.c (<errno.h>): Include.
81191         (errno): Declare if not defined.
81192         (addext): Work correctly when pathconf returns -1 and leaves
81193         errno alone because there is no limit.  Also, work even if
81194         pathconf returns a value greater than SIZE_MAX.
81195
81196 2001-08-12  Jim Meyering  <meyering@lucent.com>
81197
81198         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
81199         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
81200         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
81201         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
81202         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
81203         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
81204         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
81205         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
81206         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81207         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81208         utime.m4, utimes.m4, xstrtoumax.m4:
81209         Quote the first argument in each use of AC_DEFUN.
81210
81211 2001-08-12  Jim Meyering  <meyering@lucent.com>
81212
81213         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81214         Simply `return getcwd (NULL, 0);'.
81215         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81216         Use 1300 as initial value for length, not PATH_MAX.
81217
81218         * lib/pathmax.h: Clean up cpp syntax.
81219
81220 2001-08-12  Jim Meyering  <meyering@lucent.com>
81221
81222         * lib/gettimeofday.c: New file.
81223         * lib/gtod.h: New file.
81224         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81225
81226 2001-08-05  Jim Meyering  <meyering@lucent.com>
81227
81228         * m4/jm-macros.m4: Require autoconf-2.52.
81229
81230 2001-08-04  Jim Meyering  <meyering@lucent.com>
81231
81232         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81233         stmt, to get in sync with glibc.
81234
81235 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81236
81237         The following changes are from gettext 0.10.39 as maintained by
81238         Bruno Haible.
81239
81240         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81241         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81242         with inverted sense.  All uses changed.
81243
81244         * lib/mbswidth.c: Don't include <limits.h>.
81245         Include <stdlib.h> and <string.h> unconditionally.
81246         (iswcntrl, mbsinit, ISCNTRL): New macros.
81247         (mbsnwidth): Use K&R style function declarations.
81248         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81249         can optimize it when MB_CUR_MAX == 1.
81250         The width of control characters is zero, not 1.
81251
81252 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81253
81254         The following changes are from gettext 0.10.39 as maintained by
81255         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81256
81257         * m4/codeset.m4: Upgrade to serial AM1.
81258         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81259         all uses changed.  Quote first arg of AC_DEFUN.
81260         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81261
81262         * m4/iconv.m4: Upgrade to serial AM2.
81263         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81264         Add --with-libconv-prefix.
81265         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81266         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81267         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81268         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81269         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81270
81271         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81272         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81273         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81274         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81275         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81276         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81277         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81278         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81279         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81280
81281         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81282         string.h any more.
81283
81284         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81285         not the default value.
81286
81287         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81288         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81289         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81290         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81291         Also check for iswcntrl, used for wcwidth fallback.
81292         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81293         to Autoconf 2.13.
81294
81295 2001-08-03  Jim Meyering  <meyering@lucent.com>
81296
81297         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81298         as it was in the original.  Reported by Paul Eggert.
81299
81300 2001-07-16  Jim Meyering  <meyering@lucent.com>
81301
81302         * m4/gettimeofday.m4: New file.
81303         Prompted by a report from Bernhard Baehr.
81304
81305 2001-07-15  Jim Meyering  <meyering@lucent.com>
81306
81307         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81308         stuff. Now it's in ../Makefile.cfg.
81309
81310 2001-07-15  Jim Meyering  <meyering@lucent.com>
81311
81312         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81313         (BUILT_SOURCES): Add unlocked-io.h.
81314         (io_functions): Define.
81315         (unlocked-io.h): New rule.
81316         (DISTCLEANFILES): Add unlocked-io.h.
81317         (all-local): Depend on unlocked-io.h, to ensure it is created.
81318
81319         * lib/unlocked-io.hin: New file
81320
81321         * lib/regex.c: Update from glibc.
81322
81323 2001-07-05  Jim Meyering  <meyering@lucent.com>
81324
81325         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81326         recommendation.
81327         (libfetish_a_SOURCES): Put all .h files here instead.
81328         Remove a thus-exposed (better checks in automake) duplicate and
81329         two unnecessary .h files.
81330
81331 2001-07-04  Jim Meyering  <meyering@lucent.com>
81332
81333         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81334         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81335         distcheck failure.
81336
81337 2001-07-02  Jim Meyering  <meyering@lucent.com>
81338
81339         The following changes were prompted by suggestions from Bruno Haible.
81340
81341         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81342         is now generated.
81343         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81344         definition of EXTRA_DIST.
81345         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81346         ensure that the generated file is created/updated whenever the list
81347         of $(unlocked_functions) is changed.
81348         (jm-glibc-io.m4): New rule.
81349         (unlocked-io.h): New rule -- currently unused.
81350
81351 2001-06-24  Jim Meyering  <meyering@lucent.com>
81352
81353         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81354         unmatched right bracket, rather than kludging it with an extra,
81355         falsely-matching quote in a comment.  Patch by Akim Demaille.
81356
81357 2001-06-11  Jim Meyering  <meyering@lucent.com>
81358
81359         * lib/regex.c: Update from GNU libc.
81360
81361 2001-05-27  Jim Meyering  <meyering@lucent.com>
81362
81363         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81364         Check for ut_type in struct utmp.
81365
81366 2001-05-27  Jim Meyering  <meyering@lucent.com>
81367
81368         * lib/readutmp.h (UT_TYPE): Define.
81369
81370 2001-05-24  Jim Meyering  <meyering@lucent.com>
81371
81372         * lib/argmatch.c: Include "quote.h".
81373         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81374         quote function.  Reported by Göran Uddeborg.
81375
81376 2001-05-22  Jim Meyering  <meyering@lucent.com>
81377
81378         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81379         now that we use the package-supplied version unconditionally.
81380         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81381
81382 2001-05-21  Jim Meyering  <meyering@lucent.com>
81383
81384         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81385         shell syntax errors.
81386
81387 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81388
81389         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81390
81391 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81392
81393         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81394         Don't bother to check library strftime, since
81395         we'll be using our own my_strftime function anyway.
81396         Define my_strftime instead of strftime.
81397
81398 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81399
81400         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81401         which is not yet declared.
81402
81403 2001-05-15  Jim Meyering  <meyering@lucent.com>
81404
81405         * m4/regex.m4: Use proper quoting so brackets appear in the test
81406         program.
81407         Reported by, and with help from, Bruno Haible.
81408
81409 2001-05-13  Jim Meyering  <meyering@lucent.com>
81410
81411         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81412         undefined.
81413
81414 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81415
81416         dirname code cleanup.  base_name now behaves more compatibly
81417         with POSIX basename when given file names that have trailing
81418         slashes, and similarly for dir_name.  Add new primitives
81419         base_len and dir_len.  Put the directory-name-related decls
81420         into dirname.h.
81421
81422         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81423         * lib/backupfile.c (base_name): Likewise.
81424         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81425         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81426         * lib/makepath.c (strip_trailing_slashes): Likewise.
81427         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81428         ISSLASH): Likewise.
81429         * lib/rename.c (strip_trailing_slashes): Likewise.
81430         * lib/same.c (base_name): Likewise.
81431         * lib/stripslash.c (ISSLASH): Likewise.
81432
81433         * lib/addext.c: Include <dirname.h> after size_t is defined.
81434         * lib/backupfile.c: Likewise.
81435
81436         * lib/addext.c (addext): Use base_len to trim redundant
81437         trailing slashes instead of doing it ourselves.
81438         But do not trim the last slash if it is not redundant.
81439
81440         * lib/backupfile.c (find_backup_file_name,
81441         max_backup_version): Use base_len instead of rolling it ourselves.
81442         Handle the case of "" and (on DOS) "C:" correctly.
81443
81444         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81445         needed. Include <string.h>, <dirname.h>.
81446         (base_name): Allow file names ending in slashes, other than names
81447         that are all slashes.  In this case, return the basename followed
81448         by the slashes.  This is more general, and can be used in places
81449         where the original base_name purposely had an assertion failure.
81450         (base_len): New function.
81451
81452         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81453         Do not include <assert.h>; no longer needed.
81454         Include xalloc.h.
81455         (memrchr): Remove decl.
81456         (dir_name_r): Remove.
81457         (dir_len): Renamed from dirlen.  All callers changed.
81458         Rewrite in terms of base_name, for simplicity and consistency.
81459         (dir_name): Never return NULL.  All callers changed.
81460         Do not include <stdlib.h> in test program; no longer needed.
81461         return 0; is fine for test program.
81462
81463         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81464         New macros.
81465         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81466
81467         * lib/path-concat.c (path_concat): Use base_len to compute
81468         base length, not strlen; this means we cannot rely on memcpy
81469         to null-terminate.
81470
81471         * lib/same.c (STREQ): Remove.
81472         (same_name): Handle the case where the basename ends in trailing '/'.
81473
81474         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81475         a slash was stripped.  Do not strip the last slash after a
81476         file system prefix.
81477
81478 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81479
81480         * lib/Makefile.am (libfetish_a_SOURCES):
81481         Add strftime.c, since we now compile it on all hosts.
81482
81483         * lib/strftime.c (my_strftime):
81484         Define to nstrftime if emacs, but only if my_strftime is not defined.
81485         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81486         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81487         Add one more extra argument: a nanoseconds value.
81488         All uses changed.
81489         (ns): New macro.
81490         (my_strftime function): Add %N format.
81491         (emacs_strftimeu): Renamed from emacs_strftime,
81492         with extra ut argument.
81493
81494 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81495
81496         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81497
81498 2001-04-21  Jim Meyering  <meyering@lucent.com>
81499
81500         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81501         doesn't interfere.
81502
81503 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81504
81505         * m4/ftruncate.m4: Check for chsize.
81506         Link with ftruncate.o unconditionally if ftruncate is missing.
81507         This was required when cross-compiling to i586-mingw32msvc.
81508
81509 2001-04-08  Jim Meyering  <meyering@lucent.com>
81510
81511         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81512         recomputed; that's necessary when the offset spans a DST transition.
81513         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81514
81515 2001-04-02  Jim Meyering  <meyering@lucent.com>
81516
81517         * lib/regex.h, regex.c: Update from GNU libc.
81518
81519 2001-03-24  Jim Meyering  <meyering@lucent.com>
81520
81521         * m4/jm-macros.m4: Require autoconf-2.49d.
81522
81523 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81524
81525         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81526
81527 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81528
81529         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81530
81531 2001-03-17  Jim Meyering  <meyering@lucent.com>
81532
81533         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81534         now that the version in autoconf is equivalent.
81535         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81536
81537         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81538         Suggestion from Akim Demaille.
81539
81540         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81541         (jm_PREREQ_TEMPNAME): New function.
81542
81543 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81544
81545         * lib/tempname.c (uint64_t): Define to uintmax_t if
81546         not defined, and if UINT64_MAX is not defined.
81547         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81548         Reported by John David Anglin.
81549
81550 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81551
81552         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81553         resolve alias if codeset is empty.
81554         * lib/config.charset (BeOS): Use wildcard syntax.
81555
81556 2001-03-13  Jim Meyering  <meyering@lucent.com>
81557
81558         * lib/path-concat.c (path_concat)
81559         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81560         concatenating e.g., `C:' and `foo'.
81561         From Bruno Haible.
81562
81563 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81564
81565         * lib/localcharset.c (locale_charset): Don't use
81566         setlocale(LC_CTYPE,NULL). Don't return NULL.
81567         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81568
81569 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81570
81571         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81572         support for DOS/DJGPP.
81573
81574 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81575
81576         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81577         lacks mkstemp.  Compile our own tempname.c if we compile our own
81578         mkstemp.c, as mkstemp relies on tempname.
81579
81580 2001-03-01  Jim Meyering  <meyering@lucent.com>
81581
81582         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81583         AH_VERBATIM really does output its argument verbatim.
81584
81585 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81586
81587         * lib/Makefile.am (libfetish_a_SOURCES):
81588         Add dup-safer.c, fopen-safer.c.
81589         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81590
81591         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81592         * lib/unistd-safer.h: New files.
81593
81594 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81595
81596         The mkstemp replacement is taken from glibc 2.2.2, with some
81597         portability fixes for use outside glibc, as follows:
81598
81599         * lib/tempname.c (struct_stat64): New macro.
81600         (direxists, __gen_tempname): Use it.
81601         This avoids a portability problem with Solaris 8.
81602
81603         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81604         (<stddef.h>, <stdint.h>, <string.h>):
81605         Include only if STDC_HEADERS || _LIBC.
81606         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81607         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81608         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81609         (__set_errno): Define this macro if <errno.h> doesn't.
81610         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81611         Define these macros if <stdio.h> doesn't.
81612         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81613         Define these macros if <sys/stat.h>
81614         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81615         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81616         __xstat64): Define if not _LIBC.
81617         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81618         (__gen_tempname): Invoke gettimeofday only if
81619         HAVE_GETTIMEOFDAY || _LIBC;
81620         otherwise, fall back on plain "time".
81621         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81622
81623         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81624
81625         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81626
81627 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81628
81629         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81630
81631 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81632
81633         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81634         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81635         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81636         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81637
81638 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81639
81640         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81641         Remove workaround macros for hosts that have mbrtowc but not
81642         mbstate_t, as we now insist on proper declarations for both
81643         before using mbrtowc.
81644
81645 2001-02-17  Jim Meyering  <meyering@lucent.com>
81646
81647         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81648         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81649         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81650         UnixWare 7.1.1.
81651
81652         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81653         rather than AC_CACHE_VAL.
81654
81655 2001-02-17  Jim Meyering  <meyering@lucent.com>
81656
81657         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81658         around included file name.
81659
81660         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81661
81662         * lib/strftime.c: Update from GNU libc (the only changes were to
81663         comments).
81664
81665 2001-02-17  Jim Meyering  <meyering@lucent.com>
81666
81667         * lib/regex.c: Update from libc.
81668
81669 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81670
81671         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81672         clash.
81673
81674 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81675
81676         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81677         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81678         Reported by Mark Hounschell via Paul Eggert.
81679
81680 2001-02-07  Jim Meyering  <meyering@lucent.com>
81681
81682         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81683
81684 2001-02-05  Jim Meyering  <meyering@lucent.com>
81685
81686         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81687         it includes the patch required for `large file' support with at least
81688         HP-UX's 10.20 /bin/cc.
81689
81690 2001-02-03  Jim Meyering  <meyering@lucent.com>
81691
81692         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81693         AS_IF, now that it works once again (mysteriously).
81694         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81695
81696 2001-01-30  Jim Meyering  <meyering@lucent.com>
81697
81698         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81699         * m4/chown.m4: Rename conftestchown to conftest.chown.
81700         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81701         s/conftestdir2/conftest.d2/.
81702         * m4/utimes.m4: s/conftestdata/conftest.data/
81703         Inspired by Pavel Roskin's change in autoconf.
81704
81705 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81706
81707         * lib/config.charset: Update for FreeBSD 4.2.
81708
81709 2001-01-27  Jim Meyering  <meyering@lucent.com>
81710
81711         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81712         a use of AS_IF.
81713         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81714
81715 2001-01-26  Jim Meyering  <meyering@lucent.com>
81716
81717         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81718         quotearg.c includes it.
81719
81720 2001-01-26  Jim Meyering  <meyering@lucent.com>
81721
81722         * lib/quotearg.c: Include stddef.h.
81723         * lib/quote.c: Include stddef.h.
81724         Reported by Axel Kittenberger.
81725
81726         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81727         line in double quotes so that it evokes a better diagnostic.
81728         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81729         Reported by Axel Kittenberger.
81730
81731 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81732
81733         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81734         as if it was a `charset'.
81735
81736 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81737
81738         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81739         has const.
81740
81741 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81742
81743         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81744         to avoid a warning.  Add back 'const' to inptr.
81745
81746 2001-01-20  Jim Meyering  <meyering@lucent.com>
81747
81748         Be sure that headers are checked before used in code compiled
81749         for the type checks.
81750         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81751         In place of that, invoke jm_CHECK_ALL_TYPES.
81752         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81753         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81754         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81755         The check for ssize_t was mistakenly run before the test for unistd.h.
81756
81757         The configure-time check for stdbool.h was missing.
81758         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81759         (jm_PREREQ_HASH): New function.
81760
81761 2001-01-17  Jim Meyering  <meyering@lucent.com>
81762
81763         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81764         for autoconf-2.49c.
81765         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81766
81767 2001-01-16  Jim Meyering  <meyering@lucent.com>
81768
81769         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81770         From Bruno Haible.
81771
81772 2001-01-14  Jim Meyering  <meyering@lucent.com>
81773
81774         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81775         foo and bar.  Create conftestdir/ in the script, not in the C code.
81776         Remove directories in the script, not in the C code.
81777         Remove conftestdir{,2} before trying to create the directory.
81778         Make the entire configure script fail if the mkdir fails.
81779
81780 2001-01-14  Jim Meyering  <meyering@lucent.com>
81781
81782         * lib/rename.c: New file.  From Volker Borchert.
81783         Include stdlib.h, string.h or strings.h, and xalloc.h.
81784         Use strip_trailing_slashes rather than open-coding it.
81785
81786 2001-01-03  Paul Eggert  <eggert@twinsun.com>
81787
81788         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
81789
81790 2001-01-03  Jim Meyering  <meyering@lucent.com>
81791
81792         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
81793         of local `inptr' to avoid warning with some system declarations of
81794         iconv.
81795
81796 2001-01-02  Volker Borchert  <bt@teknon.de>
81797
81798         * m4/rename.m4: New file.
81799         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
81800
81801 2001-01-01  Jim Meyering  <meyering@lucent.com>
81802
81803         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
81804         even on systems with utmpx.h.  It's necessary for the declaration of
81805         utmp's ut_user member.  Reported by Andreas Jaeger.
81806
81807         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
81808         available. They are required for the declarations of getgrgid and
81809         getpwuid resp.
81810         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
81811         Reported by Andreas Jaeger.
81812
81813 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
81814
81815         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
81816         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
81817         so `make install' also works in VPATH builds.
81818
81819 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
81820
81821         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
81822         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
81823         can be used in subdirectories.
81824
81825 2000-12-29  Paul Eggert  <eggert@twinsun.com>
81826
81827         * lib/modechange.c: Do not assume that mode_t uses the
81828         traditional octal encoding.  E.g. "chmod 1 FOO" should set
81829         the other-execute bit of FOO even if S_IXOTH != 1.
81830
81831         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
81832         WOTH, XOTH, ALLM): New macros.
81833         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
81834          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
81835         Use them.
81836         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
81837         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
81838         (mode_compile):
81839         No need to use uintmax_t; unsigned long is long enough.
81840         Don't bother to get suffix since we don't use it.
81841
81842 2000-12-26  Jim Meyering  <meyering@lucent.com>
81843
81844         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
81845         better with autoheader.
81846
81847 2000-12-24  Jim Meyering  <meyering@lucent.com>
81848
81849         * lib/hash.c (is_prime): Return explicit boolean values.
81850         (hash_get_first): Return NULL to appease Irix5.6's 89.
81851         Reported by Nelson Beebe.
81852
81853 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
81854
81855         * lib/localcharset.c (locale_charset): Add support for Win32.
81856
81857 2000-12-18  Paul Eggert  <eggert@twinsun.com>
81858
81859         * lib/physmem.h, lib/physmem.c: New files.
81860
81861         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
81862         (noinst_HEADERS): Add physmem.h.
81863
81864         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
81865         't' for compatibility with Solaris 8 sort.
81866
81867 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
81868
81869         * lib/config.charset: Add support for BeOS.
81870
81871 2000-12-17  Jim Meyering  <meyering@lucent.com>
81872
81873         * m4/dos.m4 (jm_AC_DOS): New file and macro.
81874         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
81875
81876 2000-12-16  Jim Meyering  <meyering@lucent.com>
81877
81878         This bug had a serious impact on chown: `chown N:M FILE' (for integer
81879         N and M) would have treated it like `chown N:N FILE'.
81880
81881         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
81882
81883 2000-12-16  Jim Meyering  <meyering@lucent.com>
81884
81885         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
81886         SHELLS_FILE to a file name that's useful on djgpp systems.
81887         Include stdlib.h.
81888         (ADDITIONAL_DEFAULT_SHELLS): Define.
81889         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
81890         Based mostly on a patch from Prashant TR.
81891
81892 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
81893
81894         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
81895         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
81896         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
81897
81898 2000-12-08  Andreas Schwab  <schwab@suse.de>
81899
81900         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
81901         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
81902
81903 2000-12-07  Jim Meyering  <meyering@lucent.com>
81904
81905         * lib/stripslash.c (ISSLASH): Define.
81906         (strip_trailing_slashes): Use ISSLASH rather than comparing against
81907         `/'.
81908         From Prashant TR.
81909
81910         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
81911         (dir_name_r): Declare this function as static.
81912         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
81913         manifest itself on a name containing a mix of slashes and
81914         backslashes.
81915         Make this function work with names starting with a DOS-style
81916         drive letter and colon prefix.
81917         (dir_name): Append `.' if necessary.
81918         Based mostly on patches from Prashant TR and Eli Zaretskii.
81919
81920         * lib/dirname.h (dir_name_r): Remove prototype.
81921
81922 2000-12-06  Paul Eggert  <eggert@twinsun.com>
81923
81924         * m4/off_t-format.m4: Remove this file.
81925         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
81926
81927 2000-12-06  Jim Meyering  <meyering@lucent.com>
81928
81929         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
81930         replacement strtoull, we may well need the replacement strtoul, too.
81931         Check for declarations of strtoul and strtoull.
81932         Check for strtol.  Mainly as a cue to cause automake to include
81933         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
81934         Check for limits.h -- strtol.c needs it.
81935
81936 2000-12-05  Jim Meyering  <meyering@lucent.com>
81937
81938         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
81939
81940 2000-12-04  Jim Meyering  <meyering@lucent.com>
81941
81942         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
81943         Also include memory.h, stdlib.h, unistd.h if appropriate.
81944         Reported by Andreas Jaeger (conflicting declaration of malloc).
81945
81946 2000-12-02  Jim Meyering  <meyering@lucent.com>
81947
81948         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
81949         * m4/jm-macros.m4 (jm_MACROS): require it.
81950
81951 2000-12-02  Jim Meyering  <meyering@lucent.com>
81952
81953         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
81954
81955 2000-12-01  Paul Eggert  <eggert@twinsun.com>
81956
81957         * lib/memrchr.c: Include <config.h> before any system include file.
81958
81959 2000-11-30  Jim Meyering  <meyering@lucent.com>
81960
81961         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
81962
81963 2000-11-30  Jim Meyering  <meyering@lucent.com>
81964
81965         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
81966
81967 2000-11-29  Paul Eggert  <eggert@twinsun.com>
81968
81969         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
81970
81971 2000-11-26  Jim Meyering  <meyering@lucent.com>
81972
81973         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
81974
81975 2000-11-22  Paul Eggert  <eggert@twinsun.com>
81976
81977         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
81978         size of (size_t) -1; it's not portable.
81979
81980 2000-11-17  Jim Meyering  <meyering@lucent.com>
81981
81982         * lib/strstr.c: Update from GNU libc.
81983
81984 2000-11-17  Akim Demaille  <akim@epita.fr>
81985
81986         * lib/obstack.h: Formatting changes.
81987         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
81988         prevent type checking.
81989         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
81990         cast the value to (void *): assigning a `foo *' to a `void *'
81991         variable is valid.
81992         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
81993
81994 2000-11-16  Jim Meyering  <meyering@lucent.com>
81995
81996         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
81997
81998 2000-11-11  Jim Meyering  <meyering@lucent.com>
81999
82000         * lib/error.c: Add a couple #includes, merging from GNU libc version.
82001
82002 2000-11-10  Jim Meyering  <meyering@lucent.com>
82003
82004         * lib/obstack.h: Update from GNU libc.
82005         * lib/obstack.c: Likewise.
82006
82007 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
82008
82009         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
82010
82011 2000-11-06  Paul Eggert  <eggert@twinsun.com>
82012
82013         * lib/getusershell.c (setusershell): Use rewind rather than
82014         fseek/fseeko, to avoid configuration hassles with fseeko.
82015         Don't bother opening SHELLS_FILE if shellstream is NULL;
82016         it's not necessary.
82017
82018 2000-11-05  Jim Meyering  <meyering@lucent.com>
82019
82020         * lib/makepath.h (make_dir): Declare.
82021         * lib/makepath.c (make_dir): Remove `static' attribute.
82022         Tweak a comment.
82023
82024 2000-11-04  Jim Meyering  <meyering@lucent.com>
82025
82026         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82027
82028 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82029
82030         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
82031         last one in a bucket, advance to the next bucket.
82032
82033 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
82034
82035         * lib/fnmatch.c: Do not comment out all the code if we are using
82036         the GNU C library, because in some cases we are replacing buggy
82037         code in the GNU C library itself.
82038
82039 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
82040
82041         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
82042         (regex_compile): Catch bogus \(\1\).
82043
82044 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82045
82046         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
82047         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
82048         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
82049
82050 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82051
82052         * lib/error.h, getline.h, modechange.h:
82053         Remove "2000" from Copyright line, as the file hasn't been
82054         changed this year other than in the copyright notice.
82055
82056         * lib/xalloc.h: Add "2000" to Copyright line, as this file
82057         was changed this year.
82058
82059 2000-10-29  Jim Meyering  <meyering@lucent.com>
82060
82061         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
82062         renaming.
82063         * m4/ls-mntd-fs.m4: Likewise
82064
82065 2000-10-29  Jim Meyering  <meyering@lucent.com>
82066
82067         * lib/xstat.in: Fix grammar in comment.
82068
82069 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
82070
82071         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
82072         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
82073         doesn't define __restrict_arr.
82074
82075 2000-10-28  Jim Meyering  <meyering@lucent.com>
82076
82077         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
82078         (jm_PREREQ_MEMCHR): New function.
82079
82080 2000-10-28  Jim Meyering  <meyering@lucent.com>
82081
82082         * lib/memchr.c: Update from libc.
82083         Adjust for portability:
82084         [HAVE_STDLIB_H]: Include stdlib.h.
82085         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
82086         Undef __memchr, too.
82087         [!weak_alias]: Define __memchr to memchr.
82088
82089         * lib/regex.c: Update from libc.
82090         * lib/regex.h: Likewise.
82091         * lib/getopt1.c: Likewise.
82092         * lib/memcmp.c: Likewise.
82093
82094         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
82095         Avoid using fseek, when possible -- it's broken by design.
82096         Patch by Ulrich Drepper.
82097
82098 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
82099
82100         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
82101         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
82102         Giving in to popular pressure to shut up the compiler with casts.
82103
82104 2000-10-26  Jim Meyering  <meyering@lucent.com>
82105
82106         * lib/strftime.c: Update from libc.
82107
82108 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
82109
82110         * regex.c: More `unsigned char' -> `re_char' changes.
82111         Also change several `int' into `re_wchar_t'.
82112         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
82113         (PUSH_FAILURE_POINTER): Don't cast any more.
82114         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
82115         We want GCC to complain, since this piece of code makes
82116         re_match non-reentrant, which *should* be fixed.
82117         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
82118         (EXTEND_BUFFER): Use RETALLOC.
82119         (SET_LIST_BIT): Don't cast.
82120         (re_wchar_t): New type.
82121         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
82122         that those two functions will always properly return.
82123         (IMMEDIATE_QUIT_CHECK): Cast to void.
82124         (analyse_first): Use recursion rather than an explicit stack.
82125         (re_compile_fastmap): Can't fail anymore.
82126         (re_search_2): Don't check re_compile_fastmap for failure.
82127         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
82128         Now also sets the new value (passed in a new argument).
82129         (re_match_2_internal): Use it.
82130         Also, use a new var `reg' of type size_t when looping through regs
82131         rather than reuse the inappropriate `mcnt'.
82132
82133 2000-10-25  Jim Meyering  <meyering@lucent.com>
82134
82135         * lib/obstack.c: Update from libc.
82136
82137 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
82138
82139         * regex.c (regex_compile): Change the way of handling a range from
82140         a char less than 256 to a char not less than 256.
82141
82142 2000-10-24  Andrew Innes  <andrewi@gnu.org>
82143
82144         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
82145         NT-Emacs only.
82146         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
82147         so that re_search functions only quit when callers expect them to.
82148
82149 2000-10-23  Jim Meyering  <meyering@lucent.com>
82150
82151         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
82152         wrong.  That set_locale call must not have any side effects.
82153         From Paul Eggert.
82154
82155 2000-10-22  Jim Meyering  <meyering@lucent.com>
82156
82157         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
82158         [CYCLIC]: Remove now-unused definition.
82159
82160         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
82161         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
82162         Suggestion from Ulrich Drepper.
82163
82164 2000-10-21  Jim Meyering  <meyering@lucent.com>
82165
82166         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
82167         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
82168         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
82169
82170 2000-10-21  Jim Meyering  <meyering@lucent.com>
82171
82172         * lib/dirname.c (memrchr): Declare if necessary.
82173         (dir_name): Remove the restriction that there be no
82174         trailing slashes.  Now, this code skips past them, effectively
82175         ignoring them.
82176         [TEST_DIRNAME] (main): New unit tests.
82177
82178         * lib/memrchr.c: New file from GNU libc.
82179         Undef __memrchr, too.
82180         [!weak_alias]: Define __memrchr to memrchr.
82181         Guard weak_alias use with `#ifdef weak_alias'.
82182
82183 2000-10-21  Jim Meyering  <meyering@lucent.com>
82184
82185         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
82186         (dir_name): Use dir_name_r.
82187         * lib/dirname.h (dir_name_r): Declare it.
82188
82189 2000-10-17  Jim Meyering  <meyering@lucent.com>
82190
82191         * lib/quote.h (PARAMS): Define and use.
82192         Reported by Akim Demaille.
82193
82194         * lib/getopt.c: Update from libc.
82195
82196 2000-10-16  Jim Meyering  <meyering@lucent.com>
82197
82198         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
82199         setlocale.
82200         From Jan Fedak.
82201
82202 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
82203
82204         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
82205
82206 2000-09-25  Jim Meyering  <meyering@lucent.com>
82207
82208         * lib/md5.h (rol): Define (from GnuPG).
82209
82210         * lib/sha.c: Give credit (GnuPG) where due.
82211         (M): Use rol rather than open-coding it.
82212         Add a FIXME comment.
82213
82214 2000-09-21  Jim Meyering  <meyering@lucent.com>
82215
82216         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82217         Reported by Michael Stone.
82218
82219 2000-09-20  Jim Meyering  <meyering@lucent.com>
82220
82221         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82222         (noinst_HEADERS): Add sha.h.
82223         Based on code from Scott G. Miller and from GnuPG.
82224
82225 2000-09-18  Jim Meyering  <meyering@lucent.com>
82226
82227         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82228         LIBS. Otherwise, everyone ends up linking with -lelf for some
82229         configurations.
82230         Reported by Mike Stone.
82231
82232 2000-09-15  Jim Meyering  <meyering@lucent.com>
82233
82234         * lib/regex.c: Update from libc.
82235
82236 2000-09-10  Jim Meyering  <meyering@lucent.com>
82237
82238         * lib/getopt.c (_getopt_internal): Update from glibc.
82239
82240 2000-09-09  Jim Meyering  <meyering@lucent.com>
82241
82242         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82243         think it should be used as a general replacement for isascii.
82244         * lib/fnmatch.c: Likewise.
82245         * lib/mbswidth.c: Likewise
82246         * lib/regex.c: Likewise.
82247
82248         Don't use atoi.
82249         * lib/userspec.c: Include sys/param.h and limits.h.
82250         Include xstrtol.h.
82251         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82252         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82253         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82254         UID, GID.  Check range.
82255
82256 2000-09-06  Jim Meyering  <meyering@lucent.com>
82257
82258         * lib/getopt.c (_getopt_internal): Update from glibc.
82259
82260 2000-08-30  Jim Meyering  <meyering@lucent.com>
82261
82262         * lib/strftime.c: Merge in changes from GNU libc.
82263
82264 2000-08-26  Jim Meyering  <meyering@lucent.com>
82265
82266         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82267         * m4/fpending.m4: New file.
82268
82269 2000-08-26  Jim Meyering  <meyering@lucent.com>
82270
82271         * lib/closeout.c: Include "__fpending.h".
82272         (close_stdout_status): Return right away if there's nothing to flush.
82273
82274         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82275         * lib/__fpending.c: New file.
82276         * lib/__fpending.h: New file.
82277
82278 2000-08-20  Jim Meyering  <meyering@lucent.com>
82279
82280         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82281         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82282         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82283
82284 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82285
82286         Improve fileutils installation on systems where running
82287         programs (like install) can't be unlinked.
82288         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82289         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82290
82291 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82292
82293         Standardize on "memory exhausted" instead of "Memory exhausted"
82294         or "virtual memory exhausted".
82295         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82296         "virtual memory exhausted".
82297         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82298         our own message.
82299         * lib/userspec.c (parse_user_spec): Likewise.
82300         * lib/bumpalloc.h: comment fix
82301         * lib/same.c, userspec.c: Include xalloc.h.
82302
82303         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82304         not char *const and pointing to a constant array.
82305         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82306         (xrealloc): Comment fix.
82307
82308         * lib/userspec.c (parse_user_spec):
82309         Don't translate a message until just before returning,
82310         to avoid unnecessary translation.
82311
82312 2000-08-07  Jim Meyering  <meyering@lucent.com>
82313
82314         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82315         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82316         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82317         getgroups.c, gethostname.c, getopt.h, group-member.c,
82318         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82319         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82320         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82321         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82322         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82323         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82324         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82325         yesno.c: Back out Copyright date changes for each file with no change
82326         this year.  This eases coordination with other programs using the same
82327         source code modules.  From Paul Eggert.
82328
82329 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82330
82331         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82332         not char, for compatibility with glibc 2.1.3 strftime.c.
82333
82334 2000-08-03  Greg McGary  <greg@mcgary.org>
82335
82336         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82337         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82338         (EXTEND_BUFFER): Use them.
82339
82340 2000-08-01  Jim Meyering  <meyering@lucent.com>
82341
82342         * lib/dirname.c (ISSLASH): Define.
82343         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82344         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82345         both `\' and `/' may be use as path separators.
82346         Based on a patch from Prashant TR.
82347
82348 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82349
82350         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82351         slot vector a constant, since it might get modified.
82352
82353 2000-07-31  Jim Meyering  <meyering@lucent.com>
82354
82355         * lib/xmalloc.c: Use `virtual memory exhausted', not
82356         `Memory exhausted'.
82357         * lib/obstack.c (print_and_abort): Likewise.
82358
82359 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82360
82361         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82362         buffer, so that the caller can always quote one small
82363         component of a "memory exhausted" message in slot 0.
82364         From a suggestion by Jim Meyering.
82365
82366 2000-07-30  Jim Meyering  <meyering@lucent.com>
82367
82368         * lib/makepath.c (make_path): Quote the other instance, too.
82369
82370         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82371         (STATIC_BUF_SIZE): Define.
82372         (quotearg_n_options): Use only statically allocated storage when
82373         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82374         than STATIC_BUF_SIZE.
82375
82376 2000-07-29  Jim Meyering  <meyering@lucent.com>
82377
82378         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82379         * lib/dirname.c (dir_name): Likewise.
82380
82381         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82382         `/'.
82383
82384         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82385         (dir_name): Assert that there are no trailing slashes.
82386
82387 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82388
82389         * lib/mbswidth.h (mbswidth): Add a flags argument.
82390         (mbswidth): New declaration.
82391         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82392         * lib/mbswidth.c (mbswidth): Add a flags argument.
82393         (mbsnwidth): New function.
82394
82395 2000-07-24  Jim Meyering  <meyering@lucent.com>
82396
82397         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82398
82399 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82400
82401         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82402
82403 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82404
82405         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82406         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82407         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82408         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82409         invoke multibyte primitives.
82410
82411 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82412
82413         * lib/quotearg.c:
82414         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82415         so that mbstate_t is always defined.
82416
82417         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82418         be 1 in at least one GCC installation, and this configuration
82419         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82420         performance on hosts that have mbrtowc but have only unibyte
82421         locales, but I assume these hosts are rare.
82422
82423 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82424
82425         * lib/mbswidth.c (_XOPEN_SOURCE):
82426         Don't define; this causes problems on Solaris 7.
82427         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82428
82429 2000-07-23  Jim Meyering  <meyering@lucent.com>
82430
82431         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82432         too: getgrgid, getpwuid, getuid.
82433
82434 2000-07-23  Jim Meyering  <meyering@lucent.com>
82435
82436         * lib/basename.c (base_name): Add an assertion.
82437
82438 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82439
82440         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82441         shadow its mbsinit function.
82442
82443 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82444
82445         * lib/mbswidth.h: New file.
82446         * lib/mbswidth.c: New file.
82447         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82448         (noinst_HEADERS): Add mbswidth.h.
82449
82450 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82451
82452         * lib/config.charset: Add support for FreeBSD. Improve support for
82453         HP-UX and IRIX 6.
82454
82455 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82456
82457         * m4/mbswidth.m4: New file.
82458         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82459
82460 2000-07-15  Jim Meyering  <meyering@lucent.com>
82461
82462         * lib/makepath.c: Include quote.h.
82463         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82464         corresponding argument in a `quote (...)' call.
82465         Give better diagnostics.
82466
82467         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82468         (noinst_HEADERS): Add quote.h.
82469
82470         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82471         from tar's src/misc.c.
82472         * lib/quote.h: New file.  Prototypes for same.
82473
82474 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82475
82476         From a suggestion by Bruno Haible.
82477         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82478         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82479         to decide whether to define the BeOS workaround macro;
82480         this adjusts to the change to AC_MBSTATE_T.
82481
82482 2000-07-14  Jim Meyering  <meyering@lucent.com>
82483
82484         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82485         jm_AC_TYPE_UINTMAX_T.
82486
82487 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82488
82489         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82490
82491         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82492         quotearg_buffer_restyled): Add support for
82493         clocale_quoting_style.  Undo previous change to
82494         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82495         and "{RIGHT QUOTATION MARK}" msgids.
82496
82497 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82498
82499         From a suggestion by Bruno Haible.
82500         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82501         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82502         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82503         and mbstate_t, to a single-part test that simply defines mbstate_t.
82504         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82505         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82506
82507 2000-07-10  Jim Meyering  <meyering@lucent.com>
82508
82509         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82510
82511         * m4/gnu-source.m4: Output to confdefs.h directly.
82512         Suggestion from Akim Demaille.
82513
82514 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82515
82516         The old behavior of quoting `like this' doesn't look good with
82517         newer, ISO-style fonts.  See:
82518         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82519
82520         Instead, quote "like this" by default.  Let the translator
82521         tailor the locale-specific quoting behavior by providing
82522         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82523
82524         * lib/quotearg.c (N_): New macro.
82525         (gettext_default): New function.
82526         (quotearg_buffer_restyled): Use
82527         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82528         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82529
82530 2000-07-09  Jim Meyering  <meyering@lucent.com>
82531
82532         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82533         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82534
82535         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82536         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82537
82538 2000-07-09  Jim Meyering  <meyering@lucent.com>
82539
82540         * lib/Most files: Update copyright dates to include 2000.
82541
82542 2000-07-08  Jim Meyering  <meyering@lucent.com>
82543
82544         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82545         if not defined.
82546         (xgethostname): Remove now-unnecessary #ifdef.
82547         Move declaration of `err' into loop where it's used.
82548
82549 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82550         and Bruno Haible  <haible@clisp.cons.org>
82551
82552         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82553         only if the test for an object-type mbstate_t fails.  This
82554         prevents us from mistakenly reporting that mbstate_t is a
82555         system object type after we "#define mbstate_t int" to work
82556         around its lack.
82557
82558 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82559         and Bruno Haible  <haible@clisp.cons.org>
82560
82561         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82562
82563 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82564
82565         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82566         to strerror_r.
82567         Include <ctype.h> for use of isalpha.
82568
82569 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82570
82571         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82572         by allocating a larger buffer. Test the gethostname return value for
82573         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82574         returns an error and ENAMETOOLONG isn't defined.
82575
82576 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82577
82578         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82579         dimension.
82580
82581 2000-07-04  Jim Meyering  <meyering@lucent.com>
82582
82583         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82584         of the deprecated AC_CHECKING.
82585
82586 2000-07-04  Jim Meyering  <meyering@lucent.com>
82587
82588         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82589         Reported by Bruno Haible.
82590
82591 2000-07-04  Jim Meyering  <meyering@lucent.com>
82592
82593         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82594         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82595         lacks mbrtowc.
82596
82597 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82598
82599         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82600         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82601
82602 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82603         and Bruno Haible  <haible@clisp.cons.org>
82604
82605         * lib/quotearg.c (mbrtowc):
82606         Assign to *pwc, and return 1 only if result is nonzero.
82607         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82608
82609 2000-07-03  Jim Meyering  <meyering@lucent.com>
82610
82611         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82612
82613 2000-07-03  Jim Meyering  <meyering@lucent.com>
82614
82615         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82616         This is necessary to get a definition of e.g., UTMP_FILE on
82617         HP-UX 10.20.
82618         From Bob Proulx.
82619
82620 2000-07-02  Jim Meyering  <meyering@lucent.com>
82621
82622         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82623
82624         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82625         AC_LIBOBJ(function_name).
82626         * m4/chown.m4: Likewise.
82627         * m4/fnmatch.m4: Likewise.
82628         * m4/ftruncate.m4: Likewise.
82629         * m4/getgroups.m4: Likewise.
82630         * m4/getline.m4: Likewise.
82631         * m4/group-member.m4: Likewise.
82632         * m4/jm-macros.m4: Likewise.
82633         * m4/lstat.m4: Likewise.
82634         * m4/malloc.m4: Likewise.
82635         * m4/memcmp.m4: Likewise.
82636         * m4/nanosleep.m4: Likewise.
82637         * m4/putenv.m4: Likewise.
82638         * m4/realloc.m4: Likewise.
82639         * m4/regex.m4: Likewise.
82640         * m4/stat.m4: Likewise.
82641         * m4/strftime.m4: Likewise.
82642
82643 2000-07-02  Jim Meyering  <meyering@lucent.com>
82644
82645         * lib/quotearg.c (mbstate_t): Don't define here.
82646
82647 2000-07-02  Jim Meyering  <meyering@lucent.com>
82648
82649         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82650
82651 2000-07-01  Jim Meyering  <meyering@lucent.com>
82652
82653         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82654
82655 2000-07-01  Jim Meyering  <meyering@lucent.com>
82656
82657         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82658         problem.
82659
82660 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82661
82662         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82663         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82664
82665 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82666
82667         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82668         per change in ../m4/ls-mntd-fs.m4.
82669         (read_filesystem_list): Ignore symbolic links.
82670
82671 2000-06-29  Jim Meyering  <meyering@lucent.com>
82672
82673         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82674         for declaration of strcmp.
82675
82676         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82677
82678         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82679         Avoid warning by casting result to `char *' to remove `const'.
82680
82681 2000-06-28  Jim Meyering  <meyering@lucent.com>
82682
82683         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82684         included by quotearg.c, for which we perform this test.  From
82685         Bruno Haible.
82686
82687 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82688
82689         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82690         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82691         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82692
82693 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82694
82695         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82696
82697 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82698
82699         savedir now sets errno on failure and invokes xmalloc to get memory.
82700         Fix a couple of other minor bugs while we're at it.
82701
82702         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82703         (NAMLEN): Remove macro.
82704         (malloc, realloc): Remove decls.
82705         (stpcpy): Likewise.
82706         ("xalloc.h"): Include.
82707         (NAME_SIZE_DEFAULT): New macro.
82708         (savedir): Use xmalloc / xrealloc to allocate memory.
82709         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82710         Skip "" directory entries.
82711         Use strlen to calculate directory entry length, since the old method
82712         is rarely used these days and isn't worth supporting.
82713         Don't use a pointer after freeing it.
82714         Check for integer overflow when calculating allocation size.
82715         Use memcpy to copy entries, instead of stpcpy.
82716         Set errno properly when returning NULL.
82717         Check for readdir error.
82718
82719 2000-06-26  Jim Meyering  <meyering@lucent.com>
82720
82721         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82722
82723 2000-06-25  Jim Meyering  <meyering@lucent.com>
82724
82725         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82726         Linux header bug when _XOPEN_SOURCE is defined to 500.
82727
82728 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82729
82730         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82731         deficiency.
82732
82733 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82734
82735         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82736         Include xalloc.h.
82737         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82738
82739 2000-06-24  Jim Meyering  <meyering@lucent.com>
82740
82741         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82742         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82743         for which strerror does return char*, but which lacks a conveniently
82744         accessible declaration of the function.  If the compile-test says
82745         strerror_r doesn't work, then resort to a `run'-test that works on
82746         BeOS and segfaults on DEC Unix.
82747
82748 2000-06-24  Jim Meyering  <meyering@lucent.com>
82749
82750         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82751
82752 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82753
82754         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82755         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82756
82757 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82758
82759         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82760         (mbrtowc, mbstate_t): Define substitutes if
82761         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82762         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82763         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82764
82765 2000-06-23  Jim Meyering  <meyering@lucent.com>
82766
82767         * m4/afs.m4: Add missing AC_MSG_RESULT.
82768         Reported by Bruno Haible.
82769
82770         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82771         Suggestion from Bruno Haible.
82772
82773 2000-06-23  Jim Meyering  <meyering@lucent.com>
82774
82775         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82776
82777 2000-06-21  Jim Meyering  <meyering@lucent.com>
82778
82779         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
82780
82781 2000-06-21  Jim Meyering  <meyering@lucent.com>
82782
82783         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
82784         (noinst_HEADERS): Add getstr.h.
82785
82786         * lib/getline.c (getstr): Move into a separate file.
82787         * lib/getstr.c (getstr): New file, extracted from getline.c, with
82788         the following changes: new parameter, delim2; both delim[12]
82789         parameters have type `int', not `char'.  The latter would lose
82790         with 8-bit delimiters.
82791         * lib/getstr.h: New file.
82792
82793 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82794
82795         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
82796         than 1024, return a memory chunk of least possible size, instead
82797         of size PATH_MAX + 2. In the loop, increment the size proportionally.
82798         Use free/xmalloc instead of xrealloc to avoid copying for very long
82799         paths.
82800
82801 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82802
82803         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
82804         the empty string.
82805
82806 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82807
82808         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
82809         address, not strdup.  Include <stdlib.h> and don't declare free().
82810
82811 2000-06-19  Jim Meyering  <meyering@lucent.com>
82812
82813         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
82814
82815 2000-06-18  Jim Meyering  <meyering@lucent.com>
82816
82817         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
82818
82819         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
82820         `checking whether...' message to be consistent with that of the
82821         lstat test.
82822
82823 2000-06-18  Jim Meyering  <meyering@lucent.com>
82824
82825         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
82826         Besides, these days every porting target provides a mkdir function.
82827
82828         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
82829         needed. (this snippet comes from src/system.h).
82830
82831 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
82832
82833         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
82834
82835 2000-06-15  Paul Eggert  <eggert@twinsun.com>
82836
82837         * lib/human.c (adjust_value): New function.
82838         (human_readable_inexact): Apply rounding style even when
82839         printing approximate values.
82840
82841 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82842
82843         * lib/human.c (human_readable_inexact): Allow an input block
82844         size that is not a multiple of the output block size, and vice versa.
82845         Reported by Piergiorgio Sartor.
82846
82847 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82848
82849         * lib/getdate.y (get_date): Apply relative times after time
82850         zone indicator, not before.  Reported by Todd A. Jacobs.
82851
82852 2000-06-13  Jim Meyering  <meyering@lucent.com>
82853
82854         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
82855
82856         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
82857
82858 2000-06-12  Paul Eggert  <eggert@twinsun.com>
82859
82860         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
82861
82862 2000-06-12  Jim Meyering  <meyering@lucent.com>
82863
82864         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
82865         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
82866         optional argument.
82867         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
82868         the optional argument, `lib'.
82869
82870 2000-06-08  Jim Meyering  <meyering@lucent.com>
82871
82872         * m4/largefile.m4: Remove file (now that it's part of autoconf).
82873
82874 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82875
82876         Rewrite largefile configuration so that we don't need to run
82877         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
82878         AC_CANONICAL_HOST in configure.in -- jmm]
82879
82880         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
82881         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
82882         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
82883         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
82884         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
82885         All uses changed.
82886         Instead of inspecting the output of getconf, try to compile the
82887         test program without and with the macro definition.
82888         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
82889         for getconf.  Instead, check for the needed flags by compiling
82890         test programs.
82891
82892 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82893
82894         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
82895
82896 2000-06-04  Jim Meyering  <meyering@lucent.com>
82897
82898         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
82899         SunOS 4.1.4 for which gid_t is an unsigned type.
82900
82901 2000-06-03  Jim Meyering  <meyering@lucent.com>
82902
82903         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
82904         now that autoconf requires that.
82905
82906         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
82907         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
82908         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
82909
82910 2000-06-03  Jim Meyering  <meyering@lucent.com>
82911
82912         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
82913
82914 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82915
82916         * m4/glibc21.m4: New file.
82917         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
82918
82919 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82920
82921         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
82922         newer, don't install charset.alias.
82923         * lib/config.charset: Change the Linux/glibc rules so they become empty
82924         on glibc-2.1 or newer.
82925
82926 2000-06-02  Jim Meyering  <meyering@lucent.com>
82927
82928         * lib/mountlist.c: Back out last change.  Instead, do this...
82929         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
82930         me_dummy member using the same `ignore'-testing code.
82931         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
82932         fs_type strings.
82933         From Mark D. Roth.
82934
82935 2000-05-29  Jim Meyering  <meyering@lucent.com>
82936
82937         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
82938         mounts with the `ignore' attribute.  Based on a patch from
82939         Mark D. Roth.
82940
82941 2000-05-28  Jim Meyering  <meyering@lucent.com>
82942
82943         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
82944         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82945         * m4/stat.m4: Likewise.
82946         * m4/lstat.m4: Likewise.
82947         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
82948
82949         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
82950         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
82951
82952 2000-05-26  Jim Meyering  <meyering@lucent.com>
82953
82954         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
82955
82956 2000-05-24  Jim Meyering  <meyering@lucent.com>
82957
82958         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
82959         autoconf requires that.
82960         * m4/lib-check.m4: Likewise.
82961         * m4/jm-macros.m4: Likewise.
82962         * m4/strftime.m4: Likewise.
82963
82964         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
82965         AC_CHECK_DECLS, now that autoconf requires that.
82966
82967 2000-05-22  Jim Meyering  <meyering@lucent.com>
82968
82969         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82970         * m4/lstat.m4: Likewise.
82971
82972 2000-05-22  Jim Meyering  <meyering@lucent.com>
82973
82974         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
82975
82976 2000-05-20  Jim Meyering  <meyering@lucent.com>
82977
82978         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
82979         (jm_PREREQ): Use it.
82980
82981 2000-05-18  Jim Meyering  <meyering@lucent.com>
82982
82983         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
82984         back, too, since it may have been modified by allocate_entry.
82985         (hash_delete): Rewrite to use neither the assignment operator
82986         nor the comma operator in an if-expression.
82987
82988 2000-05-15  Paul Eggert  <eggert@twinsun.com>
82989
82990         * lib/closeout.c:
82991         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
82992         Remove; no longer needed.
82993         "quotearg.h": Add include.
82994         (file_name): Do not bother to explicitly initialize to NULL; it's less
82995         efficient on some hosts.
82996         (close_stdout_status): Remove test as to whether stdout was already
82997         closed; it breaks for the case "echo x | sort >&-".
82998         Quote file name colons.
82999         Do not assume that _("write error") lacks format strings.
83000
83001 2000-05-15  Jim Meyering  <meyering@lucent.com>
83002
83003         * lib/version-etc.c (version_etc_copyright): Update the copyright
83004         string used in all --version output.
83005
83006 2000-05-14  Jim Meyering  <meyering@lucent.com>
83007
83008         * lib/closeout.c (close_stdout_set_file_name): New function.
83009         (close_stdout_status): Use new file-scoped global.
83010         Return right away if fstat says the stdout file descriptor is invalid.
83011         * lib/closeout.h (close_stdout_set_file_name): Declare.
83012
83013 2000-05-10  Jim Meyering  <meyering@lucent.com>
83014
83015         * lib/closeout.c [default_exit_status]: New file-scoped variable.
83016         (close_stdout_set_status): New function.
83017         * lib/closeout.h (close_stdout_set_status): Declare.
83018
83019 2000-05-09  Jim Meyering  <meyering@lucent.com>
83020
83021         * m4/gettext.m4: Rename this...
83022         * m4/libintl.m4: ...to this.
83023
83024 2000-05-08  Jim Meyering  <meyering@lucent.com>
83025
83026         * lib/long-options.c: Don't include closeout.h.
83027         (parse_long_options): Don't call close_stdout for --version.
83028
83029 2000-05-06  Paul Eggert  <eggert@twinsun.com>
83030
83031         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
83032         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
83033         2.1.3 bug.  This avoids a clash when files like regex.c define
83034         _GNU_SOURCE.
83035
83036 2000-05-06  Jim Meyering  <meyering@lucent.com>
83037
83038         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
83039         (AC_REPLACE_FUNCS): Add strnlen.
83040
83041         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
83042         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
83043
83044         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
83045         AC_SEARCH_LIBS call for nanosleep.
83046         (LIB_NANOSLEEP): Set and AC_SUBST.
83047
83048 2000-05-06  Jim Meyering  <meyering@lucent.com>
83049
83050         * lib/strnlen.c: Undefine __strnlen and strnlen.
83051         [!weak_alias]: Define __strnlen to strnlen.
83052
83053         * lib/atexit.c: New file, from libiberty.
83054
83055 2000-05-06  Jim Meyering  <meyering@lucent.com>
83056
83057         * lib/closeout.c (close_stdout_status): Also check for errors on the
83058         stderr stream.
83059
83060 2000-05-05  Jim Meyering  <meyering@lucent.com>
83061
83062         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
83063         AC_SEARCH_LIBS call for clock_gettime.
83064         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
83065
83066         * m4/search-libs.m4: Update from autoconf.
83067
83068         su doesn't work on Solaris 2.6.
83069         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
83070         <shadow.h>.  Reported by Dragos Harabor.
83071
83072 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
83073
83074         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
83075         memcpy instead of xmalloc, xrealloc, path_concat.
83076         (locale_charset): Treat empty environment variables as absent.
83077         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
83078
83079 2000-05-04  Jim Meyering  <meyering@lucent.com>
83080
83081         * lib/getopt.c: Update from glibc.
83082         * lib/obstack.c: Likewise.
83083         * lib/obstack.h: Likewise.
83084         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
83085         file
83086
83087         * lib/regex.h: Likewise.
83088         * lib/strndup.c: Likewise.
83089         * lib/strnlen.c: New file, from glibc.
83090
83091 2000-05-03  Jim Meyering  <meyering@lucent.com>
83092
83093         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
83094
83095 2000-05-02  Paul Eggert  <eggert@twinsun.com>
83096
83097         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
83098         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
83099         compile-time test, rather than inspecting host and OS, to
83100         decide whether to define _LARGEFILE_SOURCE.
83101
83102 2000-05-01  Jim Meyering  <meyering@lucent.com>
83103
83104         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
83105
83106         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
83107         Based on a patch from Bruno Haible.
83108
83109 2000-05-01  Jim Meyering  <meyering@lucent.com>
83110
83111         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
83112
83113 2000-04-29  Jim Meyering  <meyering@lucent.com>
83114
83115         * lib/path-concat.c: Declare strdup only if it's not defined.
83116         * lib/canon-host.c: Likewise.
83117
83118 2000-04-28  Jim Meyering  <meyering@lucent.com>
83119
83120         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
83121         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
83122         is included first, then limits.h is included by locale.h by libintl.h.
83123         From John David Anglin.
83124
83125 2000-04-25  Jim Meyering  <meyering@lucent.com>
83126
83127         * lib/makepath.c (S_IRWXUGO): Define.
83128         (make_path): Always perform explicit chmod if MODE specifies any
83129         of the `special' permission bits.  Prompted by a bug report against
83130         install from Mate Wierdl and Joost van Baal.
83131
83132 2000-04-18  Jim Meyering  <meyering@lucent.com>
83133
83134         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
83135         (jm_PREREQ): Use it.
83136
83137 2000-04-18  Jim Meyering  <meyering@lucent.com>
83138
83139         * lib/README: New file.
83140
83141         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
83142         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
83143
83144 2000-04-17  Jim Meyering  <meyering@lucent.com>
83145
83146         Get it right :-)
83147         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
83148         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
83149         Suggestion from Akim Demaille.
83150
83151 2000-04-17  Jim Meyering  <meyering@lucent.com>
83152
83153         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
83154         the definition of it to rpl_strftime also defined-away the system's
83155         declaration.
83156
83157 2000-04-15  Jim Meyering  <meyering@lucent.com>
83158
83159         Use `C' to denote so-called `contiguous' files, the same way
83160         that tar does.
83161         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
83162         (ftypelet): Use S_ISCTG.
83163         From Michael Deutschmann.
83164
83165 2000-04-14  Jim Meyering  <meyering@lucent.com>
83166
83167         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
83168         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
83169         clobbered.
83170
83171 2000-04-14  Jim Meyering  <meyering@lucent.com>
83172
83173         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
83174
83175 2000-04-13  Jim Meyering  <meyering@lucent.com>
83176
83177         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
83178         AH_VERBATIM to insert required #ifndef into config.h.in.
83179         Suggestion from Akim Demaille.
83180
83181 2000-04-12  Jim Meyering  <meyering@lucent.com>
83182
83183         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
83184         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
83185         Christian Krackowizer.
83186
83187         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
83188         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
83189         (AC_SYS_LARGEFILE): Require.
83190         (AM_C_PROTOTYPES): Require.
83191
83192 2000-04-08  Jim Meyering  <meyering@lucent.com>
83193
83194         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
83195         names don't conflict.  Reported by Eli Zaretskii.
83196
83197 2000-04-07  Jim Meyering  <meyering@lucent.com>
83198
83199         * lib/putenv.c: Move inclusion of errno.h so it follows that of
83200         sys/types.h, to work around system header problems on AIX 3.2.5.
83201         From Bruno Haible.
83202
83203 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
83204
83205         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
83206         bug.  Deal with the different error behavior of Irix iconv.
83207
83208 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83209
83210         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83211         IRIX if the installer said otherwise.
83212
83213 2000-04-05  Jim Meyering  <meyering@lucent.com>
83214
83215         Portability tweaks required for ultrix4.3.
83216         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83217         (jm_CHECK_DECLS): Add getutent to the list of functions.
83218         (_jm_DECL_HEADERS): Add utmpx.h.
83219         From John David Anglin.
83220
83221         * m4/strftime.m4: Back out the 2000-04-02 change.
83222         Instead of that change, simply undefine putenv in the test program.
83223
83224 2000-04-05  Jim Meyering  <meyering@lucent.com>
83225
83226         Portability tweaks required for ultrix4.3.
83227         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83228         getutent.
83229         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83230         * lib/canon-host.c: Declare strdup.
83231         * lib/path-concat.c: Likewise.
83232         From John David Anglin.
83233
83234 2000-04-04  Jim Meyering  <meyering@lucent.com>
83235
83236         Be more DOS 8.3-friendly.
83237         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83238         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83239         * lib/Makefile.am: Reflect renaming.
83240         Reported by Eli Zaretskii.
83241
83242         Use a temporary file name that won't clash with `charset.alias'
83243         in the DOS 8.3 name space.
83244         * lib/Makefile.am (charset_tmp): Define.
83245         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83246         (uninstall-local): Likewise.
83247         Reported by Eli Zaretskii.
83248
83249 2000-04-03  Jim Meyering  <meyering@lucent.com>
83250
83251         * m4/gettext.m4: Fix typo in comment.
83252
83253         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83254         textutils/configure.in).  Suggestion from Paul Eggert.
83255         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83256
83257 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83258
83259         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83260         variable in the shell rather than using putenv, which isn't
83261         portable.  This avoids the configure-time inter-test dependency
83262         on the potentially-renamed putenv function.
83263
83264 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83265
83266         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83267         before checking struct stat.st_blksize, so that
83268         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83269
83270 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83271
83272         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83273         since strftime.c uses HAVE_STRFTIME to decide whether to use
83274         the underlying strftime.
83275
83276 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83277
83278         * lib/time/strftime.c (my_strftime): Make sure we call the system
83279         strftime, not ourselves, when invoking the underlying strftime.
83280
83281 2000-03-24  Jim Meyering  <meyering@lucent.com>
83282
83283         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83284         (charset_alias): Define.
83285         (install-exec-local): Factor out common code.
83286         (uninstall-local): Split lines longer than 80.
83287         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83288         (SUFFIXES): Define.
83289         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83290         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83291
83292 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83293
83294         * lib/config.charset: Output a line containing "Packages using this
83295         file".
83296         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83297         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83298         ref-del.sed): New rules.
83299
83300 2000-03-17  Jim Meyering  <meyering@lucent.com>
83301
83302         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83303         Otherwise, include <strings.h>
83304
83305 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83306
83307         * lib/unicodeio.c (utf8_wctomb): New function.
83308         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83309         format instead of in UCS-4 with platform dependent endianness.
83310
83311 2000-03-10  Jim Meyering  <meyering@lucent.com>
83312
83313         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83314         From Marco Franzen.
83315
83316 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83317
83318         * lib/savedir.c (savedir): Work even if directory size is
83319         negative; this can happen with some screwy NFS configurations.
83320
83321 2000-03-06  Jim Meyering  <meyering@lucent.com>
83322
83323         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83324         if it's NULL (because we ran out of memory).  From Bruno Haible.
83325
83326 2000-03-05  Jim Meyering  <meyering@lucent.com>
83327
83328         * lib/localcharset.c ("path-concat.h"): Include.
83329         (get_charset_aliases): Use path_concat instead of ANSI string
83330         concatenation.
83331
83332         * lib/unicodeio.h (PARAMS): Define.
83333         Use it to guard prototype.
83334
83335 2000-03-04  Jim Meyering  <meyering@lucent.com>
83336
83337         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83338         for lib/localcharset.c.
83339
83340 2000-03-04  Jim Meyering  <meyering@lucent.com>
83341
83342         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83343         installing into it.
83344         (uninstall-local): Uncomment this rule so `make distcheck' works
83345         once again.
83346
83347         * lib/unicodeio.c (<errno.h>): Include it.
83348         (errno): Declare if not defined.
83349
83350         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83351
83352         * lib/config.charset: New version, incorporating remarks from a linux
83353         i18n mailing list.  From Bruno Haible.
83354
83355 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83356
83357         * m4/codeset.m4: New file.
83358         * m4/iconv.m4: New file.
83359         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83360
83361 2000-03-03  Jim Meyering  <meyering@lucent.com>
83362
83363         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83364
83365 2000-03-02  Jim Meyering  <meyering@lucent.com>
83366
83367         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83368         the messages come out on separate lines.
83369
83370         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83371         rather than jm_CHECK_DECLARATIONS.
83372         * m4/decl.m4: Remove now-unused file.
83373
83374         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83375         geteuid.
83376
83377 2000-03-02  Jim Meyering  <meyering@lucent.com>
83378
83379         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83380
83381 2000-03-01  Jim Meyering  <meyering@lucent.com>
83382
83383         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83384         * lib/unicodeio.c: Likewise.
83385
83386 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83387
83388         * lib/config.charset: New file.
83389         * lib/localcharset.c: New file.
83390         * lib/unicodeio.h, lib/unicodeio.c: New files.
83391         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83392         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83393         (noinst_HEADERS): Add unicodeio.h.
83394         (all-local, install-exec-local, charset.alias): New targets.
83395
83396 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83397
83398         * lib/quotearg.c (ALERT_CHAR): New macro.
83399         (quotearg_buffer_restyled): Use it.
83400
83401 2000-02-27  Jim Meyering  <meyering@lucent.com>
83402
83403         * m4/check-decl.m4: Add getenv to the list.
83404
83405 2000-02-27  Jim Meyering  <meyering@lucent.com>
83406
83407         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83408         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83409
83410         * lib/backupfile.c: Guard inclusion of stdlib.h with
83411         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83412         Declare malloc if needed.
83413
83414         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83415         `#ifndef HAVE_DECL..'
83416         now that autoconf always defines the HAVE_DECL_ symbols.
83417         * lib/human.c: Likewise.
83418         * lib/same.c: Likewise.
83419         * lib/strtoumax.c: Likewise.
83420
83421         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83422         declaration check was not run.
83423         * lib/hash.c: Likewise.
83424         * lib/human.c: Likewise.
83425         * lib/same.c: Likewise.
83426         * lib/strtoumax.c: Likewise.
83427
83428         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83429         `.', then first look up the entire `.'-containing string as a login
83430         name.
83431
83432 2000-02-23  Jim Meyering  <meyering@lucent.com>
83433
83434         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83435         in place of my hack.
83436
83437 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83438
83439         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83440         (textint): New typedef.
83441         (parser_control): Member year changed from int to textint.
83442         All uses changed.
83443         (YYSTYPE): Removed; replaced by %union with int and textint members.
83444         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83445         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83446         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83447         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83448         (date, number, to_year): Use width of number in digits, not its value,
83449         to determine whether it's a 2-digit year, or a 2-digit time.
83450         (yylex): Store number of digits of numeric tokens.
83451         Reported by John Kendall.
83452
83453         (parser_control): Changed from struct parser_control to typedef (for
83454         consistency).  All uses changed.
83455
83456         (tID): Removed; not used.
83457         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83458
83459 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83460
83461         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83462         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83463
83464 2000-02-12  Jim Meyering  <meyering@lucent.com>
83465
83466         * lib/userspec.c (ISDIGIT): Define it.
83467         (isdigit): Remove definition.
83468         (is_number): Use ISDIGIT, not isdigit.
83469         <libintl.h>: Include.
83470         (_ and N_): Define.
83471         (parse_user_spec): Mark translatable strings.
83472
83473 2000-02-10  Jim Meyering  <meyering@lucent.com>
83474
83475         With these changes, nanosleep.[ch] are finally enough like the other
83476         lib/* replacement files to compile on a few more losing systems.
83477
83478         * lib/nanosleep.h: Don't include config.h.
83479         Remove prototype from declaration of nanosleep.
83480         (PARAMS): Remove now-unneeded definition.
83481         * lib/nanosleep.c: #undef nanosleep.
83482         (rpl_nanosleep): Rename from nanosleep.
83483
83484 2000-02-10  Jim Meyering  <meyering@lucent.com>
83485
83486         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83487         gnu_nanosleep to rpl_nanosleep.
83488
83489 2000-02-09  Jim Meyering  <meyering@lucent.com>
83490
83491         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83492         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83493
83494 2000-02-08  Akim Demaille  <akim@epita.fr>
83495
83496         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83497         `[' and `]' and remove uses of `changequote'.
83498         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83499         (AC_SYS_LARGEFILE): Likewise.
83500         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83501         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83502         of changequote.
83503         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83504         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83505         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83506         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83507
83508 2000-02-05  Jim Meyering  <meyering@lucent.com>
83509
83510         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83511         Remove explicit use of AC_HEADER_TIME.  It is required by
83512         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83513         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83514         in autoconf whereby the expansion of the latter ended up preceding
83515         the expansion of its prerequisite, AC_HEADER_TIME.
83516         Reported by Volker Borchert.
83517
83518 2000-02-03  Jim Meyering  <meyering@lucent.com>
83519
83520         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83521
83522 2000-02-03  Jim Meyering  <meyering@lucent.com>
83523
83524         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83525         rather than with `#if HAVE_UTMPNAME'.
83526
83527 2000-02-02  Jim Meyering  <meyering@lucent.com>
83528
83529         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83530         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83531         Reported by Eli Zaretskii.
83532
83533 2000-02-01  Jim Meyering  <meyering@lucent.com>
83534
83535         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83536
83537 2000-01-31  Jim Meyering  <meyering@lucent.com>
83538
83539         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83540         functions.  Add the time.h and sys/time.h headers along with the
83541         AC_REQUIRE'ment of AC_HEADER_TIME.
83542
83543 2000-01-31  Jim Meyering  <meyering@lucent.com>
83544
83545         * lib/nanosleep.h (nanosleep): Guard declaration with
83546         `#if ! HAVE_DECL_NANOSLEEP'.
83547         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83548         the declaration in that vendor's sys/timers.h.
83549         Reported by Christian Krackowizer.
83550
83551         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83552         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83553         (ISPRINT): Likewise.
83554         Reported by Tom Tromey.
83555
83556 2000-01-30  Jim Meyering  <meyering@lucent.com>
83557
83558         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83559
83560         * m4/prereq.m4 (utmp_includes): Define.
83561         Check for ut_user and ut_name members in both struct utmpx
83562         and struct utmp.
83563
83564 2000-01-30  Jim Meyering  <meyering@lucent.com>
83565
83566         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83567         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83568         header files where only utmpx.ut_user is declared.
83569
83570         * lib/readutmp.h (UT_USER): Define.
83571
83572 2000-01-29  Jim Meyering  <meyering@lucent.com>
83573
83574         * m4/lib-check.m4: New file containing library-related checks from
83575         fileutils and sh-utils (textutils had none).
83576
83577 2000-01-28  Jim Meyering  <meyering@lucent.com>
83578
83579         * m4/perl.m4: Change format of warning message to look more like that
83580         from the missing script.  Suggestion from François Pinard.
83581
83582 2000-01-25  Jim Meyering  <meyering@lucent.com>
83583
83584         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83585         well as time.h in the compile check.
83586         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83587         Fix typo in cross-compiling case: s/yes/no/.
83588
83589 2000-01-23  Jim Meyering  <meyering@lucent.com>
83590
83591         * m4/jm-macros.m4: Move df-related tests here from
83592         fileutils/configure.in
83593
83594         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83595         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83596
83597         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83598         s/space/ac_fsusage_space/.
83599         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83600
83601         * m4/ftruncate.m4: New file (derived from part of
83602         fileutils/configure.in).
83603         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83604         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83605
83606         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83607         AC_SUBST these here, rather than just in sh-util/configure.in, so
83608         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83609         all the same.
83610         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83611         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83612         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83613         (AC_SUBST(POW_LIBM)): Likewise.
83614         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83615
83616 2000-01-23  Jim Meyering  <meyering@lucent.com>
83617
83618         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83619         obstack.c.
83620
83621 2000-01-22  Jim Meyering  <meyering@lucent.com>
83622
83623         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83624
83625         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83626
83627         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83628         configure.in
83629         (AC_CHECK_HEADERS): Likewise for sh-utils.
83630         (AC_CHECK_HEADERS): Likewise for textutils.
83631         Merge the three lists of headers.
83632
83633         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83634         from fileutils' configure.in.
83635
83636         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83637         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83638         check-decl.m4.
83639
83640         * m4/check-decl.m4: Use #if rather than #ifdef.
83641         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83642         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83643         (_jm_DECL_HEADERS): Define new function.
83644         (jm_CHECK_DECLARATIONS): Require it.
83645
83646 2000-01-22  Jim Meyering  <meyering@lucent.com>
83647
83648         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83649         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83650         Required for some AIX systems.  Reported by Christian Krackowizer.
83651         [TESTING] (main): New function.
83652
83653         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83654         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83655         letters.
83656
83657         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83658         iswprint.
83659
83660         * lib/strverscmp.c (ISDIGIT): Define.
83661         (strverscmp): Use ISDIGIT, not isdigit.
83662
83663 2000-01-19  Jim Meyering  <meyering@lucent.com>
83664
83665         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83666         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83667         defines `struct timespec' in <sys/time.h>
83668
83669         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83670         Thanks to Akim for explaining.
83671
83672 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83673
83674         * lib/nanosleep.c (nanosleep):
83675         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83676         POSIX.1 doesn't require SA_INTERRUPT and some systems
83677         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83678         it's been part of POSIX.1 since day 1 (in 1988).
83679
83680 2000-01-17  Jim Meyering  <meyering@lucent.com>
83681
83682         * lib/interlock: Remove unused file.  Reported by François Pinard.
83683
83684 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83685
83686         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83687         alert, backslash, formfeed, and vertical tab unnecessarily in
83688         shell quoting style.
83689
83690 2000-01-16  Jim Meyering  <meyering@lucent.com>
83691
83692         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83693         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83694         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83695         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83696
83697 2000-01-16  Jim Meyering  <meyering@lucent.com>
83698
83699         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83700         because the latter didn't work.
83701
83702 2000-01-15  Jim Meyering  <meyering@lucent.com>
83703
83704         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83705         (AC_REPLACE_FUNCS): Add memcpy and memset.
83706         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83707         Add strpbrk.
83708         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83709
83710 2000-01-12  Jim Meyering  <meyering@lucent.com>
83711
83712         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83713         (jm_PREREQ): Use it.
83714         (jm_PREREQ_READUTMP): New macro.
83715         (jm_PREREQ): Use it.
83716
83717 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83718
83719         Quote multibyte characters correctly.
83720         * m4/c-bs-a.m4: New file.
83721         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83722         (jm_PREREQ): Use it.
83723
83724 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83725
83726         * m4/uintmax_t.m4: Port to autoconf 2.13.
83727
83728 2000-01-08  Jim Meyering  <meyering@ascend.com>
83729
83730         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83731         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83732
83733 2000-01-04  Jim Meyering  <meyering@ascend.com>
83734
83735         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83736         jm_STRUCT_DIRENT_D_TYPE.
83737         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83738         jm_STRUCT_DIRENT_D_INO.
83739         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83740         jm_STRUCT_UTIMBUF.
83741         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83742         renamings.
83743         * m4/utime.m4: Likewise.
83744
83745         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83746         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83747
83748 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83749
83750         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83751         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83752
83753 2000-01-02  Jim Meyering  <meyering@ascend.com>
83754
83755         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83756         remember if this is necessary.
83757
83758 1999-12-26  Jim Meyering  <meyering@ascend.com>
83759
83760         * m4/jm-macros.m4: Use it here.
83761         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83762
83763 1999-12-23  Jim Meyering  <meyering@ascend.com>
83764
83765         * m4/jm-macros.m4: Check for clock_gettime (moved from
83766         fileutils/configure.in)
83767         Check for gettimeofday.
83768
83769 1999-12-20  Jim Meyering  <meyering@ascend.com>
83770
83771         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83772         autoconf-2.14a-1999-12-20.
83773
83774 1999-12-19  Jim Meyering  <meyering@ascend.com>
83775
83776         * m4/lstat-slash.m4: New file.
83777         * m4/jm-macros.m4: Use the new macro:
83778         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83779
83780 1999-12-07  Jim Meyering  <meyering@ascend.com>
83781
83782         * m4/perl.m4: Require that File::Compare be available, too.
83783         Too many systems seem to lack it.
83784
83785         * m4/strftime.m4: Add checks for most of the cpp macros tested in
83786         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
83787
83788 1999-11-18  Paul Eggert  <eggert@twinsun.com>
83789
83790         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
83791         problem with the QNX 4.25 shell, which doesn't propagate exit
83792         status of failed commands inside shell assignments.
83793
83794 1999-11-17  Jim Meyering  <meyering@ascend.com>
83795
83796         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
83797
83798 1999-11-07  Jim Meyering  <meyering@ascend.com>
83799
83800         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
83801
83802 1999-11-06  Jim Meyering  <meyering@ascend.com>
83803
83804         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
83805         * m4/jm-macros.m4 (jm_MACROS): Use it here.
83806
83807 1999-11-05  Jim Meyering  <meyering@ascend.com>
83808
83809         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
83810         configure.in of textutils, fileutils, and sh-utils into this one
83811         (shared between those packages) file.
83812         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
83813         AC_STRUCT_ST_BLKSIZE.
83814
83815 1999-11-03  Jim Meyering  <meyering@ascend.com>
83816
83817         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
83818         of AC_CHECK_TYPE checks includes unistd.h.
83819         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
83820         Suggestion from Akim Demaille.
83821
83822 1999-10-30  Jim Meyering  <meyering@ascend.com>
83823
83824         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
83825         m4-quoted string.
83826         * m4/ls-mntd-fs.m4: Likewise.
83827         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
83828         * m4/jm-winsz1.m4: Likewise.
83829
83830         * m4/const.m4: Remove file, since the fix made it into the experimental
83831         version of autoconf.
83832         * m4/mktime.m4: Likewise.
83833
83834         * m4/check-type.m4: Remove file, now that the latest version of
83835         AC_CHECK_TYPE takes a third arg to specify additional #includes.
83836
83837         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
83838         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
83839         AC_CHECK_TYPE.
83840
83841 1999-10-04  Jim Meyering  <meyering@ascend.com>
83842
83843         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
83844
83845 1999-09-22  Paul Eggert  <eggert@twinsun.com>
83846
83847         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
83848         2.95.1 bug with HP-UX 10.20.
83849
83850 1999-09-17  Jim Meyering  <meyering@ascend.com>
83851
83852         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
83853         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
83854         due to missing strdup (against sh-utils-2.0).
83855
83856 1999-08-29  Jim Meyering  <meyering@ascend.com>
83857
83858         * m4/jm-macros.m4: Require jm_BISON.
83859         * m4/bison.m4: New file.
83860
83861 1999-08-17  Paul Eggert  <eggert@twinsun.com>
83862
83863         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
83864         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
83865
83866 1999-08-05  Jim Meyering  <meyering@ascend.com>
83867
83868         * m4/getline.m4: Rename test file from conftestdata to conftest.data
83869         to avoid conflicts with `conftest' on 8+3 filesystems.
83870         Suggestion from Eli Zaretskii.
83871
83872 1999-08-04  Jim Meyering  <meyering@ascend.com>
83873
83874         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
83875         fileutils and sh-utils (textutils's getline test was inadequate).
83876         (AM_FUNC_GETLINE): Run this test.
83877         (AC_CHECK_FUNCS): Check for getdelim.
83878         Reported by Bob Proulx.
83879
83880 1999-08-02  Jim Meyering  <meyering@ascend.com>
83881
83882         * m4/jm-macros.m4: Add a comment.
83883
83884 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83885
83886         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
83887         <inttypes.h> defines strtoumax as a macro (and not as a
83888         function).
83889
83890 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83891
83892         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
83893         that we can shift, multiply and divide unsigned long long
83894         values; Ultrix cc can't do it.
83895
83896 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83897
83898         * m4/mktime.m4: New file, which is a preview of what should appear
83899         in the next public autoconf release.
83900
83901 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83902
83903         * m4/lfs.m4: Remove this file.
83904         * m4/largefile.m4: New file.  It contains the old contents of
83905         lfs.m4, except that all names with prefix AC_LFS have been
83906         changed to use the prefix AC_SYS_LARGEFILE instead, to be
83907         compatible with future autoconf versions.  Also, some minor m4
83908         quoting problems have been fixed.
83909
83910 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83911
83912         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
83913         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
83914         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
83915         and simplify the shell code.
83916
83917 1999-08-01  Jim Meyering  <meyering@ascend.com>
83918
83919         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
83920         m4.
83921
83922 1999-07-20  Jim Meyering  <meyering@ascend.com>
83923
83924         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
83925
83926 1999-07-15  Jim Meyering  <meyering@ascend.com>
83927
83928         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
83929
83930 1999-05-22  Jim Meyering  <meyering@ascend.com>
83931
83932         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
83933
83934 1999-05-20  Jim Meyering  <meyering@ascend.com>
83935
83936         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
83937         Add a colon after each `then' in case $4 is empty.
83938
83939 1999-05-16  Jim Meyering  <meyering@ascend.com>
83940
83941         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
83942
83943 1999-05-10  Jim Meyering  <meyering@ascend.com>
83944
83945         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
83946
83947         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
83948         AC_FUNC_MKTIME.
83949
83950 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
83951
83952         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
83953
83954 1999-05-04  Paul Eggert  <eggert@twinsun.com>
83955
83956         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
83957         not CPPFLAGS, so that linking works correctly in IRIX.
83958
83959 1999-04-30  Paul Eggert  <eggert@twinsun.com>
83960
83961         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
83962
83963 1999-04-20  Paul Eggert  <eggert@twinsun.com>
83964
83965         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
83966         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
83967         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
83968         jm_AC_TYPE_UNSIGNED_LONG_LONG.
83969         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
83970
83971         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
83972
83973 1999-04-20  Jim Meyering  <meyering@ascend.com>
83974
83975         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
83976         AC_REPLACE xstroull if necessary.  From Paul Eggert.
83977         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
83978
83979 1999-04-18  Jim Meyering  <meyering@ascend.com>
83980
83981         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
83982         * m4/jm-macros.m4: Use it.
83983
83984 1999-04-06  Jim Meyering  <meyering@ascend.com>
83985
83986         * m4/strftime.m4: Remove test for %f.
83987
83988 1999-03-29  Jim Meyering  <meyering@ascend.com>
83989
83990         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
83991         superset of the AC_TYPE_* checks in the textutils, fileutils,
83992         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
83993         AC_TYPE_PID_T.
83994
83995 1999-03-28  Jim Meyering  <meyering@ascend.com>
83996
83997         * m4/jm-macros.m4: Define GNU_PACKAGE here.
83998         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
83999         replaced e.g., in the *.sh files of the sh-utils.
84000
84001 1999-03-20  Jim Meyering  <meyering@ascend.com>
84002
84003         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
84004         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
84005         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
84006
84007 1999-03-19  Jim Meyering  <meyering@ascend.com>
84008
84009         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
84010
84011 1999-03-12  Jim Meyering  <meyering@ascend.com>
84012
84013         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
84014
84015 1999-03-07  Jim Meyering  <meyering@ascend.com>
84016
84017         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
84018         declared.
84019
84020 1999-02-17  Jim Meyering  <meyering@ascend.com>
84021
84022         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
84023         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84024
84025 1999-02-07  Jim Meyering  <meyering@ascend.com>
84026
84027         * m4/group-member.m4: New file -- extracted from sh-utils'
84028         configure.in.
84029
84030         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
84031         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
84032
84033 1999-02-06  Jim Meyering  <meyering@ascend.com>
84034
84035         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
84036         * m4/fnmatch.m4: Likewise.
84037         * m4/getgroups.m4: Likewise.
84038         * m4/lstat.m4: Likewise.
84039         * m4/malloc.m4: Likewise.
84040         * m4/putenv.m4: Likewise.
84041         * m4/realloc.m4: Likewise.
84042         * m4/regex.m4: Likewise.
84043         * m4/stat.m4: Likewise.
84044         * m4/strftime.m4: Likewise.
84045         Suggestion from Alain Magloire.
84046
84047         * m4/chown.m4: Use `.$ac_objext', not `.o'.
84048         * m4/fnmatch.m4: Likewise.
84049         * m4/getgroups.m4: Likewise.
84050         * m4/getline.m4: Likewise.
84051         * m4/lstat.m4: Likewise.
84052         * m4/malloc.m4: Likewise.
84053         * m4/memcmp.m4: Likewise.
84054         * m4/putenv.m4: Likewise.
84055         * m4/realloc.m4: Likewise.
84056         * m4/regex.m4: Likewise.
84057         * m4/stat.m4: Likewise.
84058         * m4/strftime.m4: Likewise.
84059         Suggestion from Alain Magloire.
84060
84061         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
84062         an argument.
84063
84064         * m4/regex.m4: Add a run-time Test for proper operation of
84065         re_compile_pattern.
84066
84067 1999-01-31  Jim Meyering  <meyering@ascend.com>
84068
84069         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
84070
84071 1999-01-30  Jim Meyering  <meyering@ascend.com>
84072
84073         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
84074
84075         * m4/jm-mktime.m4: Make this a wrapper around the official
84076         AM_FUNC_MKTIME rather than my private copy, now that the official one
84077         is up to date.
84078         * m4/mktime.m4: Remove file.
84079
84080         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
84081         * m4/uptime.m4: Likewise.
84082         * m4/uintmax_t.m4: Likewise.
84083
84084 1999-01-28  Jim Meyering  <meyering@ascend.com>
84085
84086         * m4/jm-macros.m4: Use jm_AFS.
84087         * m4/afs.m4: New file (from fileutils' configure.in).
84088
84089         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
84090         * m4/chown.m4: Likewise.
84091         * m4/d-ino.m4: Likewise.
84092         * m4/d-type.m4: Likewise.
84093         * m4/fnmatch.m4: Likewise.
84094         * m4/getgroups.m4: Likewise.
84095         * m4/gettext.m4: Likewise.
84096         * m4/jm-mktime.m4: Likewise.
84097         * m4/jm-winsz2.m4: Likewise.
84098         * m4/lcmessage.m4: Likewise.
84099         * m4/ls-mntd-fs.m4: Likewise.
84100         * m4/malloc.m4: Likewise.
84101         * m4/memcmp.m4: Likewise.
84102         * m4/putenv.m4: Likewise.
84103         * m4/realloc.m4: Likewise.
84104         * m4/st_mtim.m4: Likewise.
84105         * m4/strftime.m4: Likewise.
84106
84107 1999-01-16  Jim Meyering  <meyering@ascend.com>
84108
84109         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
84110         (ARGMATCH_DIE_DECL): Define.
84111
84112 1999-01-12  Jim Meyering  <meyering@ascend.com>
84113
84114         * m4/Makefile.am.in: Rewrite to avoid using fmt.
84115         Reported by Lars Hecking.
84116
84117 1999-01-10  Jim Meyering  <meyering@ascend.com>
84118
84119         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
84120         gross kludge.
84121         * m4/inttypes_h.m4: Likewise.
84122         * m4/lstat.m4: Likewise.
84123         * m4/malloc.m4: Likewise.
84124         * m4/readdir.m4: Likewise.
84125         * m4/realloc.m4: Likewise.
84126         * m4/st_dm_mode.m4: Likewise.
84127         * m4/stat.m4: Likewise.
84128         * m4/utimbuf.m4: Likewise.
84129         * m4/utimes.m4: Likewise.
84130
84131         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
84132         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
84133         comments in config.h.in are meaningful.
84134
84135         * m4/jm-macros.m4: Require autoconf-2.13 here.
84136
84137         * m4/regex.m4: By default, don't use the included regex.c on systems
84138         with glibc 2.  Suggestion from Uli Drepper.
84139
84140 1999-01-02  Jim Meyering  <meyering@ascend.com>
84141
84142         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
84143
84144 1998-12-18  Jim Meyering  <meyering@ascend.com>
84145
84146         * m4/Makefile.am.in (Makefile.am): Simplify rule.
84147         Based on a suggestion from Lars Hecking.
84148
84149 1998-11-16  Paul Eggert  <eggert@twinsun.com>
84150
84151         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
84152
84153 1998-11-16  Jim Meyering  <meyering@ascend.com>
84154
84155         * m4/lfs.m4: Double-quote the `uname...` expression.
84156
84157 1998-11-14  Jim Meyering  <meyering@ascend.com>
84158
84159         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
84160         * m4/stat.m4: Likewise.
84161
84162 1998-11-03  Jim Meyering  <meyering@ascend.com>
84163
84164         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
84165         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
84166
84167 1998-10-18  Jim Meyering  <meyering@ascend.com>
84168
84169         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
84170
84171 1998-10-17  Jim Meyering  <meyering@ascend.com>
84172
84173         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
84174         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
84175         calls for those previously hard-coded headers.  Instead, take a new
84176         parameter.
84177         (jm_CHECK_DECLARATIONS): Reflect interface change.
84178         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
84179         (jm_CHECK_DECL_LOCALTIME_R): New macro.
84180
84181         * m4/mktime.m4: Test for spring-forward gap before long-running test.
84182
84183 1998-10-14  Jim Meyering  <meyering@ascend.com>
84184
84185         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
84186         instead of "TZ=America/Vancouver".  From Paul Eggert.
84187
84188 1998-10-11  Jim Meyering  <meyering@ascend.com>
84189
84190         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
84191         This adds a test for a recently added compatibility fix for mktime.c.
84192         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
84193
84194 1998-09-27  Jim Meyering  <meyering@ascend.com>
84195
84196         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
84197
84198         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
84199         ../configure.in, including a change from Gordon Matzigkeit to allow
84200         cross-compiling for the Hurd.
84201
84202         * m4/glibc.m4: New file/macro to test for the GNU C Library
84203         versions 1 and 2.  From Gordon Matzigkeit.
84204         Indent.
84205
84206 1998-09-21  Jim Meyering  <meyering@ascend.com>
84207
84208         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84209
84210 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84211
84212         Port nanosecond-resolution times to UnixWare 2.1.2 and
84213         pedantic Solaris 2.6.
84214
84215         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84216         AC_STRUCT_ST_MTIM.
84217         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84218         Generate name of ns member, instead of just 1 or undef.
84219         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84220
84221 1998-08-15  Jim Meyering  <meyering@ascend.com>
84222
84223         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84224         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84225         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84226         instead of jm_TYPE_SSIZE_T.
84227
84228 1998-08-12  Jim Meyering  <meyering@ascend.com>
84229
84230         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84231
84232 1998-08-02  Jim Meyering  <meyering@ascend.com>
84233
84234         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84235         in acconfig.h manually.
84236
84237 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84238
84239         * m4/st_mtim.m4: New file.
84240
84241 1998-07-28  Jim Meyering  <meyering@ascend.com>
84242
84243         * m4/utimes.m4: Undef stat.
84244
84245 1998-07-25  Jim Meyering  <meyering@ascend.com>
84246
84247         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84248         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84249
84250 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84251
84252         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84253         uid and gid actually remain unchanged.
84254
84255 1998-07-07  Jim Meyering  <meyering@ascend.com>
84256
84257         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84258
84259 1998-07-04  Jim Meyering  <meyering@ascend.com>
84260
84261         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84262         to prove that this macro can be used in packages without regex.c.
84263
84264 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84265
84266         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84267         is to be used.
84268
84269 1998-07-03  Jim Meyering  <meyering@ascend.com>
84270
84271         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84272
84273         * m4/gettext.m4: New file -- from gettext-0.10.35.
84274         * m4/lcmessage.m4: Likewise.
84275         * m4/progtest.m4: Likewise.
84276
84277         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84278         * m4/jm-macros.m4: Require the new macro.
84279
84280 1998-06-29  Jim Meyering  <meyering@ascend.com>
84281
84282         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84283         for the definition of NGROUPS (used in a system header included
84284         by sys/mount.h).
84285
84286 1998-06-28  Jim Meyering  <meyering@ascend.com>
84287
84288         * m4/ls-mntd-fs.m4: New file.
84289         * m4/fstypename.m4: New file.
84290
84291         * m4/jm-macros.m4: Require the new macro.
84292         * m4/jm-glibc-io.m4: New file.
84293
84294 1998-05-19  Jim Meyering  <meyering@ascend.com>
84295
84296         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84297         * m4/lchown.m4: New file.
84298
84299         * m4/Makefile.am.in: New file.
84300         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84301
84302 1998-05-14  Jim Meyering  <meyering@ascend.com>
84303
84304         * m4/Makefile.am (EXTRA_DIST): Add them.
84305         * m4/jm-macros.m4: New file.
84306         * m4/utimbuf.m4: New file.
84307
84308 1998-05-12  Jim Meyering  <meyering@ascend.com>
84309
84310         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84311
84312 1998-05-11  Jim Meyering  <meyering@ascend.com>
84313
84314         * m4/isc-posix.m4: New file.
84315
84316 1998-05-10  Jim Meyering  <meyering@ascend.com>
84317
84318         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84319
84320 1998-05-09  Jim Meyering  <meyering@ascend.com>
84321
84322         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84323         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84324         with automake.
84325
84326         * m4/ssize_t.m4: New file.
84327         * m4/mktime.m4: Remove file -- the new automake has this now.
84328
84329 1998-04-26  Jim Meyering  <meyering@ascend.com>
84330
84331         * m4/assert.m4: New file.
84332         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84333
84334 1998-04-05  Jim Meyering  <meyering@ascend.com>
84335
84336         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84337         (jm_PREREQ): Use it here.
84338
84339 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84340
84341         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84342         in acconfig.h.
84343
84344 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84345
84346         * m4/prereq.m4: New file.
84347         * m4/error.m4: New file.
84348         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84349
84350 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84351
84352         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84353         cache-check for the same variable -- that defeated the purpose of
84354         the test; the test program was never run.  This was a problem only
84355         on systems with losing getline functions -- HP-UX 10.20 is one.
84356         Reported by Bjorn Helgaas.
84357
84358 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84359
84360         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84361
84362 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84363
84364         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84365
84366         * m4/const.m4: New file.  Use an initializer in this declaration
84367         typedef int charset[2]; const charset x;
84368         Reported by Bob Glickstein.
84369
84370 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84371
84372         * m4/chown.m4: Fix reversed types on -1 args to chown.
84373         From Kaveh Ghazi.
84374
84375 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84376
84377         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84378         Add lseek and memchr.
84379
84380         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84381         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84382         have a 20-character limit on names.
84383
84384 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84385
84386         * m4/inttypes_h.m4: New file.
84387         * m4/uintmax_t.m4: New file.
84388         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84389
84390
84391         -----
84392
84393         Local Variables:
84394         coding: utf-8
84395         End:
84396
84397         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84398
84399         Copying and distribution of this file, with or without
84400         modification, are permitted provided the copyright notice
84401         and this notice are preserved.